From 62caac7f88b961be4207e036b4189b404fc87dd0 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 09:12:58 -0700 Subject: [PATCH 01/21] Update copy headers --- src/ApiClient.js | 2 +- src/api/BasketsApi.js | 2 +- src/api/CategoriesApi.js | 2 +- src/api/ContentApi.js | 2 +- src/api/ContentSearchApi.js | 2 +- src/api/CustomObjectsApi.js | 2 +- src/api/CustomersApi.js | 2 +- src/api/FoldersApi.js | 2 +- src/api/GiftCertificateApi.js | 2 +- src/api/OrderSearchApi.js | 2 +- src/api/OrdersApi.js | 2 +- src/api/PriceAdjustmentLimitsApi.js | 2 +- src/api/ProductListsApi.js | 2 +- src/api/ProductSearchApi.js | 2 +- src/api/ProductsApi.js | 2 +- src/api/PromotionsApi.js | 2 +- src/api/SearchSuggestionApi.js | 2 +- src/api/SessionsApi.js | 2 +- src/api/SiteApi.js | 2 +- src/api/StoresApi.js | 2 +- src/index.js | 2 +- src/models/AuthRequest.js | 2 +- src/models/Basket.js | 2 +- src/models/BasketPaymentInstrumentRequest.js | 2 +- src/models/BasketsResult.js | 2 +- src/models/BonusDiscountLineItem.js | 2 +- src/models/BoolFilter.js | 2 +- src/models/BoolQuery.js | 2 +- src/models/BundledProduct.js | 2 +- src/models/Category.js | 2 +- src/models/CategoryResult.js | 2 +- src/models/Content.js | 2 +- src/models/ContentFolder.js | 2 +- src/models/ContentFolderResult.js | 2 +- src/models/ContentResult.js | 2 +- src/models/ContentSearchRefinement.js | 2 +- src/models/ContentSearchRefinementValue.js | 2 +- src/models/ContentSearchResult.js | 2 +- src/models/CouponItem.js | 2 +- src/models/CustomObject.js | 2 +- src/models/Customer.js | 2 +- src/models/CustomerAddress.js | 2 +- src/models/CustomerAddressLink.js | 2 +- src/models/CustomerAddressResult.js | 2 +- src/models/CustomerInfo.js | 2 +- src/models/CustomerOrderResult.js | 2 +- src/models/CustomerPaymentCardRequest.js | 2 +- src/models/CustomerPaymentInstrument.js | 2 +- .../CustomerPaymentInstrumentRequest.js | 2 +- src/models/CustomerPaymentInstrumentResult.js | 2 +- src/models/CustomerProductList.js | 2 +- src/models/CustomerProductListItem.js | 2 +- src/models/CustomerProductListItemLink.js | 2 +- src/models/CustomerProductListItemResult.js | 2 +- src/models/CustomerProductListRegistrant.js | 2 +- src/models/CustomerProductListResult.js | 2 +- src/models/CustomerRegistration.js | 2 +- src/models/Discount.js | 2 +- src/models/Fault.js | 2 +- src/models/Filter.js | 2 +- src/models/FilteredQuery.js | 2 +- src/models/GiftCertificate.js | 2 +- src/models/GiftCertificateItem.js | 2 +- src/models/GiftCertificateRequest.js | 2 +- src/models/Image.js | 2 +- src/models/ImageGroup.js | 2 +- src/models/Inventory.js | 2 +- src/models/Locale.js | 2 +- src/models/Master.js | 2 +- src/models/NestedQuery.js | 2 +- src/models/Note.js | 2 +- src/models/NotesResult.js | 2 +- src/models/Option.js | 2 +- src/models/OptionItem.js | 2 +- src/models/OptionValue.js | 2 +- src/models/Order.js | 2 +- src/models/OrderAddress.js | 2 +- src/models/OrderPaymentCardRequest.js | 2 +- src/models/OrderPaymentInstrument.js | 2 +- src/models/OrderPaymentInstrumentRequest.js | 2 +- src/models/OrderSearchHit.js | 2 +- src/models/OrderSearchRequest.js | 2 +- src/models/OrderSearchResult.js | 2 +- src/models/PasswordChangeRequest.js | 2 +- src/models/PasswordReset.js | 2 +- src/models/PaymentBankAccount.js | 2 +- src/models/PaymentBankAccountRequest.js | 2 +- src/models/PaymentCard.js | 2 +- src/models/PaymentCardSpec.js | 2 +- src/models/PaymentMethod.js | 2 +- src/models/PaymentMethodResult.js | 2 +- src/models/PriceAdjustment.js | 2 +- src/models/PriceAdjustmentLimit.js | 2 +- src/models/PriceAdjustmentLimits.js | 2 +- src/models/Product.js | 2 +- src/models/ProductDetailsLink.js | 2 +- src/models/ProductItem.js | 2 +- src/models/ProductLink.js | 2 +- src/models/ProductListEvent.js | 2 +- src/models/ProductListItemReference.js | 2 +- src/models/ProductListLink.js | 2 +- src/models/ProductListRegistrant.js | 2 +- src/models/ProductListShippingAddress.js | 2 +- src/models/ProductPromotion.js | 2 +- src/models/ProductRef.js | 2 +- src/models/ProductResult.js | 2 +- src/models/ProductSearchHit.js | 2 +- src/models/ProductSearchRefinement.js | 2 +- src/models/ProductSearchRefinementValue.js | 2 +- src/models/ProductSearchResult.js | 2 +- src/models/ProductSearchSortingOption.js | 2 +- src/models/ProductSimpleLink.js | 2 +- src/models/ProductType.js | 2 +- src/models/Promotion.js | 2 +- src/models/PromotionResult.js | 2 +- src/models/PublicProductList.js | 2 +- src/models/PublicProductListItem.js | 2 +- src/models/PublicProductListItemResult.js | 2 +- src/models/PublicProductListLink.js | 2 +- src/models/PublicProductListResult.js | 2 +- src/models/Query.js | 2 +- src/models/QueryFilter.js | 2 +- src/models/Range2Filter.js | 2 +- src/models/RangeFilter.js | 2 +- src/models/Recommendation.js | 2 +- src/models/RecommendationType.js | 2 +- src/models/ResultPage.js | 2 +- src/models/Shipment.js | 2 +- src/models/ShippingItem.js | 2 +- src/models/ShippingMethod.js | 2 +- src/models/ShippingMethodResult.js | 2 +- src/models/ShippingPromotion.js | 2 +- src/models/SimpleLink.js | 2 +- src/models/Site.js | 2 +- src/models/Sort.js | 2 +- src/models/Status.js | 2 +- src/models/Store.js | 2 +- src/models/StoreResult.js | 2 +- src/models/SuggestedCategory.js | 2 +- src/models/SuggestedContent.js | 2 +- src/models/SuggestedPhrase.js | 2 +- src/models/SuggestedProduct.js | 2 +- src/models/SuggestedTerm.js | 2 +- src/models/SuggestedTerms.js | 2 +- src/models/Suggestion.js | 2 +- src/models/SuggestionResult.js | 2 +- src/models/TermFilter.js | 2 +- src/models/TermQuery.js | 2 +- src/models/TextQuery.js | 2 +- src/models/Variant.js | 2 +- src/models/VariationAttribute.js | 2 +- src/models/VariationAttributeValue.js | 2 +- src/models/VariationGroup.js | 2 +- swagger.json | 25513 +++++++++------- test/api/ApiClient.spec.js | 2 +- test/api/BasketsApi.spec.js | 2 +- test/api/CategoriesApi.spec.js | 2 +- test/api/ContentApi.spec.js | 2 +- test/api/ContentSearchApi.spec.js | 2 +- test/api/CustomObjectsApi.spec.js | 2 +- test/api/CustomersApi.spec.js | 2 +- test/api/FoldersApi.spec.js | 2 +- test/api/GiftCertificateApi.spec.js | 2 +- test/api/OrderSearchApi.spec.js | 2 +- test/api/OrdersApi.spec.js | 2 +- test/api/PriceAdjustmentLimitsApi.spec.js | 2 +- test/api/ProductListsApi.spec.js | 2 +- test/api/ProductSearchApi.spec.js | 2 +- test/api/ProductsApi.spec.js | 2 +- test/api/PromotionsApi.spec.js | 2 +- test/api/SearchSuggestionApi.spec.js | 2 +- test/api/SessionsApi.spec.js | 2 +- test/api/SiteApi.spec.js | 2 +- test/api/StoresApi.spec.js | 2 +- test/model/AuthRequest.spec.js | 2 +- test/model/Basket.spec.js | 2 +- .../BasketPaymentInstrumentRequest.spec.js | 2 +- test/model/BasketsResult.spec.js | 2 +- test/model/BonusDiscountLineItem.spec.js | 2 +- test/model/BoolFilter.spec.js | 2 +- test/model/BoolQuery.spec.js | 2 +- test/model/BundledProduct.spec.js | 2 +- test/model/Category.spec.js | 2 +- test/model/CategoryResult.spec.js | 2 +- test/model/Content.spec.js | 2 +- test/model/ContentFolder.spec.js | 2 +- test/model/ContentFolderResult.spec.js | 2 +- test/model/ContentResult.spec.js | 2 +- test/model/ContentSearchRefinement.spec.js | 2 +- .../ContentSearchRefinementValue.spec.js | 2 +- test/model/ContentSearchResult.spec.js | 2 +- test/model/CouponItem.spec.js | 2 +- test/model/CustomObject.spec.js | 2 +- test/model/Customer.spec.js | 2 +- test/model/CustomerAddress.spec.js | 2 +- test/model/CustomerAddressLink.spec.js | 2 +- test/model/CustomerAddressResult.spec.js | 2 +- test/model/CustomerInfo.spec.js | 2 +- test/model/CustomerOrderResult.spec.js | 2 +- test/model/CustomerPaymentCardRequest.spec.js | 2 +- test/model/CustomerPaymentInstrument.spec.js | 2 +- .../CustomerPaymentInstrumentRequest.spec.js | 2 +- .../CustomerPaymentInstrumentResult.spec.js | 2 +- test/model/CustomerProductList.spec.js | 2 +- test/model/CustomerProductListItem.spec.js | 2 +- .../model/CustomerProductListItemLink.spec.js | 2 +- .../CustomerProductListItemResult.spec.js | 2 +- .../CustomerProductListRegistrant.spec.js | 2 +- test/model/CustomerProductListResult.spec.js | 2 +- test/model/CustomerRegistration.spec.js | 2 +- test/model/Discount.spec.js | 2 +- test/model/FilteredQuery.spec.js | 2 +- test/model/GiftCertificate.spec.js | 2 +- test/model/GiftCertificateItem.spec.js | 2 +- test/model/GiftCertificateRequest.spec.js | 2 +- test/model/Image.spec.js | 2 +- test/model/ImageGroup.spec.js | 2 +- test/model/Inventory.spec.js | 2 +- test/model/Locale.spec.js | 2 +- test/model/Master.spec.js | 2 +- test/model/NestedQuery.spec.js | 2 +- test/model/Note.spec.js | 2 +- test/model/NotesResult.spec.js | 2 +- test/model/Option.spec.js | 2 +- test/model/OptionItem.spec.js | 2 +- test/model/OptionValue.spec.js | 2 +- test/model/Order.spec.js | 2 +- test/model/OrderAddress.spec.js | 2 +- test/model/OrderPaymentCardRequest.spec.js | 2 +- test/model/OrderPaymentInstrument.spec.js | 2 +- .../OrderPaymentInstrumentRequest.spec.js | 2 +- test/model/OrderSearchHit.spec.js | 2 +- test/model/OrderSearchRequest.spec.js | 2 +- test/model/OrderSearchResult.spec.js | 2 +- test/model/PasswordChangeRequest.spec.js | 2 +- test/model/PasswordReset.spec.js | 2 +- test/model/PaymentBankAccount.spec.js | 2 +- test/model/PaymentBankAccountRequest.spec.js | 2 +- test/model/PaymentCard.spec.js | 2 +- test/model/PaymentCardSpec.spec.js | 2 +- test/model/PaymentMethod.spec.js | 2 +- test/model/PaymentMethodResult.spec.js | 2 +- test/model/PriceAdjustment.spec.js | 2 +- test/model/PriceAdjustmentLimit.spec.js | 2 +- test/model/PriceAdjustmentLimits.spec.js | 2 +- test/model/Product.spec.js | 2 +- test/model/ProductDetailsLink.spec.js | 2 +- test/model/ProductItem.spec.js | 2 +- test/model/ProductLink.spec.js | 2 +- test/model/ProductListEvent.spec.js | 2 +- test/model/ProductListItemReference.spec.js | 2 +- test/model/ProductListLink.spec.js | 2 +- test/model/ProductListRegistrant.spec.js | 2 +- test/model/ProductListShippingAddress.spec.js | 2 +- test/model/ProductPromotion.spec.js | 2 +- test/model/ProductResult.spec.js | 2 +- test/model/ProductSearchHit.spec.js | 2 +- test/model/ProductSearchRefinement.spec.js | 2 +- .../ProductSearchRefinementValue.spec.js | 2 +- test/model/ProductSearchResult.spec.js | 2 +- test/model/ProductSearchSortingOption.spec.js | 2 +- test/model/ProductSimpleLink.spec.js | 2 +- test/model/ProductType.spec.js | 2 +- test/model/Promotion.spec.js | 2 +- test/model/PromotionResult.spec.js | 2 +- test/model/PublicProductList.spec.js | 2 +- test/model/PublicProductListItem.spec.js | 2 +- .../model/PublicProductListItemResult.spec.js | 2 +- test/model/PublicProductListLink.spec.js | 2 +- test/model/PublicProductListResult.spec.js | 2 +- test/model/QueryFilter.spec.js | 2 +- test/model/Range2Filter.spec.js | 2 +- test/model/RangeFilter.spec.js | 2 +- test/model/Recommendation.spec.js | 2 +- test/model/RecommendationType.spec.js | 2 +- test/model/ResultPage.spec.js | 2 +- test/model/Shipment.spec.js | 2 +- test/model/ShippingItem.spec.js | 2 +- test/model/ShippingMethod.spec.js | 2 +- test/model/ShippingMethodResult.spec.js | 2 +- test/model/ShippingPromotion.spec.js | 2 +- test/model/SimpleLink.spec.js | 2 +- test/model/Site.spec.js | 2 +- test/model/Sort.spec.js | 2 +- test/model/Status.spec.js | 2 +- test/model/Store.spec.js | 2 +- test/model/StoreResult.spec.js | 2 +- test/model/SuggestedCategory.spec.js | 2 +- test/model/SuggestedContent.spec.js | 2 +- test/model/SuggestedPhrase.spec.js | 2 +- test/model/SuggestedProduct.spec.js | 2 +- test/model/SuggestedTerm.spec.js | 2 +- test/model/SuggestedTerms.spec.js | 2 +- test/model/Suggestion.spec.js | 2 +- test/model/SuggestionResult.spec.js | 2 +- test/model/TermFilter.spec.js | 2 +- test/model/TermQuery.spec.js | 2 +- test/model/TextQuery.spec.js | 2 +- test/model/Variant.spec.js | 2 +- test/model/VariationAttribute.spec.js | 2 +- test/model/VariationAttributeValue.spec.js | 2 +- test/model/VariationGroup.spec.js | 2 +- test/samples.js | 2 +- test/utils.js | 2 +- 304 files changed, 14645 insertions(+), 11474 deletions(-) diff --git a/src/ApiClient.js b/src/ApiClient.js index 3c8a83d..f93a2ce 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/BasketsApi.js b/src/api/BasketsApi.js index ecf0bde..c7cf796 100644 --- a/src/api/BasketsApi.js +++ b/src/api/BasketsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/CategoriesApi.js b/src/api/CategoriesApi.js index a76c583..59d4626 100644 --- a/src/api/CategoriesApi.js +++ b/src/api/CategoriesApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/ContentApi.js b/src/api/ContentApi.js index 5a2dd6e..174dff1 100644 --- a/src/api/ContentApi.js +++ b/src/api/ContentApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/ContentSearchApi.js b/src/api/ContentSearchApi.js index 70dc02a..58dcab3 100644 --- a/src/api/ContentSearchApi.js +++ b/src/api/ContentSearchApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/CustomObjectsApi.js b/src/api/CustomObjectsApi.js index 0d87be8..26ee7d1 100644 --- a/src/api/CustomObjectsApi.js +++ b/src/api/CustomObjectsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/CustomersApi.js b/src/api/CustomersApi.js index fc91333..96cf5b5 100644 --- a/src/api/CustomersApi.js +++ b/src/api/CustomersApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/FoldersApi.js b/src/api/FoldersApi.js index d1db8bf..5b92691 100644 --- a/src/api/FoldersApi.js +++ b/src/api/FoldersApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/GiftCertificateApi.js b/src/api/GiftCertificateApi.js index 9ea4717..69af134 100644 --- a/src/api/GiftCertificateApi.js +++ b/src/api/GiftCertificateApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/OrderSearchApi.js b/src/api/OrderSearchApi.js index 8a4ae79..89f3487 100644 --- a/src/api/OrderSearchApi.js +++ b/src/api/OrderSearchApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/OrdersApi.js b/src/api/OrdersApi.js index 2717d7b..ea2dcab 100644 --- a/src/api/OrdersApi.js +++ b/src/api/OrdersApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/PriceAdjustmentLimitsApi.js b/src/api/PriceAdjustmentLimitsApi.js index 123ca1a..924b34f 100644 --- a/src/api/PriceAdjustmentLimitsApi.js +++ b/src/api/PriceAdjustmentLimitsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/ProductListsApi.js b/src/api/ProductListsApi.js index 6e47631..cb4ef00 100644 --- a/src/api/ProductListsApi.js +++ b/src/api/ProductListsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/ProductSearchApi.js b/src/api/ProductSearchApi.js index a0ddfcb..f59b66b 100644 --- a/src/api/ProductSearchApi.js +++ b/src/api/ProductSearchApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/ProductsApi.js b/src/api/ProductsApi.js index cf8cc06..7deb545 100644 --- a/src/api/ProductsApi.js +++ b/src/api/ProductsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/PromotionsApi.js b/src/api/PromotionsApi.js index 35e1134..c2eb3f0 100644 --- a/src/api/PromotionsApi.js +++ b/src/api/PromotionsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/SearchSuggestionApi.js b/src/api/SearchSuggestionApi.js index cd81719..a66b360 100644 --- a/src/api/SearchSuggestionApi.js +++ b/src/api/SearchSuggestionApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/SessionsApi.js b/src/api/SessionsApi.js index 1af228a..e18b4ab 100644 --- a/src/api/SessionsApi.js +++ b/src/api/SessionsApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/SiteApi.js b/src/api/SiteApi.js index ea710ad..a96fe78 100644 --- a/src/api/SiteApi.js +++ b/src/api/SiteApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/api/StoresApi.js b/src/api/StoresApi.js index 519e9b3..5ca59d6 100644 --- a/src/api/StoresApi.js +++ b/src/api/StoresApi.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/index.js b/src/index.js index 0440d17..5acdf9d 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/src/models/AuthRequest.js b/src/models/AuthRequest.js index 34d672b..67eae1f 100644 --- a/src/models/AuthRequest.js +++ b/src/models/AuthRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Basket.js b/src/models/Basket.js index 7534b67..1a3f3b7 100644 --- a/src/models/Basket.js +++ b/src/models/Basket.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BasketPaymentInstrumentRequest.js b/src/models/BasketPaymentInstrumentRequest.js index 60b3252..3362372 100644 --- a/src/models/BasketPaymentInstrumentRequest.js +++ b/src/models/BasketPaymentInstrumentRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BasketsResult.js b/src/models/BasketsResult.js index 6b451d7..1efddd4 100644 --- a/src/models/BasketsResult.js +++ b/src/models/BasketsResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BonusDiscountLineItem.js b/src/models/BonusDiscountLineItem.js index 08711cb..c4826dd 100644 --- a/src/models/BonusDiscountLineItem.js +++ b/src/models/BonusDiscountLineItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BoolFilter.js b/src/models/BoolFilter.js index a54007d..921e3d2 100644 --- a/src/models/BoolFilter.js +++ b/src/models/BoolFilter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BoolQuery.js b/src/models/BoolQuery.js index 12bf8ea..fe6e4ff 100644 --- a/src/models/BoolQuery.js +++ b/src/models/BoolQuery.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/BundledProduct.js b/src/models/BundledProduct.js index b5c0a8e..1375fbc 100644 --- a/src/models/BundledProduct.js +++ b/src/models/BundledProduct.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Category.js b/src/models/Category.js index f0e46d9..eb6cf2a 100644 --- a/src/models/Category.js +++ b/src/models/Category.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CategoryResult.js b/src/models/CategoryResult.js index f17cd30..ad1e97b 100644 --- a/src/models/CategoryResult.js +++ b/src/models/CategoryResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Content.js b/src/models/Content.js index b9210eb..077f6d8 100644 --- a/src/models/Content.js +++ b/src/models/Content.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentFolder.js b/src/models/ContentFolder.js index 408833b..9f47cc6 100644 --- a/src/models/ContentFolder.js +++ b/src/models/ContentFolder.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentFolderResult.js b/src/models/ContentFolderResult.js index 6446ec9..26f41af 100644 --- a/src/models/ContentFolderResult.js +++ b/src/models/ContentFolderResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentResult.js b/src/models/ContentResult.js index 14437e7..645a6d0 100644 --- a/src/models/ContentResult.js +++ b/src/models/ContentResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentSearchRefinement.js b/src/models/ContentSearchRefinement.js index e7ec481..63c5d69 100644 --- a/src/models/ContentSearchRefinement.js +++ b/src/models/ContentSearchRefinement.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentSearchRefinementValue.js b/src/models/ContentSearchRefinementValue.js index 8a0830b..7752c8f 100644 --- a/src/models/ContentSearchRefinementValue.js +++ b/src/models/ContentSearchRefinementValue.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ContentSearchResult.js b/src/models/ContentSearchResult.js index 42647a2..d75a840 100644 --- a/src/models/ContentSearchResult.js +++ b/src/models/ContentSearchResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CouponItem.js b/src/models/CouponItem.js index d6812b5..961f5ec 100644 --- a/src/models/CouponItem.js +++ b/src/models/CouponItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomObject.js b/src/models/CustomObject.js index dc1c999..46ca0df 100644 --- a/src/models/CustomObject.js +++ b/src/models/CustomObject.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Customer.js b/src/models/Customer.js index 731179e..b7a54d7 100644 --- a/src/models/Customer.js +++ b/src/models/Customer.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerAddress.js b/src/models/CustomerAddress.js index 4d0906b..e96f0de 100644 --- a/src/models/CustomerAddress.js +++ b/src/models/CustomerAddress.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerAddressLink.js b/src/models/CustomerAddressLink.js index a923bb5..cbb7b60 100644 --- a/src/models/CustomerAddressLink.js +++ b/src/models/CustomerAddressLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerAddressResult.js b/src/models/CustomerAddressResult.js index ad9e573..3bbf85c 100644 --- a/src/models/CustomerAddressResult.js +++ b/src/models/CustomerAddressResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerInfo.js b/src/models/CustomerInfo.js index a1489c0..1d871a1 100644 --- a/src/models/CustomerInfo.js +++ b/src/models/CustomerInfo.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerOrderResult.js b/src/models/CustomerOrderResult.js index af7351a..56d94ae 100644 --- a/src/models/CustomerOrderResult.js +++ b/src/models/CustomerOrderResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerPaymentCardRequest.js b/src/models/CustomerPaymentCardRequest.js index 10e6401..1aa9a12 100644 --- a/src/models/CustomerPaymentCardRequest.js +++ b/src/models/CustomerPaymentCardRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerPaymentInstrument.js b/src/models/CustomerPaymentInstrument.js index 848ef79..0484721 100644 --- a/src/models/CustomerPaymentInstrument.js +++ b/src/models/CustomerPaymentInstrument.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerPaymentInstrumentRequest.js b/src/models/CustomerPaymentInstrumentRequest.js index 5bdd4db..01ade23 100644 --- a/src/models/CustomerPaymentInstrumentRequest.js +++ b/src/models/CustomerPaymentInstrumentRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerPaymentInstrumentResult.js b/src/models/CustomerPaymentInstrumentResult.js index 7c95d6f..c2aab0e 100644 --- a/src/models/CustomerPaymentInstrumentResult.js +++ b/src/models/CustomerPaymentInstrumentResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductList.js b/src/models/CustomerProductList.js index 05abc24..e04ec93 100644 --- a/src/models/CustomerProductList.js +++ b/src/models/CustomerProductList.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductListItem.js b/src/models/CustomerProductListItem.js index c85d77a..9b72721 100644 --- a/src/models/CustomerProductListItem.js +++ b/src/models/CustomerProductListItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductListItemLink.js b/src/models/CustomerProductListItemLink.js index 23b1a8e..fbb89df 100644 --- a/src/models/CustomerProductListItemLink.js +++ b/src/models/CustomerProductListItemLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductListItemResult.js b/src/models/CustomerProductListItemResult.js index accd6d7..cb568cb 100644 --- a/src/models/CustomerProductListItemResult.js +++ b/src/models/CustomerProductListItemResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductListRegistrant.js b/src/models/CustomerProductListRegistrant.js index 38dbe01..83b9a89 100644 --- a/src/models/CustomerProductListRegistrant.js +++ b/src/models/CustomerProductListRegistrant.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerProductListResult.js b/src/models/CustomerProductListResult.js index 5140a0f..a13eee7 100644 --- a/src/models/CustomerProductListResult.js +++ b/src/models/CustomerProductListResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/CustomerRegistration.js b/src/models/CustomerRegistration.js index d9710ac..d98d169 100644 --- a/src/models/CustomerRegistration.js +++ b/src/models/CustomerRegistration.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Discount.js b/src/models/Discount.js index cfcc20c..c749795 100644 --- a/src/models/Discount.js +++ b/src/models/Discount.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Fault.js b/src/models/Fault.js index ad15f9e..07001ac 100644 --- a/src/models/Fault.js +++ b/src/models/Fault.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Filter.js b/src/models/Filter.js index 92daf53..435c564 100644 --- a/src/models/Filter.js +++ b/src/models/Filter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/FilteredQuery.js b/src/models/FilteredQuery.js index 7989df3..7560a31 100644 --- a/src/models/FilteredQuery.js +++ b/src/models/FilteredQuery.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/GiftCertificate.js b/src/models/GiftCertificate.js index 490dc60..f73ed85 100644 --- a/src/models/GiftCertificate.js +++ b/src/models/GiftCertificate.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation *//** diff --git a/src/models/GiftCertificateItem.js b/src/models/GiftCertificateItem.js index 85f7a6c..1d88a01 100644 --- a/src/models/GiftCertificateItem.js +++ b/src/models/GiftCertificateItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/GiftCertificateRequest.js b/src/models/GiftCertificateRequest.js index fd9a938..5108bf8 100644 --- a/src/models/GiftCertificateRequest.js +++ b/src/models/GiftCertificateRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Image.js b/src/models/Image.js index 39a1ef1..d504715 100644 --- a/src/models/Image.js +++ b/src/models/Image.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ImageGroup.js b/src/models/ImageGroup.js index e3c1215..d2c0552 100644 --- a/src/models/ImageGroup.js +++ b/src/models/ImageGroup.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Inventory.js b/src/models/Inventory.js index 8cb8386..f7099dc 100644 --- a/src/models/Inventory.js +++ b/src/models/Inventory.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Locale.js b/src/models/Locale.js index ade16ed..e85b864 100644 --- a/src/models/Locale.js +++ b/src/models/Locale.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation *//** diff --git a/src/models/Master.js b/src/models/Master.js index 8150f10..7b5b766 100644 --- a/src/models/Master.js +++ b/src/models/Master.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/NestedQuery.js b/src/models/NestedQuery.js index ef6c4d5..269d016 100644 --- a/src/models/NestedQuery.js +++ b/src/models/NestedQuery.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Note.js b/src/models/Note.js index 6344af3..6629df7 100644 --- a/src/models/Note.js +++ b/src/models/Note.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/NotesResult.js b/src/models/NotesResult.js index 7e2b925..8b84bed 100644 --- a/src/models/NotesResult.js +++ b/src/models/NotesResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Option.js b/src/models/Option.js index 5b31b4a..e93aba6 100644 --- a/src/models/Option.js +++ b/src/models/Option.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OptionItem.js b/src/models/OptionItem.js index 1d04c99..b0d255a 100644 --- a/src/models/OptionItem.js +++ b/src/models/OptionItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OptionValue.js b/src/models/OptionValue.js index baa94f0..0f359e6 100644 --- a/src/models/OptionValue.js +++ b/src/models/OptionValue.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Order.js b/src/models/Order.js index 4b7d057..495c873 100644 --- a/src/models/Order.js +++ b/src/models/Order.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderAddress.js b/src/models/OrderAddress.js index bce2eca..0d31c54 100644 --- a/src/models/OrderAddress.js +++ b/src/models/OrderAddress.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderPaymentCardRequest.js b/src/models/OrderPaymentCardRequest.js index 59658d4..2537f0a 100644 --- a/src/models/OrderPaymentCardRequest.js +++ b/src/models/OrderPaymentCardRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderPaymentInstrument.js b/src/models/OrderPaymentInstrument.js index 67758aa..197448d 100644 --- a/src/models/OrderPaymentInstrument.js +++ b/src/models/OrderPaymentInstrument.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderPaymentInstrumentRequest.js b/src/models/OrderPaymentInstrumentRequest.js index eac7df1..67ada81 100644 --- a/src/models/OrderPaymentInstrumentRequest.js +++ b/src/models/OrderPaymentInstrumentRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation *//** diff --git a/src/models/OrderSearchHit.js b/src/models/OrderSearchHit.js index f07c8ce..083af42 100644 --- a/src/models/OrderSearchHit.js +++ b/src/models/OrderSearchHit.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderSearchRequest.js b/src/models/OrderSearchRequest.js index d4f3092..997d3a9 100644 --- a/src/models/OrderSearchRequest.js +++ b/src/models/OrderSearchRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/OrderSearchResult.js b/src/models/OrderSearchResult.js index a5a204c..1a39e31 100644 --- a/src/models/OrderSearchResult.js +++ b/src/models/OrderSearchResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PasswordChangeRequest.js b/src/models/PasswordChangeRequest.js index da3f038..05255c7 100644 --- a/src/models/PasswordChangeRequest.js +++ b/src/models/PasswordChangeRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PasswordReset.js b/src/models/PasswordReset.js index 58b7b01..463c2a3 100644 --- a/src/models/PasswordReset.js +++ b/src/models/PasswordReset.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentBankAccount.js b/src/models/PaymentBankAccount.js index cc47904..0a3a2f1 100644 --- a/src/models/PaymentBankAccount.js +++ b/src/models/PaymentBankAccount.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentBankAccountRequest.js b/src/models/PaymentBankAccountRequest.js index 12c4c50..a03462d 100644 --- a/src/models/PaymentBankAccountRequest.js +++ b/src/models/PaymentBankAccountRequest.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentCard.js b/src/models/PaymentCard.js index 9c59a09..851dc1e 100644 --- a/src/models/PaymentCard.js +++ b/src/models/PaymentCard.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentCardSpec.js b/src/models/PaymentCardSpec.js index 9abb8b0..0489cc1 100644 --- a/src/models/PaymentCardSpec.js +++ b/src/models/PaymentCardSpec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentMethod.js b/src/models/PaymentMethod.js index 52d01d2..368cab7 100644 --- a/src/models/PaymentMethod.js +++ b/src/models/PaymentMethod.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PaymentMethodResult.js b/src/models/PaymentMethodResult.js index 03d3061..c880819 100644 --- a/src/models/PaymentMethodResult.js +++ b/src/models/PaymentMethodResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PriceAdjustment.js b/src/models/PriceAdjustment.js index 86bcbde..a6c8f84 100644 --- a/src/models/PriceAdjustment.js +++ b/src/models/PriceAdjustment.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PriceAdjustmentLimit.js b/src/models/PriceAdjustmentLimit.js index 64703e1..cdc4bf3 100644 --- a/src/models/PriceAdjustmentLimit.js +++ b/src/models/PriceAdjustmentLimit.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PriceAdjustmentLimits.js b/src/models/PriceAdjustmentLimits.js index a58e02f..a9ffbc5 100644 --- a/src/models/PriceAdjustmentLimits.js +++ b/src/models/PriceAdjustmentLimits.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Product.js b/src/models/Product.js index 44dad61..a01435e 100644 --- a/src/models/Product.js +++ b/src/models/Product.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductDetailsLink.js b/src/models/ProductDetailsLink.js index fdbc489..24633d7 100644 --- a/src/models/ProductDetailsLink.js +++ b/src/models/ProductDetailsLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductItem.js b/src/models/ProductItem.js index b5fef47..262debb 100644 --- a/src/models/ProductItem.js +++ b/src/models/ProductItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductLink.js b/src/models/ProductLink.js index b871baf..cc7fbfe 100644 --- a/src/models/ProductLink.js +++ b/src/models/ProductLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductListEvent.js b/src/models/ProductListEvent.js index 7976046..68a5db2 100644 --- a/src/models/ProductListEvent.js +++ b/src/models/ProductListEvent.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductListItemReference.js b/src/models/ProductListItemReference.js index af24745..cb66429 100644 --- a/src/models/ProductListItemReference.js +++ b/src/models/ProductListItemReference.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductListLink.js b/src/models/ProductListLink.js index aec653c..8bc812c 100644 --- a/src/models/ProductListLink.js +++ b/src/models/ProductListLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductListRegistrant.js b/src/models/ProductListRegistrant.js index 1b7f2f6..a064b7c 100644 --- a/src/models/ProductListRegistrant.js +++ b/src/models/ProductListRegistrant.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductListShippingAddress.js b/src/models/ProductListShippingAddress.js index 7c7a96b..cde6917 100644 --- a/src/models/ProductListShippingAddress.js +++ b/src/models/ProductListShippingAddress.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductPromotion.js b/src/models/ProductPromotion.js index 4e91e89..4d9b97d 100644 --- a/src/models/ProductPromotion.js +++ b/src/models/ProductPromotion.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductRef.js b/src/models/ProductRef.js index bb3fe49..7328d1d 100644 --- a/src/models/ProductRef.js +++ b/src/models/ProductRef.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductResult.js b/src/models/ProductResult.js index 195153f..1d0b8fe 100644 --- a/src/models/ProductResult.js +++ b/src/models/ProductResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSearchHit.js b/src/models/ProductSearchHit.js index a5ddf7b..3398a9c 100644 --- a/src/models/ProductSearchHit.js +++ b/src/models/ProductSearchHit.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSearchRefinement.js b/src/models/ProductSearchRefinement.js index e371481..d8c91ab 100644 --- a/src/models/ProductSearchRefinement.js +++ b/src/models/ProductSearchRefinement.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSearchRefinementValue.js b/src/models/ProductSearchRefinementValue.js index 2a6cc47..d3cd799 100644 --- a/src/models/ProductSearchRefinementValue.js +++ b/src/models/ProductSearchRefinementValue.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSearchResult.js b/src/models/ProductSearchResult.js index 6bd4969..eca4917 100644 --- a/src/models/ProductSearchResult.js +++ b/src/models/ProductSearchResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSearchSortingOption.js b/src/models/ProductSearchSortingOption.js index 4c3dca7..cf18f04 100644 --- a/src/models/ProductSearchSortingOption.js +++ b/src/models/ProductSearchSortingOption.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductSimpleLink.js b/src/models/ProductSimpleLink.js index 5298b5e..ebb4458 100644 --- a/src/models/ProductSimpleLink.js +++ b/src/models/ProductSimpleLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ProductType.js b/src/models/ProductType.js index 64da040..0058c51 100644 --- a/src/models/ProductType.js +++ b/src/models/ProductType.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Promotion.js b/src/models/Promotion.js index dba7bae..1deadaf 100644 --- a/src/models/Promotion.js +++ b/src/models/Promotion.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PromotionResult.js b/src/models/PromotionResult.js index 351ebdf..34c6c03 100644 --- a/src/models/PromotionResult.js +++ b/src/models/PromotionResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PublicProductList.js b/src/models/PublicProductList.js index 62e98da..7c9f3c3 100644 --- a/src/models/PublicProductList.js +++ b/src/models/PublicProductList.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PublicProductListItem.js b/src/models/PublicProductListItem.js index b72fe9f..23a5c05 100644 --- a/src/models/PublicProductListItem.js +++ b/src/models/PublicProductListItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PublicProductListItemResult.js b/src/models/PublicProductListItemResult.js index cdf8988..c282356 100644 --- a/src/models/PublicProductListItemResult.js +++ b/src/models/PublicProductListItemResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PublicProductListLink.js b/src/models/PublicProductListLink.js index 5059893..44752b8 100644 --- a/src/models/PublicProductListLink.js +++ b/src/models/PublicProductListLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/PublicProductListResult.js b/src/models/PublicProductListResult.js index 874c3f6..bd40f13 100644 --- a/src/models/PublicProductListResult.js +++ b/src/models/PublicProductListResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Query.js b/src/models/Query.js index 4dc7805..cb15c99 100644 --- a/src/models/Query.js +++ b/src/models/Query.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/QueryFilter.js b/src/models/QueryFilter.js index 41cdd9c..75f98fa 100644 --- a/src/models/QueryFilter.js +++ b/src/models/QueryFilter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Range2Filter.js b/src/models/Range2Filter.js index 3d29374..b05c0bd 100644 --- a/src/models/Range2Filter.js +++ b/src/models/Range2Filter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/RangeFilter.js b/src/models/RangeFilter.js index 3bf6531..1662cef 100644 --- a/src/models/RangeFilter.js +++ b/src/models/RangeFilter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Recommendation.js b/src/models/Recommendation.js index 43eb8a2..5fdf6f2 100644 --- a/src/models/Recommendation.js +++ b/src/models/Recommendation.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/RecommendationType.js b/src/models/RecommendationType.js index 0067ee9..2d7f242 100644 --- a/src/models/RecommendationType.js +++ b/src/models/RecommendationType.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ResultPage.js b/src/models/ResultPage.js index 253992a..b347760 100644 --- a/src/models/ResultPage.js +++ b/src/models/ResultPage.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Shipment.js b/src/models/Shipment.js index 441e62a..1c50ea1 100644 --- a/src/models/Shipment.js +++ b/src/models/Shipment.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ShippingItem.js b/src/models/ShippingItem.js index cec1685..c248876 100644 --- a/src/models/ShippingItem.js +++ b/src/models/ShippingItem.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ShippingMethod.js b/src/models/ShippingMethod.js index 1216c34..4365b90 100644 --- a/src/models/ShippingMethod.js +++ b/src/models/ShippingMethod.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ShippingMethodResult.js b/src/models/ShippingMethodResult.js index 1918fdc..bff3c9f 100644 --- a/src/models/ShippingMethodResult.js +++ b/src/models/ShippingMethodResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/ShippingPromotion.js b/src/models/ShippingPromotion.js index c2d641b..63dca3b 100644 --- a/src/models/ShippingPromotion.js +++ b/src/models/ShippingPromotion.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SimpleLink.js b/src/models/SimpleLink.js index 576ec08..572bb25 100644 --- a/src/models/SimpleLink.js +++ b/src/models/SimpleLink.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Site.js b/src/models/Site.js index 950ac77..bb38350 100644 --- a/src/models/Site.js +++ b/src/models/Site.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Sort.js b/src/models/Sort.js index f215de0..063077d 100644 --- a/src/models/Sort.js +++ b/src/models/Sort.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Status.js b/src/models/Status.js index 654264a..431378f 100644 --- a/src/models/Status.js +++ b/src/models/Status.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Store.js b/src/models/Store.js index 7bc6923..53b23d7 100644 --- a/src/models/Store.js +++ b/src/models/Store.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/StoreResult.js b/src/models/StoreResult.js index ac19913..5fddd72 100644 --- a/src/models/StoreResult.js +++ b/src/models/StoreResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedCategory.js b/src/models/SuggestedCategory.js index 9944057..daefa4f 100644 --- a/src/models/SuggestedCategory.js +++ b/src/models/SuggestedCategory.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedContent.js b/src/models/SuggestedContent.js index 24ff151..301afa1 100644 --- a/src/models/SuggestedContent.js +++ b/src/models/SuggestedContent.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedPhrase.js b/src/models/SuggestedPhrase.js index 4fd7b97..3517042 100644 --- a/src/models/SuggestedPhrase.js +++ b/src/models/SuggestedPhrase.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedProduct.js b/src/models/SuggestedProduct.js index 7487cee..c23160b 100644 --- a/src/models/SuggestedProduct.js +++ b/src/models/SuggestedProduct.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedTerm.js b/src/models/SuggestedTerm.js index d54df3b..b9ba8c3 100644 --- a/src/models/SuggestedTerm.js +++ b/src/models/SuggestedTerm.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestedTerms.js b/src/models/SuggestedTerms.js index 23098da..fd39da7 100644 --- a/src/models/SuggestedTerms.js +++ b/src/models/SuggestedTerms.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Suggestion.js b/src/models/Suggestion.js index 8798fc3..be3878d 100644 --- a/src/models/Suggestion.js +++ b/src/models/Suggestion.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/SuggestionResult.js b/src/models/SuggestionResult.js index ece502a..f77f10c 100644 --- a/src/models/SuggestionResult.js +++ b/src/models/SuggestionResult.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/TermFilter.js b/src/models/TermFilter.js index ffa8d50..c2177a8 100644 --- a/src/models/TermFilter.js +++ b/src/models/TermFilter.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/TermQuery.js b/src/models/TermQuery.js index dbcb2d4..bceea2e 100644 --- a/src/models/TermQuery.js +++ b/src/models/TermQuery.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/TextQuery.js b/src/models/TextQuery.js index 3d22828..3d9d47d 100644 --- a/src/models/TextQuery.js +++ b/src/models/TextQuery.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/Variant.js b/src/models/Variant.js index be692dd..ae1da1c 100644 --- a/src/models/Variant.js +++ b/src/models/Variant.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/VariationAttribute.js b/src/models/VariationAttribute.js index 77d322a..5049bb2 100644 --- a/src/models/VariationAttribute.js +++ b/src/models/VariationAttribute.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/VariationAttributeValue.js b/src/models/VariationAttributeValue.js index 591dce9..4ddbe40 100644 --- a/src/models/VariationAttributeValue.js +++ b/src/models/VariationAttributeValue.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/src/models/VariationGroup.js b/src/models/VariationGroup.js index d7debc1..d94ceb7 100644 --- a/src/models/VariationGroup.js +++ b/src/models/VariationGroup.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* eslint-disable dot-notation */ diff --git a/swagger.json b/swagger.json index ece9625..589d7e1 100644 --- a/swagger.json +++ b/swagger.json @@ -1,11330 +1,14501 @@ { - "basePath": "/s/2017refresh/dw/shop/v17_8", + "basePath": "/s/-/dw/shop/20.4", "consumes": [ - "application/json", - "text/xml", - "application/xml" + "application/json", + "text/xml", + "application/xml" ], "definitions": { - "auth_request": { - "description": "Document representing the authentication request type.", - "properties": { - "type": { - "description": "Type of authentication request: guest, login (credentials), refresh or session.", - "enum": [ - "guest", - "credentials", - "refresh", - "session" - ], - "type": "string" - } + "approaching_discount": { + "description": "Document representing a note to an object.", + "properties": { + "condition_threshold": { + "description": "The total amount needed to receive the discount.", + "format": "double", + "type": "number" + }, + "discount": { + "$ref": "#/definitions/discount", + "description": "The discount the customer can receive if eligible." + }, + "merchandise_total": { + "description": "The amount the customer basket contributes towards the purchase condition.", + "format": "double", + "type": "number" + }, + "promotion_link": { + "$ref": "#/definitions/promotion_link", + "description": "The link to details of the promotion associated with this discount." + }, + "shipment_id": { + "description": "The unique id of the shipment the discount relates to.", + "type": "string" + }, + "shipping_methods": { + "description": "The shipping methods the promotion relates to.", + "items": { + "$ref": "#/definitions/shipping_method" }, - "required": [ - "type" - ] - }, - "basket": { - "description": "Document representing a basket.\n ", - "properties": { - "adjusted_merchandize_total_tax": { - "description": "The products tax after discounts applying in purchase currency.\n\n Adjusted merchandize prices represent the sum of product prices before\n services such as shipping have been added, but after adjustment from\n promotions have been added.", - "format": "double", - "type": "number" - }, - "adjusted_shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container after\n shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "agent_basket": { - "description": "Is the basket created by an agent?", - "type": "boolean" - }, - "basket_id": { - "description": "The unique identifier for the basket.", - "type": "string" - }, - "billing_address": { - "$ref": "#/definitions/order_address", - "description": "The billing address. This property is part of basket checkout information only." - }, - "bonus_discount_line_items": { - "description": "The bonus discount line items of the line item container.", - "items": { - "$ref": "#/definitions/bonus_discount_line_item" - }, - "type": "array" - }, - "channel_type": { - "description": "The sales channel for the order.", - "enum": [ - "storefront", - "callcenter", - "marketplace", - "dss", - "store", - "pinterest", - "twitter", - "facebookads", - "subscriptions", - "onlinereservation", - "customerservicecenter", - "instagramcommerce" - ], - "x-enum-labels": [ - { - "default": "Storefront" - }, - { - "default": "Call Center" - }, - { - "default": "Marketplace" - }, - { - "default": "DSS" - }, - { - "default": "Store" - }, - { - "default": "Pinterest" - }, - { - "default": "Twitter" - }, - { - "default": "Facebook Ads" - }, - { - "default": "Subscriptions" - }, - { - "default": "Online Reservation" - }, - { - "default": "Customer Service Center" - }, - { - "default": "Instagram Commerce" - } - ], - "x-label": { - "default": "Channel Type" - }, - "type": "string" - }, - "coupon_items": { - "description": "The sorted array of coupon items. This array can be empty.", - "items": { - "$ref": "#/definitions/coupon_item" - }, - "type": "array" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "currency": { - "description": "The ISO 4217 mnemonic code of the currency.", - "type": "string" - }, - "customer_info": { - "$ref": "#/definitions/customer_info", - "description": "The customer information for logged in customers. This property is part of basket checkout information only." - }, - "gift_certificate_items": { - "description": "The sorted array of gift certificate line items. This array can be empty.", - "items": { - "$ref": "#/definitions/gift_certificate_item" - }, - "type": "array" - }, - "inventory_reservation_expiry": { - "description": "", - "format": "date-time", - "x-label": { - "default": "Inventory Reservation Expiry" - }, - "type": "string" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "merchandize_total_tax": { - "description": "The products total tax in purchase currency.\n\n Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have\n been added.", - "format": "double", - "type": "number" - }, - "notes": { - "$ref": "#/definitions/simple_link", - "description": "The notes for the line item container." - }, - "order_price_adjustments": { - "description": "The array of order level price adjustments. This array can be empty.", - "items": { - "$ref": "#/definitions/price_adjustment" - }, - "type": "array" - }, - "order_total": { - "description": "The total price of the order, including products, shipping and tax. This property is part of basket checkout\n information only.", - "format": "double", - "x-label": { - "default": "Order Total" - }, - "type": "number" - }, - "payment_instruments": { - "description": "The payment instruments list for the order.", - "items": { - "$ref": "#/definitions/order_payment_instrument" - }, - "type": "array" - }, - "product_items": { - "description": "The sorted array of product items (up to a maximum of 50 items). This array can be empty.", - "items": { - "$ref": "#/definitions/product_item" - }, - "type": "array" - }, - "product_sub_total": { - "description": "The total price of all product items after all product discounts.\n Depending on taxation policy the returned price is net or gross.", - "format": "double", - "type": "number" - }, - "product_total": { - "description": "The total price of all product items after all product and order discounts.\n Depending on taxation policy the returned price is net or gross.", - "format": "double", - "type": "number" - }, - "shipments": { - "description": "The array of shipments. This property is part of basket checkout information only.", - "items": { - "$ref": "#/definitions/shipment" - }, - "type": "array" - }, - "shipping_items": { - "description": "The sorted array of shipping items. This array can be empty.", - "items": { - "$ref": "#/definitions/shipping_item" - }, - "type": "array" - }, - "shipping_total": { - "description": "The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes\n tax if taxation policy is gross. This property is part of basket checkout information only.", - "format": "double", - "type": "number" - }, - "shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container before\n shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "source_code": { - "description": "Gets the source code assigned to this basket.", - "x-label": { - "default": "Source Code" - }, - "type": "string" - }, - "tax_total": { - "description": "The total tax amount of the order. This property is part of basket checkout information only.", - "format": "double", - "type": "number" - }, - "taxation": { - "description": "The taxation the line item container is based on.", - "enum": [ - "gross", - "net" - ], - "type": "string" - } - } - }, - "basket_payment_instrument_request": { - "description": "Document representing a basket payment instrument request.", - "properties": { - "amount": { - "description": "The payment transaction amount.", - "format": "double", - "x-label": { - "default": "Amount" - }, - "type": "number" - }, - "bank_routing_number": { - "description": "The bank routing number.", - "maxLength": 256, - "type": "string" - }, - "customer_payment_instrument_id": { - "description": "The id of a customer payment instrument.", - "type": "string" - }, - "gift_certificate_code": { - "description": "The gift certificate code.", - "x-label": { - "default": "Gift Code" - }, - "maxLength": 256, - "type": "string" - }, - "payment_bank_account": { - "$ref": "#/definitions/payment_bank_account_request", - "description": "The payment bank account request data." - }, - "payment_card": { - "$ref": "#/definitions/order_payment_card_request", - "description": "The payment card." - }, - "payment_method_id": { - "description": "The payment method id. Optional if a customer payment instrument id is specified.", - "maxLength": 256, - "type": "string" - } - } - }, - "baskets_result": { - "description": "Result document containing an array of baskets.", - "properties": { - "baskets": { - "description": "The list of baskets for a customer.", - "items": { - "$ref": "#/definitions/basket" - }, - "type": "array" - }, - "total": { - "description": "The total number of baskets.", - "format": "int32", - "type": "integer" - } - } - }, - "bonus_discount_line_item": { - "description": "Document representing a bonus discount line item", - "properties": { - "bonus_products": { - "description": "The list of links to the bonus products the customer can choose from.", - "items": { - "$ref": "#/definitions/product_details_link" - }, - "type": "array" - }, - "coupon_code": { - "description": "The coupon code that triggered the promotion, if applicable.", - "type": "string" - }, - "id": { - "description": "The ID of the line item.", - "type": "string" - }, - "max_bonus_items": { - "description": "The maximum number of bonus items the user can select for this promotion.", - "format": "int32", - "type": "integer" - }, - "promotion_id": { - "description": "The ID of the promotion which triggered the creation of the line item.", - "type": "string" - } - } - }, - "bool_filter": { - "description": "Document representing a boolean filter.\n ", - "properties": { - "filters": { - "description": "A list of filters, which are logically combined by an operator.", - "items": { - "$ref": "#/definitions/filter" - }, - "x-sub_types": { - "range_filter": "#/definitions/range_filter", - "bool_filter": "#/definitions/bool_filter", - "query_filter": "#/definitions/query_filter", - "term_filter": "#/definitions/term_filter", - "range2_filter": "#/definitions/range2_filter" - }, - "type": "array" - }, - "operator": { - "description": "The logical operator the filters are combined with.", - "enum": [ - "and", - "or", - "not" - ], - "type": "string" - } + "type": "array" + }, + "type": { + "description": "The type of the approaching discount (\"order\" or \"shipping\").", + "type": "string" + } + } + }, + "approaching_discount_result": { + "description": "A result of a approaching discount request.", + "properties": { + "approaching_discounts": { + "description": "Lists approaching discounts.", + "items": { + "$ref": "#/definitions/approaching_discount" }, - "required": [ - "operator" - ] - }, - "bool_query": { - "description": "A boolean query allows to construct full logical expression trees consisting of other queries (usually term and text\n queries). A boolean query basically has 3 sets of clauses that 'must', 'should' and / or 'must not' match. If 'must',\n 'must_not', or 'should' appear in the same boolean query, they are combined logically using the AND operator.\n ", - "properties": { - "must": { - "description": "List of queries, which must match.", - "items": { - "$ref": "#/definitions/query" - }, - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - }, - "type": "array" - }, - "must_not": { - "description": "List of queries, which must not match.", - "items": { - "$ref": "#/definitions/query" - }, - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - }, - "type": "array" - }, - "should": { - "description": "List of queries, which should match.", - "items": { - "$ref": "#/definitions/query" - }, - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - }, - "type": "array" - } - } - }, - "bundled_product": { - "description": "Document representing a bundled product within a product bundle.", - "properties": { - "id": { - "type": "string" - }, - "product": { - "$ref": "#/definitions/product", - "description": "The product being bundled." - }, - "quantity": { - "description": "For the product being bundled, the quantity added to the bundle.", - "format": "double", - "type": "number" - } - } - }, - "category": { - "description": "Document representing a category.", - "properties": { - "categories": { - "description": "Array of subcategories. Can be empty.", - "items": { - "$ref": "#/definitions/category" - }, - "type": "array" - }, - "description": { - "description": "The localized description of the category.", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "id": { - "description": "The id of the category.", - "x-label": { - "default": "ID" - }, - "type": "string" - }, - "image": { - "description": "The URL to the category image.", - "x-label": { - "default": "Standard Image" - }, - "type": "string" - }, - "name": { - "description": "The localized name of the category.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "page_description": { - "description": "The localized page description of the category.", - "x-label": { - "default": "Page Description" - }, - "type": "string" - }, - "page_keywords": { - "description": "The localized page keywords of the category.", - "x-label": { - "default": "Page Keywords" - }, - "type": "string" - }, - "page_title": { - "description": "The localized page title of the category.", - "x-label": { - "default": "Page Title" - }, - "type": "string" - }, - "parent_category_id": { - "description": "The id of the parent category.", - "type": "string" - }, - "thumbnail": { - "description": "The URL to the category thumbnail.", - "x-label": { - "default": "Thumbnail Image" - }, - "type": "string" - } - } - }, - "category_result": { - "description": "Result document containing an array of categories.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of category documents.", - "items": { - "$ref": "#/definitions/category" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "content": { - "description": "Document representing a content asset.", - "properties": { - "description": { - "description": "The localized content asset description.", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "id": { - "description": "The id of the content asset.", - "x-label": { - "default": "ID" - }, - "maxLength": 256, - "minLength": 1, - "type": "string" - }, - "name": { - "description": "The localized content asset name.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "page_description": { - "description": "The localized content asset page description.", - "x-label": { - "default": "Page Description" - }, - "type": "string" - }, - "page_keywords": { - "description": "The localized content asset page description.", - "x-label": { - "default": "Page Keywords" - }, - "type": "string" - }, - "page_title": { - "description": "The localized content asset page title.", - "x-label": { - "default": "Page Title" - }, - "type": "string" - } + "type": "array" + } + } + }, + "auth_request": { + "description": "Document representing the authentication request type.", + "properties": { + "type": { + "description": "Type of authentication request: guest, login (credentials), refresh or session.", + "enum": [ + "guest", + "credentials", + "refresh", + "session" + ], + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "basket": { + "description": "Document representing a basket.\n ", + "properties": { + "adjusted_merchandize_total_tax": { + "description": "The products tax after discounts applying in purchase currency.\n\n Adjusted merchandize prices represent the sum of product prices before\n services such as shipping have been added, but after adjustment from\n promotions have been added.", + "format": "double", + "type": "number" + }, + "adjusted_shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container after\n shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "agent_basket": { + "description": "Is the basket created by an agent?", + "type": "boolean" + }, + "basket_id": { + "description": "The unique identifier for the basket.", + "type": "string" + }, + "billing_address": { + "$ref": "#/definitions/order_address", + "description": "The billing address. This property is part of basket checkout information only." + }, + "bonus_discount_line_items": { + "description": "The bonus discount line items of the line item container.", + "items": { + "$ref": "#/definitions/bonus_discount_line_item" }, - "required": [ - "id" - ] - }, - "content_folder": { - "description": "Document representing a content folder.", - "properties": { - "description": { - "description": "The localized content folder description.", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "folders": { - "description": "The array of content subfolders. This array can be empty.", - "items": { - "$ref": "#/definitions/content_folder" - }, - "type": "array" - }, - "id": { - "description": "The id of the content folder.", - "x-label": { - "default": "ID" - }, - "maxLength": 256, - "minLength": 1, - "type": "string" - }, - "name": { - "description": "The localized content folder name.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "page_description": { - "description": "The localized content folder page description.", - "x-label": { - "default": "Page Description" - }, - "type": "string" - }, - "page_keywords": { - "description": "The localized content folder page description.", - "x-label": { - "default": "Page Keywords" - }, - "type": "string" - }, - "page_title": { - "description": "The localized content folder page title.", - "x-label": { - "default": "Page Title" - }, - "type": "string" - }, - "parent_folder_id": { - "description": "The id of the parent content folder.", - "type": "string" - } + "type": "array" + }, + "c_sessionAddressBook": { + "format": "text", + "x-label": { + "default": "Session Address Book" }, - "required": [ - "id" - ] - }, - "content_folder_result": { - "description": "Result document containing an array of content folders.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of content folder documents.", - "items": { - "$ref": "#/definitions/content_folder" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "content_result": { - "description": "Result document containing an array of content assets.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of content assets.", - "items": { - "$ref": "#/definitions/content" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "content_search_refinement": { - "description": "Document representing a search refinement attribute.", - "properties": { - "attribute_id": { - "description": "The id of the search refinement attribute. In the case of an attribute refinement, this is the\n attribute id. Custom attributes are marked by the prefix \"c_\".", - "type": "string" - }, - "label": { - "description": "The localized label of the refinement.", - "type": "string" - }, - "values": { - "description": "The sorted array of refinement values. The array can be empty.", - "items": { - "$ref": "#/definitions/content_search_refinement_value" - }, - "type": "array" - } + "type": "string" + }, + "channel_type": { + "description": "The sales channel for the order.\n \n This is a read-only attribute that can't be modified by an OCAPI call. For OCAPI, the sales channel is determined\n based on the client ID and token used for the OCAPI call. Usually, a customer-based authentication sets the\n channel to Storefront, and an agent-based authentication sets it to CallCenter. Using applications that use other\n client IDs for OCAPI calls, like Customer Service Center, will set different channel types. To modify the channel\n type in OCAPI, use a hook. *\n ", + "enum": [ + "storefront", + "callcenter", + "marketplace", + "dss", + "store", + "pinterest", + "twitter", + "facebookads", + "subscriptions", + "onlinereservation", + "customerservicecenter", + "instagramcommerce" + ], + "x-enum-labels": [ + { + "default": "Storefront" + }, + { + "default": "Call Center" + }, + { + "default": "Marketplace" + }, + { + "default": "DSS" + }, + { + "default": "Store" + }, + { + "default": "Pinterest" + }, + { + "default": "Twitter" + }, + { + "default": "Facebook Ads" + }, + { + "default": "Subscriptions" + }, + { + "default": "Online Reservation" + }, + { + "default": "Customer Service Center" + }, + { + "default": "Instagram Commerce" + } + ], + "x-label": { + "default": "Channel Type" }, - "required": [ - "attribute_id" - ] - }, - "content_search_refinement_value": { - "description": "Document representing a search refinement value.", - "properties": { - "description": { - "description": "The localized description of the refinement value.", - "type": "string" - }, - "hit_count": { - "description": "The number of search hits (0 or more) when selecting the refinement value.", - "format": "int32", - "type": "integer" - }, - "label": { - "description": "The localized label of the refinement value.", - "type": "string" - }, - "presentation_id": { - "description": "The optional presentation id associated with the refinement value.\n The presentation id can be used, for example, to associate an id with\n an HTML widget.", - "type": "string" - }, - "value": { - "description": "The refinement value. In the case of an attribute refinement, this is the bucket,\n the attribute value, or a value range. In the case of a content folder refinement,\n this is the folder id.", - "type": "string" - }, - "values": { - "description": "The array of hierarchical refinement values. This array can be empty.", - "items": { - "$ref": "#/definitions/content_search_refinement_value" - }, - "type": "array" - } - } - }, - "content_search_result": { - "description": "Document representing a content search result.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "items": { - "type": "object" - }, - "type": "array" - }, - "hits": { - "description": "The sorted array of search hits. Can be empty.", - "items": { - "$ref": "#/definitions/content" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "query": { - "description": "The query String that was searched for.", - "type": "string" - }, - "refinements": { - "description": "The sorted array of search refinements. Can be empty.", - "items": { - "$ref": "#/definitions/content_search_refinement" - }, - "type": "array" - }, - "selected_refinements": { - "additionalProperties": { - "type": "string" - }, - "description": "Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL.", - "type": "object" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "coupon_item": { - "description": "Document representing a coupon item.", - "properties": { - "code": { - "description": "The coupon code.", - "maxLength": 256, - "type": "string" - }, - "coupon_item_id": { - "description": "The coupon item id.", - "type": "string" - }, - "status_code": { - "description": "The status of the coupon item.", - "enum": [ - "coupon_code_already_in_basket", - "coupon_code_already_redeemed", - "coupon_code_unknown", - "coupon_disabled", - "redemption_limit_exceeded", - "customer_redemption_limit_exceeded", - "timeframe_redemption_limit_exceeded", - "no_active_promotion", - "coupon_already_in_basket", - "no_applicable_promotion", - "applied", - "adhoc" - ], - "type": "string" - }, - "valid": { - "description": "A flag indicating whether the coupon item is valid. A coupon line item is valid if\n the status code is 'applied' or 'no_applicable_promotion'.", - "type": "boolean" - } + "readOnly": true, + "type": "string" + }, + "coupon_items": { + "description": "The sorted array of coupon items. This array can be empty.", + "items": { + "$ref": "#/definitions/coupon_item" }, - "required": [ - "code" - ] - }, - "custom_object": { - "description": "Document representing a custom object that contains all defined custom attributes for its\n object type.", - "properties": { - "key_property": { - "description": "The name of the key property for the custom object.", - "type": "string" - }, - "key_value_integer": { - "description": "The id of the custom object when the type of the key is Integer.", - "format": "int32", - "type": "integer" - }, - "key_value_string": { - "description": "The id of the custom object when the type of the key is String.", - "type": "string" - }, - "object_type": { - "description": "The id of the object type.", - "maxLength": 256, - "type": "string" - } - } - }, - "customer": { - "description": "Document representing a customer.", - "properties": { - "addresses": { - "description": "The customer's addresses.", - "items": { - "$ref": "#/definitions/customer_address" - }, - "x-label": { - "default": "Addresses" - }, - "type": "array" - }, - "auth_type": { - "description": "The customer's authorization type (indicates if the customer is a guest\n or a registered customer).", - "enum": [ - "guest", - "registered" - ], - "x-label": { - "default": "Auth Type" - }, - "type": "string" - }, - "birthday": { - "description": "The customer's birthday.", - "format": "date", - "x-label": { - "default": "Birthday" - }, - "type": "string" - }, - "company_name": { - "description": "The customer's company name.", - "x-label": { - "default": "Company" - }, - "maxLength": 256, - "type": "string" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "customer_id": { - "description": "The customer's number (id). Both registered and guest customers have a\n customer id.", - "x-label": { - "default": "UUID" - }, - "maxLength": 28, - "type": "string" - }, - "customer_no": { - "description": "The customer's number (id). Only a registered customer has a customer\n number.", - "x-label": { - "default": "Customer No" - }, - "maxLength": 100, - "type": "string" - }, - "email": { - "description": "The customer's email address.", - "format": "email", - "x-label": { - "default": "Email" - }, - "maxLength": 256, - "type": "string" - }, - "enabled": { - "description": "A flag indicating whether this customer is is enabled and can log in.", - "x-label": { - "default": "Enabled" - }, - "type": "boolean" - }, - "fax": { - "description": "The customer's fax number. The length is restricted to 32 characters.", - "x-label": { - "default": "Fax Number" - }, - "maxLength": 32, - "type": "string" - }, - "first_name": { - "description": "The customer's first name.", - "x-label": { - "default": "First Name" - }, - "maxLength": 256, - "type": "string" - }, - "gender": { - "description": "The customer's gender.", - "enum": [ - 1, - 2 - ], - "x-enum-labels": [ - { - "default": "Male" - }, - { - "default": "Female" - } - ], - "format": "int32", - "x-label": { - "default": "Gender" - }, - "type": "integer" - }, - "job_title": { - "description": "The customer's job title.", - "x-label": { - "default": "Job Title" - }, - "maxLength": 256, - "type": "string" - }, - "last_login_time": { - "description": "The time when the customer last logged in.", - "format": "date-time", - "x-label": { - "default": "Last Login Time" - }, - "type": "string" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "last_name": { - "description": "The customer's last name.", - "x-label": { - "default": "Last Name" - }, - "maxLength": 256, - "type": "string" - }, - "last_visit_time": { - "description": "The time when the customer last visited.", - "format": "date-time", - "x-label": { - "default": "Last Visit Time" - }, - "type": "string" - }, - "login": { - "description": "The customer's login.", - "x-label": { - "default": "Login" - }, - "maxLength": 256, - "type": "string" - }, - "note": { - "description": "The customer's note.", - "x-label": { - "default": "Note" - }, - "type": "string" - }, - "payment_instruments": { - "description": "The customer's payment instruments.", - "items": { - "$ref": "#/definitions/customer_payment_instrument" - }, - "x-label": { - "default": "Payment Instruments" - }, - "type": "array" - }, - "phone_business": { - "description": "The customer's business phone number.", - "x-label": { - "default": "Business Phone" - }, - "maxLength": 32, - "type": "string" - }, - "phone_home": { - "description": "The customer's home phone number.", - "x-label": { - "default": "Home Phone" - }, - "maxLength": 32, - "type": "string" - }, - "phone_mobile": { - "description": "The customer's mobile phone number.", - "x-label": { - "default": "Mobile Phone" - }, - "maxLength": 32, - "type": "string" - }, - "preferred_locale": { - "description": "The customer's preferred locale.", - "x-label": { - "default": "Preferred Locale" - }, - "type": "string" - }, - "previous_login_time": { - "description": "The time when the customer logged in previously.", - "format": "date-time", - "x-label": { - "default": "Previous Login Time" - }, - "type": "string" - }, - "previous_visit_time": { - "description": "The time when the customer last visited the store.", - "format": "date-time", - "x-label": { - "default": "Previous Visit Time" - }, - "type": "string" - }, - "salutation": { - "description": "The salutation to use for the customer.", - "x-label": { - "default": "Salutation" - }, - "maxLength": 256, - "type": "string" - }, - "second_name": { - "description": "The customer's second name.", - "x-label": { - "default": "Second Name" - }, - "maxLength": 256, - "type": "string" - }, - "suffix": { - "description": "The customer's suffix (for example, \"Jr.\" or \"Sr.\").", - "x-label": { - "default": "Name Suffix" - }, - "maxLength": 256, - "type": "string" - }, - "title": { - "description": "The customer's title (for example, \"Mrs\" or \"Mr\").", - "x-label": { - "default": "Title" - }, - "maxLength": 256, - "type": "string" - } - } - }, - "customer_address": { - "description": "Document representing a customer address.", - "properties": { - "address1": { - "description": "The first address.", - "x-label": { - "default": "Address 1" - }, - "maxLength": 256, - "type": "string" - }, - "address2": { - "description": "The second address.", - "x-label": { - "default": "Address 2" - }, - "maxLength": 256, - "type": "string" - }, - "address_id": { - "description": "The id of the address as specified by account owner.", - "x-label": { - "default": "Address ID" - }, - "maxLength": 256, - "type": "string" - }, - "city": { - "description": "The city.", - "x-label": { - "default": "City" - }, - "maxLength": 256, - "type": "string" - }, - "company_name": { - "description": "The company name.", - "x-label": { - "default": "Company" - }, - "maxLength": 256, - "type": "string" - }, - "country_code": { - "description": "The two-letter ISO 3166-1 (Alpha-2) country code.", - "enum": [ - "US", - "FR", - "IT", - "JP", - "CN", - "GB" - ], - "x-enum-labels": [ - { - "default": "United States" - }, - { - "default": "France" - }, - { - "default": "Italy" - }, - { - "default": "Japan" - }, - { - "default": "China" - }, - { - "default": "United Kingdom" - } - ], - "x-label": { - "default": "Country" - }, - "maxLength": 2, - "type": "string" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "first_name": { - "description": "The first name.", - "x-label": { - "default": "First Name" - }, - "maxLength": 256, - "type": "string" - }, - "full_name": { - "description": "The full name.", - "x-label": { - "default": "Full Name" - }, - "maxLength": 256, - "type": "string" - }, - "job_title": { - "description": "The job title.", - "x-label": { - "default": "Job Title" - }, - "maxLength": 256, - "type": "string" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "last_name": { - "description": "The last name.", - "x-label": { - "default": "Last Name" - }, - "maxLength": 256, - "type": "string" - }, - "phone": { - "description": "The phone number.", - "x-label": { - "default": "Contact Phone" - }, - "maxLength": 32, - "type": "string" - }, - "post_box": { - "description": "The post box.", - "x-label": { - "default": "Post Box" - }, - "maxLength": 256, - "type": "string" - }, - "postal_code": { - "description": "The postal code.", - "x-label": { - "default": "Postal Code" - }, - "maxLength": 256, - "type": "string" - }, - "preferred": { - "description": "The preferred attribute.", - "x-label": { - "default": "Preferred" - }, - "type": "boolean" - }, - "salutation": { - "description": "The salutation.", - "x-label": { - "default": "Salutation" - }, - "maxLength": 256, - "type": "string" - }, - "second_name": { - "description": "The second name.", - "x-label": { - "default": "Second Name" - }, - "maxLength": 256, - "type": "string" - }, - "state_code": { - "description": "The state code.", - "x-label": { - "default": "State" - }, - "maxLength": 256, - "type": "string" - }, - "suffix": { - "description": "The suffix.", - "x-label": { - "default": "Suffix" - }, - "maxLength": 256, - "type": "string" - }, - "suite": { - "description": "The suite.", - "x-label": { - "default": "Suite No" - }, - "maxLength": 32, - "type": "string" - }, - "title": { - "description": "The title.", - "x-label": { - "default": "Title" - }, - "maxLength": 256, - "type": "string" - } - } - }, - "customer_address_link": { - "description": "* Result document of product list addresses.", - "properties": { - "address_id": { - "description": "The id of the address.", - "maxLength": 256, - "type": "string" - }, - "link": { - "description": "The target of the link.", - "type": "string" - }, - "title": { - "description": "The link title.", - "type": "string" - } - } - }, - "customer_address_result": { - "description": "Result document containing an array of customer addresses.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of customer address documents.", - "items": { - "$ref": "#/definitions/customer_address" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "select": { - "description": "", - "type": "string" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "customer_info": { - "description": "Document representing information used to identify a customer.", - "properties": { - "customer_id": { - "description": "The customer's number (id).", - "maxLength": 100, - "type": "string" - }, - "customer_name": { - "description": "", - "type": "string" - }, - "customer_no": { - "description": "The customer's number (id).", - "x-label": { - "default": "Customer No" - }, - "maxLength": 100, - "type": "string" - }, - "email": { - "description": "The customer's email address.", - "format": "email", - "x-label": { - "default": "Email" - }, - "type": "string" - } + "type": "array" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" }, - "required": [ - "email" - ] - }, - "customer_order_result": { - "description": "Result document containing an array of customer orders.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of customer order documents.", - "items": { - "$ref": "#/definitions/order" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "select": { - "description": "The fields that you want to select.", - "type": "string" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "customer_payment_card_request": { - "description": "Document representing a customer payment card request.", - "properties": { - "card_type": { - "description": "The payment card type (for example, 'Visa').", - "maxLength": 256, - "type": "string" - }, - "credit_card_token": { - "description": "A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the\n token store.", - "type": "string" - }, - "expiration_month": { - "description": "The month when the payment card expires.", - "format": "int32", - "type": "integer" - }, - "expiration_year": { - "description": "The year when the payment card expires.", - "format": "int32", - "type": "integer" - }, - "holder": { - "description": "The payment card holder.", - "maxLength": 256, - "type": "string" - }, - "issue_number": { - "description": "The payment card issue number.", - "maxLength": 256, - "type": "string" - }, - "number": { - "description": "The payment card number.", - "maxLength": 4000, - "type": "string" - }, - "valid_from_month": { - "description": "The payment card valid from month.", - "format": "int32", - "maximum": 12, - "minimum": 1, - "type": "integer" - }, - "valid_from_year": { - "description": "The payment card valid from year.", - "format": "int32", - "type": "integer" - } - } - }, - "customer_payment_instrument": { - "description": "Document representing a customer payment instrument.", - "properties": { - "bank_routing_number": { - "description": "The bank routing number.", - "x-label": { - "default": "Bank Routing Number" - }, - "maxLength": 256, - "type": "string" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "masked_gift_certificate_code": { - "description": "The masked gift certificate code.", - "type": "string" - }, - "payment_bank_account": { - "$ref": "#/definitions/payment_bank_account", - "description": "The payment bank account." - }, - "payment_card": { - "$ref": "#/definitions/payment_card", - "description": "The payment card." - }, - "payment_instrument_id": { - "description": "The payment instrument ID.", - "type": "string" - }, - "payment_method_id": { - "description": "The payment method id. Optional if a customer payment instrument id is specified.", - "maxLength": 256, - "type": "string" - } - } - }, - "customer_payment_instrument_request": { - "description": "Document representing a customer payment instrument request.", - "properties": { - "bank_routing_number": { - "description": "The bank routing number.", - "maxLength": 256, - "type": "string" - }, - "gift_certificate_code": { - "description": "The gift certificate code.", - "x-label": { - "default": "Gift Code" - }, - "maxLength": 256, - "type": "string" - }, - "payment_bank_account": { - "$ref": "#/definitions/payment_bank_account_request", - "description": "The payment bank account request data." - }, - "payment_card": { - "$ref": "#/definitions/customer_payment_card_request", - "description": "The customer payment card." - }, - "payment_method_id": { - "description": "The payment method id. Optional if a customer payment instrument id is specified.", - "maxLength": 256, - "type": "string" - } - } - }, - "customer_payment_instrument_result": { - "description": "Document representing a customer payment instrument result. The payment data contained is masked where needed for security purposes.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The customer payment instruments list.", - "items": { - "$ref": "#/definitions/customer_payment_instrument" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "customer_product_list": { - "description": "Document representing a customer product List.", - "properties": { - "co_registrant": { - "$ref": "#/definitions/customer_product_list_registrant", - "description": "The coRegistrant of this product list." - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "type": "string" - }, - "current_shipping_address_link": { - "$ref": "#/definitions/customer_address_link", - "description": "The resource link to the current shipping address of this customer product list." - }, - "customer_product_list_items": { - "description": "The list of customer product list items.", - "items": { - "$ref": "#/definitions/customer_product_list_item" - }, - "type": "array" - }, - "description": { - "description": "The description of this product list.", - "type": "string" - }, - "event": { - "$ref": "#/definitions/product_list_event", - "description": "The event of this product list." - }, - "id": { - "description": "The id of this product list.", - "minLength": 1, - "type": "string" - }, - "items_link": { - "$ref": "#/definitions/customer_product_list_item_link", - "description": "The resource link to the items of this customer product list." - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "type": "string" - }, - "name": { - "description": "The name of this product list.", - "type": "string" - }, - "post_event_shipping_address_link": { - "$ref": "#/definitions/customer_address_link", - "description": "The resource link to the post event shipping address of this customer product list." - }, - "product_list_shipping_address": { - "$ref": "#/definitions/product_list_shipping_address", - "description": "The abbreviated shipping address of this product list representing what anonymous user can see." - }, - "public": { - "description": "Indicates whether the owner made this product list available for access by other customers.", - "type": "boolean" - }, - "registrant": { - "$ref": "#/definitions/customer_product_list_registrant", - "description": "The registrant of this product list." - }, - "shipping_address_link": { - "$ref": "#/definitions/customer_address_link", - "description": "The resource link to the shipping address of this customer product list." - }, - "type": { - "description": "The type of the product list.", - "enum": [ - "wish_list", - "gift_registry", - "shopping_list", - "custom_1", - "custom_2", - "custom_3" - ], - "type": "string" - } - } - }, - "customer_product_list_item": { - "description": "Document representing a customer product list item.", - "properties": { - "id": { - "description": "The id of this product list item.", - "type": "string" - }, - "priority": { - "description": "The priority of the item.", - "format": "int32", - "type": "integer" - }, - "product": { - "$ref": "#/definitions/product", - "description": "The product item" - }, - "product_details_link": { - "$ref": "#/definitions/product_simple_link", - "description": "A link to the product." - }, - "product_id": { - "description": "The id of the product.", - "type": "string" - }, - "public": { - "description": "Is this product list item available for access by other customers?", - "type": "boolean" - }, - "purchased_quantity": { - "description": "The quantity of products already purchased.", - "format": "double", - "type": "number" - }, - "quantity": { - "description": "The quantity of this product list item.", - "format": "double", - "minimum": 0, - "type": "number" - }, - "type": { - "description": "The type of the item.", - "enum": [ - "product", - "gift_certificate" - ], - "type": "string" - } - } - }, - "customer_product_list_item_link": { - "description": "Document representing a customer product list item link.", - "properties": { - "link": { - "description": "The target of the link.", - "type": "string" - }, - "title": { - "description": "The link title.", - "type": "string" - } - } - }, - "customer_product_list_item_result": { - "description": "Document representing a customer product list items result.", - "properties": { - "count": { - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The customer product list items.", - "items": { - "$ref": "#/definitions/customer_product_list_item" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "format": "int32", - "type": "integer" - } - } - }, - "customer_product_list_registrant": { - "description": "Document representing a customer product list registrant.", - "properties": { - "email": { - "description": "The email of the registrant.", - "type": "string" - }, - "first_name": { - "description": "The first name of the registrant.", - "type": "string" - }, - "last_name": { - "description": "The last name of the registrant.", - "type": "string" - }, - "role": { - "description": "The role of the registrant.", - "type": "string" - } - } - }, - "customer_product_list_result": { - "description": "Document representing a customer product lists result.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The customer product lists.", - "items": { - "$ref": "#/definitions/customer_product_list" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "customer_registration": { - "description": "Document representing the registration information for a customer.", - "properties": { - "customer": { - "$ref": "#/definitions/customer", - "description": "The customer registration information.\n The mandatory properties for registration are login, last name and email." - }, - "password": { - "description": "The password to authorize.", - "maxLength": 4096, - "type": "string" - } + "readOnly": true, + "type": "string" + }, + "currency": { + "description": "The ISO 4217 mnemonic code of the currency.", + "type": "string" + }, + "customer_info": { + "$ref": "#/definitions/customer_info", + "description": "The customer information for logged in customers. This property is part of basket checkout information only." + }, + "gift_certificate_items": { + "description": "The sorted array of gift certificate line items. This array can be empty.", + "items": { + "$ref": "#/definitions/gift_certificate_item" }, - "required": [ - "customer" - ] - }, - "discount": { - "description": "Document representing a discount that was ", - "properties": { - "amount": { - "description": "The amount that is used with the amount and fixed price types.", - "format": "double", - "type": "number" - }, - "percentage": { - "description": "The percentage that is used with percentage types.", - "format": "double", - "type": "number" - }, - "price_book_id": { - "description": "The price book id that is used with some types.", - "type": "string" - }, - "type": { - "description": "The type of discount.", - "enum": [ - "percentage", - "fixed_price", - "amount", - "free", - "price_book_price", - "bonus", - "total_fixed_price", - "bonus_choice", - "percentage_off_options" - ], - "type": "string" - } + "type": "array" + }, + "inventory_reservation_expiry": { + "description": "", + "format": "date-time", + "x-label": { + "default": "Inventory Reservation Expiry" }, - "required": [ - "type" - ] - }, - "filter": { - "description": "Document representing a filter.\n " - }, - "filtered_query": { - "description": "A filtered query allows to filter the result of a (possibly complex) query using a (possibly complex) filter.\n ", - "properties": { - "filter": { - "$ref": "#/definitions/filter", - "description": "The (possibly complex) filter object.", - "x-sub_types": { - "range_filter": "#/definitions/range_filter", - "bool_filter": "#/definitions/bool_filter", - "query_filter": "#/definitions/query_filter", - "term_filter": "#/definitions/term_filter", - "range2_filter": "#/definitions/range2_filter" - } - }, - "query": { - "$ref": "#/definitions/query", - "description": "The query object.", - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - } - } + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" }, - "required": [ - "filter", - "query" - ] - }, - "gift_certificate": { - "description": "Document representing a gift certificate.", - "properties": { - "amount": { - "description": "The gift certificate original amount.", - "format": "double", - "type": "number" - }, - "balance": { - "description": "The gift certificate balance.", - "format": "double", - "type": "number" - }, - "description": { - "description": "The gift certificate description.", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "enabled": { - "description": "Is the gift certificate is enabled?", - "x-label": { - "default": "Enabled" - }, - "type": "boolean" - }, - "masked_gift_certificate_code": { - "description": "The masked gift certificate code.", - "x-label": { - "default": "Gift Certificate Code" - }, - "type": "string" - }, - "merchant_id": { - "description": "The merchant ID.", - "x-label": { - "default": "Merchant ID" - }, - "type": "string" - }, - "message": { - "description": "The message.", - "x-label": { - "default": "Message" - }, - "type": "string" - }, - "recipient_email": { - "description": "The recipient email.", - "x-label": { - "default": "Recipient Email" - }, - "type": "string" - }, - "recipient_name": { - "description": "The recipient name.", - "x-label": { - "default": "Recipient Name" - }, - "type": "string" - }, - "sender_name": { - "description": "The sender name.", - "x-label": { - "default": "Sender Name" - }, - "type": "string" - }, - "status": { - "description": "The gift certificate status.", - "enum": [ - "pending", - "issued", - "partially_redeemed", - "redeemed" - ], - "x-label": { - "default": "Status" - }, - "type": "string" - } - } - }, - "gift_certificate_item": { - "description": "A gift certificate item.", - "properties": { - "amount": { - "description": "The certificate item amount.", - "format": "double", - "type": "number" - }, - "gift_certificate_item_id": { - "description": "Id used to identify this item", - "type": "string" - }, - "message": { - "description": "The certificate's message.", - "x-label": { - "default": "Message" - }, - "maxLength": 4000, - "type": "string" - }, - "recipient_email": { - "description": "The recipient's email.", - "x-label": { - "default": "Recipient Email" - }, - "minLength": 1, - "type": "string" - }, - "recipient_name": { - "description": "The recipient's name.", - "x-label": { - "default": "Recipient Name" - }, - "type": "string" - }, - "sender_name": { - "description": "The sender's name.", - "x-label": { - "default": "Sender Name" - }, - "type": "string" - }, - "shipment_id": { - "description": "The shipment id.", - "type": "string" - } + "readOnly": true, + "type": "string" + }, + "merchandize_total_tax": { + "description": "The products total tax in purchase currency.\n\n Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have\n been added.", + "format": "double", + "type": "number" + }, + "notes": { + "$ref": "#/definitions/simple_link", + "description": "The notes for the line item container." + }, + "order_price_adjustments": { + "description": "The array of order level price adjustments. This array can be empty.", + "items": { + "$ref": "#/definitions/price_adjustment" }, - "required": [ - "amount", - "recipient_email" - ] - }, - "gift_certificate_request": { - "description": "Document representing a gift certificate request data.", - "properties": { - "gift_certificate_code": { - "description": "The gift certificate code.", - "type": "string" - } - } - }, - "image": { - "properties": { - "alt": { - "type": "string" - }, - "dis_base_link": { - "type": "string" - }, - "link": { - "minLength": 1, - "type": "string" - }, - "title": { - "type": "string" - } + "type": "array" + }, + "order_total": { + "description": "The total price of the order, including products, shipping and tax. This property is part of basket checkout\n information only.", + "format": "double", + "x-label": { + "default": "Order Total" }, - "required": [ - "link" - ] - }, - "image_group": { - "description": "Document representing an image group containing a list of images for a particular view type and an optional variation value.", - "properties": { - "images": { - "description": "The images of the image group.", - "items": { - "$ref": "#/definitions/image" - }, - "type": "array" - }, - "variation_attributes": { - "description": "Returns a list of variation attributes applying to this image group.", - "items": { - "$ref": "#/definitions/variation_attribute" - }, - "type": "array" - }, - "view_type": { - "description": "The image view type.", - "type": "string" - } - } - }, - "inventory": { - "description": "Document representing inventory information of the current product for a particular inventory list.", - "properties": { - "ats": { - "description": "The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the\n OCAPI setting 'product.inventory.ats.max_threshold'.", - "format": "double", - "type": "number" - }, - "backorderable": { - "description": "A flag indicating whether the product is back orderable.", - "type": "boolean" - }, - "id": { - "description": "The inventory id.", - "type": "string" - }, - "in_stock_date": { - "description": "A flag indicating the date when the product will be in stock.", - "format": "date-time", - "type": "string" - }, - "orderable": { - "description": "A flag indicating whether at least one of products is available to sell.", - "type": "boolean" - }, - "preorderable": { - "description": "A flag indicating whether the product is pre orderable.", - "type": "boolean" - }, - "stock_level": { - "description": "The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the\n OCAPI setting 'product.inventory.stock_level.max_threshold'.", - "format": "double", - "type": "number" - } + "type": "number" + }, + "payment_instruments": { + "description": "The payment instruments list for the order.", + "items": { + "$ref": "#/definitions/order_payment_instrument" }, - "required": [ - "id" - ] - }, - "locale": { - "description": "Document that describes a single locale.", - "properties": { - "country": { - "description": "The country/region code for this Locale, which will\n either be the empty string or an upercase ISO 3166 2-letter code.", - "type": "string" - }, - "default": { - "description": "Flag that is true if the locale is the default one to use if an explicit locale is not specified.", - "type": "boolean" - }, - "display_country": { - "description": "The name for the Locale's country that is appropriate for\n display to the user, or an empty string if no country has been specified\n for the Locale.\n The display country is returned in the language defined for this locale,\n and not in the language of the session locale.", - "type": "string" - }, - "display_language": { - "description": "The name for the Locale's language that is appropriate for\n display to the user, or an empty string if no language has been specified\n for the Locale.\n The display language is returned in the language defined for this locale,\n and not in the language of the session locale.", - "type": "string" - }, - "display_name": { - "description": "The name for the Locale that is appropriate for\n display to the user, or an empty string if no display name has been\n specified for the Locale.\n The display name is returned in the language defined for this locale,\n and not in the language of the session locale.", - "type": "string" - }, - "id": { - "description": "The identifier of the Locale. Contains a combination of the\n language and the country key, concatenated by \"-\", e.g. \"en-US\". This\n attribute is the primary key of the class.", - "type": "string" - }, - "iso3_country": { - "description": "The three-letter abbreviation for this Locale's country, or an\n empty string if no country has been specified for the Locale.", - "type": "string" - }, - "iso3_language": { - "description": "The three-letter abbreviation for this Locale's language, or an\n empty string if no language has been specified for the\n Locale.", - "type": "string" - }, - "language": { - "description": "The language code for this Locale, which will either\n be the empty string or a lowercase ISO 639 code.", - "type": "string" - }, - "name": { - "description": "The display name of the Locale. This uses the current\n request locale to localize the value.", - "type": "string" - } - } - }, - "master": { - "properties": { - "link": { - "minLength": 1, - "type": "string" - }, - "master_id": { - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "orderable": { - "type": "boolean" - }, - "price": { - "format": "double", - "type": "number" - }, - "price_max": { - "format": "double", - "type": "number" - }, - "prices": { - "additionalProperties": { - "format": "double", - "type": "number" - }, - "type": "object" - } + "type": "array" + }, + "product_items": { + "description": "The sorted array of product items (up to a maximum of 50 items). This array can be empty.", + "items": { + "$ref": "#/definitions/product_item" }, - "required": [ - "link", - "master_id" - ] - }, - "match_all_query": { - "description": "A match all query simply matches all documents (namespace and document type). This query comes in\n handy if you just want to filter a search result or really do not have any constraints.\n\n " - }, - "nested_query": { - "description": "Nested query allows to query upon nested documents that are part of a larger document. The classical example is a\n product master with variants (in one big document) where you want to constraint a search to masters that have\n variants that match multiple constraints (like color = blue AND size = M).\n ", - "properties": { - "path": { - "description": "", - "type": "string" - }, - "query": { - "$ref": "#/definitions/query", - "description": "", - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - } - }, - "score_mode": { - "description": "", - "enum": [ - "avg", - "total", - "max", - "none" - ], - "type": "string" - } + "type": "array" + }, + "product_sub_total": { + "description": "The total price of all product items after all product discounts.\n Depending on taxation policy the returned price is net or gross.", + "format": "double", + "type": "number" + }, + "product_total": { + "description": "The total price of all product items after all product and order discounts.\n Depending on taxation policy the returned price is net or gross.", + "format": "double", + "type": "number" + }, + "shipments": { + "description": "The array of shipments. This property is part of basket checkout information only.", + "items": { + "$ref": "#/definitions/shipment" }, - "required": [ - "path", - "query" - ] - }, - "note": { - "description": "Document representing a note to an object.", - "properties": { - "created_by": { - "description": "The author of the note.", - "type": "string" - }, - "creation_date": { - "description": "The creation date of the note.", - "format": "date-time", - "type": "string" - }, - "id": { - "description": "The ID of the note.", - "type": "string" - }, - "subject": { - "description": "The note's subject.", - "maxLength": 256, - "type": "string" - }, - "text": { - "description": "The note's text.", - "maxLength": 4000, - "type": "string" - } - } - }, - "notes_result": { - "description": "A result of a note request.\n\n Contains notes for an object - for example, for a basket.", - "properties": { - "notes": { - "description": "The notes for an object.", - "items": { - "$ref": "#/definitions/note" - }, - "type": "array" - } - } - }, - "option": { - "description": "Document representing a product option.", - "properties": { - "description": { - "description": "The localized description of the option.", - "type": "string" - }, - "id": { - "description": "The id of the option.", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "image": { - "description": "The URL to the option image.", - "type": "string" - }, - "name": { - "description": "The localized name of the option.", - "type": "string" - }, - "values": { - "description": "The array of option values. This array can be empty.", - "items": { - "$ref": "#/definitions/option_value" - }, - "type": "array" - } + "type": "array" + }, + "shipping_items": { + "description": "The sorted array of shipping items. This array can be empty.", + "items": { + "$ref": "#/definitions/shipping_item" }, - "required": [ - "id" - ] - }, - "option_item": { - "description": "Document representing an option item.", - "properties": { - "adjusted_tax": { - "description": "The tax of the product item after adjustments applying.", - "format": "double", - "type": "number" - }, - "base_price": { - "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", - "format": "double", - "type": "number" - }, - "bonus_discount_line_item_id": { - "description": "The id of the bonus discount line item this bonus product relates to.", - "type": "string" - }, - "bonus_product_line_item": { - "description": "A flag indicating whether the product item is a bonus.", - "type": "boolean" - }, - "bundled_product_items": { - "description": "The array of bundled product items. Can be empty.", - "items": { - "$ref": "#/definitions/product_item" - }, - "type": "array" - }, - "gift": { - "description": "Returns true if the item is a gift.", - "type": "boolean" - }, - "gift_message": { - "description": "The gift message.", - "type": "string" - }, - "inventory_id": { - "description": "The inventory list id associated with this item.", - "maxLength": 256, - "type": "string" - }, - "item_id": { - "description": "The item identifier. Use this to identify an item when updating the item quantity or creating a custom price\n adjustment for an item.", - "type": "string" - }, - "item_text": { - "description": "The text describing the item in more detail.", - "type": "string" - }, - "option_id": { - "description": "The id of the option.", - "maxLength": 256, - "type": "string" - }, - "option_items": { - "description": "The array of option items. This array can be empty.", - "items": { - "$ref": "#/definitions/option_item" - }, - "type": "array" - }, - "option_value_id": { - "description": "The id of the option value.", - "maxLength": 256, - "type": "string" - }, - "price": { - "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", - "format": "double", - "type": "number" - }, - "price_adjustments": { - "description": "Array of price adjustments. Can be empty.", - "items": { - "$ref": "#/definitions/price_adjustment" - }, - "type": "array" - }, - "price_after_item_discount": { - "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", - "format": "double", - "type": "number" - }, - "price_after_order_discount": { - "description": "The price of this product line item after considering all\n dependent price adjustments and prorating all order-level\n price adjustments. For net pricing the net price is returned. For gross\n pricing, the gross price is returned.", - "format": "double", - "type": "number" - }, - "product_id": { - "description": "", - "maxLength": 100, - "type": "string" - }, - "product_list_item": { - "$ref": "#/definitions/product_list_item_reference", - "description": "" - }, - "product_name": { - "description": "The name of the product.", - "type": "string" - }, - "quantity": { - "description": "The quantity of the products represented by this item.", - "format": "double", - "maximum": 999, - "minimum": 0, - "type": "number" - }, - "shipment_id": { - "description": "The id of the shipment which includes the product item.", - "type": "string" - }, - "shipping_item_id": { - "description": "The reference to the related shipping item if it exists. This is the case if for example when a surcharge is\n defined for individual products using a particular a shipping method.", - "type": "string" - }, - "tax": { - "description": "The tax of the product item before adjustments applying.", - "format": "double", - "type": "number" - }, - "tax_basis": { - "description": "The price used to calculate the tax for this product item.", - "format": "double", - "type": "number" - }, - "tax_class_id": { - "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", - "type": "string" - }, - "tax_rate": { - "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", - "format": "double", - "type": "number" - } + "type": "array" + }, + "shipping_total": { + "description": "The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes\n tax if taxation policy is gross. This property is part of basket checkout information only.", + "format": "double", + "type": "number" + }, + "shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container before\n shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "source_code": { + "description": "Gets the source code assigned to this basket.", + "x-label": { + "default": "Source Code" }, - "required": [ - "option_id", - "option_value_id" - ] - }, - "option_value": { - "description": "Document representing an option value.", - "properties": { - "default": { - "description": "A flag indicating whether this option value is the default one.", - "type": "boolean" - }, - "id": { - "description": "The id of the option value.", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "name": { - "description": "The localized name of the option value.", - "type": "string" - }, - "price": { - "description": "The effective price of this option value.", - "format": "double", - "type": "number" - } + "type": "string" + }, + "tax_total": { + "description": "The total tax amount of the order. This property is part of basket checkout information only.", + "format": "double", + "type": "number" + }, + "taxation": { + "description": "The taxation the line item container is based on.", + "enum": [ + "gross", + "net" + ], + "type": "string" + } + } + }, + "basket_payment_instrument_request": { + "description": "Document representing a basket payment instrument request.", + "properties": { + "amount": { + "description": "The payment transaction amount.", + "format": "double", + "x-label": { + "default": "Amount" }, - "required": [ - "id" - ] - }, - "order": { - "description": "Document representing an order.", - "properties": { - "adjusted_merchandize_total_tax": { - "description": "The products tax after discounts applying in purchase currency.\n\n Adjusted merchandize prices represent the sum of product prices before\n services such as shipping have been added, but after adjustment from\n promotions have been added.", - "format": "double", - "type": "number" - }, - "adjusted_shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container after\n shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "billing_address": { - "$ref": "#/definitions/order_address", - "description": "The billing address. This property is part of basket checkout information only." - }, - "bonus_discount_line_items": { - "description": "The bonus discount line items of the line item container.", - "items": { - "$ref": "#/definitions/bonus_discount_line_item" - }, - "type": "array" - }, - "channel_type": { - "description": "The sales channel for the order.", - "enum": [ - "storefront", - "callcenter", - "marketplace", - "dss", - "store", - "pinterest", - "twitter", - "facebookads", - "subscriptions", - "onlinereservation", - "customerservicecenter", - "instagramcommerce" - ], - "x-enum-labels": [ - { - "default": "Storefront" - }, - { - "default": "Call Center" - }, - { - "default": "Marketplace" - }, - { - "default": "DSS" - }, - { - "default": "Store" - }, - { - "default": "Pinterest" - }, - { - "default": "Twitter" - }, - { - "default": "Facebook Ads" - }, - { - "default": "Subscriptions" - }, - { - "default": "Online Reservation" - }, - { - "default": "Customer Service Center" - }, - { - "default": "Instagram Commerce" - } - ], - "x-label": { - "default": "Channel Type" - }, - "type": "string" - }, - "confirmation_status": { - "description": "The confirmation status of the order.", - "enum": [ - "not_confirmed", - "confirmed" - ], - "x-enum-labels": [ - { - "default": "NOTCONFIRMED" - }, - { - "default": "CONFIRMED" - } - ], - "x-label": { - "default": "Confirmation Status" - }, - "type": "string" - }, - "coupon_items": { - "description": "The sorted array of coupon items. This array can be empty.", - "items": { - "$ref": "#/definitions/coupon_item" - }, - "type": "array" - }, - "created_by": { - "description": "The name of the user who created the order.", - "x-label": { - "default": "Created By" - }, - "type": "string" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "currency": { - "description": "The ISO 4217 mnemonic code of the currency.", - "type": "string" - }, - "customer_info": { - "$ref": "#/definitions/customer_info", - "description": "The customer information for logged in customers. This property is part of basket checkout information only." - }, - "customer_name": { - "description": "The name of the customer associated with this order.", - "x-label": { - "default": "Customer Name" - }, - "type": "string" - }, - "export_status": { - "description": "The export status of the order.", - "enum": [ - "not_exported", - "exported", - "ready", - "failed" - ], - "x-enum-labels": [ - { - "default": "NOTEXPORTED" - }, - { - "default": "EXPORTED" - }, - { - "default": "EXPORTREADY" - }, - { - "default": "EXPORTFAILED" - } - ], - "x-label": { - "default": "Export Status" - }, - "type": "string" - }, - "external_order_status": { - "description": "The external status of the order.", - "x-label": { - "default": "External Order Status" - }, - "type": "string" - }, - "gift_certificate_items": { - "description": "The sorted array of gift certificate line items. This array can be empty.", - "items": { - "$ref": "#/definitions/gift_certificate_item" - }, - "type": "array" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "merchandize_total_tax": { - "description": "The products total tax in purchase currency.\n\n Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have\n been added.", - "format": "double", - "type": "number" - }, - "notes": { - "$ref": "#/definitions/simple_link", - "description": "The notes for the line item container." - }, - "order_no": { - "description": "The order number of the order.", - "x-label": { - "default": "Order No" - }, - "type": "string" - }, - "order_price_adjustments": { - "description": "The array of order level price adjustments. This array can be empty.", - "items": { - "$ref": "#/definitions/price_adjustment" - }, - "type": "array" - }, - "order_token": { - "description": "The order token used to secure the lookup of an order on base of the\n plain order number. The order token contains only URL safe characters.", - "type": "string" - }, - "order_total": { - "description": "The total price of the order, including products, shipping and tax. This property is part of basket checkout\n information only.", - "format": "double", - "x-label": { - "default": "Order Total" - }, - "type": "number" - }, - "payment_instruments": { - "description": "The payment instruments list for the order.", - "items": { - "$ref": "#/definitions/order_payment_instrument" - }, - "type": "array" - }, - "payment_status": { - "description": "The payment status of the order.", - "enum": [ - "not_paid", - "part_paid", - "paid" - ], - "x-enum-labels": [ - { - "default": "NOTPAID" - }, - { - "default": "PARTPAID" - }, - { - "default": "PAID" - } - ], - "x-label": { - "default": "Payment Status" - }, - "type": "string" - }, - "product_items": { - "description": "The sorted array of product items (up to a maximum of 50 items). This array can be empty.", - "items": { - "$ref": "#/definitions/product_item" - }, - "type": "array" - }, - "product_sub_total": { - "description": "The total price of all product items after all product discounts.\n Depending on taxation policy the returned price is net or gross.", - "format": "double", - "type": "number" - }, - "product_total": { - "description": "The total price of all product items after all product and order discounts.\n Depending on taxation policy the returned price is net or gross.", - "format": "double", - "type": "number" - }, - "shipments": { - "description": "The array of shipments. This property is part of basket checkout information only.", - "items": { - "$ref": "#/definitions/shipment" - }, - "type": "array" - }, - "shipping_items": { - "description": "The sorted array of shipping items. This array can be empty.", - "items": { - "$ref": "#/definitions/shipping_item" - }, - "type": "array" - }, - "shipping_status": { - "description": "The shipping status of the order.", - "enum": [ - "not_shipped", - "part_shipped", - "shipped" - ], - "x-enum-labels": [ - { - "default": "NOTSHIPPED" - }, - { - "default": "PARTSHIPPED" - }, - { - "default": "SHIPPED" - } - ], - "x-label": { - "default": "Shipping Status" - }, - "type": "string" - }, - "shipping_total": { - "description": "The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes\n tax if taxation policy is gross. This property is part of basket checkout information only.", - "format": "double", - "type": "number" - }, - "shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container before\n shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "site_id": { - "description": "The site where the order resides.", - "x-label": { - "default": "Site Id" - }, - "type": "string" - }, - "source_code": { - "description": "Gets the source code assigned to this basket.", - "x-label": { - "default": "Source Code" - }, - "type": "string" - }, - "status": { - "description": "The status of the order.", - "enum": [ - "created", - "new", - "open", - "completed", - "cancelled", - "replaced", - "failed" - ], - "x-enum-labels": [ - { - "default": "CREATED" - }, - { - "default": "NEW" - }, - { - "default": "OPEN" - }, - { - "default": "COMPLETED" - }, - { - "default": "CANCELLED" - }, - { - "default": "REPLACED" - }, - { - "default": "FAILED" - } - ], - "x-label": { - "default": "Status" - }, - "type": "string" - }, - "tax_total": { - "description": "The total tax amount of the order. This property is part of basket checkout information only.", - "format": "double", - "type": "number" - }, - "taxation": { - "description": "The taxation the line item container is based on.", - "enum": [ - "gross", - "net" - ], - "type": "string" - } - } - }, - "order_address": { - "description": "Document representing an order address.", - "properties": { - "address1": { - "description": "The first address.", - "x-label": { - "default": "Address 1" - }, - "type": "string" - }, - "address2": { - "description": "The second address.", - "x-label": { - "default": "Address 2" - }, - "type": "string" - }, - "city": { - "description": "The city.", - "x-label": { - "default": "City" - }, - "type": "string" - }, - "company_name": { - "description": "The company name.", - "x-label": { - "default": "Company" - }, - "type": "string" - }, - "country_code": { - "description": "The two-letter ISO 3166-1 (Alpha-2) country code.", - "enum": [ - "US", - "FR", - "IT", - "JP", - "CN", - "GB" - ], - "x-enum-labels": [ - { - "default": "United States" - }, - { - "default": "France" - }, - { - "default": "Italy" - }, - { - "default": "Japan" - }, - { - "default": "China" - }, - { - "default": "United Kingdom" - } - ], - "x-label": { - "default": "Country" - }, - "type": "string" - }, - "first_name": { - "description": "The first name.", - "x-label": { - "default": "First Name" - }, - "type": "string" - }, - "full_name": { - "description": "The full name.", - "x-label": { - "default": "Full Name" - }, - "type": "string" - }, - "id": { - "description": "Id used to identify this address", - "type": "string" - }, - "job_title": { - "description": "The job title.", - "x-label": { - "default": "Job Title" - }, - "type": "string" - }, - "last_name": { - "description": "The last name.", - "x-label": { - "default": "Last Name" - }, - "type": "string" - }, - "phone": { - "description": "The phone number.", - "x-label": { - "default": "Contact Phone" - }, - "type": "string" - }, - "post_box": { - "description": "The post box.", - "x-label": { - "default": "Post Box" - }, - "type": "string" - }, - "postal_code": { - "description": "The postal code.", - "x-label": { - "default": "Postal Code" - }, - "type": "string" - }, - "salutation": { - "description": "The salutation.", - "x-label": { - "default": "Salutation" - }, - "type": "string" - }, - "second_name": { - "description": "The second name.", - "x-label": { - "default": "Second Name" - }, - "type": "string" - }, - "state_code": { - "description": "The state code.", - "x-label": { - "default": "State" - }, - "type": "string" - }, - "suffix": { - "description": "The suffix.", - "x-label": { - "default": "Suffix" - }, - "type": "string" - }, - "suite": { - "description": "The suite.", - "x-label": { - "default": "Suite No" - }, - "type": "string" - }, - "title": { - "description": "The title.", - "x-label": { - "default": "Title" - }, - "type": "string" - } - } - }, - "order_payment_card_request": { - "description": "Document representing an order payment card request.", - "properties": { - "card_type": { - "description": "", - "x-label": { - "default": "Credit Card Type" - }, - "maxLength": 256, - "type": "string" - }, - "credit_card_token": { - "description": "", - "type": "string" - }, - "expiration_month": { - "description": "", - "format": "int32", - "x-label": { - "default": "Credit Card Expiration Month" - }, - "type": "integer" - }, - "expiration_year": { - "description": "", - "format": "int32", - "x-label": { - "default": "Credit Card Expiration Year" - }, - "type": "integer" - }, - "holder": { - "description": "", - "x-label": { - "default": "Credit Card Holder" - }, - "maxLength": 256, - "type": "string" - }, - "issue_number": { - "description": "", - "x-label": { - "default": "Credit Card Issue Number" - }, - "maxLength": 256, - "type": "string" - }, - "number": { - "description": "", - "x-label": { - "default": "Credit Card Number" - }, - "maxLength": 4000, - "type": "string" - }, - "security_code": { - "description": "The security code for the payment card.", - "x-label": { - "default": "CVC" - }, - "maxLength": 4, - "type": "string" - }, - "valid_from_month": { - "description": "", - "format": "int32", - "x-label": { - "default": "Credit Card Valid From Month" - }, - "maximum": 12, - "minimum": 1, - "type": "integer" - }, - "valid_from_year": { - "description": "", - "format": "int32", - "x-label": { - "default": "Credit Card Valid From Year" - }, - "type": "integer" - } - } - }, - "order_payment_instrument": { - "description": "Document representing an order payment instrument.", - "properties": { - "amount": { - "description": "The payment transaction amount.", - "format": "double", - "type": "number" - }, - "authorization_status": { - "$ref": "#/definitions/status", - "description": "The authorization status of the payment transaction." - }, - "bank_routing_number": { - "description": "The bank routing number.", - "x-label": { - "default": "Bank Routing Number" - }, - "maxLength": 256, - "type": "string" - }, - "masked_gift_certificate_code": { - "description": "The masked gift certificate code.", - "type": "string" - }, - "payment_bank_account": { - "$ref": "#/definitions/payment_bank_account", - "description": "The payment bank account." - }, - "payment_card": { - "$ref": "#/definitions/payment_card", - "description": "The payment card." - }, - "payment_instrument_id": { - "description": "The payment instrument ID.", - "type": "string" - }, - "payment_method_id": { - "description": "The payment method id. Optional if a customer payment instrument id is specified.", - "maxLength": 256, - "type": "string" - } - } - }, - "order_payment_instrument_request": { - "description": "Document representing an order payment instrument request.", - "properties": { - "amount": { - "description": "The payment transaction amount.", - "format": "double", - "x-label": { - "default": "Amount" - }, - "type": "number" - }, - "bank_routing_number": { - "description": "The bank routing number.", - "x-label": { - "default": "Bank Routing Number" - }, - "maxLength": 256, - "type": "string" - }, - "create_customer_payment_instrument": { - "description": "A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument\n is only created when the OrderPaymentInstrument was authorized successfully.", - "type": "boolean" - }, - "customer_payment_instrument_id": { - "description": "The id of a customer payment instrument.", - "type": "string" - }, - "gift_certificate_code": { - "description": "The gift certificate code.", - "x-label": { - "default": "Gift Code" - }, - "maxLength": 256, - "type": "string" - }, - "payment_bank_account": { - "$ref": "#/definitions/payment_bank_account_request", - "description": "The payment bank account request data." - }, - "payment_card": { - "$ref": "#/definitions/order_payment_card_request", - "description": "The payment card." - }, - "payment_method_id": { - "description": "The payment method id. Optional if a customer payment instrument id is specified.", - "maxLength": 256, - "type": "string" - } - } - }, - "order_search_hit": { - "description": "Document representing an order search hit.", - "properties": { - "data": { - "$ref": "#/definitions/order", - "description": "" - }, - "relevance": { - "description": "The hit's relevance score.", - "format": "double", - "type": "number" - } - } - }, - "order_search_request": { - "description": "Document representing an order search request.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "maximum": 200, - "minimum": 1, - "type": "integer" - }, - "expand": { - "description": "List of expansions to be applied to each search results. Expands are optional.", - "items": { - "type": "string" - }, - "type": "array" - }, - "query": { - "$ref": "#/definitions/query", - "description": "The query to apply", - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - } - }, - "select": { - "description": "The field to be selected.", - "type": "string" - }, - "sorts": { - "description": "The list of sort clauses configured for the search request. Sort clauses are optional.", - "items": { - "$ref": "#/definitions/sort" - }, - "type": "array" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - } + "type": "number" + }, + "bank_routing_number": { + "description": "The bank routing number.", + "maxLength": 256, + "type": "string" + }, + "customer_payment_instrument_id": { + "description": "The id of a customer payment instrument.", + "type": "string" + }, + "gift_certificate_code": { + "description": "The gift certificate code.", + "x-label": { + "default": "Gift Code" }, - "required": [ - "query" - ] - }, - "order_search_result": { - "description": "Document representing an order search result.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "items": { - "type": "object" - }, - "type": "array" - }, - "expand": { - "description": "The list of expands set for the search request. Expands are optional.", - "items": { - "type": "string" - }, - "type": "array" - }, - "hits": { - "description": "The sorted array of search hits. This array can be empty.", - "items": { - "$ref": "#/definitions/order_search_hit" - }, - "type": "array" - }, - "next": { - "$ref": "#/definitions/result_page", - "description": "The data that can be used (as parameters on the search request) to retrieve the next result page." - }, - "previous": { - "$ref": "#/definitions/result_page", - "description": "The data that can be used to retrieve the previous result page (as parameters on the search request)." - }, - "query": { - "$ref": "#/definitions/query", - "description": "The query passed into the search", - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - } - }, - "select": { - "description": "The fields that you want to select.", - "type": "string" - }, - "sorts": { - "description": "The list of sort clauses configured for the search request. Sort clauses are optional.", - "items": { - "$ref": "#/definitions/sort" - }, - "type": "array" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "password_change_request": { - "description": "Document representing a password change request.", - "properties": { - "current_password": { - "description": "The customer's current password.", - "maxLength": 4096, - "type": "string" - }, - "password": { - "description": "The customer's new password.", - "maxLength": 4096, - "type": "string" - } + "maxLength": 256, + "type": "string" + }, + "payment_bank_account": { + "$ref": "#/definitions/payment_bank_account_request", + "description": "The payment bank account request data." + }, + "payment_card": { + "$ref": "#/definitions/order_payment_card_request", + "description": "The payment card." + }, + "payment_method_id": { + "description": "The payment method id. Optional if a customer payment instrument id is specified.", + "maxLength": 256, + "type": "string" + } + } + }, + "basket_reference": { + "description": "Reference to a basket.", + "properties": { + "basket_id": { + "description": "The unique identifier for the basket.", + "type": "string" + }, + "customer_id": { + "description": "The unique identifier for the customer.", + "maxLength": 100, + "type": "string" + } + }, + "required": [ + "basket_id", + "customer_id" + ] + }, + "baskets_result": { + "description": "Result document containing an array of baskets.", + "properties": { + "baskets": { + "description": "The list of baskets for a customer.", + "items": { + "$ref": "#/definitions/basket" }, - "required": [ - "current_password", - "password" - ] - }, - "password_reset": { - "description": "Document representing a password reset request.", - "properties": { - "identification": { - "description": "The customer's login or the customer's email depending on the type value.", - "type": "string" - }, - "type": { - "description": "The type of customer identification.", - "enum": [ - "email", - "login" - ], - "type": "string" - } - } - }, - "payment_bank_account": { - "description": "Document representing a payment bank account.", - "properties": { - "drivers_license_last_digits": { - "description": "The last 4 characters of the decrypted driver's license number of the bank account associated with this payment\n instrument.", - "maxLength": 256, - "type": "string" - }, - "drivers_license_state_code": { - "description": "The driver license state code.", - "x-label": { - "default": "Bank Account Drivers License State" - }, - "maxLength": 256, - "type": "string" - }, - "holder": { - "description": "The holder of the bank account.", - "x-label": { - "default": "Bank Account Holder" - }, - "maxLength": 256, - "type": "string" - }, - "masked_drivers_license": { - "description": "The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*'\n character.", - "maxLength": 256, - "type": "string" - }, - "masked_number": { - "description": "The bank account masked number.", - "maxLength": 256, - "type": "string" - }, - "number_last_digits": { - "description": "The last digits of the bank account number.", - "maxLength": 256, - "type": "string" - } - } - }, - "payment_bank_account_request": { - "description": "Document representing a payment bank account request.", - "properties": { - "drivers_license": { - "description": "The drivers license.", - "x-label": { - "default": "Bank Account Drivers License" - }, - "maxLength": 256, - "type": "string" - }, - "drivers_license_state_code": { - "description": "The driver license state code.", - "x-label": { - "default": "Bank Account Drivers License State" - }, - "maxLength": 256, - "type": "string" - }, - "holder": { - "description": "The holder of the bank account.", - "x-label": { - "default": "Bank Account Holder" - }, - "maxLength": 256, - "type": "string" - }, - "number": { - "description": "The payment bank account number.", - "x-label": { - "default": "Bank Account Number" - }, - "maxLength": 256, - "type": "string" - } - } - }, - "payment_card": { - "description": "Document representing a payment card.", - "properties": { - "card_type": { - "description": "The payment card type (for example, 'Visa').", - "x-label": { - "default": "Type" - }, - "maxLength": 256, - "type": "string" - }, - "credit_card_expired": { - "description": "A flag indicating if the credit card is expired.", - "type": "boolean" - }, - "credit_card_token": { - "description": "A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the\n token store.", - "type": "string" - }, - "expiration_month": { - "description": "The month when the payment card expires.", - "format": "int32", - "type": "integer" - }, - "expiration_year": { - "description": "The year when the payment card expires.", - "format": "int32", - "type": "integer" - }, - "holder": { - "description": "The payment card holder.", - "maxLength": 256, - "type": "string" - }, - "issue_number": { - "description": "The payment card issue number.", - "maxLength": 256, - "type": "string" - }, - "masked_number": { - "description": "The masked credit card number.", - "maxLength": 4000, - "type": "string" - }, - "number_last_digits": { - "description": "The last digits of credit card number.", - "maxLength": 4000, - "type": "string" - }, - "valid_from_month": { - "description": "The payment card valid from month.", - "format": "int32", - "maximum": 12, - "minimum": 1, - "type": "integer" - }, - "valid_from_year": { - "description": "The payment card valid from year.", - "format": "int32", - "type": "integer" - } - } - }, - "payment_card_spec": { - "description": "Document representing the specification for a payment card.\n ", - "properties": { - "card_type": { - "description": "The type of the payment card.", - "type": "string" - }, - "checksum_verification_enabled": { - "description": "A flag indicating whether the card number is verified using the Luhn checksum algorithm.", - "type": "boolean" - }, - "description": { - "description": "The localized description of the payment card.", - "type": "string" - }, - "image": { - "description": "The URL to the image that represents the payment card.", - "type": "string" - }, - "name": { - "description": "The localized name of the payment card.", - "type": "string" - }, - "number_lengths": { - "description": "The sorted list of number lengths (individual lengths as well as\n length ranges).", - "items": { - "type": "string" - }, - "type": "array" - }, - "number_prefixes": { - "description": "The sorted list of number prefixes (individual prefixes as well\n as prefix ranges).", - "items": { - "type": "string" - }, - "type": "array" - }, - "security_code_length": { - "description": "The length of the security code for this card.", - "format": "int32", - "type": "integer" - } - } - }, - "payment_method": { - "description": "Document representing a payment method.", - "properties": { - "cards": { - "description": "The sorted array of payment cards (included only when the system payment method is CREDIT_CARD).", - "items": { - "$ref": "#/definitions/payment_card_spec" - }, - "type": "array" - }, - "description": { - "description": "The localized description of the payment method or card.", - "type": "string" - }, - "id": { - "description": "The id of the payment method or card.", - "maxLength": 256, - "type": "string" - }, - "image": { - "description": "The URL to the image that represents the payment method or card.", - "type": "string" - }, - "name": { - "description": "The localized name of the payment method or card.", - "type": "string" - } + "type": "array" + }, + "total": { + "description": "The total number of baskets.", + "format": "int32", + "type": "integer" + } + } + }, + "bonus_discount_line_item": { + "description": "Document representing a bonus discount line item", + "properties": { + "bonus_products": { + "description": "The list of links to the bonus products the customer can choose from.", + "items": { + "$ref": "#/definitions/product_details_link" }, - "required": [ - "id" - ] - }, - "payment_method_result": { - "description": "Result document of payment methods applicable for a basket.", - "properties": { - "applicable_payment_methods": { - "description": "The applicable payment methods.", - "items": { - "$ref": "#/definitions/payment_method" - }, - "type": "array" - } - } - }, - "price_adjustment": { - "description": "Document representing a price adjustment within a basket or order. Price adjustments\n can be assigned at the order, product, or shipping level. They can be created by the\n promotion engine (if the custom flag is set to false) or can be added by custom logic (if the custom\n flag is set to true). For custom price adjustments created by a user, the manual flag should be\n set to true; this is always the case for price adjustments created using OCAPI.\n ", - "properties": { - "applied_discount": { - "$ref": "#/definitions/discount", - "description": "A price adjustment that provides details of the discount that was applied.\n This is null for custom price adjustments created\n without discount details." - }, - "coupon_code": { - "description": "The coupon code that triggered the promotion, provided\n the price adjustment was created as the result of a promotion\n being triggered by a coupon.", - "type": "string" - }, - "created_by": { - "description": "The user who created the price adjustment.", - "type": "string" - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "x-label": { - "default": "Creation Date" - }, - "type": "string" - }, - "custom": { - "description": "A flag indicating whether this price adjustment was created by custom logic. This flag is\n set to true unless the price adjustment was created by the promotion engine.", - "type": "boolean" - }, - "item_text": { - "description": "The text describing the item in more detail.", - "x-label": { - "default": "Item Text" - }, - "type": "string" - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "x-label": { - "default": "Last Modified" - }, - "type": "string" - }, - "manual": { - "description": "A flag indicating whether this price adjustment was created in a manual process.\n \n For custom price adjustments created using the shop API, this always\n returns true. Using the scripting API, however, it is possible to set this to true\n or false, according to the use case.", - "type": "boolean" - }, - "price": { - "description": "The adjustment price.", - "format": "double", - "type": "number" - }, - "price_adjustment_id": { - "description": "The price adjustment id (uuid).", - "type": "string" - }, - "promotion_id": { - "description": "The id of the related promotion. Custom price adjustments\n can be assigned any promotion id so long it is not\n used by a price adjustment belonging to the same item\n and is not used by promotion defined in the promotion engine.\n If not specified, a promotion id is generated.", - "type": "string" - }, - "promotion_link": { - "description": "The URL addressing the related promotion.", - "type": "string" - }, - "reason_code": { - "description": "The reason why this price adjustment was made.", - "enum": [ - "PRICE_MATCH", - "BACKORDER", - "EVEN_EXCHANGE" - ], - "x-enum-labels": [ - { - "default": "Price Match" - }, - { - "default": "Backorder" - }, - { - "default": "Even Exchange" - } - ], - "x-label": { - "default": "Reason Code" - }, - "type": "string" - } - } - }, - "price_adjustment_limit": { - "description": "\n A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at the specified\n level.\n ", - "properties": { - "amount": { - "description": "The value for the currency or null if no currency value is specified.", - "format": "double", - "type": "number" - }, - "currency": { - "description": "Returns the currency of the Price Adjustment Limit or null if not applicable.\n \n Will be null if this is a percent limit only.\n \n Price adjustment limits can be given up to a fixed amount (unit=a currency unit).", - "type": "string" - }, - "percent": { - "description": "Returns percentage value of the Price Adjustment Limit or null if not applicable.\n \n Will be null if this is a currency limit only.\n ", - "format": "double", - "type": "number" - }, - "type": { - "description": "The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the Price Adjustment\n is applicable.", - "enum": [ - "item", - "shipping", - "order" - ], - "type": "string" - } - } - }, - "price_adjustment_limits": { - "description": "Document representing a list of PriceAdjustmentLimit items.\n It returns all the price adjustment limits for a particular user\n across various Access Roles.", - "properties": { - "limits": { - "description": "The list of price adjustment limits applicable for a user across all roles.", - "items": { - "$ref": "#/definitions/price_adjustment_limit" - }, - "type": "array" - } - } - }, - "product": { - "description": "Document representing a product.", - "properties": { - "brand": { - "description": "The product's brand.", - "x-label": { - "default": "Brand" - }, - "type": "string" - }, - "bundled_products": { - "description": "The array of all bundled products of this product.", - "items": { - "$ref": "#/definitions/bundled_product" - }, - "type": "array" - }, - "currency": { - "description": "The ISO 4217 mnemonic code of the currency.", - "type": "string" - }, - "ean": { - "description": "The European Article Number.", - "x-label": { - "default": "EAN" - }, - "type": "string" - }, - "fetch_date": { - "format": "int32", - "type": "integer" - }, - "id": { - "description": "The id (SKU) of the product.", - "x-label": { - "default": "ID", - "en": "SKUAGE" - }, - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "image_groups": { - "description": "The array of product image groups.", - "items": { - "$ref": "#/definitions/image_group" - }, - "type": "array" - }, - "inventories": { - "description": "The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property\n is only returned in context of the 'availability' expansion.", - "items": { - "$ref": "#/definitions/inventory" - }, - "type": "array" - }, - "inventory": { - "$ref": "#/definitions/inventory", - "description": "The site default inventory information. This property is only\n returned in context of the 'availability' expansion." - }, - "long_description": { - "description": "The localized product long description.", - "format": "html", - "x-label": { - "default": "Product Details" - }, - "type": "string" - }, - "manufacturer_name": { - "description": "The products manufacturer name.", - "x-label": { - "default": "Manufacturer" - }, - "type": "string" - }, - "manufacturer_sku": { - "description": "The products manufacturer sku.", - "x-label": { - "default": "Manufacturer Product ID" - }, - "type": "string" - }, - "master": { - "$ref": "#/definitions/master", - "description": "The master product information. Only for types master, variation group and variant." - }, - "min_order_quantity": { - "description": "The minimum order quantity for this product.", - "format": "double", - "x-label": { - "default": "Minimum Order Quantity" - }, - "type": "number" - }, - "name": { - "description": "The localized product name.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "options": { - "description": "The array of product options. This array can be empty. Only for type option.", - "items": { - "$ref": "#/definitions/option" - }, - "type": "array" - }, - "page_description": { - "description": "The localized products page description.", - "x-label": { - "default": "Page Description" - }, - "type": "string" - }, - "page_keywords": { - "description": "The localized products page description.", - "x-label": { - "default": "Page Keywords" - }, - "type": "string" - }, - "page_title": { - "description": "The localized products page title.", - "x-label": { - "default": "Page Title" - }, - "type": "string" - }, - "price": { - "description": "The sales price of the product. In case of complex products like master or set this is the minimum price of\n related child products.", - "format": "double", - "type": "number" - }, - "price_max": { - "description": "The maximum sales of related child products in case of complex products like master or set.", - "format": "double", - "type": "number" - }, - "prices": { - "additionalProperties": { - "format": "double", - "type": "number" - }, - "description": "The prices map with price book ids and their values.", - "type": "object" - }, - "primary_category_id": { - "description": "The id of the products primary category.", - "type": "string" - }, - "product_links": { - "description": "The array of source and target products links information.", - "items": { - "$ref": "#/definitions/product_link" - }, - "type": "array" - }, - "product_promotions": { - "description": "The array of active customer product promotions for this product. This array can be empty.\n Coupon promotions are not returned in this array.", - "items": { - "$ref": "#/definitions/product_promotion" - }, - "type": "array" - }, - "recommendations": { - "description": "Returns a list of recommendations.", - "items": { - "$ref": "#/definitions/recommendation" - }, - "type": "array" - }, - "set_products": { - "description": "The array of set products of this product.", - "items": { - "$ref": "#/definitions/product" - }, - "type": "array" - }, - "short_description": { - "description": "The localized product short description.", - "format": "html", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "step_quantity": { - "description": "The steps in which the order amount of the product can be\n increased.", - "format": "double", - "x-label": { - "default": "Step Quantity" - }, - "type": "number" - }, - "type": { - "$ref": "#/definitions/product_type", - "description": "The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set." - }, - "unit": { - "description": "The sales unit of the product.", - "x-label": { - "default": "Sales Unit" - }, - "type": "string" - }, - "upc": { - "description": "The Universal Product Code.", - "x-label": { - "default": "UPC" - }, - "type": "string" + "type": "array" + }, + "coupon_code": { + "description": "The coupon code that triggered the promotion, if applicable.", + "type": "string" + }, + "id": { + "description": "The ID of the line item.", + "type": "string" + }, + "max_bonus_items": { + "description": "The maximum number of bonus items the user can select for this promotion.", + "format": "int32", + "type": "integer" + }, + "promotion_id": { + "description": "The ID of the promotion which triggered the creation of the line item.", + "type": "string" + } + } + }, + "bool_filter": { + "description": "Document representing a boolean filter.\n ", + "properties": { + "filters": { + "description": "A list of filters, which are logically combined by an operator.", + "items": { + "$ref": "#/definitions/filter" + }, + "x-sub_types": { + "range_filter": "#/definitions/range_filter", + "bool_filter": "#/definitions/bool_filter", + "query_filter": "#/definitions/query_filter", + "term_filter": "#/definitions/term_filter", + "range2_filter": "#/definitions/range2_filter" + }, + "type": "array" + }, + "operator": { + "description": "The logical operator the filters are combined with.", + "enum": [ + "and", + "or", + "not" + ], + "type": "string" + } + }, + "required": [ + "operator" + ] + }, + "bool_query": { + "description": "A boolean query allows construction of full logical expression trees consisting of other queries (usually term and text\nqueries). A boolean query basically has 3 sets of clauses that 'must', 'should' and / or 'must not' match. If 'must',\n'must_not', or 'should' appear in the same boolean query, they are combined logically using the AND operator.\n", + "properties": { + "must": { + "description": "List of queries that must match.", + "items": { + "$ref": "#/definitions/query" + }, + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + }, + "type": "array" + }, + "must_not": { + "description": "List of queries that must not match.", + "items": { + "$ref": "#/definitions/query" + }, + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + }, + "type": "array" + }, + "should": { + "description": "List of queries that should match.", + "items": { + "$ref": "#/definitions/query" + }, + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + }, + "type": "array" + } + } + }, + "bundled_product": { + "description": "Document representing a bundled product within a product bundle.", + "properties": { + "id": { + "type": "string" + }, + "product": { + "$ref": "#/definitions/product", + "description": "The product being bundled." + }, + "quantity": { + "description": "For the product being bundled, the quantity added to the bundle.", + "format": "double", + "type": "number" + } + } + }, + "category": { + "description": "Document representing a category.", + "properties": { + "c_alternativeUrl": { + "description": "Renders an alternative URL in main navigation. Uses Salesforce Commerce Cloud content url notation. For example: $url('Account-Show')$ or normal URL http://xchange.demandware.com", + "format": "html", + "x-label": { + "default": "Alternative URL" + }, + "type": "string" + }, + "c_catBannerID": { + "description": "Used to define the content asset used to populate a grid page banner for a category. This value is applied to all sub-category navigation (cascading) if no specific catBannerID has been defined for a sub-category.", + "x-label": { + "default": "Category Banner ID" + }, + "type": "string" + }, + "c_customCSSFile": { + "description": "Use this attribute to apply custom styles for this category.", + "x-label": { + "default": "Custom CSS File" + }, + "type": "string" + }, + "c_enableCompare": { + "description": "Used to define if/when the Compare feature is to be visualized in the storefront based on navigation. If enableCompare = FALSE, no Compare checkboxes will be displayed in the grid view. If enableCompare = TRUE, the category (and its children) will support the Compare feature.", + "x-label": { + "default": "Enable Compare" + }, + "type": "boolean" + }, + "c_headerMenuBanner": { + "format": "html", + "x-label": { + "default": "Header Menu Banner" + }, + "type": "string" + }, + "c_headerMenuOrientation": { + "description": "Which way to orient the menu and optional header menu HTML. Vertical will list all in one line. Horizontal will list in columns.", + "enum": [ + "Horizontal", + "Vertical" + ], + "x-enum-labels": [ + { + "default": "Horizontal" + }, + { + "default": "Vertical" + } + ], + "x-label": { + "default": "Header Menu Orientation" + }, + "type": "string" + }, + "c_showInMenu": { + "description": "Used to indicate that a category (such as Mens -> Footwear -> Boots) will display in the roll-over navigation. A sub-category only shows if also the parent category is marked as showInMenu. Up to three category levels are shown in roll-over navigation.", + "x-label": { + "default": "Show in Menu Navigation" + }, + "type": "boolean" + }, + "c_sizeChartID": { + "description": "Used to define the content asset ID of the Size Chart that is appropriate for products whose PRIMARY category is the associated category (and its children). Whenever a product detail page (or quick view) is rendered, the Size Chart link is populated based on the value of this attribute for the products primary categorization. If not defined, NO size chart link is displayed.", + "x-label": { + "default": "Size Chart" + }, + "type": "string" + }, + "c_slotBannerHtml": { + "format": "html", + "x-label": { + "default": "Slot Banner HTML" + }, + "type": "string" + }, + "c_slotBannerImage": { + "description": "Image used on either the top or bottom slot on the category landing pages.", + "x-label": { + "default": "Category Landing Slot Image" + }, + "type": "string" + }, + "categories": { + "description": "Array of subcategories. Can be empty.", + "items": { + "$ref": "#/definitions/category" + }, + "type": "array" + }, + "description": { + "description": "The localized description of the category.", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "id": { + "description": "The id of the category.", + "x-label": { + "default": "ID" + }, + "type": "string" + }, + "image": { + "description": "The URL to the category image.", + "x-label": { + "default": "Standard Image" + }, + "type": "string" + }, + "name": { + "description": "The localized name of the category.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "page_description": { + "description": "The localized page description of the category.", + "x-label": { + "default": "Page Description" + }, + "type": "string" + }, + "page_keywords": { + "description": "The localized page keywords of the category.", + "x-label": { + "default": "Page Keywords" + }, + "type": "string" + }, + "page_title": { + "description": "The localized page title of the category.", + "x-label": { + "default": "Page Title" + }, + "type": "string" + }, + "parent_category_id": { + "description": "The id of the parent category.", + "type": "string" + }, + "thumbnail": { + "description": "The URL to the category thumbnail.", + "x-label": { + "default": "Thumbnail Image" + }, + "type": "string" + } + } + }, + "category_result": { + "description": "Result document containing an array of categories.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of category documents.", + "items": { + "$ref": "#/definitions/category" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "content": { + "description": "Document representing a content asset.", + "properties": { + "c_Year": { + "x-label": { + "default": "Year" + }, + "type": "string" + }, + "c_body": { + "format": "html", + "x-label": { + "default": "Body" + }, + "type": "string" + }, + "c_customCSSFile": { + "description": "Use this attribute to apply custom styles for this content asset.", + "x-label": { + "default": "Custom CSS File" + }, + "type": "string" + }, + "description": { + "description": "The localized content asset description.", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "id": { + "description": "The id of the content asset.", + "x-label": { + "default": "ID" + }, + "maxLength": 256, + "minLength": 1, + "type": "string" + }, + "name": { + "description": "The localized content asset name.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "page_description": { + "description": "The localized content asset page description.", + "x-label": { + "default": "Page Description" + }, + "type": "string" + }, + "page_keywords": { + "description": "The localized content asset page description.", + "x-label": { + "default": "Page Keywords" + }, + "type": "string" + }, + "page_title": { + "description": "The localized content asset page title.", + "x-label": { + "default": "Page Title" + }, + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "content_folder": { + "description": "Document representing a content folder.", + "properties": { + "c_customCSSFile": { + "description": "Use this attribute to apply custom styles for this category.", + "x-label": { + "default": "Custom CSS File" + }, + "type": "string" + }, + "description": { + "description": "The localized content folder description.", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "folders": { + "description": "The array of content subfolders. This array can be empty.", + "items": { + "$ref": "#/definitions/content_folder" + }, + "type": "array" + }, + "id": { + "description": "The id of the content folder.", + "x-label": { + "default": "ID" + }, + "maxLength": 256, + "minLength": 1, + "type": "string" + }, + "name": { + "description": "The localized content folder name.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "page_description": { + "description": "The localized content folder page description.", + "x-label": { + "default": "Page Description" + }, + "type": "string" + }, + "page_keywords": { + "description": "The localized content folder page description.", + "x-label": { + "default": "Page Keywords" + }, + "type": "string" + }, + "page_title": { + "description": "The localized content folder page title.", + "x-label": { + "default": "Page Title" + }, + "type": "string" + }, + "parent_folder_id": { + "description": "The id of the parent content folder.", + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "content_folder_result": { + "description": "Result document containing an array of content folders.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of content folder documents.", + "items": { + "$ref": "#/definitions/content_folder" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "content_result": { + "description": "Result document containing an array of content assets.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of content assets.", + "items": { + "$ref": "#/definitions/content" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "content_search_refinement": { + "description": "Document representing a search refinement attribute.", + "properties": { + "attribute_id": { + "description": "The id of the search refinement attribute. In the case of an attribute refinement, this is the\n attribute id. Custom attributes are marked by the prefix \"c_\".", + "type": "string" + }, + "label": { + "description": "The localized label of the refinement.", + "type": "string" + }, + "values": { + "description": "The sorted array of refinement values. The array can be empty.", + "items": { + "$ref": "#/definitions/content_search_refinement_value" + }, + "type": "array" + } + }, + "required": [ + "attribute_id" + ] + }, + "content_search_refinement_value": { + "description": "Document representing a search refinement value.", + "properties": { + "description": { + "description": "The localized description of the refinement value.", + "type": "string" + }, + "hit_count": { + "description": "The number of search hits (0 or more) when selecting the refinement value.", + "format": "int32", + "type": "integer" + }, + "label": { + "description": "The localized label of the refinement value.", + "type": "string" + }, + "presentation_id": { + "description": "The optional presentation id associated with the refinement value.\n The presentation id can be used, for example, to associate an id with\n an HTML widget.", + "type": "string" + }, + "value": { + "description": "The refinement value. In the case of an attribute refinement, this is the bucket,\n the attribute value, or a value range. In the case of a content folder refinement,\n this is the folder id.", + "type": "string" + }, + "values": { + "description": "The array of hierarchical refinement values. This array can be empty.", + "items": { + "$ref": "#/definitions/content_search_refinement_value" + }, + "type": "array" + } + } + }, + "content_search_result": { + "description": "Document representing a content search result.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "items": { + "type": "object" + }, + "type": "array" + }, + "hits": { + "description": "The sorted array of search hits. Can be empty.", + "items": { + "$ref": "#/definitions/content" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "query": { + "description": "The query String that was searched for.", + "type": "string" + }, + "refinements": { + "description": "The sorted array of search refinements. Can be empty.", + "items": { + "$ref": "#/definitions/content_search_refinement" + }, + "type": "array" + }, + "selected_refinements": { + "additionalProperties": { + "type": "string" + }, + "description": "Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL.", + "type": "object" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "coupon_item": { + "description": "Document representing a coupon item.", + "properties": { + "code": { + "description": "The coupon code.", + "maxLength": 256, + "type": "string" + }, + "coupon_item_id": { + "description": "The coupon item id.", + "type": "string" + }, + "status_code": { + "description": "The status of the coupon item.", + "enum": [ + "coupon_code_already_in_basket", + "coupon_code_already_redeemed", + "coupon_code_unknown", + "coupon_disabled", + "redemption_limit_exceeded", + "customer_redemption_limit_exceeded", + "timeframe_redemption_limit_exceeded", + "no_active_promotion", + "coupon_already_in_basket", + "no_applicable_promotion", + "applied", + "adhoc" + ], + "type": "string" + }, + "valid": { + "description": "A flag indicating whether the coupon item is valid. A coupon line item is valid if\n the status code is 'applied' or 'no_applicable_promotion'.", + "type": "boolean" + } + }, + "required": [ + "code" + ] + }, + "custom_object": { + "description": "Document representing a custom object that contains all defined custom attributes for its\n object type.", + "properties": { + "key_property": { + "description": "The name of the key property for the custom object.", + "type": "string" + }, + "key_value_integer": { + "description": "The id of the custom object when the type of the key is Integer.", + "format": "int32", + "type": "integer" + }, + "key_value_string": { + "description": "The id of the custom object when the type of the key is String.", + "type": "string" + }, + "object_type": { + "description": "The id of the object type.", + "maxLength": 256, + "type": "string" + } + } + }, + "customer": { + "description": "Document representing a customer.", + "properties": { + "addresses": { + "description": "The customer's addresses.", + "items": { + "$ref": "#/definitions/customer_address" + }, + "x-label": { + "default": "Addresses" + }, + "type": "array" + }, + "auth_type": { + "description": "The customer's authorization type (indicates if the customer is a guest\n or a registered customer).", + "enum": [ + "guest", + "registered" + ], + "x-label": { + "default": "Auth Type" + }, + "type": "string" + }, + "birthday": { + "description": "The customer's birthday.", + "format": "date", + "x-label": { + "default": "Birthday" + }, + "type": "string" + }, + "c_familyStatus": { + "x-label": { + "default": "Family Status" + }, + "type": "string" + }, + "company_name": { + "description": "The customer's company name.", + "x-label": { + "default": "Company" + }, + "maxLength": 256, + "type": "string" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" + }, + "readOnly": true, + "type": "string" + }, + "customer_id": { + "description": "The customer's number (id). Both registered and guest customers have a\n customer id.", + "x-label": { + "default": "UUID" + }, + "maxLength": 28, + "readOnly": true, + "type": "string" + }, + "customer_no": { + "description": "The customer's number (id). Only a registered customer has a customer\n number.", + "x-label": { + "default": "Customer No." + }, + "maxLength": 100, + "type": "string" + }, + "email": { + "description": "The customer's email address.", + "format": "email", + "x-label": { + "default": "Email" + }, + "maxLength": 256, + "type": "string" + }, + "enabled": { + "description": "A flag indicating whether this customer is is enabled and can log in.", + "x-label": { + "default": "Enabled" + }, + "type": "boolean" + }, + "fax": { + "description": "The customer's fax number. The length is restricted to 32 characters.", + "x-label": { + "default": "Fax Number" + }, + "maxLength": 32, + "type": "string" + }, + "first_name": { + "description": "The customer's first name.", + "x-label": { + "default": "First Name" + }, + "maxLength": 256, + "type": "string" + }, + "gender": { + "description": "The customer's gender.", + "enum": [ + 1, + 2 + ], + "x-enum-labels": [ + { + "default": "Male" + }, + { + "default": "Female" + } + ], + "format": "int32", + "x-label": { + "default": "Gender" + }, + "type": "integer" + }, + "job_title": { + "description": "The customer's job title.", + "x-label": { + "default": "Job Title" + }, + "maxLength": 256, + "type": "string" + }, + "last_login_time": { + "description": "The time when the customer last logged in.", + "format": "date-time", + "x-label": { + "default": "Last Login Time" + }, + "readOnly": true, + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" + }, + "readOnly": true, + "type": "string" + }, + "last_name": { + "description": "The customer's last name.", + "x-label": { + "default": "Last Name" + }, + "maxLength": 256, + "type": "string" + }, + "last_visit_time": { + "description": "The time when the customer last visited.", + "format": "date-time", + "x-label": { + "default": "Last Visit Time" + }, + "readOnly": true, + "type": "string" + }, + "login": { + "description": "The customer's login.", + "x-label": { + "default": "Login" + }, + "maxLength": 256, + "type": "string" + }, + "note": { + "description": "The customer's note.", + "x-label": { + "default": "Note" + }, + "type": "string" + }, + "payment_instruments": { + "description": "The customer's payment instruments.", + "items": { + "$ref": "#/definitions/customer_payment_instrument" + }, + "x-label": { + "default": "Payment Instruments" + }, + "type": "array" + }, + "phone_business": { + "description": "The customer's business phone number.", + "x-label": { + "default": "Business Phone" + }, + "maxLength": 32, + "type": "string" + }, + "phone_home": { + "description": "The customer's home phone number.", + "x-label": { + "default": "Home Phone" + }, + "maxLength": 32, + "type": "string" + }, + "phone_mobile": { + "description": "The customer's mobile phone number.", + "x-label": { + "default": "Mobile Phone" + }, + "maxLength": 32, + "type": "string" + }, + "preferred_locale": { + "description": "The customer's preferred locale.", + "x-label": { + "default": "Preferred Locale" + }, + "readOnly": true, + "type": "string" + }, + "previous_login_time": { + "description": "The time when the customer logged in previously.", + "format": "date-time", + "x-label": { + "default": "Previous Login Time" + }, + "type": "string" + }, + "previous_visit_time": { + "description": "The time when the customer last visited the store.", + "format": "date-time", + "x-label": { + "default": "Previous Visit Time" + }, + "type": "string" + }, + "salutation": { + "description": "The salutation to use for the customer.", + "x-label": { + "default": "Salutation" + }, + "maxLength": 256, + "type": "string" + }, + "second_name": { + "description": "The customer's second name.", + "x-label": { + "default": "Second Name" + }, + "maxLength": 256, + "type": "string" + }, + "suffix": { + "description": "The customer's suffix (for example, \"Jr.\" or \"Sr.\").", + "x-label": { + "default": "Name Suffix" + }, + "maxLength": 256, + "type": "string" + }, + "title": { + "description": "The customer's title (for example, \"Mrs\" or \"Mr\").", + "x-label": { + "default": "Title" + }, + "maxLength": 256, + "type": "string" + } + } + }, + "customer_address": { + "description": "Document representing a customer address.", + "properties": { + "address1": { + "description": "The first address.", + "x-label": { + "default": "Address 1" + }, + "maxLength": 256, + "type": "string" + }, + "address2": { + "description": "The second address.", + "x-label": { + "default": "Address 2" + }, + "maxLength": 256, + "type": "string" + }, + "address_id": { + "description": "The id of the address as specified by account owner.", + "x-label": { + "default": "Address ID" + }, + "maxLength": 256, + "type": "string" + }, + "city": { + "description": "The city.", + "x-label": { + "default": "City" + }, + "maxLength": 256, + "type": "string" + }, + "company_name": { + "description": "The company name.", + "x-label": { + "default": "Company" + }, + "maxLength": 256, + "type": "string" + }, + "country_code": { + "description": "The two-letter ISO 3166-1 (Alpha-2) country code.", + "enum": [ + "US", + "FR", + "IT", + "JP", + "CN", + "GB" + ], + "x-enum-labels": [ + { + "default": "United States" + }, + { + "default": "France" + }, + { + "default": "Italy" + }, + { + "default": "Japan" + }, + { + "default": "China" + }, + { + "default": "United Kingdom" + } + ], + "x-label": { + "default": "Country" + }, + "maxLength": 2, + "type": "string" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" + }, + "readOnly": true, + "type": "string" + }, + "first_name": { + "description": "The first name.", + "x-label": { + "default": "First Name" + }, + "maxLength": 256, + "type": "string" + }, + "full_name": { + "description": "The full name.", + "x-label": { + "default": "Full Name" + }, + "maxLength": 256, + "type": "string" + }, + "job_title": { + "description": "The job title.", + "x-label": { + "default": "Job Title" + }, + "maxLength": 256, + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" + }, + "readOnly": true, + "type": "string" + }, + "last_name": { + "description": "The last name.", + "x-label": { + "default": "Last Name" + }, + "maxLength": 256, + "type": "string" + }, + "phone": { + "description": "The phone number.", + "x-label": { + "default": "Contact Phone" + }, + "maxLength": 32, + "type": "string" + }, + "post_box": { + "description": "The post box.", + "x-label": { + "default": "Post Box" + }, + "maxLength": 256, + "type": "string" + }, + "postal_code": { + "description": "The postal code.", + "x-label": { + "default": "Postal Code" + }, + "maxLength": 256, + "type": "string" + }, + "preferred": { + "description": "The preferred attribute.", + "x-label": { + "default": "Preferred" + }, + "type": "boolean" + }, + "salutation": { + "description": "The salutation.", + "x-label": { + "default": "Salutation" + }, + "maxLength": 256, + "type": "string" + }, + "second_name": { + "description": "The second name.", + "x-label": { + "default": "Second Name" + }, + "maxLength": 256, + "type": "string" + }, + "state_code": { + "description": "The state code.", + "x-label": { + "default": "State" + }, + "maxLength": 256, + "type": "string" + }, + "suffix": { + "description": "The suffix.", + "x-label": { + "default": "Suffix" + }, + "maxLength": 256, + "type": "string" + }, + "suite": { + "description": "The suite.", + "x-label": { + "default": "Suite No." + }, + "maxLength": 32, + "type": "string" + }, + "title": { + "description": "The title.", + "x-label": { + "default": "Title" + }, + "maxLength": 256, + "type": "string" + } + } + }, + "customer_address_link": { + "description": "* Result document of product list addresses.", + "properties": { + "address_id": { + "description": "The id of the address.", + "maxLength": 256, + "type": "string" + }, + "link": { + "description": "The target of the link.", + "type": "string" + }, + "title": { + "description": "The link title.", + "type": "string" + } + } + }, + "customer_address_result": { + "description": "Result document containing an array of customer addresses.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of customer address documents.", + "items": { + "$ref": "#/definitions/customer_address" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "select": { + "description": "", + "type": "string" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_info": { + "description": "Document representing information used to identify a customer.", + "properties": { + "c_familyStatus": { + "x-label": { + "default": "Family Status" + }, + "type": "string" + }, + "customer_id": { + "description": "The customer's number (id).", + "maxLength": 100, + "type": "string" + }, + "customer_name": { + "description": "", + "type": "string" + }, + "customer_no": { + "description": "The customer's number (id).", + "x-label": { + "default": "Customer No." + }, + "maxLength": 100, + "type": "string" + }, + "email": { + "description": "The customer's email address.", + "format": "email", + "x-label": { + "default": "Email" + }, + "type": "string" + } + }, + "required": [ + "email" + ] + }, + "customer_order_result": { + "description": "Result document containing an array of customer orders.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of customer order documents.", + "items": { + "$ref": "#/definitions/order" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "select": { + "description": "The fields that you want to select.", + "type": "string" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_payment_card_request": { + "description": "Document representing a customer payment card request.", + "properties": { + "card_type": { + "description": "The payment card type (for example, 'Visa').", + "maxLength": 256, + "type": "string" + }, + "credit_card_token": { + "description": "A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the\n token store.", + "type": "string" + }, + "expiration_month": { + "description": "The month when the payment card expires.", + "format": "int32", + "type": "integer" + }, + "expiration_year": { + "description": "The year when the payment card expires.", + "format": "int32", + "type": "integer" + }, + "holder": { + "description": "The payment card holder.", + "maxLength": 256, + "type": "string" + }, + "issue_number": { + "description": "The payment card issue number.", + "maxLength": 256, + "type": "string" + }, + "number": { + "description": "The payment card number.", + "maxLength": 4000, + "type": "string" + }, + "valid_from_month": { + "description": "The payment card valid from month.", + "format": "int32", + "maximum": 12, + "minimum": 1, + "type": "integer" + }, + "valid_from_year": { + "description": "The payment card valid from year.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_payment_instrument": { + "description": "Document representing a customer payment instrument.", + "properties": { + "bank_routing_number": { + "description": "The bank routing number.", + "x-label": { + "default": "Bank Routing Number" + }, + "maxLength": 256, + "type": "string" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" + }, + "readOnly": true, + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" + }, + "readOnly": true, + "type": "string" + }, + "masked_gift_certificate_code": { + "description": "The masked gift certificate code.", + "type": "string" + }, + "payment_bank_account": { + "$ref": "#/definitions/payment_bank_account", + "description": "The payment bank account." + }, + "payment_card": { + "$ref": "#/definitions/payment_card", + "description": "The payment card." + }, + "payment_instrument_id": { + "description": "The payment instrument ID.", + "type": "string" + }, + "payment_method_id": { + "description": "The payment method id. Optional if a customer payment instrument id is specified.", + "maxLength": 256, + "type": "string" + } + } + }, + "customer_payment_instrument_request": { + "description": "Document representing a customer payment instrument request.", + "properties": { + "bank_routing_number": { + "description": "The bank routing number.", + "maxLength": 256, + "type": "string" + }, + "gift_certificate_code": { + "description": "The gift certificate code.", + "x-label": { + "default": "Gift Code" + }, + "maxLength": 256, + "type": "string" + }, + "payment_bank_account": { + "$ref": "#/definitions/payment_bank_account_request", + "description": "The payment bank account request data." + }, + "payment_card": { + "$ref": "#/definitions/customer_payment_card_request", + "description": "The customer payment card." + }, + "payment_method_id": { + "description": "The payment method id. Optional if a customer payment instrument id is specified.", + "maxLength": 256, + "type": "string" + } + } + }, + "customer_payment_instrument_result": { + "description": "Document representing a customer payment instrument result. The payment data contained is masked where needed for security purposes.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The customer payment instruments list.", + "items": { + "$ref": "#/definitions/customer_payment_instrument" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_product_list": { + "description": "Document representing a customer product List.", + "properties": { + "co_registrant": { + "$ref": "#/definitions/customer_product_list_registrant", + "description": "The coRegistrant of this product list." + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "type": "string" + }, + "current_shipping_address_link": { + "$ref": "#/definitions/customer_address_link", + "description": "The resource link to the current shipping address of this customer product list." + }, + "customer_product_list_items": { + "description": "The list of customer product list items.", + "items": { + "$ref": "#/definitions/customer_product_list_item" + }, + "type": "array" + }, + "description": { + "description": "The description of this product list.", + "type": "string" + }, + "event": { + "$ref": "#/definitions/product_list_event", + "description": "The event of this product list." + }, + "id": { + "description": "The id of this product list.", + "minLength": 1, + "type": "string" + }, + "items_link": { + "$ref": "#/definitions/customer_product_list_item_link", + "description": "The resource link to the items of this customer product list." + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "type": "string" + }, + "name": { + "description": "The name of this product list.", + "type": "string" + }, + "post_event_shipping_address_link": { + "$ref": "#/definitions/customer_address_link", + "description": "The resource link to the post event shipping address of this customer product list." + }, + "product_list_shipping_address": { + "$ref": "#/definitions/product_list_shipping_address", + "description": "The abbreviated shipping address of this product list representing what anonymous user can see." + }, + "public": { + "description": "Indicates whether the owner made this product list available for access by other customers.", + "type": "boolean" + }, + "registrant": { + "$ref": "#/definitions/customer_product_list_registrant", + "description": "The registrant of this product list." + }, + "shipping_address_link": { + "$ref": "#/definitions/customer_address_link", + "description": "The resource link to the shipping address of this customer product list." + }, + "type": { + "description": "The type of the product list.", + "enum": [ + "wish_list", + "gift_registry", + "shopping_list", + "custom_1", + "custom_2", + "custom_3" + ], + "type": "string" + } + } + }, + "customer_product_list_item": { + "description": "Document representing a customer product list item.", + "properties": { + "id": { + "description": "The id of this product list item.", + "type": "string" + }, + "priority": { + "description": "The priority of the item.", + "format": "int32", + "type": "integer" + }, + "product": { + "$ref": "#/definitions/product", + "description": "The product item" + }, + "product_details_link": { + "$ref": "#/definitions/product_simple_link", + "description": "A link to the product." + }, + "product_id": { + "description": "The id of the product.", + "type": "string" + }, + "public": { + "description": "Is this product list item available for access by other customers?", + "type": "boolean" + }, + "purchased_quantity": { + "description": "The quantity of products already purchased.", + "format": "double", + "type": "number" + }, + "quantity": { + "description": "The quantity of this product list item.", + "format": "double", + "minimum": 0, + "type": "number" + }, + "type": { + "description": "The type of the item.", + "enum": [ + "product", + "gift_certificate" + ], + "type": "string" + } + } + }, + "customer_product_list_item_link": { + "description": "Document representing a customer product list item link.", + "properties": { + "link": { + "description": "The target of the link.", + "type": "string" + }, + "title": { + "description": "The link title.", + "type": "string" + } + } + }, + "customer_product_list_item_purchase": { + "description": "Document representing a customer product list item purchase.", + "properties": { + "id": { + "description": "The id of this purchase.", + "type": "string" + }, + "order_no": { + "description": "The order number of this purchase.", + "type": "string" + }, + "product_list_item_id": { + "description": "The id of the product list item this purchase relates to.", + "type": "string" + }, + "purchaser_name": { + "description": "The name of the purchaser.", + "type": "string" + }, + "quantity": { + "description": "The quantity of this product list item purchased.", + "format": "double", + "minimum": 0, + "type": "number" + } + } + }, + "customer_product_list_item_purchase_result": { + "description": "Document representing a customer product list purchases result.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The customer product list item purchases.", + "items": { + "$ref": "#/definitions/customer_product_list_item_purchase" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_product_list_item_result": { + "description": "Document representing a customer product list items result.", + "properties": { + "count": { + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The customer product list items.", + "items": { + "$ref": "#/definitions/customer_product_list_item" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "format": "int32", + "type": "integer" + } + } + }, + "customer_product_list_registrant": { + "description": "Document representing a customer product list registrant.", + "properties": { + "email": { + "description": "The email of the registrant.", + "type": "string" + }, + "first_name": { + "description": "The first name of the registrant.", + "type": "string" + }, + "last_name": { + "description": "The last name of the registrant.", + "type": "string" + }, + "role": { + "description": "The role of the registrant.", + "type": "string" + } + } + }, + "customer_product_list_result": { + "description": "Document representing a customer product lists result.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The customer product lists.", + "items": { + "$ref": "#/definitions/customer_product_list" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "customer_registration": { + "description": "Document representing the registration information for a customer.", + "properties": { + "customer": { + "$ref": "#/definitions/customer", + "description": "The customer registration information.\n The mandatory properties for registration are login, last name and email." + }, + "password": { + "description": "The password to authorize.", + "maxLength": 4096, + "type": "string" + } + }, + "required": [ + "customer" + ] + }, + "discount": { + "description": "Document representing a discount that was ", + "properties": { + "amount": { + "description": "The amount that is used with the amount and fixed price types.", + "format": "double", + "type": "number" + }, + "percentage": { + "description": "The percentage that is used with percentage types.", + "format": "double", + "type": "number" + }, + "price_book_id": { + "description": "The price book id that is used with some types.", + "type": "string" + }, + "type": { + "description": "The type of discount.", + "enum": [ + "percentage", + "fixed_price", + "amount", + "free", + "price_book_price", + "bonus", + "total_fixed_price", + "bonus_choice", + "percentage_off_options" + ], + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "discount_request": { + "description": "Document representing a discount to be applied to a custom price adjustment. The properties ", + "properties": { + "type": { + "description": "The type of discount.", + "enum": [ + "percentage", + "fixed_price", + "amount" + ], + "type": "string" + }, + "value": { + "description": "The amount of the discount.", + "format": "double", + "type": "number" + } + }, + "required": [ + "type", + "value" + ] + }, + "filter": { + "description": "Document representing a filter.\n " + }, + "filtered_query": { + "description": "A filtered query allows to filter the result of a (possibly complex) query using a (possibly complex) filter.\n ", + "properties": { + "filter": { + "$ref": "#/definitions/filter", + "description": "The (possibly complex) filter object.", + "x-sub_types": { + "range_filter": "#/definitions/range_filter", + "bool_filter": "#/definitions/bool_filter", + "query_filter": "#/definitions/query_filter", + "term_filter": "#/definitions/term_filter", + "range2_filter": "#/definitions/range2_filter" + } + }, + "query": { + "$ref": "#/definitions/query", + "description": "The query object.", + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + } + } + }, + "required": [ + "filter", + "query" + ] + }, + "gift_certificate": { + "description": "Document representing a gift certificate.", + "properties": { + "amount": { + "description": "The gift certificate original amount.", + "format": "double", + "type": "number" + }, + "balance": { + "description": "The gift certificate balance.", + "format": "double", + "type": "number" + }, + "description": { + "description": "The gift certificate description.", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "enabled": { + "description": "Is the gift certificate is enabled?", + "x-label": { + "default": "Enabled" + }, + "type": "boolean" + }, + "masked_gift_certificate_code": { + "description": "The masked gift certificate code.", + "x-label": { + "default": "Gift Certificate Code" + }, + "type": "string" + }, + "merchant_id": { + "description": "The merchant ID.", + "x-label": { + "default": "Merchant ID" + }, + "type": "string" + }, + "message": { + "description": "The message.", + "x-label": { + "default": "Message" + }, + "type": "string" + }, + "recipient_email": { + "description": "The recipient email.", + "x-label": { + "default": "Recipient Email" + }, + "type": "string" + }, + "recipient_name": { + "description": "The recipient name.", + "x-label": { + "default": "Recipient Name" + }, + "type": "string" + }, + "sender_name": { + "description": "The sender name.", + "x-label": { + "default": "Sender Name" + }, + "type": "string" + }, + "status": { + "description": "The gift certificate status.", + "enum": [ + "pending", + "issued", + "partially_redeemed", + "redeemed" + ], + "x-label": { + "default": "Status" + }, + "type": "string" + } + } + }, + "gift_certificate_item": { + "description": "A gift certificate item.", + "properties": { + "amount": { + "description": "The certificate item amount.", + "format": "double", + "type": "number" + }, + "gift_certificate_item_id": { + "description": "Id used to identify this item", + "type": "string" + }, + "message": { + "description": "The certificate's message.", + "x-label": { + "default": "Message" + }, + "maxLength": 4000, + "type": "string" + }, + "recipient_email": { + "description": "The recipient's email.", + "x-label": { + "default": "Recipient Email" + }, + "minLength": 1, + "type": "string" + }, + "recipient_name": { + "description": "The recipient's name.", + "x-label": { + "default": "Recipient Name" + }, + "type": "string" + }, + "sender_name": { + "description": "The sender's name.", + "x-label": { + "default": "Sender Name" + }, + "type": "string" + }, + "shipment_id": { + "description": "The shipment id.", + "type": "string" + } + }, + "required": [ + "amount", + "recipient_email" + ] + }, + "gift_certificate_request": { + "description": "Document representing a gift certificate request data.", + "properties": { + "gift_certificate_code": { + "description": "The gift certificate code.", + "type": "string" + } + } + }, + "image": { + "properties": { + "alt": { + "type": "string" + }, + "dis_base_link": { + "type": "string" + }, + "link": { + "minLength": 1, + "type": "string" + }, + "title": { + "type": "string" + } + }, + "required": [ + "link" + ] + }, + "image_group": { + "description": "Document representing an image group containing a list of images for a particular view type and an optional variation value.", + "properties": { + "images": { + "description": "The images of the image group.", + "items": { + "$ref": "#/definitions/image" + }, + "type": "array" + }, + "variation_attributes": { + "description": "Returns a list of variation attributes applying to this image group.", + "items": { + "$ref": "#/definitions/variation_attribute" + }, + "type": "array" + }, + "view_type": { + "description": "The image view type.", + "type": "string" + } + } + }, + "inventory": { + "description": "Document representing inventory information of the current product for a particular inventory list.", + "properties": { + "ats": { + "description": "The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the\n OCAPI setting 'product.inventory.ats.max_threshold'.", + "format": "double", + "type": "number" + }, + "backorderable": { + "description": "A flag indicating whether the product is back orderable.", + "type": "boolean" + }, + "id": { + "description": "The inventory id.", + "type": "string" + }, + "in_stock_date": { + "description": "A flag indicating the date when the product will be in stock.", + "format": "date-time", + "type": "string" + }, + "orderable": { + "description": "A flag indicating whether at least one of products is available to sell.", + "type": "boolean" + }, + "preorderable": { + "description": "A flag indicating whether the product is pre orderable.", + "type": "boolean" + }, + "stock_level": { + "description": "The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the\n OCAPI setting 'product.inventory.stock_level.max_threshold'.", + "format": "double", + "type": "number" + } + }, + "required": [ + "id" + ] + }, + "locale": { + "description": "Document that describes a single locale.", + "properties": { + "country": { + "description": "The country/region code for this Locale, which will\n either be the empty string or an upercase ISO 3166 2-letter code.", + "type": "string" + }, + "default": { + "description": "Flag that is true if the locale is the default one to use if an explicit locale is not specified.", + "type": "boolean" + }, + "display_country": { + "description": "The name for the Locale's country that is appropriate for\n display to the user, or an empty string if no country has been specified\n for the Locale.\n The display country is returned in the language defined for this locale,\n and not in the language of the session locale.", + "type": "string" + }, + "display_language": { + "description": "The name for the Locale's language that is appropriate for\n display to the user, or an empty string if no language has been specified\n for the Locale.\n The display language is returned in the language defined for this locale,\n and not in the language of the session locale.", + "type": "string" + }, + "display_name": { + "description": "The name for the Locale that is appropriate for\n display to the user, or an empty string if no display name has been\n specified for the Locale.\n The display name is returned in the language defined for this locale,\n and not in the language of the session locale.", + "type": "string" + }, + "id": { + "description": "The identifier of the Locale. Contains a combination of the\n language and the country key, concatenated by \"-\", e.g. \"en-US\". This\n attribute is the primary key of the class.", + "type": "string" + }, + "iso3_country": { + "description": "The three-letter abbreviation for this Locale's country, or an\n empty string if no country has been specified for the Locale.", + "type": "string" + }, + "iso3_language": { + "description": "The three-letter abbreviation for this Locale's language, or an\n empty string if no language has been specified for the\n Locale.", + "type": "string" + }, + "language": { + "description": "The language code for this Locale, which will either\n be the empty string or a lowercase ISO 639 code.", + "type": "string" + }, + "name": { + "description": "The display name of the Locale. This uses the current\n request locale to localize the value.", + "type": "string" + } + } + }, + "master": { + "properties": { + "link": { + "minLength": 1, + "type": "string" + }, + "master_id": { + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "orderable": { + "type": "boolean" + }, + "price": { + "format": "double", + "type": "number" + }, + "price_max": { + "format": "double", + "type": "number" + }, + "prices": { + "additionalProperties": { + "format": "double", + "type": "number" + }, + "type": "object" + } + }, + "required": [ + "link", + "master_id" + ] + }, + "match_all_query": { + "description": "A match all query simply matches all documents (namespace and document type). This query comes in\n handy if you just want to filter a search result or really do not have any constraints.\n\n " + }, + "nested_query": { + "description": "A nested query queries nested documents that are part of a larger document. The classical example is a\n product master with variants (in one big document) where you want to constrain a search to masters that have\n variants that match multiple constraints (like color = blue AND size = M).\n This query is not compatible with some search types. \n ", + "properties": { + "path": { + "description": "", + "type": "string" + }, + "query": { + "$ref": "#/definitions/query", + "description": "", + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + } + }, + "score_mode": { + "description": "", + "enum": [ + "avg", + "total", + "max", + "none" + ], + "type": "string" + } + }, + "required": [ + "path", + "query" + ] + }, + "note": { + "description": "Document representing a note to an object.", + "properties": { + "created_by": { + "description": "The author of the note.", + "type": "string" + }, + "creation_date": { + "description": "The creation date of the note.", + "format": "date-time", + "type": "string" + }, + "id": { + "description": "The ID of the note.", + "type": "string" + }, + "subject": { + "description": "The note's subject.", + "maxLength": 256, + "type": "string" + }, + "text": { + "description": "The note's text.", + "maxLength": 4000, + "type": "string" + } + } + }, + "notes_result": { + "description": "A result of a note request.\n\n Contains notes for an object - for example, for a basket.", + "properties": { + "notes": { + "description": "The notes for an object.", + "items": { + "$ref": "#/definitions/note" + }, + "type": "array" + } + } + }, + "option": { + "description": "Document representing a product option.", + "properties": { + "description": { + "description": "The localized description of the option.", + "type": "string" + }, + "id": { + "description": "The id of the option.", + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "image": { + "description": "The URL to the option image.", + "type": "string" + }, + "name": { + "description": "The localized name of the option.", + "type": "string" + }, + "values": { + "description": "The array of option values. This array can be empty.", + "items": { + "$ref": "#/definitions/option_value" + }, + "type": "array" + } + }, + "required": [ + "id" + ] + }, + "option_item": { + "description": "Document representing an option item.", + "properties": { + "adjusted_tax": { + "description": "The tax of the product item after adjustments applying.", + "format": "double", + "type": "number" + }, + "base_price": { + "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", + "format": "double", + "type": "number" + }, + "bonus_discount_line_item_id": { + "description": "The id of the bonus discount line item this bonus product relates to.", + "type": "string" + }, + "bonus_product_line_item": { + "description": "A flag indicating whether the product item is a bonus.", + "type": "boolean" + }, + "bundled_product_items": { + "description": "The array of bundled product items. Can be empty.", + "items": { + "$ref": "#/definitions/product_item" + }, + "type": "array" + }, + "gift": { + "description": "Returns true if the item is a gift.", + "type": "boolean" + }, + "gift_message": { + "description": "The gift message.", + "type": "string" + }, + "inventory_id": { + "description": "The inventory list id associated with this item.", + "maxLength": 256, + "type": "string" + }, + "item_id": { + "description": "The item identifier. Use this to identify an item when updating the item quantity or creating a custom price\n adjustment for an item.", + "type": "string" + }, + "item_text": { + "description": "The text describing the item in more detail.", + "type": "string" + }, + "option_id": { + "description": "The id of the option.", + "maxLength": 256, + "type": "string" + }, + "option_items": { + "description": "The array of option items. This array can be empty.", + "items": { + "$ref": "#/definitions/option_item" + }, + "type": "array" + }, + "option_value_id": { + "description": "The id of the option value.", + "maxLength": 256, + "type": "string" + }, + "price": { + "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", + "format": "double", + "type": "number" + }, + "price_adjustments": { + "description": "Array of price adjustments. Can be empty.", + "items": { + "$ref": "#/definitions/price_adjustment" + }, + "type": "array" + }, + "price_after_item_discount": { + "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", + "format": "double", + "type": "number" + }, + "price_after_order_discount": { + "description": "The price of this product line item after considering all\n dependent price adjustments and prorating all order-level\n price adjustments. For net pricing the net price is returned. For gross\n pricing, the gross price is returned.", + "format": "double", + "type": "number" + }, + "product_id": { + "description": "", + "maxLength": 100, + "type": "string" + }, + "product_list_item": { + "$ref": "#/definitions/product_list_item_reference", + "description": "" + }, + "product_name": { + "description": "The name of the product.", + "type": "string" + }, + "quantity": { + "description": "The quantity of the products represented by this item.", + "format": "double", + "maximum": 999, + "minimum": 0, + "type": "number" + }, + "shipment_id": { + "description": "The id of the shipment which includes the product item.", + "type": "string" + }, + "shipping_item_id": { + "description": "The reference to the related shipping item if it exists. This is the case if for example when a surcharge is\n defined for individual products using a particular a shipping method.", + "type": "string" + }, + "tax": { + "description": "The tax of the product item before adjustments applying.", + "format": "double", + "type": "number" + }, + "tax_basis": { + "description": "The price used to calculate the tax for this product item.", + "format": "double", + "type": "number" + }, + "tax_class_id": { + "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", + "type": "string" + }, + "tax_rate": { + "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", + "format": "double", + "type": "number" + } + }, + "required": [ + "option_id", + "option_value_id" + ] + }, + "option_value": { + "description": "Document representing an option value.", + "properties": { + "default": { + "description": "A flag indicating whether this option value is the default one.", + "type": "boolean" + }, + "id": { + "description": "The id of the option value.", + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "name": { + "description": "The localized name of the option value.", + "type": "string" + }, + "price": { + "description": "The effective price of this option value.", + "format": "double", + "type": "number" + } + }, + "required": [ + "id" + ] + }, + "order": { + "description": "Document representing an order.", + "properties": { + "adjusted_merchandize_total_tax": { + "description": "The products tax after discounts applying in purchase currency.\n\n Adjusted merchandize prices represent the sum of product prices before\n services such as shipping have been added, but after adjustment from\n promotions have been added.", + "format": "double", + "type": "number" + }, + "adjusted_shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container after\n shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "billing_address": { + "$ref": "#/definitions/order_address", + "description": "The billing address. This property is part of basket checkout information only." + }, + "bonus_discount_line_items": { + "description": "The bonus discount line items of the line item container.", + "items": { + "$ref": "#/definitions/bonus_discount_line_item" + }, + "type": "array" + }, + "channel_type": { + "description": "The sales channel for the order.", + "enum": [ + "storefront", + "callcenter", + "marketplace", + "dss", + "store", + "pinterest", + "twitter", + "facebookads", + "subscriptions", + "onlinereservation", + "customerservicecenter", + "instagramcommerce" + ], + "x-enum-labels": [ + { + "default": "Storefront" + }, + { + "default": "Call Center" + }, + { + "default": "Marketplace" + }, + { + "default": "DSS" + }, + { + "default": "Store" + }, + { + "default": "Pinterest" + }, + { + "default": "Twitter" + }, + { + "default": "Facebook Ads" + }, + { + "default": "Subscriptions" + }, + { + "default": "Online Reservation" + }, + { + "default": "Customer Service Center" + }, + { + "default": "Instagram Commerce" + } + ], + "x-label": { + "default": "Channel Type" + }, + "readOnly": true, + "type": "string" + }, + "confirmation_status": { + "description": "The confirmation status of the order.", + "enum": [ + "not_confirmed", + "confirmed" + ], + "x-enum-labels": [ + { + "default": "NOTCONFIRMED" + }, + { + "default": "CONFIRMED" + } + ], + "x-label": { + "default": "Confirmation Status" + }, + "type": "string" + }, + "coupon_items": { + "description": "The sorted array of coupon items. This array can be empty.", + "items": { + "$ref": "#/definitions/coupon_item" + }, + "type": "array" + }, + "created_by": { + "description": "The name of the user who created the order.", + "x-label": { + "default": "Created By" + }, + "type": "string" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" + }, + "readOnly": true, + "type": "string" + }, + "currency": { + "description": "The ISO 4217 mnemonic code of the currency.", + "type": "string" + }, + "customer_info": { + "$ref": "#/definitions/customer_info", + "description": "The customer information for logged in customers. This property is part of basket checkout information only." + }, + "customer_name": { + "description": "The name of the customer associated with this order.", + "x-label": { + "default": "Customer Name" + }, + "type": "string" + }, + "export_status": { + "description": "The export status of the order.", + "enum": [ + "not_exported", + "exported", + "ready", + "failed" + ], + "x-enum-labels": [ + { + "default": "NOTEXPORTED" + }, + { + "default": "EXPORTED" + }, + { + "default": "EXPORTREADY" + }, + { + "default": "EXPORTFAILED" + } + ], + "x-label": { + "default": "Export Status" + }, + "type": "string" + }, + "external_order_status": { + "description": "The external status of the order.", + "x-label": { + "default": "External Order Status" + }, + "type": "string" + }, + "gift_certificate_items": { + "description": "The sorted array of gift certificate line items. This array can be empty.", + "items": { + "$ref": "#/definitions/gift_certificate_item" + }, + "type": "array" + }, + "global_party_id": { + "description": "globalPartyId is managed by Customer 360. Its value can be changed.", + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" + }, + "readOnly": true, + "type": "string" + }, + "merchandize_total_tax": { + "description": "The products total tax in purchase currency.\n\n Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have\n been added.", + "format": "double", + "type": "number" + }, + "notes": { + "$ref": "#/definitions/simple_link", + "description": "The notes for the line item container." + }, + "order_no": { + "description": "The order number of the order.", + "x-label": { + "default": "Order No." + }, + "readOnly": true, + "type": "string" + }, + "order_price_adjustments": { + "description": "The array of order level price adjustments. This array can be empty.", + "items": { + "$ref": "#/definitions/price_adjustment" + }, + "type": "array" + }, + "order_token": { + "description": "The order token used to secure the lookup of an order on base of the\n plain order number. The order token contains only URL safe characters.", + "type": "string" + }, + "order_total": { + "description": "The total price of the order, including products, shipping and tax. This property is part of basket checkout\n information only.", + "format": "double", + "x-label": { + "default": "Order Total" + }, + "type": "number" + }, + "payment_instruments": { + "description": "The payment instruments list for the order.", + "items": { + "$ref": "#/definitions/order_payment_instrument" + }, + "type": "array" + }, + "payment_status": { + "description": "The payment status of the order.", + "enum": [ + "not_paid", + "part_paid", + "paid" + ], + "x-enum-labels": [ + { + "default": "NOTPAID" + }, + { + "default": "PARTPAID" + }, + { + "default": "PAID" + } + ], + "x-label": { + "default": "Payment Status" + }, + "type": "string" + }, + "product_items": { + "description": "The sorted array of product items (up to a maximum of 50 items). This array can be empty.", + "items": { + "$ref": "#/definitions/product_item" + }, + "type": "array" + }, + "product_sub_total": { + "description": "The total price of all product items after all product discounts.\n Depending on taxation policy the returned price is net or gross.", + "format": "double", + "type": "number" + }, + "product_total": { + "description": "The total price of all product items after all product and order discounts.\n Depending on taxation policy the returned price is net or gross.", + "format": "double", + "type": "number" + }, + "shipments": { + "description": "The array of shipments. This property is part of basket checkout information only.", + "items": { + "$ref": "#/definitions/shipment" + }, + "type": "array" + }, + "shipping_items": { + "description": "The sorted array of shipping items. This array can be empty.", + "items": { + "$ref": "#/definitions/shipping_item" + }, + "type": "array" + }, + "shipping_status": { + "description": "The shipping status of the order.", + "enum": [ + "not_shipped", + "part_shipped", + "shipped" + ], + "x-enum-labels": [ + { + "default": "NOTSHIPPED" + }, + { + "default": "PARTSHIPPED" + }, + { + "default": "SHIPPED" + } + ], + "x-label": { + "default": "Shipping Status" + }, + "type": "string" + }, + "shipping_total": { + "description": "The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes\n tax if taxation policy is gross. This property is part of basket checkout information only.", + "format": "double", + "type": "number" + }, + "shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container before\n shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "site_id": { + "description": "The site where the order resides.", + "x-label": { + "default": "Site Id" + }, + "type": "string" + }, + "source_code": { + "description": "Gets the source code assigned to this basket.", + "x-label": { + "default": "Source Code" + }, + "type": "string" + }, + "status": { + "description": "The status of the order.", + "enum": [ + "created", + "new", + "open", + "completed", + "cancelled", + "replaced", + "failed" + ], + "x-enum-labels": [ + { + "default": "CREATED" + }, + { + "default": "NEW" + }, + { + "default": "OPEN" + }, + { + "default": "COMPLETED" + }, + { + "default": "CANCELLED" + }, + { + "default": "REPLACED" + }, + { + "default": "FAILED" + } + ], + "x-label": { + "default": "Status" + }, + "type": "string" + }, + "tax_total": { + "description": "The total tax amount of the order. This property is part of basket checkout information only.", + "format": "double", + "type": "number" + }, + "taxation": { + "description": "The taxation the line item container is based on.", + "enum": [ + "gross", + "net" + ], + "type": "string" + } + } + }, + "order_address": { + "description": "Document representing an order address.", + "properties": { + "address1": { + "description": "The first address.", + "x-label": { + "default": "Address 1" + }, + "type": "string" + }, + "address2": { + "description": "The second address.", + "x-label": { + "default": "Address 2" + }, + "type": "string" + }, + "city": { + "description": "The city.", + "x-label": { + "default": "City" + }, + "type": "string" + }, + "company_name": { + "description": "The company name.", + "x-label": { + "default": "Company" + }, + "type": "string" + }, + "country_code": { + "description": "The two-letter ISO 3166-1 (Alpha-2) country code.", + "enum": [ + "US", + "FR", + "IT", + "JP", + "CN", + "GB" + ], + "x-enum-labels": [ + { + "default": "United States" + }, + { + "default": "France" + }, + { + "default": "Italy" + }, + { + "default": "Japan" + }, + { + "default": "China" + }, + { + "default": "United Kingdom" + } + ], + "x-label": { + "default": "Country" + }, + "type": "string" + }, + "first_name": { + "description": "The first name.", + "x-label": { + "default": "First Name" + }, + "type": "string" + }, + "full_name": { + "description": "The full name.", + "x-label": { + "default": "Full Name" + }, + "type": "string" + }, + "id": { + "description": "Id used to identify this address", + "type": "string" + }, + "job_title": { + "description": "The job title.", + "x-label": { + "default": "Job Title" + }, + "type": "string" + }, + "last_name": { + "description": "The last name.", + "x-label": { + "default": "Last Name" + }, + "type": "string" + }, + "phone": { + "description": "The phone number.", + "x-label": { + "default": "Contact Phone" + }, + "type": "string" + }, + "post_box": { + "description": "The post box.", + "x-label": { + "default": "Post Box" + }, + "type": "string" + }, + "postal_code": { + "description": "The postal code.", + "x-label": { + "default": "Postal Code" + }, + "type": "string" + }, + "salutation": { + "description": "The salutation.", + "x-label": { + "default": "Salutation" + }, + "type": "string" + }, + "second_name": { + "description": "The second name.", + "x-label": { + "default": "Second Name" + }, + "type": "string" + }, + "state_code": { + "description": "The state code.", + "x-label": { + "default": "State" + }, + "type": "string" + }, + "suffix": { + "description": "The suffix.", + "x-label": { + "default": "Suffix" + }, + "type": "string" + }, + "suite": { + "description": "The suite.", + "x-label": { + "default": "Suite No." + }, + "type": "string" + }, + "title": { + "description": "The title.", + "x-label": { + "default": "Title" + }, + "type": "string" + } + } + }, + "order_payment_card_request": { + "description": "Document representing an order payment card request.", + "properties": { + "card_type": { + "description": "", + "x-label": { + "default": "Credit Card Type" + }, + "maxLength": 256, + "type": "string" + }, + "credit_card_token": { + "description": "", + "type": "string" + }, + "expiration_month": { + "description": "", + "format": "int32", + "x-label": { + "default": "Credit Card Expiration Month" + }, + "type": "integer" + }, + "expiration_year": { + "description": "", + "format": "int32", + "x-label": { + "default": "Credit Card Expiration Year" + }, + "type": "integer" + }, + "holder": { + "description": "", + "x-label": { + "default": "Credit Card Holder" + }, + "maxLength": 256, + "type": "string" + }, + "issue_number": { + "description": "", + "x-label": { + "default": "Credit Card Issue Number" + }, + "maxLength": 256, + "type": "string" + }, + "number": { + "description": "", + "x-label": { + "default": "Credit Card Number" + }, + "maxLength": 4000, + "type": "string" + }, + "security_code": { + "description": "The security code for the payment card.", + "x-label": { + "default": "CVC" + }, + "maxLength": 4, + "type": "string" + }, + "valid_from_month": { + "description": "", + "format": "int32", + "x-label": { + "default": "Credit Card Valid From Month" + }, + "maximum": 12, + "minimum": 1, + "type": "integer" + }, + "valid_from_year": { + "description": "", + "format": "int32", + "x-label": { + "default": "Credit Card Valid From Year" + }, + "type": "integer" + } + } + }, + "order_payment_instrument": { + "description": "Document representing an order payment instrument.", + "properties": { + "amount": { + "description": "The payment transaction amount.", + "format": "double", + "type": "number" + }, + "authorization_status": { + "$ref": "#/definitions/status", + "description": "The authorization status of the payment transaction." + }, + "bank_routing_number": { + "description": "The bank routing number.", + "x-label": { + "default": "Bank Routing Number" + }, + "maxLength": 256, + "type": "string" + }, + "masked_gift_certificate_code": { + "description": "The masked gift certificate code.", + "type": "string" + }, + "payment_bank_account": { + "$ref": "#/definitions/payment_bank_account", + "description": "The payment bank account." + }, + "payment_card": { + "$ref": "#/definitions/payment_card", + "description": "The payment card." + }, + "payment_instrument_id": { + "description": "The payment instrument ID.", + "type": "string" + }, + "payment_method_id": { + "description": "The payment method id. Optional if a customer payment instrument id is specified.", + "maxLength": 256, + "type": "string" + } + } + }, + "order_payment_instrument_request": { + "description": "Document representing an order payment instrument request.", + "properties": { + "amount": { + "description": "The payment transaction amount.", + "format": "double", + "x-label": { + "default": "Amount" + }, + "type": "number" + }, + "bank_routing_number": { + "description": "The bank routing number.", + "x-label": { + "default": "Bank Routing Number" + }, + "maxLength": 256, + "type": "string" + }, + "create_customer_payment_instrument": { + "description": "A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument\n is only created when the OrderPaymentInstrument was authorized successfully.", + "type": "boolean" + }, + "customer_payment_instrument_id": { + "description": "The id of a customer payment instrument.", + "type": "string" + }, + "gift_certificate_code": { + "description": "The gift certificate code.", + "x-label": { + "default": "Gift Code" + }, + "maxLength": 256, + "type": "string" + }, + "payment_bank_account": { + "$ref": "#/definitions/payment_bank_account_request", + "description": "The payment bank account request data." + }, + "payment_card": { + "$ref": "#/definitions/order_payment_card_request", + "description": "The payment card." + }, + "payment_method_id": { + "description": "The payment method id. Optional if a customer payment instrument id is specified.", + "maxLength": 256, + "type": "string" + } + } + }, + "order_search_hit": { + "description": "Document representing an order search hit.", + "properties": { + "data": { + "$ref": "#/definitions/order", + "description": "" + }, + "relevance": { + "description": "The hit's relevance score.", + "format": "double", + "type": "number" + } + } + }, + "order_search_request": { + "description": "Document representing an order search request.", + "properties": { + "count": { + "description": "The number of returned documents", + "format": "int32", + "maximum": 200, + "minimum": 1, + "type": "integer" + }, + "db_start_record_": { + "description": "The zero-based index of the record that we want to start with, used to optimize special handling", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "expand": { + "description": "List of expansions to be applied to each search results. Expands are optional", + "items": { + "type": "string" + }, + "type": "array" + }, + "query": { + "$ref": "#/definitions/query", + "description": "The query to apply", + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + } + }, + "select": { + "description": "The field to be selected.", + "type": "string" + }, + "sorts": { + "description": "The list of sort clauses configured for the search request. Sort clauses are optional.", + "items": { + "$ref": "#/definitions/sort" + }, + "type": "array" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "query" + ] + }, + "order_search_result": { + "description": "Document representing an order search result.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "items": { + "type": "object" + }, + "type": "array" + }, + "db_start_record_": { + "description": "The zero-based index of the record that we want to start with, used to optimize special handling", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "expand": { + "description": "List of expansions to be applied to each search results. Expands are optional", + "items": { + "type": "string" + }, + "type": "array" + }, + "hits": { + "description": "The sorted array of search hits. This array can be empty.", + "items": { + "$ref": "#/definitions/order_search_hit" + }, + "type": "array" + }, + "next": { + "$ref": "#/definitions/result_page", + "description": "The URL of the next result page." + }, + "previous": { + "$ref": "#/definitions/result_page", + "description": "The URL of the previous result page." + }, + "query": { + "$ref": "#/definitions/query", + "description": "The query passed into the search", + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + } + }, + "select": { + "description": "The fields that you want to select.", + "type": "string" + }, + "sorts": { + "description": "The list of sort clauses configured for the search request. Sort clauses are optional.", + "items": { + "$ref": "#/definitions/sort" + }, + "type": "array" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "password_change_request": { + "description": "Document representing a password change request.", + "properties": { + "current_password": { + "description": "The customer's current password.", + "maxLength": 4096, + "type": "string" + }, + "password": { + "description": "The customer's new password.", + "maxLength": 4096, + "type": "string" + } + }, + "required": [ + "current_password", + "password" + ] + }, + "password_reset": { + "description": "Document representing a password reset request.", + "properties": { + "identification": { + "description": "The customer's login or the customer's email depending on the type value.", + "type": "string" + }, + "type": { + "description": "The type of customer identification.", + "enum": [ + "email", + "login" + ], + "type": "string" + } + } + }, + "payment_bank_account": { + "description": "Document representing a payment bank account.", + "properties": { + "drivers_license_last_digits": { + "description": "The last 4 characters of the decrypted driver's license number of the bank account associated with this payment\n instrument.", + "maxLength": 256, + "type": "string" + }, + "drivers_license_state_code": { + "description": "The driver license state code.", + "x-label": { + "default": "Bank Account Drivers License State" + }, + "maxLength": 256, + "type": "string" + }, + "holder": { + "description": "The holder of the bank account.", + "x-label": { + "default": "Bank Account Holder" + }, + "maxLength": 256, + "type": "string" + }, + "masked_drivers_license": { + "description": "The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*'\n character.", + "maxLength": 256, + "type": "string" + }, + "masked_number": { + "description": "The bank account masked number.", + "maxLength": 256, + "type": "string" + }, + "number_last_digits": { + "description": "The last digits of the bank account number.", + "maxLength": 256, + "type": "string" + } + } + }, + "payment_bank_account_request": { + "description": "Document representing a payment bank account request.", + "properties": { + "drivers_license": { + "description": "The drivers license.", + "x-label": { + "default": "Bank Account Drivers License" + }, + "maxLength": 256, + "type": "string" + }, + "drivers_license_state_code": { + "description": "The driver license state code.", + "x-label": { + "default": "Bank Account Drivers License State" + }, + "maxLength": 256, + "type": "string" + }, + "holder": { + "description": "The holder of the bank account.", + "x-label": { + "default": "Bank Account Holder" + }, + "maxLength": 256, + "type": "string" + }, + "number": { + "description": "The payment bank account number.", + "x-label": { + "default": "Bank Account Number" + }, + "maxLength": 256, + "type": "string" + } + } + }, + "payment_card": { + "description": "Document representing a payment card.", + "properties": { + "card_type": { + "description": "The payment card type (for example, 'Visa').", + "x-label": { + "default": "Type" + }, + "maxLength": 256, + "type": "string" + }, + "credit_card_expired": { + "description": "A flag indicating if the credit card is expired.", + "type": "boolean" + }, + "credit_card_token": { + "description": "A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the\n token store.", + "type": "string" + }, + "expiration_month": { + "description": "The month when the payment card expires.", + "format": "int32", + "type": "integer" + }, + "expiration_year": { + "description": "The year when the payment card expires.", + "format": "int32", + "type": "integer" + }, + "holder": { + "description": "The payment card holder.", + "maxLength": 256, + "type": "string" + }, + "issue_number": { + "description": "The payment card issue number.", + "maxLength": 256, + "type": "string" + }, + "masked_number": { + "description": "The masked credit card number.", + "maxLength": 4000, + "type": "string" + }, + "number_last_digits": { + "description": "The last digits of credit card number.", + "maxLength": 4000, + "type": "string" + }, + "valid_from_month": { + "description": "The payment card valid from month.", + "format": "int32", + "maximum": 12, + "minimum": 1, + "type": "integer" + }, + "valid_from_year": { + "description": "The payment card valid from year.", + "format": "int32", + "type": "integer" + } + } + }, + "payment_card_spec": { + "description": "Document representing the specification for a payment card.\n ", + "properties": { + "card_type": { + "description": "The type of the payment card.", + "type": "string" + }, + "checksum_verification_enabled": { + "description": "A flag indicating whether the card number is verified using the Luhn checksum algorithm.", + "type": "boolean" + }, + "description": { + "description": "The localized description of the payment card.", + "type": "string" + }, + "image": { + "description": "The URL to the image that represents the payment card.", + "type": "string" + }, + "name": { + "description": "The localized name of the payment card.", + "type": "string" + }, + "number_lengths": { + "description": "The sorted list of number lengths (individual lengths as well as\n length ranges).", + "items": { + "type": "string" + }, + "type": "array" + }, + "number_prefixes": { + "description": "The sorted list of number prefixes (individual prefixes as well\n as prefix ranges).", + "items": { + "type": "string" + }, + "type": "array" + }, + "security_code_length": { + "description": "The length of the security code for this card.", + "format": "int32", + "type": "integer" + } + } + }, + "payment_method": { + "description": "Document representing a payment method.", + "properties": { + "cards": { + "description": "The sorted array of payment cards (included only when the system payment method is CREDIT_CARD).", + "items": { + "$ref": "#/definitions/payment_card_spec" + }, + "type": "array" + }, + "description": { + "description": "The localized description of the payment method or card.", + "type": "string" + }, + "id": { + "description": "The id of the payment method or card.", + "maxLength": 256, + "type": "string" + }, + "image": { + "description": "The URL to the image that represents the payment method or card.", + "type": "string" + }, + "name": { + "description": "The localized name of the payment method or card.", + "type": "string" + }, + "payment_processor_id": { + "description": "The payment processor ID.", + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "payment_method_result": { + "description": "Result document of payment methods applicable for a basket.", + "properties": { + "applicable_payment_methods": { + "description": "The applicable payment methods.", + "items": { + "$ref": "#/definitions/payment_method" + }, + "type": "array" + } + } + }, + "price_adjustment": { + "description": "Document representing a price adjustment within a basket or order. Price adjustments\n can be assigned at the order, product, or shipping level. They can be created by the\n promotion engine (if the custom flag is set to false) or can be added by custom logic (if the custom\n flag is set to true). For custom price adjustments created by a user, the manual flag should be\n set to true; this is always the case for price adjustments created using OCAPI.\n ", + "properties": { + "applied_discount": { + "$ref": "#/definitions/discount", + "description": "A price adjustment that provides details of the discount that was applied.\n This is null for custom price adjustments created\n without discount details." + }, + "coupon_code": { + "description": "The coupon code that triggered the promotion, provided\n the price adjustment was created as the result of a promotion\n being triggered by a coupon.", + "type": "string" + }, + "created_by": { + "description": "The user who created the price adjustment.", + "type": "string" + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "x-label": { + "default": "Creation Date" + }, + "readOnly": true, + "type": "string" + }, + "custom": { + "description": "A flag indicating whether this price adjustment was created by custom logic. This flag is\n set to true unless the price adjustment was created by the promotion engine.", + "type": "boolean" + }, + "item_text": { + "description": "The text describing the item in more detail.", + "x-label": { + "default": "Item Text" + }, + "type": "string" + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "x-label": { + "default": "Last Modified" + }, + "readOnly": true, + "type": "string" + }, + "manual": { + "description": "A flag indicating whether this price adjustment was created in a manual process.\n \n For custom price adjustments created using the shop API, this always\n returns true. Using the scripting API, however, it is possible to set this to true\n or false, according to the use case.", + "type": "boolean" + }, + "price": { + "description": "The adjustment price.", + "format": "double", + "type": "number" + }, + "price_adjustment_id": { + "description": "The price adjustment id (uuid).", + "type": "string" + }, + "promotion_id": { + "description": "The id of the related promotion. Custom price adjustments\n can be assigned any promotion id so long it is not\n used by a price adjustment belonging to the same item\n and is not used by promotion defined in the promotion engine.\n If not specified, a promotion id is generated.", + "type": "string" + }, + "promotion_link": { + "description": "The URL addressing the related promotion.", + "type": "string" + }, + "reason_code": { + "description": "The reason why this price adjustment was made.", + "enum": [ + "PRICE_MATCH", + "BACKORDER", + "EVEN_EXCHANGE" + ], + "x-enum-labels": [ + { + "default": "Price Match" + }, + { + "default": "Backorder" + }, + { + "default": "Even Exchange" + } + ], + "x-label": { + "default": "Reason Code" + }, + "type": "string" + } + } + }, + "price_adjustment_limit": { + "description": "\n A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at the specified\n level.\n ", + "properties": { + "amount": { + "description": "The value for the currency or null if no currency value is specified.", + "format": "double", + "type": "number" + }, + "currency": { + "description": "Returns the currency of the Price Adjustment Limit or null if not applicable.\n \n Will be null if this is a percent limit only.\n \n Price adjustment limits can be given up to a fixed amount (unit=a currency unit).", + "type": "string" + }, + "percent": { + "description": "Returns percentage value of the Price Adjustment Limit or null if not applicable.\n \n Will be null if this is a currency limit only.\n ", + "format": "double", + "type": "number" + }, + "type": { + "description": "The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the Price Adjustment\n is applicable.", + "enum": [ + "item", + "shipping", + "order" + ], + "type": "string" + } + } + }, + "price_adjustment_limits": { + "description": "Document representing a list of PriceAdjustmentLimit items.\n It returns all the price adjustment limits for a particular user\n across various Access Roles.", + "properties": { + "limits": { + "description": "The list of price adjustment limits applicable for a user across all roles.", + "items": { + "$ref": "#/definitions/price_adjustment_limit" + }, + "type": "array" + } + } + }, + "price_adjustment_request": { + "description": "Document representing a price adjustment request.\n ", + "properties": { + "discount": { + "$ref": "#/definitions/discount_request", + "description": "A discount that you can specify instead of a price.\n When defining a discount, you must specify a type and\n a value." + }, + "item_id": { + "description": "The item to which the price adjustment should be added, depending on the specified level.\n If the level is 'order', you need not specify an item id. If 'shipping', specify the uuid\n of the shipping item. If 'product', specify the uuid of the product item.", + "type": "string" + }, + "item_text": { + "description": "The text describing the item in more detail.", + "x-label": { + "default": "Item Text" + }, + "type": "string" + }, + "level": { + "description": "The level at which the adjustment is applied. When a product or shipping\n level is specified, you must also specify the item id.", + "enum": [ + "product", + "shipping", + "order" + ], + "type": "string" + }, + "promotion_id": { + "description": "The id of the related promotion. Custom price adjustments\n can be assigned any promotion id so long it is not\n used by a price adjustment belonging to the same item\n and is not used by promotion defined in the promotion engine.\n If not specified, a promotion id is generated.", + "type": "string" + }, + "reason_code": { + "description": "The reason why this price adjustment was made.", + "enum": [ + "PRICE_MATCH", + "BACKORDER", + "EVEN_EXCHANGE" + ], + "x-enum-labels": [ + { + "default": "Price Match" + }, + { + "default": "Backorder" + }, + { + "default": "Even Exchange" + } + ], + "x-label": { + "default": "Reason Code" + }, + "type": "string" + } + }, + "required": [ + "level" + ] + }, + "product": { + "description": "Document representing a product.", + "properties": { + "brand": { + "description": "The product's brand.", + "x-label": { + "default": "Brand" + }, + "type": "string" + }, + "bundled_products": { + "description": "The array of all bundled products of this product.", + "items": { + "$ref": "#/definitions/bundled_product" + }, + "type": "array" + }, + "c_availableForInStorePickup": { + "description": "Signals if there are inventory lists for brick-and-mortar stores associated with this product.", + "x-label": { + "default": "Available for In Store Pickup" + }, + "type": "boolean" + }, + "c_batteryLife": { + "x-label": { + "default": "Battery Life" + }, + "type": "string" + }, + "c_batteryType": { + "x-label": { + "default": "Battery Type" + }, + "type": "string" + }, + "c_bootType": { + "description": "Type of Boot for search refinement.", + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070" + ], + "x-enum-labels": [ + { + "default": "Winter" + }, + { + "default": "Waterproof" + }, + { + "default": "Classic" + }, + { + "default": "Ankle & Mid" + }, + { + "default": "Tall" + }, + { + "default": "6\"" + }, + { + "default": "Casual" + } + ], + "type": "string" + }, + "x-label": { + "default": "Boot Type" + }, + "type": "array" + }, + "c_bottomType": { + "description": "Bottom type for search refinement", + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080" + ], + "x-enum-labels": [ + { + "default": "Khakis" + }, + { + "default": "Denim" + }, + { + "default": "Dress" + }, + { + "default": "Casual" + }, + { + "default": "Shorts" + }, + { + "default": "Work" + }, + { + "default": "Cargo" + }, + { + "default": "Fleece" + } + ], + "type": "string" + }, + "x-label": { + "default": "Bottom Type" + }, + "type": "array" + }, + "c_color": { + "description": "Product color used for variation attribute", + "x-label": { + "default": "Color" + }, + "type": "string" + }, + "c_consoleWarranty": { + "x-label": { + "default": "Extended Warranty" + }, + "type": "string" + }, + "c_customCSSFile": { + "description": "Use this attribute to apply custom styles for this product.", + "x-label": { + "default": "Custom CSS File" + }, + "type": "string" + }, + "c_digitalCameraFeatures": { + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080", + "0090", + "0100", + "0110", + "0120", + "0130", + "0140", + "0150", + "0160", + "0170", + "0180", + "0190", + "0200", + "0210", + "0220", + "0230", + "0240", + "0250", + "0260", + "0270", + "0280" + ], + "x-enum-labels": [ + { + "default": "Built In Flash" + }, + { + "default": "HD Video" + }, + { + "default": "GPS Geo Tagging" + }, + { + "default": "Variable Self Timer" + }, + { + "default": "Image Optimizer" + }, + { + "default": "Stop Motion Video" + }, + { + "default": "Self Cleaning" + }, + { + "default": "Pro Performance" + }, + { + "default": "51 Area Autofocus" + }, + { + "default": "Super Fast Startup" + }, + { + "default": "Easy to Learn" + }, + { + "default": "Wide Angle Optical Zoom" + }, + { + "default": "Manual Controls" + }, + { + "default": "Wired LAN" + }, + { + "default": "GPS Enabled" + }, + { + "default": "In Camera Red Eye Reduction" + }, + { + "default": "Large LCD" + }, + { + "default": "Optical Zoom" + }, + { + "default": "Anti-Shake" + }, + { + "default": "Touch Screen" + }, + { + "default": "Image Stabilization" + }, + { + "default": "Fast Shutter" + }, + { + "default": "Slim" + }, + { + "default": "35mm Full Frame Sensor" }, - "variants": { - "description": "The array of actual variants. This array can be empty. Only for types master, variation group and variant.", - "items": { - "$ref": "#/definitions/variant" - }, - "type": "array" + { + "default": "Wide Angle|Continuous Shooting" }, - "variation_attributes": { - "description": "Sorted array of variation attributes information. This array can be empty. Only for types master,\n variation group and variant.", - "items": { - "$ref": "#/definitions/variation_attribute" - }, - "type": "array" + { + "default": "Continuous Shooting" }, - "variation_groups": { - "description": "The array of actual variation groups. This array can be empty. Only for types master, variation group and variant.", - "items": { - "$ref": "#/definitions/variation_group" - }, - "type": "array" + { + "default": "ISO 1600" }, - "variation_values": { - "additionalProperties": { - "type": "string" - }, - "description": "The actual variation attribute id - value pairs. Only for type variant and\n variation group.", - "type": "object" + { + "default": "Red Eye Reduction" } + ], + "type": "string" + }, + "x-label": { + "default": "Digital Camera Features" + }, + "type": "array" + }, + "c_digitalCameraPixels": { + "x-label": { + "default": "Digital Camera Pixels" + }, + "type": "string" + }, + "c_digitalCameraType": { + "x-label": { + "default": "Digital Camera Type" + }, + "type": "string" + }, + "c_digitalCameraWarranty": { + "x-label": { + "default": "Extended Warranty" + }, + "type": "string" + }, + "c_dimDepth": { + "x-label": { + "default": "Depth" + }, + "type": "string" + }, + "c_dimHeight": { + "x-label": { + "default": "Height" + }, + "type": "string" + }, + "c_dimWeight": { + "x-label": { + "default": "Weight" + }, + "type": "string" + }, + "c_dimWidth": { + "x-label": { + "default": "Width" + }, + "type": "string" + }, + "c_displaySize": { + "x-label": { + "default": "Display Size" + }, + "type": "string" + }, + "c_gameGenre": { + "items": { + "enum": [ + "Action", + "Educational", + "Kids", + "Racing", + "Role-Playing", + "Sports", + "Strategy" + ], + "x-enum-labels": [ + { + "default": "Action" + }, + { + "default": "Educational" + }, + { + "default": "Kids" + }, + { + "default": "Racing" + }, + { + "default": "Role-Playing" + }, + { + "default": "Sports" + }, + { + "default": "Strategy" + } + ], + "type": "string" + }, + "x-label": { + "default": "Genre" + }, + "type": "array" + }, + "c_gameRating": { + "x-label": { + "default": "Game Rating" + }, + "type": "string" + }, + "c_gameSystemType": { + "x-label": { + "default": "Gaming System" + }, + "type": "string" + }, + "c_gpsFeatures": { + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080", + "0090", + "0100", + "0110", + "0120", + "0130", + "0140", + "0150", + "0160", + "0170", + "0180", + "0190", + "0200", + "0210", + "0230" + ], + "x-enum-labels": [ + { + "default": "Preloaded" + }, + { + "default": "Voice Prompts" + }, + { + "default": "3D" + }, + { + "default": "Touch Screen" + }, + { + "default": "FM Traffic" + }, + { + "default": "MSN Direct" + }, + { + "default": "MP3 Player" + }, + { + "default": "Picture Viewer" + }, + { + "default": "Bluetooth®" + }, + { + "default": "Speech Recognition" + }, + { + "default": "XM Navtraffic" + }, + { + "default": "Waterproof" + }, + { + "default": "Motorcycle Ready" + }, + { + "default": "Lunar Tracking" + }, + { + "default": "Wrist Wear" + }, + { + "default": "Barometer" + }, + { + "default": "Compass" + }, + { + "default": "Geocaching" + }, + { + "default": "Jeppesen Enabled" + }, + { + "default": "Built-in HIS" + }, + { + "default": "Auto Logbook" + }, + { + "default": "Automotive Friendly" + } + ], + "type": "string" + }, + "x-label": { + "default": "GPS Features" + }, + "type": "array" + }, + "c_gpsType": { + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040" + ], + "x-enum-labels": [ + { + "default": "Automotive" + }, + { + "default": "Personal" + }, + { + "default": "Outdoor" + }, + { + "default": "Aviation" + } + ], + "type": "string" + }, + "x-label": { + "default": "GPS Type" + }, + "type": "array" + }, + "c_gpsWarranty": { + "x-label": { + "default": "Extended Warranty" + }, + "type": "string" + }, + "c_imageAspectRatio": { + "x-label": { + "default": "Image Aspect Ratio" + }, + "type": "string" + }, + "c_isNew": { + "x-label": { + "default": "New Arrival?" + }, + "type": "boolean" + }, + "c_isNewtest": { + "description": "This indiciates if the product is a new arrival.", + "x-label": { + "default": "New Arrival?" + }, + "type": "boolean" + }, + "c_isSale": { + "description": "This is the help text. It is used for sorting rules.", + "x-label": { + "default": "On sale?" + }, + "type": "boolean" + }, + "c_kidsAge": { + "description": "Kids Age used for search refinements", + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070" + ], + "x-enum-labels": [ + { + "default": "Infant (0-1 yr)" + }, + { + "default": "Toddler (1-5 yrs)" + }, + { + "default": "Youth (5-9 yrs)" + }, + { + "default": "Junior (9-12 yrs)" + }, + { + "default": "Newborn (1-6 mths)" + }, + { + "default": "Infant (9 mnths - 3 yrs)" + }, + { + "default": "Junior (4-12 yrs)" + } + ], + "x-label": { + "default": "Age" + }, + "type": "string" + }, + "c_length": { + "description": "This attribute is used for mens and womens pants lengths.", + "x-label": { + "default": "Length" + }, + "type": "string" + }, + "c_lensAperture": { + "x-label": { + "default": "Lens Aperture" + }, + "type": "string" + }, + "c_materialTest": { + "items": { + "enum": [ + "cotton", + "wool", + "polyester" + ], + "x-enum-labels": [ + { + "default": "Cotton" + }, + { + "default": "Wool" + }, + { + "default": "Polyester" + } + ], + "type": "string" + }, + "x-label": { + "default": "Material" + }, + "type": "array" + }, + "c_mediaFormat": { + "description": "Media Format", + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080", + "0090", + "0100" + ], + "x-enum-labels": [ + { + "default": "MP3" + }, + { + "default": "WMA" + }, + { + "default": "JPEG" + }, + { + "default": "WAV" + }, + { + "default": "FM Tuner" + }, + { + "default": "AAC" + }, + { + "default": "WMP" + }, + { + "default": "MPEG4" + }, + { + "default": "AVC" + }, + { + "default": "ASP" + } + ], + "type": "string" + }, + "x-label": { + "default": "Media Format" + }, + "type": "array" + }, + "c_memorySize": { + "description": "Memory Size", + "x-label": { + "default": "Memory Size" + }, + "type": "string" + }, + "c_memoryType": { + "items": { + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080", + "0090" + ], + "x-enum-labels": [ + { + "default": "SD" + }, + { + "default": "Memory Stick Pro DUO" + }, + { + "default": "Compact Flash" + }, + { + "default": "MMC" + }, + { + "default": "SDHC" + }, + { + "default": "CF Card" + }, + { + "default": "External Media" + }, + { + "default": "Micro SD" + }, + { + "default": "Garmin Data Card" + } + ], + "type": "string" + }, + "x-label": { + "default": "Memory Type" + }, + "type": "array" + }, + "c_musicStorage": { + "x-label": { + "default": "Music Storage" + }, + "type": "string" + }, + "c_opticalZoom": { + "x-label": { + "default": "Optical Zoom" + }, + "type": "string" + }, + "c_outerwearType": { + "description": "Type of Outerwear for search refinement", + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080" + ], + "x-enum-labels": [ + { + "default": "Waterproof" + }, + { + "default": "Jackets" + }, + { + "default": "Vest" + }, + { + "default": "Pants" + }, + { + "default": "Casual" + }, + { + "default": "Sweater" + }, + { + "default": "Outdoor" + }, + { + "default": "Fleece" + } + ], + "x-label": { + "default": "Outerwear Type" + }, + "type": "string" + }, + "c_portableAudioType": { + "items": { + "enum": [ + "0010", + "0020", + "0030" + ], + "x-enum-labels": [ + { + "default": "Audio" + }, + { + "default": "Video" + }, + { + "default": "Internet" + } + ], + "type": "string" + }, + "x-label": { + "default": "Portable Audio Type" + }, + "type": "array" + }, + "c_refinementColor": { + "enum": [ + "black", + "blue", + "green", + "red", + "orange", + "pink", + "purple", + "white", + "yellow", + "grey", + "beige", + "miscellaneous", + "brown", + "navy" + ], + "x-enum-labels": [ + { + "default": "Black" + }, + { + "default": "Blue" + }, + { + "default": "Green" + }, + { + "default": "Red" + }, + { + "default": "Orange" + }, + { + "default": "Pink" + }, + { + "default": "Purple" + }, + { + "default": "White" + }, + { + "default": "Yellow" + }, + { + "default": "Grey" + }, + { + "default": "Beige" + }, + { + "default": "Miscellaneous" + }, + { + "default": "Brown" + }, + { + "default": "Navy" + } + ], + "x-label": { + "default": "Refinement Color" + }, + "type": "string" + }, + "c_resolution": { + "x-label": { + "default": "Resolution" + }, + "type": "string" + }, + "c_sandalType": { + "description": "Type of Sandal for search refinement", + "enum": [ + "0010", + "0020", + "0030" + ], + "x-enum-labels": [ + { + "default": "Sport" + }, + { + "default": "Casual" + }, + { + "default": "Thong" + } + ], + "x-label": { + "default": "Sandal Type" + }, + "type": "string" + }, + "c_sheets": { + "description": "test attribute", + "items": { + "enum": [ + "value1", + "value2", + "value3" + ], + "x-enum-labels": [ + { + "default": "Value 1" + }, + { + "default": "Value 2" + }, + { + "default": "Value 3" + } + ], + "type": "string" + }, + "x-label": { + "default": "Sheets" + }, + "type": "array" + }, + "c_shoeType": { + "description": "Type of Shoe for search refinements", + "enum": [ + "0010", + "0020", + "0030", + "0040", + "0050", + "0060", + "0070", + "0080", + "0090", + "0100", + "0110" + ], + "x-enum-labels": [ + { + "default": "Chukka" + }, + { + "default": "Lace Up" + }, + { + "default": "Slip On" + }, + { + "default": "Clog" + }, + { + "default": "Boat" + }, + { + "default": "Oxford" + }, + { + "default": "Loafer" + }, + { + "default": "Waterproof" + }, + { + "default": "Flats" + }, + { + "default": "Ballerina" + }, + { + "default": "Heeled" + } + ], + "x-label": { + "default": "Shoe Type" + }, + "type": "string" + }, + "c_size": { + "description": "This attribute is used for all footwear, apparel and accessory sizing for men, women and kids products.", + "x-label": { + "default": "Size" + }, + "type": "string" + }, + "c_skinConcern": { + "items": { + "enum": [ + "dryTight", + "comprehensive", + "liftingLossFirm" + ], + "x-enum-labels": [ + { + "default": "Dry, Tight Skin" + }, + { + "default": "Comprehensive Protection" + }, + { + "default": "Lifting & Loss of Firmness" + } + ], + "type": "string" + }, + "x-label": { + "default": "Skin Concern" + }, + "type": "array" + }, + "c_styleNumber": { + "x-label": { + "default": "Style Number" + }, + "type": "string" + }, + "c_tabDescription": { + "format": "html", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "c_tabDetails": { + "format": "html", + "x-label": { + "default": "Details" + }, + "type": "string" + }, + "c_test": { + "format": "html", + "x-label": { + "default": "test" + }, + "type": "string" + }, + "c_topType": { + "description": "Type of tops in clothing", + "x-label": { + "default": "Top Type" + }, + "type": "string" + }, + "c_tvSignalFormat": { + "x-label": { + "default": "TV Signal Format" + }, + "type": "string" + }, + "c_tvSize": { + "x-label": { + "default": "Size" + }, + "type": "string" + }, + "c_tvType": { + "enum": [ + "0010", + "0020", + "0030", + "0040" + ], + "x-enum-labels": [ + { + "default": "Plasma" + }, + { + "default": "LCD" + }, + { + "default": "DLP" + }, + { + "default": "Projection" + } + ], + "x-label": { + "default": "TV Type" + }, + "type": "string" + }, + "c_tvWarranty": { + "x-label": { + "default": "Extended Warranty" + }, + "type": "string" + }, + "c_videoStorage": { + "x-label": { + "default": "Video Storage" + }, + "type": "string" + }, + "c_waist": { + "description": "Attribute used for apparel waist sizing.", + "x-label": { + "default": "Waist" + }, + "type": "string" + }, + "c_width": { + "description": "This attribute is used for shoe widths for mens, womens and kids.", + "x-label": { + "default": "Width" + }, + "type": "string" + }, + "currency": { + "description": "The ISO 4217 mnemonic code of the currency.", + "type": "string" + }, + "ean": { + "description": "The European Article Number.", + "x-label": { + "default": "EAN" + }, + "type": "string" + }, + "fetch_date": { + "format": "int32", + "type": "integer" + }, + "id": { + "description": "The id (SKU) of the product.", + "x-label": { + "default": "ID", + "en": "SKUAGE" + }, + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "image_groups": { + "description": "The array of product image groups.", + "items": { + "$ref": "#/definitions/image_group" + }, + "type": "array" + }, + "inventories": { + "description": "The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property\n is only returned in context of the 'availability' expansion.", + "items": { + "$ref": "#/definitions/inventory" + }, + "type": "array" + }, + "inventory": { + "$ref": "#/definitions/inventory", + "description": "The site default inventory information. This property is only\n returned in context of the 'availability' expansion." + }, + "long_description": { + "description": "The localized product long description.", + "format": "html", + "x-label": { + "default": "Product Details" + }, + "type": "string" + }, + "manufacturer_name": { + "description": "The products manufacturer name.", + "x-label": { + "default": "Manufacturer" + }, + "type": "string" + }, + "manufacturer_sku": { + "description": "The products manufacturer sku.", + "x-label": { + "default": "Manufacturer Product ID" + }, + "type": "string" + }, + "master": { + "$ref": "#/definitions/master", + "description": "The master product information. Only for types master, variation group and variant." + }, + "min_order_quantity": { + "description": "The minimum order quantity for this product.", + "format": "double", + "x-label": { + "default": "Minimum Order Quantity" + }, + "type": "number" + }, + "name": { + "description": "The localized product name.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "options": { + "description": "The array of product options. This array can be empty. Only for type option.", + "items": { + "$ref": "#/definitions/option" + }, + "type": "array" + }, + "page_description": { + "description": "The localized products page description.", + "x-label": { + "default": "Page Description" + }, + "type": "string" + }, + "page_keywords": { + "description": "The localized products page description.", + "x-label": { + "default": "Page Keywords" + }, + "type": "string" + }, + "page_title": { + "description": "The localized products page title.", + "x-label": { + "default": "Page Title" + }, + "type": "string" + }, + "price": { + "description": "The sales price of the product. In case of complex products like master or set this is the minimum price of\n related child products.", + "format": "double", + "type": "number" + }, + "price_max": { + "description": "The maximum sales of related child products in case of complex products like master or set.", + "format": "double", + "type": "number" + }, + "prices": { + "additionalProperties": { + "format": "double", + "type": "number" + }, + "description": "The prices map with price book ids and their values.", + "type": "object" + }, + "primary_category_id": { + "description": "The id of the products primary category.", + "type": "string" + }, + "product_links": { + "description": "The array of source and target products links information.", + "items": { + "$ref": "#/definitions/product_link" + }, + "type": "array" + }, + "product_promotions": { + "description": "The array of active customer product promotions for this product. This array can be empty.\n Coupon promotions are not returned in this array.", + "items": { + "$ref": "#/definitions/product_promotion" + }, + "type": "array" + }, + "recommendations": { + "description": "Returns a list of recommendations.", + "items": { + "$ref": "#/definitions/recommendation" + }, + "type": "array" + }, + "set_products": { + "description": "The array of set products of this product.", + "items": { + "$ref": "#/definitions/product" + }, + "type": "array" + }, + "short_description": { + "description": "The localized product short description.", + "format": "html", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "step_quantity": { + "description": "The steps in which the order amount of the product can be\n increased.", + "format": "double", + "x-label": { + "default": "Step Quantity" + }, + "type": "number" + }, + "type": { + "$ref": "#/definitions/product_type", + "description": "The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set." + }, + "unit": { + "description": "The sales unit of the product.", + "x-label": { + "default": "Sales Unit" + }, + "type": "string" + }, + "upc": { + "description": "The Universal Product Code.", + "x-label": { + "default": "UPC" + }, + "type": "string" + }, + "valid_from": { + "description": "The time when product is valid from.", + "format": "date-time", + "x-label": { + "default": "Online From" + }, + "type": "string" + }, + "valid_to": { + "description": "The time when product is valid to.", + "format": "date-time", + "x-label": { + "default": "Online To" + }, + "type": "string" + }, + "variants": { + "description": "The array of actual variants. This array can be empty. Only for types master, variation group and variant.", + "items": { + "$ref": "#/definitions/variant" + }, + "type": "array" + }, + "variation_attributes": { + "description": "Sorted array of variation attributes information. This array can be empty. Only for types master,\n variation group and variant.", + "items": { + "$ref": "#/definitions/variation_attribute" + }, + "type": "array" + }, + "variation_groups": { + "description": "The array of actual variation groups. This array can be empty. Only for types master, variation group and variant.", + "items": { + "$ref": "#/definitions/variation_group" + }, + "type": "array" + }, + "variation_values": { + "additionalProperties": { + "type": "string" + }, + "description": "The actual variation attribute id - value pairs. Only for type variant and\n variation group.", + "type": "object" + } + }, + "required": [ + "id" + ] + }, + "product_details_link": { + "description": "Document representing a link to the resource for product details.", + "properties": { + "link": { + "description": "The target of the link.", + "type": "string" + }, + "product_description": { + "description": "The description of the product.", + "type": "string" + }, + "product_id": { + "description": "The id of the product.", + "type": "string" + }, + "product_name": { + "description": "The name of the product.", + "type": "string" + }, + "title": { + "description": "The link title.", + "type": "string" + } + }, + "required": [ + "product_id" + ] + }, + "product_item": { + "description": "Document representing a product item.", + "properties": { + "adjusted_tax": { + "description": "The tax of the product item after adjustments applying.", + "format": "double", + "type": "number" + }, + "base_price": { + "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", + "format": "double", + "type": "number" + }, + "bonus_discount_line_item_id": { + "description": "The id of the bonus discount line item this bonus product relates to.", + "type": "string" + }, + "bonus_product_line_item": { + "description": "A flag indicating whether the product item is a bonus.", + "type": "boolean" + }, + "bundled_product_items": { + "description": "The array of bundled product items. Can be empty.", + "items": { + "$ref": "#/definitions/product_item" + }, + "type": "array" + }, + "c_fromStoreId": { + "description": "Links the store to the product line item for grouping shipments in the checkout process.", + "x-label": { + "default": "From Store ID" + }, + "type": "string" + }, + "gift": { + "description": "Returns true if the item is a gift.", + "x-label": { + "default": "Is A Gift" + }, + "type": "boolean" + }, + "gift_message": { + "description": "The gift message.", + "x-label": { + "default": "Gift Message" + }, + "type": "string" + }, + "inventory_id": { + "description": "The inventory list id associated with this item.", + "maxLength": 256, + "type": "string" + }, + "item_id": { + "description": "The item identifier. Use this to identify an item when updating the item quantity or creating a custom price\n adjustment for an item.", + "type": "string" + }, + "item_text": { + "description": "The text describing the item in more detail.", + "type": "string" + }, + "option_items": { + "description": "The array of option items. This array can be empty.", + "items": { + "$ref": "#/definitions/option_item" + }, + "type": "array" + }, + "price": { + "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", + "format": "double", + "type": "number" + }, + "price_adjustments": { + "description": "Array of price adjustments. Can be empty.", + "items": { + "$ref": "#/definitions/price_adjustment" + }, + "type": "array" + }, + "price_after_item_discount": { + "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", + "format": "double", + "type": "number" + }, + "price_after_order_discount": { + "description": "The price of this product line item after considering all\n dependent price adjustments and prorating all order-level\n price adjustments. For net pricing the net price is returned. For gross\n pricing, the gross price is returned.", + "format": "double", + "type": "number" + }, + "product_id": { + "description": "", + "maxLength": 100, + "type": "string" + }, + "product_list_item": { + "$ref": "#/definitions/product_list_item_reference", + "description": "" + }, + "product_name": { + "description": "The name of the product.", + "type": "string" + }, + "quantity": { + "description": "The quantity of the products represented by this item.", + "format": "double", + "maximum": 999, + "minimum": 0, + "type": "number" + }, + "shipment_id": { + "description": "The id of the shipment which includes the product item.", + "type": "string" + }, + "shipping_item_id": { + "description": "The reference to the related shipping item if it exists. This is the case if for example when a surcharge is\n defined for individual products using a particular a shipping method.", + "type": "string" + }, + "tax": { + "description": "The tax of the product item before adjustments applying.", + "format": "double", + "type": "number" + }, + "tax_basis": { + "description": "The price used to calculate the tax for this product item.", + "format": "double", + "type": "number" + }, + "tax_class_id": { + "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", + "type": "string" + }, + "tax_rate": { + "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", + "format": "double", + "type": "number" + } + }, + "required": [ + "quantity" + ] + }, + "product_link": { + "description": "Document representing a link between two products. It contains the id of the source and target products, the type of\n product link, and URLs to retrieve product data.", + "properties": { + "source_product_id": { + "description": "The semantic id of the product from which this product link is coming.", + "type": "string" + }, + "source_product_link": { + "description": "The URL addressing the product from which this product link is coming.", + "type": "string" + }, + "target_product_id": { + "description": "The semantic id of the product to which this product link is pointing.", + "type": "string" + }, + "target_product_link": { + "description": "The URL addressing the product to which this product link is pointing.", + "type": "string" + }, + "type": { + "description": "The type of this product link.", + "enum": [ + "cross_sell", + "replacement", + "up_sell", + "accessory", + "newer_version", + "alt_orderunit", + "spare_part", + "other" + ], + "type": "string" + } + } + }, + "product_list_event": { + "description": "Document representing a product list event.", + "properties": { + "city": { + "description": "The city where the event takes place.", + "type": "string" + }, + "country": { + "description": "The country where the event takes place.", + "type": "string" + }, + "date": { + "description": "The date when the event takes place.", + "format": "date-time", + "type": "string" + }, + "state": { + "description": "The federal state where the event takes place.", + "type": "string" + }, + "type": { + "description": "Type of the event to celebrate.", + "type": "string" + } + } + }, + "product_list_item_reference": { + "properties": { + "id": { + "description": "The id of the product list item.", + "type": "string" + }, + "priority": { + "format": "int32", + "type": "integer" + }, + "product_details_link": { + "$ref": "#/definitions/product_details_link" + }, + "product_list": { + "$ref": "#/definitions/product_list_link", + "description": "The link of the product list, the item is assigned" + }, + "public": { + "type": "boolean" + }, + "purchased_quantity": { + "format": "double", + "type": "number" + }, + "quantity": { + "format": "double", + "minimum": 0, + "type": "number" + }, + "type": { + "enum": [ + "product", + "gift_certificate" + ], + "type": "string" + } + }, + "required": [ + "id" + ] + }, + "product_list_link": { + "description": "Document representing a link to a product list.", + "properties": { + "description": { + "description": "The description of this product list.", + "type": "string" + }, + "link": { + "description": "The target of the link.", + "type": "string" + }, + "name": { + "description": "The name of this product list.", + "type": "string" + }, + "public": { + "description": "A flag indicating whether the owner made this product list available for access\n by other customers.", + "type": "boolean" + }, + "title": { + "description": "The link title.", + "type": "string" + }, + "type": { + "description": "The type of the product list.", + "enum": [ + "wish_list", + "gift_registry", + "shopping_list", + "custom_1", + "custom_2", + "custom_3" + ], + "type": "string" + } + } + }, + "product_list_registrant": { + "description": "\n A ProductListRegistrant is typically associated with an event related product list such as a gift registry. It holds\n information about a person associated with the event such as a bride or groom.\n ", + "properties": { + "first_name": { + "description": "The first name of the registrant.", + "type": "string" + }, + "last_name": { + "description": "The last name of the registrant.", + "type": "string" + }, + "role": { + "description": "The role of the registrant.", + "type": "string" + } + } + }, + "product_list_shipping_address": { + "description": "Document representing a product list shipping address.", + "properties": { + "address_id": { + "description": "The id of this address.", + "minLength": 1, + "type": "string" + }, + "city": { + "description": "The city of this address.", + "type": "string" + }, + "first_name": { + "description": "The first name of this address.", + "type": "string" + }, + "last_name": { + "description": "The last name of this address.", + "type": "string" + } + }, + "required": [ + "address_id" + ] + }, + "product_promotion": { + "description": "Document representing a product promotion.", + "properties": { + "callout_msg": { + "description": "The localized call-out message of the promotion.", + "x-label": { + "default": "callout message" + }, + "type": "string" + }, + "link": { + "description": "The URL addressing the promotion.", + "x-label": { + "default": "link" + }, + "type": "string" + }, + "promotion_id": { + "description": "The unique id of the promotion.", + "x-label": { + "default": "promotion id" + }, + "type": "string" + }, + "promotional_price": { + "description": "The promotional price for this product.", + "format": "double", + "x-label": { + "default": "promotional price" + }, + "type": "number" + } + } + }, + "product_recommendations_result": { + "description": "The product recommendations", + "properties": { + "count": { + "description": "Count of current elements", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The objects itself", + "items": { + "$ref": "#/definitions/product" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "product_ref": { + "description": "Document representing a product reference.", + "properties": { + "id": { + "description": "The ID of the product reference.", + "type": "string" + }, + "link": { + "description": "The link to the product reference.", + "maxLength": 100, + "type": "string" + } + }, + "required": [ + "id", + "link" + ] + }, + "product_result": { + "description": "Result document containing an array of products.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of product documents.", + "items": { + "$ref": "#/definitions/product" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "product_search_hit": { + "description": "Document representing a product search hit.", + "properties": { + "currency": { + "description": "The ISO 4217 mnemonic code of the currency.", + "type": "string" + }, + "hit_type": { + "description": "The type information for the search hit.", + "type": "string" + }, + "image": { + "$ref": "#/definitions/image", + "description": "The first image of the product hit for the configured viewtype.", + "x-label": { + "default": "Standard Image" + } + }, + "link": { + "description": "The URL addressing the product.", + "type": "string" + }, + "orderable": { + "description": "A flag indicating whether the product is orderable.", + "type": "boolean" + }, + "price": { + "description": "The sales price of the product. In case of complex products like master or set this is the minimum price of\n related child products.", + "format": "double", + "type": "number" + }, + "price_max": { + "description": "The maximum sales of related child products in case of complex products like master or set.", + "format": "double", + "type": "number" + }, + "prices": { + "additionalProperties": { + "format": "double", + "type": "number" + }, + "description": "The prices map with price book ids and their values.", + "type": "object" + }, + "product_id": { + "description": "The id (SKU) of the product.", + "x-label": { + "default": "ID", + "en": "SKUAGE" + }, + "type": "string" + }, + "product_name": { + "description": "The localized name of the product.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "product_type": { + "$ref": "#/definitions/product_type", + "description": "The type information for the product." + }, + "represented_product": { + "$ref": "#/definitions/product_ref", + "description": "The first represented product." + }, + "represented_products": { + "description": "All the represented products.", + "items": { + "$ref": "#/definitions/product_ref" + }, + "type": "array" + }, + "variation_attributes": { + "description": "The array of represented variation attributes (for the master product only). This array can be empty.", + "items": { + "$ref": "#/definitions/variation_attribute" + }, + "type": "array" + } + } + }, + "product_search_refinement": { + "description": "Document representing a product search refinement attribute.", + "properties": { + "attribute_id": { + "description": "The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id.\n Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a\n category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\".", + "type": "string" + }, + "label": { + "description": "The localized label of the refinement.", + "type": "string" + }, + "values": { + "description": "The sorted array of refinement values. This array can be empty.", + "items": { + "$ref": "#/definitions/product_search_refinement_value" + }, + "type": "array" + } + }, + "required": [ + "attribute_id" + ] + }, + "product_search_refinement_value": { + "description": "Document representing a product search refinement value.", + "properties": { + "description": { + "description": "The localized description of the refinement value.", + "type": "string" + }, + "hit_count": { + "description": "The number of search hits when selecting the refinement value. Can be 0.", + "format": "int32", + "type": "integer" + }, + "label": { + "description": "The localized label of the refinement value.", + "type": "string" + }, + "presentation_id": { + "description": "The optional presentation id associated with the refinement value.\n The presentation id can be used, for example, to associate an id with\n an HTML widget.", + "type": "string" + }, + "value": { + "description": "The refinement value. In the case of an attribute refinement, this is the bucket,\n the attribute value, or a value range. In the case of a category refinement, this is the\n category id. In the case of a price refinement,k this is the price range. Ranges are\n enclosed by parentheses and separated by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\"\n are valid ranges.", + "type": "string" + }, + "values": { + "description": "The array of hierarchical refinement values. This array can be empty.", + "items": { + "$ref": "#/definitions/product_search_refinement_value" + }, + "type": "array" + } + } + }, + "product_search_result": { + "description": "Document representing a product search result.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "items": { + "type": "object" + }, + "type": "array" + }, + "fetch_date": { + "format": "int32", + "type": "integer" + }, + "hits": { + "description": "The sorted array of search hits. This array can be empty.", + "items": { + "$ref": "#/definitions/product_search_hit" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "query": { + "description": "The query String that was searched for.", + "type": "string" + }, + "refinements": { + "description": "The sorted array of search refinements. This array can be empty.", + "items": { + "$ref": "#/definitions/product_search_refinement" + }, + "type": "array" + }, + "search_phrase_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "The suggestion given by the system for the submitted search phrase." + }, + "selected_refinements": { + "additionalProperties": { + "type": "string" + }, + "description": "A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL.", + "type": "object" + }, + "selected_sorting_option": { + "description": "The id of the applied sorting option.", + "type": "string" + }, + "sorting_options": { + "description": "The sorted array of search sorting options. This array can be empty.", + "items": { + "$ref": "#/definitions/product_search_sorting_option" + }, + "type": "array" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "product_search_sorting_option": { + "description": "Document representing a product search sorting option.", + "properties": { + "id": { + "description": "The id of the sorting option.", + "type": "string" + }, + "label": { + "description": "The localized label of the sorting option.", + "type": "string" + } + } + }, + "product_simple_link": { + "description": "Document representing a link to a product.", + "properties": { + "link": { + "description": "The target of the link.", + "type": "string" + }, + "title": { + "description": "The link title.", + "type": "string" + } + } + }, + "product_type": { + "description": "Document representing a product type.", + "properties": { + "bundle": { + "description": "A flag indicating whether the product is a bundle.", + "type": "boolean" + }, + "item": { + "description": "A flag indicating whether the product is a standard item.", + "type": "boolean" + }, + "master": { + "description": "A flag indicating whether the product is a master.", + "type": "boolean" + }, + "option": { + "description": "A flag indicating whether the product is an option.", + "type": "boolean" + }, + "set": { + "description": "A flag indicating whether the product is a set.", + "type": "boolean" + }, + "variant": { + "description": "A flag indicating whether the product is a variant.", + "type": "boolean" + }, + "variation_group": { + "description": "A flag indicating whether the product is a variation group.", + "type": "boolean" + } + } + }, + "promotion": { + "description": "Document representing a promotion.", + "properties": { + "callout_msg": { + "description": "The localized call-out message of the promotion.", + "format": "html", + "x-label": { + "default": "Callout Message" + }, + "type": "string" + }, + "currency": { + "description": "The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed\n currencies.", + "type": "string" + }, + "details": { + "description": "The localized detailed description of the promotion.", + "format": "html", + "x-label": { + "default": "Promotion Details" + }, + "type": "string" + }, + "discounted_products_link": { + "description": "An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as\n refinement.", + "type": "string" + }, + "end_date": { + "description": "The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time\n zone of the date time is always UTC.", + "format": "date-time", + "type": "string" + }, + "id": { + "description": "The unique id of the promotion.", + "x-label": { + "default": "ID" + }, + "type": "string" + }, + "image": { + "description": "The URL to the promotion image.", + "x-label": { + "default": "Image" + }, + "type": "string" + }, + "name": { + "description": "The localized name of the promotion.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "start_date": { + "description": "The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The\n time zone of the date time is always UTC.", + "format": "date-time", + "type": "string" + } + } + }, + "promotion_link": { + "description": "Document representing a promotion link.", + "properties": { + "callout_msg": { + "description": "The localized call-out message of the promotion.", + "format": "html", + "x-label": { + "default": "Callout Message" + }, + "type": "string" + }, + "link": { + "type": "string" + }, + "name": { + "description": "The localized name of the promotion.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "promotion_id": { + "description": "The unique id of the promotion.", + "x-label": { + "default": "ID" + }, + "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "promotion_result": { + "description": "Result document containing an array of promotions.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of promotion documents.", + "items": { + "$ref": "#/definitions/promotion" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "public_product_list": { + "properties": { + "co_registrant": { + "$ref": "#/definitions/product_list_registrant", + "description": "The coRegistrant of this product list." + }, + "creation_date": { + "description": "Returns the value of attribute 'creationDate'.", + "format": "date-time", + "type": "string" + }, + "description": { + "description": "The description of this product list.", + "type": "string" + }, + "event": { + "$ref": "#/definitions/product_list_event", + "description": "The event of this product list." + }, + "id": { + "description": "The id of this product list.", + "minLength": 1, + "type": "string" + }, + "items_link": { + "$ref": "#/definitions/product_simple_link", + "description": "The resource link to the items of this product list." + }, + "last_modified": { + "description": "Returns the value of attribute 'lastModified'.", + "format": "date-time", + "type": "string" + }, + "name": { + "description": "The name of this product list.", + "type": "string" + }, + "product_list_items": { + "description": "The product list items", + "items": { + "$ref": "#/definitions/public_product_list_item" + }, + "type": "array" + }, + "product_list_shipping_address": { + "$ref": "#/definitions/product_list_shipping_address", + "description": "The abbreviated shipping address of this product list representing what anonymous user can see." + }, + "public": { + "description": "Indicates whether the owner made this product list available for access by other customers.", + "type": "boolean" + }, + "registrant": { + "$ref": "#/definitions/product_list_registrant", + "description": "The registrant of this product list." + }, + "type": { + "description": "The type of the product list.", + "enum": [ + "wish_list", + "gift_registry", + "shopping_list", + "custom_1", + "custom_2", + "custom_3" + ], + "type": "string" + } + } + }, + "public_product_list_item": { + "description": "Document representing a product list item.", + "properties": { + "id": { + "description": "The id of this product list item.", + "type": "string" + }, + "priority": { + "description": "The priority of the item.", + "format": "int32", + "type": "integer" + }, + "product": { + "$ref": "#/definitions/product", + "description": "The product item" + }, + "product_details_link": { + "$ref": "#/definitions/product_simple_link", + "description": "A link to the product." + }, + "type": { + "description": "The type of the item.", + "enum": [ + "product", + "gift_certificate" + ], + "type": "string" + } + } + }, + "public_product_list_item_result": { + "description": "Result document containing an array of product list items.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of product list item documents.", + "items": { + "$ref": "#/definitions/public_product_list_item" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "public_product_list_link": { + "description": "Document representing a link to a public product list.", + "properties": { + "description": { + "description": "The description of this product list.", + "type": "string" + }, + "link": { + "description": "The target of the link.", + "type": "string" + }, + "name": { + "description": "The name of this product list.", + "type": "string" + }, + "title": { + "description": "The link title.", + "type": "string" + }, + "type": { + "description": "The type of the product list.", + "enum": [ + "wish_list", + "gift_registry", + "shopping_list", + "custom_1", + "custom_2", + "custom_3" + ], + "type": "string" + } + } + }, + "public_product_list_result": { + "description": "Result document containing an array of public product list links.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "The array of product list link documents.", + "items": { + "$ref": "#/definitions/public_product_list_link" + }, + "type": "array" + }, + "total": { + "description": "The total number of documents.", + "format": "int32", + "type": "integer" + } + } + }, + "query": { + "description": "Document representing a query. A query contains a set of objects that define criteria\n used to select records. A query can contain one of the following:\n" + }, + "query_filter": { + "description": "Document representing a query filter. A query filter wraps any query and allows it to be used as a filter.\n ", + "properties": { + "query": { + "$ref": "#/definitions/query", + "description": "The query to use as a filter.", + "x-sub_types": { + "nested_query": "#/definitions/nested_query", + "filtered_query": "#/definitions/filtered_query", + "text_query": "#/definitions/text_query", + "match_all_query": "#/definitions/match_all_query", + "term_query": "#/definitions/term_query", + "bool_query": "#/definitions/bool_query" + } + } + }, + "required": [ + "query" + ] + }, + "range2_filter": { + "description": "Document representing a range compare with range filter, named Range2Filter.", + "properties": { + "filter_mode": { + "description": "Compare mode: overlap, containing, or contained. If not specified, the default is overlap.", + "enum": [ + "overlap", + "containing", + "contained" + ], + "type": "string" + }, + "from_field": { + "description": "The field name of the field that starts the first range.", + "type": "string" + }, + "from_inclusive": { + "description": "Indicates whether the lower bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.", + "type": "boolean" + }, + "from_value": { + "description": "The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.", + "type": "object" + }, + "to_field": { + "description": "The field name of the field that ends the first range.", + "type": "string" + }, + "to_inclusive": { + "description": "Indicates whether the upper bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.", + "type": "boolean" + }, + "to_value": { + "description": "The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.", + "type": "object" + } + }, + "required": [ + "from_field", + "to_field" + ] + }, + "range_filter": { + "description": "Document representing a range filter.\n ", + "properties": { + "field": { + "description": "The search field.", + "type": "string" + }, + "from": { + "description": "The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.", + "type": "object" + }, + "from_inclusive": { + "description": "Indicates whether the lower bound of the range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.", + "type": "boolean" + }, + "to": { + "description": "The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.", + "type": "object" + }, + "to_inclusive": { + "description": "Indicates whether the upper bound of the range is inclusive. If not specified, the default is true. Set to false to made the upper bound exclusive.", + "type": "boolean" + } + }, + "required": [ + "field" + ] + }, + "recommendation": { + "description": "Document representing a product recommendation.", + "properties": { + "callout_msg": { + "description": "The localized callout message of the recommendation.", + "format": "html", + "x-label": { + "default": "Callout Message" + }, + "type": "string" + }, + "image": { + "$ref": "#/definitions/image", + "description": "The image of the recommendation.", + "x-label": { + "default": "Standard Image" + } + }, + "long_description": { + "description": "The localized long description of the recommendation.", + "format": "html", + "x-label": { + "default": "Long Description" + }, + "type": "string" + }, + "name": { + "description": "The localized name of the recommendation.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "recommendation_type": { + "$ref": "#/definitions/recommendation_type", + "description": "The recommendation type of the recommendation.", + "x-label": { + "default": "Recommendation Type" + } + }, + "recommended_item_id": { + "description": "The recommended item id of the recommendation.", + "type": "string" + }, + "recommended_item_link": { + "description": "The recommended item link of the recommendation.", + "type": "string" + }, + "short_description": { + "description": "The localized short description of the recommendation.", + "format": "html", + "x-label": { + "default": "Short Description" + }, + "type": "string" + } + } + }, + "recommendation_type": { + "description": "Document representing a recommendation type.", + "properties": { + "display_value": { + "description": "The localized display value of the recommendation type.", + "type": "string" + }, + "value": { + "description": "The value of the recommendation type.", + "format": "int32", + "type": "integer" + } + } + }, + "reset_password_request": { + "properties": { + "login": { + "description": "The login id of the customer.", + "maxLength": 256, + "type": "string" + }, + "new_password": { + "description": "The new password for the customer.", + "maxLength": 4096, + "type": "string" + }, + "reset_token": { + "description": "The password reset token for the customer.", + "type": "string" + } + }, + "required": [ + "new_password" + ] + }, + "reset_password_token_request": { + "properties": { + "login": { + "description": "The login id of the customer.", + "maxLength": 256, + "type": "string" + } + } + }, + "reset_password_token_result": { + "properties": { + "email": { + "description": "The email address of the customer.", + "type": "string" + }, + "expires_in_minutes": { + "description": "The password reset token expire time in minutes.", + "format": "int32", + "type": "integer" + }, + "login": { + "description": "The login id of the customer.", + "maxLength": 256, + "type": "string" + }, + "reset_token": { + "description": "The password reset token for the customer.", + "type": "string" + } + } + }, + "result_page": { + "description": "Data that can be used to get the next and previous page of a Data API results object.", + "properties": { + "count": { + "description": "The number of returned documents.", + "format": "int32", + "type": "integer" + }, + "db_start_record_": { + "description": "The zero-based index of the record that we want to start with, used to optimize special handling", + "format": "int32", + "type": "integer" + }, + "start": { + "description": "The zero-based index of the first search hit to include in the result.", + "format": "int32", + "type": "integer" + } + } + }, + "shipment": { + "description": "Document representing a shipment.", + "properties": { + "adjusted_merchandize_total_tax": { + "description": "The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of\n product prices before services such as shipping have been added, but after adjustment from promotions have been\n added.\n\n Note that order level adjustments are considered if Discount Taxation preference is set to\n \"Tax Products and Shipping Only Based on Adjusted Price\".", + "format": "double", + "type": "number" + }, + "adjusted_shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container after shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "c_fromStoreId": { + "description": "Used to map the shipment to a brick and mortar store.", + "x-label": { + "default": "Pickup Store ID" + }, + "type": "string" + }, + "c_shipmentType": { + "x-label": { + "default": "When this attribute equals 'instore', the checkout flow will assign the shipping method (005) which has a no shipping charge." + }, + "type": "string" + }, + "c_storePickupMessage": { + "description": "This is text used by the end user when sending a message to the brick and mortar store about the shipment. This is reflected in the order export.", + "x-label": { + "default": "Store Pickup Message" + }, + "type": "string" + }, + "gift": { + "description": "A flag indicating whether the shipment is a gift.", + "x-label": { + "default": "Is A Gift" + }, + "type": "boolean" + }, + "gift_message": { + "description": "The gift message.", + "x-label": { + "default": "Gift Message" + }, + "type": "string" + }, + "merchandize_total_tax": { + "description": "The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have been added.", + "format": "double", + "type": "number" + }, + "product_sub_total": { + "description": "The total price of all product items after all product discounts. Depending on taxation policy the returned price\n is net or gross.", + "format": "double", + "type": "number" + }, + "product_total": { + "description": "The total price of all product items after all product and order discounts. Depending on taxation policy the\n returned price is net or gross.", + "format": "double", + "type": "number" + }, + "shipment_id": { + "description": "The order specific id to identify the shipment.", + "type": "string" + }, + "shipment_no": { + "description": "Returns the shipment number for this shipment.\n\n This number is automatically generated.", + "x-label": { + "default": "Shipment No." + }, + "type": "string" + }, + "shipment_total": { + "description": "The total price of the shipment, including products, shipping and tax.\n\n Note that order level adjustments are not considered.", + "format": "double", + "type": "number" + }, + "shipping_address": { + "$ref": "#/definitions/order_address", + "description": "The shipping address." + }, + "shipping_method": { + "$ref": "#/definitions/shipping_method", + "description": "The shipping method." + }, + "shipping_status": { + "description": "The shipping status of the shipment.", + "enum": [ + "not_shipped", + "shipped" + ], + "x-enum-labels": [ + { + "default": "NOTSHIPPED" + }, + { + "default": "SHIPPED" + } + ], + "x-label": { + "default": "Shipping Status" + }, + "type": "string" + }, + "shipping_total": { + "description": "The total shipping price of the shipment after all shipping discounts. Excludes tax if taxation policy is net.\n Includes tax if taxation policy is gross.", + "format": "double", + "type": "number" + }, + "shipping_total_tax": { + "description": "The tax of all shipping line items of the line item container before shipping adjustments have been applied.", + "format": "double", + "type": "number" + }, + "tax_total": { + "description": "The total tax amount of the shipment.\n\n Note that order level adjustments are considered if Discount Taxation preference is set to\n \"Tax Products and Shipping Only Based on Adjusted Price\".", + "format": "double", + "type": "number" + }, + "tracking_number": { + "description": "The tracking number of the shipment.", + "type": "string" + } + } + }, + "shipping_item": { + "description": "Document representing a shipping item.", + "properties": { + "adjusted_tax": { + "description": "The tax of the product item after adjustments applying.", + "format": "double", + "type": "number" + }, + "base_price": { + "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", + "format": "double", + "type": "number" + }, + "item_id": { + "description": "The item identifier. Use this to identify an item when\n updating the item quantity or creating a custom price adjustment for an\n item.", + "type": "string" + }, + "item_text": { + "description": "The text describing the item in more detail.", + "type": "string" + }, + "price": { + "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", + "format": "double", + "type": "number" + }, + "price_adjustments": { + "description": "Array of price adjustments. Can be empty.", + "items": { + "$ref": "#/definitions/price_adjustment" + }, + "type": "array" + }, + "price_after_item_discount": { + "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", + "format": "double", + "type": "number" + }, + "shipment_id": { + "description": "The identifier of the shipment to which this item belongs.", + "type": "string" + }, + "tax": { + "description": "The tax of the product item before adjustments applying.", + "format": "double", + "type": "number" + }, + "tax_basis": { + "description": "The price used to calculate the tax for this product item.", + "format": "double", + "type": "number" + }, + "tax_class_id": { + "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", + "type": "string" + }, + "tax_rate": { + "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", + "format": "double", + "type": "number" + } + } + }, + "shipping_method": { + "description": "Document representing a shipping method.", + "properties": { + "c_storePickupEnabled": { + "x-label": { + "default": "Store Pickup Enabled" + }, + "type": "boolean" + }, + "description": { + "description": "The localized description of the shipping method.", + "x-label": { + "default": "Description" + }, + "type": "string" + }, + "external_shipping_method": { + "description": "The external shipping method.", + "type": "string" + }, + "id": { + "description": "The shipping method id.", + "x-label": { + "default": "ID" + }, + "maxLength": 256, + "type": "string" + }, + "name": { + "description": "The localized name of the shipping method.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "price": { + "description": "The shipping cost total, including shipment level costs and\n product level fix and surcharge costs.", + "format": "double", + "type": "number" + }, + "shipping_promotions": { + "description": "The array of active customer shipping promotions for this shipping\n method. This array can be empty.", + "items": { + "$ref": "#/definitions/shipping_promotion" + }, + "type": "array" + } + }, + "required": [ + "c_storePickupEnabled", + "id" + ] + }, + "shipping_method_result": { + "description": "Result document containing shipping methods.", + "properties": { + "applicable_shipping_methods": { + "description": "The applicable shipping method documents.", + "items": { + "$ref": "#/definitions/shipping_method" + }, + "type": "array" + }, + "default_shipping_method_id": { + "description": "The default shipping method.", + "type": "string" + } + } + }, + "shipping_promotion": { + "description": "Document representing a shipping promotion.", + "properties": { + "callout_msg": { + "description": "The localized call-out message of the promotion.", + "type": "string" + }, + "link": { + "description": "The URL addressing the promotion.", + "type": "string" + }, + "promotion_id": { + "description": "The unique id of the promotion.", + "type": "string" + }, + "promotion_name": { + "description": "The localized promotion name.", + "type": "string" + } + } + }, + "simple_link": { + "description": "Document representing a link to another resource.", + "properties": { + "link": { + "description": "The link to the resource.", + "type": "string" + } + } + }, + "site": { + "description": "Document representing a site.", + "properties": { + "allowed_currencies": { + "description": "The list of allowed currencies.", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowed_locales": { + "description": "A list of all allowed site locales.", + "items": { + "$ref": "#/definitions/locale" + }, + "type": "array" + }, + "default_currency": { + "description": "The currency mnemonic of the site.", + "type": "string" + }, + "default_locale": { + "description": "The default locale of the site.", + "type": "string" + }, + "http_dis_base_url": { + "description": "The HTTP DIS base URL.", + "type": "string" + }, + "http_hostname": { + "description": "The configured HTTP host name. If no host name is configured the instance host name is returned.", + "type": "string" + }, + "http_library_content_url": { + "description": "The HTTP URL to the library content location of the site.", + "type": "string" + }, + "http_site_content_url": { + "description": "The HTTP URL to the site content location.", + "type": "string" + }, + "https_dis_base_url": { + "description": "The HTTPS DIS base URL.", + "type": "string" + }, + "https_hostname": { + "description": "The configured HTTPS host name. If no host name is configured the instance host name is returned.", + "type": "string" + }, + "https_library_content_url": { + "description": "The HTTPS URL to the library content location of the site.", + "type": "string" + }, + "https_site_content_url": { + "description": "The HTTPS URL to the site content location.", + "type": "string" + }, + "id": { + "description": "The id of the site.", + "type": "string" + }, + "name": { + "description": "The descriptive name for the site.", + "type": "string" + }, + "status": { + "description": "The site status online/offline.", + "enum": [ + "online", + "offline" + ], + "type": "string" + }, + "timezone": { + "description": "The time zone of the site (for example, USA/Eastern).", + "type": "string" + }, + "timezone_offset": { + "description": "The time zone offset from UTC for the current time in milliseconds (for example, -14400000).", + "format": "int32", + "type": "integer" + } + } + }, + "sort": { + "description": "Document representing a sort request.", + "properties": { + "field": { + "description": "The name of the field to sort on.", + "type": "string" + }, + "sort_order": { + "description": "The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used.", + "enum": [ + "asc", + "desc" + ], + "type": "string" + } + }, + "required": [ + "field" + ] + }, + "status": { + "description": "Document representing a status of an object.", + "properties": { + "code": { + "description": "The status code.", + "type": "string" + }, + "message": { + "description": "The status message.", + "type": "string" + }, + "status": { + "description": "The status.\n \n For more information on the status values see dw.system.Status.OK and\n dw.system.Status.ERROR.", + "format": "int32", + "type": "integer" + } + } + }, + "store": { + "description": "Document representing a store.", + "properties": { + "address1": { + "description": "The first address of the store.", + "x-label": { + "default": "Address 1" + }, + "minLength": 1, + "type": "string" + }, + "address2": { + "description": "The second address of the store.", + "x-label": { + "default": "Address 2" + }, + "type": "string" + }, + "c_TestAttribute": { + "items": { + "type": "string" + }, + "x-label": { + "en-US": "Test Attribute" + }, + "type": "array" + }, + "c_countryCodeValue": { + "description": "Country Code Value - for the form values", + "x-label": { + "default": "Country Code Value" + }, + "type": "string" + }, + "c_inventoryListId": { + "description": "Store Inventory List ID", + "x-label": { + "default": "Store Inventory List ID" + }, + "type": "string" + }, + "city": { + "description": "The city of the store.", + "x-label": { + "default": "City" + }, + "type": "string" + }, + "country_code": { + "description": "The country code of the store.", + "enum": [ + "US", + "CA", + "DE" + ], + "x-enum-labels": [ + { + "default": "United States" + }, + { + "default": "Canada" + }, + { + "default": "Germany" + } + ], + "x-label": { + "default": "Country" + }, + "type": "string" + }, + "distance": { + "description": "The distance to the given geo location in the unit of attribute distance (miles or kilometers).", + "format": "double", + "x-label": { + "default": "Distance to store" + }, + "type": "number" + }, + "distance_unit": { + "description": "The distance unit the distance attribute is measured in (either in miles or kilometers).", + "x-label": { + "default": "Unit of distance" + }, + "type": "string" + }, + "email": { + "description": "The email address of the store.", + "x-label": { + "default": "Email" + }, + "type": "string" + }, + "fax": { + "description": "The fax number of the store.", + "x-label": { + "default": "Fax" + }, + "type": "string" + }, + "id": { + "description": "The id of the store.", + "x-label": { + "default": "ID" + }, + "maxLength": 256, + "minLength": 1, + "type": "string" + }, + "image": { + "description": "The store image.", + "x-label": { + "default": "Image" + }, + "type": "string" + }, + "inventory_id": { + "description": "The inventory list id associated with this store.", + "maxLength": 256, + "type": "string" + }, + "latitude": { + "description": "The latitude of the store.", + "format": "double", + "x-label": { + "default": "Latitude" + }, + "maximum": 90, + "minimum": -90, + "type": "number" + }, + "longitude": { + "description": "The longitude of the store.", + "format": "double", + "x-label": { + "default": "Longitude" + }, + "maximum": 180, + "minimum": -180, + "type": "number" + }, + "name": { + "description": "The store name.", + "x-label": { + "default": "Name" + }, + "type": "string" + }, + "phone": { + "description": "The phone number of the store.", + "x-label": { + "default": "Phone" + }, + "type": "string" + }, + "pos_enabled": { + "description": "Whether this store uses Store Point-of-Sale.", + "x-label": { + "default": "Uses Commerce Cloud Store for Point-of-Sale" + }, + "type": "boolean" + }, + "postal_code": { + "description": "The postal code of the store.", + "x-label": { + "default": "Postal Code" + }, + "type": "string" + }, + "state_code": { + "description": "The state code of the store.", + "x-label": { + "default": "State" + }, + "type": "string" + }, + "store_events": { + "description": "The store events.", + "format": "html", + "x-label": { + "default": "Store Events" + }, + "type": "string" + }, + "store_hours": { + "description": "The store opening hours.", + "format": "html", + "x-label": { + "default": "Store Hours" + }, + "type": "string" + }, + "store_locator_enabled": { + "description": "Whether this store should show up in store locator results.", + "x-label": { + "default": "Store Locator Enabled" + }, + "type": "boolean" + } + }, + "required": [ + "id" + ] + }, + "store_result": { + "description": "Result document containing an array of stores.", + "properties": { + "count": { + "description": "The number of search results in the current page.", + "format": "int32", + "type": "integer" + }, + "data": { + "description": "", + "items": { + "$ref": "#/definitions/store" + }, + "type": "array" + }, + "next": { + "description": "The URL of the next result page.", + "type": "string" + }, + "previous": { + "description": "The URL of the previous result page.", + "type": "string" + }, + "start": { + "description": "The zero-based index of the first search result to include in the document.", + "format": "int32", + "minimum": 0, + "type": "integer" + }, + "total": { + "description": "The total number of search results.", + "format": "int32", + "type": "integer" + } + } + }, + "suggested_category": { + "properties": { + "id": { + "description": "The id of the category.", + "type": "string" + }, + "link": { + "description": "The URL addressing the category.", + "type": "string" + }, + "name": { + "description": "The localized name of the category.", + "type": "string" + }, + "parent_category_name": { + "description": "The name of the parent category.", + "type": "string" + } + } + }, + "suggested_content": { + "properties": { + "id": { + "description": "The id of the content.", + "type": "string" + }, + "link": { + "description": "The URL addressing the content.", + "type": "string" + }, + "name": { + "description": "The localized name of the content.", + "type": "string" + } + } + }, + "suggested_phrase": { + "description": "Document representing a suggested search phrase.", + "properties": { + "exact_match": { + "description": "Returns whether this suggested phrase exactly matches the user input search phrase.", + "type": "boolean" + }, + "phrase": { + "description": "Returns the suggested search phrase.", + "type": "string" + } + } + }, + "suggested_product": { + "description": "Document representing a product search hit.", + "properties": { + "currency": { + "description": "The ISO 4217 mnemonic code of the currency.", + "type": "string" + }, + "image": { + "$ref": "#/definitions/image", + "description": "The first image of the product hit for the configured viewtype." + }, + "link": { + "description": "The URL addressing the product.", + "type": "string" + }, + "price": { + "description": "The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of\n related child products.", + "format": "double", + "type": "number" + }, + "product_id": { + "description": "The id (SKU) of the product.", + "type": "string" + }, + "product_name": { + "description": "The localized name of the product.", + "type": "string" + } + } + }, + "suggested_term": { + "description": "Document representing a suggested term.", + "properties": { + "completed": { + "description": "Returns whether this term value is a completion match.", + "type": "boolean" + }, + "corrected": { + "description": "Returns whether this term value is a correction match.", + "type": "boolean" + }, + "exact_match": { + "description": "Returns whether this term value is a exact match.", + "type": "boolean" + }, + "value": { + "description": "Returns the term value.", + "type": "string" + } + } + }, + "suggested_terms": { + "description": "Document representing a list of suggested terms for each term of a search phrase.", + "properties": { + "original_term": { + "description": "Returns the original term that the suggested terms relates to.", + "type": "string" + }, + "terms": { + "description": "Returns the suggested terms.", + "items": { + "$ref": "#/definitions/suggested_term" + }, + "type": "array" + } + } + }, + "suggestion": { + "description": "Document representing a suggestion.", + "properties": { + "brands": { + "description": "The sorted list of suggested brands. This list can be empty.", + "items": { + "type": "string" + }, + "type": "array" + }, + "categories": { + "description": "The sorted list of suggested categories. This list can be empty.", + "items": { + "$ref": "#/definitions/suggested_category" + }, + "type": "array" + }, + "content": { + "description": "The sorted list of suggested content. This list can be empty.", + "items": { + "$ref": "#/definitions/suggested_content" + }, + "type": "array" + }, + "custom_suggestions": { + "description": "The sorted list of suggested custom suggestions. This list can be empty.", + "items": { + "type": "string" + }, + "type": "array" + }, + "products": { + "description": "The sorted list of suggested products. This list can be empty.", + "items": { + "$ref": "#/definitions/suggested_product" + }, + "type": "array" + }, + "suggested_phrases": { + "description": "A list of suggested phrases. This list can be empty.", + "items": { + "$ref": "#/definitions/suggested_phrase" + }, + "type": "array" + }, + "suggested_terms": { + "description": "A list of suggested terms. This list can be empty.", + "items": { + "$ref": "#/definitions/suggested_terms" + }, + "type": "array" + } + } + }, + "suggestion_result": { + "description": "Document representing a search suggestion result.", + "properties": { + "brand_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "Returns the suggested brands." + }, + "category_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "Returns the suggested categories." + }, + "content_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "Returns the suggested content." + }, + "custom_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "Returns the suggested custom suggestions." + }, + "product_suggestions": { + "$ref": "#/definitions/suggestion", + "description": "Returns the suggested products." + }, + "query": { + "description": "The query phrase to search for.", + "type": "string" + } + } + }, + "term_filter": { + "description": "Document representing a term filter.\n ", + "properties": { + "field": { + "description": "The filter field.", + "type": "string" + }, + "operator": { + "description": "The operator to compare the field's values with the given ones.", + "enum": [ + "is", + "one_of", + "is_null", + "is_not_null", + "less", + "greater", + "not_in", + "neq" + ], + "type": "string" + }, + "values": { + "description": "The filter values.", + "items": { + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "field", + "operator" + ] + }, + "term_query": { + "description": "A term query matches one (or more) value(s) against one (or more) document field(s). A document is considered a hit\n if one of the values matches (exactly) with at least one of the given fields. The operator \"is\" can only take\n one value, while \"one_of\" can take multiple values. If multiple fields are specified, they are combined using the OR operator.\n The ", + "properties": { + "fields": { + "description": "The document field(s), the value(s) are matched against, combined with the operator.", + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "operator": { + "description": "Returns the operator to use for the term query.", + "enum": [ + "is", + "one_of", + "is_null", + "is_not_null", + "less", + "greater", + "not_in", + "neq" + ], + "type": "string" + }, + "values": { + "description": "The values, the field(s) are compared against, combined with the operator.", + "items": { + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "fields", + "operator" + ] + }, + "text_query": { + "description": "A text query is used to match some text (i.e. a search phrase possibly consisting of multiple terms) against one or\n multiple fields. In case multiple fields are provided, the phrase conceptually forms a logical OR over the fields. In\n this case, the terms of the phrase basically have to match within the text, that would result in concatenating all\n given fields.\n ", + "properties": { + "fields": { + "description": "The document fields the search phrase has to match against.", + "items": { + "type": "string" + }, + "minItems": 1, + "type": "array" + }, + "search_phrase": { + "description": "A search phrase, which may consist of multiple terms.", + "type": "string" + } + }, + "required": [ + "fields", + "search_phrase" + ] + }, + "trusted_system_auth_request": { + "properties": { + "client_id": { + "description": "The client id of the shopping application to be encoded in the customer JWT.\n This is not the same as the OAuth Client ID used to authenticate the API call.\n The OAuth Client ID is the trusted/private one; this is the untrusted/public one.", + "pattern": "^(?!\\s*$).+", + "type": "string" + }, + "login": { + "description": "The customer's login.", + "pattern": "^(?!\\s*$).+", + "type": "string" + } + }, + "required": [ + "client_id", + "login" + ] + }, + "variant": { + "description": "Document representing a product variation.", + "properties": { + "link": { + "description": "The URL addressing the product.", + "minLength": 1, + "type": "string" + }, + "orderable": { + "description": "A flag indicating whether the variant is orderable.", + "type": "boolean" + }, + "price": { + "description": "The sales price of the variant.", + "format": "double", + "type": "number" + }, + "product_id": { + "description": "The id (SKU) of the variant.", + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "variation_values": { + "additionalProperties": { + "type": "string" + }, + "description": "The actual variation attribute id - value pairs.", + "type": "object" + } + }, + "required": [ + "link", + "product_id" + ] + }, + "variation_attribute": { + "description": "Document representing a variation attribute.", + "properties": { + "id": { + "description": "The id of the variation attribute.", + "minLength": 1, + "type": "string" + }, + "name": { + "description": "The localized display name of the variation attribute.", + "type": "string" + }, + "values": { + "description": "The sorted array of variation values. This array can be empty.", + "items": { + "$ref": "#/definitions/variation_attribute_value" + }, + "type": "array" + } + }, + "required": [ + "id" + ] + }, + "variation_attribute_value": { + "description": "Document representing a variation attribute value.", + "properties": { + "description": { + "description": "The localized description of the variation value.", + "type": "string" + }, + "image": { + "$ref": "#/definitions/image", + "description": "The first product image for the configured viewtype and this variation value." + }, + "image_swatch": { + "$ref": "#/definitions/image", + "description": "The first product image for the configured viewtype and this variation value. (typically the swatch image)" + }, + "name": { + "description": "The localized display name of the variation value.", + "type": "string" + }, + "orderable": { + "description": "A flag indicating whether at least one variant with this variation attribute value is available to sell.", + "type": "boolean" + }, + "value": { + "description": "The actual variation value.", + "minLength": 1, + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "variation_group": { + "description": "Document representing a variation group.", + "properties": { + "link": { + "description": "The URL addressing the product.", + "type": "string" + }, + "orderable": { + "description": "A flag indicating whether the variation group is orderable.", + "type": "boolean" + }, + "price": { + "description": "The sales price of the variation group.", + "format": "double", + "type": "number" + }, + "product_id": { + "description": "The id (SKU) of the variation group.", + "maxLength": 100, + "minLength": 1, + "type": "string" + }, + "variation_values": { + "additionalProperties": { + "type": "string" + }, + "description": "The actual variation attribute id - value pairs.", + "type": "object" + } + } + } + }, + "x-documents": "https://demo-ocapi.demandware.net/s/-/dw/meta/rest/shop/20.4/documents?client_id=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "host": "demo-ocapi.demandware.net", + "info": { + "title": "Shop API", + "version": "20.4" + }, + "paths": { + "/ai/product_recommendations/{recommender_name}": { + "get": { + "description": "This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API. Returns product recommendations based on the given product or category IDs.", + "operationId": "getAiProductRecommendationsByID", + "parameters": [ + { + "description": "The recommender name.", + "in": "path", + "maxLength": 256, + "minLength": 1, + "name": "recommender_name", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "products", + "type": "array" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "categories", + "type": "array" + }, + { + "in": "query", + "maxLength": 256, + "minLength": 1, + "name": "uuid", + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "inventory_ids", + "type": "array" + }, + { + "in": "query", + "name": "currency", + "type": "string" + }, + { + "in": "query", + "name": "all_images", + "type": "boolean" + } + ], + "responses": { + "400": { + "description": "In case there was an error in communication with the recommendation system." }, - "required": [ - "id" - ] - }, - "product_details_link": { - "description": "Document representing a link to the resource for product details.", - "properties": { - "link": { - "description": "The target of the link.", - "type": "string" - }, - "product_description": { - "description": "The description of the product.", - "type": "string" - }, - "product_id": { - "description": "The id of the product.", - "type": "string" - }, - "product_name": { - "description": "The name of the product.", - "type": "string" - }, - "title": { - "description": "The link title.", - "type": "string" - } + "404": { + "description": "In case the recommender name in the URL is unknown." }, - "required": [ - "product_id" - ] - }, - "product_item": { - "description": "Document representing a product item.", - "properties": { - "adjusted_tax": { - "description": "The tax of the product item after adjustments applying.", - "format": "double", - "type": "number" - }, - "base_price": { - "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", - "format": "double", - "type": "number" - }, - "bonus_discount_line_item_id": { - "description": "The id of the bonus discount line item this bonus product relates to.", - "type": "string" - }, - "bonus_product_line_item": { - "description": "A flag indicating whether the product item is a bonus.", - "type": "boolean" - }, - "bundled_product_items": { - "description": "The array of bundled product items. Can be empty.", - "items": { - "$ref": "#/definitions/product_item" - }, - "type": "array" - }, - "gift": { - "description": "Returns true if the item is a gift.", - "x-label": { - "default": "Is A Gift" - }, - "type": "boolean" - }, - "gift_message": { - "description": "The gift message.", - "x-label": { - "default": "Gift Message" - }, - "type": "string" - }, - "inventory_id": { - "description": "The inventory list id associated with this item.", - "maxLength": 256, - "type": "string" - }, - "item_id": { - "description": "The item identifier. Use this to identify an item when updating the item quantity or creating a custom price\n adjustment for an item.", - "type": "string" - }, - "item_text": { - "description": "The text describing the item in more detail.", - "type": "string" - }, - "option_items": { - "description": "The array of option items. This array can be empty.", - "items": { - "$ref": "#/definitions/option_item" - }, - "type": "array" - }, - "price": { - "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", - "format": "double", - "type": "number" - }, - "price_adjustments": { - "description": "Array of price adjustments. Can be empty.", - "items": { - "$ref": "#/definitions/price_adjustment" - }, - "type": "array" - }, - "price_after_item_discount": { - "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", - "format": "double", - "type": "number" - }, - "price_after_order_discount": { - "description": "The price of this product line item after considering all\n dependent price adjustments and prorating all order-level\n price adjustments. For net pricing the net price is returned. For gross\n pricing, the gross price is returned.", - "format": "double", - "type": "number" - }, - "product_id": { - "description": "", - "maxLength": 100, - "type": "string" - }, - "product_list_item": { - "$ref": "#/definitions/product_list_item_reference", - "description": "" - }, - "product_name": { - "description": "The name of the product.", - "type": "string" - }, - "quantity": { - "description": "The quantity of the products represented by this item.", - "format": "double", - "maximum": 999, - "minimum": 0, - "type": "number" - }, - "shipment_id": { - "description": "The id of the shipment which includes the product item.", - "type": "string" - }, - "shipping_item_id": { - "description": "The reference to the related shipping item if it exists. This is the case if for example when a surcharge is\n defined for individual products using a particular a shipping method.", - "type": "string" - }, - "tax": { - "description": "The tax of the product item before adjustments applying.", - "format": "double", - "type": "number" - }, - "tax_basis": { - "description": "The price used to calculate the tax for this product item.", - "format": "double", - "type": "number" - }, - "tax_class_id": { - "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", - "type": "string" - }, - "tax_rate": { - "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", - "format": "double", - "type": "number" - } + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_recommendations_result" + } + } + }, + "security": [ + { + "client_id": [] }, - "required": [ - "quantity" - ] - }, - "product_link": { - "description": "Document representing a link between two products. It contains the id of the source and target products, the type of\n product link, and URLs to retrieve product data.", - "properties": { - "source_product_id": { - "description": "The semantic id of the product from which this product link is coming.", - "type": "string" - }, - "source_product_link": { - "description": "The URL addressing the product from which this product link is coming.", - "type": "string" - }, - "target_product_id": { - "description": "The semantic id of the product to which this product link is pointing.", - "type": "string" - }, - "target_product_link": { - "description": "The URL addressing the product to which this product link is pointing.", - "type": "string" - }, - "type": { - "description": "The type of this product link.", - "enum": [ - "cross_sell", - "replacement", - "up_sell", - "accessory", - "newer_version", - "alt_orderunit", - "spare_part", - "other" - ], - "type": "string" - } - } - }, - "product_list_event": { - "description": "Document representing a product list event.", - "properties": { - "city": { - "description": "The city where the event takes place.", - "type": "string" - }, - "country": { - "description": "The country where the event takes place.", - "type": "string" - }, - "date": { - "description": "The date when the event takes place.", - "format": "date-time", - "type": "string" - }, - "state": { - "description": "The federal state where the event takes place.", - "type": "string" - }, - "type": { - "description": "Type of the event to celebrate.", - "type": "string" - } + { + "customers_auth": [] } - }, - "product_list_item_reference": { - "properties": { - "id": { - "description": "The id of the product list item.", - "type": "string" - }, - "priority": { - "format": "int32", - "type": "integer" - }, - "product_details_link": { - "$ref": "#/definitions/product_details_link" - }, - "product_list": { - "$ref": "#/definitions/product_list_link", - "description": "The link of the product list, the item is assigned" - }, - "public": { - "type": "boolean" - }, - "purchased_quantity": { - "format": "double", - "type": "number" - }, - "quantity": { - "format": "double", - "minimum": 0, - "type": "number" - }, - "type": { - "enum": [ - "product", - "gift_certificate" - ], - "type": "string" - } + ], + "tags": [ + "ai" + ] + } + }, + "/baskets": { + "post": { + "description": "Creates a new basket. The created basket is initialized with default values. Data provided in the body document\n will be populated into the created basket. It can be updated with further Shop API calls.\n Considered values from the request body are:\n \n customer information: PUT /baskets/{basket_id}/customer\n billing address: PUT /baskets/{basket_id}/billing_address\n shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments\n product items: POST /baskets/{basket_id}/items\n coupon items: POST /baskets/{basket_id}/coupons\n gift certificate items: POST /baskets/{basket_id}/gift_certificates\n payment method and card type: POST /baskets/{basket_id}/payment_instruments\n custom properties: PATCH /baskets/{basket_id}\n \n Related resource means with which resource you can specify the same data after the basket creation.\n Identify the basket using the basket_id property, which\n should be integrated into the path of an update request, for example a POST to\n /baskets/{basket_id}/items. The resource supports JWT or\n OAuth tokens for authentication:\n \n A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered\n customer). In this case the resource creates a basket for this customer.\n An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created\n guest customer, and can later update the customer if desired.\n \n The number of baskets which can be created per customer is limited. When a\n basket is created it is said to be open. It remains open until either an order is created from it\n using a POST to resource /orders or it is deleted using a DELETE to resource\n /baskets/{basket_id}. The number of open baskets allowed depends on the authentication\n method used:\n \n When using JWT each customer can have just one open basket\n When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be\n updated by support)\n \n Custom properties in the form c_ are supported. A custom property must correspond to a custom\n attribute () defined for the Basket system object, and its value must be valid for that custom\n attribute. Other basket properties like the channel type or source code cannot be set with this resource.", + "operationId": "postBaskets", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/basket" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the provided payment method is invalid or not applicable. or Thrown if the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Thrown if a new basket cannot be created because the maximum number\n of baskets per customer would be exceeded. or Indicates that the same shipment id appeared twice in the body. or Thrown if the coupon number is not provided. or Indicates that a fixed price adjustment was added at order level\n which is disallowed. or When attempting to add a price adjustment, indicates that a promotion id was\n used twice. or When attempting to add a price adjustment, indicates that a system promotion\n id was used as a manual promotion id. or Indicates that more than one hundred price adjustments would have been\n created." }, - "required": [ - "id" - ] - }, - "product_list_link": { - "description": "Document representing a link to a product list.", - "properties": { - "description": { - "description": "The description of this product list.", - "type": "string" - }, - "link": { - "description": "The target of the link.", - "type": "string" - }, - "name": { - "description": "The name of this product list.", - "type": "string" - }, - "public": { - "description": "A flag indicating whether the owner made this product list available for access\n by other customers.", - "type": "boolean" - }, - "title": { - "description": "The link title.", - "type": "string" - }, - "type": { - "description": "The type of the product list.", - "enum": [ - "wish_list", - "gift_registry", - "shopping_list", - "custom_1", - "custom_2", - "custom_3" - ], - "type": "string" - } - } - }, - "product_list_registrant": { - "description": "\n A ProductListRegistrant is typically associated with an event related product list such as a gift registry. It holds\n information about a person associated with the event such as a bride or groom.\n ", - "properties": { - "first_name": { - "description": "The first name of the registrant.", - "type": "string" - }, - "last_name": { - "description": "The last name of the registrant.", - "type": "string" - }, - "role": { - "description": "The role of the registrant.", - "type": "string" - } - } - }, - "product_list_shipping_address": { - "description": "Document representing a product list shipping address.", - "properties": { - "address_id": { - "description": "The id of this address.", - "minLength": 1, - "type": "string" - }, - "city": { - "description": "The city of this address.", - "type": "string" - }, - "first_name": { - "description": "The first name of this address.", - "type": "string" - }, - "last_name": { - "description": "The last name of this address.", - "type": "string" - } + "404": { + "description": "Thrown if the shipment with the given shipment id is unknown." }, - "required": [ - "address_id" - ] - }, - "product_promotion": { - "description": "Document representing a product promotion.", - "properties": { - "callout_msg": { - "description": "The localized call-out message of the promotion.", - "x-label": { - "default": "callout message" - }, - "type": "string" - }, - "link": { - "description": "The URL addressing the promotion.", - "x-label": { - "default": "link" - }, - "type": "string" - }, - "promotion_id": { - "description": "The unique id of the promotion.", - "x-label": { - "default": "promotion id" - }, - "type": "string" - }, - "promotional_price": { - "description": "The promotional price for this product.", - "format": "double", - "x-label": { - "default": "promotional price" - }, - "type": "number" - } - } - }, - "product_result": { - "description": "Result document containing an array of products.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of product documents.", - "items": { - "$ref": "#/definitions/product" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "product_search_hit": { - "description": "Document representing a product search hit.", - "properties": { - "currency": { - "description": "The ISO 4217 mnemonic code of the currency.", - "type": "string" - }, - "image": { - "$ref": "#/definitions/image", - "description": "The first image of the product hit for the configured viewtype.", - "x-label": { - "default": "Standard Image" - } - }, - "link": { - "description": "The URL addressing the product.", - "type": "string" - }, - "orderable": { - "description": "A flag indicating whether the product is orderable.", - "type": "boolean" - }, - "price": { - "description": "The sales price of the product. In case of complex products like master or set this is the minimum price of\n related child products.", - "format": "double", - "type": "number" - }, - "price_max": { - "description": "The maximum sales of related child products in case of complex products like master or set.", - "format": "double", - "type": "number" - }, - "prices": { - "additionalProperties": { - "format": "double", - "type": "number" - }, - "description": "The prices map with price book ids and their values.", - "type": "object" - }, - "product_id": { - "description": "The id (SKU) of the product.", - "x-label": { - "default": "ID", - "en": "SKUAGE" - }, - "type": "string" - }, - "product_name": { - "description": "The localized name of the product.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "product_type": { - "$ref": "#/definitions/product_type", - "description": "The type information for the product." - }, - "variation_attributes": { - "description": "The array of represented variation attributes (for the master product only). This array can be empty.", - "items": { - "$ref": "#/definitions/variation_attribute" - }, - "type": "array" - } - } - }, - "product_search_refinement": { - "description": "Document representing a product search refinement attribute.", - "properties": { - "attribute_id": { - "description": "The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id.\n Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a\n category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\".", - "type": "string" - }, - "label": { - "description": "The localized label of the refinement.", - "type": "string" - }, - "values": { - "description": "The sorted array of refinement values. This array can be empty.", - "items": { - "$ref": "#/definitions/product_search_refinement_value" - }, - "type": "array" - } + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] }, - "required": [ - "attribute_id" - ] - }, - "product_search_refinement_value": { - "description": "Document representing a product search refinement value.", - "properties": { - "description": { - "description": "The localized description of the refinement value.", - "type": "string" - }, - "hit_count": { - "description": "The number of search hits when selecting the refinement value. Can be 0.", - "format": "int32", - "type": "integer" - }, - "label": { - "description": "The localized label of the refinement value.", - "type": "string" - }, - "presentation_id": { - "description": "The optional presentation id associated with the refinement value.\n The presentation id can be used, for example, to associate an id with\n an HTML widget.", - "type": "string" - }, - "value": { - "description": "The refinement value. In the case of an attribute refinement, this is the bucket,\n the attribute value, or a value range. In the case of a category refinement, this is the\n category id. In the case of a price refinement,k this is the price range. Ranges are\n enclosed by parentheses and separated by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\"\n are valid ranges.", - "type": "string" - }, - "values": { - "description": "The array of hierarchical refinement values. This array can be empty.", - "items": { - "$ref": "#/definitions/product_search_refinement_value" - }, - "type": "array" - } - } - }, - "product_search_result": { - "description": "Document representing a product search result.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "items": { - "type": "object" - }, - "type": "array" - }, - "fetch_date": { - "format": "int32", - "type": "integer" - }, - "hits": { - "description": "The sorted array of search hits. This array can be empty.", - "items": { - "$ref": "#/definitions/product_search_hit" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "query": { - "description": "The query String that was searched for.", - "type": "string" - }, - "refinements": { - "description": "The sorted array of search refinements. This array can be empty.", - "items": { - "$ref": "#/definitions/product_search_refinement" - }, - "type": "array" - }, - "search_phrase_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "The suggestion given by the system for the submitted search phrase." - }, - "selected_refinements": { - "additionalProperties": { - "type": "string" - }, - "description": "A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL.", - "type": "object" - }, - "selected_sorting_option": { - "description": "The id of the applied sorting option.", - "type": "string" - }, - "sorting_options": { - "description": "The sorted array of search sorting options. This array can be empty.", - "items": { - "$ref": "#/definitions/product_search_sorting_option" - }, - "type": "array" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "product_search_sorting_option": { - "description": "Document representing a product search sorting option.", - "properties": { - "id": { - "description": "The id of the sorting option.", - "type": "string" - }, - "label": { - "description": "The localized label of the sorting option.", - "type": "string" - } - } - }, - "product_simple_link": { - "description": "Document representing a link to a product.", - "properties": { - "link": { - "description": "The target of the link.", - "type": "string" - }, - "title": { - "description": "The link title.", - "type": "string" - } - } - }, - "product_type": { - "description": "Document representing a product type.", - "properties": { - "bundle": { - "description": "A flag indicating whether the product is a bundle.", - "type": "boolean" - }, - "item": { - "description": "A flag indicating whether the product is a standard item.", - "type": "boolean" - }, - "master": { - "description": "A flag indicating whether the product is a master.", - "type": "boolean" - }, - "option": { - "description": "A flag indicating whether the product is an option.", - "type": "boolean" - }, - "set": { - "description": "A flag indicating whether the product is a set.", - "type": "boolean" - }, - "variant": { - "description": "A flag indicating whether the product is a variant.", - "type": "boolean" - }, - "variation_group": { - "description": "A flag indicating whether the product is a variation group.", - "type": "boolean" - } - } - }, - "promotion": { - "description": "Document representing a promotion.", - "properties": { - "callout_msg": { - "description": "The localized call-out message of the promotion.", - "format": "html", - "x-label": { - "default": "Callout Message" - }, - "type": "string" - }, - "currency": { - "description": "The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed\n currencies.", - "type": "string" - }, - "details": { - "description": "The localized detailed description of the promotion.", - "format": "html", - "x-label": { - "default": "Promotion Details" - }, - "type": "string" - }, - "discounted_products_link": { - "description": "An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as\n refinement.", - "type": "string" - }, - "end_date": { - "description": "The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time\n zone of the date time is always UTC.", - "format": "date-time", - "type": "string" - }, - "id": { - "description": "The unique id of the promotion.", - "x-label": { - "default": "ID" - }, - "type": "string" - }, - "image": { - "description": "The URL to the promotion image.", - "x-label": { - "default": "Image" - }, - "type": "string" - }, - "name": { - "description": "The localized name of the promotion.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "start_date": { - "description": "The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The\n time zone of the date time is always UTC.", - "format": "date-time", - "type": "string" - } - } - }, - "promotion_result": { - "description": "Result document containing an array of promotions.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of promotion documents.", - "items": { - "$ref": "#/definitions/promotion" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } - } - }, - "public_product_list": { - "properties": { - "co_registrant": { - "$ref": "#/definitions/product_list_registrant", - "description": "The coRegistrant of this product list." - }, - "creation_date": { - "description": "Returns the value of attribute 'creationDate'.", - "format": "date-time", - "type": "string" - }, - "description": { - "description": "The description of this product list.", - "type": "string" - }, - "event": { - "$ref": "#/definitions/product_list_event", - "description": "The event of this product list." - }, - "id": { - "description": "The id of this product list.", - "minLength": 1, - "type": "string" - }, - "items_link": { - "$ref": "#/definitions/product_simple_link", - "description": "The resource link to the items of this product list." - }, - "last_modified": { - "description": "Returns the value of attribute 'lastModified'.", - "format": "date-time", - "type": "string" - }, - "name": { - "description": "The name of this product list.", - "type": "string" - }, - "product_list_items": { - "description": "The product list items", - "items": { - "$ref": "#/definitions/public_product_list_item" - }, - "type": "array" - }, - "product_list_shipping_address": { - "$ref": "#/definitions/product_list_shipping_address", - "description": "The abbreviated shipping address of this product list representing what anonymous user can see." - }, - "public": { - "description": "Indicates whether the owner made this product list available for access by other customers.", - "type": "boolean" - }, - "registrant": { - "$ref": "#/definitions/product_list_registrant", - "description": "The registrant of this product list." - }, - "type": { - "description": "The type of the product list.", - "enum": [ - "wish_list", - "gift_registry", - "shopping_list", - "custom_1", - "custom_2", - "custom_3" - ], - "type": "string" - } - } - }, - "public_product_list_item": { - "description": "Document representing a product list item.", - "properties": { - "id": { - "description": "The id of this product list item.", - "type": "string" - }, - "priority": { - "description": "The priority of the item.", - "format": "int32", - "type": "integer" - }, - "product": { - "$ref": "#/definitions/product", - "description": "The product item" - }, - "product_details_link": { - "$ref": "#/definitions/product_simple_link", - "description": "A link to the product." - }, - "type": { - "description": "The type of the item.", - "enum": [ - "product", - "gift_certificate" - ], - "type": "string" - } - } - }, - "public_product_list_item_result": { - "description": "Result document containing an array of product list items.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of product list item documents.", - "items": { - "$ref": "#/definitions/public_product_list_item" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "public_product_list_link": { - "description": "Document representing a link to a public product list.", - "properties": { - "description": { - "description": "The description of this product list.", - "type": "string" - }, - "link": { - "description": "The target of the link.", - "type": "string" - }, - "name": { - "description": "The name of this product list.", - "type": "string" - }, - "title": { - "description": "The link title.", - "type": "string" - }, - "type": { - "description": "The type of the product list.", - "enum": [ - "wish_list", - "gift_registry", - "shopping_list", - "custom_1", - "custom_2", - "custom_3" - ], - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/reference": { + "post": { + "description": "Creates a new basket based on a basket reference.\n \n The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket\n of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the\n basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data\n like payment instruments and coupons will not be copied over to the new basket.\n ", + "operationId": "postBasketsReference", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket_reference" + } + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id and customer id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "public_product_list_result": { - "description": "Result document containing an array of public product list links.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of product list link documents.", - "items": { - "$ref": "#/definitions/public_product_list_link" - }, - "type": "array" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}": { + "delete": { + "description": "Removes a basket.", + "operationId": "deleteBasketsByID", + "parameters": [ + { + "description": "the id of the basket to be retrieved", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown." } - }, - "query": { - "description": "Document representing a query. A query contains a set of objects that define criteria\n used to select records. A query can contain one of the following:\n " - }, - "query_filter": { - "description": "Document representing a query filter. A query filter wraps any query and allows it to be used as a filter.\n ", - "properties": { - "query": { - "$ref": "#/definitions/query", - "description": "The query, which should be used as a filter.", - "x-sub_types": { - "nested_query": "#/definitions/nested_query", - "filtered_query": "#/definitions/filtered_query", - "text_query": "#/definitions/text_query", - "term_query": "#/definitions/term_query", - "match_all_query": "#/definitions/match_all_query", - "bool_query": "#/definitions/bool_query" - } - } + }, + "security": [ + { + "customers_auth": [] }, - "required": [ - "query" - ] - }, - "range2_filter": { - "description": "Document representing a range compare with range filter, named Range2Filter.", - "properties": { - "filter_mode": { - "description": "compare mode: overlap, containing, contained (default to \"overlap\"). It is optional.", - "enum": [ - "overlap", - "containing", - "contained" - ], - "type": "string" - }, - "from_field": { - "description": "The field name of the field that start the range 1.", - "type": "string" - }, - "from_inclusive": { - "description": "A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given\n lower bound is inclusive).", - "type": "boolean" - }, - "from_value": { - "description": "The configured lower bound of the filter range. The lower bound is optional. If not given, the range is\n open ended with respect to the lower bound.", - "type": "object" - }, - "to_field": { - "description": "The field name of the field that end the range 1.", - "type": "string" - }, - "to_inclusive": { - "description": "A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given\n upper bound is inclusive).", - "type": "boolean" - }, - "to_value": { - "description": "The configured upper bound of the filter range. The upper bound is optional. If not given, the range is\n open ended with respect to the upper bound.", - "type": "object" - } + { + "oauth2_application": [] }, - "required": [ - "from_field", - "to_field" - ] - }, - "range_filter": { - "description": "Document representing a range filter.\n ", - "properties": { - "field": { - "description": "The search field.", - "type": "string" - }, - "from": { - "description": "The configured lower bound of the filter range. The lower bound is optional. If not given, the range is\n open ended with respect to the lower bound.", - "type": "object" - }, - "from_inclusive": { - "description": "A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given\n lower bound is inclusive).", - "type": "boolean" - }, - "to": { - "description": "The configured upper bound of the filter range. The upper bound is optional. If not given, the range is\n open ended with respect to the upper bound.", - "type": "object" - }, - "to_inclusive": { - "description": "A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given\n upper bound is inclusive).", - "type": "boolean" - } + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "get": { + "description": "Gets a basket.", + "operationId": "getBasketsByID", + "parameters": [ + { + "description": "the id of the basket to be retrieved", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." }, - "required": [ - "field" - ] - }, - "recommendation": { - "description": "Document representing a product recommendation.", - "properties": { - "callout_msg": { - "description": "The localized callout message of the recommendation.", - "format": "html", - "x-label": { - "default": "Callout Message" - }, - "type": "string" - }, - "image": { - "$ref": "#/definitions/image", - "description": "The image of the recommendation.", - "x-label": { - "default": "Standard Image" - } - }, - "long_description": { - "description": "The localized long description of the recommendation.", - "format": "html", - "x-label": { - "default": "Long Description" - }, - "type": "string" - }, - "name": { - "description": "The localized name of the recommendation.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "recommendation_type": { - "$ref": "#/definitions/recommendation_type", - "description": "The recommendation type of the recommendation.", - "x-label": { - "default": "Recommendation Type" - } - }, - "recommended_item_id": { - "description": "The recommended item id of the recommendation.", - "type": "string" - }, - "recommended_item_link": { - "description": "The recommended item link of the recommendation.", - "type": "string" - }, - "short_description": { - "description": "The localized short description of the recommendation.", - "format": "html", - "x-label": { - "default": "Short Description" - }, - "type": "string" - } - } - }, - "recommendation_type": { - "description": "Document representing a recommendation type.", - "properties": { - "display_value": { - "description": "The localized display value of the recommendation type.", - "type": "string" - }, - "value": { - "description": "The value of the recommendation type.", - "format": "int32", - "type": "integer" - } - } - }, - "result_page": { - "description": "Data that can be used to get the next and previous page of a Data API results object.", - "properties": { - "count": { - "description": "Returns the count of search hits to include in the page.", - "format": "int32", - "type": "integer" - }, - "start": { - "description": "Returns the zero-based index of the first search hit in the page.", - "format": "int32", - "type": "integer" - } - } - }, - "shipment": { - "description": "Document representing a shipment.", - "properties": { - "adjusted_merchandize_total_tax": { - "description": "The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of\n product prices before services such as shipping have been added, but after adjustment from promotions have been\n added.\n\n Note that order level adjustments are considered if Discount Taxation preference is set to\n \"Tax Products and Shipping Only Based on Adjusted Price\".", - "format": "double", - "type": "number" - }, - "adjusted_shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container after shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "gift": { - "description": "A flag indicating whether the shipment is a gift.", - "x-label": { - "default": "Is A Gift" - }, - "type": "boolean" - }, - "gift_message": { - "description": "The gift message.", - "x-label": { - "default": "Gift Message" - }, - "type": "string" - }, - "merchandize_total_tax": { - "description": "The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before\n services such as shipping or adjustment from promotions have been added.", - "format": "double", - "type": "number" - }, - "product_sub_total": { - "description": "The total price of all product items after all product discounts. Depending on taxation policy the returned price\n is net or gross.", - "format": "double", - "type": "number" - }, - "product_total": { - "description": "The total price of all product items after all product and order discounts. Depending on taxation policy the\n returned price is net or gross.", - "format": "double", - "type": "number" - }, - "shipment_id": { - "description": "The order specific id to identify the shipment.", - "type": "string" - }, - "shipment_no": { - "description": "Returns the shipment number for this shipment.\n\n This number is automatically generated.", - "x-label": { - "default": "Shipment No" - }, - "type": "string" - }, - "shipment_total": { - "description": "The total price of the shipment, including products, shipping and tax.\n\n Note that order level adjustments are not considered.", - "format": "double", - "type": "number" - }, - "shipping_address": { - "$ref": "#/definitions/order_address", - "description": "The shipping address." - }, - "shipping_method": { - "$ref": "#/definitions/shipping_method", - "description": "The shipping method." - }, - "shipping_status": { - "description": "The shipping status of the shipment.", - "enum": [ - "not_shipped", - "shipped" - ], - "x-enum-labels": [ - { - "default": "NOTSHIPPED" - }, - { - "default": "SHIPPED" - } - ], - "x-label": { - "default": "Shipping Status" - }, - "type": "string" - }, - "shipping_total": { - "description": "The total shipping price of the shipment after all shipping discounts. Excludes tax if taxation policy is net.\n Includes tax if taxation policy is gross.", - "format": "double", - "type": "number" - }, - "shipping_total_tax": { - "description": "The tax of all shipping line items of the line item container before shipping adjustments have been applied.", - "format": "double", - "type": "number" - }, - "tax_total": { - "description": "The total tax amount of the shipment.\n\n Note that order level adjustments are considered if Discount Taxation preference is set to\n \"Tax Products and Shipping Only Based on Adjusted Price\".", - "format": "double", - "type": "number" - }, - "tracking_number": { - "description": "The tracking number of the shipment.", - "type": "string" - } + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates a basket. Only the currency of the basket, source code, and the custom\n properties of the basket and of the shipping items will be considered.", + "operationId": "patchBasketsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth. or Indicates that the basket cannot be updated because the\n requested currency is not supported by the site. or Indicates that the given shipping item id is null or empty. or Indicates that a few shipping items with the same item id are\n provided. or Indicates that the provided code is not currently active." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipping item with the given item id is\n unknown for the basket or Indicates that the provided code was not found." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "shipping_item": { - "description": "Document representing a shipping item.", - "properties": { - "adjusted_tax": { - "description": "The tax of the product item after adjustments applying.", - "format": "double", - "type": "number" - }, - "base_price": { - "description": "The base price for the line item, which is the\n price of the unit before applying adjustments, in the purchase\n currency. The base price may be net or gross of tax depending\n on the configured taxation policy.", - "format": "double", - "type": "number" - }, - "item_id": { - "description": "The item identifier. Use this to identify an item when\n updating the item quantity or creating a custom price adjustment for an\n item.", - "type": "string" - }, - "item_text": { - "description": "The text describing the item in more detail.", - "type": "string" - }, - "price": { - "description": "The price of the line item before applying any adjustments. If the line item is based on net pricing\n then the net price is returned. If the line item is based on gross\n pricing then the gross price is returned.", - "format": "double", - "type": "number" - }, - "price_adjustments": { - "description": "Array of price adjustments. Can be empty.", - "items": { - "$ref": "#/definitions/price_adjustment" - }, - "type": "array" - }, - "price_after_item_discount": { - "description": "The price of the product line item after applying all product-level\n adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted\n gross price is returned.", - "format": "double", - "type": "number" - }, - "shipment_id": { - "description": "The identifier of the shipment to which this item belongs.", - "type": "string" - }, - "tax": { - "description": "The tax of the product item before adjustments applying.", - "format": "double", - "type": "number" - }, - "tax_basis": { - "description": "The price used to calculate the tax for this product item.", - "format": "double", - "type": "number" - }, - "tax_class_id": { - "description": "The tax class ID for the product item or null\n if no tax class ID is associated with the product item.", - "type": "string" - }, - "tax_rate": { - "description": "The tax rate, which is the decimal tax rate to be applied\n to the product represented by this item.", - "format": "double", - "type": "number" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/agent": { + "put": { + "description": "Marks a basket as an agent basket.", + "operationId": "putBasketsByIDAgent", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that marking this basket as an agent basket would exceed\n the open agent basket limit for the basket customer" + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "shipping_method": { - "description": "Document representing a shipping method.", - "properties": { - "description": { - "description": "The localized description of the shipping method.", - "x-label": { - "default": "Description" - }, - "type": "string" - }, - "external_shipping_method": { - "description": "The external shipping method.", - "type": "string" - }, - "id": { - "description": "The shipping method id.", - "x-label": { - "default": "ID" - }, - "maxLength": 256, - "type": "string" - }, - "name": { - "description": "The localized name of the shipping method.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "price": { - "description": "The shipping cost total, including shipment level costs and\n product level fix and surcharge costs.", - "format": "double", - "type": "number" - }, - "shipping_promotions": { - "description": "The array of active customer shipping promotions for this shipping\n method. This array can be empty.", - "items": { - "$ref": "#/definitions/shipping_promotion" - }, - "type": "array" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/approaching_discounts": { + "get": { + "description": "Gets the approaching discounts of a basket", + "operationId": "getBasketsByIDApproachingDiscounts", + "parameters": [ + { + "description": "The id of the basket to be checked.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id is unknown." }, - "required": [ - "id" - ] - }, - "shipping_method_result": { - "description": "Result document containing shipping methods.", - "properties": { - "applicable_shipping_methods": { - "description": "The applicable shipping method documents.", - "items": { - "$ref": "#/definitions/shipping_method" - }, - "type": "array" - }, - "default_shipping_method_id": { - "description": "The default shipping method.", - "type": "string" - } + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/approaching_discount_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "shipping_promotion": { - "description": "Document representing a shipping promotion.", - "properties": { - "callout_msg": { - "description": "The localized call-out message of the promotion.", - "type": "string" - }, - "link": { - "description": "The URL addressing the promotion.", - "type": "string" - }, - "promotion_id": { - "description": "The unique id of the promotion.", - "type": "string" - }, - "promotion_name": { - "description": "The localized promotion name.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/billing_address": { + "put": { + "description": "Sets the billing address of a basket.", + "operationId": "putBasketsByIDBillingAddress", + "parameters": [ + { + "description": "The id of the basket to be modified.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "use_as_shipping", + "type": "boolean" + }, + { + "in": "query", + "minLength": 1, + "name": "customer_address_id", + "type": "string" + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/order_address" + } + } + ], + "responses": { + "400": { + "description": "Indicates that both customer_address_id and address body was\n provided. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT (not\n relevant when using OAuth). or Indicates that the billing address was null and no customer_address_id was provided." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the address specified by customer_address_id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "simple_link": { - "description": "Document representing a link to another resource.", - "properties": { - "link": { - "description": "The link to the resource.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/coupons": { + "post": { + "description": "Adds a coupon to an existing basket.", + "operationId": "postBasketsByIDCoupons", + "parameters": [ + { + "description": "The id of the basket to be modified.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/coupon_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth. or Thrown if the coupon number is not provided. or Thrown if the coupon code specified is invalid." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "site": { - "description": "Document representing a site.", - "properties": { - "allowed_currencies": { - "description": "The list of allowed currencies.", - "items": { - "type": "string" - }, - "type": "array" - }, - "allowed_locales": { - "description": "A list of all allowed site locales.", - "items": { - "$ref": "#/definitions/locale" - }, - "type": "array" - }, - "default_currency": { - "description": "The currency mnemonic of the site.", - "type": "string" - }, - "default_locale": { - "description": "The default locale of the site.", - "type": "string" - }, - "http_dis_base_url": { - "description": "The HTTP DIS base URL.", - "type": "string" - }, - "http_hostname": { - "description": "The configured HTTP host name. If no host name is configured the instance host name is returned.", - "type": "string" - }, - "http_library_content_url": { - "description": "The HTTP URL to the library content location of the site.", - "type": "string" - }, - "http_site_content_url": { - "description": "The HTTP URL to the site content location.", - "type": "string" - }, - "https_dis_base_url": { - "description": "The HTTPS DIS base URL.", - "type": "string" - }, - "https_hostname": { - "description": "The configured HTTPS host name. If no host name is configured the instance host name is returned.", - "type": "string" - }, - "https_library_content_url": { - "description": "The HTTPS URL to the library content location of the site.", - "type": "string" - }, - "https_site_content_url": { - "description": "The HTTPS URL to the site content location.", - "type": "string" - }, - "id": { - "description": "The id of the site.", - "type": "string" - }, - "name": { - "description": "The descriptive name for the site.", - "type": "string" - }, - "status": { - "description": "The site status online/offline.", - "enum": [ - "online", - "offline" - ], - "type": "string" - }, - "timezone": { - "description": "The time zone of the site (for example, USA/Eastern).", - "type": "string" - }, - "timezone_offset": { - "description": "The time zone offset from UTC for the current time in milliseconds (for example, -14400000).", - "format": "int32", - "type": "integer" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/coupons/{coupon_item_id}": { + "delete": { + "description": "Removes a coupon from the basket.", + "operationId": "deleteBasketsByIDCouponsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the coupon item to be removed", + "in": "path", + "minLength": 1, + "name": "coupon_item_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the couponItemId URL parameter does not match any\n coupon item id in the basket." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "sort": { - "description": "Document representing a sort request.", - "properties": { - "field": { - "description": "The name of the field to sort on.", - "type": "string" - }, - "sort_order": { - "description": "The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used.", - "enum": [ - "asc", - "desc" - ], - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/customer": { + "put": { + "description": "Sets customer information for an existing basket.", + "operationId": "putBasketsByIDCustomer", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_info" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth. or Indicates that the customer cannot be set to the basket because the\n max number of baskets per customer would be exceeded." + }, + "404": { + "description": "Indicates that the customer with the given customer number is unknown. or Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "status": { - "description": "Document representing a status of an object.", - "properties": { - "code": { - "description": "The status code.", - "type": "string" - }, - "message": { - "description": "The status message.", - "type": "string" - }, - "status": { - "description": "The status.\n \n For more information on the status values see dw.system.Status.OK and\n dw.system.Status.ERROR.", - "format": "int32", - "type": "integer" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/gift_certificate_items": { + "post": { + "description": "Adds a gift certificate item to an existing basket.", + "operationId": "postBasketsByIDGiftCertificateItems", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/gift_certificate_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the gift certificate item amount is negative." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipment with the given shipment id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "store": { - "description": "Document representing a store.", - "properties": { - "address1": { - "description": "The first address of the store.", - "x-label": { - "default": "Address1" - }, - "type": "string" - }, - "address2": { - "description": "The second address of the store.", - "x-label": { - "default": "Address2" - }, - "type": "string" - }, - "city": { - "description": "The city of the store.", - "x-label": { - "default": "City" - }, - "type": "string" - }, - "country_code": { - "description": "The country code of the store.", - "enum": [ - "US", - "CA", - "DE" - ], - "x-enum-labels": [ - { - "default": "United States" - }, - { - "default": "Canada" - }, - { - "default": "Germany" - } - ], - "x-label": { - "default": "Country" - }, - "type": "string" - }, - "distance": { - "description": "The distance to the given geo location in the unit of attribute distance (miles or kilometers).", - "format": "double", - "x-label": { - "default": "Distance to store" - }, - "type": "number" - }, - "distance_unit": { - "description": "The distance unit the distance attribute is measured in (either in miles or kilometers).", - "x-label": { - "default": "Unit of distance" - }, - "type": "string" - }, - "email": { - "description": "The email address of the store.", - "x-label": { - "default": "Email" - }, - "type": "string" - }, - "fax": { - "description": "The fax number of the store.", - "x-label": { - "default": "Fax" - }, - "type": "string" - }, - "id": { - "description": "The id of the store.", - "x-label": { - "default": "ID" - }, - "maxLength": 256, - "minLength": 1, - "type": "string" - }, - "image": { - "description": "The store image.", - "x-label": { - "default": "Image" - }, - "type": "string" - }, - "inventory_id": { - "description": "The inventory list id associated with this store.", - "maxLength": 256, - "type": "string" - }, - "latitude": { - "description": "The latitude of the store.", - "format": "double", - "x-label": { - "default": "Latitude" - }, - "maximum": 90, - "minimum": -90, - "type": "number" - }, - "longitude": { - "description": "The longitude of the store.", - "format": "double", - "x-label": { - "default": "Longitude" - }, - "maximum": 180, - "minimum": -180, - "type": "number" - }, - "name": { - "description": "The store name.", - "x-label": { - "default": "Name" - }, - "type": "string" - }, - "phone": { - "description": "The phone number of the store.", - "x-label": { - "default": "Phone" - }, - "type": "string" - }, - "pos_enabled": { - "description": "Whether this store uses Store Point-of-Sale.", - "x-label": { - "default": "Uses Commerce Cloud Store for Point-of-Sale" - }, - "type": "boolean" - }, - "postal_code": { - "description": "The postal code of the store.", - "x-label": { - "default": "Postal Code" - }, - "type": "string" - }, - "state_code": { - "description": "The state code of the store.", - "x-label": { - "default": "State" - }, - "type": "string" - }, - "store_events": { - "description": "The store events.", - "format": "html", - "x-label": { - "default": "Store Events" - }, - "type": "string" - }, - "store_hours": { - "description": "The store opening hours.", - "format": "html", - "x-label": { - "default": "Store Hours" - }, - "type": "string" - }, - "store_locator_enabled": { - "description": "Whether this store should show up in store locator results.", - "x-label": { - "default": "Store Locator Enabled" - }, - "type": "boolean" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/gift_certificate_items/{gift_certificate_item_id}": { + "delete": { + "description": "Deletes a gift certificate item from an existing basket.", + "operationId": "deleteBasketsByIDGiftCertificateItemsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" }, - "required": [ - "id" - ] - }, - "store_result": { - "description": "Result document containing an array of stores.", - "properties": { - "count": { - "description": "The number of returned documents.", - "format": "int32", - "type": "integer" - }, - "data": { - "description": "The array of store documents.", - "items": { - "$ref": "#/definitions/store" - }, - "type": "array" - }, - "next": { - "description": "The URL of the next result page.", - "type": "string" - }, - "previous": { - "description": "The URL of the previous result page.", - "type": "string" - }, - "start": { - "description": "The zero-based index of the first search hit to include in the result.", - "format": "int32", - "minimum": 0, - "type": "integer" - }, - "total": { - "description": "The total number of documents.", - "format": "int32", - "type": "integer" - } + { + "description": "the id of the gift certificate item to be removed", + "in": "path", + "minLength": 1, + "name": "gift_certificate_item_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the gift certificate item with the given gift certificate item id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates a gift certificate item of an existing basket.", + "operationId": "patchBasketsByIDGiftCertificateItemsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the gift certificate item to be updated", + "in": "path", + "minLength": 1, + "name": "gift_certificate_item_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/gift_certificate_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the gift certificate item amount is negative." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the gift certificate item with the given gift certificate item id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_category": { - "properties": { - "id": { - "description": "The id of the category.", - "type": "string" - }, - "link": { - "description": "The URL addressing the category.", - "type": "string" - }, - "name": { - "description": "The localized name of the category.", - "type": "string" - }, - "parent_category_name": { - "description": "The name of the parent category.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/items": { + "post": { + "description": "Adds new items to a basket. The added items are associated with the\n specified shipment. If no shipment id is specified, the added items are associated with the default shipment.\n Considered values from the request body, for each item are:\n \n product_id: a valid product id. This is the id of the product to be added to the basket. If the\n product is already in the basket, the API either increments the quantity of the existing product line item or\n creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and\n product bundles containing variation masters, the API creates a new product line item regardless of the site\n preference.\n shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item\n is created.\n quantity: a number between 0.01 and 999. This is the quantity of the product to order.\n inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is\n allocated.\n bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the\n bonus discount line item for which the added product is a selected bonus product.\n option_items/option_value_id: a valid option value id. This is an option value for an option item of\n an option product. This is only possible if the product item is an option\n product. To set option values, you must specify a collection of option items in the option_items\n property. These option items must contain option_id and option_value_id. Also,\n the values you specify must be valid for the option product that this product item represents. Otherwise, the\n server throws an InvalidProductOptionItemException or an\n InvalidProductOptionValueItemException.\n custom properties in the form c_: the custom property must correspond to a custom\n attribute () defined for ProductLineItem. The value of this property must be valid for the\n type of custom attribute defined for ProductLineItem.\n ", + "operationId": "postBasketsByIDItems", + "parameters": [ + { + "description": "The id of the basket to be modified.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/product_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the given product id is null or invalid. or Indicates that the product with the given product id is unknown, offline or\n not assigned to site catalog or the given product item quantity is null or invalid. or Indicates a null quantity value or Indicates that the requested product quantity is not available. or Indicates that the product cannot be added to the basket because of its type. or Indicates that an option with the specified option id is unknown. or Indicates that an option with the specified option value id is\n unknown. or Indicates that the maximum allowed number, of products added to the basket,\n has been exceeded. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth. or Indicates that the provided bonus discount line item id is not\n present in the current basket. or Indicates that the quantity of the product to be added will result in the\n number of selected bonus choice products to exceed the amount that the user is permitted to select. or Indicates that the selected bonus product is not an applicable product for\n the bonus discount line item provided." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the basket does not contain a shipment with the given shipment\n id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_content": { - "properties": { - "id": { - "description": "The id of the content.", - "type": "string" - }, - "link": { - "description": "The URL addressing the content.", - "type": "string" - }, - "name": { - "description": "The localized name of the content.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/items/{item_id}": { + "delete": { + "description": "Removes a product item from the basket.", + "operationId": "deleteBasketsByIDItemsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the product item to be removed", + "in": "path", + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the product item with the given product item id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates an item in a basket. The\n following values in the request body are considered by the server:\n \n product_id: a valid product id. The purpose of this\n value is to exchange a variation of a variation product.\n shipment_id: a valid shipment id. The purpose of\n this value is to move a product item to another shipment.\n quantity: a number between 0 and 999. The purpose of\n this value is to change quantity of the product item. If quantity is 0,\n the product item is removed.\n option_items/option_value_id: a valid option value\n id. The purpose of this value is to exchange an option value for an\n option item of an option product. \n This is only possible if the product item is an option product. To change\n option values a collection of option items to be changed need to be\n provided in property option_items. Those\n option_items need to contain option_id\n and option_value_id. The provided values must be valid\n for the option product that this product item represents. Otherwise\n InvalidProductOptionItemException or\n InvalidProductOptionValueItemException will be thrown.\n custom properties c_: a\n value corresponding to the type defined for custom attribute\n of ProductLineItem. The purpose of this value is to\n add or change the value of a custom attribute defined for\n ProductLineItem.\n ", + "operationId": "patchBasketsByIDItemsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the it of the item to be updated", + "in": "path", + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/product_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that no product item with given item id was found\n for the basket. or Indicates that the product with the given product id in the\n request body is invalid. or Indicates a null quantity value or Indicates that an option with the specified option id is unknown. or Indicates that an option with the specified option value id is unknown. or Indicates that the given shipment id is invalid. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown or Indicates that a shipment with it's given id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_phrase": { - "description": "Document representing a suggested search phrase.", - "properties": { - "exact_match": { - "description": "Returns whether this suggested phrase exactly matches the user input search phrase.", - "type": "boolean" - }, - "phrase": { - "description": "Returns the suggested search phrase.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/notes": { + "get": { + "description": "Retrieves notes for a basket.", + "operationId": "getBasketsByIDNotes", + "parameters": [ + { + "description": "The id of the basket for which you want to retrieve the notes.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/notes_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "post": { + "description": "Adds a note to an existing basket.", + "operationId": "postBasketsByIDNotes", + "parameters": [ + { + "description": "The id of the basket to be modified.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/note" + } + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_product": { - "description": "Document representing a product search hit.", - "properties": { - "currency": { - "description": "The ISO 4217 mnemonic code of the currency.", - "type": "string" - }, - "image": { - "$ref": "#/definitions/image", - "description": "The first image of the product hit for the configured viewtype." - }, - "link": { - "description": "The URL addressing the product.", - "type": "string" - }, - "price": { - "description": "The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of\n related child products.", - "format": "double", - "type": "number" - }, - "product_id": { - "description": "The id (SKU) of the product.", - "type": "string" - }, - "product_name": { - "description": "The localized name of the product.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/notes/{note_id}": { + "delete": { + "description": "Removes a basket note.", + "operationId": "deleteBasketsByIDNotesByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the note to be removed", + "in": "path", + "minLength": 1, + "name": "note_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_term": { - "description": "Document representing a suggested term.", - "properties": { - "completed": { - "description": "Returns whether this term value is a completion match.", - "type": "boolean" - }, - "corrected": { - "description": "Returns whether this term value is a correction match.", - "type": "boolean" - }, - "exact_match": { - "description": "Returns whether this term value is a exact match.", - "type": "boolean" - }, - "value": { - "description": "Returns the term value.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/payment_instruments": { + "post": { + "description": "Adds a payment instrument to a basket.\n \n Payment instruments are usually authorized after order creation, for example in a custom hook. The default\n payment authorization process executes an authorization when a payment instrument is added to an order or\n updated. See POST /orders/{order_no}/payment_instruments and PATCH\n /orders/{order_no}/payment_instruments/{payment_instrument_id}.\n NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.\n ", + "operationId": "postBasketsByIDPaymentInstruments", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket_payment_instrument_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the provided payment method is invalid or not applicable. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the payment instrument with the given customer payment\n instrument id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggested_terms": { - "description": "Document representing a list of suggested terms for each term of a search phrase.", - "properties": { - "original_term": { - "description": "Returns the original term that the suggested terms relates to.", - "type": "string" - }, - "terms": { - "description": "Returns the suggested terms.", - "items": { - "$ref": "#/definitions/suggested_term" - }, - "type": "array" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/payment_instruments/{payment_instrument_id}": { + "delete": { + "description": "Removes a payment instrument of a basket.", + "operationId": "deleteBasketsByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be removed", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates a payment instrument of a basket.\n \n Payment instruments are usually authorized after order creation, for example in a custom hook. The default\n payment authorization process executes an authorization when a payment instrument is added to an order or\n updated. See POST /orders/{order_no}/payment_instruments and PATCH\n /orders/{order_no}/payment_instruments/{payment_instrument_id}\n ", + "operationId": "patchBasketsByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be updated", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket_payment_instrument_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the provided payment method is invalid or not applicable. or Indicates that the basket payment instrument with the given\n id already is permanently masked. Please see\n dw.order.PaymentInstrument.isPermanentlyMasked() for detailed information. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggestion": { - "description": "Document representing a suggestion.", - "properties": { - "brands": { - "description": "The sorted list of suggested brands. This list can be empty.", - "items": { - "type": "string" - }, - "type": "array" - }, - "categories": { - "description": "The sorted list of suggested categories. This list can be empty.", - "items": { - "$ref": "#/definitions/suggested_category" - }, - "type": "array" - }, - "content": { - "description": "The sorted list of suggested content. This list can be empty.", - "items": { - "$ref": "#/definitions/suggested_content" - }, - "type": "array" - }, - "custom_suggestions": { - "description": "The sorted list of suggested custom suggestions. This list can be empty.", - "items": { - "type": "string" - }, - "type": "array" - }, - "products": { - "description": "The sorted list of suggested products. This list can be empty.", - "items": { - "$ref": "#/definitions/suggested_product" - }, - "type": "array" - }, - "suggested_phrases": { - "description": "A list of suggested phrases. This list can be empty.", - "items": { - "$ref": "#/definitions/suggested_phrase" - }, - "type": "array" - }, - "suggested_terms": { - "description": "A list of suggested terms. This list can be empty.", - "items": { - "$ref": "#/definitions/suggested_terms" - }, - "type": "array" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/payment_methods": { + "get": { + "description": "Gets applicable payment methods for an existing basket considering the open payment amount only.", + "operationId": "getBasketsByIDPaymentMethods", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/payment_method_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "suggestion_result": { - "description": "Document representing a search suggestion result.", - "properties": { - "brand_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "Returns the suggested brands." - }, - "category_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "Returns the suggested categories." - }, - "content_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "Returns the suggested content." - }, - "custom_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "Returns the suggested custom suggestions." - }, - "product_suggestions": { - "$ref": "#/definitions/suggestion", - "description": "Returns the suggested products." - }, - "query": { - "description": "The query phrase to search for.", - "type": "string" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/price_adjustments": { + "post": { + "description": "Adds a custom manual price adjustment to the basket.", + "operationId": "postBasketsByIDPriceAdjustments", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/price_adjustment_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that a fixed price adjustment was already created for the given level. or Indicates that a fixed price adjustment was added at order level. or Indicates that a promotion id was used twice. or Indicates that a system promotion id was used as a manual promotion id. or Indicates that more than one hundred price adjustments would have been created. or Indicates that the price adjustment limit is exceeded." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "term_filter": { - "description": "Document representing a term filter.\n ", - "properties": { - "field": { - "description": "The filter field.", - "type": "string" - }, - "operator": { - "description": "The operator to compare the field's values with the given ones.", - "enum": [ - "is", - "one_of", - "is_null", - "is_not_null", - "less", - "greater", - "not_in", - "neq" - ], - "type": "string" - }, - "values": { - "description": "The filter values.", - "items": { - "type": "object" - }, - "type": "array" - } + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/price_adjustments/{price_adjustment_id}": { + "delete": { + "description": "Removes a custom manual price adjustment from the basket.", + "operationId": "deleteBasketsByIDPriceAdjustmentsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" }, - "required": [ - "field", - "operator" - ] - }, - "term_query": { - "description": "A term query matches one (or more) value(s) against one (or more) document field(s). A document is considered a hit\n if one of the values matches (exactly) with at least one of the given fields. The operator \"is\" can only take\n one value, while \"one_of\" can take multiple. If multiple fields are specified, they are combined using the OR operator.\n ", - "properties": { - "fields": { - "description": "The document field(s), the value(s) are matched against, combined with the operator.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - }, - "operator": { - "description": "Returns the operator to use for the term query.", - "enum": [ - "is", - "one_of", - "is_null", - "is_not_null", - "less", - "greater", - "not_in", - "neq" - ], - "type": "string" - }, - "values": { - "description": "The values, the field(s) are compared against, combined with the operator.", - "items": { - "type": "object" - }, - "type": "array" - } + { + "description": "the uuid of the adjustment to be removed", + "in": "path", + "minLength": 1, + "name": "price_adjustment_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the priceAdjustmentId is missing, empty or\n whitespace." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the\n update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount\n type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an\n adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and\n FIXED_PRICE, the 'amount' attribute is mandatory.", + "operationId": "patchBasketsByIDPriceAdjustmentsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the uuid of the adjustment to be updated", + "in": "path", + "minLength": 1, + "name": "price_adjustment_id", + "required": true, + "type": "string" }, - "required": [ - "fields", - "operator" - ] - }, - "text_query": { - "description": "A text query is used to match some text (i.e. a search phrase possibly consisting of multiple terms) against one or\n multiple fields. In case multiple fields are provided, the phrase conceptually forms a logical OR over the fields. In\n this case, the terms of the phrase basically have to match within the text, that would result in concatenating all\n given fields.\n ", - "properties": { - "fields": { - "description": "The document fields the search phrase has to match against.", - "items": { - "type": "string" - }, - "minItems": 1, - "type": "array" - }, - "search_phrase": { - "description": "A search phrase, which may consist of multiple terms.", - "type": "string" - } + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/price_adjustment" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the price adjustment is not manual and cannot be\n updated. or Indicates that the expected attributes are missing in the\n input. or Indicates that the type of a price adjustment does not match\n the adjustment type of the input data. or Indicates that the price adjustment limit is exceeded." }, - "required": [ - "fields", - "search_phrase" - ] - }, - "variant": { - "description": "Document representing a product variation.", - "properties": { - "link": { - "description": "The URL addressing the product.", - "minLength": 1, - "type": "string" - }, - "orderable": { - "description": "A flag indicating whether the variant is orderable.", - "type": "boolean" - }, - "price": { - "description": "The sales price of the variant.", - "format": "double", - "type": "number" - }, - "product_id": { - "description": "The id (SKU) of the variant.", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "variation_values": { - "additionalProperties": { - "type": "string" - }, - "description": "The actual variation attribute id - value pairs.", - "type": "object" - } + "404": { + "description": "Indicates that the priceAdjustmentId is not found." }, - "required": [ - "link", - "product_id" - ] - }, - "variation_attribute": { - "properties": { - "id": { - "minLength": 1, - "type": "string" - }, - "name": { - "type": "string" - }, - "values": { - "items": { - "$ref": "#/definitions/variation_attribute_value" - }, - "type": "array" - } + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] }, - "required": [ - "id" - ] - }, - "variation_attribute_value": { - "properties": { - "description": { - "type": "string" - }, - "name": { - "type": "string" - }, - "orderable": { - "type": "boolean" - }, - "value": { - "minLength": 1, - "type": "string" - } + { + "oauth2_application": [] }, - "required": [ - "value" - ] - }, - "variation_group": { - "description": "Document representing a variation group.", - "properties": { - "link": { - "description": "The URL addressing the product.", - "type": "string" - }, - "orderable": { - "description": "A flag indicating whether the variation group is orderable.", - "type": "boolean" - }, - "price": { - "description": "The sales price of the variation group.", - "format": "double", - "type": "number" - }, - "product_id": { - "description": "The id (SKU) of the variation group.", - "maxLength": 100, - "minLength": 1, - "type": "string" - }, - "variation_values": { - "additionalProperties": { - "type": "string" - }, - "description": "The actual variation attribute id - value pairs.", - "type": "object" - } + { + "client_id": [] } + ], + "tags": [ + "baskets" + ] } - }, - "x-documents": "https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/meta/rest/shop/v17_8/documents?client_id=5640cc6b-f5e9-466e-9134-9853e9f9db93", - "host": "mobify-tech-prtnr-na03-dw.demandware.net", - "info": { - "title": "Shop API", - "version": "17.8" - }, - "paths": { - "/baskets": { - "post": { - "description": "Creates a new basket. The created basket is initialized with default values. Data provided in the body document\n will be populated into the created basket. It can be updated with further Shop API calls.\n Considered values from the request body are:\n \n customer information: PUT /baskets/{basket_id}/customer\n billing address: PUT /baskets/{basket_id}/billing_address\n shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments\n product items: POST /baskets/{basket_id}/items\n coupon items: POST /baskets/{basket_id}/coupons\n gift certificate items: POST /baskets/{basket_id}/gift_certificates\n payment method and card type: POST /baskets/{basket_id}/payment_instruments\n custom properties: PATCH /baskets/{basket_id}\n \n Related resource means with which resource you can specify the same data after the basket creation.\n Identify the basket using the basket_id property, which\n should be integrated into the path of an update request, for example a POST to\n /baskets/{basket_id}/items. The resource supports JWT or\n OAuth tokens for authentication:\n \n A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered\n customer). In this case the resource creates a basket for this customer.\n An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created\n guest customer, and can later update the customer if desired.\n \n The number of baskets which can be created per customer is limited. When a\n basket is created it is said to be open. It remains open until either an order is created from it\n using a POST to resource /orders or it is deleted using a DELETE to resource\n /baskets/{basket_id}. The number of open baskets allowed depends on the authentication\n method used:\n \n When using JWT each customer can have just one open basket\n When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be\n updated by support)\n ", - "operationId": "postBaskets", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/basket" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the provided payment method is invalid or not applicable. or Thrown if the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Thrown if a new basket cannot be created because the maximum number\n of baskets per customer quota will be exceeded. or Indicates that the same shipment id appeared twice in the body. or Thrown if the coupon number is not provided. or Indicates that a fixed price adjustment was added at order level\n which is disallowed. or When attempting to add a price adjustment, indicates that a promotion id was\n used twice. or When attempting to add a price adjustment, indicates that a system promotion\n id was used as a manual promotion id. or Indicates that more than one hundred price adjustments would have been\n created." - }, - "404": { - "description": "Thrown if the shipment with the given shipment id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - } - }, - "/baskets/{basket_id}": { - "delete": { - "description": "Removes a basket.", - "operationId": "deleteBasketsByID", - "parameters": [ - { - "description": "the id of the basket to be retrieved", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "get": { - "description": "Gets a basket.", - "operationId": "getBasketsByID", - "parameters": [ - { - "description": "the id of the basket to be retrieved", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "patch": { - "description": "Updates a basket. Only the currency of the basket, source code, and the custom\n properties of the basket and of the shipping items will be considered.", - "operationId": "patchBasketsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/basket" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth. or Indicates that the basket cannot be updated because the\n requested currency is not supported by the site. or Indicates that the given shipping item id is null or empty. or Indicates that a few shipping items with the same item id are\n provided. or Indicates that the provided code is not currently active." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipping item with the given item id is\n unknown for the basket or Indicates that the provided code was not found." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + }, + "/baskets/{basket_id}/shipments": { + "post": { + "description": "Creates a new shipment for a basket.\n \n The created shipment is initialized with values provided in the body\n document and can be updated with further data API calls. Considered from\n the body are the following properties if specified:\n \n the id\n the shipping address\n the shipping method\n gift boolean flag\n gift message\n custom properties\n ", + "operationId": "postBasketsByIDShipments", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/shipment" + } + } + ], + "responses": { + "400": { + "description": "Indicates that a shipment id is not provided. or Indicates that a shipment with the provided id already\n exists for the basket. or Indicates that a shipment with the provided shipment number\n already exists for the basket. or Indicates that a shipping method with an id was specified\n which is not a valid shipping method id. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/billing_address": { - "put": { - "description": "Sets the billing address of a basket.", - "operationId": "putBasketsByIDBillingAddress", - "parameters": [ - { - "description": "The id of the basket to be modified.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "use_as_shipping", - "type": "boolean" - }, - { - "in": "query", - "minLength": 1, - "name": "customer_address_id", - "type": "string" - }, - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/order_address" - } - } - ], - "responses": { - "400": { - "description": "Indicates that both customer_address_id and address body was\n provided. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token (not\n relevant when using OAuth)." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the address specified by customer_address_id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/shipments/{shipment_id}": { + "delete": { + "description": "Removes a specified shipment and all associated product, gift certificate,\n shipping and price adjustment line items from a basket.\n It is not permissible to remove the default shipment.", + "operationId": "deleteBasketsByIDShipmentsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the shipment to be deleted", + "in": "path", + "minLength": 1, + "name": "shipment_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the given shipment id is invalid. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "403": { + "description": "Indicates that the given shipment id corresponds to the\n default shipment and cannot be removed." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "baskets" + ] + }, + "patch": { + "description": "Updates a shipment for a basket.\n \n The shipment is initialized with values provided in the body\n document and can be updated with further data API calls. Considered from\n the body are the following properties if specified\n \n the id\n the shipping address\n the shipping method\n gift boolean flag\n gift message\n custom properties\n ", + "operationId": "patchBasketsByIDShipmentsByID", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the shipment to be modified", + "in": "path", + "minLength": 1, + "name": "shipment_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/shipment" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the given shipment id was invalid. or Indicates that a shipment with the provided id already\n exists for the basket. or Indicates that a shipment with the provided shipment number\n already exists for the basket. or Indicates a missing shipping method. or Indicates an invalid shipping method. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/coupons": { - "post": { - "description": "Adds a coupon to an existing basket.", - "operationId": "postBasketsByIDCoupons", - "parameters": [ - { - "description": "The id of the basket to be modified.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/coupon_item" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth. or Thrown if the coupon number is not provided. or Thrown if the coupon code specified is invalid." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/shipments/{shipment_id}/shipping_address": { + "put": { + "description": "Sets a shipping address of a specific shipment of a basket.", + "operationId": "putBasketsByIDShipmentsByIDShippingAddress", + "parameters": [ + { + "description": "The id of the basket to be modified.", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the shipment to be modified.", + "in": "path", + "minLength": 1, + "name": "shipment_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "use_as_billing", + "type": "boolean" + }, + { + "in": "query", + "minLength": 1, + "name": "customer_address_id", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/order_address" + } + } + ], + "responses": { + "400": { + "description": "Indicates that both customer_address_id and address body was\n provided. or Thrown if the shipment with the given shipment id is unknown. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT (not\n relevant when using OAuth). or Indicates that an customerAddressId was provided but either\n an anonymous or no customer was set." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the address specified by customer_address_id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/coupons/{coupon_item_id}": { - "delete": { - "description": "Removes a coupon from the basket.", - "operationId": "deleteBasketsByIDCouponsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the coupon item to be removed", - "in": "path", - "minLength": 1, - "name": "coupon_item_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the couponItemId URL parameter does not match any\n coupon item id in the basket." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/shipments/{shipment_id}/shipping_method": { + "put": { + "description": "Sets a shipping method to a specific shipment of a basket.", + "operationId": "putBasketsByIDShipmentsByIDShippingMethod", + "parameters": [ + { + "description": "the id of the basket to be modified", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the shipment to be modified", + "in": "path", + "minLength": 1, + "name": "shipment_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/shipping_method" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the id of the shipping method is missing. or Indicates that a shipping method with an id was specified\n which is not a valid shipping method id. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/customer": { - "put": { - "description": "Sets customer information for an existing basket.", - "operationId": "putBasketsByIDCustomer", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_info" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth. or Indicates that the customer cannot be set to the basket\n because the max number of baskets per customer quota will be\n exceeded." - }, - "404": { - "description": "Indicates that the customer with the given customer number is\n unknown. or Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/shipments/{shipment_id}/shipping_methods": { + "get": { + "description": "Gets the applicable shipping methods for a certain shipment of a\n basket.", + "operationId": "getBasketsByIDShipmentsByIDShippingMethods", + "parameters": [ + { + "description": "the id of the basket", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the shipment", + "in": "path", + "minLength": 1, + "name": "shipment_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipment with the given shipment id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/shipping_method_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/gift_certificate_items": { - "post": { - "description": "Adds a gift certificate item to an existing basket.", - "operationId": "postBasketsByIDGiftCertificateItems", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/gift_certificate_item" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the gift certificate item amount is negative." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipment with the given shipment id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/baskets/{basket_id}/storefront": { + "put": { + "description": "Marks a basket as storefront basket.", + "operationId": "putBasketsByIDStorefront", + "parameters": [ + { + "description": "the basket id", + "in": "path", + "minLength": 1, + "name": "basket_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "exchange", + "type": "boolean" + } + ], + "responses": { + "400": { + "description": "Thrown if a storefront basket already exists and exchange is\n false." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/basket" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/items": { - "post": { - "description": "Adds new items to a basket. The added items are associated with the\n specified shipment. If no shipment id is specified, the added items are associated with the default shipment.\n Considered values from the request body, for each item are:\n \n product_id: a valid product id. This is the id of the product to be added to the basket. If the\n product is already in the basket, the API either increments the quantity of the existing product line item or\n creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and\n product bundles containing variation masters, the API creates a new product line item regardless of the site\n preference.\n shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item\n is created.\n quantity: a number between 0.01 and 999. This is the quantity of the product to order.\n inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is\n allocated.\n bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the\n bonus discount line item for which the added product is a selected bonus product.\n option_items/option_value_id: a valid option value id. This is an option value for an option item of\n an option product. This is only possible if the product item is an option\n product. To set option values, you must specify a collection of option items in the option_items\n property. These option items must contain option_id and option_value_id. Also,\n the values you specify must be valid for the option product that this product item represents. Otherwise, the\n server throws an InvalidProductOptionItemException or an\n InvalidProductOptionValueItemException.\n custom properties in the form c_: the custom property must correspond to a custom\n attribute () defined for ProductLineItem. The value of this property must be valid for the\n type of custom attribute defined for ProductLineItem.\n ", - "operationId": "postBasketsByIDItems", - "parameters": [ - { - "description": "The id of the basket to be modified.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/product_item" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the given product id is null or invalid. or Indicates that the product with the given product id is unknown, offline or\n not assigned to site catalog or the given product item quantity is null or invalid. or Indicates that the requested product quantity is not available. or Indicates that the product cannot be added to the basket because of its type. or Indicates that an option with the specified option id is unknown. or Indicates that an option with the specified option value id is\n unknown. or Indicates that the maximum allowed number, of products added to the basket,\n has been exceeded. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT token, not relevant when using OAuth. or Indicates that the provided bonus discount line item id is not\n present in the current basket. or Indicates that the quantity of the product to be added will result in the\n number of selected bonus choice products to exceed the amount that the user is permitted to select. or Indicates that the selected bonus product is not an applicable product for\n the bonus discount line item provided." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the basket does not contain a shipment with the given shipment\n id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "baskets" + ] + } + }, + "/categories/({ids})": { + "get": { + "operationId": "getCategoriesByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "ids", + "required": true, + "type": "array" + }, + { + "format": "int32", + "in": "query", + "minimum": 0, + "name": "levels", + "type": "integer" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/category_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/items/{item_id}": { - "delete": { - "description": "Removes a product item from the basket.", - "operationId": "deleteBasketsByIDItemsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the product item to be removed", - "in": "path", - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "patch": { - "description": "Updates an item in a basket. The\n following values in the request body are considered by the server:\n \n product_id: a valid product id. The purpose of this\n value is to exchange a variation of a variation product.\n shipment_id: a valid shipment id. The purpose of\n this value is to move a product item to another shipment.\n quantity: a number between 0 and 999. The purpose of\n this value is to change quantity of the product item. If quantity is 0,\n the product item is removed.\n option_items/option_value_id: a valid option value\n id. The purpose of this value is to exchange an option value for an\n option item of an option product. \n This is only possible if the product item is an option product. To change\n option values a collection of option items to be changed need to be\n provided in property option_items. Those\n option_items need to contain option_id\n and option_value_id. The provided values must be valid\n for the option product that this product item represents. Otherwise\n InvalidProductOptionItemException or\n InvalidProductOptionValueItemException will be thrown.\n custom properties c_: a\n value corresponding to the type defined for custom attribute\n of ProductLineItem. The purpose of this value is to\n add or change the value of a custom attribute defined for\n ProductLineItem.\n ", - "operationId": "patchBasketsByIDItemsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the it of the item to be updated", - "in": "path", - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/product_item" - } - } - ], - "responses": { - "400": { - "description": "Indicates that no product item with given item id was found\n for the basket. or Indicates that the product with the given product id in the\n request body is invalid. or Indicates that an option with the specified option id is unknown. or Indicates that an option with the specified option value id is unknown. or Indicates that the given shipment id is invalid. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown or Indicates that a shipment with it's given id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "categories" + ] + } + }, + "/categories/{id}": { + "get": { + "description": "When you use the URL template below, the server returns a category identified by its id; by default, the server\n also returns the first level of subcategories, but you can specify another level by setting the levels\n parameter. The server only returns online categories.", + "operationId": "getCategoriesByID", + "parameters": [ + { + "description": "The id of the requested category.", + "in": "path", + "maxLength": 256, + "name": "id", + "required": true, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "minimum": 0, + "name": "levels", + "type": "integer" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "404": { + "description": "Thrown if the server could not find an online category with the specified id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/category" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/notes": { - "get": { - "description": "Retrieves notes for a basket.", - "operationId": "getBasketsByIDNotes", - "parameters": [ - { - "description": "The id of the basket for which you want to retrieve the notes.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/notes_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "post": { - "description": "Adds a note to an existing basket.", - "operationId": "postBasketsByIDNotes", - "parameters": [ - { - "description": "The id of the basket to be modified.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/note" - } - } - ], - "responses": { - "404": { - "description": "Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "categories" + ] + } + }, + "/content/({ids})": { + "get": { + "operationId": "getContentByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "ids", + "required": true, + "type": "array" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/content_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/notes/{note_id}": { - "delete": { - "description": "Removes a basket note.", - "operationId": "deleteBasketsByIDNotesByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the note to be removed", - "in": "path", - "minLength": 1, - "name": "note_id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "content" + ] + } + }, + "/content/{id}": { + "get": { + "description": "To access a content asset, you construct a URL using the template shown below. This template requires you to\n specify a content asset id. In response, the server returns a corresponding content asset document. Only content\n assets, which are marked as online are returned. An assignment to a folder is not necessary.", + "operationId": "getContentByID", + "parameters": [ + { + "description": "The id of the requested content asset.", + "in": "path", + "maxLength": 256, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/content" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/payment_instruments": { - "post": { - "description": "Adds a payment instrument to a basket.\n \n Payment instruments are usually authorized after order creation, for example in a custom hook. The default\n payment authorization process executes an authorization when a payment instrument is added to an order or\n updated. See POST /orders/{order_no}/payment_instruments and PATCH\n /orders/{order_no}/payment_instruments/{payment_instrument_id}.\n NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.\n ", - "operationId": "postBasketsByIDPaymentInstruments", - "parameters": [ - { - "description": "the basket id", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/basket_payment_instrument_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the provided payment method is invalid or not applicable. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the payment instrument with the given customer payment\n instrument id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "content" + ] + } + }, + "/content_search": { + "get": { + "description": "Provides keyword and refinement search functionality for content assets. The search result contains only content\n that is online and assigned to a folder.", + "operationId": "getContentSearch", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The\n following system refinement attribute ids are supported:\n \n fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are\n separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for\n ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select\n your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting\n Attributes.", + "in": "query", + "items": { + "type": "string" + }, + "name": "sort", + "type": "array" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/content_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/payment_instruments/{payment_instrument_id}": { - "delete": { - "description": "Removes a payment instrument of a basket.", - "operationId": "deleteBasketsByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the basket id", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be removed", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "patch": { - "description": "Updates a payment instrument of a basket.\n \n Payment instruments are usually authorized after order creation, for example in a custom hook. The default\n payment authorization process executes an authorization when a payment instrument is added to an order or\n updated. See POST /orders/{order_no}/payment_instruments and PATCH\n /orders/{order_no}/payment_instruments/{payment_instrument_id}\n ", - "operationId": "patchBasketsByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the basket id", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be updated", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/basket_payment_instrument_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the provided payment method is invalid or not applicable. or Indicates that the basket payment instrument with the given\n id already is permanently masked. Please see\n dw.order.PaymentInstrument.isPermanentlyMasked() for detailed information. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "content_search" + ] + } + }, + "/custom_objects/{object_type}/{key}": { + "get": { + "description": "Reads a custom object with a given object type ID and a value for the\n key attribute of the object which represents its unique identifier.", + "operationId": "getCustomObjectsByIDByID", + "parameters": [ + { + "description": "the ID of the object type", + "in": "path", + "minLength": 1, + "name": "object_type", + "required": true, + "type": "string" + }, + { + "description": "the key attribute value of the custom object", + "in": "path", + "minLength": 1, + "name": "key", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "If the object key must be an\n integer, but the path parameter has an invalid format" + }, + "404": { + "description": "For an unknown object type ID or If the custom object cannot be found" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/custom_object" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/payment_methods": { - "get": { - "description": "Gets applicable payment methods for an existing basket considering the open payment amount only.", - "operationId": "getBasketsByIDPaymentMethods", - "parameters": [ - { - "description": "the basket id", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/payment_method_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "custom_objects" + ] + } + }, + "/customers": { + "post": { + "description": "Registers a customer.\n The mandatory data are the credentials and profile last name and email.\n When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown.\n When using JWT the password is required.", + "operationId": "postCustomers", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_registration" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the resource is called with JWT\n representing a registered customer. or Indicates that request document does not contain email. or Indicates that request document does not contain last_name. or Indicates that request document does not contain login. or Indicates that the given login is already used. or Indicates that login doesn't match acceptance criteria. or Indicates that password doesn't match acceptance criteria. or Indicates that password was not provided in JWT scenario." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/shipments": { - "post": { - "description": "Creates a new shipment for a basket.\n \n The created shipment is initialized with values provided in the body\n document and can be updated with further data API calls. Considered from\n the body are the following properties if specified:\n \n the id\n the shipping address\n the shipping method\n gift boolean flag\n gift message\n custom properties\n ", - "operationId": "postBasketsByIDShipments", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/shipment" - } - } - ], - "responses": { - "400": { - "description": "Indicates that a shipment id is not provided. or Indicates that a shipment with the provided id already\n exists for the basket. or Indicates that a shipment with the provided shipment number\n already exists for the basket. or Indicates that a shipping method with an id was specified\n which is not a valid shipping method id. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/auth": { + "delete": { + "description": "Invalidates the JWT provided in the header.", + "operationId": "deleteCustomersAuth", + "parameters": [ + { + "description": "the JWT", + "in": "header", + "name": "Authorization", + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + } + }, + "security": [ + { + "customers_auth": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Obtains a new JWT (JSON Web Token) for a guest or registered\n customer. Tokens are returned as a HTTP Authorization:Bearer response\n header entry. These kinds of request are supported, as specified by the\n type:\n \n Type guest - creates a new guest (non-authenticated) customer\n and returns a token for the customer.\n Type credentials - authenticates credentials passed in the\n HTTP Authorization:Basic request header, returning a token for a\n successfully authenticated customer, otherwise it throws an\n AuthenticationFailedException.\n Type session - authenticates the customer (anonymous or registered)\n based on the dwsid and dwsecuretoken cookies. It returns a token for a\n successfully authenticated customer, otherwise it throws an\n AuthenticationFailedException.\n Type refresh - examines the token passed in the HTTP\n Authorization:Bearer request header and when valid returns a new token\n with an updated expiry time.\n \n\n For a request of type credentials:\n \n Updates profile attributes for the customer (for example,\n \"last-visited\").\n Handles the maximum number of failed login attempts.\n \n For a request of type session:\n \n The session and corresponding dwsecuretoken must be active and valid. An expired session can't be\n used. The dwsecuretoken cookie must have been used for at least one\n previous HTTPS request with the same dwsid cookie.\n Does not touch profile attributes for the registered customer (for example,\n \"last-visited\"), since this is not a real login.\n Returns different tokens for multiple requests with the same session id. Means, there should be\n only one call per session.\n \n \n About JWT The token contains 3 sections:\n \n the header section (specifies token type and algorithm used)\n the payload section (contains customer information, client id,\n issue and expiration time)\n finally the signature section records the token signature.\n \n A token is created and returned to the client whenever a registered\n customer logs in (type \"credentials\") or a guest customer requests it (type\n \"guest\"). The token is returned in the response header as \n Authorization: Bearer --token--\n \n The client has to include the token in the request header as \n Authorization: Bearer --token-- \n in any follow up request. The server declines any follow up requests\n without a token or which cannot be verified based on the token signature\n or expiration time. A token nearing its expiration time should be\n exchanged for a new one (type \"refresh\").\n \n See \"API Usage > JWT\" for more details on using JWT as an authentication\n mechanism.", + "operationId": "postCustomersAuth", + "parameters": [ + { + "description": "\n Authorization:Basic for type credentials\n Authorization:Bearer for type refresh\n ", + "in": "header", + "name": "Authorization", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/auth_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that no HTTP Authorization:Basic header was\n provided." + }, + "401": { + "description": "Indicates in case of type credentials the username is unknown or the password does\n not match. In case of type session the session is not active anymore or\n the dwsecuretoken value is invalid. In both cases the customer is disabled or locked." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/shipments/{shipment_id}": { - "delete": { - "description": "Removes a specified shipment and all associated product, gift certificate,\n shipping and price adjustment line items from a basket.\n It is not permissible to remove the default shipment.", - "operationId": "deleteBasketsByIDShipmentsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the shipment to be deleted", - "in": "path", - "minLength": 1, - "name": "shipment_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the given shipment id is invalid. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "403": { - "description": "Indicates that the given shipment id corresponds to the\n default shipment and cannot be removed." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] - }, - "patch": { - "description": "Updates a shipment for a basket.\n \n The shipment is initialized with values provided in the body\n document and can be updated with further data API calls. Considered from\n the body are the following properties if specified\n \n the id\n the shipping address\n the shipping method\n gift boolean flag\n gift message\n custom properties\n ", - "operationId": "patchBasketsByIDShipmentsByID", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the shipment to be modified", - "in": "path", - "minLength": 1, - "name": "shipment_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/shipment" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the given shipment id was invalid. or Indicates that a shipment with the provided id already\n exists for the basket. or Indicates that a shipment with the provided shipment number\n already exists for the basket. or Indicates a missing shipping method. or Indicates an invalid shipping method. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/auth/trustedsystem": { + "post": { + "description": "Obtain the JWTs for registered customers whose credentials are stored using a third party system.\n \n \n Accepts login_id and client_id\n Returns a customer object in the response body, and the JWT generated against the client_id in the response header.\n ", + "operationId": "postCustomersAuthTrustedsystem", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/trusted_system_auth_request" + } + } + ], + "responses": { + "401": { + "description": "" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "oauth2_application": [] + } + ], + "tags": [ + "customers" + ] + } + }, + "/customers/password/actions/create_reset_token": { + "post": { + "description": "Returns a reset password token for the passed in customer's login that will be used \n with the customers/reset_password endpoint to change the customer's password.\n \n This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.", + "operationId": "postCustomersPasswordActionsCreateResetToken", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/reset_password_token_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customer with the given login id is unknown. or Indicates that login id is missing from the request." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/reset_password_token_result" + } + } + }, + "security": [ + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/shipments/{shipment_id}/shipping_address": { - "put": { - "description": "Sets a shipping address of a specific shipment of a basket.", - "operationId": "putBasketsByIDShipmentsByIDShippingAddress", - "parameters": [ - { - "description": "The id of the basket to be modified.", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the shipment to be modified.", - "in": "path", - "minLength": 1, - "name": "shipment_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "use_as_billing", - "type": "boolean" - }, - { - "in": "query", - "minLength": 1, - "name": "customer_address_id", - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/order_address" - } - } - ], - "responses": { - "400": { - "description": "Indicates that both customer_address_id and address body was\n provided. or Thrown if the shipment with the given shipment id is unknown. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token (not\n relevant when using OAuth). or Indicates that an customerAddressId was provided but either\n an anonymous or no customer was set." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the address specified by customer_address_id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/password/actions/reset": { + "post": { + "description": "Changes the customer's password to the new password value in the call using the reset \n password token that was returned from the customers/reset_password_token endpoint.\n \n This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.", + "operationId": "postCustomersPasswordActionsReset", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/reset_password_request" + } + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "Indicates that login id is missing from the request. or Indicates that reset_token is missing from the request.. or Indicates that the rest password failed. or Indicates there was a problem with the passed in values." } - }, - "/baskets/{basket_id}/shipments/{shipment_id}/shipping_method": { - "put": { - "description": "Sets a shipping method to a specific shipment of a basket.", - "operationId": "putBasketsByIDShipmentsByIDShippingMethod", - "parameters": [ - { - "description": "the id of the basket to be modified", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the shipment to be modified", - "in": "path", - "minLength": 1, - "name": "shipment_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/shipping_method" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the id of the shipping method is missing. or Indicates that a shipping method with an id was specified\n which is not a valid shipping method id. or Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/basket" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + }, + "security": [ + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/baskets/{basket_id}/shipments/{shipment_id}/shipping_methods": { - "get": { - "description": "Gets the applicable shipping methods for a certain shipment of a\n basket.", - "operationId": "getBasketsByIDShipmentsByIDShippingMethods", - "parameters": [ - { - "description": "the id of the basket", - "in": "path", - "minLength": 1, - "name": "basket_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the shipment", - "in": "path", - "minLength": 1, - "name": "shipment_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the basket does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the basket with the given basket id is unknown. or Indicates that the shipment with the given shipment id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/shipping_method_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "baskets" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/password_reset": { + "post": { + "description": "First the beforePOST hook is called. After that the validation of the \n customer information provided in the the password reset document is performed. \n Then a password reset token is generated and together with the resolved \n customer is passed to a afterPOST hook. The customer resolution is based \n on the password reset request type. Both hooks are performed in a single\n transaction.\n Currently the resolution can be done by email or login. In case of\n an email the password reset hook is only executed if one and only one\n customer has been identified for that email. In the case that more than\n one customers have been identified for the provided email the resource\n does nothing.", + "operationId": "postCustomersPasswordReset", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/password_reset" + } + } + ], + "responses": { + "204": { + "description": "" + } + }, + "security": [ + { + "client_id": [] + }, + { + "client_id": [] } - }, - "/categories/({ids})": { - "get": { - "operationId": "getCategoriesByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "ids", - "required": true, - "type": "array" - }, - { - "format": "int32", - "in": "query", - "maximum": 2, - "minimum": 0, - "name": "levels", - "type": "integer" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/category_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "categories" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}": { + "get": { + "description": "Gets a customer.", + "operationId": "getCustomersByID", + "parameters": [ + { + "description": "The customer id", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "400": { + "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT (not relevant when\n using OAuth)." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "patch": { + "description": "Updates a customer.", + "operationId": "patchCustomersByID", + "parameters": [ + { + "description": "the customer id", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer" + } + } + ], + "responses": { + "400": { + "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT, not relevant when\n using OAuth. or Indicates that the provided email is not valid." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/categories/{id}": { - "get": { - "description": "When you use the URL template below, the server returns a category identified by its id; by default, the server\n also returns the first level of subcategories, but you can specify another level by setting the levels\n parameter. The server only returns online categories.", - "operationId": "getCategoriesByID", - "parameters": [ - { - "description": "The id of the requested category.", - "in": "path", - "maxLength": 256, - "name": "id", - "required": true, - "type": "string" - }, - { - "format": "int32", - "in": "query", - "maximum": 2, - "minimum": 0, - "name": "levels", - "type": "integer" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "404": { - "description": "Thrown if the server could not find an online category with the specified id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/category" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "categories" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/addresses": { + "get": { + "description": "Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10\n customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining\n addresses are sorted alphabetically by ID.\n \n When the customer cannot be found CustomerNotFoundException\n is thrown in a case of an agent but an empty result list is returned in a case of JWT.", + "operationId": "getCustomersByIDAddresses", + "parameters": [ + { + "description": "The customer uuid", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "maximum": 999, + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + } + ], + "responses": { + "400": { + "description": "If customerId URL parameter does not match the verified customer represented by\n the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_address_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Creates a new address with the given name for the given customer.", + "operationId": "postCustomersByIDAddresses", + "parameters": [ + { + "description": "the id of the customer to create the address for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_address" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Indicates that address name is not provided or it's blank. or Indicates that the provided address name is already used for the customer." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_address" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/content/({ids})": { - "get": { - "operationId": "getContentByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "ids", - "required": true, - "type": "array" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/content_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "content" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/addresses/{address_name}": { + "delete": { + "description": "Deletes a customer's address by address name.", + "operationId": "deleteCustomersByIDAddressesByID", + "parameters": [ + { + "description": "the id of the customer to delete the address for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "the name of the address to delete", + "in": "path", + "maxLength": 256, + "minLength": 1, + "name": "address_name", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." } - }, - "/content/{id}": { - "get": { - "description": "To access a content asset, you construct a URL using the template shown below. This template requires you to\n specify a content asset id. In response, the server returns a corresponding content asset document. Only content\n assets, which are marked as online are returned. An assignment to a folder is not necessary.", - "operationId": "getContentByID", - "parameters": [ - { - "description": "The id of the requested content asset.", - "in": "path", - "maxLength": 256, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/content" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "content" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "get": { + "description": "Retrieves a customer's address by address name.", + "operationId": "getCustomersByIDAddressesByID", + "parameters": [ + { + "description": "the id of the customer to retrieve the address for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "the name of the address to retrieve", + "in": "path", + "maxLength": 256, + "minLength": 1, + "name": "address_name", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_address" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "patch": { + "description": "Updates a customer's address by address name.", + "operationId": "patchCustomersByIDAddressesByID", + "parameters": [ + { + "description": "the id of the customer to update the address for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "the name of the address to update", + "in": "path", + "maxLength": 256, + "minLength": 1, + "name": "address_name", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_address" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Indicates that the provided new address name is already used for the\n customer." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_address" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/content_search": { - "get": { - "description": "Provides keyword and refinement search functionality for content assets. The search result contains only content\n that is online and assigned to a folder.", - "operationId": "getContentSearch", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The\n following system refinement attribute ids are supported:\n \n fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are\n separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for\n ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select\n your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting\n Attributes.", - "in": "query", - "items": { - "type": "string" - }, - "name": "sort", - "type": "array" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/content_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "content_search" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/auth": { + "post": { + "description": "\n Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer\n response header entry.\n \n \n A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of\n permission calls the resource for a registered customer.\n \n \n The token is returned in the response header as Authorization: Bearer --token--.\n \n \n The client has to include the token in the request header as Authorization: Bearer --token--\n \n in any follow up request, the agent will do on behalf of the customer.\n \n About the order on behalf token\n \n \n The token contains 3 sections:\n \n \n the header section (specifies token type and algorithm used)\n the payload section (contains customer information, client id, issue and expiration time)\n finally the signature section records the token signature.\n \n \n A token nearing its expiration time should be exchanged for a new one by calling this resource once more.\n ", + "operationId": "postCustomersByIDAuth", + "parameters": [ + { + "description": "specifies the customer to act on behalf of", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] } - }, - "/custom_objects/{object_type}/{key}": { - "get": { - "description": "Reads a custom object with a given object type ID and a value for the\n key attribute of the object which represents its unique identifier.", - "operationId": "getCustomObjectsByIDByID", - "parameters": [ - { - "description": "the ID of the object type", - "in": "path", - "minLength": 1, - "name": "object_type", - "required": true, - "type": "string" - }, - { - "description": "the key attribute value of the custom object", - "in": "path", - "minLength": 1, - "name": "key", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "If the object key must be an\n integer, but the path parameter has an invalid format" - }, - "404": { - "description": "For an unknown object type ID or If the custom object cannot be found" - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/custom_object" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "custom_objects" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/baskets": { + "get": { + "description": "Gets the baskets of a customer.", + "operationId": "getCustomersByIDBaskets", + "parameters": [ + { + "description": "the id of the customer to retrieve the baskets for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "if customerId URL parameter does not match the verified\n customer represented by the JWT, not relevant when\n using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/baskets_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers": { - "post": { - "description": "Registers a customer.\n The mandatory data are the credentials and profile last name and email.\n When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown.\n When using JWT the password is required.", - "operationId": "postCustomers", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_registration" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the resource is called with JWT token\n representing a registered customer. or Indicates that request document does not contain email. or Indicates that request document does not contain last_name. or Indicates that request document does not contain login. or Indicates that the given login is already used. or Indicates that login doesn't match acceptance criteria. or Indicates that password doesn't match acceptance criteria. or Indicates that password was not provided in JWT scenario." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/orders": { + "get": { + "description": "Returns a pageable list of all customer's orders. The default page size is 10.", + "operationId": "getCustomersByIDOrders", + "parameters": [ + { + "description": "the customer uuid", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "in": "query", + "name": "cross-sites", + "type": "boolean" + }, + { + "in": "query", + "name": "from", + "type": "string" + }, + { + "in": "query", + "name": "until", + "type": "string" + }, + { + "in": "query", + "name": "status", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Thrown if specified status is unknown." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_order_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/auth": { - "delete": { - "description": "Invalidates the JWT provided in the header.", - "operationId": "deleteCustomersAuth", - "parameters": [ - { - "description": "the JWT token", - "in": "header", - "name": "Authorization", - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - } - }, - "security": [ - { - "customers_auth": [] - } - ], - "tags": [ - "customers" - ] - }, - "post": { - "description": "Obtains a new JWT (JSON Web Token) for a guest or registered\n customer. Tokens are returned as a HTTP Authorization:Bearer response\n header entry. These kinds of request are supported, as specified by the\n type:\n \n Type guest - creates a new guest (non-authenticated) customer\n and returns a token for the customer.\n Type credentials - authenticates credentials passed in the\n HTTP Authorization:Basic request header, returning a token for a\n successfully authenticated customer otherwise results in an\n AuthenticationFailedException.\n Type session - authenticates the customer (anonymous or registered)\n on base of dwsid and dwsecuretoken cookies. It returns a token for a\n successfully authenticated customer, otherwise results in an\n AuthenticationFailedException.\n Type refresh - examines the token passed in the HTTP\n Authorization:Bearer request header and when valid returns a new token\n with an updated expiry time.\n \n\n For a request of type credentials:\n \n Updates profile attributes for the customer (for example,\n \"last-visited\").\n Handles the maximum number of failed login attempts.\n \n For a request of type session:\n \n Does not touch profile attributes for the registered customer (for example,\n \"last-visited\"), since this is not a real login.\n Returns different tokens for multiple requests with the same session id. Means, there should be\n only one call per session.\n \n \n About JWT The token contains 3 sections:\n \n the header section (specifies token type and algorithm used)\n the payload section (contains customer information, client id,\n issue and expiration time)\n finally the signature section records the token signature.\n \n A token is created and returned to the client whenever a registered\n customer logs in (type \"credentials\") or a guest customer requests it (type\n \"guest\"). The token is returned in the response header as \n Authorization: Bearer --token--\n \n The client has to include the token in the request header as \n Authorization: Bearer --token-- \n in any follow up request. The server declines any follow up requests\n without a token or which cannot be verified based on the token signature\n or expiration time. A token nearing its expiration time should be\n exchanged for a new one (type \"refresh\").\n \n See \"API Usage > JWT\" for more details on using JWT as an authentication\n mechanism.", - "operationId": "postCustomersAuth", - "parameters": [ - { - "description": "\n Authorization:Basic for type credentials\n Authorization:Bearer for type refresh\n ", - "in": "header", - "name": "Authorization", - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/auth_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that no HTTP Authorization:Basic header was\n provided." - }, - "401": { - "description": "Indicates in case of type credentials the username is unknown or the password does\n not match. In case of type session the session is not active anymore or\n the dwsecuretoken value is invalid. In both cases the customer is disabled or locked." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer" - } - } - }, - "security": [ - { - "client_id": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/password": { + "put": { + "description": "Updates the customer's password.", + "operationId": "putCustomersByIDPassword", + "parameters": [ + { + "description": "the customer id", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/password_change_request" + } + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT, not relevant when\n using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown." } - }, - "/customers/password_reset": { - "post": { - "description": "First the beforePOST hook is called. After that the validation of the \n customer information provided in the the password reset document is performed. \n Then a password reset token is generated and together with the resolved \n customer is passed to a afterPOST hook. The customer resolution is based \n on the password reset request type. Both hooks are performed in a single\n transaction.\n Currently the resolution can be done by email or login. In case of\n an email the password reset hook is only executed if one and only one\n customer has been identified for that email. In the case that more than\n one customers have been identified for the provided email the resource\n does nothing.", - "operationId": "postCustomersPasswordReset", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/password_reset" - } - } - ], - "responses": { - "204": { - "description": "" - } - }, - "security": [ - { - "client_id": [] - } - ], - "tags": [ - "customers" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}": { - "get": { - "description": "Gets a customer.", - "operationId": "getCustomersByID", - "parameters": [ - { - "description": "The customer id", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "400": { - "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT token (not relevant when\n using OAuth)." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "patch": { - "description": "Updates a customer.", - "operationId": "patchCustomersByID", - "parameters": [ - { - "description": "the customer id", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer" - } - } - ], - "responses": { - "400": { - "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT token, not relevant when\n using OAuth. or Indicates that the provided email is not valid." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/password_reset": { + "post": { + "description": "Starts a password reset process. A password reset token is generated and passed together with the customer\n resolved by the id provided as path parameter to a afterPOST hook. The hook\n dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email.", + "operationId": "postCustomersByIDPasswordReset", + "parameters": [ + { + "description": "the id of the customer", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "404": { + "description": "Indicates that the customer specified was not found." } - }, - "/customers/{customer_id}/addresses": { - "get": { - "description": "Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10\n customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining\n addresses are sorted alphabetically by ID.\n \n When the customer cannot be found CustomerNotFoundException\n is thrown in a case of an agent but an empty result list is returned in a case of JWT.", - "operationId": "getCustomersByIDAddresses", - "parameters": [ - { - "description": "The customer uuid", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "format": "int32", - "in": "query", - "maximum": 999, - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - } - ], - "responses": { - "400": { - "description": "If customerId URL parameter does not match the verified customer represented by\n the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_address_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "post": { - "description": "Creates a new address with the given name for the given customer.", - "operationId": "postCustomersByIDAddresses", - "parameters": [ - { - "description": "the id of the customer to create the address for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_address" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth. or Indicates that address name is not provided or it's blank. or Indicates that the provided address name is already used for the customer." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_address" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/addresses/{address_name}": { - "delete": { - "description": "Deletes a customer's address by address name.", - "operationId": "deleteCustomersByIDAddressesByID", - "parameters": [ - { - "description": "the id of the customer to delete the address for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "the name of the address to delete", - "in": "path", - "maxLength": 256, - "minLength": 1, - "name": "address_name", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "get": { - "description": "Retrieves a customer's address by address name.", - "operationId": "getCustomersByIDAddressesByID", - "parameters": [ - { - "description": "the id of the customer to retrieve the address for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "the name of the address to retrieve", - "in": "path", - "maxLength": 256, - "minLength": 1, - "name": "address_name", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_address" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "patch": { - "description": "Updates a customer's address by address name.", - "operationId": "patchCustomersByIDAddressesByID", - "parameters": [ - { - "description": "the id of the customer to update the address for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "the name of the address to update", - "in": "path", - "maxLength": 256, - "minLength": 1, - "name": "address_name", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_address" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth. or Indicates that the provided new address name is already used for the\n customer." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown. or Indicates that the address with the given name in unknown for the\n customer with the given customer id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_address" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/payment_instruments": { + "get": { + "description": "Gets customer payment instruments for an customer. Can be limited to a specific payment\n method by providing query parameter payment_method_id.\n \n When the customer cannot be found CustomerNotFoundException\n is thrown in a case of an agent but an empty result list is returned in a case of JWT.", + "operationId": "getCustomersByIDPaymentInstruments", + "parameters": [ + { + "description": "the id of the customer to retrieve the payment instruments for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "payment_method_id", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match\n the verified customer represented by the JWT, not\n relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_payment_instrument_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Adds a payment instrument to a customer information.", + "operationId": "postCustomersByIDPaymentInstruments", + "parameters": [ + { + "description": "the id of the customer", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_payment_instrument_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match\n the verified customer represented by the JWT, not\n relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown. or Indicates that the customer with the given customer id is\n unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_payment_instrument" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/auth": { - "post": { - "description": "\n Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer\n response header entry.\n \n \n A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of\n permission calls the resource for a registered customer.\n \n \n The token is returned in the response header as Authorization: Bearer --token--.\n \n \n The client has to include the token in the request header as Authorization: Bearer --token--\n \n in any follow up request, the agent will do on behalf of the customer.\n \n About the order on behalf token\n \n \n The token contains 3 sections:\n \n \n the header section (specifies token type and algorithm used)\n the payload section (contains customer information, client id, issue and expiration time)\n finally the signature section records the token signature.\n \n \n A token nearing its expiration time should be exchanged for a new one by calling this resource once more.\n ", - "operationId": "postCustomersByIDAuth", - "parameters": [ - { - "description": "specifies the customer to act on behalf of", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/payment_instruments/{payment_instrument_id}": { + "delete": { + "description": "Deletes a customer's payment instrument.", + "operationId": "deleteCustomersByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the id of the customer to delete the payment instrument for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be deleted", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "Indicates that the customerId URL parameter does not match the\n verified customer represented by the JWT, not relevant\n when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site." } - }, - "/customers/{customer_id}/baskets": { - "get": { - "description": "Gets the baskets of a customer.", - "operationId": "getCustomersByIDBaskets", - "parameters": [ - { - "description": "the id of the customer to retrieve the baskets for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "if customerId URL parameter does not match the verified\n customer represented by the JWT token, not relevant when\n using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/baskets_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "get": { + "description": "Retrieves a customer's payment instrument by its id.", + "operationId": "getCustomersByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the id of the customer to retrieve the payment instrument for", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be retrievedCustomer", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site. or Indicates that the payment instrument with the given id is\n unknown for the customer with the given customer id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_payment_instrument" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/orders": { - "get": { - "description": "Returns a pageable list of all customer's orders. The default page size is 10.", - "operationId": "getCustomersByIDOrders", - "parameters": [ - { - "description": "the customer uuid", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "in": "query", - "name": "cross-sites", - "type": "boolean" - }, - { - "in": "query", - "name": "from", - "type": "string" - }, - { - "in": "query", - "name": "until", - "type": "string" - }, - { - "in": "query", - "name": "status", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth. or Thrown if specified status is unknown." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_order_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists": { + "get": { + "description": "Returns all customer product lists.", + "operationId": "getCustomersByIDProductLists", + "parameters": [ + { + "description": "The customer id.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Creates a customer product list.", + "operationId": "postCustomersByIDProductLists", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list" + } + }, + { + "description": "The customer id.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the id of the given address link does not reference an address\n of the current customer. or Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Indicates that there was no or an invalid type given for the to be\n created product list." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/password": { - "put": { - "description": "Updates the customer's password.", - "operationId": "putCustomersByIDPassword", - "parameters": [ - { - "description": "the customer id", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/password_change_request" - } - } - ], - "responses": { - "204": { - "description": "" - }, - "400": { - "description": "If customerId URL parameter does not match the verified\n customer represented by the JWT token, not relevant when\n using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown." - } - }, - "security": [ - { - "customers_auth": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists/{list_id}": { + "delete": { + "description": "Deletes a customer product list.", + "operationId": "deleteCustomersByIDProductListsByID", + "parameters": [ + { + "description": "The customer id.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The product list id.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." } - }, - "/customers/{customer_id}/password_reset": { - "post": { - "description": "Starts a password reset process. A password reset token is generated and passed together with the customer\n resolved by the id provided as path parameter to a afterPOST hook. The hook\n dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email.", - "operationId": "postCustomersByIDPasswordReset", - "parameters": [ - { - "description": "the id of the customer", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "404": { - "description": "Indicates that the customer specified was not found." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "get": { + "description": "Returns a customer product list of the given customer.", + "operationId": "getCustomersByIDProductListsByID", + "parameters": [ + { + "description": "The customer id.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The product list id.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "patch": { + "description": "Changes a product list. Changeable properties are the name, description and if the list is public.", + "operationId": "patchCustomersByIDProductListsByID", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list" + } + }, + { + "description": "The customer id.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The product list id.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/payment_instruments": { - "get": { - "description": "Gets customer payment instruments for an customer. Can be limited to a specific payment\n method by providing query parameter payment_method_id.\n \n When the customer cannot be found CustomerNotFoundException\n is thrown in a case of an agent but an empty result list is returned in a case of JWT.", - "operationId": "getCustomersByIDPaymentInstruments", - "parameters": [ - { - "description": "the id of the customer to retrieve the payment instruments for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "payment_method_id", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match\n the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_payment_instrument_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "post": { - "description": "Adds a payment instrument to a customer information.", - "operationId": "postCustomersByIDPaymentInstruments", - "parameters": [ - { - "description": "the id of the customer", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_payment_instrument_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match\n the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown. or Indicates that the customer with the given customer id is\n unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_payment_instrument" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists/{list_id}/items": { + "get": { + "description": "Returns a pageable list of all items of a customer's product list. The default page size is 10.", + "operationId": "getCustomersByIDProductListsByIDItems", + "parameters": [ + { + "description": "The id of the customer to retrieve the product list items for.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + }, + { + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Adds an item to the customer's product list. Considered values from the request body are:\n \n type: a valid type, mandatory. This is the type of the item to be added to the customer's product\n list.\n priority: This is the priority of the item to be added to the customer's product list.\n public: This is the flag whether the item to be added to the customer's product list is public.\n product_id: a valid product id, used for product item type only. This is the id (sku)\n of the product related to the item to be added to the customer's product list. It is mandatory for\n product item type and it must be a valid product id, otherwise\n ProductListProductIdMissingException or ProductListProductNotFoundException\n will be thrown.\n quantity: used for product item type only. This is the quantity of the item to be\n added to the customer's product list.\n custom properties in the form c_: the custom property must correspond to a custom\n attribute () defined for ProductListItem. The value of this property must be valid for the\n type of custom attribute defined for ProductListItem.\n ", + "operationId": "postCustomersByIDProductListsByIDItems", + "parameters": [ + { + "description": "The id of the customer - owner of the product list.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list_item" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth. or Indicates that type property in request body is not provided. or Indicates that product property in request body is not provided. or Indicates that the product with the provided id is unknown. or Indicates that the customer product list already has gift\n certificate item." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/payment_instruments/{payment_instrument_id}": { - "delete": { - "description": "Deletes a customer's payment instrument.", - "operationId": "deleteCustomersByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the id of the customer to delete the payment instrument for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be deleted", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "400": { - "description": "Indicates that the customerId URL parameter does not match the\n verified customer represented by the JWT token, not relevant\n when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "get": { - "description": "Retrieves a customer's payment instrument by its id.", - "operationId": "getCustomersByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the id of the customer to retrieve the payment instrument for", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be retrievedCustomer", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site. or Indicates that the payment instrument with the given id is\n unknown for the customer with the given customer id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_payment_instrument" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists/{list_id}/items/{item_id}": { + "delete": { + "description": "Removes an item from a customer product list.", + "operationId": "deleteCustomersByIDProductListsByIDItemsByID", + "parameters": [ + { + "description": "The id of the owner of the product list", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to delete.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + } + ], + "responses": { + "204": { + "description": "" + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." } - }, - "/customers/{customer_id}/product_lists": { - "get": { - "description": "Returns all customer product lists.", - "operationId": "getCustomersByIDProductLists", - "parameters": [ - { - "description": "The customer id.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "post": { - "description": "Creates a customer product list.", - "operationId": "postCustomersByIDProductLists", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_product_list" - } - }, - { - "description": "The customer id.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the id of the given address link does not reference an address\n of the current customer. or Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth. or Indicates that there was no or an invalid type given for the to be\n created product list." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "get": { + "description": "Returns an item of a customer product list.", + "operationId": "getCustomersByIDProductListsByIDItemsByID", + "parameters": [ + { + "description": "The id of the customer to retrieve the product list items for.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to retrieve.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "patch": { + "description": "Updates an item of a customer's product list.\n Considered values from the request body are:\n \n priority: This is the priority of the customer's product list item.\n public: This is the flag whether the customer's product list item is public.\n quantity: used for product item type only. This is the quantity of\n the customer's product list item.\n custom properties in the form c_: the custom property\n must correspond to a custom attribute () defined for ProductListItem.\n The value of this property must be valid for the type of custom attribute defined for ProductListItem.\n ", + "operationId": "patchCustomersByIDProductListsByIDItemsByID", + "parameters": [ + { + "description": "The id of the owner of the product list.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to update.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list_item" + } + } + ], + "responses": { + "404": { + "description": "Indicates that the customer with the given customer id is\n unknown for the site. or Indicates that the product list with the given list id is\n unknown for the site and the customer. or Indicates that the product list item with the given item id\n is unknown for the site, the customer and the product list." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/product_lists/{list_id}": { - "delete": { - "description": "Deletes a customer product list.", - "operationId": "deleteCustomersByIDProductListsByID", - "parameters": [ - { - "description": "The customer id.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The product list id.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "get": { - "description": "Returns a customer product list of the given customer.", - "operationId": "getCustomersByIDProductListsByID", - "parameters": [ - { - "description": "The customer id.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The product list id.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "patch": { - "description": "Changes a product list. Changeable properties are the name, description and if the list is public.", - "operationId": "patchCustomersByIDProductListsByID", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_product_list" - } - }, - { - "description": "The customer id.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The product list id.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases": { + "get": { + "description": "Returns a list of all purchases of an item from a customer's product list.", + "operationId": "getCustomersByIDProductListsByIDItemsByIDPurchases", + "parameters": [ + { + "description": "The id of the customer to retrieve the product list item purchases for.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to retrieve from.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "post": { + "description": "Adds a purchase to an item in the customer's product list. Considered values from the request body are:\n \n purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product\n list item.\n quantity: amount purchased, mandatory. This is the quantity of the items purchased from\n the product list.\n custom properties in the form c_: the custom property must correspond to a custom\n attribute () defined for ProductListItemPurchase. The value of this property must be valid for the\n type of custom attribute defined for ProductListItemPurchase.\n ", + "operationId": "postCustomersByIDProductListsByIDItemsByIDPurchases", + "parameters": [ + { + "description": "The id of the customer - owner of the product list.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item where to add the purchase.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/product_lists/{list_id}/items": { - "get": { - "description": "Returns a pageable list of all items of a customer's product list. The default page size is 10.", - "operationId": "getCustomersByIDProductListsByIDItems", - "parameters": [ - { - "description": "The id of the customer to retrieve the product list items for.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - }, - { - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list_item_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "post": { - "description": "Adds an item to the customer's product list. Considered values from the request body are:\n \n type: a valid type, mandatory. This is the type of the item to be added to the customer's product\n list.\n priority: This is the priority of the item to be added to the customer's product list.\n public: This is the flag whether the item to be added to the customer's product list is public.\n product_id: a valid product id, used for product item type only. This is the id (sku)\n of the product related to the item to be added to the customer's product list. It is mandatory for\n product item type and it must be a valid product id, otherwise\n ProductListProductIdMissingException or ProductListProductNotFoundException\n will be thrown.\n quantity: used for product item type only. This is the quantity of the item to be\n added to the customer's product list.\n custom properties in the form c_: the custom property must correspond to a custom\n attribute () defined for ProductListItem. The value of this property must be valid for the\n type of custom attribute defined for ProductListItem.\n ", - "operationId": "postCustomersByIDProductListsByIDItems", - "parameters": [ - { - "description": "The id of the customer - owner of the product list.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_product_list_item" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT token, not relevant when using OAuth. or Indicates that type property in request body is not provided. or Indicates that product property in request body is not provided. or Indicates that the product with the provided id is unknown. or Indicates that the customer product list already has gift\n certificate item." - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list_item" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases/{purchase_id}": { + "get": { + "description": "Returns a purchase of an item from a customer's product list.", + "operationId": "getCustomersByIDProductListsByIDItemsByIDPurchasesByID", + "parameters": [ + { + "description": "The id of the customer to retrieve the product list items for.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to retrieve.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item purchase to retrieve.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "purchase_id", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list. or Indicates that the product list item purchase with the given purchase\n \t\t\t id is unknown for the site, customer, product list, and item." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "customers" + ] + }, + "patch": { + "description": "Updates a purchase of an item from a customer's product list.\n Considered values from the request body are:\n \n custom properties in the form c_: the custom property\n must correspond to a custom attribute () defined for ProductListItemPurchase.\n The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.\n ", + "operationId": "patchCustomersByIDProductListsByIDItemsByIDPurchasesByID", + "parameters": [ + { + "description": "The id of the customer to retrieve the product list item purchases for.", + "in": "path", + "minLength": 1, + "name": "customer_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item to retrieve.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the product list item purchase to retrieve.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "purchase_id", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the customerId URL parameter does not match the verified customer\n represented by the JWT, not relevant when using OAuth." + }, + "404": { + "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list. or Indicates that the product list item purchase with the given purchase\n \t\t\t id is unknown for the site, customer, product list, and item." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/customer_product_list_item_purchase" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/customers/{customer_id}/product_lists/{list_id}/items/{item_id}": { - "delete": { - "description": "Removes an item from a customer product list.", - "operationId": "deleteCustomersByIDProductListsByIDItemsByID", - "parameters": [ - { - "description": "The id of the owner of the product list", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list item to delete.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - } - ], - "responses": { - "204": { - "description": "" - }, - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "get": { - "description": "Returns an item of a customer product list.", - "operationId": "getCustomersByIDProductListsByIDItemsByID", - "parameters": [ - { - "description": "The id of the customer to retrieve the product list items for.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list item to retrieve.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "404": { - "description": "Indicates that the customer with the given customer id is unknown for the site. or Indicates that the product list with the given list id is unknown for the\n site and the customer. or Indicates that the product list item with the given item id is unknown\n for the site, the customer and the product list." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list_item" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] - }, - "patch": { - "description": "Updates an item of a customer's product list.\n Considered values from the request body are:\n \n priority: This is the priority of the customer's product list item.\n public: This is the flag whether the customer's product list item is public.\n quantity: used for product item type only. This is the quantity of\n the customer's product list item.\n custom properties in the form c_: the custom property\n must correspond to a custom attribute () defined for ProductListItem.\n The value of this property must be valid for the type of custom attribute defined for ProductListItem.\n ", - "operationId": "patchCustomersByIDProductListsByIDItemsByID", - "parameters": [ - { - "description": "The id of the owner of the product list.", - "in": "path", - "minLength": 1, - "name": "customer_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the product list item to update.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/customer_product_list_item" - } - } - ], - "responses": { - "404": { - "description": "Indicates that the customer with the given customer id is\n unknown for the site. or Indicates that the product list with the given list id is\n unknown for the site and the customer. or Indicates that the product list item with the given item id\n is unknown for the site, the customer and the product list." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/customer_product_list_item" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "customers" - ] + ], + "tags": [ + "customers" + ] + } + }, + "/folders/({ids})": { + "get": { + "operationId": "getFoldersByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "ids", + "required": true, + "type": "array" + }, + { + "format": "int32", + "in": "query", + "maximum": 2, + "minimum": 0, + "name": "levels", + "type": "integer" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/content_folder_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/folders/({ids})": { - "get": { - "operationId": "getFoldersByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "ids", - "required": true, - "type": "array" - }, - { - "format": "int32", - "in": "query", - "maximum": 2, - "minimum": 0, - "name": "levels", - "type": "integer" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/content_folder_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "folders" - ] + ], + "tags": [ + "folders" + ] + } + }, + "/folders/{id}": { + "get": { + "description": "To access a content folder, you construct a URL using the template shown below. This template requires you to\n specify a content folder id and a subfolder level. In response, the server returns a corresponding content\n folder document. Only content folder, which are marked as online are returned.", + "operationId": "getFoldersByID", + "parameters": [ + { + "description": "The id of the requested content folder.", + "in": "path", + "maxLength": 256, + "name": "id", + "required": true, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "maximum": 2, + "minimum": 0, + "name": "levels", + "type": "integer" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/content_folder" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/folders/{id}": { - "get": { - "description": "To access a content folder, you construct a URL using the template shown below. This template requires you to\n specify a content folder id and a subfolder level. In response, the server returns a corresponding content\n folder document. Only content folder, which are marked as online are returned.", - "operationId": "getFoldersByID", - "parameters": [ - { - "description": "The id of the requested content folder.", - "in": "path", - "maxLength": 256, - "name": "id", - "required": true, - "type": "string" - }, - { - "format": "int32", - "in": "query", - "maximum": 2, - "minimum": 0, - "name": "levels", - "type": "integer" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/content_folder" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "folders" - ] + ], + "tags": [ + "folders" + ] + } + }, + "/gift_certificate": { + "post": { + "description": "Action to retrieve an existing gift certificate.", + "operationId": "postGiftCertificate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/gift_certificate_request" + } + } + ], + "responses": { + "404": { + "description": "Thrown if the given gift certificate code is not valid." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/gift_certificate" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/gift_certificate": { - "post": { - "description": "Action to retrieve an existing gift certificate.", - "operationId": "postGiftCertificate", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/gift_certificate_request" - } - } - ], - "responses": { - "404": { - "description": "Thrown if the given gift certificate code is not valid." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/gift_certificate" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "gift_certificate" - ] + ], + "tags": [ + "gift_certificate" + ] + } + }, + "/order_search": { + "post": { + "description": "Searches for orders.\n \n The query attribute specifies a complex query that can be used to narrow down the search.\n \n Note that search fields are mandatory now and no default ones are supported.\n \n As the old order search version, the new one always uses Search Service too and the for that reason Order\n Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur.\n \n The supported search fields are:\n \n affiliate_partner_i_d\n affiliate_partner_name\n business_type\n channel_type\n confirmation_status (String)\n created_by\n creation_date\n currency_code\n customer_email\n customer_name\n customer_no\n export_after\n export_status (String)\n external_order_no\n external_order_status\n global_party_id\n last_modified\n order_no\n original_order_no\n payment_status (String)\n replaced_order_no\n replacement_order_no\n shipping_status (String)\n status (String)\n total_gross_price\n total_net_price\n order.has_holds\n coupon_line_items.coupon_code\n coupon_line_items.coupon_id\n holds.type\n invoices.status\n order_items.status\n payment_instruments.credit_card_type\n payment_instruments.payment_method_id\n product_items.product_id\n return_cases.return_case_number\n shipments.shipping_method_id\n shipping_orders.shipping_order_number\n \n The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects\n presenting field name and sort direction (\"asc\" or \"desc\").\n \n Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them.", + "operationId": "postOrderSearch", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/order_search_request" + } + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order_search_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/order_search": { - "post": { - "description": "Searches for orders.\n \n The query attribute specifies a complex query that can be used to narrow down the search.\n \n Note that search fields are mandatory now and no default ones are supported.\n \n As the old order search version, the new one always uses Search Service too and the for that reason Order\n Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur.\n \n The supported search fields are:\n \n affiliate_partner_i_d\n affiliate_partner_name\n business_type\n channel_type\n confirmation_status (String)\n created_by\n creation_date\n currency_code\n customer_email\n customer_name\n customer_no\n export_after\n export_status (String)\n external_order_no\n external_order_status\n last_modified\n order_no\n original_order_no\n payment_status (String)\n replaced_order_no\n replacement_order_no\n shipping_status (String)\n status (String)\n total_gross_price\n total_net_price\n order.has_holds\n coupon_line_items.coupon_code\n coupon_line_items.coupon_id\n holds.type\n invoices.status\n order_items.status\n payment_instruments.credit_card_type\n payment_instruments.payment_method_id\n product_items.product_id\n return_cases.return_case_number\n shipments.shipping_method_id\n shipping_orders.shipping_order_number\n \n The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects\n presenting field name and sort direction (\"asc\" or \"desc\").\n \n Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them.", - "operationId": "postOrderSearch", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/order_search_request" - } - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order_search_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "order_search" - ] + ], + "tags": [ + "order_search" + ] + } + }, + "/orders": { + "post": { + "description": "Submits an order based on a prepared basket. Note: If the basket has been submitted\n using Order Center (considered by it's client id) the channel type will\n be set to \"Call Center\". In case another channel type was set by a script\n before submitting the basket, the channel type will be reset to\n \"Call Center\" and a warning will be logged.\n The only considered value from the request body is basket_id.", + "operationId": "postOrders", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket" + } + } + ], + "responses": { + "400": { + "description": "Thrown if a failure during the creation of a gift certificate\n for a gift certificate item. or Indicates that the basket id in the request body is null or\n empty. or Indicates an invalid product item. or Indicates that an option with the specified option id is\n unknown. or Indicates that an option with the specified option value id\n is unknown. or Thrown if a product item is not available. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth. or Indicates that the basket contains flashes." + }, + "404": { + "description": "Indicates that the basket with the given basket id is\n unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders": { - "post": { - "description": "Submits an order based on a prepared basket. Note: If the basket has been submitted\n using Order Center (considered by it's client id) the channel type will\n be set to \"Call Center\". In case another channel type was set by a script\n before submitting the basket, the channel type will be reset to\n \"Call Center\" and a warning will be logged.\n The only considered value from the request body is basket_id.", - "operationId": "postOrders", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/basket" - } - } - ], - "responses": { - "400": { - "description": "Thrown if a failure during the creation of a gift certificate\n for a gift certificate item. or Indicates that the basket id in the request body is null or\n empty. or Indicates an invalid product item. or Indicates that an option with the specified option id is\n unknown. or Indicates that an option with the specified option value id\n is unknown. or Thrown if a product item is not available. or Indicates that the customer assigned to the basket does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth. or Indicates that the basket contains flashes." - }, - "404": { - "description": "Indicates that the basket with the given basket id is\n unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}": { + "get": { + "description": "Gets information for an order.", + "operationId": "getOrdersByID", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "orders" + ] + }, + "patch": { + "description": "Update an order.\n\n Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int\n status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order\n in a successful call. Without agent context the channel type will be storefront otherwise callcenter.", + "operationId": "patchOrdersByID", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/order" + } + } + ], + "responses": { + "404": { + "description": "Indicates that the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "orders" + ] + }, + "put": { + "description": "Submits an order with a given order number, based on a prepared basket. The\n only considered value from the request body is basket_id. This resource is available for OAuth\n authentication and requires no user i.e. it supports server-server communication with client grant authentication\n and no user is specified.", + "operationId": "putOrdersByID", + "parameters": [ + { + "description": "The order number to assign to the new order.", + "in": "path", + "maxLength": 50, + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/basket" + } + } + ], + "responses": { + "400": { + "description": "Thrown if a failure during the creation of a gift certificate for a gift\n certificate item. or Indicates that the basket id in the request body is null or empty. or Indicates an invalid product item. or Indicates that an option with the specified option id is unknown. or Indicates that an option with the specified option value id is\n unknown. or Thrown if a product item is not available. or Indicates that the customer assigned to the basket does not match the verified\n customer represented by the JWT, not relevant when using OAuth. or Indicates that the basket contains flashes." + }, + "404": { + "description": "Indicates that the basket with the given basket id is unknown." + }, + "409": { + "description": "409 CONFLICT Indicates that the requested order number is already allocated\n to an existing order." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "oauth2_application": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}": { - "get": { - "description": "Gets information for an order.", - "operationId": "getOrdersByID", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] - }, - "patch": { - "description": "Update an order.\n\n Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int\n status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order\n in a successful call. Without agent context the channel type will be storefront otherwise callcenter.", - "operationId": "patchOrdersByID", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/order" - } - } - ], - "responses": { - "404": { - "description": "Indicates that the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}/notes": { + "get": { + "description": "Retrieves notes for an order.", + "operationId": "getOrdersByIDNotes", + "parameters": [ + { + "description": "The id of the order from which you want to retrieve notes.", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Thrown if the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/notes_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "orders" + ] + }, + "post": { + "description": "Adds a note to an existing order.", + "operationId": "postOrdersByIDNotes", + "parameters": [ + { + "description": "The id of the order to be modified.", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/note" + } + } + ], + "responses": { + "404": { + "description": "Thrown if the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}/notes": { - "get": { - "description": "Retrieves notes for an order.", - "operationId": "getOrdersByIDNotes", - "parameters": [ - { - "description": "The id of the order from which you want to retrieve notes.", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Thrown if the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/notes_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] - }, - "post": { - "description": "Adds a note to an existing order.", - "operationId": "postOrdersByIDNotes", - "parameters": [ - { - "description": "The id of the order to be modified.", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/note" - } - } - ], - "responses": { - "404": { - "description": "Thrown if the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}/notes/{note_id}": { + "delete": { + "description": "Removes an order note.", + "operationId": "deleteOrdersByIDNotesByID", + "parameters": [ + { + "description": "the id of the order to be modified", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "description": "the id of the note to be removed", + "in": "path", + "minLength": 1, + "name": "note_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the order with the given order number is unknown. or Indicates that the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}/notes/{note_id}": { - "delete": { - "description": "Removes an order note.", - "operationId": "deleteOrdersByIDNotesByID", - "parameters": [ - { - "description": "the id of the order to be modified", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "description": "the id of the note to be removed", - "in": "path", - "minLength": 1, - "name": "note_id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the order with the given order number is unknown. or Indicates that the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}/payment_instruments": { + "post": { + "description": "Adds a payment instrument to an order. It is possible either to supply the full payment information or only a\n customer payment instrument id and amount. In case the customer payment instrument id was set all the other\n properties (except amount) are ignored and the payment data is resolved from the stored customer payment\n information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard\n hook.\n\n Details:\n \n The payment instrument is added with the provided details or the details from the customer payment\n instrument. The payment method must be applicable for the order see GET\n /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a\n payment_card must be specified in the request.\n \n \n Order authorization:\n \n \n To authorize the order one of two possible customization hooks is called and an\n dw.order.OrderPaymentInstrument is passed as an input argument.\n \n \n Which hook is called?\n \n \n If the request includes a payment_card or the dw.order.OrderPaymentInstrument\n contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called.\n See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status.\n Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status.\n \n \n What is the dw.order.OrderPaymentInstrument input argument passed to the hook?\n \n \n If the request contains a customer_payment_instrument_id the\n dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown\n if none was found).\n Otherwise the data from the request document is passed (payment_card or\n payment_bank_account etc. information).\n \n \n Note: the amount and the security_code (cvn) contained in the\n payment_card data will be propagated if available to\n dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is\n resolved from a customer payment instrument.\n \n \n Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default\n implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the\n order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the\n scripting API) results in the order being changed to status NEW and prepared for export.\n ", + "operationId": "postOrdersByIDPaymentInstruments", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/order_payment_instrument_request" + } + }, + { + "in": "query", + "name": "skip_authorization", + "type": "boolean" + } + ], + "responses": { + "400": { + "description": "Indicates that the given order number is invalid. or Indicates that the provided payment method is invalid or not applicable." + }, + "404": { + "description": "Indicates that the order with the given order number is unknown. or Indicates that a customer payment instrument could not be resolved\n based on the provided customer payment instrument id." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}/payment_instruments": { - "post": { - "description": "Adds a payment instrument to an order. It is possible either to supply the full payment information or only a\n customer payment instrument id and amount. In case the customer payment instrument id was set all the other\n properties (except amount) are ignored and the payment data is resolved from the stored customer payment\n information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard\n hook.\n\n Details:\n \n The payment instrument is added with the provided details or the details from the customer payment\n instrument. The payment method must be applicable for the order see GET\n /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a\n payment_card must be specified in the request.\n \n \n Order authorization:\n \n \n To authorize the order one of two possible customization hooks is called and an\n dw.order.OrderPaymentInstrument is passed as an input argument.\n \n \n Which hook is called?\n \n \n If the request includes a payment_card or the dw.order.OrderPaymentInstrument\n contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called.\n See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status.\n Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status.\n \n \n What is the dw.order.OrderPaymentInstrument input argument passed to the hook?\n \n \n If the request contains a customer_payment_instrument_id the\n dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown\n if none was found).\n Otherwise the data from the request document is passed (payment_card or\n payment_bank_account etc. information).\n \n \n Note: the amount and the security_code (cvn) contained in the\n payment_card data will be propagated if available to\n dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is\n resolved from a customer payment instrument.\n \n \n Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default\n implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the\n order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the\n scripting API) results in the order being changed to status NEW and prepared for export.\n ", - "operationId": "postOrdersByIDPaymentInstruments", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/order_payment_instrument_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the given order number is invalid. or Indicates that the provided payment method is invalid or not applicable." - }, - "404": { - "description": "Indicates that the order with the given order number is unknown. or Indicates that a customer payment instrument could not be resolved\n based on the provided customer payment instrument id." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}/payment_instruments/{payment_instrument_id}": { + "delete": { + "description": "Removes a payment instrument of an order.", + "operationId": "deleteOrdersByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be updated", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the order with the given order number is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "orders" + ] + }, + "patch": { + "description": "Updates a payment instrument of an order and passes the order and updated payment instrument to the correct\n payment authorizeCreditcard or authorize hook.\n\n Details:\n \n The payment instrument is updated with the provided details. The payment method must be applicable for the\n order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a\n payment_card must be specified in the request.\n \n \n Order authorization:\n \n \n To authorize the order one of two possible customization hooks is called and an\n dw.order.OrderPaymentInstrument is passed as an input argument.\n \n \n Which hook is called?\n \n \n If the request includes a payment_card or the dw.order.OrderPaymentInstrument\n contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called.\n See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status.\n Otherwise dw.order.payment.authorize is called.\n See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status.\n \n \n What is the dw.order.OrderPaymentInstrument input argument passed to the hook?\n \n \n If the request contains a customer_payment_instrument_id the\n dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown\n if none was found).\n Otherwise the data from the request document is passed (payment_card or\n payment_bank_account etc. information).\n \n \n Note: the amount and the security_code (cvn) contained in the\n payment_card data will be propagated if available to\n dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is\n resolved from a customer payment instrument.\n \n \n Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default\n implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the\n order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order)\n in the scripting API) results in the order being changed to status NEW and prepared for export.\n ", + "operationId": "patchOrdersByIDPaymentInstrumentsByID", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + }, + { + "description": "the id of the payment instrument to be updated", + "in": "path", + "minLength": 1, + "name": "payment_instrument_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "skip_authorization", + "type": "boolean" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/order_payment_instrument_request" + } + } + ], + "responses": { + "400": { + "description": "Indicates that the basket payment instrument with the given\n id already is permanently masked. or Indicates that the provided payment method is invalid or not applicable." + }, + "404": { + "description": "Indicates that the order with the given order number is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/order" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}/payment_instruments/{payment_instrument_id}": { - "delete": { - "description": "Removes a payment instrument of an order.", - "operationId": "deleteOrdersByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be updated", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] - }, - "patch": { - "description": "Updates a payment instrument of an order and passes the order and updated payment instrument to the correct\n payment authorizeCreditcard or authorize hook.\n\n Details:\n \n The payment instrument is updated with the provided details. The payment method must be applicable for the\n order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a\n payment_card must be specified in the request.\n \n \n Order authorization:\n \n \n To authorize the order one of two possible customization hooks is called and an\n dw.order.OrderPaymentInstrument is passed as an input argument.\n \n \n Which hook is called?\n \n \n If the request includes a payment_card or the dw.order.OrderPaymentInstrument\n contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called.\n See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status.\n Otherwise dw.order.payment.authorize is called.\n See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status.\n \n \n What is the dw.order.OrderPaymentInstrument input argument passed to the hook?\n \n \n If the request contains a customer_payment_instrument_id the\n dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown\n if none was found).\n Otherwise the data from the request document is passed (payment_card or\n payment_bank_account etc. information).\n \n \n Note: the amount and the security_code (cvn) contained in the\n payment_card data will be propagated if available to\n dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is\n resolved from a customer payment instrument.\n \n \n Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default\n implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the\n order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order)\n in the scripting API) results in the order being changed to status NEW and prepared for export.\n ", - "operationId": "patchOrdersByIDPaymentInstrumentsByID", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - }, - { - "description": "the id of the payment instrument to be updated", - "in": "path", - "minLength": 1, - "name": "payment_instrument_id", - "required": true, - "type": "string" - }, - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/order_payment_instrument_request" - } - } - ], - "responses": { - "400": { - "description": "Indicates that the basket payment instrument with the given\n id already is permanently masked. or Indicates that the provided payment method is invalid or not applicable." - }, - "404": { - "description": "Indicates that the order with the given order number is unknown. or Indicates that the payment instrument with the given payment\n instrument number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/order" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/orders/{order_no}/payment_methods": { + "get": { + "description": "Gets the applicable payment methods for an existing order considering the open payment amount only.", + "operationId": "getOrdersByIDPaymentMethods", + "parameters": [ + { + "description": "the order number", + "in": "path", + "minLength": 1, + "name": "order_no", + "required": true, + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the customer assigned to the order does not\n match the verified customer represented by the JWT, not\n relevant when using OAuth." + }, + "404": { + "description": "Indicates that the order with the given order number is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/payment_method_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/orders/{order_no}/payment_methods": { - "get": { - "description": "Gets the applicable payment methods for an existing order considering the open payment amount only.", - "operationId": "getOrdersByIDPaymentMethods", - "parameters": [ - { - "description": "the order number", - "in": "path", - "minLength": 1, - "name": "order_no", - "required": true, - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the customer assigned to the order does not\n match the verified customer represented by the JWT token, not\n relevant when using OAuth." - }, - "404": { - "description": "Indicates that the order with the given order number is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/payment_method_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "orders" - ] + ], + "tags": [ + "orders" + ] + } + }, + "/price_adjustment_limits": { + "get": { + "description": "Returns a list of price adjustment limits for the authenticated user and the site defined in the URL.\n \n At least one of the following functional permissions must be assigned to the user to be able to access it:\n Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.\n ", + "operationId": "getPriceAdjustmentLimits", + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/price_adjustment_limits" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] + } + ], + "tags": [ + "price_adjustment_limits" + ] + } + }, + "/product_lists": { + "get": { + "description": "Retrieves all public product lists as defined by the given search term (email, first name, last name).", + "operationId": "getProductLists", + "parameters": [ + { + "description": "The email address of the customer, the product lists belong to.", + "in": "query", + "name": "email", + "type": "string" + }, + { + "description": "The first name of the customer, the product lists belong to.", + "in": "query", + "name": "firstname", + "type": "string" + }, + { + "description": "The last name of the customer, the product lists belong to.", + "in": "query", + "name": "lastname", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Indicates that the anonymous customer did not provide a proper search\n term." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/public_product_list_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/price_adjustment_limits": { - "get": { - "description": "Returns a list of price adjustment limits for the authenticated user and the site defined in the URL.\n \n At least one of the following functional permissions must be assigned to the user to be able to access it:\n Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.\n ", - "operationId": "getPriceAdjustmentLimits", - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/price_adjustment_limits" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "price_adjustment_limits" - ] + ], + "tags": [ + "product_lists" + ] + } + }, + "/product_lists/{list_id}": { + "get": { + "description": "Retrieves a public product list by id.", + "operationId": "getProductListsByID", + "parameters": [ + { + "description": "The id of the list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "404": { + "description": "Indicates that this list doesn't exist." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/public_product_list" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_lists": { - "get": { - "description": "Retrieves all public product lists as defined by the given search term (email, first name, last name).", - "operationId": "getProductLists", - "parameters": [ - { - "description": "The email address of the customer, the product lists belong to.", - "in": "query", - "name": "email", - "type": "string" - }, - { - "description": "The first name of the customer, the product lists belong to.", - "in": "query", - "name": "firstname", - "type": "string" - }, - { - "description": "The last name of the customer, the product lists belong to.", - "in": "query", - "name": "lastname", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Indicates that the anonymous customer did not provide a proper search\n term." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/public_product_list_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_lists" - ] + ], + "tags": [ + "product_lists" + ] + } + }, + "/product_lists/{list_id}/items": { + "get": { + "description": "Retrieves the items of a public product list.", + "operationId": "getProductListsByIDItems", + "parameters": [ + { + "description": "The id of the list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "404": { + "description": "Indicates that this list doesn't exist." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/public_product_list_item_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_lists/{list_id}": { - "get": { - "description": "Retrieves a public product list by id.", - "operationId": "getProductListsByID", - "parameters": [ - { - "description": "The id of the list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "404": { - "description": "Indicates that this list doesn't exist." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/public_product_list" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_lists" - ] + ], + "tags": [ + "product_lists" + ] + } + }, + "/product_lists/{list_id}/items/{item_id}": { + "get": { + "description": "Retrieves an item from a public product list.", + "operationId": "getProductListsByIDItemsByID", + "parameters": [ + { + "description": "The id of the list.", + "in": "path", + "maxLength": 28, + "minLength": 1, + "name": "list_id", + "required": true, + "type": "string" + }, + { + "description": "The id of the item.", + "in": "path", + "minLength": 1, + "name": "item_id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + } + ], + "responses": { + "404": { + "description": "Indicates that this list doesn't exist. or Indicates that this product list item doesn't exist." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/public_product_list_item" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_lists/{list_id}/items": { - "get": { - "description": "Retrieves the items of a public product list.", - "operationId": "getProductListsByIDItems", - "parameters": [ - { - "description": "The id of the list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "404": { - "description": "Indicates that this list doesn't exist." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/public_product_list_item_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_lists" - ] + ], + "tags": [ + "product_lists" + ] + } + }, + "/product_search": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link and name in\n the product search hit. Other search hit properties can be added by using the expand parameter. The search result\n contains only products that are online and assigned to site catalog.\n This resource does not return detailed information about variation products. If a variation product matches the query, \n basic information for the parent master product is returned. Use the products resource \n to retrieve more details about a variation product.", + "operationId": "getProductSearch", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n htypes: Allow to refine by including only the provided hit types. Accepted types are 'product', 'master', 'set', 'bundle', 'slicing_group' (deprecated), 'variation_group'.\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The expand parameter. A comma separated list with the allowed values (availability, images,\n prices, represented_products, variations)", + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + }, + { + "description": "The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices.", + "in": "query", + "name": "currency", + "type": "string" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown in case a specified expand parameter value is unknown. or Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_lists/{list_id}/items/{item_id}": { - "get": { - "description": "Retrieves an item from a public product list.", - "operationId": "getProductListsByIDItemsByID", - "parameters": [ - { - "description": "The id of the list.", - "in": "path", - "maxLength": 28, - "minLength": 1, - "name": "list_id", - "required": true, - "type": "string" - }, - { - "description": "The id of the item.", - "in": "path", - "minLength": 1, - "name": "item_id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - } - ], - "responses": { - "404": { - "description": "Indicates that this list doesn't exist. or Indicates that this product list item doesn't exist." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/public_product_list_item" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_lists" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/product_search/availability": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n availability information in the product search hit.\n This resource does not return detailed information about variation products. If a variation product matches the query, \n basic information for the parent master product is returned. Use the products resource \n to retrieve more details about a variation product.", + "operationId": "getProductSearchAvailability", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_search": { - "get": { - "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link and name in\n the product search hit. Other search hit properties can be added by using the expand parameter. The search result\n contains only products that are online and assigned to site catalog.", - "operationId": "getProductSearch", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "The id of the sorting option to sort the search hits.", - "in": "query", - "name": "sort", - "type": "string" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The expand parameter. A comma separated list with the allowed values (availability, images,\n prices, variations)", - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - }, - { - "description": "The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices.", - "in": "query", - "name": "currency", - "type": "string" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown in case a specified expand parameter value is unknown. or Thrown if a price refinement parameter is malformed." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_search" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/product_search/images": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n image information in the product search hit.\n This resource does not return detailed information about variation products. If a variation product matches the query, \n basic information for the parent master product is returned. Use the products resource \n to retrieve more details about a variation product.", + "operationId": "getProductSearchImages", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_search/availability": { - "get": { - "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n availability information in the product search hit.", - "operationId": "getProductSearchAvailability", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "The id of the sorting option to sort the search hits.", - "in": "query", - "name": "sort", - "type": "string" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown if a price refinement parameter is malformed." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_search" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/product_search/prices": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n price information in the product search hit.\n This resource does not return detailed information about variation products. If a variation product matches the query, \n basic information for the parent master product is returned. Use the products resource \n to retrieve more details about a variation product.", + "operationId": "getProductSearchPrices", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The currency mnemonic specified for price.", + "in": "query", + "name": "currency", + "type": "string" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_search/images": { - "get": { - "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n image information in the product search hit.", - "operationId": "getProductSearchImages", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "The id of the sorting option to sort the search hits.", - "in": "query", - "name": "sort", - "type": "string" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown if a price refinement parameter is malformed." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_search" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/product_search/represented_products": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n represented product information in the product search hit.\n This resource does not return detailed information about variation products. If a variation product matches the query, \n basic information for the parent master product is returned. Use the products resource \n to retrieve more details about a variation product.", + "operationId": "getProductSearchRepresentedProducts", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_search/prices": { - "get": { - "description": "Provides keyword and refinement search functionality for products. Only returns the product id, link, name and\n price information in the product search hit.", - "operationId": "getProductSearchPrices", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "The id of the sorting option to sort the search hits.", - "in": "query", - "name": "sort", - "type": "string" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The currency mnemonic specified for price.", - "in": "query", - "name": "currency", - "type": "string" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown if a price refinement parameter is malformed." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_search" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/product_search/variations": { + "get": { + "description": "Provides keyword and refinement search functionality for products. Only returns the product id, name and\n variation information in the product search hit.\n This resource does not return detailed information about variation products. Use the \n products resource to retrieve more details about a variation product.", + "operationId": "getProductSearchVariations", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "name": "q", + "type": "string" + }, + { + "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", + "in": "query", + "items": { + "type": "string" + }, + "name": "refine", + "type": "array" + }, + { + "description": "The id of the sorting option to sort the search hits.", + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The locale context.", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown if a price refinement parameter is malformed." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_search_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/product_search/variations": { - "get": { - "description": "Provides keyword and refinement search functionality for products. Only returns the product id, name and\n variation information in the product search hit.", - "operationId": "getProductSearchVariations", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "name": "q", - "type": "string" - }, - { - "description": "Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and\n value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and\n can be provided by separating them using a pipe (URL\n encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine\n parameters can be provided by adding an underscore in combination with an integer counter right behind\n the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The\n following system refinement attribute ids are supported:\n \n cgid: Allows to refine per single category id. Multiple category ids are not supported.\n price: Allows to refine per single price range. Multiple price ranges are not supported.\n pmid: Allows to refine per promotion id(s).\n orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple\n refinement values are not supported.\n ", - "in": "query", - "items": { - "type": "string" - }, - "name": "refine", - "type": "array" - }, - { - "description": "The id of the sorting option to sort the search hits.", - "in": "query", - "name": "sort", - "type": "string" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The locale context.", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown if a price refinement parameter is malformed." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_search_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "product_search" - ] + ], + "tags": [ + "product_search" + ] + } + }, + "/products/({ids})": { + "get": { + "operationId": "getProductsByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 100, + "name": "ids", + "required": true, + "type": "array" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "inventory_ids", + "type": "array" + }, + { + "in": "query", + "name": "currency", + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + }, + { + "in": "query", + "name": "all_images", + "type": "boolean" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/({ids})": { - "get": { - "operationId": "getProductsByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 100, - "name": "ids", - "required": true, - "type": "array" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "inventory_ids", - "type": "array" - }, - { - "in": "query", - "name": "currency", - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - }, - { - "in": "query", - "name": "all_images", - "type": "boolean" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}": { + "get": { + "description": "To access single products resource, you construct a URL using the template shown below. This template requires\n you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product\n document, provided the product is online and assigned to site catalog. The document contains variation attributes\n (including values) and the variant matrix; this data is provided for both the master and for the variant.", + "operationId": "getProductsByID", + "parameters": [ + { + "description": "The id of the requested product.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "expand", + "type": "array" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "inventory_ids", + "type": "array" + }, + { + "in": "query", + "name": "currency", + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + }, + { + "in": "query", + "name": "all_images", + "type": "boolean" + } + ], + "responses": { + "400": { + "description": "Thrown in case a specified expand parameter value is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}": { - "get": { - "description": "To access single products resource, you construct a URL using the template shown below. This template requires\n you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product\n document, provided the product is online and assigned to site catalog. The document contains variation attributes\n (including values) and the variant matrix; this data is provided for both the master and for the variant.", - "operationId": "getProductsByID", - "parameters": [ - { - "description": "The id of the requested product.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "expand", - "type": "array" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "inventory_ids", - "type": "array" - }, - { - "in": "query", - "name": "currency", - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - }, - { - "in": "query", - "name": "all_images", - "type": "boolean" - } - ], - "responses": { - "400": { - "description": "Thrown in case a specified expand parameter value is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/availability": { + "get": { + "description": "Access product availability information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDAvailability", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "name": "inventory_ids", + "type": "array" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/availability": { - "get": { - "description": "Access product availability information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDAvailability", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "name": "inventory_ids", - "type": "array" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/bundled_products": { + "get": { + "description": "Access bundled product information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDBundledProducts", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/bundled_products": { - "get": { - "description": "Access bundled product information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDBundledProducts", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/images": { + "get": { + "description": "Access product image information of products that are online and assigned to site catalog. Filter the result by\n view type and variation values.", + "operationId": "getProductsByIDImages", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "view_type", + "type": "array" + }, + { + "in": "query", + "name": "all_images", + "type": "boolean" + }, + { + "in": "query", + "maxLength": 256, + "name": "variation_attribute", + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/images": { - "get": { - "description": "Access product image information of products that are online and assigned to site catalog. Filter the result by\n view type and variation values.", - "operationId": "getProductsByIDImages", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "view_type", - "type": "array" - }, - { - "in": "query", - "name": "all_images", - "type": "boolean" - }, - { - "in": "query", - "maxLength": 256, - "name": "variation_attribute", - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/links": { + "get": { + "description": "Access product link information of products that are online and assigned to site catalog. Filter the result by\n link type and link direction.", + "operationId": "getProductsByIDLinks", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "type", + "type": "string" + }, + { + "in": "query", + "name": "direction", + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "400": { + "description": "400 indicates unknown product link type code or 400 indicates unknown link direction" + }, + "404": { + "description": "404 No product with given id found" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/links": { - "get": { - "description": "Access product link information of products that are online and assigned to site catalog. Filter the result by\n link type and link direction.", - "operationId": "getProductsByIDLinks", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "type", - "type": "string" - }, - { - "in": "query", - "name": "direction", - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "400": { - "description": "400 indicates unknown product link type code or 400 indicates unknown link direction" - }, - "404": { - "description": "404 No product with given id found" - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/options": { + "get": { + "description": "Access product option information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDOptions", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/options": { - "get": { - "description": "Access product option information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDOptions", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/prices": { + "get": { + "description": "Access product price information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDPrices", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/prices": { - "get": { - "description": "Access product price information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDPrices", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/promotions": { + "get": { + "description": "Access product promotion information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDPromotions", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "currency", + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/promotions": { - "get": { - "description": "Access product promotion information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDPromotions", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "currency", - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/recommendations": { + "get": { + "description": "Access product recommendation information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDRecommendations", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "format": "int32", + "in": "query", + "name": "recommendation_type", + "type": "integer" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/shipping_methods": { - "get": { - "description": "Retrieves the applicable shipping methods for a certain product.", - "operationId": "getProductsByIDShippingMethods", - "parameters": [ - { - "description": "the requested product id", - "in": "path", - "minLength": 1, - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Indicates that the product with the given id is unknown." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/shipping_method_result" - } - } - }, - "security": [ - { - "customers_auth": [] - }, - { - "oauth2_application": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/set_products": { + "get": { + "description": "Access product set information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDSetProducts", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/products/{id}/variations": { - "get": { - "description": "Access product variation information of products that are online and assigned to site catalog.", - "operationId": "getProductsByIDVariations", - "parameters": [ - { - "description": "The requested product id.", - "in": "path", - "maxLength": 100, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/product" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "products" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/shipping_methods": { + "get": { + "description": "Retrieves the applicable shipping methods for a certain product.", + "operationId": "getProductsByIDShippingMethods", + "parameters": [ + { + "description": "the requested product id", + "in": "path", + "minLength": 1, + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Indicates that the product with the given id is unknown." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/shipping_method_result" + } + } + }, + "security": [ + { + "customers_auth": [] + }, + { + "oauth2_application": [] + }, + { + "client_id": [] } - }, - "/promotions": { - "get": { - "description": "Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter\n criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date\n range by providing start_date and end_date parameters. Both parameters are required to specify a date range:\n omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled\n promotions; the server does not consider promotion qualifiers or schedules.", - "operationId": "getPromotions", - "parameters": [ - { - "description": "Find the promotions assigned to this campaign (mandatory)", - "in": "query", - "maxLength": 256, - "minLength": 1, - "name": "campaign_id", - "required": true, - "type": "string" - }, - { - "description": "The start date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ", - "in": "query", - "name": "start_date", - "type": "string" - }, - { - "description": "The end date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ", - "in": "query", - "name": "end_date", - "type": "string" - }, - { - "description": "The currency mnemonic specified for price", - "in": "query", - "name": "currency", - "type": "string" - } - ], - "responses": { - "400": { - "description": "Thrown when a start date, but no end date was given or Thrown when an end date but no start date was given or Thrown when the given end date is before the given start date" - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/promotion_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "promotions" - ] + ], + "tags": [ + "products" + ] + } + }, + "/products/{id}/variations": { + "get": { + "description": "Access product variation information of products that are online and assigned to site catalog.", + "operationId": "getProductsByIDVariations", + "parameters": [ + { + "description": "The requested product id.", + "in": "path", + "maxLength": 100, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/product" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/promotions/({ids})": { - "get": { - "operationId": "getPromotionsByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "ids", - "required": true, - "type": "array" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/promotion_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "promotions" - ] + ], + "tags": [ + "products" + ] + } + }, + "/promotions": { + "get": { + "description": "Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter\n criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date\n range by providing start_date and end_date parameters. Both parameters are required to specify a date range:\n omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled\n promotions; the server does not consider promotion qualifiers or schedules.", + "operationId": "getPromotions", + "parameters": [ + { + "description": "Find the promotions assigned to this campaign (mandatory)", + "in": "query", + "maxLength": 256, + "minLength": 1, + "name": "campaign_id", + "required": true, + "type": "string" + }, + { + "description": "The start date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ", + "in": "query", + "name": "start_date", + "type": "string" + }, + { + "description": "The end date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ", + "in": "query", + "name": "end_date", + "type": "string" + }, + { + "description": "The currency mnemonic specified for price", + "in": "query", + "name": "currency", + "type": "string" + } + ], + "responses": { + "400": { + "description": "Thrown when a start date, but no end date was given or Thrown when an end date but no start date was given or Thrown when the given end date is before the given start date" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/promotion_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/promotions/{id}": { - "get": { - "description": "Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion;\n the server does not consider promotion qualifiers or schedules.", - "operationId": "getPromotionsByID", - "parameters": [ - { - "description": "The id of the requested promotion.", - "in": "path", - "maxLength": 256, - "name": "id", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "404": { - "description": "Thrown when there is no promotion found with\n the given ID for the requested site" - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/promotion" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "promotions" - ] + ], + "tags": [ + "promotions" + ] + } + }, + "/promotions/({ids})": { + "get": { + "operationId": "getPromotionsByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "ids", + "required": true, + "type": "array" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/promotion_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/search_suggestion": { - "get": { - "description": "Provides keyword search functionality for products, categories, content, brands and custom suggestions.\n Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions\n for the given search phrase.", - "operationId": "getSearchSuggestion", - "parameters": [ - { - "description": "The query phrase to search for.", - "in": "query", - "maxLength": 50, - "minLength": 3, - "name": "q", - "required": true, - "type": "string" - }, - { - "description": "The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions).", - "format": "int32", - "in": "query", - "maximum": 10, - "minimum": 1, - "name": "count", - "type": "integer" - }, - { - "description": "The currency mnemonic specified for price. This parameter is effective only for product suggestions.", - "in": "query", - "name": "currency", - "type": "string" - }, - { - "description": "", - "in": "query", - "name": "locale", - "type": "string" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/suggestion_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "search_suggestion" - ] + ], + "tags": [ + "promotions" + ] + } + }, + "/promotions/{id}": { + "get": { + "description": "Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion;\n the server does not consider promotion qualifiers or schedules.", + "operationId": "getPromotionsByID", + "parameters": [ + { + "description": "The id of the requested promotion.", + "in": "path", + "maxLength": 256, + "name": "id", + "required": true, + "type": "string" + }, + { + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "404": { + "description": "Thrown when there is no promotion found with\n the given ID for the requested site" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/promotion" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/sessions": { - "post": { - "description": "Exchanges a JWT token into a new session. If the given token is valid, creates a new session, which is associated\n with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied\n on the response.\n \n Please note that this resource always creates a new session with the consequence that you have no session basket\n after you do that. Once you created a session from a JWT token you can use this session and stateless OCAPI calls\n using the JWT in parallel. There is no additional need to call the bridging resources again.\n \n When a session ID is sent in with the request, the specified session is ignored. Only the incoming JWT token is\n used to create a new session.", - "operationId": "postSessions", - "responses": { - "204": { - "description": "" - } - }, - "security": [ - { - "customers_auth": [] - } - ], - "tags": [ - "sessions" - ] + ], + "tags": [ + "promotions" + ] + } + }, + "/search_suggestion": { + "get": { + "description": "Provides keyword search functionality for products, categories, content, brands and custom suggestions.\n Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions\n for the given search phrase.", + "operationId": "getSearchSuggestion", + "parameters": [ + { + "description": "The query phrase to search for.", + "in": "query", + "maxLength": 50, + "minLength": 3, + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions).", + "format": "int32", + "in": "query", + "maximum": 10, + "minimum": 1, + "name": "count", + "type": "integer" + }, + { + "description": "The currency mnemonic specified for price. This parameter is effective only for product suggestions.", + "in": "query", + "name": "currency", + "type": "string" + }, + { + "description": "", + "in": "query", + "name": "locale", + "type": "string" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/suggestion_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/site": { - "get": { - "description": "Access site information, like site status and site content URLs.", - "operationId": "getSite", - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/site" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "site" - ] + ], + "tags": [ + "search_suggestion" + ] + } + }, + "/sessions": { + "post": { + "description": "\n Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All\n Set-Cookie headers for handling the session are applied on the response.\n \n \n Only the JWT is used to create the new session. Any session IDs included in the request are ignored.\n \n \n Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT.\n There is no need to call the bridging resources again.\n \n \n If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can\n be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment\n information. The following examples show why this behavior is important to understand as it relates to guest\n customers:\n \n \n Basket created after the session is created:\n \n \n POST /customers/auth with type “guest”\n POST /sessions\n POST /baskets\n Storefront request (controller with BasketMgr.getCurrentBasket())\n -> Sensitive data is erased from the basket due to security considerations\n \n \n \n Basket created before the session is created:\n \n \n POST /customers/auth with type “guest”\n POST /baskets\n POST /sessions\n Storefront request (controller with BasketMgr.getCurrentBasket())\n -> Sensitive data is accessible because the basket is marked as secured for this session\n \n ", + "operationId": "postSessions", + "responses": { + "204": { + "description": "" + } + }, + "security": [ + { + "customers_auth": [] + } + ], + "tags": [ + "sessions" + ] + } + }, + "/site": { + "get": { + "description": "Access site information, like site status and site content URLs.", + "operationId": "getSite", + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/site" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/stores": { - "get": { - "description": "This resource retrieves a list of stores, for the given site, that are within a configured distance of a location\n on the earth. The stores and their distance from the specified location are returned as a result set of Store\n objects. The distance is interpreted either in miles or kilometers depending on the \"distance_unit\" input\n parameter.\n\n The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a\n country and a postal code:\n \n If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates\n for this postal code. If no matching geolocation is found, the resource will return an empty list of stores.\n If coordinates are passed, the values for country and postal code are ignored.\n ", - "operationId": "getStores", - "parameters": [ - { - "description": "The geo coordinate latitude to search for stores\n (value range -90.00 .. 90.00).", - "format": "double", - "in": "query", - "maximum": 90, - "minimum": -90, - "name": "latitude", - "type": "number" - }, - { - "description": "The geo coordinate longitude to search for stores\n (value range -180.00 .. 180.00).", - "format": "double", - "in": "query", - "maximum": 180, - "minimum": -180, - "name": "longitude", - "type": "number" - }, - { - "description": "The two letter ISO country code e.g. \"US\".", - "in": "query", - "maxLength": 2, - "minLength": 2, - "name": "country_code", - "type": "string" - }, - { - "description": "The postal code e.g. \"01801\".", - "in": "query", - "maxLength": 10, - "minLength": 3, - "name": "postal_code", - "type": "string" - }, - { - "description": "The distance unit. Supported values are \"mi\" and \"km\"\n (for miles and kilometers respectively, default is \"km\").", - "in": "query", - "name": "distance_unit", - "type": "string" - }, - { - "description": "The area (radius) in distancUnit where stores will be\n searched for (default is half of the earth's perimeter).", - "format": "double", - "in": "query", - "maximum": 20012, - "minimum": 0, - "name": "max_distance", - "type": "number" - }, - { - "description": "The result set index to return the first instance for. Default value is 0.", - "format": "int32", - "in": "query", - "minimum": 0, - "name": "start", - "type": "integer" - }, - { - "description": "The maximum number of instances per request. Default value is 25.", - "format": "int32", - "in": "query", - "maximum": 200, - "minimum": 1, - "name": "count", - "type": "integer" - } - ], - "responses": { - "400": { - "description": "Thrown if no coordinates (latitude and longitude) are provided and in addition no country code is given. or Thrown if no coordinates (latitude and longitude) are provided and in addition no postal code is given.. or Thrown if only one of latitude or longitude are provided. or Invalid distance_unit given." - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/store_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "stores" - ] + ], + "tags": [ + "site" + ] + } + }, + "/stores": { + "get": { + "description": "This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored. ", + "operationId": "getStores", + "parameters": [ + { + "description": "The geo coordinate latitude to search for stores (value range -90.00 .. 90.00).", + "format": "double", + "in": "query", + "maximum": 90, + "minimum": -90, + "name": "latitude", + "type": "number" + }, + { + "description": "The geo coordinate longitude to search for stores (value range -180.00 .. 180.00).", + "format": "double", + "in": "query", + "maximum": 180, + "minimum": -180, + "name": "longitude", + "type": "number" + }, + { + "description": "The two letter ISO country code e.g. \\\"US\\\".", + "in": "query", + "maxLength": 2, + "minLength": 2, + "name": "country_code", + "type": "string" + }, + { + "description": "The postal code e.g. \\\"01801\\\".", + "in": "query", + "maxLength": 10, + "minLength": 3, + "name": "postal_code", + "type": "string" + }, + { + "description": "The distance unit. Supported values are \\\"mi\\\" and \\\"km\\\" (for miles and kilometers respectively, default is \\\"km\\\").", + "in": "query", + "name": "distance_unit", + "type": "string" + }, + { + "description": "The area (radius) in distancUnit where stores will be searched for (default is half of the earth's perimeter).", + "format": "double", + "in": "query", + "maximum": 20012, + "minimum": 0, + "name": "max_distance", + "type": "number" + }, + { + "description": "The result set index to return the first instance for. Default value is 0.", + "format": "int32", + "in": "query", + "minimum": 0, + "name": "start", + "type": "integer" + }, + { + "description": "The maximum number of instances per request. Default value is 25.", + "format": "int32", + "in": "query", + "maximum": 200, + "minimum": 1, + "name": "count", + "type": "integer" + } + ], + "responses": { + "400": { + "description": "Thrown if no coordinates (latitude and longitude) are provided and in addition no country code is given. or Thrown if no coordinates (latitude and longitude) are provided and in addition no postal code is given.. or Thrown if only one of latitude or longitude are provided. or Invalid distance_unit given." + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/store_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/stores/({ids})": { - "get": { - "operationId": "getStoresByIDs", - "parameters": [ - { - "in": "path", - "items": { - "type": "string" - }, - "maxLength": 256, - "name": "ids", - "required": true, - "type": "array" - } - ], - "responses": { - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/store_result" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "stores" - ] + ], + "tags": [ + "stores" + ] + } + }, + "/stores/({ids})": { + "get": { + "operationId": "getStoresByIDs", + "parameters": [ + { + "in": "path", + "items": { + "type": "string" + }, + "maxLength": 256, + "name": "ids", + "required": true, + "type": "array" + } + ], + "responses": { + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/store_result" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } - }, - "/stores/{id}": { - "get": { - "description": "To access a store, you construct a URL using the template shown below. This template requires you to specify a\n store id. In the response, the server returns a corresponding store document.", - "operationId": "getStoresByID", - "parameters": [ - { - "description": "The id of the requested store.", - "in": "path", - "maxLength": 256, - "name": "id", - "required": true, - "type": "string" - } - ], - "responses": { - "404": { - "description": "Thrown if the requested store was not found" - }, - "default": { - "description": "", - "schema": { - "$ref": "#/definitions/store" - } - } - }, - "security": [ - { - "client_id": [] - }, - { - "customers_auth": [] - } - ], - "tags": [ - "stores" - ] + ], + "tags": [ + "stores" + ] + } + }, + "/stores/{id}": { + "get": { + "description": "To access a store, you construct a URL using the template shown below. This template requires you to specify a store id. In the response, the server returns a corresponding store document.", + "operationId": "getStoresByID", + "parameters": [ + { + "description": "The id of the requested store.", + "in": "path", + "maxLength": 256, + "name": "id", + "required": true, + "type": "string" + } + ], + "responses": { + "404": { + "description": "Thrown if the requested store was not found" + }, + "default": { + "description": "", + "schema": { + "$ref": "#/definitions/store" + } + } + }, + "security": [ + { + "client_id": [] + }, + { + "customers_auth": [] + }, + { + "client_id": [] } + ], + "tags": [ + "stores" + ] } + } }, "produces": [ - "application/json", - "text/xml", - "application/xml" + "application/json", + "text/xml", + "application/xml" ], "securityDefinitions": { - "customers_auth": { - "x-authorizationUrl": "https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/shop/v17_8/customers/auth", - "description": "User authentication either for a registered or a guest customer (selectable in request body). Access via Base64 encoded customer:password string as 'Authorization: Basic' header.", - "type": "basic" - }, - "oauth2_application": { - "description": "Authentication flow with client ID and password with account manager.", - "flow": "application", - "tokenUrl": "https://account.demandware.com:443/dw/oauth2/access_token", - "type": "oauth2" - }, - "client_id": { - "description": "Add client ID for application identification. Alternative as 'client_id' query parameter.", - "in": "header", - "name": "x-dw-client-id", - "type": "apiKey" - } + "customers_auth": { + "x-authorizationUrl": "https://demo-ocapi.demandware.net/s/-/dw/shop/v20_4/customers/auth", + "description": "User authentication either for a registered or a guest customer (selectable in request body). Access via Base64 encoded customer:password string as 'Authorization: Basic' header.", + "type": "basic" + }, + "oauth2_application": { + "description": "Authentication flow with client ID and password with account manager.", + "flow": "application", + "tokenUrl": "https://account.demandware.com:443/dw/oauth2/access_token", + "type": "oauth2" + }, + "client_id": { + "description": "Add client ID for application identification. Alternative as 'client_id' query parameter.", + "in": "header", + "name": "x-dw-client-id", + "type": "apiKey" + } }, "swagger": "2.0" -} + } \ No newline at end of file diff --git a/test/api/ApiClient.spec.js b/test/api/ApiClient.spec.js index 1c7fdd5..412fc78 100644 --- a/test/api/ApiClient.spec.js +++ b/test/api/ApiClient.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2019 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ import expect from 'expect.js' diff --git a/test/api/BasketsApi.spec.js b/test/api/BasketsApi.spec.js index f224a04..28335fa 100644 --- a/test/api/BasketsApi.spec.js +++ b/test/api/BasketsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/CategoriesApi.spec.js b/test/api/CategoriesApi.spec.js index 007c06f..7de292e 100644 --- a/test/api/CategoriesApi.spec.js +++ b/test/api/CategoriesApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/ContentApi.spec.js b/test/api/ContentApi.spec.js index ff5e71f..ba7e38a 100644 --- a/test/api/ContentApi.spec.js +++ b/test/api/ContentApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/ContentSearchApi.spec.js b/test/api/ContentSearchApi.spec.js index d57a24d..99c0b08 100644 --- a/test/api/ContentSearchApi.spec.js +++ b/test/api/ContentSearchApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/CustomObjectsApi.spec.js b/test/api/CustomObjectsApi.spec.js index 58f2d1d..da0570d 100644 --- a/test/api/CustomObjectsApi.spec.js +++ b/test/api/CustomObjectsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/CustomersApi.spec.js b/test/api/CustomersApi.spec.js index 90d4cc3..4045ab4 100644 --- a/test/api/CustomersApi.spec.js +++ b/test/api/CustomersApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/FoldersApi.spec.js b/test/api/FoldersApi.spec.js index 64905c1..1b3e4c6 100644 --- a/test/api/FoldersApi.spec.js +++ b/test/api/FoldersApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/GiftCertificateApi.spec.js b/test/api/GiftCertificateApi.spec.js index b2ba933..60cb226 100644 --- a/test/api/GiftCertificateApi.spec.js +++ b/test/api/GiftCertificateApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/OrderSearchApi.spec.js b/test/api/OrderSearchApi.spec.js index 7f9d73b..9401da4 100644 --- a/test/api/OrderSearchApi.spec.js +++ b/test/api/OrderSearchApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/OrdersApi.spec.js b/test/api/OrdersApi.spec.js index d51faa9..758313b 100644 --- a/test/api/OrdersApi.spec.js +++ b/test/api/OrdersApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/PriceAdjustmentLimitsApi.spec.js b/test/api/PriceAdjustmentLimitsApi.spec.js index c492cc8..cb1af57 100644 --- a/test/api/PriceAdjustmentLimitsApi.spec.js +++ b/test/api/PriceAdjustmentLimitsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/ProductListsApi.spec.js b/test/api/ProductListsApi.spec.js index a6ed75d..9cf3acb 100644 --- a/test/api/ProductListsApi.spec.js +++ b/test/api/ProductListsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/ProductSearchApi.spec.js b/test/api/ProductSearchApi.spec.js index 85459d2..2073a60 100644 --- a/test/api/ProductSearchApi.spec.js +++ b/test/api/ProductSearchApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/ProductsApi.spec.js b/test/api/ProductsApi.spec.js index 7b8fb9f..478217a 100644 --- a/test/api/ProductsApi.spec.js +++ b/test/api/ProductsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/PromotionsApi.spec.js b/test/api/PromotionsApi.spec.js index e467d39..7707097 100644 --- a/test/api/PromotionsApi.spec.js +++ b/test/api/PromotionsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/SearchSuggestionApi.spec.js b/test/api/SearchSuggestionApi.spec.js index 4103ba2..8600e7d 100644 --- a/test/api/SearchSuggestionApi.spec.js +++ b/test/api/SearchSuggestionApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/SessionsApi.spec.js b/test/api/SessionsApi.spec.js index 7aff27d..abc2aa3 100644 --- a/test/api/SessionsApi.spec.js +++ b/test/api/SessionsApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/SiteApi.spec.js b/test/api/SiteApi.spec.js index 76a8bcb..33f71ce 100644 --- a/test/api/SiteApi.spec.js +++ b/test/api/SiteApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/api/StoresApi.spec.js b/test/api/StoresApi.spec.js index 87cde7a..2dbdbae 100644 --- a/test/api/StoresApi.spec.js +++ b/test/api/StoresApi.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/AuthRequest.spec.js b/test/model/AuthRequest.spec.js index 4e4e6a2..8a39d09 100644 --- a/test/model/AuthRequest.spec.js +++ b/test/model/AuthRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Basket.spec.js b/test/model/Basket.spec.js index 32499d0..a93d663 100644 --- a/test/model/Basket.spec.js +++ b/test/model/Basket.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BasketPaymentInstrumentRequest.spec.js b/test/model/BasketPaymentInstrumentRequest.spec.js index 55df92b..7d9905e 100644 --- a/test/model/BasketPaymentInstrumentRequest.spec.js +++ b/test/model/BasketPaymentInstrumentRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BasketsResult.spec.js b/test/model/BasketsResult.spec.js index a78f62f..788dc76 100644 --- a/test/model/BasketsResult.spec.js +++ b/test/model/BasketsResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BonusDiscountLineItem.spec.js b/test/model/BonusDiscountLineItem.spec.js index 66aa9bb..1b3f3e4 100644 --- a/test/model/BonusDiscountLineItem.spec.js +++ b/test/model/BonusDiscountLineItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BoolFilter.spec.js b/test/model/BoolFilter.spec.js index a4c4575..34cb956 100644 --- a/test/model/BoolFilter.spec.js +++ b/test/model/BoolFilter.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BoolQuery.spec.js b/test/model/BoolQuery.spec.js index abd76a4..4519ae8 100644 --- a/test/model/BoolQuery.spec.js +++ b/test/model/BoolQuery.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/BundledProduct.spec.js b/test/model/BundledProduct.spec.js index 2b6329b..3422d35 100644 --- a/test/model/BundledProduct.spec.js +++ b/test/model/BundledProduct.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Category.spec.js b/test/model/Category.spec.js index 984a202..5b33223 100644 --- a/test/model/Category.spec.js +++ b/test/model/Category.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CategoryResult.spec.js b/test/model/CategoryResult.spec.js index e63495c..40e8dcb 100644 --- a/test/model/CategoryResult.spec.js +++ b/test/model/CategoryResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Content.spec.js b/test/model/Content.spec.js index 80d169b..31d8b5a 100644 --- a/test/model/Content.spec.js +++ b/test/model/Content.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentFolder.spec.js b/test/model/ContentFolder.spec.js index 5129007..2b07ea1 100644 --- a/test/model/ContentFolder.spec.js +++ b/test/model/ContentFolder.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentFolderResult.spec.js b/test/model/ContentFolderResult.spec.js index ed70219..e5cf265 100644 --- a/test/model/ContentFolderResult.spec.js +++ b/test/model/ContentFolderResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentResult.spec.js b/test/model/ContentResult.spec.js index 209b74d..64e24c0 100644 --- a/test/model/ContentResult.spec.js +++ b/test/model/ContentResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentSearchRefinement.spec.js b/test/model/ContentSearchRefinement.spec.js index ce6c52c..c5a885e 100644 --- a/test/model/ContentSearchRefinement.spec.js +++ b/test/model/ContentSearchRefinement.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentSearchRefinementValue.spec.js b/test/model/ContentSearchRefinementValue.spec.js index 8811310..fbae9c1 100644 --- a/test/model/ContentSearchRefinementValue.spec.js +++ b/test/model/ContentSearchRefinementValue.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ContentSearchResult.spec.js b/test/model/ContentSearchResult.spec.js index 07249e2..fdc864a 100644 --- a/test/model/ContentSearchResult.spec.js +++ b/test/model/ContentSearchResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CouponItem.spec.js b/test/model/CouponItem.spec.js index 0c497b7..4491698 100644 --- a/test/model/CouponItem.spec.js +++ b/test/model/CouponItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomObject.spec.js b/test/model/CustomObject.spec.js index 7d262d5..e9f499e 100644 --- a/test/model/CustomObject.spec.js +++ b/test/model/CustomObject.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Customer.spec.js b/test/model/Customer.spec.js index 8cf5e36..5166a15 100644 --- a/test/model/Customer.spec.js +++ b/test/model/Customer.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerAddress.spec.js b/test/model/CustomerAddress.spec.js index 6322c48..2a18966 100644 --- a/test/model/CustomerAddress.spec.js +++ b/test/model/CustomerAddress.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerAddressLink.spec.js b/test/model/CustomerAddressLink.spec.js index 422f644..605274b 100644 --- a/test/model/CustomerAddressLink.spec.js +++ b/test/model/CustomerAddressLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerAddressResult.spec.js b/test/model/CustomerAddressResult.spec.js index 9aeacb1..28eaa48 100644 --- a/test/model/CustomerAddressResult.spec.js +++ b/test/model/CustomerAddressResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerInfo.spec.js b/test/model/CustomerInfo.spec.js index 6305bfb..12fee6e 100644 --- a/test/model/CustomerInfo.spec.js +++ b/test/model/CustomerInfo.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerOrderResult.spec.js b/test/model/CustomerOrderResult.spec.js index b91c5d4..4f0d2cf 100644 --- a/test/model/CustomerOrderResult.spec.js +++ b/test/model/CustomerOrderResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerPaymentCardRequest.spec.js b/test/model/CustomerPaymentCardRequest.spec.js index e9543dd..8395f9f 100644 --- a/test/model/CustomerPaymentCardRequest.spec.js +++ b/test/model/CustomerPaymentCardRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerPaymentInstrument.spec.js b/test/model/CustomerPaymentInstrument.spec.js index a936ca8..84dad4d 100644 --- a/test/model/CustomerPaymentInstrument.spec.js +++ b/test/model/CustomerPaymentInstrument.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerPaymentInstrumentRequest.spec.js b/test/model/CustomerPaymentInstrumentRequest.spec.js index 1af6355..6aeca47 100644 --- a/test/model/CustomerPaymentInstrumentRequest.spec.js +++ b/test/model/CustomerPaymentInstrumentRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerPaymentInstrumentResult.spec.js b/test/model/CustomerPaymentInstrumentResult.spec.js index 1b59767..6b7db7c 100644 --- a/test/model/CustomerPaymentInstrumentResult.spec.js +++ b/test/model/CustomerPaymentInstrumentResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductList.spec.js b/test/model/CustomerProductList.spec.js index ed78be6..f12e099 100644 --- a/test/model/CustomerProductList.spec.js +++ b/test/model/CustomerProductList.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductListItem.spec.js b/test/model/CustomerProductListItem.spec.js index 2b5b986..f7d8daf 100644 --- a/test/model/CustomerProductListItem.spec.js +++ b/test/model/CustomerProductListItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductListItemLink.spec.js b/test/model/CustomerProductListItemLink.spec.js index ed8a564..9002ee2 100644 --- a/test/model/CustomerProductListItemLink.spec.js +++ b/test/model/CustomerProductListItemLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductListItemResult.spec.js b/test/model/CustomerProductListItemResult.spec.js index f304059..d819486 100644 --- a/test/model/CustomerProductListItemResult.spec.js +++ b/test/model/CustomerProductListItemResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductListRegistrant.spec.js b/test/model/CustomerProductListRegistrant.spec.js index 53a1610..5ead5a2 100644 --- a/test/model/CustomerProductListRegistrant.spec.js +++ b/test/model/CustomerProductListRegistrant.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerProductListResult.spec.js b/test/model/CustomerProductListResult.spec.js index a351ff4..7d20097 100644 --- a/test/model/CustomerProductListResult.spec.js +++ b/test/model/CustomerProductListResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/CustomerRegistration.spec.js b/test/model/CustomerRegistration.spec.js index 9cb2538..98a73f1 100644 --- a/test/model/CustomerRegistration.spec.js +++ b/test/model/CustomerRegistration.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Discount.spec.js b/test/model/Discount.spec.js index b878939..7b438b0 100644 --- a/test/model/Discount.spec.js +++ b/test/model/Discount.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/FilteredQuery.spec.js b/test/model/FilteredQuery.spec.js index d7cf10f..a368b25 100644 --- a/test/model/FilteredQuery.spec.js +++ b/test/model/FilteredQuery.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/GiftCertificate.spec.js b/test/model/GiftCertificate.spec.js index 8c88b50..adcab31 100644 --- a/test/model/GiftCertificate.spec.js +++ b/test/model/GiftCertificate.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/GiftCertificateItem.spec.js b/test/model/GiftCertificateItem.spec.js index 91c6120..58f2957 100644 --- a/test/model/GiftCertificateItem.spec.js +++ b/test/model/GiftCertificateItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/GiftCertificateRequest.spec.js b/test/model/GiftCertificateRequest.spec.js index 365a271..17bfbbc 100644 --- a/test/model/GiftCertificateRequest.spec.js +++ b/test/model/GiftCertificateRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Image.spec.js b/test/model/Image.spec.js index 247ded1..4b9f414 100644 --- a/test/model/Image.spec.js +++ b/test/model/Image.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ImageGroup.spec.js b/test/model/ImageGroup.spec.js index 4aa133f..57e255a 100644 --- a/test/model/ImageGroup.spec.js +++ b/test/model/ImageGroup.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Inventory.spec.js b/test/model/Inventory.spec.js index 4f8ccb3..5208fdc 100644 --- a/test/model/Inventory.spec.js +++ b/test/model/Inventory.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Locale.spec.js b/test/model/Locale.spec.js index ba4d086..a60c5fe 100644 --- a/test/model/Locale.spec.js +++ b/test/model/Locale.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Master.spec.js b/test/model/Master.spec.js index a92805d..cdf0e16 100644 --- a/test/model/Master.spec.js +++ b/test/model/Master.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/NestedQuery.spec.js b/test/model/NestedQuery.spec.js index 9b5478e..db734b2 100644 --- a/test/model/NestedQuery.spec.js +++ b/test/model/NestedQuery.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Note.spec.js b/test/model/Note.spec.js index a8290e1..4ac2e0f 100644 --- a/test/model/Note.spec.js +++ b/test/model/Note.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/NotesResult.spec.js b/test/model/NotesResult.spec.js index afd8c87..ac68991 100644 --- a/test/model/NotesResult.spec.js +++ b/test/model/NotesResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Option.spec.js b/test/model/Option.spec.js index d78a6d4..4b7d2df 100644 --- a/test/model/Option.spec.js +++ b/test/model/Option.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OptionItem.spec.js b/test/model/OptionItem.spec.js index 3660f05..9653e18 100644 --- a/test/model/OptionItem.spec.js +++ b/test/model/OptionItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OptionValue.spec.js b/test/model/OptionValue.spec.js index 0e9866b..1a13dc2 100644 --- a/test/model/OptionValue.spec.js +++ b/test/model/OptionValue.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Order.spec.js b/test/model/Order.spec.js index 480690b..e5c5caa 100644 --- a/test/model/Order.spec.js +++ b/test/model/Order.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderAddress.spec.js b/test/model/OrderAddress.spec.js index f648a71..0c9569c 100644 --- a/test/model/OrderAddress.spec.js +++ b/test/model/OrderAddress.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderPaymentCardRequest.spec.js b/test/model/OrderPaymentCardRequest.spec.js index d685fe7..5d9a34b 100644 --- a/test/model/OrderPaymentCardRequest.spec.js +++ b/test/model/OrderPaymentCardRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderPaymentInstrument.spec.js b/test/model/OrderPaymentInstrument.spec.js index 749c43b..59b8783 100644 --- a/test/model/OrderPaymentInstrument.spec.js +++ b/test/model/OrderPaymentInstrument.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderPaymentInstrumentRequest.spec.js b/test/model/OrderPaymentInstrumentRequest.spec.js index 4bc94b3..e1566bb 100644 --- a/test/model/OrderPaymentInstrumentRequest.spec.js +++ b/test/model/OrderPaymentInstrumentRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderSearchHit.spec.js b/test/model/OrderSearchHit.spec.js index ebbcdea..a7b8a1c 100644 --- a/test/model/OrderSearchHit.spec.js +++ b/test/model/OrderSearchHit.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderSearchRequest.spec.js b/test/model/OrderSearchRequest.spec.js index a5af4e5..8853f12 100644 --- a/test/model/OrderSearchRequest.spec.js +++ b/test/model/OrderSearchRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/OrderSearchResult.spec.js b/test/model/OrderSearchResult.spec.js index da9fee5..5e33e0c 100644 --- a/test/model/OrderSearchResult.spec.js +++ b/test/model/OrderSearchResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PasswordChangeRequest.spec.js b/test/model/PasswordChangeRequest.spec.js index 2024d45..7f94bca 100644 --- a/test/model/PasswordChangeRequest.spec.js +++ b/test/model/PasswordChangeRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PasswordReset.spec.js b/test/model/PasswordReset.spec.js index 02f3133..bf00c1c 100644 --- a/test/model/PasswordReset.spec.js +++ b/test/model/PasswordReset.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentBankAccount.spec.js b/test/model/PaymentBankAccount.spec.js index 0a8dc20..a3e18ad 100644 --- a/test/model/PaymentBankAccount.spec.js +++ b/test/model/PaymentBankAccount.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentBankAccountRequest.spec.js b/test/model/PaymentBankAccountRequest.spec.js index bfae620..dbe5715 100644 --- a/test/model/PaymentBankAccountRequest.spec.js +++ b/test/model/PaymentBankAccountRequest.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentCard.spec.js b/test/model/PaymentCard.spec.js index 292b868..31530d0 100644 --- a/test/model/PaymentCard.spec.js +++ b/test/model/PaymentCard.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentCardSpec.spec.js b/test/model/PaymentCardSpec.spec.js index 514180c..a64f8c4 100644 --- a/test/model/PaymentCardSpec.spec.js +++ b/test/model/PaymentCardSpec.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentMethod.spec.js b/test/model/PaymentMethod.spec.js index 1cc786c..a3d9b5c 100644 --- a/test/model/PaymentMethod.spec.js +++ b/test/model/PaymentMethod.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PaymentMethodResult.spec.js b/test/model/PaymentMethodResult.spec.js index 2af7a6f..5f8a5b3 100644 --- a/test/model/PaymentMethodResult.spec.js +++ b/test/model/PaymentMethodResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PriceAdjustment.spec.js b/test/model/PriceAdjustment.spec.js index 292fec5..b8f920d 100644 --- a/test/model/PriceAdjustment.spec.js +++ b/test/model/PriceAdjustment.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PriceAdjustmentLimit.spec.js b/test/model/PriceAdjustmentLimit.spec.js index 3b3053e..04b926f 100644 --- a/test/model/PriceAdjustmentLimit.spec.js +++ b/test/model/PriceAdjustmentLimit.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PriceAdjustmentLimits.spec.js b/test/model/PriceAdjustmentLimits.spec.js index eaaf5d7..de80dc1 100644 --- a/test/model/PriceAdjustmentLimits.spec.js +++ b/test/model/PriceAdjustmentLimits.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Product.spec.js b/test/model/Product.spec.js index 1c6b760..30e498c 100644 --- a/test/model/Product.spec.js +++ b/test/model/Product.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductDetailsLink.spec.js b/test/model/ProductDetailsLink.spec.js index 5d01829..d2bbee0 100644 --- a/test/model/ProductDetailsLink.spec.js +++ b/test/model/ProductDetailsLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductItem.spec.js b/test/model/ProductItem.spec.js index 713beb8..e72080a 100644 --- a/test/model/ProductItem.spec.js +++ b/test/model/ProductItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductLink.spec.js b/test/model/ProductLink.spec.js index c180e02..89761de 100644 --- a/test/model/ProductLink.spec.js +++ b/test/model/ProductLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductListEvent.spec.js b/test/model/ProductListEvent.spec.js index bfb2075..a5756aa 100644 --- a/test/model/ProductListEvent.spec.js +++ b/test/model/ProductListEvent.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductListItemReference.spec.js b/test/model/ProductListItemReference.spec.js index b3a8079..476bb65 100644 --- a/test/model/ProductListItemReference.spec.js +++ b/test/model/ProductListItemReference.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductListLink.spec.js b/test/model/ProductListLink.spec.js index ccecdc9..f5074dd 100644 --- a/test/model/ProductListLink.spec.js +++ b/test/model/ProductListLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductListRegistrant.spec.js b/test/model/ProductListRegistrant.spec.js index 01cab81..8b1e787 100644 --- a/test/model/ProductListRegistrant.spec.js +++ b/test/model/ProductListRegistrant.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductListShippingAddress.spec.js b/test/model/ProductListShippingAddress.spec.js index 67802f2..83e9d96 100644 --- a/test/model/ProductListShippingAddress.spec.js +++ b/test/model/ProductListShippingAddress.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductPromotion.spec.js b/test/model/ProductPromotion.spec.js index fa59e08..fc9878d 100644 --- a/test/model/ProductPromotion.spec.js +++ b/test/model/ProductPromotion.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductResult.spec.js b/test/model/ProductResult.spec.js index 6bf8af8..e54c368 100644 --- a/test/model/ProductResult.spec.js +++ b/test/model/ProductResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSearchHit.spec.js b/test/model/ProductSearchHit.spec.js index b6370f5..2ada81a 100644 --- a/test/model/ProductSearchHit.spec.js +++ b/test/model/ProductSearchHit.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSearchRefinement.spec.js b/test/model/ProductSearchRefinement.spec.js index 550d22d..11e8b75 100644 --- a/test/model/ProductSearchRefinement.spec.js +++ b/test/model/ProductSearchRefinement.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSearchRefinementValue.spec.js b/test/model/ProductSearchRefinementValue.spec.js index 9e3889e..371f6db 100644 --- a/test/model/ProductSearchRefinementValue.spec.js +++ b/test/model/ProductSearchRefinementValue.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSearchResult.spec.js b/test/model/ProductSearchResult.spec.js index 84b0d11..77b4dd7 100644 --- a/test/model/ProductSearchResult.spec.js +++ b/test/model/ProductSearchResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSearchSortingOption.spec.js b/test/model/ProductSearchSortingOption.spec.js index 8acee9e..0c39783 100644 --- a/test/model/ProductSearchSortingOption.spec.js +++ b/test/model/ProductSearchSortingOption.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductSimpleLink.spec.js b/test/model/ProductSimpleLink.spec.js index 8f9209b..fb27499 100644 --- a/test/model/ProductSimpleLink.spec.js +++ b/test/model/ProductSimpleLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ProductType.spec.js b/test/model/ProductType.spec.js index 1e3233c..2d69bf5 100644 --- a/test/model/ProductType.spec.js +++ b/test/model/ProductType.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Promotion.spec.js b/test/model/Promotion.spec.js index cc25890..636b5ad 100644 --- a/test/model/Promotion.spec.js +++ b/test/model/Promotion.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PromotionResult.spec.js b/test/model/PromotionResult.spec.js index 9187250..06f7761 100644 --- a/test/model/PromotionResult.spec.js +++ b/test/model/PromotionResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PublicProductList.spec.js b/test/model/PublicProductList.spec.js index 6c9cf10..40c0ae9 100644 --- a/test/model/PublicProductList.spec.js +++ b/test/model/PublicProductList.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PublicProductListItem.spec.js b/test/model/PublicProductListItem.spec.js index 6027742..e8ec271 100644 --- a/test/model/PublicProductListItem.spec.js +++ b/test/model/PublicProductListItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PublicProductListItemResult.spec.js b/test/model/PublicProductListItemResult.spec.js index 45fd846..6009a4c 100644 --- a/test/model/PublicProductListItemResult.spec.js +++ b/test/model/PublicProductListItemResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PublicProductListLink.spec.js b/test/model/PublicProductListLink.spec.js index dd538a7..c4e652d 100644 --- a/test/model/PublicProductListLink.spec.js +++ b/test/model/PublicProductListLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/PublicProductListResult.spec.js b/test/model/PublicProductListResult.spec.js index 20a91ce..769ffa2 100644 --- a/test/model/PublicProductListResult.spec.js +++ b/test/model/PublicProductListResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/QueryFilter.spec.js b/test/model/QueryFilter.spec.js index 3504ff5..c3e90ed 100644 --- a/test/model/QueryFilter.spec.js +++ b/test/model/QueryFilter.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Range2Filter.spec.js b/test/model/Range2Filter.spec.js index 41e7e30..ea5efe4 100644 --- a/test/model/Range2Filter.spec.js +++ b/test/model/Range2Filter.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/RangeFilter.spec.js b/test/model/RangeFilter.spec.js index 4e5a019..528941e 100644 --- a/test/model/RangeFilter.spec.js +++ b/test/model/RangeFilter.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Recommendation.spec.js b/test/model/Recommendation.spec.js index 613679a..ee7d215 100644 --- a/test/model/Recommendation.spec.js +++ b/test/model/Recommendation.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/RecommendationType.spec.js b/test/model/RecommendationType.spec.js index 50f7d72..e2e4b99 100644 --- a/test/model/RecommendationType.spec.js +++ b/test/model/RecommendationType.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ResultPage.spec.js b/test/model/ResultPage.spec.js index 1f03b2c..8495b95 100644 --- a/test/model/ResultPage.spec.js +++ b/test/model/ResultPage.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Shipment.spec.js b/test/model/Shipment.spec.js index ed5a6a0..8407132 100644 --- a/test/model/Shipment.spec.js +++ b/test/model/Shipment.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ShippingItem.spec.js b/test/model/ShippingItem.spec.js index 335093c..d760331 100644 --- a/test/model/ShippingItem.spec.js +++ b/test/model/ShippingItem.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ShippingMethod.spec.js b/test/model/ShippingMethod.spec.js index f98d3e5..f2290b1 100644 --- a/test/model/ShippingMethod.spec.js +++ b/test/model/ShippingMethod.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ShippingMethodResult.spec.js b/test/model/ShippingMethodResult.spec.js index 786af87..433d378 100644 --- a/test/model/ShippingMethodResult.spec.js +++ b/test/model/ShippingMethodResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/ShippingPromotion.spec.js b/test/model/ShippingPromotion.spec.js index dbe9376..9cf0c93 100644 --- a/test/model/ShippingPromotion.spec.js +++ b/test/model/ShippingPromotion.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SimpleLink.spec.js b/test/model/SimpleLink.spec.js index 575f833..6567c20 100644 --- a/test/model/SimpleLink.spec.js +++ b/test/model/SimpleLink.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Site.spec.js b/test/model/Site.spec.js index 2cf0304..a978d5d 100644 --- a/test/model/Site.spec.js +++ b/test/model/Site.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Sort.spec.js b/test/model/Sort.spec.js index a37f674..1bbb48f 100644 --- a/test/model/Sort.spec.js +++ b/test/model/Sort.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Status.spec.js b/test/model/Status.spec.js index 3ca1793..7d896c9 100644 --- a/test/model/Status.spec.js +++ b/test/model/Status.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Store.spec.js b/test/model/Store.spec.js index f8296d3..b98b74f 100644 --- a/test/model/Store.spec.js +++ b/test/model/Store.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/StoreResult.spec.js b/test/model/StoreResult.spec.js index 1414b7e..26a9911 100644 --- a/test/model/StoreResult.spec.js +++ b/test/model/StoreResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedCategory.spec.js b/test/model/SuggestedCategory.spec.js index acc9b40..6da84a3 100644 --- a/test/model/SuggestedCategory.spec.js +++ b/test/model/SuggestedCategory.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedContent.spec.js b/test/model/SuggestedContent.spec.js index 62aadd2..02b46f7 100644 --- a/test/model/SuggestedContent.spec.js +++ b/test/model/SuggestedContent.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedPhrase.spec.js b/test/model/SuggestedPhrase.spec.js index 5897e20..a662a86 100644 --- a/test/model/SuggestedPhrase.spec.js +++ b/test/model/SuggestedPhrase.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedProduct.spec.js b/test/model/SuggestedProduct.spec.js index 9799779..2c767f7 100644 --- a/test/model/SuggestedProduct.spec.js +++ b/test/model/SuggestedProduct.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedTerm.spec.js b/test/model/SuggestedTerm.spec.js index c77f3a2..5f2945e 100644 --- a/test/model/SuggestedTerm.spec.js +++ b/test/model/SuggestedTerm.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestedTerms.spec.js b/test/model/SuggestedTerms.spec.js index d5d2ace..208aa4f 100644 --- a/test/model/SuggestedTerms.spec.js +++ b/test/model/SuggestedTerms.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Suggestion.spec.js b/test/model/Suggestion.spec.js index d68a37a..de7c551 100644 --- a/test/model/Suggestion.spec.js +++ b/test/model/Suggestion.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/SuggestionResult.spec.js b/test/model/SuggestionResult.spec.js index 08394c4..943cb72 100644 --- a/test/model/SuggestionResult.spec.js +++ b/test/model/SuggestionResult.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/TermFilter.spec.js b/test/model/TermFilter.spec.js index 9309c43..35a2284 100644 --- a/test/model/TermFilter.spec.js +++ b/test/model/TermFilter.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/TermQuery.spec.js b/test/model/TermQuery.spec.js index 04cd2f6..78549b3 100644 --- a/test/model/TermQuery.spec.js +++ b/test/model/TermQuery.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/TextQuery.spec.js b/test/model/TextQuery.spec.js index a1604a7..9a6b265 100644 --- a/test/model/TextQuery.spec.js +++ b/test/model/TextQuery.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/Variant.spec.js b/test/model/Variant.spec.js index b512aae..f679f67 100644 --- a/test/model/Variant.spec.js +++ b/test/model/Variant.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/VariationAttribute.spec.js b/test/model/VariationAttribute.spec.js index 1fea89f..9f40af4 100644 --- a/test/model/VariationAttribute.spec.js +++ b/test/model/VariationAttribute.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/VariationAttributeValue.spec.js b/test/model/VariationAttributeValue.spec.js index 21c35f7..00162fd 100644 --- a/test/model/VariationAttributeValue.spec.js +++ b/test/model/VariationAttributeValue.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/model/VariationGroup.spec.js b/test/model/VariationGroup.spec.js index 448941a..d241c46 100644 --- a/test/model/VariationGroup.spec.js +++ b/test/model/VariationGroup.spec.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ /** diff --git a/test/samples.js b/test/samples.js index 69b3fbe..db2fd39 100644 --- a/test/samples.js +++ b/test/samples.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ import ShopApi from '../src/index' diff --git a/test/utils.js b/test/utils.js index aefd971..63aa8b8 100644 --- a/test/utils.js +++ b/test/utils.js @@ -1,5 +1,5 @@ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ import ShopApi from '../src/index' From 6fdd61ba8ff325fe15bf376e68bc173cf930d264 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 09:13:15 -0700 Subject: [PATCH 02/21] Add defualt lang options for client generation --- lang-conf.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lang-conf.json diff --git a/lang-conf.json b/lang-conf.json new file mode 100644 index 0000000..2d6262f --- /dev/null +++ b/lang-conf.json @@ -0,0 +1,4 @@ +{ + "useES6": true, + "usePromises": true +} From 561c3d0a4c79cae90ee4923583268767992e24ab Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 09:13:43 -0700 Subject: [PATCH 03/21] Ignore empty constructors The generated code typically results in them. --- .eslintrc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc.yml b/.eslintrc.yml index a7be679..b73ceaa 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -8,4 +8,5 @@ globals: rules: camelcase: off no-prototype-builtins: 0 + no-useless-constructor: off parser: babel-eslint From 223d660a4cbf1f007312b41b4464cd69b722d07f Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 09:43:02 -0700 Subject: [PATCH 04/21] Allow rollup to compile class properties syntax --- .babelrc | 5 +- package-lock.json | 2415 +++++++++++++++++++++++---------------------- package.json | 1 + rollup.config.js | 6 +- 4 files changed, 1233 insertions(+), 1194 deletions(-) diff --git a/.babelrc b/.babelrc index 2a6d7dc..b2d122d 100644 --- a/.babelrc +++ b/.babelrc @@ -5,11 +5,12 @@ ["env", {"modules": false}] ], "plugins": [ - "external-helpers" + "external-helpers", + "transform-class-properties" ] }, "test": { "presets": ["env"] } } -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 27df670..fb160d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.9", + "version": "0.1.12", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -10,7 +10,7 @@ "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", "dev": true, "requires": { - "@babel/highlight": "7.0.0" + "@babel/highlight": "^7.0.0" } }, "@babel/generator": { @@ -19,11 +19,11 @@ "integrity": "sha512-53UOLK6TVNqKxf7RUh8NE851EHRxOOeVXKbK2bivdb+iziMyk03Sr4eaE9OELCbyZAAafAKPDwF2TPUES5QbxQ==", "dev": true, "requires": { - "@babel/types": "7.4.4", - "jsesc": "2.5.2", - "lodash": "4.17.11", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "@babel/types": "^7.4.4", + "jsesc": "^2.5.1", + "lodash": "^4.17.11", + "source-map": "^0.5.0", + "trim-right": "^1.0.1" }, "dependencies": { "jsesc": { @@ -40,9 +40,9 @@ "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "7.0.0", - "@babel/template": "7.4.4", - "@babel/types": "7.4.4" + "@babel/helper-get-function-arity": "^7.0.0", + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0" } }, "@babel/helper-get-function-arity": { @@ -51,7 +51,7 @@ "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", "dev": true, "requires": { - "@babel/types": "7.4.4" + "@babel/types": "^7.0.0" } }, "@babel/helper-split-export-declaration": { @@ -60,7 +60,7 @@ "integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==", "dev": true, "requires": { - "@babel/types": "7.4.4" + "@babel/types": "^7.4.4" } }, "@babel/highlight": { @@ -69,9 +69,9 @@ "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", "dev": true, "requires": { - "chalk": "2.4.2", - "esutils": "2.0.2", - "js-tokens": "4.0.0" + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" }, "dependencies": { "ansi-styles": { @@ -80,7 +80,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "chalk": { @@ -89,9 +89,9 @@ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "has-flag": { @@ -112,7 +112,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -129,9 +129,9 @@ "integrity": "sha512-CiGzLN9KgAvgZsnivND7rkA+AeJ9JB0ciPOD4U59GKbQP2iQl+olF1l76kJOupqidozfZ32ghwBEJDhnk9MEcw==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0", - "@babel/parser": "7.4.5", - "@babel/types": "7.4.4" + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.4.4", + "@babel/types": "^7.4.4" } }, "@babel/traverse": { @@ -140,15 +140,15 @@ "integrity": "sha512-Vc+qjynwkjRmIFGxy0KYoPj4FdVDxLej89kMHFsWScq999uX+pwcX4v9mWRjW0KcAYTPAuVQl2LKP1wEVLsp+A==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0", - "@babel/generator": "7.4.4", - "@babel/helper-function-name": "7.1.0", - "@babel/helper-split-export-declaration": "7.4.4", - "@babel/parser": "7.4.5", - "@babel/types": "7.4.4", - "debug": "4.1.1", - "globals": "11.12.0", - "lodash": "4.17.11" + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.4.4", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.4.4", + "@babel/parser": "^7.4.5", + "@babel/types": "^7.4.4", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.11" }, "dependencies": { "debug": { @@ -157,7 +157,7 @@ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { - "ms": "2.1.2" + "ms": "^2.1.1" } }, "globals": { @@ -180,9 +180,9 @@ "integrity": "sha512-dOllgYdnEFOebhkKCjzSVFqw/PmmB8pH6RGOWkY4GsboQNd47b1fBThBSwlHAq9alF9vc1M3+6oqR47R50L0tQ==", "dev": true, "requires": { - "esutils": "2.0.2", - "lodash": "4.17.11", - "to-fast-properties": "2.0.0" + "esutils": "^2.0.2", + "lodash": "^4.17.11", + "to-fast-properties": "^2.0.0" }, "dependencies": { "to-fast-properties": { @@ -199,7 +199,7 @@ "integrity": "sha1-hiRnWMfdbSGmR0/whKR0DsBesh8=", "dev": true, "requires": { - "mime-types": "2.1.17", + "mime-types": "~2.1.16", "negotiator": "0.6.1" } }, @@ -221,10 +221,10 @@ "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", "dev": true, "requires": { - "fast-deep-equal": "2.0.1", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.4.1", - "uri-js": "4.2.2" + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, "ansi-colors": { @@ -257,8 +257,8 @@ "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", "dev": true, "requires": { - "micromatch": "2.3.11", - "normalize-path": "2.1.1" + "micromatch": "^2.1.5", + "normalize-path": "^2.0.0" } }, "argparse": { @@ -267,7 +267,7 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "sprintf-js": "1.0.3" + "sprintf-js": "~1.0.2" } }, "arr-diff": { @@ -276,7 +276,7 @@ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "dev": true, "requires": { - "arr-flatten": "1.1.0" + "arr-flatten": "^1.0.1" } }, "arr-flatten": { @@ -303,7 +303,7 @@ "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "dev": true, "requires": { - "array-uniq": "1.0.3" + "array-uniq": "^1.0.1" } }, "array-uniq": { @@ -324,9 +324,9 @@ "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==", "dev": true, "requires": { - "bn.js": "4.11.8", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, "assert": { @@ -366,21 +366,21 @@ "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", "dev": true, "requires": { - "babel-core": "6.26.3", - "babel-polyfill": "6.26.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "chokidar": "1.7.0", - "commander": "2.12.2", - "convert-source-map": "1.5.1", - "fs-readdir-recursive": "1.1.0", - "glob": "7.1.2", - "lodash": "4.17.11", - "output-file-sync": "1.1.2", - "path-is-absolute": "1.0.1", - "slash": "1.0.0", - "source-map": "0.5.7", - "v8flags": "2.1.1" + "babel-core": "^6.26.0", + "babel-polyfill": "^6.26.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "chokidar": "^1.6.1", + "commander": "^2.11.0", + "convert-source-map": "^1.5.0", + "fs-readdir-recursive": "^1.0.0", + "glob": "^7.1.2", + "lodash": "^4.17.4", + "output-file-sync": "^1.1.2", + "path-is-absolute": "^1.0.1", + "slash": "^1.0.0", + "source-map": "^0.5.6", + "v8flags": "^2.1.1" }, "dependencies": { "babel-core": { @@ -389,25 +389,25 @@ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.1", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.11", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.8", - "slash": "1.0.0", - "source-map": "0.5.7" + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" } } } @@ -418,9 +418,9 @@ "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" } }, "babel-core": { @@ -429,25 +429,25 @@ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.1", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.11", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.8", - "slash": "1.0.0", - "source-map": "0.5.7" + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" } }, "babel-eslint": { @@ -456,12 +456,12 @@ "integrity": "sha512-UdsurWPtgiPgpJ06ryUnuaSXC2s0WoSZnQmEpbAH65XZSdwowgN5MvyP7e88nW07FYXv72erVtpBkxyDVKhH1Q==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0", - "@babel/parser": "7.4.5", - "@babel/traverse": "7.4.5", - "@babel/types": "7.4.4", + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.0.0", + "@babel/traverse": "^7.0.0", + "@babel/types": "^7.0.0", "eslint-scope": "3.7.1", - "eslint-visitor-keys": "1.0.0" + "eslint-visitor-keys": "^1.0.0" }, "dependencies": { "eslint-scope": { @@ -470,8 +470,8 @@ "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", "dev": true, "requires": { - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } } } @@ -482,14 +482,14 @@ "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.11", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" } }, "babel-helper-builder-binary-assignment-operator-visitor": { @@ -498,9 +498,9 @@ "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", "dev": true, "requires": { - "babel-helper-explode-assignable-expression": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-call-delegate": { @@ -509,10 +509,10 @@ "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", "dev": true, "requires": { - "babel-helper-hoist-variables": "6.24.1", - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-define-map": { @@ -521,10 +521,10 @@ "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.11" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-helper-explode-assignable-expression": { @@ -533,9 +533,9 @@ "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-function-name": { @@ -544,11 +544,11 @@ "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", "dev": true, "requires": { - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-get-function-arity": { @@ -557,8 +557,8 @@ "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-hoist-variables": { @@ -567,8 +567,8 @@ "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-optimise-call-expression": { @@ -577,8 +577,8 @@ "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-regex": { @@ -587,9 +587,9 @@ "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.11" + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-helper-remap-async-to-generator": { @@ -598,11 +598,11 @@ "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-replace-supers": { @@ -611,12 +611,12 @@ "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", "dev": true, "requires": { - "babel-helper-optimise-call-expression": "6.24.1", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helpers": { @@ -625,8 +625,8 @@ "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-messages": { @@ -635,7 +635,7 @@ "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-check-es2015-constants": { @@ -644,7 +644,7 @@ "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-external-helpers": { @@ -653,7 +653,7 @@ "integrity": "sha1-IoX0iwK9Xe3oUXXK+MYuhq3M76E=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-syntax-async-functions": { @@ -662,6 +662,12 @@ "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", "dev": true }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", + "dev": true + }, "babel-plugin-syntax-exponentiation-operator": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", @@ -680,9 +686,21 @@ "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "6.24.1", - "babel-plugin-syntax-async-functions": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", + "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-plugin-syntax-class-properties": "^6.8.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-arrow-functions": { @@ -691,7 +709,7 @@ "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-block-scoped-functions": { @@ -700,7 +718,7 @@ "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-block-scoping": { @@ -709,11 +727,11 @@ "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.11" + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-plugin-transform-es2015-classes": { @@ -722,15 +740,15 @@ "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", "dev": true, "requires": { - "babel-helper-define-map": "6.26.0", - "babel-helper-function-name": "6.24.1", - "babel-helper-optimise-call-expression": "6.24.1", - "babel-helper-replace-supers": "6.24.1", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-define-map": "^6.24.1", + "babel-helper-function-name": "^6.24.1", + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-helper-replace-supers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-computed-properties": { @@ -739,8 +757,8 @@ "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-destructuring": { @@ -749,7 +767,7 @@ "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-duplicate-keys": { @@ -758,8 +776,8 @@ "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-for-of": { @@ -768,7 +786,7 @@ "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-function-name": { @@ -777,9 +795,9 @@ "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-literals": { @@ -788,7 +806,7 @@ "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-modules-amd": { @@ -797,9 +815,9 @@ "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-modules-commonjs": { @@ -808,10 +826,10 @@ "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", "dev": true, "requires": { - "babel-plugin-transform-strict-mode": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-types": "6.26.0" + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" } }, "babel-plugin-transform-es2015-modules-systemjs": { @@ -820,9 +838,9 @@ "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", "dev": true, "requires": { - "babel-helper-hoist-variables": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-modules-umd": { @@ -831,9 +849,9 @@ "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-amd": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-object-super": { @@ -842,8 +860,8 @@ "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", "dev": true, "requires": { - "babel-helper-replace-supers": "6.24.1", - "babel-runtime": "6.26.0" + "babel-helper-replace-supers": "^6.24.1", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-parameters": { @@ -852,12 +870,12 @@ "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", "dev": true, "requires": { - "babel-helper-call-delegate": "6.24.1", - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-shorthand-properties": { @@ -866,8 +884,8 @@ "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-spread": { @@ -876,7 +894,7 @@ "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-sticky-regex": { @@ -885,9 +903,9 @@ "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-template-literals": { @@ -896,7 +914,7 @@ "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-typeof-symbol": { @@ -905,7 +923,7 @@ "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-unicode-regex": { @@ -914,9 +932,9 @@ "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "regexpu-core": "2.0.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "regexpu-core": "^2.0.0" } }, "babel-plugin-transform-exponentiation-operator": { @@ -925,9 +943,9 @@ "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", "dev": true, "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", - "babel-plugin-syntax-exponentiation-operator": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-regenerator": { @@ -936,7 +954,7 @@ "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", "dev": true, "requires": { - "regenerator-transform": "0.10.1" + "regenerator-transform": "^0.10.0" } }, "babel-plugin-transform-strict-mode": { @@ -945,8 +963,8 @@ "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-polyfill": { @@ -955,9 +973,9 @@ "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "core-js": "2.5.1", - "regenerator-runtime": "0.10.5" + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "regenerator-runtime": "^0.10.5" }, "dependencies": { "regenerator-runtime": { @@ -974,36 +992,36 @@ "integrity": "sha512-9OR2afuKDneX2/q2EurSftUYM0xGu4O2D9adAhVfADDhrYDaxXV0rBbevVYoY9n6nyX1PmQW/0jtpJvUNr9CHg==", "dev": true, "requires": { - "babel-plugin-check-es2015-constants": "6.22.0", - "babel-plugin-syntax-trailing-function-commas": "6.22.0", - "babel-plugin-transform-async-to-generator": "6.24.1", - "babel-plugin-transform-es2015-arrow-functions": "6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", - "babel-plugin-transform-es2015-block-scoping": "6.26.0", - "babel-plugin-transform-es2015-classes": "6.24.1", - "babel-plugin-transform-es2015-computed-properties": "6.24.1", - "babel-plugin-transform-es2015-destructuring": "6.23.0", - "babel-plugin-transform-es2015-duplicate-keys": "6.24.1", - "babel-plugin-transform-es2015-for-of": "6.23.0", - "babel-plugin-transform-es2015-function-name": "6.24.1", - "babel-plugin-transform-es2015-literals": "6.22.0", - "babel-plugin-transform-es2015-modules-amd": "6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "babel-plugin-transform-es2015-modules-systemjs": "6.24.1", - "babel-plugin-transform-es2015-modules-umd": "6.24.1", - "babel-plugin-transform-es2015-object-super": "6.24.1", - "babel-plugin-transform-es2015-parameters": "6.24.1", - "babel-plugin-transform-es2015-shorthand-properties": "6.24.1", - "babel-plugin-transform-es2015-spread": "6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "6.24.1", - "babel-plugin-transform-es2015-template-literals": "6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", - "babel-plugin-transform-es2015-unicode-regex": "6.24.1", - "babel-plugin-transform-exponentiation-operator": "6.24.1", - "babel-plugin-transform-regenerator": "6.26.0", - "browserslist": "3.2.8", - "invariant": "2.2.2", - "semver": "5.4.1" + "babel-plugin-check-es2015-constants": "^6.22.0", + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-to-generator": "^6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoping": "^6.23.0", + "babel-plugin-transform-es2015-classes": "^6.23.0", + "babel-plugin-transform-es2015-computed-properties": "^6.22.0", + "babel-plugin-transform-es2015-destructuring": "^6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", + "babel-plugin-transform-es2015-for-of": "^6.23.0", + "babel-plugin-transform-es2015-function-name": "^6.22.0", + "babel-plugin-transform-es2015-literals": "^6.22.0", + "babel-plugin-transform-es2015-modules-amd": "^6.22.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-umd": "^6.23.0", + "babel-plugin-transform-es2015-object-super": "^6.22.0", + "babel-plugin-transform-es2015-parameters": "^6.23.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", + "babel-plugin-transform-es2015-spread": "^6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", + "babel-plugin-transform-es2015-template-literals": "^6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", + "babel-plugin-transform-exponentiation-operator": "^6.22.0", + "babel-plugin-transform-regenerator": "^6.22.0", + "browserslist": "^3.2.6", + "invariant": "^2.2.2", + "semver": "^5.3.0" } }, "babel-register": { @@ -1012,13 +1030,13 @@ "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", "dev": true, "requires": { - "babel-core": "6.26.3", - "babel-runtime": "6.26.0", - "core-js": "2.5.1", - "home-or-tmp": "2.0.0", - "lodash": "4.17.11", - "mkdirp": "0.5.1", - "source-map-support": "0.4.18" + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" }, "dependencies": { "babel-core": { @@ -1027,25 +1045,25 @@ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.1", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.11", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.8", - "slash": "1.0.0", - "source-map": "0.5.7" + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" } } } @@ -1056,8 +1074,8 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.1", - "regenerator-runtime": "0.11.1" + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, "babel-template": { @@ -1066,11 +1084,11 @@ "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.11" + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" } }, "babel-traverse": { @@ -1079,15 +1097,15 @@ "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.2", - "lodash": "4.17.11" + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" } }, "babel-types": { @@ -1096,10 +1114,10 @@ "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.11", - "to-fast-properties": "1.0.3" + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" } }, "babylon": { @@ -1151,15 +1169,15 @@ "dev": true, "requires": { "bytes": "3.0.0", - "content-type": "1.0.4", + "content-type": "~1.0.4", "debug": "2.6.9", - "depd": "1.1.1", - "http-errors": "1.6.2", + "depd": "~1.1.1", + "http-errors": "~1.6.2", "iconv-lite": "0.4.19", - "on-finished": "2.3.0", + "on-finished": "~2.3.0", "qs": "6.5.1", "raw-body": "2.3.2", - "type-is": "1.6.15" + "type-is": "~1.6.15" } }, "brace-expansion": { @@ -1168,7 +1186,7 @@ "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -1178,9 +1196,9 @@ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "dev": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" } }, "brorand": { @@ -1218,12 +1236,12 @@ "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==", "dev": true, "requires": { - "buffer-xor": "1.0.3", - "cipher-base": "1.0.4", - "create-hash": "1.1.3", - "evp_bytestokey": "1.0.3", - "inherits": "2.0.3", - "safe-buffer": "5.1.1" + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "browserify-cipher": { @@ -1232,9 +1250,9 @@ "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=", "dev": true, "requires": { - "browserify-aes": "1.1.1", - "browserify-des": "1.0.0", - "evp_bytestokey": "1.0.3" + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" } }, "browserify-des": { @@ -1243,9 +1261,9 @@ "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=", "dev": true, "requires": { - "cipher-base": "1.0.4", - "des.js": "1.0.0", - "inherits": "2.0.3" + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1" } }, "browserify-rsa": { @@ -1254,8 +1272,8 @@ "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", "dev": true, "requires": { - "bn.js": "4.11.8", - "randombytes": "2.0.5" + "bn.js": "^4.1.0", + "randombytes": "^2.0.1" } }, "browserify-sign": { @@ -1264,13 +1282,13 @@ "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", "dev": true, "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "elliptic": "6.4.0", - "inherits": "2.0.3", - "parse-asn1": "5.1.0" + "bn.js": "^4.1.1", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.2", + "elliptic": "^6.0.0", + "inherits": "^2.0.1", + "parse-asn1": "^5.0.0" } }, "browserify-zlib": { @@ -1279,7 +1297,7 @@ "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", "dev": true, "requires": { - "pako": "0.2.9" + "pako": "~0.2.0" } }, "browserslist": { @@ -1288,8 +1306,8 @@ "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000978", - "electron-to-chromium": "1.3.176" + "caniuse-lite": "^1.0.30000844", + "electron-to-chromium": "^1.3.47" } }, "btoa": { @@ -1303,9 +1321,9 @@ "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { - "base64-js": "1.2.1", - "ieee754": "1.1.8", - "isarray": "1.0.0" + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" } }, "buffer-xor": { @@ -1356,7 +1374,7 @@ "integrity": "sha512-l2OUaz/3PU3MZylspVFJvwHCVfWyvcduPq4lv3AzZ2pJzZCo7kNKFNyatwujD7XgvGkNAE/Jhhbh2uARNwNkfw==", "dev": true, "requires": { - "lodash": "4.17.11" + "lodash": "^4.17.11" } }, "ccount": { @@ -1371,11 +1389,11 @@ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, "character-entities": { @@ -1414,15 +1432,15 @@ "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", "dev": true, "requires": { - "anymatch": "1.3.2", - "async-each": "1.0.1", - "fsevents": "1.2.9", - "glob-parent": "2.0.0", - "inherits": "2.0.3", - "is-binary-path": "1.0.1", - "is-glob": "2.0.1", - "path-is-absolute": "1.0.1", - "readdirp": "2.1.0" + "anymatch": "^1.3.0", + "async-each": "^1.0.0", + "fsevents": "^1.0.0", + "glob-parent": "^2.0.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^2.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0" } }, "cipher-base": { @@ -1431,8 +1449,8 @@ "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "cli-cursor": { @@ -1441,7 +1459,7 @@ "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "dev": true, "requires": { - "restore-cursor": "2.0.0" + "restore-cursor": "^2.0.0" } }, "cli-width": { @@ -1456,9 +1474,9 @@ "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", "dev": true, "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -1479,8 +1497,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -1489,7 +1507,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -1526,7 +1544,7 @@ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "commander": { @@ -1552,9 +1570,9 @@ "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "typedarray": "0.0.6" + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" } }, "console-browserify": { @@ -1563,7 +1581,7 @@ "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", "dev": true, "requires": { - "date-now": "0.1.4" + "date-now": "^0.1.4" } }, "constants-browserify": { @@ -1631,8 +1649,8 @@ "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", "dev": true, "requires": { - "bn.js": "4.11.8", - "elliptic": "6.4.0" + "bn.js": "^4.1.0", + "elliptic": "^6.0.0" } }, "create-hash": { @@ -1641,10 +1659,10 @@ "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", "dev": true, "requires": { - "cipher-base": "1.0.4", - "inherits": "2.0.3", - "ripemd160": "2.0.1", - "sha.js": "2.4.9" + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "sha.js": "^2.4.0" } }, "create-hmac": { @@ -1653,12 +1671,12 @@ "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", "dev": true, "requires": { - "cipher-base": "1.0.4", - "create-hash": "1.1.3", - "inherits": "2.0.3", - "ripemd160": "2.0.1", - "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, "cross-spawn": { @@ -1667,11 +1685,11 @@ "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", "dev": true, "requires": { - "nice-try": "1.0.5", - "path-key": "2.0.1", - "semver": "5.7.0", - "shebang-command": "1.2.0", - "which": "1.3.1" + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" }, "dependencies": { "semver": { @@ -1688,17 +1706,17 @@ "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", "dev": true, "requires": { - "browserify-cipher": "1.0.0", - "browserify-sign": "4.0.4", - "create-ecdh": "4.0.0", - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "diffie-hellman": "5.0.2", - "inherits": "2.0.3", - "pbkdf2": "3.0.14", - "public-encrypt": "4.0.0", - "randombytes": "2.0.5", - "randomfill": "1.0.3" + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" } }, "date-now": { @@ -1740,7 +1758,7 @@ "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", "dev": true, "requires": { - "object-keys": "1.1.1" + "object-keys": "^1.0.12" } }, "delayed-stream": { @@ -1760,8 +1778,8 @@ "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", "dev": true, "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, "destroy": { @@ -1776,7 +1794,7 @@ "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "diff": { @@ -1791,9 +1809,9 @@ "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=", "dev": true, "requires": { - "bn.js": "4.11.8", - "miller-rabin": "4.0.1", - "randombytes": "2.0.5" + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" } }, "doctrine": { @@ -1802,7 +1820,7 @@ "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", "dev": true, "requires": { - "esutils": "2.0.2" + "esutils": "^2.0.2" } }, "domain-browser": { @@ -1829,13 +1847,13 @@ "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", "dev": true, "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0", - "hash.js": "1.1.3", - "hmac-drbg": "1.0.1", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.0", - "minimalistic-crypto-utils": "1.0.1" + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" } }, "emoji-regex": { @@ -1856,7 +1874,7 @@ "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "dev": true, "requires": { - "once": "1.4.0" + "once": "^1.4.0" } }, "enhanced-resolve": { @@ -1865,9 +1883,9 @@ "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "memory-fs": "0.2.0", - "tapable": "0.1.10" + "graceful-fs": "^4.1.2", + "memory-fs": "^0.2.0", + "tapable": "^0.1.8" } }, "entities": { @@ -1882,7 +1900,7 @@ "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { - "is-arrayish": "0.2.1" + "is-arrayish": "^0.2.1" } }, "es-abstract": { @@ -1891,12 +1909,12 @@ "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", "dev": true, "requires": { - "es-to-primitive": "1.2.0", - "function-bind": "1.1.1", - "has": "1.0.3", - "is-callable": "1.1.4", - "is-regex": "1.0.4", - "object-keys": "1.1.1" + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" }, "dependencies": { "has": { @@ -1905,7 +1923,7 @@ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "dev": true, "requires": { - "function-bind": "1.1.1" + "function-bind": "^1.1.1" } } } @@ -1916,9 +1934,9 @@ "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", "dev": true, "requires": { - "is-callable": "1.1.4", - "is-date-object": "1.0.1", - "is-symbol": "1.0.2" + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" } }, "escape-html": { @@ -1939,42 +1957,42 @@ "integrity": "sha512-DyQRaMmORQ+JsWShYsSg4OPTjY56u1nCjAmICrE8vLWqyLKxhFXOthwMj1SA8xwfrv0CofLNVnqbfyhwCkaO0w==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0", - "ajv": "6.10.0", - "chalk": "2.4.2", - "cross-spawn": "6.0.5", - "debug": "4.1.1", - "doctrine": "3.0.0", - "eslint-scope": "4.0.3", - "eslint-utils": "1.3.1", - "eslint-visitor-keys": "1.0.0", - "espree": "6.0.0", - "esquery": "1.0.1", - "esutils": "2.0.2", - "file-entry-cache": "5.0.1", - "functional-red-black-tree": "1.0.1", - "glob-parent": "3.1.0", - "globals": "11.12.0", - "ignore": "4.0.6", - "import-fresh": "3.0.0", - "imurmurhash": "0.1.4", - "inquirer": "6.4.1", - "is-glob": "4.0.1", - "js-yaml": "3.13.1", - "json-stable-stringify-without-jsonify": "1.0.1", - "levn": "0.3.0", - "lodash": "4.17.11", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "natural-compare": "1.4.0", - "optionator": "0.8.2", - "progress": "2.0.3", - "regexpp": "2.0.1", - "semver": "5.7.0", - "strip-ansi": "4.0.0", - "strip-json-comments": "2.0.1", - "table": "5.4.1", - "text-table": "0.2.0" + "@babel/code-frame": "^7.0.0", + "ajv": "^6.10.0", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "eslint-scope": "^4.0.3", + "eslint-utils": "^1.3.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^6.0.0", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^3.1.0", + "globals": "^11.7.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "inquirer": "^6.2.2", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.11", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "semver": "^5.5.1", + "strip-ansi": "^4.0.0", + "strip-json-comments": "^2.0.1", + "table": "^5.2.3", + "text-table": "^0.2.0" }, "dependencies": { "ansi-regex": { @@ -1989,7 +2007,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "chalk": { @@ -1998,9 +2016,9 @@ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "debug": { @@ -2009,7 +2027,7 @@ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { - "ms": "2.1.2" + "ms": "^2.1.1" } }, "glob-parent": { @@ -2018,8 +2036,8 @@ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" }, "dependencies": { "is-glob": { @@ -2028,7 +2046,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.0" } } } @@ -2057,7 +2075,7 @@ "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.1" } }, "ms": { @@ -2078,7 +2096,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "supports-color": { @@ -2087,7 +2105,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -2098,9 +2116,9 @@ "integrity": "sha1-Wt2BBujJKNssuiMrzZ76hG49oWw=", "dev": true, "requires": { - "debug": "2.6.9", - "object-assign": "4.1.1", - "resolve": "1.5.0" + "debug": "^2.2.0", + "object-assign": "^4.0.1", + "resolve": "^1.1.6" } }, "eslint-import-resolver-webpack": { @@ -2109,17 +2127,17 @@ "integrity": "sha512-xLSNz4KbWvb8KrkDqWSmgmztq8uXq7R/rviOw1DYrh3Luxc8vpMnwO4hOt9Eot45VBiyjt1PxidrvJbZIWlItA==", "dev": true, "requires": { - "array-find": "1.0.0", - "debug": "2.6.9", - "enhanced-resolve": "0.9.1", - "find-root": "0.1.2", - "has": "1.0.1", - "interpret": "1.1.0", - "is-absolute": "0.2.6", - "lodash.get": "3.7.0", - "node-libs-browser": "1.1.1", - "resolve": "1.5.0", - "semver": "5.4.1" + "array-find": "^1.0.0", + "debug": "^2.6.8", + "enhanced-resolve": "~0.9.0", + "find-root": "^0.1.1", + "has": "^1.0.1", + "interpret": "^1.0.0", + "is-absolute": "^0.2.3", + "lodash.get": "^3.7.0", + "node-libs-browser": "^1.0.0", + "resolve": "^1.2.0", + "semver": "^5.3.0" } }, "eslint-module-utils": { @@ -2128,8 +2146,8 @@ "integrity": "sha512-jDI/X5l/6D1rRD/3T43q8Qgbls2nq5km5KSqiwlyUbGo5+04fXhMKdCPhjwbqAa6HXWaMxj8Q4hQDIh7IadJQw==", "dev": true, "requires": { - "debug": "2.6.9", - "pkg-dir": "1.0.0" + "debug": "^2.6.8", + "pkg-dir": "^1.0.0" } }, "eslint-plugin-import": { @@ -2138,16 +2156,16 @@ "integrity": "sha1-N8gB4K2g4pbL3yDD85OstbUq82s=", "dev": true, "requires": { - "builtin-modules": "1.1.1", - "contains-path": "0.1.0", - "debug": "2.6.9", + "builtin-modules": "^1.1.1", + "contains-path": "^0.1.0", + "debug": "^2.2.0", "doctrine": "1.5.0", - "eslint-import-resolver-node": "0.2.3", - "eslint-module-utils": "2.1.1", - "has": "1.0.1", - "lodash.cond": "4.5.2", - "minimatch": "3.0.4", - "read-pkg-up": "2.0.0" + "eslint-import-resolver-node": "^0.2.0", + "eslint-module-utils": "^2.0.0", + "has": "^1.0.1", + "lodash.cond": "^4.3.0", + "minimatch": "^3.0.3", + "read-pkg-up": "^2.0.0" }, "dependencies": { "doctrine": { @@ -2156,8 +2174,8 @@ "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", "dev": true, "requires": { - "esutils": "2.0.2", - "isarray": "1.0.0" + "esutils": "^2.0.2", + "isarray": "^1.0.0" } } } @@ -2168,8 +2186,8 @@ "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", "dev": true, "requires": { - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, "eslint-utils": { @@ -2190,9 +2208,9 @@ "integrity": "sha512-lJvCS6YbCn3ImT3yKkPe0+tJ+mH6ljhGNjHQH9mRtiO6gjhVAOhVXW1yjnwqGwTkK3bGbye+hb00nFNmu0l/1Q==", "dev": true, "requires": { - "acorn": "6.1.1", - "acorn-jsx": "5.0.1", - "eslint-visitor-keys": "1.0.0" + "acorn": "^6.0.7", + "acorn-jsx": "^5.0.0", + "eslint-visitor-keys": "^1.0.0" }, "dependencies": { "acorn": { @@ -2215,7 +2233,7 @@ "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.0.0" } }, "esrecurse": { @@ -2224,7 +2242,7 @@ "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.1.0" } }, "estraverse": { @@ -2263,8 +2281,8 @@ "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, "requires": { - "md5.js": "1.3.4", - "safe-buffer": "5.1.1" + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" } }, "execa": { @@ -2273,13 +2291,13 @@ "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", "dev": true, "requires": { - "cross-spawn": "6.0.5", - "get-stream": "4.1.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, "expand-brackets": { @@ -2288,7 +2306,7 @@ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", "dev": true, "requires": { - "is-posix-bracket": "0.1.1" + "is-posix-bracket": "^0.1.0" } }, "expand-range": { @@ -2297,7 +2315,7 @@ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "fill-range": "2.2.4" + "fill-range": "^2.1.0" } }, "expect.js": { @@ -2312,36 +2330,36 @@ "integrity": "sha1-41xt/i1kt9ygpc1PIXgb4ymeB2w=", "dev": true, "requires": { - "accepts": "1.3.4", + "accepts": "~1.3.4", "array-flatten": "1.1.1", "body-parser": "1.18.2", "content-disposition": "0.5.2", - "content-type": "1.0.4", + "content-type": "~1.0.4", "cookie": "0.3.1", "cookie-signature": "1.0.6", "debug": "2.6.9", - "depd": "1.1.1", - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "etag": "1.8.1", + "depd": "~1.1.1", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "etag": "~1.8.1", "finalhandler": "1.1.0", "fresh": "0.5.2", "merge-descriptors": "1.0.1", - "methods": "1.1.2", - "on-finished": "2.3.0", - "parseurl": "1.3.2", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", "path-to-regexp": "0.1.7", - "proxy-addr": "2.0.2", + "proxy-addr": "~2.0.2", "qs": "6.5.1", - "range-parser": "1.2.0", + "range-parser": "~1.2.0", "safe-buffer": "5.1.1", "send": "0.16.1", "serve-static": "1.13.1", "setprototypeof": "1.1.0", - "statuses": "1.3.1", - "type-is": "1.6.15", + "statuses": "~1.3.1", + "type-is": "~1.6.15", "utils-merge": "1.0.1", - "vary": "1.1.2" + "vary": "~1.1.2" } }, "extend": { @@ -2356,9 +2374,9 @@ "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", "dev": true, "requires": { - "chardet": "0.7.0", - "iconv-lite": "0.4.24", - "tmp": "0.0.33" + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" }, "dependencies": { "iconv-lite": { @@ -2367,7 +2385,7 @@ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": ">= 2.1.2 < 3" } } } @@ -2378,7 +2396,7 @@ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "fast-deep-equal": { @@ -2410,7 +2428,7 @@ "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.5" } }, "file-entry-cache": { @@ -2419,7 +2437,7 @@ "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", "dev": true, "requires": { - "flat-cache": "2.0.1" + "flat-cache": "^2.0.1" } }, "filename-regex": { @@ -2434,11 +2452,11 @@ "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "3.1.1", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, "finalhandler": { @@ -2448,12 +2466,12 @@ "dev": true, "requires": { "debug": "2.6.9", - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "on-finished": "2.3.0", - "parseurl": "1.3.2", - "statuses": "1.3.1", - "unpipe": "1.0.0" + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.2", + "statuses": "~1.3.1", + "unpipe": "~1.0.0" } }, "find-root": { @@ -2468,8 +2486,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "flat": { @@ -2478,7 +2496,7 @@ "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", "dev": true, "requires": { - "is-buffer": "2.0.3" + "is-buffer": "~2.0.3" }, "dependencies": { "is-buffer": { @@ -2495,7 +2513,7 @@ "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", "dev": true, "requires": { - "flatted": "2.0.1", + "flatted": "^2.0.0", "rimraf": "2.6.3", "write": "1.0.3" } @@ -2524,7 +2542,7 @@ "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", "dev": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "form-data": { @@ -2532,9 +2550,9 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.4.0.tgz", "integrity": "sha512-4FinE8RfqYnNim20xDwZZE0V2kOs/AuElIjFUbPuegQSaoZM+vUT5FnwSl10KPugH4voTg1bEQlcbCG9ka75TA==", "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.8", - "mime-types": "2.1.17" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" } }, "formatio": { @@ -2543,7 +2561,7 @@ "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", "dev": true, "requires": { - "samsam": "1.1.2" + "samsam": "~1.1" } }, "formidable": { @@ -2582,8 +2600,8 @@ "dev": true, "optional": true, "requires": { - "nan": "2.14.0", - "node-pre-gyp": "0.12.0" + "nan": "^2.12.1", + "node-pre-gyp": "^0.12.0" }, "dependencies": { "abbrev": { @@ -2595,7 +2613,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2609,21 +2628,23 @@ "dev": true, "optional": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -2636,17 +2657,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2660,7 +2684,7 @@ "dev": true, "optional": true, "requires": { - "ms": "2.1.1" + "ms": "^2.1.1" } }, "deep-extend": { @@ -2687,7 +2711,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "2.3.5" + "minipass": "^2.2.1" } }, "fs.realpath": { @@ -2702,14 +2726,14 @@ "dev": true, "optional": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.3" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } }, "glob": { @@ -2718,12 +2742,12 @@ "dev": true, "optional": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-unicode": { @@ -2738,7 +2762,7 @@ "dev": true, "optional": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": ">= 2.1.2 < 3" } }, "ignore-walk": { @@ -2747,7 +2771,7 @@ "dev": true, "optional": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.4" } }, "inflight": { @@ -2756,14 +2780,15 @@ "dev": true, "optional": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2775,8 +2800,9 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "isarray": { @@ -2789,22 +2815,25 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { - "safe-buffer": "5.1.2", - "yallist": "3.0.3" + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" } }, "minizlib": { @@ -2813,13 +2842,14 @@ "dev": true, "optional": true, "requires": { - "minipass": "2.3.5" + "minipass": "^2.2.1" } }, "mkdirp": { "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -2836,9 +2866,9 @@ "dev": true, "optional": true, "requires": { - "debug": "4.1.1", - "iconv-lite": "0.4.24", - "sax": "1.2.4" + "debug": "^4.1.0", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, "node-pre-gyp": { @@ -2847,16 +2877,16 @@ "dev": true, "optional": true, "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.3.0", - "nopt": "4.0.1", - "npm-packlist": "1.4.1", - "npmlog": "4.1.2", - "rc": "1.2.8", - "rimraf": "2.6.3", - "semver": "5.7.0", - "tar": "4.4.8" + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" } }, "nopt": { @@ -2865,8 +2895,8 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" + "abbrev": "1", + "osenv": "^0.1.4" } }, "npm-bundled": { @@ -2881,8 +2911,8 @@ "dev": true, "optional": true, "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.6" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { @@ -2891,16 +2921,17 @@ "dev": true, "optional": true, "requires": { - "are-we-there-yet": "1.1.5", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -2912,8 +2943,9 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { @@ -2934,8 +2966,8 @@ "dev": true, "optional": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { @@ -2956,10 +2988,10 @@ "dev": true, "optional": true, "requires": { - "deep-extend": "0.6.0", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -2976,13 +3008,13 @@ "dev": true, "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.2", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rimraf": { @@ -2991,13 +3023,14 @@ "dev": true, "optional": true, "requires": { - "glob": "7.1.3" + "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3033,10 +3066,11 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { @@ -3045,15 +3079,16 @@ "dev": true, "optional": true, "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-json-comments": { @@ -3068,13 +3103,13 @@ "dev": true, "optional": true, "requires": { - "chownr": "1.1.1", - "fs-minipass": "1.2.5", - "minipass": "2.3.5", - "minizlib": "1.2.1", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.2", - "yallist": "3.0.3" + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.4", + "minizlib": "^1.1.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" } }, "util-deprecate": { @@ -3089,18 +3124,20 @@ "dev": true, "optional": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -3128,7 +3165,7 @@ "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "dev": true, "requires": { - "pump": "3.0.0" + "pump": "^3.0.0" } }, "glob": { @@ -3137,12 +3174,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-base": { @@ -3151,8 +3188,8 @@ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", "dev": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" } }, "glob-parent": { @@ -3161,7 +3198,7 @@ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "globals": { @@ -3188,7 +3225,7 @@ "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", "dev": true, "requires": { - "function-bind": "1.1.1" + "function-bind": "^1.0.2" } }, "has-ansi": { @@ -3197,7 +3234,7 @@ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "has-flag": { @@ -3218,7 +3255,7 @@ "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", "dev": true, "requires": { - "inherits": "2.0.3" + "inherits": "^2.0.1" } }, "hash.js": { @@ -3227,8 +3264,8 @@ "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", "dev": true, "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.0" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.0" } }, "he": { @@ -3243,9 +3280,9 @@ "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "dev": true, "requires": { - "hash.js": "1.1.3", - "minimalistic-assert": "1.0.0", - "minimalistic-crypto-utils": "1.0.1" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, "home-or-tmp": { @@ -3254,8 +3291,8 @@ "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" } }, "hosted-git-info": { @@ -3273,7 +3310,7 @@ "depd": "1.1.1", "inherits": "2.0.3", "setprototypeof": "1.0.3", - "statuses": "1.3.1" + "statuses": ">= 1.3.1 < 2" }, "dependencies": { "setprototypeof": { @@ -3314,8 +3351,8 @@ "integrity": "sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ==", "dev": true, "requires": { - "parent-module": "1.0.1", - "resolve-from": "4.0.0" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" } }, "imurmurhash": { @@ -3336,8 +3373,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -3357,19 +3394,19 @@ "integrity": "sha512-/Jw+qPZx4EDYsaT6uz7F4GJRNFMRdKNeUZw3ZnKV8lyuUgz/YWRCSUAJMZSVhSq4Ec0R2oYnyi6b3d4JXcL5Nw==", "dev": true, "requires": { - "ansi-escapes": "3.2.0", - "chalk": "2.4.2", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "3.0.3", - "figures": "2.0.0", - "lodash": "4.17.11", + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.11", "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rxjs": "6.5.2", - "string-width": "2.1.1", - "strip-ansi": "5.2.0", - "through": "2.3.8" + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" }, "dependencies": { "ansi-regex": { @@ -3384,7 +3421,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "chalk": { @@ -3393,9 +3430,9 @@ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "has-flag": { @@ -3416,8 +3453,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, "dependencies": { "strip-ansi": { @@ -3426,7 +3463,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -3437,7 +3474,7 @@ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "4.1.0" + "ansi-regex": "^4.1.0" }, "dependencies": { "ansi-regex": { @@ -3454,7 +3491,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -3471,7 +3508,7 @@ "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", "dev": true, "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "invert-kv": { @@ -3498,8 +3535,8 @@ "integrity": "sha1-IN5p89uULvLYe5wto28XIjWxtes=", "dev": true, "requires": { - "is-relative": "0.2.1", - "is-windows": "0.2.0" + "is-relative": "^0.2.1", + "is-windows": "^0.2.0" } }, "is-alphabetical": { @@ -3520,8 +3557,8 @@ "integrity": "sha512-A1IGAPO5AW9vSh7omxIlOGwIqEvpW/TA+DksVOPM5ODuxKlZS09+TEM1E3275lJqO2oJ38vDpeAL3DCIiHE6eA==", "dev": true, "requires": { - "is-alphabetical": "1.0.3", - "is-decimal": "1.0.3" + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0" } }, "is-arrayish": { @@ -3536,7 +3573,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "^1.0.0" } }, "is-buffer": { @@ -3551,7 +3588,7 @@ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, "is-callable": { @@ -3584,7 +3621,7 @@ "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", "dev": true, "requires": { - "is-primitive": "2.0.0" + "is-primitive": "^2.0.0" } }, "is-extendable": { @@ -3605,7 +3642,7 @@ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-fullwidth-code-point": { @@ -3614,7 +3651,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-glob": { @@ -3623,7 +3660,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "is-hexadecimal": { @@ -3650,7 +3687,7 @@ "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-posix-bracket": { @@ -3677,7 +3714,7 @@ "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", "dev": true, "requires": { - "has": "1.0.1" + "has": "^1.0.1" } }, "is-relative": { @@ -3686,7 +3723,7 @@ "integrity": "sha1-0n9MfVFtF1+2ENuEu+7yPDvJeqU=", "dev": true, "requires": { - "is-unc-path": "0.1.2" + "is-unc-path": "^0.1.1" } }, "is-stream": { @@ -3701,7 +3738,7 @@ "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", "dev": true, "requires": { - "has-symbols": "1.0.0" + "has-symbols": "^1.0.0" } }, "is-unc-path": { @@ -3710,7 +3747,7 @@ "integrity": "sha1-arBTpyVzwQJQ/0FqOBTDUXivObk=", "dev": true, "requires": { - "unc-path-regex": "0.1.2" + "unc-path-regex": "^0.1.0" } }, "is-whitespace-character": { @@ -3764,8 +3801,8 @@ "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.1" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "js2xmlparser": { @@ -3774,7 +3811,7 @@ "integrity": "sha512-WuNgdZOXVmBk5kUPMcTcVUpbGRzLfNkv7+7APq7WiDihpXVKrgxo6wwRpRl9OQeEBgKCVk9mR7RbzrnNWC8oBw==", "dev": true, "requires": { - "xmlcreate": "2.0.1" + "xmlcreate": "^2.0.0" } }, "jsdoc": { @@ -3783,20 +3820,20 @@ "integrity": "sha512-S2vzg99C5+gb7FWlrK4TVdyzVPGGkdvpDkCEJH1JABi2PKzPeLu5/zZffcJUifgWUJqXWl41Hoc+MmuM2GukIg==", "dev": true, "requires": { - "@babel/parser": "7.4.5", - "bluebird": "3.5.5", - "catharsis": "0.8.10", - "escape-string-regexp": "2.0.0", - "js2xmlparser": "4.0.0", - "klaw": "3.0.0", - "markdown-it": "8.4.2", - "markdown-it-anchor": "5.2.4", - "marked": "0.6.2", - "mkdirp": "0.5.1", - "requizzle": "0.2.2", - "strip-json-comments": "3.0.1", + "@babel/parser": "^7.4.4", + "bluebird": "^3.5.4", + "catharsis": "^0.8.10", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.0", + "klaw": "^3.0.0", + "markdown-it": "^8.4.2", + "markdown-it-anchor": "^5.0.2", + "marked": "^0.6.2", + "mkdirp": "^0.5.1", + "requizzle": "^0.2.2", + "strip-json-comments": "^3.0.1", "taffydb": "2.6.2", - "underscore": "1.9.1" + "underscore": "~1.9.1" }, "dependencies": { "escape-string-regexp": { @@ -3843,7 +3880,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } }, "klaw": { @@ -3852,7 +3889,7 @@ "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "^4.1.9" } }, "lcid": { @@ -3861,7 +3898,7 @@ "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", "dev": true, "requires": { - "invert-kv": "2.0.0" + "invert-kv": "^2.0.0" } }, "levn": { @@ -3870,8 +3907,8 @@ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, "requires": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" } }, "linkify-it": { @@ -3880,7 +3917,7 @@ "integrity": "sha512-4REs8/062kV2DSHxNfq5183zrqXMl7WP0WzABH9IeJI+NLm429FgE1PDecltYfnOoFDFlZGh2T8PfZn0r+GTRg==", "dev": true, "requires": { - "uc.micro": "1.0.6" + "uc.micro": "^1.0.1" } }, "load-json-file": { @@ -3889,10 +3926,10 @@ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "strip-bom": "3.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" } }, "load-plugin": { @@ -3901,8 +3938,8 @@ "integrity": "sha512-dYB1lbwqHgPTrruy9glukCu8Ya9vzj6TMfouCtj2H/GuJ+8syioisgKTBPxnCi6m8K8jINKfTOxOHngFkUYqHw==", "dev": true, "requires": { - "npm-prefix": "1.2.0", - "resolve-from": "5.0.0" + "npm-prefix": "^1.2.0", + "resolve-from": "^5.0.0" }, "dependencies": { "resolve-from": { @@ -3919,8 +3956,8 @@ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" }, "dependencies": { "path-exists": { @@ -3949,7 +3986,7 @@ "integrity": "sha1-PsXiYGAU9MuX91X+aRTt2L/ADqw=", "dev": true, "requires": { - "lodash.isarray": "3.0.4" + "lodash.isarray": "^3.0.0" } }, "lodash.cond": { @@ -3964,8 +4001,8 @@ "integrity": "sha1-POaK4skWg7KBzFOUEoMDy/deaR8=", "dev": true, "requires": { - "lodash._baseget": "3.7.2", - "lodash._topath": "3.8.1" + "lodash._baseget": "^3.0.0", + "lodash._topath": "^3.0.0" } }, "lodash.isarray": { @@ -3980,7 +4017,7 @@ "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", "dev": true, "requires": { - "chalk": "2.4.2" + "chalk": "^2.0.1" }, "dependencies": { "ansi-styles": { @@ -3989,7 +4026,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "chalk": { @@ -3998,9 +4035,9 @@ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "has-flag": { @@ -4015,7 +4052,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -4038,7 +4075,7 @@ "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "dev": true, "requires": { - "js-tokens": "3.0.2" + "js-tokens": "^3.0.0" } }, "magic-string": { @@ -4047,7 +4084,7 @@ "integrity": "sha512-kxBL06p6iO2qPBHsqGK2b3cRwiRGpnmSuVWNhwHcMX7qJOUr1HvricYP1LZOCdkQBUp0jiWg2d6WJwR3vYgByw==", "dev": true, "requires": { - "vlq": "0.2.3" + "vlq": "^0.2.1" } }, "map-age-cleaner": { @@ -4056,7 +4093,7 @@ "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", "dev": true, "requires": { - "p-defer": "1.0.0" + "p-defer": "^1.0.0" } }, "markdown-escapes": { @@ -4077,11 +4114,11 @@ "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==", "dev": true, "requires": { - "argparse": "1.0.10", - "entities": "1.1.2", - "linkify-it": "2.1.0", - "mdurl": "1.0.1", - "uc.micro": "1.0.6" + "argparse": "^1.0.7", + "entities": "~1.1.1", + "linkify-it": "^2.0.0", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" } }, "markdown-it-anchor": { @@ -4114,8 +4151,8 @@ "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", "dev": true, "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" + "hash-base": "^3.0.0", + "inherits": "^2.0.1" }, "dependencies": { "hash-base": { @@ -4124,8 +4161,8 @@ "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } } } @@ -4142,7 +4179,7 @@ "integrity": "sha512-nRiU5GpNy62rZppDKbLwhhtw5DXoFMqw9UNZFmlPsNaQCZ//WLjGKUwWMdJrUH+Se7UvtO2gXtAMe0g/N+eI5w==", "dev": true, "requires": { - "unist-util-visit": "1.4.1" + "unist-util-visit": "^1.1.0" } }, "mdast-util-heading-style": { @@ -4175,9 +4212,9 @@ "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", "dev": true, "requires": { - "map-age-cleaner": "0.1.3", - "mimic-fn": "2.1.0", - "p-is-promise": "2.1.0" + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" }, "dependencies": { "mimic-fn": { @@ -4211,19 +4248,19 @@ "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" } }, "miller-rabin": { @@ -4232,8 +4269,8 @@ "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0" + "bn.js": "^4.0.0", + "brorand": "^1.0.1" } }, "mime": { @@ -4251,7 +4288,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", "requires": { - "mime-db": "1.30.0" + "mime-db": "~1.30.0" } }, "mimic-fn": { @@ -4278,7 +4315,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -4302,7 +4339,7 @@ "integrity": "sha512-c3IqxcF8UDlWQbYp+cGFKZvGhkqMbOmiJxVJYAGFl06H+RtdWFh8cRYMTpygSdiI+KS+t8BI/70Ogblf5c6qog==", "dev": true, "requires": { - "glob": "7.1.2", + "glob": "^7.1.1", "remark-cli": "2.1.0", "remark-lint": "5.2.0", "remark-preset-lint-recommended": "1.0.0" @@ -4345,7 +4382,7 @@ "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "dev": true, "requires": { - "ms": "2.1.1" + "ms": "^2.1.1" } }, "find-up": { @@ -4354,7 +4391,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "3.0.0" + "locate-path": "^3.0.0" } }, "glob": { @@ -4363,12 +4400,12 @@ "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-flag": { @@ -4383,8 +4420,8 @@ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "p-locate": "3.0.0", - "path-exists": "3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, "ms": { @@ -4399,7 +4436,7 @@ "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", "dev": true, "requires": { - "p-try": "2.2.0" + "p-try": "^2.0.0" } }, "p-locate": { @@ -4408,7 +4445,7 @@ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "p-limit": "2.2.0" + "p-limit": "^2.0.0" } }, "path-exists": { @@ -4423,7 +4460,7 @@ "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -4471,8 +4508,8 @@ "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", "dev": true, "requires": { - "object.getownpropertydescriptors": "2.0.3", - "semver": "5.7.0" + "object.getownpropertydescriptors": "^2.0.3", + "semver": "^5.7.0" }, "dependencies": { "semver": { @@ -4489,28 +4526,28 @@ "integrity": "sha1-KjgkOr7dff/NB6l8mspWaJdab+o=", "dev": true, "requires": { - "assert": "1.4.1", - "browserify-zlib": "0.1.4", - "buffer": "4.9.1", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "domain-browser": "1.1.7", - "events": "1.1.1", + "assert": "^1.1.1", + "browserify-zlib": "^0.1.4", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^1.0.0", "https-browserify": "0.0.1", - "os-browserify": "0.2.1", + "os-browserify": "^0.2.0", "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "readable-stream": "2.3.3", - "stream-browserify": "2.0.1", - "stream-http": "2.7.2", - "string_decoder": "0.10.31", - "timers-browserify": "1.4.2", + "process": "^0.11.0", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.0.5", + "stream-browserify": "^2.0.1", + "stream-http": "^2.3.1", + "string_decoder": "^0.10.25", + "timers-browserify": "^1.4.2", "tty-browserify": "0.0.0", - "url": "0.11.0", - "util": "0.10.3", + "url": "^0.11.0", + "util": "^0.10.3", "vm-browserify": "0.0.4" }, "dependencies": { @@ -4528,10 +4565,10 @@ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { - "hosted-git-info": "2.5.0", - "is-builtin-module": "1.0.0", - "semver": "5.4.1", - "validate-npm-package-license": "3.0.1" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "normalize-path": { @@ -4540,7 +4577,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "1.1.0" + "remove-trailing-separator": "^1.0.1" } }, "npm-prefix": { @@ -4549,9 +4586,9 @@ "integrity": "sha1-5hlFX3B0ulTMZtbQ033Z8b5ry8A=", "dev": true, "requires": { - "rc": "1.2.8", - "shellsubstitute": "1.2.0", - "untildify": "2.1.0" + "rc": "^1.1.0", + "shellsubstitute": "^1.1.0", + "untildify": "^2.1.0" } }, "npm-run-path": { @@ -4560,7 +4597,7 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "number-is-nan": { @@ -4587,10 +4624,10 @@ "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", "dev": true, "requires": { - "define-properties": "1.1.3", - "function-bind": "1.1.1", - "has-symbols": "1.0.0", - "object-keys": "1.1.1" + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" } }, "object.getownpropertydescriptors": { @@ -4599,8 +4636,8 @@ "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", "dev": true, "requires": { - "define-properties": "1.1.3", - "es-abstract": "1.13.0" + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" } }, "object.omit": { @@ -4609,8 +4646,8 @@ "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" } }, "on-finished": { @@ -4628,7 +4665,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "onetime": { @@ -4637,7 +4674,7 @@ "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "optionator": { @@ -4646,12 +4683,12 @@ "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "dev": true, "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" } }, "os-browserify": { @@ -4672,9 +4709,9 @@ "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", "dev": true, "requires": { - "execa": "1.0.0", - "lcid": "2.0.0", - "mem": "4.3.0" + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" } }, "os-tmpdir": { @@ -4689,9 +4726,9 @@ "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "mkdirp": "0.5.1", - "object-assign": "4.1.1" + "graceful-fs": "^4.1.4", + "mkdirp": "^0.5.1", + "object-assign": "^4.1.0" } }, "p-defer": { @@ -4724,7 +4761,7 @@ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "p-limit": "1.1.0" + "p-limit": "^1.1.0" } }, "p-try": { @@ -4745,7 +4782,7 @@ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "dev": true, "requires": { - "callsites": "3.1.0" + "callsites": "^3.0.0" } }, "parse-asn1": { @@ -4754,11 +4791,11 @@ "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", "dev": true, "requires": { - "asn1.js": "4.9.2", - "browserify-aes": "1.1.1", - "create-hash": "1.1.3", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.14" + "asn1.js": "^4.0.0", + "browserify-aes": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3" } }, "parse-entities": { @@ -4767,12 +4804,12 @@ "integrity": "sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg==", "dev": true, "requires": { - "character-entities": "1.2.3", - "character-entities-legacy": "1.1.3", - "character-reference-invalid": "1.1.3", - "is-alphanumerical": "1.0.3", - "is-decimal": "1.0.3", - "is-hexadecimal": "1.0.3" + "character-entities": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "character-reference-invalid": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-hexadecimal": "^1.0.0" } }, "parse-glob": { @@ -4781,10 +4818,10 @@ "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" } }, "parse-json": { @@ -4793,7 +4830,7 @@ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, "parseurl": { @@ -4820,7 +4857,7 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } }, "path-is-absolute": { @@ -4853,7 +4890,7 @@ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.0.0" } }, "pbkdf2": { @@ -4862,11 +4899,11 @@ "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", "dev": true, "requires": { - "create-hash": "1.1.3", - "create-hmac": "1.1.6", - "ripemd160": "2.0.1", - "safe-buffer": "5.1.1", - "sha.js": "2.4.9" + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, "pify": { @@ -4887,7 +4924,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "pkg-dir": { @@ -4896,7 +4933,7 @@ "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", "dev": true, "requires": { - "find-up": "1.1.2" + "find-up": "^1.0.0" } }, "plur": { @@ -4905,7 +4942,7 @@ "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", "dev": true, "requires": { - "irregular-plurals": "1.4.0" + "irregular-plurals": "^1.0.0" } }, "prelude-ls": { @@ -4950,7 +4987,7 @@ "integrity": "sha1-ZXFQT0e7mI7IGAJT+F3X4UlSvew=", "dev": true, "requires": { - "forwarded": "0.1.2", + "forwarded": "~0.1.2", "ipaddr.js": "1.5.2" } }, @@ -4960,11 +4997,11 @@ "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", "dev": true, "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.1.3", - "parse-asn1": "5.1.0", - "randombytes": "2.0.5" + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1" } }, "pump": { @@ -4973,8 +5010,8 @@ "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "dev": true, "requires": { - "end-of-stream": "1.4.1", - "once": "1.4.0" + "end-of-stream": "^1.1.0", + "once": "^1.3.1" } }, "punycode": { @@ -5006,9 +5043,9 @@ "integrity": "sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw==", "dev": true, "requires": { - "is-number": "4.0.0", - "kind-of": "6.0.2", - "math-random": "1.0.4" + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, "dependencies": { "is-number": { @@ -5031,7 +5068,7 @@ "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "^5.1.0" } }, "randomfill": { @@ -5040,8 +5077,8 @@ "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", "dev": true, "requires": { - "randombytes": "2.0.5", - "safe-buffer": "5.1.1" + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" } }, "range-parser": { @@ -5068,10 +5105,10 @@ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "requires": { - "deep-extend": "0.6.0", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -5088,9 +5125,9 @@ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "dev": true, "requires": { - "load-json-file": "2.0.0", - "normalize-package-data": "2.4.0", - "path-type": "2.0.0" + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" } }, "read-pkg-up": { @@ -5099,8 +5136,8 @@ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", "dev": true, "requires": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" }, "dependencies": { "find-up": { @@ -5109,7 +5146,7 @@ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } } } @@ -5120,13 +5157,13 @@ "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.0.3", + "util-deprecate": "~1.0.1" } }, "readdirp": { @@ -5135,10 +5172,10 @@ "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.3", - "set-immediate-shim": "1.0.1" + "graceful-fs": "^4.1.2", + "minimatch": "^3.0.2", + "readable-stream": "^2.0.2", + "set-immediate-shim": "^1.0.1" } }, "regenerate": { @@ -5159,9 +5196,9 @@ "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "private": "0.1.8" + "babel-runtime": "^6.18.0", + "babel-types": "^6.19.0", + "private": "^0.1.6" } }, "regex-cache": { @@ -5170,7 +5207,7 @@ "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { - "is-equal-shallow": "0.1.3" + "is-equal-shallow": "^0.1.3" } }, "regexpp": { @@ -5185,9 +5222,9 @@ "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", "dev": true, "requires": { - "regenerate": "1.4.0", - "regjsgen": "0.2.0", - "regjsparser": "0.1.5" + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" } }, "regjsgen": { @@ -5202,7 +5239,7 @@ "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", "dev": true, "requires": { - "jsesc": "0.5.0" + "jsesc": "~0.5.0" }, "dependencies": { "jsesc": { @@ -5219,9 +5256,9 @@ "integrity": "sha1-0f42Ok68AtfCloE1Zy307Rhdw4c=", "dev": true, "requires": { - "markdown-extensions": "1.1.1", - "remark": "6.2.0", - "unified-args": "2.1.0" + "markdown-extensions": "^1.1.0", + "remark": "^6.0.0", + "unified-args": "^2.1.0" }, "dependencies": { "remark": { @@ -5230,10 +5267,10 @@ "integrity": "sha1-DHJhSglcdmVJRhH5RywyueAy3Pk=", "dev": true, "requires": { - "load-plugin": "2.3.1", - "remark-parse": "2.3.0", - "remark-stringify": "2.4.0", - "unified": "5.1.0" + "load-plugin": "^2.0.0", + "remark-parse": "^2.2.0", + "remark-stringify": "^2.2.0", + "unified": "^5.0.0" } } } @@ -5244,18 +5281,18 @@ "integrity": "sha1-/eZYgXpJB3775ZrPFv1Dgm21KWE=", "dev": true, "requires": { - "decamelize": "1.2.0", - "load-plugin": "2.3.1", - "mdast-util-heading-style": "1.0.5", - "mdast-util-to-string": "1.0.6", - "plur": "2.1.2", - "remark-message-control": "2.0.3", - "trough": "1.0.4", - "unist-util-position": "2.0.1", - "unist-util-visit": "1.4.1", - "vfile-location": "2.0.5", - "vfile-sort": "1.0.0", - "wrapped": "1.0.1" + "decamelize": "^1.0.0", + "load-plugin": "^2.0.0", + "mdast-util-heading-style": "^1.0.0", + "mdast-util-to-string": "^1.0.0", + "plur": "^2.0.0", + "remark-message-control": "^2.0.0", + "trough": "^1.0.0", + "unist-util-position": "^2.0.1", + "unist-util-visit": "^1.0.0", + "vfile-location": "^2.0.0", + "vfile-sort": "^1.0.0", + "wrapped": "^1.0.1" } }, "remark-message-control": { @@ -5264,10 +5301,10 @@ "integrity": "sha1-uSePrgsRjuJGeYIcfALqm6KmgsQ=", "dev": true, "requires": { - "mdast-comment-marker": "1.1.1", + "mdast-comment-marker": "^1.0.0", "trim": "0.0.1", - "unist-util-visit": "1.4.1", - "vfile-location": "2.0.5" + "unist-util-visit": "^1.0.0", + "vfile-location": "^2.0.0" } }, "remark-parse": { @@ -5276,22 +5313,22 @@ "integrity": "sha1-ztWL+++ZmTdPn/M/vC5j/isMXDc=", "dev": true, "requires": { - "collapse-white-space": "1.0.5", - "has": "1.0.1", - "is-alphabetical": "1.0.3", - "is-decimal": "1.0.3", - "is-whitespace-character": "1.0.3", - "is-word-character": "1.0.3", - "markdown-escapes": "1.0.3", - "parse-entities": "1.2.2", - "repeat-string": "1.6.1", - "state-toggle": "1.0.2", + "collapse-white-space": "^1.0.2", + "has": "^1.0.1", + "is-alphabetical": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "is-word-character": "^1.0.0", + "markdown-escapes": "^1.0.0", + "parse-entities": "^1.0.2", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", "trim": "0.0.1", - "trim-trailing-lines": "1.1.2", - "unherit": "1.1.2", - "unist-util-remove-position": "1.1.3", - "vfile-location": "2.0.5", - "xtend": "4.0.1" + "trim-trailing-lines": "^1.0.0", + "unherit": "^1.0.4", + "unist-util-remove-position": "^1.0.0", + "vfile-location": "^2.0.0", + "xtend": "^4.0.1" } }, "remark-preset-lint-recommended": { @@ -5300,7 +5337,7 @@ "integrity": "sha1-kFQoDYSVp59VhQ0Xr5QMjEf3LBI=", "dev": true, "requires": { - "remark-lint": "5.2.0" + "remark-lint": "^5.0.0" } }, "remark-stringify": { @@ -5309,20 +5346,20 @@ "integrity": "sha1-ON0oYVMTmggunZ8X4tSZGXks7C8=", "dev": true, "requires": { - "ccount": "1.0.4", - "is-alphanumeric": "1.0.0", - "is-decimal": "1.0.3", - "is-whitespace-character": "1.0.3", - "longest-streak": "2.0.3", - "markdown-escapes": "1.0.3", - "markdown-table": "1.1.3", - "mdast-util-compact": "1.0.3", - "parse-entities": "1.2.2", - "repeat-string": "1.6.1", - "state-toggle": "1.0.2", - "stringify-entities": "1.3.2", - "unherit": "1.1.2", - "xtend": "4.0.1" + "ccount": "^1.0.0", + "is-alphanumeric": "^1.0.0", + "is-decimal": "^1.0.0", + "is-whitespace-character": "^1.0.0", + "longest-streak": "^2.0.1", + "markdown-escapes": "^1.0.0", + "markdown-table": "^1.1.0", + "mdast-util-compact": "^1.0.0", + "parse-entities": "^1.0.2", + "repeat-string": "^1.5.4", + "state-toggle": "^1.0.0", + "stringify-entities": "^1.0.1", + "unherit": "^1.0.4", + "xtend": "^4.0.1" } }, "remove-trailing-separator": { @@ -5349,7 +5386,7 @@ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { - "is-finite": "1.0.2" + "is-finite": "^1.0.0" } }, "replace-ext": { @@ -5376,7 +5413,7 @@ "integrity": "sha512-oJ6y7JcUJkblRGhMByGNcszeLgU0qDxNKFCiUZR1XyzHyVsev+Mxb1tyygxLd1ORsKee1SA5BInFdUwY64GE/A==", "dev": true, "requires": { - "lodash": "4.17.11" + "lodash": "^4.17.11" } }, "resolve": { @@ -5385,7 +5422,7 @@ "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", "dev": true, "requires": { - "path-parse": "1.0.5" + "path-parse": "^1.0.5" } }, "resolve-from": { @@ -5400,8 +5437,8 @@ "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "dev": true, "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" } }, "rimraf": { @@ -5410,7 +5447,7 @@ "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "requires": { - "glob": "7.1.4" + "glob": "^7.1.3" }, "dependencies": { "glob": { @@ -5419,12 +5456,12 @@ "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } } } @@ -5435,8 +5472,8 @@ "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", "dev": true, "requires": { - "hash-base": "2.0.2", - "inherits": "2.0.3" + "hash-base": "^2.0.0", + "inherits": "^2.0.1" } }, "rollup": { @@ -5451,7 +5488,7 @@ "integrity": "sha512-ALGPBFtwJZcYHsNPM6RGJlEncTzAARPvZOGjNPZgDe5hS5t6sJGjiOWibEFVEz5LQN7S7spvCBILaS4N1Cql2w==", "dev": true, "requires": { - "rollup-pluginutils": "1.5.2" + "rollup-pluginutils": "^1.5.0" }, "dependencies": { "estree-walker": { @@ -5466,8 +5503,8 @@ "integrity": "sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=", "dev": true, "requires": { - "estree-walker": "0.2.1", - "minimatch": "3.0.4" + "estree-walker": "^0.2.1", + "minimatch": "^3.0.2" } } } @@ -5478,11 +5515,11 @@ "integrity": "sha512-qK0+uhktmnAgZkHkqFuajNmPw93fjrO7+CysDaxWE5jrUR9XSlSvuao5ZJP+XizxA8weakhgYYBtbVz9SGBpjA==", "dev": true, "requires": { - "acorn": "5.2.1", - "estree-walker": "0.5.1", - "magic-string": "0.22.4", - "resolve": "1.5.0", - "rollup-pluginutils": "2.8.1" + "acorn": "^5.2.1", + "estree-walker": "^0.5.0", + "magic-string": "^0.22.4", + "resolve": "^1.4.0", + "rollup-pluginutils": "^2.0.1" } }, "rollup-plugin-node-resolve": { @@ -5491,10 +5528,10 @@ "integrity": "sha1-i4l8TDAw1QASd7BRSyXSygloPuA=", "dev": true, "requires": { - "browser-resolve": "1.11.2", - "builtin-modules": "1.1.1", - "is-module": "1.0.0", - "resolve": "1.5.0" + "browser-resolve": "^1.11.0", + "builtin-modules": "^1.1.0", + "is-module": "^1.0.0", + "resolve": "^1.1.6" } }, "rollup-pluginutils": { @@ -5503,7 +5540,7 @@ "integrity": "sha512-J5oAoysWar6GuZo0s+3bZ6sVZAC0pfqKz68De7ZgDi5z63jOVZn1uJL/+z1jeKHNbGII8kAyHF5q8LnxSX5lQg==", "dev": true, "requires": { - "estree-walker": "0.6.1" + "estree-walker": "^0.6.1" }, "dependencies": { "estree-walker": { @@ -5520,7 +5557,7 @@ "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "dev": true, "requires": { - "is-promise": "2.1.0" + "is-promise": "^2.1.0" } }, "rxjs": { @@ -5529,7 +5566,7 @@ "integrity": "sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg==", "dev": true, "requires": { - "tslib": "1.10.0" + "tslib": "^1.9.0" } }, "safe-buffer": { @@ -5562,18 +5599,18 @@ "dev": true, "requires": { "debug": "2.6.9", - "depd": "1.1.1", - "destroy": "1.0.4", - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "etag": "1.8.1", + "depd": "~1.1.1", + "destroy": "~1.0.4", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "etag": "~1.8.1", "fresh": "0.5.2", - "http-errors": "1.6.2", + "http-errors": "~1.6.2", "mime": "1.4.1", "ms": "2.0.0", - "on-finished": "2.3.0", - "range-parser": "1.2.0", - "statuses": "1.3.1" + "on-finished": "~2.3.0", + "range-parser": "~1.2.0", + "statuses": "~1.3.1" }, "dependencies": { "mime": { @@ -5590,9 +5627,9 @@ "integrity": "sha512-hSMUZrsPa/I09VYFJwa627JJkNs0NrfL1Uzuup+GqHfToR2KcsXFymXSV90hoyw3M+msjFuQly+YzIH/q0MGlQ==", "dev": true, "requires": { - "encodeurl": "1.0.1", - "escape-html": "1.0.3", - "parseurl": "1.3.2", + "encodeurl": "~1.0.1", + "escape-html": "~1.0.3", + "parseurl": "~1.3.2", "send": "0.16.1" } }, @@ -5620,8 +5657,8 @@ "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.1" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "shebang-command": { @@ -5630,7 +5667,7 @@ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -5660,7 +5697,7 @@ "formatio": "1.1.1", "lolex": "1.3.2", "samsam": "1.1.2", - "util": "0.10.3" + "util": ">=0.10.3 <1" } }, "slash": { @@ -5675,9 +5712,9 @@ "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "astral-regex": "1.0.0", - "is-fullwidth-code-point": "2.0.0" + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" }, "dependencies": { "ansi-styles": { @@ -5686,7 +5723,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "is-fullwidth-code-point": { @@ -5715,7 +5752,7 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" } }, "spdx-correct": { @@ -5724,7 +5761,7 @@ "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", "dev": true, "requires": { - "spdx-license-ids": "1.2.2" + "spdx-license-ids": "^1.0.2" } }, "spdx-expression-parse": { @@ -5763,8 +5800,8 @@ "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.3" + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" } }, "stream-http": { @@ -5773,11 +5810,11 @@ "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", "dev": true, "requires": { - "builtin-status-codes": "3.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.3", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.2.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" } }, "string-width": { @@ -5786,9 +5823,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { @@ -5797,7 +5834,7 @@ "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", "dev": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "stringify-entities": { @@ -5806,10 +5843,10 @@ "integrity": "sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A==", "dev": true, "requires": { - "character-entities-html4": "1.1.3", - "character-entities-legacy": "1.1.3", - "is-alphanumerical": "1.0.3", - "is-hexadecimal": "1.0.3" + "character-entities-html4": "^1.0.0", + "character-entities-legacy": "^1.0.0", + "is-alphanumerical": "^1.0.0", + "is-hexadecimal": "^1.0.0" } }, "strip-ansi": { @@ -5818,7 +5855,7 @@ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-bom": { @@ -5844,17 +5881,17 @@ "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.1.0.tgz", "integrity": "sha512-7V6JVx5N+eTL1MMqRBX0v0bG04UjrjAvvZJTF/VDH/SH2GjSLqlrcYepFlpTrXpm37aSY6h3GGVWGxXl/98TKA==", "requires": { - "component-emitter": "1.3.0", - "cookiejar": "2.1.2", - "debug": "4.1.1", - "fast-safe-stringify": "2.0.6", - "form-data": "2.4.0", - "formidable": "1.2.1", - "methods": "1.1.2", - "mime": "2.4.4", - "qs": "6.7.0", - "readable-stream": "3.4.0", - "semver": "6.1.2" + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.2", + "debug": "^4.1.1", + "fast-safe-stringify": "^2.0.6", + "form-data": "^2.3.3", + "formidable": "^1.2.1", + "methods": "^1.1.2", + "mime": "^2.4.4", + "qs": "^6.7.0", + "readable-stream": "^3.4.0", + "semver": "^6.1.1" }, "dependencies": { "debug": { @@ -5862,7 +5899,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "requires": { - "ms": "2.1.2" + "ms": "^2.1.1" } }, "ms": { @@ -5880,9 +5917,9 @@ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", "requires": { - "inherits": "2.0.3", - "string_decoder": "1.2.0", - "util-deprecate": "1.0.2" + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" } }, "semver": { @@ -5895,7 +5932,7 @@ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } } } @@ -5912,10 +5949,10 @@ "integrity": "sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w==", "dev": true, "requires": { - "ajv": "6.10.0", - "lodash": "4.17.11", - "slice-ansi": "2.1.0", - "string-width": "3.1.0" + "ajv": "^6.9.1", + "lodash": "^4.17.11", + "slice-ansi": "^2.1.0", + "string-width": "^3.0.0" }, "dependencies": { "ansi-regex": { @@ -5936,9 +5973,9 @@ "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "emoji-regex": "7.0.3", - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "5.2.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, "strip-ansi": { @@ -5947,7 +5984,7 @@ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "4.1.0" + "ansi-regex": "^4.1.0" } } } @@ -5982,7 +6019,7 @@ "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", "dev": true, "requires": { - "process": "0.11.10" + "process": "~0.11.0" } }, "tmp": { @@ -5991,7 +6028,7 @@ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { - "os-tmpdir": "1.0.2" + "os-tmpdir": "~1.0.2" } }, "to-arraybuffer": { @@ -6012,9 +6049,9 @@ "integrity": "sha512-saGC8/lWdGrEoBMLUtgzhRHWAkQMP8gdldA3MOAUhBwTGEb1RSMVcflHGSx4ZJsdEZ9o1qDBCPp47LCPrbZWow==", "dev": true, "requires": { - "is-buffer": "1.1.6", - "vfile": "2.3.0", - "x-is-function": "1.0.4" + "is-buffer": "^1.1.4", + "vfile": "^2.0.0", + "x-is-function": "^1.0.4" } }, "trim": { @@ -6059,7 +6096,7 @@ "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "dev": true, "requires": { - "prelude-ls": "1.1.2" + "prelude-ls": "~1.1.2" } }, "type-is": { @@ -6069,7 +6106,7 @@ "dev": true, "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.17" + "mime-types": "~2.1.15" } }, "typedarray": { @@ -6102,8 +6139,8 @@ "integrity": "sha512-W3tMnpaMG7ZY6xe/moK04U9fBhi6wEiCYHUW5Mop/wQHf12+79EQGwxYejNdhEz2mkqkBlGwm7pxmgBKMVUj0w==", "dev": true, "requires": { - "inherits": "2.0.3", - "xtend": "4.0.1" + "inherits": "^2.0.1", + "xtend": "^4.0.1" } }, "unified": { @@ -6112,14 +6149,14 @@ "integrity": "sha1-YSaNqbkc6SW+Hz0ZjAJ4sOlxYJQ=", "dev": true, "requires": { - "bail": "1.0.4", - "extend": "3.0.1", - "has": "1.0.1", - "is-buffer": "1.1.6", - "once": "1.4.0", - "trough": "1.0.4", - "vfile": "2.3.0", - "x-is-string": "0.1.0" + "bail": "^1.0.0", + "extend": "^3.0.0", + "has": "^1.0.1", + "is-buffer": "^1.1.4", + "once": "^1.3.3", + "trough": "^1.0.0", + "vfile": "^2.0.0", + "x-is-string": "^0.1.0" } }, "unified-args": { @@ -6128,12 +6165,12 @@ "integrity": "sha1-oSI1RO+I4M7at9cX1qeTRADe1gc=", "dev": true, "requires": { - "camelcase": "3.0.0", - "chalk": "1.1.3", - "chokidar": "1.7.0", - "minimist": "1.2.0", - "text-table": "0.2.0", - "unified-engine": "2.1.0" + "camelcase": "^3.0.0", + "chalk": "^1.1.3", + "chokidar": "^1.5.1", + "minimist": "^1.2.0", + "text-table": "^0.2.0", + "unified-engine": "^2.1.0" }, "dependencies": { "minimist": { @@ -6150,23 +6187,23 @@ "integrity": "sha1-IVqzMrMqbCE3+8ocEsK8vBRn0WQ=", "dev": true, "requires": { - "concat-stream": "1.6.0", - "debug": "2.6.9", - "fn-name": "2.0.1", - "glob": "7.1.2", - "globby": "6.1.0", - "is-hidden": "1.1.2", - "js-yaml": "3.13.1", - "load-plugin": "2.3.1", - "minimatch": "3.0.4", - "parse-json": "2.2.0", - "to-vfile": "2.2.0", - "trough": "1.0.4", - "user-home": "2.0.0", - "vfile-find-down": "2.0.3", - "vfile-find-up": "2.0.2", - "vfile-reporter": "3.1.0", - "vfile-statistics": "1.1.3" + "concat-stream": "^1.5.1", + "debug": "^2.2.0", + "fn-name": "^2.0.1", + "glob": "^7.0.3", + "globby": "^6.0.0", + "is-hidden": "^1.0.1", + "js-yaml": "^3.6.1", + "load-plugin": "^2.0.0", + "minimatch": "^3.0.0", + "parse-json": "^2.2.0", + "to-vfile": "^2.0.0", + "trough": "^1.0.0", + "user-home": "^2.0.0", + "vfile-find-down": "^2.0.0", + "vfile-find-up": "^2.0.0", + "vfile-reporter": "^3.0.0", + "vfile-statistics": "^1.0.0" }, "dependencies": { "globby": { @@ -6175,11 +6212,11 @@ "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "dev": true, "requires": { - "array-union": "1.0.2", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "user-home": { @@ -6188,7 +6225,7 @@ "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", "dev": true, "requires": { - "os-homedir": "1.0.2" + "os-homedir": "^1.0.0" } } } @@ -6211,7 +6248,7 @@ "integrity": "sha512-CtszTlOjP2sBGYc2zcKA/CvNdTdEs3ozbiJ63IPBxh8iZg42SCCb8m04f8z2+V1aSk5a7BxbZKEdoDjadmBkWA==", "dev": true, "requires": { - "unist-util-visit": "1.4.1" + "unist-util-visit": "^1.1.0" } }, "unist-util-stringify-position": { @@ -6226,7 +6263,7 @@ "integrity": "sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw==", "dev": true, "requires": { - "unist-util-visit-parents": "2.1.2" + "unist-util-visit-parents": "^2.0.0" } }, "unist-util-visit-parents": { @@ -6235,7 +6272,7 @@ "integrity": "sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g==", "dev": true, "requires": { - "unist-util-is": "3.0.0" + "unist-util-is": "^3.0.0" } }, "unpipe": { @@ -6250,7 +6287,7 @@ "integrity": "sha1-F+soB5h/dpUunASF/DEdBqgmouA=", "dev": true, "requires": { - "os-homedir": "1.0.2" + "os-homedir": "^1.0.0" } }, "uri-js": { @@ -6259,7 +6296,7 @@ "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, "requires": { - "punycode": "2.1.1" + "punycode": "^2.1.0" }, "dependencies": { "punycode": { @@ -6328,7 +6365,7 @@ "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", "dev": true, "requires": { - "user-home": "1.1.1" + "user-home": "^1.1.1" } }, "validate-npm-package-license": { @@ -6337,8 +6374,8 @@ "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", "dev": true, "requires": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" + "spdx-correct": "~1.0.0", + "spdx-expression-parse": "~1.0.0" } }, "vary": { @@ -6353,10 +6390,10 @@ "integrity": "sha512-ASt4mBUHcTpMKD/l5Q+WJXNtshlWxOogYyGYYrg4lt/vuRjC1EFQtlAofL5VmtVNIZJzWYFJjzGWZ0Gw8pzW1w==", "dev": true, "requires": { - "is-buffer": "1.1.6", + "is-buffer": "^1.1.4", "replace-ext": "1.0.0", - "unist-util-stringify-position": "1.1.2", - "vfile-message": "1.1.1" + "unist-util-stringify-position": "^1.0.0", + "vfile-message": "^1.0.0" } }, "vfile-find-down": { @@ -6365,7 +6402,7 @@ "integrity": "sha512-makj7zpPxA2zhDOCIlftLj3WGWDQazOhPwJJSSK4ad0w4dHmLwTrIR4Skzk+KRdVS02T6mxDK4kEYDoaHuxtQg==", "dev": true, "requires": { - "to-vfile": "2.2.0" + "to-vfile": "^2.0.0" } }, "vfile-find-up": { @@ -6374,7 +6411,7 @@ "integrity": "sha512-kYGgsSNpYjPxcEoud1aHNFfchsV0Z6Pyc8M5LfD1wX/tV0/bn32MKHDfv4fqV9DBLVuw2YSGOs31nRY/42DfUA==", "dev": true, "requires": { - "to-vfile": "2.2.0" + "to-vfile": "^2.0.0" } }, "vfile-location": { @@ -6389,7 +6426,7 @@ "integrity": "sha512-1WmsopSGhWt5laNir+633LszXvZ+Z/lxveBf6yhGsqnQIhlhzooZae7zV6YVM1Sdkw68dtAW3ow0pOdPANugvA==", "dev": true, "requires": { - "unist-util-stringify-position": "1.1.2" + "unist-util-stringify-position": "^1.1.1" } }, "vfile-reporter": { @@ -6398,11 +6435,11 @@ "integrity": "sha1-qbOYxebcvIqaCObPQl8JLoajcAA=", "dev": true, "requires": { - "repeat-string": "1.6.1", - "string-width": "1.0.2", - "supports-color": "4.5.0", - "unist-util-stringify-position": "1.1.2", - "vfile-statistics": "1.1.3" + "repeat-string": "^1.5.0", + "string-width": "^1.0.0", + "supports-color": "^4.1.0", + "unist-util-stringify-position": "^1.0.0", + "vfile-statistics": "^1.0.0" }, "dependencies": { "supports-color": { @@ -6411,7 +6448,7 @@ "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", "dev": true, "requires": { - "has-flag": "2.0.0" + "has-flag": "^2.0.0" } } } @@ -6449,7 +6486,7 @@ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -6464,7 +6501,7 @@ "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2 || 2" } }, "wordwrap": { @@ -6479,8 +6516,8 @@ "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" } }, "wrapped": { @@ -6490,7 +6527,7 @@ "dev": true, "requires": { "co": "3.1.0", - "sliced": "1.0.1" + "sliced": "^1.0.1" }, "dependencies": { "co": { @@ -6513,7 +6550,7 @@ "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", "dev": true, "requires": { - "mkdirp": "0.5.1" + "mkdirp": "^0.5.1" } }, "x-is-function": { @@ -6552,17 +6589,17 @@ "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", "dev": true, "requires": { - "cliui": "4.1.0", - "find-up": "3.0.0", - "get-caller-file": "2.0.5", - "os-locale": "3.1.0", - "require-directory": "2.1.1", - "require-main-filename": "2.0.0", - "set-blocking": "2.0.0", - "string-width": "3.1.0", - "which-module": "2.0.0", - "y18n": "4.0.0", - "yargs-parser": "13.0.0" + "cliui": "^4.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "os-locale": "^3.1.0", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.0.0" }, "dependencies": { "ansi-regex": { @@ -6577,7 +6614,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "3.0.0" + "locate-path": "^3.0.0" } }, "is-fullwidth-code-point": { @@ -6592,8 +6629,8 @@ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "p-locate": "3.0.0", - "path-exists": "3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, "p-limit": { @@ -6602,7 +6639,7 @@ "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", "dev": true, "requires": { - "p-try": "2.2.0" + "p-try": "^2.0.0" } }, "p-locate": { @@ -6611,7 +6648,7 @@ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "p-limit": "2.2.0" + "p-limit": "^2.0.0" } }, "path-exists": { @@ -6626,9 +6663,9 @@ "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "emoji-regex": "7.0.3", - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "5.2.0" + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" } }, "strip-ansi": { @@ -6637,7 +6674,7 @@ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "4.1.0" + "ansi-regex": "^4.1.0" } } } @@ -6648,8 +6685,8 @@ "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", "dev": true, "requires": { - "camelcase": "5.3.1", - "decamelize": "1.2.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" }, "dependencies": { "camelcase": { @@ -6666,9 +6703,9 @@ "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", "dev": true, "requires": { - "flat": "4.1.0", - "lodash": "4.17.11", - "yargs": "12.0.5" + "flat": "^4.1.0", + "lodash": "^4.17.11", + "yargs": "^12.0.5" }, "dependencies": { "ansi-regex": { @@ -6689,7 +6726,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "3.0.0" + "locate-path": "^3.0.0" } }, "get-caller-file": { @@ -6710,8 +6747,8 @@ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "p-locate": "3.0.0", - "path-exists": "3.0.0" + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" } }, "p-limit": { @@ -6720,7 +6757,7 @@ "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", "dev": true, "requires": { - "p-try": "2.2.0" + "p-try": "^2.0.0" } }, "p-locate": { @@ -6729,7 +6766,7 @@ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "p-limit": "2.2.0" + "p-limit": "^2.0.0" } }, "path-exists": { @@ -6750,8 +6787,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -6760,7 +6797,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "yargs": { @@ -6769,18 +6806,18 @@ "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", "dev": true, "requires": { - "cliui": "4.1.0", - "decamelize": "1.2.0", - "find-up": "3.0.0", - "get-caller-file": "1.0.3", - "os-locale": "3.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "4.0.0", - "yargs-parser": "11.1.1" + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" } }, "yargs-parser": { @@ -6789,8 +6826,8 @@ "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", "dev": true, "requires": { - "camelcase": "5.3.1", - "decamelize": "1.2.0" + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } diff --git a/package.json b/package.json index 0613080..60e3243 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "babel-core": "^6.26.3", "babel-eslint": "^10.0.2", "babel-plugin-external-helpers": "^6.22.0", + "babel-plugin-transform-class-properties": "^6.24.1", "babel-preset-env": "^1.7.0", "eslint": "^6.0.1", "eslint-import-resolver-webpack": "^0.8.3", diff --git a/rollup.config.js b/rollup.config.js index 282a0fc..6e940f1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -11,6 +11,9 @@ export default [{ format: 'umd' }, plugins: [ + babel({ + exclude: ['node_modules/**'] + }), commonjs({ namedExports: { './node_modules/superagent/superagent.js': ['superagent'], @@ -20,9 +23,6 @@ export default [{ preferBuiltins: false, querystring: true, browser: true, - }), - babel({ - exclude: ['node_modules/**'] }) ] }, From e78122a75fa665e065fd8d453607c55043f5a593 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 10:03:03 -0700 Subject: [PATCH 05/21] Update eslint config to ignore comment length --- .eslintrc.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc.yml b/.eslintrc.yml index b73ceaa..b5c3c64 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -9,4 +9,8 @@ rules: camelcase: off no-prototype-builtins: 0 no-useless-constructor: off + max-len: + - error + - 200 + - ignoreComments: true parser: babel-eslint From e9f655e9beb44f9c99d6ee5db2720ba99a8fd8d6 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 10:47:02 -0700 Subject: [PATCH 06/21] Add class properties transformation plugin for test --- .babelrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index b2d122d..08b053c 100644 --- a/.babelrc +++ b/.babelrc @@ -10,7 +10,10 @@ ] }, "test": { - "presets": ["env"] + "presets": ["env"], + "plugins": [ + "transform-class-properties" + ] } } } From 2fe14866f7d545a38a4c77e421b5bbf753a8aa66 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:15:41 -0700 Subject: [PATCH 07/21] Update api/model definitions with version 20.4 - fix failing tests --- README.md | 2 +- src/ApiClient.js | 4 +- src/api/AiApi.js | 115 + src/api/BasketsApi.js | 976 +++++--- src/api/CategoriesApi.js | 51 +- src/api/ContentApi.js | 46 +- src/api/ContentSearchApi.js | 71 +- src/api/CustomObjectsApi.js | 33 +- src/api/CustomersApi.js | 952 +++++--- src/api/FoldersApi.js | 46 +- src/api/GiftCertificateApi.js | 43 +- src/api/OrderSearchApi.js | 79 +- src/api/OrdersApi.js | 369 +-- src/api/PriceAdjustmentLimitsApi.js | 51 +- src/api/ProductListsApi.js | 64 +- src/api/ProductSearchApi.js | 328 ++- src/api/ProductsApi.js | 244 +- src/api/PromotionsApi.js | 74 +- src/api/SearchSuggestionApi.js | 46 +- src/api/SessionsApi.js | 59 +- src/api/SiteApi.js | 41 +- src/api/StoresApi.js | 112 +- src/index.js | 491 ++-- src/models/ApproachingDiscount.js | 135 ++ src/models/ApproachingDiscountResult.js | 87 + src/models/AuthRequest.js | 96 +- src/models/Basket.js | 570 ++--- src/models/BasketPaymentInstrumentRequest.js | 126 +- src/models/BasketReference.js | 96 + src/models/BasketsResult.js | 60 +- src/models/BonusDiscountLineItem.js | 100 +- src/models/BoolFilter.js | 98 +- src/models/BoolQuery.js | 79 +- src/models/BundledProduct.js | 72 +- src/models/Category.js | 245 +- src/models/CategoryResult.js | 74 +- src/models/Content.js | 131 +- src/models/ContentFolder.js | 141 +- src/models/ContentFolderResult.js | 74 +- src/models/ContentResult.js | 74 +- src/models/ContentSearchRefinement.js | 69 +- src/models/ContentSearchRefinementValue.js | 111 +- src/models/ContentSearchResult.js | 163 +- src/models/CouponItem.js | 212 +- src/models/CustomObject.js | 87 +- src/models/Customer.js | 479 ++-- src/models/CustomerAddress.js | 376 ++-- src/models/CustomerAddressLink.js | 74 +- src/models/CustomerAddressResult.js | 126 +- src/models/CustomerInfo.js | 92 +- src/models/CustomerOrderResult.js | 126 +- src/models/CustomerPaymentCardRequest.js | 152 +- src/models/CustomerPaymentInstrument.js | 139 +- .../CustomerPaymentInstrumentRequest.js | 100 +- src/models/CustomerPaymentInstrumentResult.js | 74 +- src/models/CustomerProductList.js | 301 +-- src/models/CustomerProductListItem.js | 168 +- src/models/CustomerProductListItemLink.js | 61 +- src/models/CustomerProductListItemPurchase.js | 118 + .../CustomerProductListItemPurchaseResult.js | 103 + src/models/CustomerProductListItemResult.js | 109 +- src/models/CustomerProductListRegistrant.js | 87 +- src/models/CustomerProductListResult.js | 74 +- src/models/CustomerRegistration.js | 57 +- src/models/Discount.js | 180 +- src/models/DiscountRequest.js | 122 + src/models/Fault.js | 4 +- src/models/Filter.js | 4 +- src/models/FilteredQuery.js | 58 +- src/models/GiftCertificate.js | 216 +- src/models/GiftCertificateItem.js | 126 +- src/models/GiftCertificateRequest.js | 48 +- src/models/Image.js | 75 +- src/models/ImageGroup.js | 74 +- src/models/Inventory.js | 122 +- src/models/Locale.js | 176 +- src/models/Master.js | 101 +- src/models/NestedQuery.js | 126 +- src/models/Note.js | 100 +- src/models/NotesResult.js | 48 +- src/models/Option.js | 95 +- src/models/OptionItem.js | 383 ++-- src/models/OptionValue.js | 83 +- src/models/Order.js | 927 ++++---- src/models/OrderAddress.js | 338 +-- src/models/OrderPaymentCardRequest.js | 165 +- src/models/OrderPaymentInstrument.js | 139 +- src/models/OrderPaymentInstrumentRequest.js | 141 +- src/models/OrderSearchHit.js | 61 +- src/models/OrderSearchRequest.js | 117 +- src/models/OrderSearchResult.js | 184 +- src/models/PasswordChangeRequest.js | 61 +- src/models/PasswordReset.js | 91 +- src/models/PaymentBankAccount.js | 113 +- src/models/PaymentBankAccountRequest.js | 87 +- src/models/PaymentCard.js | 178 +- src/models/PaymentCardSpec.js | 139 +- src/models/PaymentMethod.js | 104 +- src/models/PaymentMethodResult.js | 47 +- src/models/PriceAdjustment.js | 243 +- src/models/PriceAdjustmentLimit.js | 129 +- src/models/PriceAdjustmentLimits.js | 48 +- src/models/PriceAdjustmentRequest.js | 180 ++ src/models/Product.js | 1984 +++++++++++++++-- src/models/ProductDetailsLink.js | 96 +- src/models/ProductItem.js | 388 ++-- src/models/ProductLink.js | 184 +- src/models/ProductListEvent.js | 100 +- src/models/ProductListItemReference.js | 145 +- src/models/ProductListLink.js | 175 +- src/models/ProductListRegistrant.js | 77 +- src/models/ProductListShippingAddress.js | 83 +- src/models/ProductPromotion.js | 87 +- src/models/ProductRecommendationsResult.js | 103 + src/models/ProductRef.js | 64 +- src/models/ProductResult.js | 74 +- src/models/ProductSearchHit.js | 214 +- src/models/ProductSearchRefinement.js | 78 +- src/models/ProductSearchRefinementValue.js | 114 +- src/models/ProductSearchResult.js | 213 +- src/models/ProductSearchSortingOption.js | 61 +- src/models/ProductSimpleLink.js | 61 +- src/models/ProductType.js | 126 +- src/models/Promotion.js | 152 +- src/models/PromotionLink.js | 116 + src/models/PromotionResult.js | 74 +- src/models/PublicProductList.js | 260 ++- src/models/PublicProductListItem.js | 124 +- src/models/PublicProductListItemResult.js | 74 +- src/models/PublicProductListLink.js | 164 +- src/models/PublicProductListResult.js | 74 +- src/models/Query.js | 4 +- src/models/QueryFilter.js | 47 +- src/models/Range2Filter.js | 160 +- src/models/RangeFilter.js | 95 +- src/models/Recommendation.js | 139 +- src/models/RecommendationType.js | 61 +- src/models/ResetPasswordRequest.js | 102 + src/models/ResetPasswordTokenRequest.js | 85 + src/models/ResetPasswordTokenResult.js | 109 + src/models/ResultPage.js | 69 +- src/models/Shipment.js | 306 +-- src/models/ShippingItem.js | 198 +- src/models/ShippingMethod.js | 122 +- src/models/ShippingMethodResult.js | 61 +- src/models/ShippingPromotion.js | 87 +- src/models/SimpleLink.js | 48 +- src/models/Site.js | 272 +-- src/models/Sort.js | 94 +- src/models/Status.js | 73 +- src/models/Store.js | 357 +-- src/models/StoreResult.js | 113 +- src/models/SuggestedCategory.js | 87 +- src/models/SuggestedContent.js | 74 +- src/models/SuggestedPhrase.js | 61 +- src/models/SuggestedProduct.js | 114 +- src/models/SuggestedTerm.js | 87 +- src/models/SuggestedTerms.js | 61 +- src/models/Suggestion.js | 126 +- src/models/SuggestionResult.js | 113 +- src/models/TermFilter.js | 165 +- src/models/TermQuery.js | 168 +- src/models/TextQuery.js | 64 +- src/models/TrustedSystemAuthRequest.js | 95 + src/models/Variant.js | 99 +- src/models/VariationAttribute.js | 67 +- src/models/VariationAttributeValue.js | 108 +- src/models/VariationGroup.js | 100 +- test/api/BasketsApi.spec.js | 2 +- test/api/CategoriesApi.spec.js | 2 +- test/api/ContentApi.spec.js | 2 +- test/api/ContentSearchApi.spec.js | 2 +- test/api/CustomObjectsApi.spec.js | 2 +- test/api/CustomersApi.spec.js | 2 +- test/api/FoldersApi.spec.js | 2 +- test/api/GiftCertificateApi.spec.js | 2 +- test/api/OrderSearchApi.spec.js | 2 +- test/api/OrdersApi.spec.js | 2 +- test/api/PriceAdjustmentLimitsApi.spec.js | 2 +- test/api/ProductListsApi.spec.js | 2 +- test/api/ProductSearchApi.spec.js | 2 +- test/api/ProductsApi.spec.js | 2 +- test/api/PromotionsApi.spec.js | 2 +- test/api/SearchSuggestionApi.spec.js | 2 +- test/api/SessionsApi.spec.js | 2 +- test/api/SiteApi.spec.js | 2 +- test/api/StoresApi.spec.js | 2 +- test/config.json | 2 +- test/model/AuthRequest.spec.js | 2 +- test/model/Basket.spec.js | 2 +- .../BasketPaymentInstrumentRequest.spec.js | 2 +- test/model/BasketsResult.spec.js | 2 +- test/model/BonusDiscountLineItem.spec.js | 2 +- test/model/BoolFilter.spec.js | 2 +- test/model/BoolQuery.spec.js | 2 +- test/model/BundledProduct.spec.js | 2 +- test/model/Category.spec.js | 2 +- test/model/CategoryResult.spec.js | 2 +- test/model/Content.spec.js | 2 +- test/model/ContentFolder.spec.js | 2 +- test/model/ContentFolderResult.spec.js | 2 +- test/model/ContentResult.spec.js | 2 +- test/model/ContentSearchRefinement.spec.js | 2 +- .../ContentSearchRefinementValue.spec.js | 2 +- test/model/ContentSearchResult.spec.js | 2 +- test/model/CouponItem.spec.js | 2 +- test/model/CustomObject.spec.js | 2 +- test/model/Customer.spec.js | 2 +- test/model/CustomerAddress.spec.js | 2 +- test/model/CustomerAddressLink.spec.js | 2 +- test/model/CustomerAddressResult.spec.js | 2 +- test/model/CustomerInfo.spec.js | 2 +- test/model/CustomerOrderResult.spec.js | 2 +- test/model/CustomerPaymentCardRequest.spec.js | 2 +- test/model/CustomerPaymentInstrument.spec.js | 2 +- .../CustomerPaymentInstrumentRequest.spec.js | 2 +- .../CustomerPaymentInstrumentResult.spec.js | 2 +- test/model/CustomerProductList.spec.js | 2 +- test/model/CustomerProductListItem.spec.js | 2 +- .../model/CustomerProductListItemLink.spec.js | 2 +- .../CustomerProductListItemResult.spec.js | 2 +- .../CustomerProductListRegistrant.spec.js | 2 +- test/model/CustomerProductListResult.spec.js | 2 +- test/model/CustomerRegistration.spec.js | 2 +- test/model/Discount.spec.js | 2 +- test/model/FilteredQuery.spec.js | 2 +- test/model/GiftCertificate.spec.js | 2 +- test/model/GiftCertificateItem.spec.js | 2 +- test/model/GiftCertificateRequest.spec.js | 2 +- test/model/Image.spec.js | 2 +- test/model/ImageGroup.spec.js | 2 +- test/model/Inventory.spec.js | 2 +- test/model/Locale.spec.js | 2 +- test/model/Master.spec.js | 2 +- test/model/NestedQuery.spec.js | 2 +- test/model/Note.spec.js | 2 +- test/model/NotesResult.spec.js | 2 +- test/model/Option.spec.js | 2 +- test/model/OptionItem.spec.js | 2 +- test/model/OptionValue.spec.js | 2 +- test/model/Order.spec.js | 2 +- test/model/OrderAddress.spec.js | 2 +- test/model/OrderPaymentCardRequest.spec.js | 2 +- test/model/OrderPaymentInstrument.spec.js | 2 +- .../OrderPaymentInstrumentRequest.spec.js | 2 +- test/model/OrderSearchHit.spec.js | 2 +- test/model/OrderSearchRequest.spec.js | 2 +- test/model/OrderSearchResult.spec.js | 2 +- test/model/PasswordChangeRequest.spec.js | 2 +- test/model/PasswordReset.spec.js | 2 +- test/model/PaymentBankAccount.spec.js | 2 +- test/model/PaymentBankAccountRequest.spec.js | 2 +- test/model/PaymentCard.spec.js | 2 +- test/model/PaymentCardSpec.spec.js | 2 +- test/model/PaymentMethod.spec.js | 2 +- test/model/PaymentMethodResult.spec.js | 2 +- test/model/PriceAdjustment.spec.js | 2 +- test/model/PriceAdjustmentLimit.spec.js | 2 +- test/model/PriceAdjustmentLimits.spec.js | 2 +- test/model/Product.spec.js | 2 +- test/model/ProductDetailsLink.spec.js | 2 +- test/model/ProductItem.spec.js | 2 +- test/model/ProductLink.spec.js | 2 +- test/model/ProductListEvent.spec.js | 2 +- test/model/ProductListItemReference.spec.js | 2 +- test/model/ProductListLink.spec.js | 2 +- test/model/ProductListRegistrant.spec.js | 2 +- test/model/ProductListShippingAddress.spec.js | 2 +- test/model/ProductPromotion.spec.js | 2 +- test/model/ProductResult.spec.js | 2 +- test/model/ProductSearchHit.spec.js | 2 +- test/model/ProductSearchRefinement.spec.js | 2 +- .../ProductSearchRefinementValue.spec.js | 2 +- test/model/ProductSearchResult.spec.js | 2 +- test/model/ProductSearchSortingOption.spec.js | 2 +- test/model/ProductSimpleLink.spec.js | 2 +- test/model/ProductType.spec.js | 2 +- test/model/Promotion.spec.js | 2 +- test/model/PromotionResult.spec.js | 2 +- test/model/PublicProductList.spec.js | 2 +- test/model/PublicProductListItem.spec.js | 2 +- .../model/PublicProductListItemResult.spec.js | 2 +- test/model/PublicProductListLink.spec.js | 2 +- test/model/PublicProductListResult.spec.js | 2 +- test/model/QueryFilter.spec.js | 2 +- test/model/Range2Filter.spec.js | 2 +- test/model/RangeFilter.spec.js | 2 +- test/model/Recommendation.spec.js | 2 +- test/model/RecommendationType.spec.js | 2 +- test/model/ResultPage.spec.js | 2 +- test/model/Shipment.spec.js | 2 +- test/model/ShippingItem.spec.js | 2 +- test/model/ShippingMethod.spec.js | 2 +- test/model/ShippingMethodResult.spec.js | 2 +- test/model/ShippingPromotion.spec.js | 2 +- test/model/SimpleLink.spec.js | 2 +- test/model/Site.spec.js | 2 +- test/model/Sort.spec.js | 2 +- test/model/Status.spec.js | 2 +- test/model/Store.spec.js | 2 +- test/model/StoreResult.spec.js | 2 +- test/model/SuggestedCategory.spec.js | 2 +- test/model/SuggestedContent.spec.js | 2 +- test/model/SuggestedPhrase.spec.js | 2 +- test/model/SuggestedProduct.spec.js | 2 +- test/model/SuggestedTerm.spec.js | 2 +- test/model/SuggestedTerms.spec.js | 2 +- test/model/Suggestion.spec.js | 2 +- test/model/SuggestionResult.spec.js | 2 +- test/model/TermFilter.spec.js | 2 +- test/model/TermQuery.spec.js | 2 +- test/model/TextQuery.spec.js | 2 +- test/model/Variant.spec.js | 2 +- test/model/VariationAttribute.spec.js | 2 +- test/model/VariationAttributeValue.spec.js | 2 +- test/model/VariationGroup.spec.js | 2 +- test/samples.js | 2 +- 317 files changed, 16374 insertions(+), 9226 deletions(-) create mode 100644 src/api/AiApi.js create mode 100644 src/models/ApproachingDiscount.js create mode 100644 src/models/ApproachingDiscountResult.js create mode 100644 src/models/BasketReference.js create mode 100644 src/models/CustomerProductListItemPurchase.js create mode 100644 src/models/CustomerProductListItemPurchaseResult.js create mode 100644 src/models/DiscountRequest.js create mode 100644 src/models/PriceAdjustmentRequest.js create mode 100644 src/models/ProductRecommendationsResult.js create mode 100644 src/models/PromotionLink.js create mode 100644 src/models/ResetPasswordRequest.js create mode 100644 src/models/ResetPasswordTokenRequest.js create mode 100644 src/models/ResetPasswordTokenResult.js create mode 100644 src/models/TrustedSystemAuthRequest.js diff --git a/README.md b/README.md index 0f28ac1..ed28306 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ _(___ _(___/_/_/__/_/_/__/_(___ _/_____(___ _(___ _(___ _/___(___/_(___(__(___/_ Salesforce Commerce Cloud Open Commerce API (OCAPI) for Node and browsers. -- API version: 17.8 +- API version: 20.4 ### ⚒ Installation diff --git a/src/ApiClient.js b/src/ApiClient.js index f93a2ce..bc9939f 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -21,7 +21,7 @@ import Fault from './models/Fault' /** * @module ApiClient - * @version 17.8 + * @version 20.4 */ const defaultConfig = { diff --git a/src/api/AiApi.js b/src/api/AiApi.js new file mode 100644 index 0000000..ceb4b89 --- /dev/null +++ b/src/api/AiApi.js @@ -0,0 +1,115 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import ProductRecommendationsResult from '../models/ProductRecommendationsResult' + +/** +* Ai service. +* @module api/AiApi +* @version 20.4 +*/ +export default class AiApi { + + /** + * Constructs a new AiApi. + * @alias module:api/AiApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance + } + + + + /** + * This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API. Returns product recommendations based on the given product or category IDs. + * @param {String} recommenderName The recommender name. + * @param {Object} opts Optional parameters + * @param {Array.} opts.products + * @param {Array.} opts.categories + * @param {String} opts.uuid + * @param {Array.} opts.expand + * @param {Array.} opts.inventoryIds + * @param {String} opts.currency + * @param {Boolean} opts.allImages + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductRecommendationsResult} and HTTP response + */ + getAiProductRecommendationsByIDWithHttpInfo(recommenderName, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'recommenderName' is set + if (recommenderName === undefined || recommenderName === null) { + throw new Error('Missing the required parameter \'recommenderName\' when calling getAiProductRecommendationsByID') + } + + + const pathParams = { + recommender_name: recommenderName + } + const queryParams = { + products: this.apiClient.buildCollectionParam(opts.products, 'csv'), + categories: this.apiClient.buildCollectionParam(opts.categories, 'csv'), + uuid: opts.uuid, + expand: this.apiClient.buildCollectionParam(opts.expand, 'csv'), + inventory_ids: this.apiClient.buildCollectionParam(opts.inventoryIds, 'csv'), + currency: opts.currency, + all_images: opts.allImages + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ProductRecommendationsResult + + return this.apiClient.callApi( + '/ai/product_recommendations/{recommender_name}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API. Returns product recommendations based on the given product or category IDs. + * @param {String} recommenderName The recommender name. + * @param {Object} opts Optional parameters + * @param {Array.} opts.products + * @param {Array.} opts.categories + * @param {String} opts.uuid + * @param {Array.} opts.expand + * @param {Array.} opts.inventoryIds + * @param {String} opts.currency + * @param {Boolean} opts.allImages + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductRecommendationsResult} + */ + getAiProductRecommendationsByID(recommenderName, opts) { + return this.getAiProductRecommendationsByIDWithHttpInfo(recommenderName, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + +} diff --git a/src/api/BasketsApi.js b/src/api/BasketsApi.js index c7cf796..0e54e23 100644 --- a/src/api/BasketsApi.js +++ b/src/api/BasketsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,30 +14,35 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' +import ApproachingDiscountResult from '../models/ApproachingDiscountResult' import Basket from '../models/Basket' import NotesResult from '../models/NotesResult' import PaymentMethodResult from '../models/PaymentMethodResult' import ShippingMethodResult from '../models/ShippingMethodResult' /** - * Baskets service. - * @module api/BasketsApi - * @version 17.8 - */ +* Baskets service. +* @module api/BasketsApi +* @version 20.4 +*/ export default class BasketsApi { /** - * Constructs a new BasketsApi. - * @alias module:api/BasketsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new BasketsApi. + * @alias module:api/BasketsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Removes a basket. * @param {String} basketId the id of the basket to be retrieved @@ -51,14 +56,18 @@ export default class BasketsApi { throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByID') } + const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -107,11 +116,14 @@ export default class BasketsApi { basket_id: basketId, coupon_item_id: couponItemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -137,6 +149,63 @@ export default class BasketsApi { } + /** + * Deletes a gift certificate item from an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'giftCertificateItemId' is set + if (giftCertificateItemId === undefined || giftCertificateItemId === null) { + throw new Error('Missing the required parameter \'giftCertificateItemId\' when calling deleteBasketsByIDGiftCertificateItemsByID') + } + + + const pathParams = { + basket_id: basketId, + gift_certificate_item_id: giftCertificateItemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/gift_certificate_items/{gift_certificate_item_id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Deletes a gift certificate item from an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + deleteBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId) { + return this.deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Removes a product item from the basket. * @param {String} basketId the id of the basket to be modified @@ -161,11 +230,14 @@ export default class BasketsApi { basket_id: basketId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -215,11 +287,14 @@ export default class BasketsApi { basket_id: basketId, note_id: noteId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -269,11 +344,14 @@ export default class BasketsApi { basket_id: basketId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -299,6 +377,63 @@ export default class BasketsApi { } + /** + * Removes a custom manual price adjustment from the basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'priceAdjustmentId' is set + if (priceAdjustmentId === undefined || priceAdjustmentId === null) { + throw new Error('Missing the required parameter \'priceAdjustmentId\' when calling deleteBasketsByIDPriceAdjustmentsByID') + } + + + const pathParams = { + basket_id: basketId, + price_adjustment_id: priceAdjustmentId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments/{price_adjustment_id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Removes a custom manual price adjustment from the basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + deleteBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId) { + return this.deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment. * @param {String} basketId the id of the basket to be modified @@ -323,11 +458,14 @@ export default class BasketsApi { basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -370,11 +508,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -399,6 +540,55 @@ export default class BasketsApi { } + /** + * Gets the approaching discounts of a basket + * @param {String} basketId The id of the basket to be checked. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ApproachingDiscountResult} and HTTP response + */ + getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling getBasketsByIDApproachingDiscounts') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ApproachingDiscountResult + + return this.apiClient.callApi( + '/baskets/{basket_id}/approaching_discounts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Gets the approaching discounts of a basket + * @param {String} basketId The id of the basket to be checked. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ApproachingDiscountResult} + */ + getBasketsByIDApproachingDiscounts(basketId) { + return this.getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Retrieves notes for a basket. * @param {String} basketId The id of the basket for which you want to retrieve the notes. @@ -416,11 +606,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = NotesResult @@ -462,11 +655,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PaymentMethodResult @@ -515,9 +711,12 @@ export default class BasketsApi { basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -568,11 +767,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -599,21 +801,71 @@ export default class BasketsApi { /** - * Updates an item in a basket. - * The following values in the request body are considered by the server: - * product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. - * shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. - * quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, - * the product item is removed. - * option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. - * This is only possible if the product item is an option product. - * To change option values a collection of option items to be changed need to be - * provided in property option_items. Those option_items need to contain option_id - * and option_value_id. The provided values must be valid for the option product that - * this product item represents. Otherwise InvalidProductOptionItemException or - * InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a - * value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. - * The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. + * Updates a gift certificate item of an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be updated + * @param {module:models/GiftCertificateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'giftCertificateItemId' is set + if (giftCertificateItemId === undefined || giftCertificateItemId === null) { + throw new Error('Missing the required parameter \'giftCertificateItemId\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + + const pathParams = { + basket_id: basketId, + gift_certificate_item_id: giftCertificateItemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/gift_certificate_items/{gift_certificate_item_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a gift certificate item of an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be updated + * @param {module:models/GiftCertificateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + patchBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId, body) { + return this.patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. * @param {String} basketId the id of the basket to be modified * @param {String} itemId the it of the item to be updated * @param {module:models/ProductItem} body @@ -642,11 +894,14 @@ export default class BasketsApi { basket_id: basketId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -659,20 +914,7 @@ export default class BasketsApi { } /** - * Updates an item in a basket. - * The following values in the request body are considered by the server: - * product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. - * shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. - * quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. - * option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. - * This is only possible if the product item is an option product. To change - * option values a collection of option items to be changed need to be - * provided in property option_items. Those option_items need to contain option_id and option_value_id. - * The provided values must be valid for the option product that this product item represents. Otherwise - * InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. - * custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute - * <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to - * add or change the value of a custom attribute defined for ProductLineItem. + * Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. * @param {String} basketId the id of the basket to be modified * @param {String} itemId the it of the item to be updated * @param {module:models/ProductItem} body @@ -687,11 +929,7 @@ export default class BasketsApi { /** - * Updates a payment instrument of a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. - * See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} + * Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} * @param {String} basketId the basket id * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/BasketPaymentInstrumentRequest} body @@ -720,11 +958,14 @@ export default class BasketsApi { basket_id: basketId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -737,10 +978,7 @@ export default class BasketsApi { } /** - * Updates a payment instrument of a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} + * Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} * @param {String} basketId the basket id * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/BasketPaymentInstrumentRequest} body @@ -755,11 +993,71 @@ export default class BasketsApi { /** - * Updates a shipment for a basket. - * The shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified - * the id the shipping address the shipping method gift boolean flag gift message custom properties + * Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be updated + * @param {module:models/PriceAdjustment} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'priceAdjustmentId' is set + if (priceAdjustmentId === undefined || priceAdjustmentId === null) { + throw new Error('Missing the required parameter \'priceAdjustmentId\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + + const pathParams = { + basket_id: basketId, + price_adjustment_id: priceAdjustmentId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments/{price_adjustment_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be updated + * @param {module:models/PriceAdjustment} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + patchBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId, body) { + return this.patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {String} shipmentId the id of the shipment to be modified * @param {module:models/Shipment} body @@ -788,11 +1086,14 @@ export default class BasketsApi { basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -805,11 +1106,7 @@ export default class BasketsApi { } /** - * Updates a shipment for a basket. - * The shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified the id the shipping address - * the shipping method gift boolean flag gift message custom properties + * Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {String} shipmentId the id of the shipment to be modified * @param {module:models/Shipment} body @@ -824,28 +1121,7 @@ export default class BasketsApi { /** - * Creates a new basket. The created basket is initialized with default values. Data provided in the body document - * will be populated into the created basket. It can be updated with further Shop API calls. - * Considered values from the request body are: - * customer information: PUT /baskets/{basket_id}/customer - * billing address: PUT /baskets/{basket_id}/billing_address - * shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments - * product items: POST /baskets/{basket_id}/items - * coupon items: POST /baskets/{basket_id}/coupons - * gift certificate items: POST /baskets/{basket_id}/gift_certificates - * payment method and card type: POST /baskets/{basket_id}/payment_instruments - * custom properties: PATCH /baskets/{basket_id} - * Related resource means with which resource you can specify the same data after the basket creation. - * Identify the basket using the basket_id property, which - * should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. - * The resource supports JWT or OAuth tokens for authentication: - * A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. - * An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. - * The number of baskets which can be created per customer is limited. When a - * basket is created it is said to be open. It remains open until either an order is created from it - * using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: - * When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be - * updated by support) + * Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource. * @param {Object} opts Optional parameters * @param {module:models/Basket} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -855,12 +1131,16 @@ export default class BasketsApi { const postBody = opts.body - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -873,27 +1153,7 @@ export default class BasketsApi { } /** - * Creates a new basket. The created basket is initialized with default values. Data provided in the body document - * will be populated into the created basket. It can be updated with further Shop API calls. - * Considered values from the request body are: - * customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address - * shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items - * coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates - * payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} - * Related resource means with which resource you can specify the same data after the basket creation. - * Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to - * /baskets/{basket_id}/items. - * The resource supports JWT or OAuth tokens for authentication: - * A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered - * customer). In this case the resource creates a basket for this customer. - * An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created - * guest customer, and can later update the customer if desired. - * The number of baskets which can be created per customer is limited. When a - * basket is created it is said to be open. It remains open until either an order is created from it - * using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication - * method used: - * When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be - * updated by support) + * Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource. * @param {Object} opts Optional parameters * @param {module:models/Basket} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -929,11 +1189,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -982,11 +1245,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1013,28 +1279,7 @@ export default class BasketsApi { /** - * Adds new items to a basket. - * The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. - * Considered values from the request body, for each item are: - * product_id: a valid product id. This is the id of the product to be added to the basket. If the - * product is already in the basket, the API either increments the quantity of the existing product line item or - * creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and - * product bundles containing variation masters, the API creates a new product line item regardless of the site - * preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. - * quantity: a number between 0.01 and 999. This is the quantity of the product to order. - * inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is - * allocated. - * bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the - * bonus discount line item for which the added product is a selected bonus product. - * option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. - * This is only possible if the product item is an option - * product. To set option values, you must specify a collection of option items in the option_items - * property. These option items must contain option_id and option_value_id. Also, - * the values you specify must be valid for the option product that this product item represents. Otherwise, the - * server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom - * attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the - * type of custom attribute defined for ProductLineItem. + * Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem. * @param {String} basketId The id of the basket to be modified. * @param {module:models/ProductItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1056,11 +1301,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1073,27 +1321,7 @@ export default class BasketsApi { } /** - * Adds new items to a basket. - * The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. - * Considered values from the request body, for each item are: - * product_id: a valid product id. This is the id of the product to be added to the basket. If the - * product is already in the basket, the API either increments the quantity of the existing product line item or - * creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and - * product bundles containing variation masters, the API creates a new product line item regardless of the site preference. - * shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. - * quantity: a number between 0.01 and 999. This is the quantity of the product to order. - * inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. - * bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the - * bonus discount line item for which the added product is a selected bonus product. - * option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. - * This is only possible if the product item is an option - * product. To set option values, you must specify a collection of option items in the option_items - * property. These option items must contain option_id and option_value_id. Also, - * the values you specify must be valid for the option product that this product item represents. - * Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom - * attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the - * type of custom attribute defined for ProductLineItem. + * Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem. * @param {String} basketId The id of the basket to be modified. * @param {module:models/ProductItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1129,11 +1357,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1160,11 +1391,7 @@ export default class BasketsApi { /** - * Adds a payment instrument to a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. - * NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. + * Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. * @param {String} basketId the basket id * @param {module:models/BasketPaymentInstrumentRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1186,11 +1413,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1203,12 +1433,7 @@ export default class BasketsApi { } /** - * Adds a payment instrument to a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. - * See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. - * NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. + * Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. * @param {String} basketId the basket id * @param {module:models/BasketPaymentInstrumentRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1222,16 +1447,63 @@ export default class BasketsApi { /** - * Creates a new shipment for a basket. - * The created shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified: - * the id - * the shipping address - * the shipping method - * gift boolean flag - * gift message - * custom properties + * Adds a custom manual price adjustment to the basket. + * @param {String} basketId the id of the basket to be modified + * @param {module:models/PriceAdjustmentRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling postBasketsByIDPriceAdjustments') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postBasketsByIDPriceAdjustments') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Adds a custom manual price adjustment to the basket. + * @param {String} basketId the id of the basket to be modified + * @param {module:models/PriceAdjustmentRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + postBasketsByIDPriceAdjustments(basketId, body) { + return this.postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {module:models/Shipment} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1253,11 +1525,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1270,16 +1545,7 @@ export default class BasketsApi { } /** - * Creates a new shipment for a basket. - * The created shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified: - * the id - * the shipping address - * the shipping method - * gift boolean flag - * gift message - * custom properties + * Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {module:models/Shipment} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1292,6 +1558,103 @@ export default class BasketsApi { } + /** + * Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket. + * @param {module:models/BasketReference} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + postBasketsReferenceWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postBasketsReference') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/reference', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket. + * @param {module:models/BasketReference} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + postBasketsReference(body) { + return this.postBasketsReferenceWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Marks a basket as an agent basket. + * @param {String} basketId the basket id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + putBasketsByIDAgentWithHttpInfo(basketId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling putBasketsByIDAgent') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/agent', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Marks a basket as an agent basket. + * @param {String} basketId the basket id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + putBasketsByIDAgent(basketId) { + return this.putBasketsByIDAgentWithHttpInfo(basketId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Sets the billing address of a basket. * @param {String} basketId The id of the basket to be modified. @@ -1318,10 +1681,12 @@ export default class BasketsApi { use_as_shipping: opts.useAsShipping, customer_address_id: opts.customerAddressId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1373,11 +1738,14 @@ export default class BasketsApi { const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1441,10 +1809,12 @@ export default class BasketsApi { use_as_billing: opts.useAsBilling, customer_address_id: opts.customerAddressId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1504,11 +1874,14 @@ export default class BasketsApi { basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1535,4 +1908,59 @@ export default class BasketsApi { } + /** + * Marks a basket as storefront basket. + * @param {String} basketId the basket id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.exchange + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + putBasketsByIDStorefrontWithHttpInfo(basketId, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling putBasketsByIDStorefront') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + exchange: opts.exchange + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/storefront', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Marks a basket as storefront basket. + * @param {String} basketId the basket id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.exchange + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + putBasketsByIDStorefront(basketId, opts) { + return this.putBasketsByIDStorefrontWithHttpInfo(basketId, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + } diff --git a/src/api/CategoriesApi.js b/src/api/CategoriesApi.js index 59d4626..cfa5de6 100644 --- a/src/api/CategoriesApi.js +++ b/src/api/CategoriesApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,32 +14,34 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Category from '../models/Category' import CategoryResult from '../models/CategoryResult' /** - * Categories service. - * @module api/CategoriesApi - * @version 17.8 - */ +* Categories service. +* @module api/CategoriesApi +* @version 20.4 +*/ export default class CategoriesApi { /** - * Constructs a new CategoriesApi. - * @alias module:api/CategoriesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CategoriesApi. + * @alias module:api/CategoriesApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * When you use the URL template below, the server returns a category identified by its id; by default, the server - * also returns the first level of subcategories, but you can specify another level by setting the levels - * parameter. The server only returns online categories. + * When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories. * @param {String} id The id of the requested category. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -55,6 +57,7 @@ export default class CategoriesApi { throw new Error('Missing the required parameter \'id\' when calling getCategoriesByID') } + const pathParams = { id } @@ -62,8 +65,10 @@ export default class CategoriesApi { levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -78,9 +83,7 @@ export default class CategoriesApi { } /** - * When you use the URL template below, the server returns a category identified by its id; by default, the server - * also returns the first level of subcategories, but you can specify another level by setting the levels - * parameter. The server only returns online categories. + * When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories. * @param {String} id The id of the requested category. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -94,6 +97,7 @@ export default class CategoriesApi { }) } + /** * @param {Array.} ids * @param {Object} opts Optional parameters @@ -110,6 +114,7 @@ export default class CategoriesApi { throw new Error('Missing the required parameter \'ids\' when calling getCategoriesByIDs') } + const pathParams = { ids } @@ -117,8 +122,10 @@ export default class CategoriesApi { levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -145,4 +152,6 @@ export default class CategoriesApi { return response_and_data.data }) } + + } diff --git a/src/api/ContentApi.js b/src/api/ContentApi.js index 174dff1..f65eb2f 100644 --- a/src/api/ContentApi.js +++ b/src/api/ContentApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,32 +14,34 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from '../models/Content' import ContentResult from '../models/ContentResult' /** - * Content service. - * @module api/ContentApi - * @version 17.8 - */ +* Content service. +* @module api/ContentApi +* @version 20.4 +*/ export default class ContentApi { /** - * Constructs a new ContentApi. - * @alias module:api/ContentApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ContentApi. + * @alias module:api/ContentApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * To access a content asset, you construct a URL using the template shown below. This template requires you to - * specify a content asset id. In response, the server returns a corresponding content asset document. Only content - * assets, which are marked as online are returned. An assignment to a folder is not necessary. + * To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary. * @param {String} id The id of the requested content asset. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -61,8 +63,10 @@ export default class ContentApi { const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -77,9 +81,7 @@ export default class ContentApi { } /** - * To access a content asset, you construct a URL using the template shown below. This template requires you to - * specify a content asset id. In response, the server returns a corresponding content asset document. Only content - * assets, which are marked as online are returned. An assignment to a folder is not necessary. + * To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary. * @param {String} id The id of the requested content asset. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -115,8 +117,10 @@ export default class ContentApi { const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] diff --git a/src/api/ContentSearchApi.js b/src/api/ContentSearchApi.js index 58dcab3..40868c4 100644 --- a/src/api/ContentSearchApi.js +++ b/src/api/ContentSearchApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,44 +14,37 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentSearchResult from '../models/ContentSearchResult' /** - * Content_search service. - * @module api/ContentSearchApi - * @version 17.8 - */ +* Content_search service. +* @module api/ContentSearchApi +* @version 20.4 +*/ export default class ContentSearchApi { /** - * Constructs a new ContentSearchApi. - * @alias module:api/ContentSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ContentSearchApi. + * @alias module:api/ContentSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Provides keyword and refinement search functionality for content assets. The search result contains only content that is online and assigned to a folder. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The - * following system refinement attribute ids are supported: - * fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. - * @param {Array.} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are - * separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for - * ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select - * your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting - * Attributes. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. + * @param {Array.} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting Attributes. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. @@ -62,25 +55,26 @@ export default class ContentSearchApi { const postBody = null - const pathParams = {} + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: this.apiClient.buildCollectionParam(opts.sort, 'csv'), start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ContentSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/content_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -92,19 +86,8 @@ export default class ContentSearchApi { * Provides keyword and refinement search functionality for content assets. The search result contains only content that is online and assigned to a folder. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The - * following system refinement attribute ids are supported: - * fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. - * @param {Array.} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are - * separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for - * ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select - * your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting - * Attributes. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. + * @param {Array.} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting Attributes. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. @@ -116,4 +99,6 @@ export default class ContentSearchApi { return response_and_data.data }) } + + } diff --git a/src/api/CustomObjectsApi.js b/src/api/CustomObjectsApi.js index 26ee7d1..c658544 100644 --- a/src/api/CustomObjectsApi.js +++ b/src/api/CustomObjectsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,23 +14,25 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomObject from '../models/CustomObject' /** - * Custom_objects service. - * @module api/CustomObjectsApi - * @version 17.8 - */ +* Custom_objects service. +* @module api/CustomObjectsApi +* @version 20.4 +*/ export default class CustomObjectsApi { /** - * Constructs a new CustomObjectsApi. - * @alias module:api/CustomObjectsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CustomObjectsApi. + * @alias module:api/CustomObjectsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -61,9 +63,12 @@ export default class CustomObjectsApi { object_type: objectType, key } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] diff --git a/src/api/CustomersApi.js b/src/api/CustomersApi.js index 96cf5b5..26e7bc7 100644 --- a/src/api/CustomersApi.js +++ b/src/api/CustomersApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,33 +14,38 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BasketsResult from '../models/BasketsResult' +import Customer from '../models/Customer' import CustomerAddress from '../models/CustomerAddress' import CustomerAddressResult from '../models/CustomerAddressResult' -import Customer from '../models/Customer' import CustomerOrderResult from '../models/CustomerOrderResult' import CustomerPaymentInstrument from '../models/CustomerPaymentInstrument' import CustomerPaymentInstrumentResult from '../models/CustomerPaymentInstrumentResult' +import CustomerProductList from '../models/CustomerProductList' import CustomerProductListItem from '../models/CustomerProductListItem' +import CustomerProductListItemPurchase from '../models/CustomerProductListItemPurchase' +import CustomerProductListItemPurchaseResult from '../models/CustomerProductListItemPurchaseResult' import CustomerProductListItemResult from '../models/CustomerProductListItemResult' -import CustomerProductList from '../models/CustomerProductList' import CustomerProductListResult from '../models/CustomerProductListResult' +import ResetPasswordTokenResult from '../models/ResetPasswordTokenResult' /** - * Customers service. - * @module api/CustomersApi - * @version 17.8 - */ +* Customers service. +* @module api/CustomersApi +* @version 20.4 +*/ export default class CustomersApi { /** - * Constructs a new CustomersApi. - * @alias module:api/CustomersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CustomersApi. + * @alias module:api/CustomersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -50,7 +55,7 @@ export default class CustomersApi { /** * Invalidates the JWT provided in the header. * @param {Object} opts Optional parameters - * @param {String} opts.authorization the JWT token + * @param {String} opts.authorization the JWT * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ deleteCustomersAuthWithHttpInfo(opts) { @@ -58,12 +63,15 @@ export default class CustomersApi { const postBody = null - const pathParams = {} - const queryParams = {} + const pathParams = { + } + const queryParams = { + } const headerParams = { Authorization: opts.authorization } - const formParams = {} + const formParams = { + } const authNames = ['customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -80,7 +88,7 @@ export default class CustomersApi { /** * Invalidates the JWT provided in the header. * @param {Object} opts Optional parameters - * @param {String} opts.authorization the JWT token + * @param {String} opts.authorization the JWT * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ deleteCustomersAuth(opts) { @@ -115,11 +123,14 @@ export default class CustomersApi { customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -169,11 +180,14 @@ export default class CustomersApi { customer_id: customerId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -223,11 +237,14 @@ export default class CustomersApi { customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -284,11 +301,14 @@ export default class CustomersApi { list_id: listId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -338,10 +358,12 @@ export default class CustomersApi { const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -369,11 +391,7 @@ export default class CustomersApi { /** - * Returns a sorted pageable list of all customer addresses in the address book. The default page - * size is 10 customer addresses. The addresses are sorted so that the preferred address is - * always sorted first. The remaining addresses are sorted alphabetically by ID. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent - * but an empty result list is returned in a case of JWT. + * Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId The customer uuid * @param {Object} opts Optional parameters * @param {Number} opts.start @@ -397,10 +415,12 @@ export default class CustomersApi { start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddressResult @@ -413,11 +433,7 @@ export default class CustomersApi { } /** - * Returns a sorted pageable list of all customer addresses in the address book. The default - * page size is 10 customer addresses. The addresses are sorted so that the preferred - * address is always sorted first. The remaining addresses are sorted alphabetically by ID. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId The customer uuid * @param {Object} opts Optional parameters * @param {Number} opts.start @@ -456,11 +472,14 @@ export default class CustomersApi { customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -503,11 +522,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = BasketsResult @@ -565,10 +587,12 @@ export default class CustomersApi { until: opts.until, status: opts.status } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerOrderResult @@ -601,10 +625,7 @@ export default class CustomersApi { /** - * Gets customer payment instruments for an customer. Can be limited to a specific payment - * method by providing query parameter payment_method_id. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId the id of the customer to retrieve the payment instruments for * @param {Object} opts Optional parameters * @param {String} opts.paymentMethodId @@ -626,10 +647,12 @@ export default class CustomersApi { const queryParams = { payment_method_id: opts.paymentMethodId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrumentResult @@ -642,10 +665,7 @@ export default class CustomersApi { } /** - * Gets customer payment instruments for an customer. Can be limited to a specific payment - * method by providing query parameter payment_method_id. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId the id of the customer to retrieve the payment instruments for * @param {Object} opts Optional parameters * @param {String} opts.paymentMethodId @@ -683,11 +703,14 @@ export default class CustomersApi { customer_id: customerId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrument @@ -736,10 +759,12 @@ export default class CustomersApi { const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListResult @@ -796,10 +821,12 @@ export default class CustomersApi { const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -861,10 +888,12 @@ export default class CustomersApi { start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItemResult @@ -931,10 +960,12 @@ export default class CustomersApi { const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -963,6 +994,144 @@ export default class CustomersApi { } + /** + * Returns a list of all purchases of an item from a customer's product list. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve from. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchaseResult} and HTTP response + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId) { + const postBody = null + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchaseResult + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a list of all purchases of an item from a customer's product list. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve from. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchaseResult} + */ + getCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId) { + return this.getCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Returns a purchase of an item from a customer's product list. + * @param {String} customerId The id of the customer to retrieve the product list items for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId) { + const postBody = null + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'purchaseId' is set + if (purchaseId === undefined || purchaseId === null) { + throw new Error('Missing the required parameter \'purchaseId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId, + purchase_id: purchaseId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases/{purchase_id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a purchase of an item from a customer's product list. + * @param {String} customerId The id of the customer to retrieve the product list items for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId) { + return this.getCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Updates a customer. * @param {String} customerId the customer id @@ -986,11 +1155,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -1046,11 +1218,14 @@ export default class CustomersApi { customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -1107,11 +1282,14 @@ export default class CustomersApi { customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -1139,13 +1317,7 @@ export default class CustomersApi { /** - * Updates an item of a customer's product list. Considered values from the request body are: - * priority: This is the priority of the customer's product list item. - * public: This is the flag whether the customer's product list item is public. - * quantity: used for product item type only. This is the quantity of the customer's product list item. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a - * custom attribute (<CUSTOM_NAME>) defined for ProductListItem. - * The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Updates an item of a customer's product list. Considered values from the request body are: priority: This is the priority of the customer's product list item. public: This is the flag whether the customer's product list item is public. quantity: used for product item type only. This is the quantity of the customer's product list item. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the owner of the product list. * @param {String} listId The id of the product list. * @param {String} itemId The id of the product list item to update. @@ -1181,11 +1353,14 @@ export default class CustomersApi { list_id: listId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -1198,13 +1373,7 @@ export default class CustomersApi { } /** - * Updates an item of a customer's product list. Considered values from the request body are: - * priority: This is the priority of the customer's product list item. - * public: This is the flag whether the customer's product list item is public. - * quantity: used for product item type only. This is the quantity of the customer's product list item. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a - * custom attribute (<CUSTOM_NAME>) defined for ProductListItem. - * The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Updates an item of a customer's product list. Considered values from the request body are: priority: This is the priority of the customer's product list item. public: This is the flag whether the customer's product list item is public. quantity: used for product item type only. This is the quantity of the customer's product list item. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the owner of the product list. * @param {String} listId The id of the product list. * @param {String} itemId The id of the product list item to update. @@ -1220,9 +1389,87 @@ export default class CustomersApi { /** - * Registers a customer. The mandatory data are the credentials and profile last name and email. - * When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException - * will be thrown. When using JWT the password is required. + * Updates a purchase of an item from a customer's product list. Considered values from the request body are: custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + patchCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId, body) { + const postBody = body + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'purchaseId' is set + if (purchaseId === undefined || purchaseId === null) { + throw new Error('Missing the required parameter \'purchaseId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId, + purchase_id: purchaseId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases/{purchase_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a purchase of an item from a customer's product list. Considered values from the request body are: custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + patchCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId, body) { + return this.patchCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required. * @param {module:models/CustomerRegistration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response */ @@ -1235,12 +1482,16 @@ export default class CustomersApi { } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -1253,9 +1504,7 @@ export default class CustomersApi { } /** - * Registers a customer. The mandatory data are the credentials and profile last name and email. - * When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException - * will be thrown. When using JWT the password is required. + * Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required. * @param {module:models/CustomerRegistration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} */ @@ -1268,29 +1517,7 @@ export default class CustomersApi { /** - * Obtains a new JWT (JSON Web Token) for a guest or registered customer. - * Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: - * Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. - * Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an - * AuthenticationFailedException. - * Type session - authenticates the customer (anonymous or registered) on base of dwsid and dwsecuretoken cookies. It returns - * a token for a successfully authenticated customer, otherwise results in an - * AuthenticationFailedException. - * Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. - * For a request of type credentials: - * Updates profile attributes for the customer (for example, \"last-visited\"). Handles the maximum number of failed login attempts. - * For a request of type session: - * Does not touch profile attributes for the registered customer (for example, \"last-visited\"), since this is not a real login. Returns different tokens for multiple - * requests with the same session id. Means, there should be only one call per session. - * About JWT The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. - * A token is created and returned to the client whenever a registered customer logs in (type \"credentials\") or a guest customer requests it (type \"guest\"). - * The token is returned in the response header as Authorization: Bearer --token-- - * The client has to include the token in the request header as - * Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or - * which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \"refresh\"). - * See \"API Usage > JWT\" for more details on using JWT as an authentication mechanism. + * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, \"last-visited\"). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can't be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, \"last-visited\"), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type \"credentials\") or a guest customer requests it (type \"guest\"). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \"refresh\"). See \"API Usage > JWT\" for more details on using JWT as an authentication mechanism. * @param {module:models/AuthRequest} body * @param {Object} opts Optional parameters * @param {String} opts.authorization Authorization:Basic for type credentials Authorization:Bearer for type refresh @@ -1306,12 +1533,15 @@ export default class CustomersApi { } - const pathParams = {} - const queryParams = {} + const pathParams = { + } + const queryParams = { + } const headerParams = { Authorization: opts.authorization } - const formParams = {} + const formParams = { + } const authNames = ['client_id'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1329,34 +1559,7 @@ export default class CustomersApi { } /** - * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response - * header entry. These kinds of request are supported, as specified by the type: - * Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. - * Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an - * AuthenticationFailedException. - * Type session - authenticates the customer (anonymous or registered) - * on base of dwsid and dwsecuretoken cookies. It returns a token for a - * successfully authenticated customer, otherwise results in an - * AuthenticationFailedException. - * Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. - * For a request of type credentials: - * Updates profile attributes for the customer (for example, \"last-visited\"). - * Handles the maximum number of failed login attempts. - * For a request of type session: - * Does not touch profile attributes for the registered customer (for example, \"last-visited\"), since this is not a real login. - * Returns different tokens for multiple requests with the same session id. Means, there should be - * only one call per session. - * About JWT The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token is created and returned to the client whenever a registered - * customer logs in (type \"credentials\") or a guest customer requests it (type \"guest\"). The token is returned in the response header as Authorization: Bearer --token-- - * The client has to include the token in the request header as - * Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests - * without a token or which cannot be verified based on the token signature - * or expiration time. A token nearing its expiration time should be exchanged for a new one (type \"refresh\"). - * See \"API Usage > JWT\" for more details on using JWT as an authentication mechanism. + * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, \"last-visited\"). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can't be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, \"last-visited\"), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type \"credentials\") or a guest customer requests it (type \"guest\"). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \"refresh\"). See \"API Usage > JWT\" for more details on using JWT as an authentication mechanism. * @param {module:models/AuthRequest} body * @param {Object} opts Optional parameters * @param {String} opts.authorization Authorization:Basic for type credentials Authorization:Bearer for type refresh @@ -1370,6 +1573,54 @@ export default class CustomersApi { } + /** + * Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header. + * @param {module:models/TrustedSystemAuthRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response + */ + postCustomersAuthTrustedsystemWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersAuthTrustedsystem') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Customer + + return this.apiClient.callApi( + '/customers/auth/trustedsystem', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header. + * @param {module:models/TrustedSystemAuthRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} + */ + postCustomersAuthTrustedsystem(body) { + return this.postCustomersAuthTrustedsystemWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Creates a new address with the given name for the given customer. * @param {String} customerId the id of the customer to create the address for @@ -1393,11 +1644,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -1424,17 +1678,7 @@ export default class CustomersApi { /** - * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer - * response header entry. - * A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. - * The token is returned in the response header as Authorization: Bearer --token--. - * The client has to include the token in the request header as Authorization: Bearer --token-- - * in any follow up request, the agent will do on behalf of the customer. - * About the order on behalf token - * The token contains 3 sections: - * the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token nearing its expiration time should be exchanged for a new one by calling this resource once more. + * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more. * @param {String} customerId specifies the customer to act on behalf of * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response */ @@ -1450,9 +1694,12 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1467,17 +1714,7 @@ export default class CustomersApi { } /** - * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. - * A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. - * The token is returned in the response header as Authorization: Bearer --token--. - * The client has to include the token in the request header as Authorization: Bearer --token-- - * in any follow up request, the agent will do on behalf of the customer. - * About the order on behalf token - * The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token nearing its expiration time should be exchanged for a new one by calling this resource once more. + * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more. * @param {String} customerId specifies the customer to act on behalf of * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} */ @@ -1490,10 +1727,7 @@ export default class CustomersApi { /** - * Starts a password reset process. A password reset token is generated and passed together with the customer - * resolved by the id provided as path parameter to a afterPOST hook. The hook - * dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to - * send a reset email. + * Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email. * @param {String} customerId the id of the customer * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ @@ -1509,11 +1743,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -1526,10 +1763,7 @@ export default class CustomersApi { } /** - * Starts a password reset process. A password reset token is generated and passed together with the customer - * resolved by the id provided as path parameter to a afterPOST hook. - * The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, - * for example to send a reset email. + * Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email. * @param {String} customerId the id of the customer * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ @@ -1564,11 +1798,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrument @@ -1617,11 +1854,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -1635,8 +1875,8 @@ export default class CustomersApi { /** * Creates a customer product list. - * @param {String} customerId The customer id. * @param {module:models/CustomerProductList} body + * @param {String} customerId The customer id. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductList} */ postCustomersByIDProductLists(customerId, body) { @@ -1648,18 +1888,7 @@ export default class CustomersApi { /** - * Adds an item to the customer's product list. - * Considered values from the request body are: - * type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. - * priority: This is the priority of the item to be added to the customer's product list. - * public: This is the flag whether the item to be added to the customer's product list is public. - * product_id: a valid product id, used for product item type only. This is the id (sku) - * of the product related to the item to be added to the customer's product list. It is mandatory for - * product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. - * quantity: used for product item type only. This is the quantity of the item to be - * added to the customer's product list. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom - * attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Adds an item to the customer's product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. priority: This is the priority of the item to be added to the customer's product list. public: This is the flag whether the item to be added to the customer's product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer's product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the customer - owner of the product list. * @param {String} listId The id of the product list * @param {module:models/CustomerProductListItem} body @@ -1688,11 +1917,14 @@ export default class CustomersApi { customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -1705,17 +1937,7 @@ export default class CustomersApi { } /** - * Adds an item to the customer's product list. Considered values from the request body are: - * type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. - * priority: This is the priority of the item to be added to the customer's product list. - * public: This is the flag whether the item to be added to the customer's product list is public. - * product_id: a valid product id, used for product item type only. This is the id (sku) of the product - * related to the item to be added to the customer's product list. It is mandatory for product item type and it must - * be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. - * quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. - * custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom - * attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid - * for the type of custom attribute defined for ProductListItem. + * Adds an item to the customer's product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. priority: This is the priority of the item to be added to the customer's product list. public: This is the flag whether the item to be added to the customer's product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer's product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the customer - owner of the product list. * @param {String} listId The id of the product list * @param {module:models/CustomerProductListItem} body @@ -1730,15 +1952,175 @@ export default class CustomersApi { /** - * First the beforePOST hook is called. After that the validation of the - * customer information provided in the the password reset document is performed. - * Then a password reset token is generated and together with the resolved - * customer is passed to a afterPOST hook. The customer resolution is based - * on the password reset request type. Both hooks are performed in a single transaction. - * Currently the resolution can be done by email or login. In case of an email the password reset - * hook is only executed if one and only one customer has been identified for that email. - * In the case that more than one customers have been identified for the provided email the - * resource does nothing. + * Adds a purchase to an item in the customer's product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer - owner of the product list. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item where to add the purchase. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + postCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId, body) { + const postBody = body + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Adds a purchase to an item in the customer's product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer - owner of the product list. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item where to add the purchase. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + postCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId, body) { + return this.postCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Returns a reset password token for the passed in customer's login that will be used with the customers/reset_password endpoint to change the customer's password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ResetPasswordTokenResult} and HTTP response + */ + postCustomersPasswordActionsCreateResetTokenWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersPasswordActionsCreateResetToken') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ResetPasswordTokenResult + + return this.apiClient.callApi( + '/customers/password/actions/create_reset_token', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a reset password token for the passed in customer's login that will be used with the customers/reset_password endpoint to change the customer's password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ResetPasswordTokenResult} + */ + postCustomersPasswordActionsCreateResetToken(body) { + return this.postCustomersPasswordActionsCreateResetTokenWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Changes the customer's password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + postCustomersPasswordActionsResetWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersPasswordActionsReset') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = null + + return this.apiClient.callApi( + '/customers/password/actions/reset', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Changes the customer's password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + postCustomersPasswordActionsReset(body) { + return this.postCustomersPasswordActionsResetWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing. * @param {module:models/PasswordReset} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ @@ -1751,10 +2133,14 @@ export default class CustomersApi { } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1769,14 +2155,7 @@ export default class CustomersApi { } /** - * First the beforePOST hook is called. After that the validation of the - * customer information provided in the the password reset document is performed. - * Then a password reset token is generated and together with the resolved - * customer is passed to a afterPOST hook. The customer resolution is based - * on the password reset request type. Both hooks are performed in a single transaction. - * Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one - * customer has been identified for that email. In the case that more than one - * customers have been identified for the provided email the resource does nothing. + * First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing. * @param {module:models/PasswordReset} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ @@ -1811,11 +2190,14 @@ export default class CustomersApi { const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth'] + const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null diff --git a/src/api/FoldersApi.js b/src/api/FoldersApi.js index 5b92691..793ab38 100644 --- a/src/api/FoldersApi.js +++ b/src/api/FoldersApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,24 +14,26 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentFolder from '../models/ContentFolder' import ContentFolderResult from '../models/ContentFolderResult' /** - * Folders service. - * @module api/FoldersApi - * @version 17.8 - */ +* Folders service. +* @module api/FoldersApi +* @version 20.4 +*/ export default class FoldersApi { /** - * Constructs a new FoldersApi. - * @alias module:api/FoldersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new FoldersApi. + * @alias module:api/FoldersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -39,10 +41,7 @@ export default class FoldersApi { /** - * To access a content folder, you construct a URL using the template shown below. This - * template requires you to specify a content folder id and a subfolder level. In response, - * the server returns a corresponding content folder document. Only content folder, - * which are marked as online are returned. + * To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned. * @param {String} id The id of the requested content folder. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -66,8 +65,10 @@ export default class FoldersApi { levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -82,10 +83,7 @@ export default class FoldersApi { } /** - * To access a content folder, you construct a URL using the template shown below. - * This template requires you to specify a content folder id and a subfolder level. - * In response, the server returns a corresponding content folder document. Only content - * folder, which are marked as online are returned. + * To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned. * @param {String} id The id of the requested content folder. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -124,8 +122,10 @@ export default class FoldersApi { levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] diff --git a/src/api/GiftCertificateApi.js b/src/api/GiftCertificateApi.js index 69af134..e1d88ef 100644 --- a/src/api/GiftCertificateApi.js +++ b/src/api/GiftCertificateApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,27 +14,31 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import GiftCertificate from '../models/GiftCertificate' /** - * Gift_certificate service. - * @module api/GiftCertificateApi - * @version 17.8 - */ +* Gift_certificate service. +* @module api/GiftCertificateApi +* @version 20.4 +*/ export default class GiftCertificateApi { /** - * Constructs a new GiftCertificateApi. - * @alias module:api/GiftCertificateApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new GiftCertificateApi. + * @alias module:api/GiftCertificateApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Action to retrieve an existing gift certificate. * @param {Object} opts Optional parameters @@ -45,12 +49,17 @@ export default class GiftCertificateApi { opts = opts || {} const postBody = opts.body - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = GiftCertificate @@ -74,4 +83,6 @@ export default class GiftCertificateApi { return response_and_data.data }) } + + } diff --git a/src/api/OrderSearchApi.js b/src/api/OrderSearchApi.js index 89f3487..be50acf 100644 --- a/src/api/OrderSearchApi.js +++ b/src/api/OrderSearchApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,45 +14,33 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderSearchResult from '../models/OrderSearchResult' /** - * Order_search service. - * @module api/OrderSearchApi - * @version 17.8 - */ +* Order_search service. +* @module api/OrderSearchApi +* @version 20.4 +*/ export default class OrderSearchApi { /** - * Constructs a new OrderSearchApi. - * @alias module:api/OrderSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new OrderSearchApi. + * @alias module:api/OrderSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Searches for orders. - * The query attribute specifies a complex query that can be used to narrow down the search. - * Note that search fields are mandatory now and no default ones are supported. - * As the old order search version, the new one always uses Search Service too and the for that reason Order - * Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. - * The supported search fields are: - * affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) - * created_by creation_date currency_code customer_email customer_name customer_no export_after - * export_status (String) external_order_no external_order_status last_modified order_no original_order_no - * payment_status (String) replaced_order_no replacement_order_no shipping_status (String) - * status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code - * coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type - * payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number - * shipments.shipping_method_id shipping_orders.shipping_order_number - * The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects - * presenting field name and sort direction (\"asc\" or \"desc\"). - * Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them. + * Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects presenting field name and sort direction (\"asc\" or \"desc\"). Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them. * @param {module:models/OrderSearchRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/OrderSearchResult} and HTTP response */ @@ -64,12 +52,17 @@ export default class OrderSearchApi { throw new Error('Missing the required parameter \'body\' when calling postOrderSearch') } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = OrderSearchResult @@ -82,23 +75,7 @@ export default class OrderSearchApi { } /** - * Searches for orders. - * The query attribute specifies a complex query that can be used to narrow down the search. - * Note that search fields are mandatory now and no default ones are supported. - * As the old order search version, the new one always uses Search Service too and the for that reason Order - * Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. - * The supported search fields are: - * affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) - * created_by creation_date currency_code customer_email customer_name customer_no export_after - * export_status (String) external_order_no external_order_status last_modified order_no original_order_no - * payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) - * total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id - * holds.type invoices.status order_items.status payment_instruments.credit_card_type - * payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number - * shipments.shipping_method_id shipping_orders.shipping_order_number - * The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects - * presenting field name and sort direction (\"asc\" or \"desc\"). - * Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them. + * Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the \"sorts\" parameter. It is a list of objects presenting field name and sort direction (\"asc\" or \"desc\"). Custom attributes could be used as search fields and as sort fields too. A prefix \"c_\" has to be added to them. * @param {module:models/OrderSearchRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/OrderSearchResult} */ @@ -108,4 +85,6 @@ export default class OrderSearchApi { return response_and_data.data }) } + + } diff --git a/src/api/OrdersApi.js b/src/api/OrdersApi.js index ea2dcab..98d3cd5 100644 --- a/src/api/OrdersApi.js +++ b/src/api/OrdersApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,29 +14,33 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import NotesResult from '../models/NotesResult' import Order from '../models/Order' import PaymentMethodResult from '../models/PaymentMethodResult' /** - * Orders service. - * @module api/OrdersApi - * @version 17.8 - */ +* Orders service. +* @module api/OrdersApi +* @version 20.4 +*/ export default class OrdersApi { /** - * Constructs a new OrdersApi. - * @alias module:api/OrdersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new OrdersApi. + * @alias module:api/OrdersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Removes an order note. * @param {String} orderNo the id of the order to be modified @@ -56,15 +60,19 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'noteId\' when calling deleteOrdersByIDNotesByID') } + const pathParams = { order_no: orderNo, note_id: noteId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -89,6 +97,7 @@ export default class OrdersApi { }) } + /** * Removes a payment instrument of an order. * @param {String} orderNo the order number @@ -108,15 +117,19 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'paymentInstrumentId\' when calling deleteOrdersByIDPaymentInstrumentsByID') } + const pathParams = { order_no: orderNo, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -155,14 +168,18 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByID') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -200,14 +217,18 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByIDNotes') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = NotesResult @@ -245,14 +266,18 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByIDPaymentMethods') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PaymentMethodResult @@ -276,11 +301,9 @@ export default class OrdersApi { }) } + /** - * Update an order. - * Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) - * plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a - * successful call. Without agent context the channel type will be storefront otherwise callcenter. + * Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter. * @param {String} orderNo the order number * @param {module:models/Order} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response @@ -298,14 +321,18 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'body\' when calling patchOrdersByID') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -318,11 +345,7 @@ export default class OrdersApi { } /** - * Update an order. - * Considered fields for update are status (same status transitions are possible as for - * dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During - * the call the correct channel type will be assured to be set for the order in a successful call. - * Without agent context the channel type will be storefront otherwise callcenter. + * Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter. * @param {String} orderNo the order number * @param {module:models/Order} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} @@ -334,37 +357,18 @@ export default class OrdersApi { }) } + /** - * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. - * Details: - * The payment instrument is updated with the provided details. The payment method must be applicable for the - * order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a - * payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument - * is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType - * the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. - * See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment - * instrument (An exception is thrown if none was found). Otherwise the data from the request document - * is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available - * to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is - * resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. - * Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) - * in the scripting API) results in the order being changed to status NEW and prepared for export. + * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ - patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body) { + patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body, opts) { + opts = opts || {} const postBody = body // verify the required parameter 'orderNo' is set @@ -382,15 +386,20 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'body\' when calling patchOrdersByIDPaymentInstrumentsByID') } + const pathParams = { order_no: orderNo, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + skip_authorization: opts.skipAuthorization + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -403,49 +412,24 @@ export default class OrdersApi { } /** - * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. - * Details: - * The payment instrument is updated with the provided details. The payment method must be applicable - * for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a - * payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument - * is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the - * customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. - * See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied - * from the customer payment instrument (An exception is thrown if none was found). - * Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if - * available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved - * from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or - * exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in - * the order being changed to status NEW and prepared for export. + * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ - patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body) { - return this.patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body) + patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body, opts) { + return this.patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body, opts) .then((response_and_data) => { return response_and_data.data }) } + /** - * Submits an order based on a prepared basket. - * Note: If the basket has been submitted using Order Center (considered by it's client id) the channel - * type will be set to \"Call Center\". In case another channel type was set by a script - * before submitting the basket, the channel type will be reset to \"Call Center\" and a warning - * will be logged. The only considered value from the request body is basket_id. + * Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it's client id) the channel type will be set to \"Call Center\". In case another channel type was set by a script before submitting the basket, the channel type will be reset to \"Call Center\" and a warning will be logged. The only considered value from the request body is basket_id. * @param {module:models/Basket} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ @@ -457,12 +441,17 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'body\' when calling postOrders') } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -475,11 +464,7 @@ export default class OrdersApi { } /** - * Submits an order based on a prepared basket. - * Note: If the basket has been submitted using Order Center (considered by it's client id) the - * channel type will be set to \"Call Center\". In case another channel type was set by - * a script before submitting the basket, the channel type will be reset to \"Call Center\" - * and a warning will be logged. The only considered value from the request body is basket_id. + * Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it's client id) the channel type will be set to \"Call Center\". In case another channel type was set by a script before submitting the basket, the channel type will be reset to \"Call Center\" and a warning will be logged. The only considered value from the request body is basket_id. * @param {module:models/Basket} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ @@ -490,6 +475,7 @@ export default class OrdersApi { }) } + /** * Adds a note to an existing order. * @param {String} orderNo The id of the order to be modified. @@ -509,14 +495,18 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'body\' when calling postOrdersByIDNotes') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -541,40 +531,17 @@ export default class OrdersApi { }) } + /** - * Adds a payment instrument to an order. It is possible either to supply the full payment information - * or only a customer payment instrument id and amount. In case the customer payment instrument - * id was set all the other properties (except amount) are ignored and the payment data is - * resolved from the stored customer payment information. An attempt is made to authorize the order - * by passing it to the authorize or authorizeCreditCard hook. - * Details: - * The payment instrument is added with the provided details or the details from the customer payment - * instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the - * payment method is 'CREDIT_CARD' a payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an - * dw.order.OrderPaymentInstrument is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument - * contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer - * payment instrument (An exception is thrown if none was found). - * Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to - * dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is - * resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. - * Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results - * in the order being changed to status NEW and prepared for export. + * Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ - postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body) { + postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body, opts) { + opts = opts || {} const postBody = body // verify the required parameter 'orderNo' is set @@ -587,14 +554,19 @@ export default class OrdersApi { throw new Error('Missing the required parameter \'body\' when calling postOrdersByIDPaymentInstruments') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + skip_authorization: opts.skipAuthorization + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -607,42 +579,75 @@ export default class OrdersApi { } /** - * Adds a payment instrument to an order. It is possible either to supply the full payment information - * or only a customer payment instrument id and amount. In case the customer payment instrument id - * was set all the other properties (except amount) are ignored and the payment data is resolved - * from the stored customer payment information. An attempt is made to authorize the order by passing - * it to the authorize or authorizeCreditCard hook. - * Details: - * The payment instrument is added with the provided details or the details from the customer payment - * instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the - * payment method is 'CREDIT_CARD' a payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an - * dw.order.OrderPaymentInstrument is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument - * contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from - * the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request - * document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be - * propagated if available to dw.order.payment.authorizeCreditCard even if the - * dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount - * equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) - * results in the order being changed to status NEW and prepared for export. + * Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ - postOrdersByIDPaymentInstruments(orderNo, body) { - return this.postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body) + postOrdersByIDPaymentInstruments(orderNo, body, opts) { + return this.postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body, opts) .then((response_and_data) => { return response_and_data.data }) } + + + /** + * Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified. + * @param {String} orderNo The order number to assign to the new order. + * @param {module:models/Basket} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response + */ + putOrdersByIDWithHttpInfo(orderNo, body) { + const postBody = body + + // verify the required parameter 'orderNo' is set + if (orderNo === undefined || orderNo === null) { + throw new Error('Missing the required parameter \'orderNo\' when calling putOrdersByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling putOrdersByID') + } + + + const pathParams = { + order_no: orderNo + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Order + + return this.apiClient.callApi( + '/orders/{order_no}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified. + * @param {String} orderNo The order number to assign to the new order. + * @param {module:models/Basket} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} + */ + putOrdersByID(orderNo, body) { + return this.putOrdersByIDWithHttpInfo(orderNo, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + } diff --git a/src/api/PriceAdjustmentLimitsApi.js b/src/api/PriceAdjustmentLimitsApi.js index 924b34f..d3a330a 100644 --- a/src/api/PriceAdjustmentLimitsApi.js +++ b/src/api/PriceAdjustmentLimitsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,42 +14,49 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustmentLimits from '../models/PriceAdjustmentLimits' /** - * Price_adjustment_limits service. - * @module api/PriceAdjustmentLimitsApi - * @version 17.8 - */ +* Price_adjustment_limits service. +* @module api/PriceAdjustmentLimitsApi +* @version 20.4 +*/ export default class PriceAdjustmentLimitsApi { /** - * Constructs a new PriceAdjustmentLimitsApi. - * @alias module:api/PriceAdjustmentLimitsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new PriceAdjustmentLimitsApi. + * @alias module:api/PriceAdjustmentLimitsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. - * At least one of the following functional permissions must be assigned to the user to be able to access it: - * Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. + * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/PriceAdjustmentLimits} and HTTP response */ getPriceAdjustmentLimitsWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PriceAdjustmentLimits @@ -62,9 +69,7 @@ export default class PriceAdjustmentLimitsApi { } /** - * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. - * At least one of the following functional permissions must be assigned to the user to be able to access it: - * Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. + * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/PriceAdjustmentLimits} */ getPriceAdjustmentLimits() { @@ -73,4 +78,6 @@ export default class PriceAdjustmentLimitsApi { return response_and_data.data }) } + + } diff --git a/src/api/ProductListsApi.js b/src/api/ProductListsApi.js index cb4ef00..e3ae95d 100644 --- a/src/api/ProductListsApi.js +++ b/src/api/ProductListsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,30 +14,34 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' +import PublicProductList from '../models/PublicProductList' import PublicProductListItem from '../models/PublicProductListItem' import PublicProductListItemResult from '../models/PublicProductListItemResult' -import PublicProductList from '../models/PublicProductList' import PublicProductListResult from '../models/PublicProductListResult' /** - * Product_lists service. - * @module api/ProductListsApi - * @version 17.8 - */ +* Product_lists service. +* @module api/ProductListsApi +* @version 20.4 +*/ export default class ProductListsApi { /** - * Constructs a new ProductListsApi. - * @alias module:api/ProductListsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductListsApi. + * @alias module:api/ProductListsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Retrieves all public product lists as defined by the given search term (email, first name, last name). * @param {Object} opts Optional parameters @@ -50,14 +54,18 @@ export default class ProductListsApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { email: opts.email, firstname: opts.firstname, lastname: opts.lastname } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -86,6 +94,7 @@ export default class ProductListsApi { }) } + /** * Retrieves a public product list by id. * @param {String} listId The id of the list. @@ -102,14 +111,17 @@ export default class ProductListsApi { throw new Error('Missing the required parameter \'listId\' when calling getProductListsByID') } + const pathParams = { list_id: listId } const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -137,6 +149,7 @@ export default class ProductListsApi { }) } + /** * Retrieves the items of a public product list. * @param {String} listId The id of the list. @@ -153,14 +166,17 @@ export default class ProductListsApi { throw new Error('Missing the required parameter \'listId\' when calling getProductListsByIDItems') } + const pathParams = { list_id: listId } const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -188,6 +204,7 @@ export default class ProductListsApi { }) } + /** * Retrieves an item from a public product list. * @param {String} listId The id of the list. @@ -210,6 +227,7 @@ export default class ProductListsApi { throw new Error('Missing the required parameter \'itemId\' when calling getProductListsByIDItemsByID') } + const pathParams = { list_id: listId, item_id: itemId @@ -217,8 +235,10 @@ export default class ProductListsApi { const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -246,4 +266,6 @@ export default class ProductListsApi { return response_and_data.data }) } + + } diff --git a/src/api/ProductSearchApi.js b/src/api/ProductSearchApi.js index f59b66b..1606e6b 100644 --- a/src/api/ProductSearchApi.js +++ b/src/api/ProductSearchApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,48 +14,40 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchResult from '../models/ProductSearchResult' /** - * Product_search service. - * @module api/ProductSearchApi - * @version 17.8 - */ +* Product_search service. +* @module api/ProductSearchApi +* @version 20.4 +*/ export default class ProductSearchApi { /** - * Constructs a new ProductSearchApi. - * @alias module:api/ProductSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductSearchApi. + * @alias module:api/ProductSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, - * link and name in the product search hit. Other search hit properties can be added by using - * the expand parameter. The search result contains only products that are online and assigned to site catalog. + * Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are 'product', 'master', 'set', 'bundle', 'slicing_group' (deprecated), 'variation_group'. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. - * @param {Array.} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, variations) + * @param {Array.} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations) * @param {String} opts.currency The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response @@ -64,9 +56,12 @@ export default class ProductSearchApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -74,17 +69,16 @@ export default class ProductSearchApi { currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -93,29 +87,14 @@ export default class ProductSearchApi { } /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link and name in the product search hit. Other search hit properties can be - * added by using the expand parameter. The search result contains only products that are online - * and assigned to site catalog. + * Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are 'product', 'master', 'set', 'bundle', 'slicing_group' (deprecated), 'variation_group'. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. - * @param {Array.} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, - * prices, variations) + * @param {Array.} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations) * @param {String} opts.currency The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductSearchResult} @@ -127,23 +106,12 @@ export default class ProductSearchApi { }) } + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, - * link, name and availability information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -154,25 +122,27 @@ export default class ProductSearchApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/availability', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -181,22 +151,10 @@ export default class ProductSearchApi { } /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and availability information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -210,23 +168,12 @@ export default class ProductSearchApi { }) } + /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and image information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -237,25 +184,27 @@ export default class ProductSearchApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -264,22 +213,10 @@ export default class ProductSearchApi { } /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and image information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -293,23 +230,12 @@ export default class ProductSearchApi { }) } + /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and price information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -321,26 +247,28 @@ export default class ProductSearchApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/prices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -349,21 +277,10 @@ export default class ProductSearchApi { } /** - * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -378,50 +295,104 @@ export default class ProductSearchApi { }) } + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response */ - getProductSearchVariationsWithHttpInfo(opts) { + getProductSearchRepresentedProductsWithHttpInfo(opts) { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( + '/product_search/represented_products', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. + * @param {Object} opts Optional parameters + * @param {String} opts.q The query phrase to search for. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {String} opts.sort The id of the sorting option to sort the search hits. + * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. + * @param {Number} opts.count The maximum number of instances per request. Default value is 25. + * @param {String} opts.locale The locale context. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductSearchResult} + */ + getProductSearchRepresentedProducts(opts) { + return this.getProductSearchRepresentedProductsWithHttpInfo(opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product. + * @param {Object} opts Optional parameters + * @param {String} opts.q The query phrase to search for. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {String} opts.sort The id of the sorting option to sort the search hits. + * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. + * @param {Number} opts.count The maximum number of instances per request. Default value is 25. + * @param {String} opts.locale The locale context. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response + */ + getProductSearchVariationsWithHttpInfo(opts) { + opts = opts || {} + const postBody = null + + + const pathParams = { + } + const queryParams = { + q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), + sort: opts.sort, + start: opts.start, + count: opts.count, + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ProductSearchResult return this.apiClient.callApi( '/product_search/variations', 'GET', @@ -431,21 +402,10 @@ export default class ProductSearchApi { } /** - * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = \"|\"). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -458,4 +418,6 @@ export default class ProductSearchApi { return response_and_data.data }) } + + } diff --git a/src/api/ProductsApi.js b/src/api/ProductsApi.js index 7deb545..0422e88 100644 --- a/src/api/ProductsApi.js +++ b/src/api/ProductsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,35 +14,35 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from '../models/Product' import ProductResult from '../models/ProductResult' import ShippingMethodResult from '../models/ShippingMethodResult' /** - * Products service. - * @module api/ProductsApi - * @version 17.8 - */ +* Products service. +* @module api/ProductsApi +* @version 20.4 +*/ export default class ProductsApi { /** - * Constructs a new ProductsApi. - * @alias module:api/ProductsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductsApi. + * @alias module:api/ProductsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * To access single products resource, you construct a URL using the template shown below. - * This template requires you to specify an Id (typically a SKU) for a product. In response, the - * server returns a corresponding Product document, provided the product is online and assigned - * to site catalog. The document contains variation attributes (including values) and the variant - * matrix; this data is provided for both the master and for the variant. + * To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant. * @param {String} id The id of the requested product. * @param {Object} opts Optional parameters * @param {Array.} opts.expand @@ -61,6 +61,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByID') } + const pathParams = { id } @@ -71,8 +72,10 @@ export default class ProductsApi { locale: opts.locale, all_images: opts.allImages } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -87,11 +90,7 @@ export default class ProductsApi { } /** - * To access single products resource, you construct a URL using the template shown below. - * This template requires you to specify an Id (typically a SKU) for a product. In response, - * the server returns a corresponding Product document, provided the product is online and - * assigned to site catalog. The document contains variation attributes (including values) - * and the variant matrix; this data is provided for both the master and for the variant. + * To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant. * @param {String} id The id of the requested product. * @param {Object} opts Optional parameters * @param {Array.} opts.expand @@ -108,6 +107,7 @@ export default class ProductsApi { }) } + /** * Access product availability information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -125,6 +125,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDAvailability') } + const pathParams = { id } @@ -132,8 +133,10 @@ export default class ProductsApi { inventory_ids: this.apiClient.buildCollectionParam(opts.inventoryIds, 'csv'), locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -162,6 +165,7 @@ export default class ProductsApi { }) } + /** * Access bundled product information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -178,14 +182,17 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDBundledProducts') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -213,6 +220,7 @@ export default class ProductsApi { }) } + /** * Access product image information of products that are online and assigned to site catalog. Filter the result by view type and variation values. * @param {String} id The requested product id. @@ -232,6 +240,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDImages') } + const pathParams = { id } @@ -241,8 +250,10 @@ export default class ProductsApi { variation_attribute: opts.variationAttribute, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -273,6 +284,7 @@ export default class ProductsApi { }) } + /** * Access product link information of products that are online and assigned to site catalog. Filter the result by link type and link direction. * @param {String} id The requested product id. @@ -291,6 +303,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDLinks') } + const pathParams = { id } @@ -299,8 +312,10 @@ export default class ProductsApi { direction: opts.direction, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -347,14 +362,17 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDOptions') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -382,6 +400,7 @@ export default class ProductsApi { }) } + /** * Access product price information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -398,14 +417,17 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDPrices') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -433,6 +455,7 @@ export default class ProductsApi { }) } + /** * Access product promotion information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -450,6 +473,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDPromotions') } + const pathParams = { id } @@ -457,8 +481,10 @@ export default class ProductsApi { currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -487,6 +513,120 @@ export default class ProductsApi { }) } + + /** + * Access product recommendation information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {Number} opts.recommendationType + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Product} and HTTP response + */ + getProductsByIDRecommendationsWithHttpInfo(id, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error('Missing the required parameter \'id\' when calling getProductsByIDRecommendations') + } + + + const pathParams = { + id + } + const queryParams = { + recommendation_type: opts.recommendationType, + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Product + + return this.apiClient.callApi( + '/products/{id}/recommendations', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Access product recommendation information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {Number} opts.recommendationType + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Product} + */ + getProductsByIDRecommendations(id, opts) { + return this.getProductsByIDRecommendationsWithHttpInfo(id, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Access product set information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Product} and HTTP response + */ + getProductsByIDSetProductsWithHttpInfo(id, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error('Missing the required parameter \'id\' when calling getProductsByIDSetProducts') + } + + + const pathParams = { + id + } + const queryParams = { + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Product + + return this.apiClient.callApi( + '/products/{id}/set_products', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Access product set information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Product} + */ + getProductsByIDSetProducts(id, opts) { + return this.getProductsByIDSetProductsWithHttpInfo(id, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Retrieves the applicable shipping methods for a certain product. * @param {String} id the requested product id @@ -500,14 +640,18 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDShippingMethods') } + const pathParams = { id } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ShippingMethodResult @@ -531,6 +675,7 @@ export default class ProductsApi { }) } + /** * Access product variation information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -547,14 +692,17 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'id\' when calling getProductsByIDVariations') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -582,6 +730,7 @@ export default class ProductsApi { }) } + /** * @param {Array.} ids * @param {Object} opts Optional parameters @@ -601,6 +750,7 @@ export default class ProductsApi { throw new Error('Missing the required parameter \'ids\' when calling getProductsByIDs') } + const pathParams = { ids } @@ -611,8 +761,10 @@ export default class ProductsApi { locale: opts.locale, all_images: opts.allImages } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -642,4 +794,6 @@ export default class ProductsApi { return response_and_data.data }) } + + } diff --git a/src/api/PromotionsApi.js b/src/api/PromotionsApi.js index c2eb3f0..3e5b475 100644 --- a/src/api/PromotionsApi.js +++ b/src/api/PromotionsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,35 +14,34 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Promotion from '../models/Promotion' import PromotionResult from '../models/PromotionResult' /** - * Promotions service. - * @module api/PromotionsApi - * @version 17.8 - */ +* Promotions service. +* @module api/PromotionsApi +* @version 20.4 +*/ export default class PromotionsApi { /** - * Constructs a new PromotionsApi. - * @alias module:api/PromotionsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new PromotionsApi. + * @alias module:api/PromotionsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified - * filter criteria. In the request URL, you must provide a campaign_id parameter, and you can - * optionally specify a date range by providing start_date and end_date parameters. Both parameters - * are required to specify a date range: omitting one causes the server to return a - * MissingParameterException fault. Each request returns only enabled promotions; the - * server does not consider promotion qualifiers or schedules. + * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules. * @param {String} campaignId Find the promotions assigned to this campaign (mandatory) * @param {Object} opts Optional parameters * @param {String} opts.startDate The start date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ @@ -59,15 +58,19 @@ export default class PromotionsApi { throw new Error('Missing the required parameter \'campaignId\' when calling getPromotions') } - const pathParams = {} + + const pathParams = { + } const queryParams = { campaign_id: campaignId, start_date: opts.startDate, end_date: opts.endDate, currency: opts.currency } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -82,12 +85,7 @@ export default class PromotionsApi { } /** - * Handles get promotion by filter criteria Returns an array of enabled promotions matching - * specified filter criteria. In the request URL, you must provide a campaign_id parameter, - * and you can optionally specify a date range by providing start_date and end_date parameters. - * Both parameters are required to specify a date range: omitting one causes the server - * to return a MissingParameterException fault. Each request returns only enabled promotions; - * the server does not consider promotion qualifiers or schedules. + * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules. * @param {String} campaignId Find the promotions assigned to this campaign (mandatory) * @param {Object} opts Optional parameters * @param {String} opts.startDate The start date of the promotion in ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ @@ -102,9 +100,9 @@ export default class PromotionsApi { }) } + /** - * Returns an enabled promotion using a specified id. Each request returns a response only - * for an enabled promotion; the server does not consider promotion qualifiers or schedules. + * Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules. * @param {String} id The id of the requested promotion. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -119,14 +117,17 @@ export default class PromotionsApi { throw new Error('Missing the required parameter \'id\' when calling getPromotionsByID') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -141,8 +142,7 @@ export default class PromotionsApi { } /** - * Returns an enabled promotion using a specified id. Each request returns a response - * only for an enabled promotion; the server does not consider promotion qualifiers or schedules. + * Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules. * @param {String} id The id of the requested promotion. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -155,6 +155,7 @@ export default class PromotionsApi { }) } + /** * @param {Array.} ids * @param {Object} opts Optional parameters @@ -170,14 +171,17 @@ export default class PromotionsApi { throw new Error('Missing the required parameter \'ids\' when calling getPromotionsByIDs') } + const pathParams = { ids } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -203,4 +207,6 @@ export default class PromotionsApi { return response_and_data.data }) } + + } diff --git a/src/api/SearchSuggestionApi.js b/src/api/SearchSuggestionApi.js index a66b360..910210a 100644 --- a/src/api/SearchSuggestionApi.js +++ b/src/api/SearchSuggestionApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,31 +14,33 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestionResult from '../models/SuggestionResult' /** - * Search_suggestion service. - * @module api/SearchSuggestionApi - * @version 17.8 - */ +* Search_suggestion service. +* @module api/SearchSuggestionApi +* @version 20.4 +*/ export default class SearchSuggestionApi { /** - * Constructs a new SearchSuggestionApi. - * @alias module:api/SearchSuggestionApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SearchSuggestionApi. + * @alias module:api/SearchSuggestionApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Provides keyword search functionality for products, categories, content, brands and custom - * suggestions. Returns suggested products, suggested categories, suggested content, suggested - * brands and custom suggestions for the given search phrase. + * Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase. * @param {String} q The query phrase to search for. * @param {Object} opts Optional parameters * @param {Number} opts.count The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions). @@ -55,15 +57,19 @@ export default class SearchSuggestionApi { throw new Error('Missing the required parameter \'q\' when calling getSearchSuggestion') } - const pathParams = {} + + const pathParams = { + } const queryParams = { q, count: opts.count, currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -78,9 +84,7 @@ export default class SearchSuggestionApi { } /** - * Provides keyword search functionality for products, categories, content, brands and custom - * suggestions. Returns suggested products, suggested categories, suggested content, suggested - * brands and custom suggestions for the given search phrase. + * Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase. * @param {String} q The query phrase to search for. * @param {Object} opts Optional parameters * @param {Number} opts.count The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions). @@ -94,4 +98,6 @@ export default class SearchSuggestionApi { return response_and_data.data }) } + + } diff --git a/src/api/SessionsApi.js b/src/api/SessionsApi.js index e18b4ab..e73b748 100644 --- a/src/api/SessionsApi.js +++ b/src/api/SessionsApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,44 +14,46 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' /** - * Sessions service. - * @module api/SessionsApi - * @version 17.8 - */ +* Sessions service. +* @module api/SessionsApi +* @version 20.4 +*/ export default class SessionsApi { /** - * Constructs a new SessionsApi. - * @alias module:api/SessionsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SessionsApi. + * @alias module:api/SessionsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Exchanges a JWT token into a new session. If the given token is valid, creates a new session, - * which is associated with the authenticated or anonymous customer. All Set-Cookie headers for - * handling the session are applied on the response. Please note that this resource always - * creates a new session with the consequence that you have no session basket after you do that. - * Once you created a session from a JWT token you can use this session and stateless OCAPI calls - * using the JWT in parallel. There is no additional need to call the bridging resources again. - * When a session ID is sent in with the request, the specified session is ignored. Only the - * incoming JWT token is used to create a new session. + * Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is accessible because the basket is marked as secured for this session * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ postSessionsWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -66,14 +68,7 @@ export default class SessionsApi { } /** - * Exchanges a JWT token into a new session. If the given token is valid, creates a new session, - * which is associated with the authenticated or anonymous customer. All Set-Cookie headers - * for handling the session are applied on the response. Please note that this resource - * always creates a new session with the consequence that you have no session basket after you - * do that. Once you created a session from a JWT token you can use this session and stateless - * OCAPI calls using the JWT in parallel. There is no additional need to call the bridging - * resources again. When a session ID is sent in with the request, the specified session is - * ignored. Only the incoming JWT token is used to create a new session. + * Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is accessible because the basket is marked as secured for this session * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ postSessions() { @@ -82,4 +77,6 @@ export default class SessionsApi { return response_and_data.data }) } + + } diff --git a/src/api/SiteApi.js b/src/api/SiteApi.js index a96fe78..bbf9ec5 100644 --- a/src/api/SiteApi.js +++ b/src/api/SiteApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,27 +14,31 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Site from '../models/Site' /** - * Site service. - * @module api/SiteApi - * @version 17.8 - */ +* Site service. +* @module api/SiteApi +* @version 20.4 +*/ export default class SiteApi { /** - * Constructs a new SiteApi. - * @alias module:api/SiteApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SiteApi. + * @alias module:api/SiteApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Access site information, like site status and site content URLs. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Site} and HTTP response @@ -42,10 +46,15 @@ export default class SiteApi { getSiteWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -69,4 +78,6 @@ export default class SiteApi { return response_and_data.data }) } + + } diff --git a/src/api/StoresApi.js b/src/api/StoresApi.js index 5ca59d6..d303583 100644 --- a/src/api/StoresApi.js +++ b/src/api/StoresApi.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -14,49 +14,41 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Store from '../models/Store' import StoreResult from '../models/StoreResult' /** - * Stores service. - * @module api/StoresApi - * @version 17.8 - */ +* Stores service. +* @module api/StoresApi +* @version 20.4 +*/ export default class StoresApi { /** - * Constructs a new StoresApi. - * @alias module:api/StoresApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new StoresApi. + * @alias module:api/StoresApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * This resource retrieves a list of stores, for the given site, that are within a configured - * distance of a location on the earth. The stores and their distance from the specified location are returned - * as a result set of Store objects. The distance is interpreted either in miles or kilometers depending - * on the \"distance_unit\" input parameter. The location can be specified by either directly - * providing a latitude/longitude coordinate pair or by providing a country and a postal code: - * If a postal code is passed, the resource looks in the system's geolocation mappings to find - * the coordinates for this postal code. If no matching geolocation is found, the resource will - * return an empty list of stores. If coordinates are passed, the values for country and postal - * code are ignored. + * This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored. * @param {Object} opts Optional parameters - * @param {Number} opts.latitude The geo coordinate latitude to search for stores - * (value range -90.00 .. 90.00). - * @param {Number} opts.longitude The geo coordinate longitude to search for stores - * (value range -180.00 .. 180.00). - * @param {String} opts.countryCode The two letter ISO country code e.g. \"US\". - * @param {String} opts.postalCode The postal code e.g. \"01801\". - * @param {String} opts.distanceUnit The distance unit. Supported values are \"mi\" and \"km\" - * (for miles and kilometers respectively, default is \"km\"). - * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be - * searched for (default is half of the earth's perimeter). + * @param {Number} opts.latitude The geo coordinate latitude to search for stores (value range -90.00 .. 90.00). + * @param {Number} opts.longitude The geo coordinate longitude to search for stores (value range -180.00 .. 180.00). + * @param {String} opts.countryCode The two letter ISO country code e.g. \\\"US\\\". + * @param {String} opts.postalCode The postal code e.g. \\\"01801\\\". + * @param {String} opts.distanceUnit The distance unit. Supported values are \\\"mi\\\" and \\\"km\\\" (for miles and kilometers respectively, default is \\\"km\\\"). + * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be searched for (default is half of the earth's perimeter). * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/StoreResult} and HTTP response @@ -65,7 +57,9 @@ export default class StoresApi { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { latitude: opts.latitude, longitude: opts.longitude, @@ -76,8 +70,10 @@ export default class StoresApi { start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -92,26 +88,14 @@ export default class StoresApi { } /** - * This resource retrieves a list of stores, for the given site, that are within a configured distance - * of a location on the earth. The stores and their distance from the specified location are - * returned as a result set of Store objects. The distance is interpreted either in miles or - * kilometers depending on the \"distance_unit\" input parameter. The location can - * be specified by either directly providing a latitude/longitude coordinate pair or by providing - * a country and a postal code: If a postal code is passed, the resource looks in the - * system's geolocation mappings to find the coordinates for this postal code. If no - * matching geolocation is found, the resource will return an empty list of stores. If coordinates - * are passed, the values for country and postal code are ignored. + * This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored. * @param {Object} opts Optional parameters - * @param {Number} opts.latitude The geo coordinate latitude to search for stores - * (value range -90.00 .. 90.00). - * @param {Number} opts.longitude The geo coordinate longitude to search for stores - * (value range -180.00 .. 180.00). - * @param {String} opts.countryCode The two letter ISO country code e.g. \"US\". - * @param {String} opts.postalCode The postal code e.g. \"01801\". - * @param {String} opts.distanceUnit The distance unit. Supported values are \"mi\" and \"km\" - * (for miles and kilometers respectively, default is \"km\"). - * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be - * searched for (default is half of the earth's perimeter). + * @param {Number} opts.latitude The geo coordinate latitude to search for stores (value range -90.00 .. 90.00). + * @param {Number} opts.longitude The geo coordinate longitude to search for stores (value range -180.00 .. 180.00). + * @param {String} opts.countryCode The two letter ISO country code e.g. \\\"US\\\". + * @param {String} opts.postalCode The postal code e.g. \\\"01801\\\". + * @param {String} opts.distanceUnit The distance unit. Supported values are \\\"mi\\\" and \\\"km\\\" (for miles and kilometers respectively, default is \\\"km\\\"). + * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be searched for (default is half of the earth's perimeter). * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/StoreResult} @@ -123,6 +107,7 @@ export default class StoresApi { }) } + /** * To access a store, you construct a URL using the template shown below. This template requires you to specify a store id. In the response, the server returns a corresponding store document. * @param {String} id The id of the requested store. @@ -136,12 +121,16 @@ export default class StoresApi { throw new Error('Missing the required parameter \'id\' when calling getStoresByID') } + const pathParams = { id } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -167,6 +156,7 @@ export default class StoresApi { }) } + /** * @param {Array.} ids * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/StoreResult} and HTTP response @@ -179,12 +169,16 @@ export default class StoresApi { throw new Error('Missing the required parameter \'ids\' when calling getStoresByIDs') } + const pathParams = { ids } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -208,4 +202,6 @@ export default class StoresApi { return response_and_data.data }) } + + } diff --git a/src/index.js b/src/index.js index 5acdf9d..75536ac 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,8 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ - /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,10 +11,14 @@ * */ + import ApiClient from './ApiClient' +import ApproachingDiscount from './models/ApproachingDiscount' +import ApproachingDiscountResult from './models/ApproachingDiscountResult' import AuthRequest from './models/AuthRequest' import Basket from './models/Basket' import BasketPaymentInstrumentRequest from './models/BasketPaymentInstrumentRequest' +import BasketReference from './models/BasketReference' import BasketsResult from './models/BasketsResult' import BonusDiscountLineItem from './models/BonusDiscountLineItem' import BoolFilter from './models/BoolFilter' @@ -26,51 +26,54 @@ import BoolQuery from './models/BoolQuery' import BundledProduct from './models/BundledProduct' import Category from './models/Category' import CategoryResult from './models/CategoryResult' +import Content from './models/Content' import ContentFolder from './models/ContentFolder' import ContentFolderResult from './models/ContentFolderResult' -import Content from './models/Content' import ContentResult from './models/ContentResult' import ContentSearchRefinement from './models/ContentSearchRefinement' import ContentSearchRefinementValue from './models/ContentSearchRefinementValue' import ContentSearchResult from './models/ContentSearchResult' import CouponItem from './models/CouponItem' import CustomObject from './models/CustomObject' -import CustomerAddressLink from './models/CustomerAddressLink' +import Customer from './models/Customer' import CustomerAddress from './models/CustomerAddress' +import CustomerAddressLink from './models/CustomerAddressLink' import CustomerAddressResult from './models/CustomerAddressResult' import CustomerInfo from './models/CustomerInfo' -import Customer from './models/Customer' import CustomerOrderResult from './models/CustomerOrderResult' import CustomerPaymentCardRequest from './models/CustomerPaymentCardRequest' import CustomerPaymentInstrument from './models/CustomerPaymentInstrument' import CustomerPaymentInstrumentRequest from './models/CustomerPaymentInstrumentRequest' import CustomerPaymentInstrumentResult from './models/CustomerPaymentInstrumentResult' -import CustomerProductListItemLink from './models/CustomerProductListItemLink' +import CustomerProductList from './models/CustomerProductList' import CustomerProductListItem from './models/CustomerProductListItem' +import CustomerProductListItemLink from './models/CustomerProductListItemLink' +import CustomerProductListItemPurchase from './models/CustomerProductListItemPurchase' +import CustomerProductListItemPurchaseResult from './models/CustomerProductListItemPurchaseResult' import CustomerProductListItemResult from './models/CustomerProductListItemResult' -import CustomerProductList from './models/CustomerProductList' import CustomerProductListRegistrant from './models/CustomerProductListRegistrant' import CustomerProductListResult from './models/CustomerProductListResult' import CustomerRegistration from './models/CustomerRegistration' import Discount from './models/Discount' +import DiscountRequest from './models/DiscountRequest' import Fault from './models/Fault' import FilteredQuery from './models/FilteredQuery' -import GiftCertificateItem from './models/GiftCertificateItem' import GiftCertificate from './models/GiftCertificate' +import GiftCertificateItem from './models/GiftCertificateItem' import GiftCertificateRequest from './models/GiftCertificateRequest' -import ImageGroup from './models/ImageGroup' import Image from './models/Image' +import ImageGroup from './models/ImageGroup' import Inventory from './models/Inventory' import Locale from './models/Locale' import Master from './models/Master' import NestedQuery from './models/NestedQuery' import Note from './models/Note' import NotesResult from './models/NotesResult' -import OptionItem from './models/OptionItem' import Option from './models/Option' +import OptionItem from './models/OptionItem' import OptionValue from './models/OptionValue' -import OrderAddress from './models/OrderAddress' import Order from './models/Order' +import OrderAddress from './models/OrderAddress' import OrderPaymentCardRequest from './models/OrderPaymentCardRequest' import OrderPaymentInstrument from './models/OrderPaymentInstrument' import OrderPaymentInstrumentRequest from './models/OrderPaymentInstrumentRequest' @@ -85,9 +88,11 @@ import PaymentCard from './models/PaymentCard' import PaymentCardSpec from './models/PaymentCardSpec' import PaymentMethod from './models/PaymentMethod' import PaymentMethodResult from './models/PaymentMethodResult' +import PriceAdjustment from './models/PriceAdjustment' import PriceAdjustmentLimit from './models/PriceAdjustmentLimit' import PriceAdjustmentLimits from './models/PriceAdjustmentLimits' -import PriceAdjustment from './models/PriceAdjustment' +import PriceAdjustmentRequest from './models/PriceAdjustmentRequest' +import Product from './models/Product' import ProductDetailsLink from './models/ProductDetailsLink' import ProductItem from './models/ProductItem' import ProductLink from './models/ProductLink' @@ -96,8 +101,9 @@ import ProductListItemReference from './models/ProductListItemReference' import ProductListLink from './models/ProductListLink' import ProductListRegistrant from './models/ProductListRegistrant' import ProductListShippingAddress from './models/ProductListShippingAddress' -import Product from './models/Product' import ProductPromotion from './models/ProductPromotion' +import ProductRecommendationsResult from './models/ProductRecommendationsResult' +import ProductRef from './models/ProductRef' import ProductResult from './models/ProductResult' import ProductSearchHit from './models/ProductSearchHit' import ProductSearchRefinement from './models/ProductSearchRefinement' @@ -107,17 +113,21 @@ import ProductSearchSortingOption from './models/ProductSearchSortingOption' import ProductSimpleLink from './models/ProductSimpleLink' import ProductType from './models/ProductType' import Promotion from './models/Promotion' +import PromotionLink from './models/PromotionLink' import PromotionResult from './models/PromotionResult' +import PublicProductList from './models/PublicProductList' import PublicProductListItem from './models/PublicProductListItem' import PublicProductListItemResult from './models/PublicProductListItemResult' import PublicProductListLink from './models/PublicProductListLink' -import PublicProductList from './models/PublicProductList' import PublicProductListResult from './models/PublicProductListResult' import QueryFilter from './models/QueryFilter' import Range2Filter from './models/Range2Filter' import RangeFilter from './models/RangeFilter' import Recommendation from './models/Recommendation' import RecommendationType from './models/RecommendationType' +import ResetPasswordRequest from './models/ResetPasswordRequest' +import ResetPasswordTokenRequest from './models/ResetPasswordTokenRequest' +import ResetPasswordTokenResult from './models/ResetPasswordTokenResult' import ResultPage from './models/ResultPage' import Shipment from './models/Shipment' import ShippingItem from './models/ShippingItem' @@ -141,11 +151,12 @@ import SuggestionResult from './models/SuggestionResult' import TermFilter from './models/TermFilter' import TermQuery from './models/TermQuery' import TextQuery from './models/TextQuery' +import TrustedSystemAuthRequest from './models/TrustedSystemAuthRequest' import Variant from './models/Variant' import VariationAttribute from './models/VariationAttribute' import VariationAttributeValue from './models/VariationAttributeValue' import VariationGroup from './models/VariationGroup' - +import AiApi from './api/AiApi' import BasketsApi from './api/BasketsApi' import CategoriesApi from './api/CategoriesApi' import ContentApi from './api/ContentApi' @@ -173,10 +184,10 @@ import StoresApi from './api/StoresApi' *

* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: *

-* var ShopApi = require('index') // See note below*.
+* var ShopApi = require('index'); // See note below*.
 * var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use.
 * var yyyModel = new ShopApi.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue'
+* yyyModel.someProperty = 'someValue';
 * ...
 * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
 * ...
@@ -189,14 +200,14 @@ import StoresApi from './api/StoresApi'
 * 
 * var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use.
 * var yyy = new ShopApi.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue'
+* yyyModel.someProperty = 'someValue';
 * ...
 * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
 * ...
 * 
*

* @module index -* @version 17.8 +* @version 20.4 */ export default { /** @@ -205,228 +216,264 @@ export default { */ ApiClient, + /** + * The ApproachingDiscount model constructor. + * @property {module:models/ApproachingDiscount} + */ + ApproachingDiscount, + + /** + * The ApproachingDiscountResult model constructor. + * @property {module:models/ApproachingDiscountResult} + */ + ApproachingDiscountResult, + /** * The AuthRequest model constructor. - * @property {module:models/AuthRequestModel} + * @property {module:models/AuthRequest} */ AuthRequest, /** * The Basket model constructor. - * @property {module:models/BasketModel} + * @property {module:models/Basket} */ Basket, /** * The BasketPaymentInstrumentRequest model constructor. - * @property {module:models/BasketPaymentInstrumentRequestModel} + * @property {module:models/BasketPaymentInstrumentRequest} */ BasketPaymentInstrumentRequest, + /** + * The BasketReference model constructor. + * @property {module:models/BasketReference} + */ + BasketReference, + /** * The BasketsResult model constructor. - * @property {module:models/BasketsResultModel} + * @property {module:models/BasketsResult} */ BasketsResult, /** * The BonusDiscountLineItem model constructor. - * @property {module:models/BonusDiscountLineItemModel} + * @property {module:models/BonusDiscountLineItem} */ BonusDiscountLineItem, /** * The BoolFilter model constructor. - * @property {module:models/BoolFilterModel} + * @property {module:models/BoolFilter} */ BoolFilter, /** * The BoolQuery model constructor. - * @property {module:models/BoolQueryModel} + * @property {module:models/BoolQuery} */ BoolQuery, /** * The BundledProduct model constructor. - * @property {module:models/BundledProductModel} + * @property {module:models/BundledProduct} */ BundledProduct, /** * The Category model constructor. - * @property {module:models/CategoryModel} + * @property {module:models/Category} */ Category, /** * The CategoryResult model constructor. - * @property {module:models/CategoryResultModel} + * @property {module:models/CategoryResult} */ CategoryResult, + /** + * The Content model constructor. + * @property {module:models/Content} + */ + Content, + /** * The ContentFolder model constructor. - * @property {module:models/ContentFolderModel} + * @property {module:models/ContentFolder} */ ContentFolder, /** * The ContentFolderResult model constructor. - * @property {module:models/ContentFolderResultModel} + * @property {module:models/ContentFolderResult} */ ContentFolderResult, - /** - * The Content model constructor. - * @property {module:models/ContentModel} - */ - Content, - /** * The ContentResult model constructor. - * @property {module:models/ContentResultModel} + * @property {module:models/ContentResult} */ ContentResult, /** * The ContentSearchRefinement model constructor. - * @property {module:models/ContentSearchRefinementModel} + * @property {module:models/ContentSearchRefinement} */ ContentSearchRefinement, /** * The ContentSearchRefinementValue model constructor. - * @property {module:models/ContentSearchRefinementValueModel} + * @property {module:models/ContentSearchRefinementValue} */ ContentSearchRefinementValue, /** * The ContentSearchResult model constructor. - * @property {module:models/ContentSearchResultModel} + * @property {module:models/ContentSearchResult} */ ContentSearchResult, /** * The CouponItem model constructor. - * @property {module:models/CouponItemModel} + * @property {module:models/CouponItem} */ CouponItem, /** * The CustomObject model constructor. - * @property {module:models/CustomObjectModel} + * @property {module:models/CustomObject} */ CustomObject, /** - * The CustomerAddressLink model constructor. - * @property {module:models/CustomerAddressLinkModel} + * The Customer model constructor. + * @property {module:models/Customer} */ - CustomerAddressLink, + Customer, /** * The CustomerAddress model constructor. - * @property {module:models/CustomerAddressModel} + * @property {module:models/CustomerAddress} */ CustomerAddress, + /** + * The CustomerAddressLink model constructor. + * @property {module:models/CustomerAddressLink} + */ + CustomerAddressLink, + /** * The CustomerAddressResult model constructor. - * @property {module:models/CustomerAddressResultModel} + * @property {module:models/CustomerAddressResult} */ CustomerAddressResult, /** * The CustomerInfo model constructor. - * @property {module:models/CustomerInfoModel} + * @property {module:models/CustomerInfo} */ CustomerInfo, - /** - * The Customer model constructor. - * @property {module:models/CustomerModel} - */ - Customer, - /** * The CustomerOrderResult model constructor. - * @property {module:models/CustomerOrderResultModel} + * @property {module:models/CustomerOrderResult} */ CustomerOrderResult, /** * The CustomerPaymentCardRequest model constructor. - * @property {module:models/CustomerPaymentCardRequestModel} + * @property {module:models/CustomerPaymentCardRequest} */ CustomerPaymentCardRequest, /** * The CustomerPaymentInstrument model constructor. - * @property {module:models/CustomerPaymentInstrumentModel} + * @property {module:models/CustomerPaymentInstrument} */ CustomerPaymentInstrument, /** * The CustomerPaymentInstrumentRequest model constructor. - * @property {module:models/CustomerPaymentInstrumentRequestModel} + * @property {module:models/CustomerPaymentInstrumentRequest} */ CustomerPaymentInstrumentRequest, /** * The CustomerPaymentInstrumentResult model constructor. - * @property {module:models/CustomerPaymentInstrumentResultModel} + * @property {module:models/CustomerPaymentInstrumentResult} */ CustomerPaymentInstrumentResult, /** - * The CustomerProductListItemLink model constructor. - * @property {module:models/CustomerProductListItemLinkModel} + * The CustomerProductList model constructor. + * @property {module:models/CustomerProductList} */ - CustomerProductListItemLink, + CustomerProductList, /** * The CustomerProductListItem model constructor. - * @property {module:models/CustomerProductListItemModel} + * @property {module:models/CustomerProductListItem} */ CustomerProductListItem, /** - * The CustomerProductListItemResult model constructor. - * @property {module:models/CustomerProductListItemResultModel} + * The CustomerProductListItemLink model constructor. + * @property {module:models/CustomerProductListItemLink} */ - CustomerProductListItemResult, + CustomerProductListItemLink, /** - * The CustomerProductList model constructor. - * @property {module:models/CustomerProductListModel} + * The CustomerProductListItemPurchase model constructor. + * @property {module:models/CustomerProductListItemPurchase} */ - CustomerProductList, + CustomerProductListItemPurchase, + + /** + * The CustomerProductListItemPurchaseResult model constructor. + * @property {module:models/CustomerProductListItemPurchaseResult} + */ + CustomerProductListItemPurchaseResult, + + /** + * The CustomerProductListItemResult model constructor. + * @property {module:models/CustomerProductListItemResult} + */ + CustomerProductListItemResult, /** * The CustomerProductListRegistrant model constructor. - * @property {module:models/CustomerProductListRegistrantModel} + * @property {module:models/CustomerProductListRegistrant} */ CustomerProductListRegistrant, /** * The CustomerProductListResult model constructor. - * @property {module:models/CustomerProductListResultModel} + * @property {module:models/CustomerProductListResult} */ CustomerProductListResult, /** * The CustomerRegistration model constructor. - * @property {module:models/CustomerRegistrationModel} + * @property {module:models/CustomerRegistration} */ CustomerRegistration, /** * The Discount model constructor. - * @property {module:models/DiscountModel} + * @property {module:models/Discount} */ Discount, + /** + * The DiscountRequest model constructor. + * @property {module:models/DiscountRequest} + */ + DiscountRequest, + /** * The Fault model constructor. * @property {module:models/FaultModel} @@ -435,550 +482,604 @@ export default { /** * The FilteredQuery model constructor. - * @property {module:models/FilteredQueryModel} + * @property {module:models/FilteredQuery} */ FilteredQuery, /** - * The GiftCertificateItem model constructor. - * @property {module:models/GiftCertificateItemModel} + * The GiftCertificate model constructor. + * @property {module:models/GiftCertificate} */ - GiftCertificateItem, + GiftCertificate, /** - * The GiftCertificate model constructor. - * @property {module:models/GiftCertificateModel} + * The GiftCertificateItem model constructor. + * @property {module:models/GiftCertificateItem} */ - GiftCertificate, + GiftCertificateItem, /** * The GiftCertificateRequest model constructor. - * @property {module:models/GiftCertificateRequestModel} + * @property {module:models/GiftCertificateRequest} */ GiftCertificateRequest, /** - * The ImageGroup model constructor. - * @property {module:models/ImageGroupModel} + * The Image model constructor. + * @property {module:models/Image} */ - ImageGroup, + Image, /** - * The Image model constructor. - * @property {module:models/ImageModel} + * The ImageGroup model constructor. + * @property {module:models/ImageGroup} */ - Image, + ImageGroup, /** * The Inventory model constructor. - * @property {module:models/InventoryModel} + * @property {module:models/Inventory} */ Inventory, /** * The Locale model constructor. - * @property {module:models/LocaleModel} + * @property {module:models/Locale} */ Locale, /** * The Master model constructor. - * @property {module:models/MasterModel} + * @property {module:models/Master} */ Master, /** * The NestedQuery model constructor. - * @property {module:models/NestedQueryModel} + * @property {module:models/NestedQuery} */ NestedQuery, /** * The Note model constructor. - * @property {module:models/NoteModel} + * @property {module:models/Note} */ Note, /** * The NotesResult model constructor. - * @property {module:models/NotesResultModel} + * @property {module:models/NotesResult} */ NotesResult, /** - * The OptionItem model constructor. - * @property {module:models/OptionItemModel} + * The Option model constructor. + * @property {module:models/Option} */ - OptionItem, + Option, /** - * The Option model constructor. - * @property {module:models/OptionModel} + * The OptionItem model constructor. + * @property {module:models/OptionItem} */ - Option, + OptionItem, /** * The OptionValue model constructor. - * @property {module:models/OptionValueModel} + * @property {module:models/OptionValue} */ OptionValue, /** - * The OrderAddress model constructor. - * @property {module:models/OrderAddressModel} + * The Order model constructor. + * @property {module:models/Order} */ - OrderAddress, + Order, /** - * The Order model constructor. - * @property {module:models/OrderModel} + * The OrderAddress model constructor. + * @property {module:models/OrderAddress} */ - Order, + OrderAddress, /** * The OrderPaymentCardRequest model constructor. - * @property {module:models/OrderPaymentCardRequestModel} + * @property {module:models/OrderPaymentCardRequest} */ OrderPaymentCardRequest, /** * The OrderPaymentInstrument model constructor. - * @property {module:models/OrderPaymentInstrumentModel} + * @property {module:models/OrderPaymentInstrument} */ OrderPaymentInstrument, /** * The OrderPaymentInstrumentRequest model constructor. - * @property {module:models/OrderPaymentInstrumentRequestModel} + * @property {module:models/OrderPaymentInstrumentRequest} */ OrderPaymentInstrumentRequest, /** * The OrderSearchHit model constructor. - * @property {module:models/OrderSearchHitModel} + * @property {module:models/OrderSearchHit} */ OrderSearchHit, /** * The OrderSearchRequest model constructor. - * @property {module:models/OrderSearchRequestModel} + * @property {module:models/OrderSearchRequest} */ OrderSearchRequest, /** * The OrderSearchResult model constructor. - * @property {module:models/OrderSearchResultModel} + * @property {module:models/OrderSearchResult} */ OrderSearchResult, /** * The PasswordChangeRequest model constructor. - * @property {module:models/PasswordChangeRequestModel} + * @property {module:models/PasswordChangeRequest} */ PasswordChangeRequest, /** * The PasswordReset model constructor. - * @property {module:models/PasswordResetModel} + * @property {module:models/PasswordReset} */ PasswordReset, /** * The PaymentBankAccount model constructor. - * @property {module:models/PaymentBankAccountModel} + * @property {module:models/PaymentBankAccount} */ PaymentBankAccount, /** * The PaymentBankAccountRequest model constructor. - * @property {module:models/PaymentBankAccountRequestModel} + * @property {module:models/PaymentBankAccountRequest} */ PaymentBankAccountRequest, /** * The PaymentCard model constructor. - * @property {module:models/PaymentCardModel} + * @property {module:models/PaymentCard} */ PaymentCard, /** * The PaymentCardSpec model constructor. - * @property {module:models/PaymentCardSpecModel} + * @property {module:models/PaymentCardSpec} */ PaymentCardSpec, /** * The PaymentMethod model constructor. - * @property {module:models/PaymentMethodModel} + * @property {module:models/PaymentMethod} */ PaymentMethod, /** * The PaymentMethodResult model constructor. - * @property {module:models/PaymentMethodResultModel} + * @property {module:models/PaymentMethodResult} */ PaymentMethodResult, + /** + * The PriceAdjustment model constructor. + * @property {module:models/PriceAdjustment} + */ + PriceAdjustment, + /** * The PriceAdjustmentLimit model constructor. - * @property {module:models/PriceAdjustmentLimitModel} + * @property {module:models/PriceAdjustmentLimit} */ PriceAdjustmentLimit, /** * The PriceAdjustmentLimits model constructor. - * @property {module:models/PriceAdjustmentLimitsModel} + * @property {module:models/PriceAdjustmentLimits} */ PriceAdjustmentLimits, /** - * The PriceAdjustment model constructor. - * @property {module:models/PriceAdjustmentModel} + * The PriceAdjustmentRequest model constructor. + * @property {module:models/PriceAdjustmentRequest} */ - PriceAdjustment, + PriceAdjustmentRequest, + + /** + * The Product model constructor. + * @property {module:models/Product} + */ + Product, /** * The ProductDetailsLink model constructor. - * @property {module:models/ProductDetailsLinkModel} + * @property {module:models/ProductDetailsLink} */ ProductDetailsLink, /** * The ProductItem model constructor. - * @property {module:models/ProductItemModel} + * @property {module:models/ProductItem} */ ProductItem, /** * The ProductLink model constructor. - * @property {module:models/ProductLinkModel} + * @property {module:models/ProductLink} */ ProductLink, /** * The ProductListEvent model constructor. - * @property {module:models/ProductListEventModel} + * @property {module:models/ProductListEvent} */ ProductListEvent, /** * The ProductListItemReference model constructor. - * @property {module:models/ProductListItemReferenceModel} + * @property {module:models/ProductListItemReference} */ ProductListItemReference, /** * The ProductListLink model constructor. - * @property {module:models/ProductListLinkModel} + * @property {module:models/ProductListLink} */ ProductListLink, /** * The ProductListRegistrant model constructor. - * @property {module:models/ProductListRegistrantModel} + * @property {module:models/ProductListRegistrant} */ ProductListRegistrant, /** * The ProductListShippingAddress model constructor. - * @property {module:models/ProductListShippingAddressModel} + * @property {module:models/ProductListShippingAddress} */ ProductListShippingAddress, /** - * The Product model constructor. - * @property {module:models/ProductModel} + * The ProductPromotion model constructor. + * @property {module:models/ProductPromotion} */ - Product, + ProductPromotion, /** - * The ProductPromotion model constructor. - * @property {module:models/ProductPromotionModel} + * The ProductRecommendationsResult model constructor. + * @property {module:models/ProductRecommendationsResult} */ - ProductPromotion, + ProductRecommendationsResult, + + /** + * The ProductRef model constructor. + * @property {module:models/ProductRef} + */ + ProductRef, /** * The ProductResult model constructor. - * @property {module:models/ProductResultModel} + * @property {module:models/ProductResult} */ ProductResult, /** * The ProductSearchHit model constructor. - * @property {module:models/ProductSearchHitModel} + * @property {module:models/ProductSearchHit} */ ProductSearchHit, /** * The ProductSearchRefinement model constructor. - * @property {module:models/ProductSearchRefinementModel} + * @property {module:models/ProductSearchRefinement} */ ProductSearchRefinement, /** * The ProductSearchRefinementValue model constructor. - * @property {module:models/ProductSearchRefinementValueModel} + * @property {module:models/ProductSearchRefinementValue} */ ProductSearchRefinementValue, /** * The ProductSearchResult model constructor. - * @property {module:models/ProductSearchResultModel} + * @property {module:models/ProductSearchResult} */ ProductSearchResult, /** * The ProductSearchSortingOption model constructor. - * @property {module:models/ProductSearchSortingOptionModel} + * @property {module:models/ProductSearchSortingOption} */ ProductSearchSortingOption, /** * The ProductSimpleLink model constructor. - * @property {module:models/ProductSimpleLinkModel} + * @property {module:models/ProductSimpleLink} */ ProductSimpleLink, /** * The ProductType model constructor. - * @property {module:models/ProductTypeModel} + * @property {module:models/ProductType} */ ProductType, /** * The Promotion model constructor. - * @property {module:models/PromotionModel} + * @property {module:models/Promotion} */ Promotion, + /** + * The PromotionLink model constructor. + * @property {module:models/PromotionLink} + */ + PromotionLink, + /** * The PromotionResult model constructor. - * @property {module:models/PromotionResultModel} + * @property {module:models/PromotionResult} */ PromotionResult, + /** + * The PublicProductList model constructor. + * @property {module:models/PublicProductList} + */ + PublicProductList, + /** * The PublicProductListItem model constructor. - * @property {module:models/PublicProductListItemModel} + * @property {module:models/PublicProductListItem} */ PublicProductListItem, /** * The PublicProductListItemResult model constructor. - * @property {module:models/PublicProductListItemResultModel} + * @property {module:models/PublicProductListItemResult} */ PublicProductListItemResult, /** * The PublicProductListLink model constructor. - * @property {module:models/PublicProductListLinkModel} + * @property {module:models/PublicProductListLink} */ PublicProductListLink, - /** - * The PublicProductList model constructor. - * @property {module:models/PublicProductListModel} - */ - PublicProductList, - /** * The PublicProductListResult model constructor. - * @property {module:models/PublicProductListResultModel} + * @property {module:models/PublicProductListResult} */ PublicProductListResult, /** * The QueryFilter model constructor. - * @property {module:models/QueryFilterModel} + * @property {module:models/QueryFilter} */ QueryFilter, /** * The Range2Filter model constructor. - * @property {module:models/Range2FilterModel} + * @property {module:models/Range2Filter} */ Range2Filter, /** * The RangeFilter model constructor. - * @property {module:models/RangeFilterModel} + * @property {module:models/RangeFilter} */ RangeFilter, /** * The Recommendation model constructor. - * @property {module:models/RecommendationModel} + * @property {module:models/Recommendation} */ Recommendation, /** * The RecommendationType model constructor. - * @property {module:models/RecommendationTypeModel} + * @property {module:models/RecommendationType} */ RecommendationType, + /** + * The ResetPasswordRequest model constructor. + * @property {module:models/ResetPasswordRequest} + */ + ResetPasswordRequest, + + /** + * The ResetPasswordTokenRequest model constructor. + * @property {module:models/ResetPasswordTokenRequest} + */ + ResetPasswordTokenRequest, + + /** + * The ResetPasswordTokenResult model constructor. + * @property {module:models/ResetPasswordTokenResult} + */ + ResetPasswordTokenResult, + /** * The ResultPage model constructor. - * @property {module:models/ResultPageModel} + * @property {module:models/ResultPage} */ ResultPage, /** * The Shipment model constructor. - * @property {module:models/ShipmentModel} + * @property {module:models/Shipment} */ Shipment, /** * The ShippingItem model constructor. - * @property {module:models/ShippingItemModel} + * @property {module:models/ShippingItem} */ ShippingItem, /** * The ShippingMethod model constructor. - * @property {module:models/ShippingMethodModel} + * @property {module:models/ShippingMethod} */ ShippingMethod, /** * The ShippingMethodResult model constructor. - * @property {module:models/ShippingMethodResultModel} + * @property {module:models/ShippingMethodResult} */ ShippingMethodResult, /** * The ShippingPromotion model constructor. - * @property {module:models/ShippingPromotionModel} + * @property {module:models/ShippingPromotion} */ ShippingPromotion, /** * The SimpleLink model constructor. - * @property {module:models/SimpleLinkModel} + * @property {module:models/SimpleLink} */ SimpleLink, /** * The Site model constructor. - * @property {module:models/SiteModel} + * @property {module:models/Site} */ Site, /** * The Sort model constructor. - * @property {module:models/SortModel} + * @property {module:models/Sort} */ Sort, /** * The Status model constructor. - * @property {module:models/StatusModel} + * @property {module:models/Status} */ Status, /** * The Store model constructor. - * @property {module:models/StoreModel} + * @property {module:models/Store} */ Store, /** * The StoreResult model constructor. - * @property {module:models/StoreResultModel} + * @property {module:models/StoreResult} */ StoreResult, /** * The SuggestedCategory model constructor. - * @property {module:models/SuggestedCategoryModel} + * @property {module:models/SuggestedCategory} */ SuggestedCategory, /** * The SuggestedContent model constructor. - * @property {module:models/SuggestedContentModel} + * @property {module:models/SuggestedContent} */ SuggestedContent, /** * The SuggestedPhrase model constructor. - * @property {module:models/SuggestedPhraseModel} + * @property {module:models/SuggestedPhrase} */ SuggestedPhrase, /** * The SuggestedProduct model constructor. - * @property {module:models/SuggestedProductModel} + * @property {module:models/SuggestedProduct} */ SuggestedProduct, /** * The SuggestedTerm model constructor. - * @property {module:models/SuggestedTermModel} + * @property {module:models/SuggestedTerm} */ SuggestedTerm, /** * The SuggestedTerms model constructor. - * @property {module:models/SuggestedTermsModel} + * @property {module:models/SuggestedTerms} */ SuggestedTerms, /** * The Suggestion model constructor. - * @property {module:models/SuggestionModel} + * @property {module:models/Suggestion} */ Suggestion, /** * The SuggestionResult model constructor. - * @property {module:models/SuggestionResultModel} + * @property {module:models/SuggestionResult} */ SuggestionResult, /** * The TermFilter model constructor. - * @property {module:models/TermFilterModel} + * @property {module:models/TermFilter} */ TermFilter, /** * The TermQuery model constructor. - * @property {module:models/TermQueryModel} + * @property {module:models/TermQuery} */ TermQuery, /** * The TextQuery model constructor. - * @property {module:models/TextQueryModel} + * @property {module:models/TextQuery} */ TextQuery, + /** + * The TrustedSystemAuthRequest model constructor. + * @property {module:models/TrustedSystemAuthRequest} + */ + TrustedSystemAuthRequest, + /** * The Variant model constructor. - * @property {module:models/VariantModel} + * @property {module:models/Variant} */ Variant, /** * The VariationAttribute model constructor. - * @property {module:models/VariationAttributeModel} + * @property {module:models/VariationAttribute} */ VariationAttribute, /** * The VariationAttributeValue model constructor. - * @property {module:models/VariationAttributeValueModel} + * @property {module:models/VariationAttributeValue} */ VariationAttributeValue, /** * The VariationGroup model constructor. - * @property {module:models/VariationGroupModel} + * @property {module:models/VariationGroup} */ VariationGroup, + /** + * The AiApi service constructor. + * @property {module:api/AiApi} + */ + AiApi, + /** * The BasketsApi service constructor. * @property {module:api/BasketsApi} diff --git a/src/models/ApproachingDiscount.js b/src/models/ApproachingDiscount.js new file mode 100644 index 0000000..bbfda27 --- /dev/null +++ b/src/models/ApproachingDiscount.js @@ -0,0 +1,135 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import Discount from './Discount' +import PromotionLink from './PromotionLink' +import ShippingMethod from './ShippingMethod' + + + + + +/** +* The ApproachingDiscount model module. +* @module models/ApproachingDiscount +* @version 20.4 +*/ +export default class ApproachingDiscount { + /** + * Constructs a new ApproachingDiscount. + * Document representing a note to an object. + * @alias module:models/ApproachingDiscount + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ApproachingDiscount from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ApproachingDiscount} obj Optional instance to populate. + * @return {module:models/ApproachingDiscount} The populated ApproachingDiscount instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApproachingDiscount() + + + + + + if (data.hasOwnProperty('condition_threshold')) { + obj.condition_threshold = ApiClient.convertToType(data.condition_threshold, 'Number') + } + if (data.hasOwnProperty('discount')) { + obj.discount = Discount.constructFromObject(data.discount) + } + if (data.hasOwnProperty('merchandise_total')) { + obj.merchandise_total = ApiClient.convertToType(data.merchandise_total, 'Number') + } + if (data.hasOwnProperty('promotion_link')) { + obj.promotion_link = PromotionLink.constructFromObject(data.promotion_link) + } + if (data.hasOwnProperty('shipment_id')) { + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') + } + if (data.hasOwnProperty('shipping_methods')) { + obj.shipping_methods = ApiClient.convertToType(data.shipping_methods, [ShippingMethod]) + } + if (data.hasOwnProperty('type')) { + obj.type = ApiClient.convertToType(data.type, 'String') + } + } + return obj + } + + /** + * The total amount needed to receive the discount. + * @member {Number} condition_threshold + */ + condition_threshold = undefined; + /** + * The discount the customer can receive if eligible. + * @member {module:models/Discount} discount + */ + discount = undefined; + /** + * The amount the customer basket contributes towards the purchase condition. + * @member {Number} merchandise_total + */ + merchandise_total = undefined; + /** + * The link to details of the promotion associated with this discount. + * @member {module:models/PromotionLink} promotion_link + */ + promotion_link = undefined; + /** + * The unique id of the shipment the discount relates to. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The shipping methods the promotion relates to. + * @member {Array.} shipping_methods + */ + shipping_methods = undefined; + /** + * The type of the approaching discount (\"order\" or \"shipping\"). + * @member {String} type + */ + type = undefined; + + + + + + + + +} diff --git a/src/models/ApproachingDiscountResult.js b/src/models/ApproachingDiscountResult.js new file mode 100644 index 0000000..282c530 --- /dev/null +++ b/src/models/ApproachingDiscountResult.js @@ -0,0 +1,87 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import ApproachingDiscount from './ApproachingDiscount' + + + + + +/** +* The ApproachingDiscountResult model module. +* @module models/ApproachingDiscountResult +* @version 20.4 +*/ +export default class ApproachingDiscountResult { + /** + * Constructs a new ApproachingDiscountResult. + * A result of a approaching discount request. + * @alias module:models/ApproachingDiscountResult + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ApproachingDiscountResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ApproachingDiscountResult} obj Optional instance to populate. + * @return {module:models/ApproachingDiscountResult} The populated ApproachingDiscountResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ApproachingDiscountResult() + + + + + + if (data.hasOwnProperty('approaching_discounts')) { + obj.approaching_discounts = ApiClient.convertToType(data.approaching_discounts, [ApproachingDiscount]) + } + } + return obj + } + + /** + * Lists approaching discounts. + * @member {Array.} approaching_discounts + */ + approaching_discounts = undefined; + + + + + + + + +} + + diff --git a/src/models/AuthRequest.js b/src/models/AuthRequest.js index 67eae1f..abf6888 100644 --- a/src/models/AuthRequest.js +++ b/src/models/AuthRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The AuthRequest model module. * @module models/AuthRequest -* @version 17.8 +* @version 20.4 */ export default class AuthRequest { /** @@ -30,12 +35,16 @@ export default class AuthRequest { * @class * @param type {module:models/AuthRequest.TypeEnum} Type of authentication request: guest, login (credentials), refresh or session. */ + constructor(type) { - /** - * Type of authentication request: guest, login (credentials), refresh or session. - * @member {module:models/AuthRequest.TypeEnum} type - */ + + + + + this.type = type + + } /** @@ -49,43 +58,60 @@ export default class AuthRequest { if (data) { obj = obj || new AuthRequest() + + + + if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -AuthRequest.TypeEnum = { /** - * value: "guest" - * @const - */ - guest: 'guest', + * Type of authentication request: guest, login (credentials), refresh or session. + * @member {module:models/AuthRequest.TypeEnum} type + */ + type = undefined; + + + - /** - * value: "credentials" - * @const - */ - credentials: 'credentials', - /** - * value: "refresh" - * @const - */ - refresh: 'refresh', /** - * value: "session" - * @const - */ - session: 'session' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "guest" + * @const + */ + guest: 'guest', + + /** + * value: "credentials" + * @const + */ + credentials: 'credentials', + + /** + * value: "refresh" + * @const + */ + refresh: 'refresh', + + /** + * value: "session" + * @const + */ + session: 'session' + }; + + + } diff --git a/src/models/Basket.js b/src/models/Basket.js index 1a3f3b7..31328d1 100644 --- a/src/models/Basket.js +++ b/src/models/Basket.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +14,8 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BonusDiscountLineItem from './BonusDiscountLineItem' import CouponItem from './CouponItem' @@ -28,10 +29,14 @@ import Shipment from './Shipment' import ShippingItem from './ShippingItem' import SimpleLink from './SimpleLink' + + + + /** * The Basket model module. * @module models/Basket -* @version 17.8 +* @version 20.4 */ export default class Basket { /** @@ -40,186 +45,16 @@ export default class Basket { * @alias module:models/Basket * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after - * adjustment from promotions have been added. - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - - /** - * Is the basket created by an agent? - * @member {Boolean} agent_basket - */ - this.agent_basket = undefined - - /** - * The unique identifier for the basket. - * @member {String} basket_id - */ - this.basket_id = undefined - - /** - * The billing address. This property is part of basket checkout information only. - * @member {module:models/OrderAddress} billing_address - */ - this.billing_address = undefined - - /** - * The bonus discount line items of the line item container. - * @member {Array.} bonus_discount_line_items - */ - this.bonus_discount_line_items = undefined - - /** - * The sales channel for the order. - * @member {module:models/Basket.ChannelTypeEnum} channel_type - */ - this.channel_type = undefined - - /** - * The sorted array of coupon items. This array can be empty. - * @member {Array.} coupon_items - */ - this.coupon_items = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The customer information for logged in customers. This property is part of basket checkout information only. - * @member {module:models/CustomerInfo} customer_info - */ - this.customer_info = undefined - - /** - * The sorted array of gift certificate line items. This array can be empty. - * @member {Array.} gift_certificate_items - */ - this.gift_certificate_items = undefined - - /** - * - * @member {Date} inventory_reservation_expiry - */ - this.inventory_reservation_expiry = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The notes for the line item container. - * @member {module:models/SimpleLink} notes - */ - this.notes = undefined - - /** - * The array of order level price adjustments. This array can be empty. - * @member {Array.} order_price_adjustments - */ - this.order_price_adjustments = undefined - - /** - * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. - * @member {Number} order_total - */ - this.order_total = undefined - /** - * The payment instruments list for the order. - * @member {Array.} payment_instruments - */ - this.payment_instruments = undefined + constructor() { - /** - * The sorted array of product items (up to a maximum of 50 items). This array can be empty. - * @member {Array.} product_items - */ - this.product_items = undefined - /** - * The total price of all product items after all product discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined - /** - * The total price of all product items after all product and order discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - /** - * The array of shipments. This property is part of basket checkout information only. - * @member {Array.} shipments - */ - this.shipments = undefined - /** - * The sorted array of shipping items. This array can be empty. - * @member {Array.} shipping_items - */ - this.shipping_items = undefined - /** - * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy - * is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - /** - * The tax of all shipping line items of the line item container before shipping adjustments have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - /** - * Gets the source code assigned to this basket. - * @member {String} source_code - */ - this.source_code = undefined - - /** - * The total tax amount of the order. This property is part of basket checkout information only. - * @member {Number} tax_total - */ - this.tax_total = undefined - - /** - * The taxation the line item container is based on. - * @member {module:models/Basket.TaxationEnum} taxation - */ - this.taxation = undefined } /** @@ -233,194 +68,359 @@ export default class Basket { if (data) { obj = obj || new Basket() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') } if (data.hasOwnProperty('agent_basket')) { - obj['agent_basket'] = ApiClient.convertToType(data['agent_basket'], 'Boolean') + obj.agent_basket = ApiClient.convertToType(data.agent_basket, 'Boolean') } if (data.hasOwnProperty('basket_id')) { - obj['basket_id'] = ApiClient.convertToType(data['basket_id'], 'String') + obj.basket_id = ApiClient.convertToType(data.basket_id, 'String') } if (data.hasOwnProperty('billing_address')) { - obj['billing_address'] = OrderAddress.constructFromObject(data['billing_address']) + obj.billing_address = OrderAddress.constructFromObject(data.billing_address) } if (data.hasOwnProperty('bonus_discount_line_items')) { - obj['bonus_discount_line_items'] = ApiClient.convertToType(data['bonus_discount_line_items'], [BonusDiscountLineItem]) + obj.bonus_discount_line_items = ApiClient.convertToType(data.bonus_discount_line_items, [BonusDiscountLineItem]) + } + if (data.hasOwnProperty('c_sessionAddressBook')) { + obj.c_sessionAddressBook = ApiClient.convertToType(data.c_sessionAddressBook, 'String') } if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String') + obj.channel_type = ApiClient.convertToType(data.channel_type, 'String') } if (data.hasOwnProperty('coupon_items')) { - obj['coupon_items'] = ApiClient.convertToType(data['coupon_items'], [CouponItem]) + obj.coupon_items = ApiClient.convertToType(data.coupon_items, [CouponItem]) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('customer_info')) { - obj['customer_info'] = CustomerInfo.constructFromObject(data['customer_info']) + obj.customer_info = CustomerInfo.constructFromObject(data.customer_info) } if (data.hasOwnProperty('gift_certificate_items')) { - obj['gift_certificate_items'] = ApiClient.convertToType(data['gift_certificate_items'], [GiftCertificateItem]) + obj.gift_certificate_items = ApiClient.convertToType(data.gift_certificate_items, [GiftCertificateItem]) } if (data.hasOwnProperty('inventory_reservation_expiry')) { - obj['inventory_reservation_expiry'] = ApiClient.convertToType(data['inventory_reservation_expiry'], 'Date') + obj.inventory_reservation_expiry = ApiClient.convertToType(data.inventory_reservation_expiry, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('notes')) { - obj['notes'] = SimpleLink.constructFromObject(data['notes']) + obj.notes = SimpleLink.constructFromObject(data.notes) } if (data.hasOwnProperty('order_price_adjustments')) { - obj['order_price_adjustments'] = ApiClient.convertToType(data['order_price_adjustments'], [PriceAdjustment]) + obj.order_price_adjustments = ApiClient.convertToType(data.order_price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('order_total')) { - obj['order_total'] = ApiClient.convertToType(data['order_total'], 'Number') + obj.order_total = ApiClient.convertToType(data.order_total, 'Number') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [OrderPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [OrderPaymentInstrument]) } if (data.hasOwnProperty('product_items')) { - obj['product_items'] = ApiClient.convertToType(data['product_items'], [ProductItem]) + obj.product_items = ApiClient.convertToType(data.product_items, [ProductItem]) } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipments')) { - obj['shipments'] = ApiClient.convertToType(data['shipments'], [Shipment]) + obj.shipments = ApiClient.convertToType(data.shipments, [Shipment]) } if (data.hasOwnProperty('shipping_items')) { - obj['shipping_items'] = ApiClient.convertToType(data['shipping_items'], [ShippingItem]) + obj.shipping_items = ApiClient.convertToType(data.shipping_items, [ShippingItem]) } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('source_code')) { - obj['source_code'] = ApiClient.convertToType(data['source_code'], 'String') + obj.source_code = ApiClient.convertToType(data.source_code, 'String') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('taxation')) { - obj['taxation'] = ApiClient.convertToType(data['taxation'], 'String') + obj.taxation = ApiClient.convertToType(data.taxation, 'String') } } return obj } -} - -/** -* Allowed values for the channel_type property. -* @enum {String} -* @readonly -*/ -Basket.ChannelTypeEnum = { /** - * value: "storefront" - * @const - */ - storefront: 'storefront', - + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. + * @member {Number} adjusted_merchandize_total_tax + **/ + adjusted_merchandize_total_tax = undefined; /** - * value: "callcenter" - * @const - */ - callcenter: 'callcenter', - + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; /** - * value: "marketplace" - * @const - */ - marketplace: 'marketplace', - + * Is the basket created by an agent? + * @member {Boolean} agent_basket + */ + agent_basket = undefined; /** - * value: "dss" - * @const - */ - dss: 'dss', - + * The unique identifier for the basket. + * @member {String} basket_id + */ + basket_id = undefined; /** - * value: "store" - * @const - */ - store: 'store', - + * The billing address. This property is part of basket checkout information only. + * @member {module:models/OrderAddress} billing_address + */ + billing_address = undefined; /** - * value: "pinterest" - * @const - */ - pinterest: 'pinterest', - + * The bonus discount line items of the line item container. + * @member {Array.} bonus_discount_line_items + */ + bonus_discount_line_items = undefined; /** - * value: "twitter" - * @const - */ - twitter: 'twitter', - + * @member {String} c_sessionAddressBook + */ + c_sessionAddressBook = undefined; /** - * value: "facebookads" - * @const - */ - facebookads: 'facebookads', - + * The sales channel for the order. This is a read-only attribute that can't be modified by an OCAPI call. For OCAPI, the sales channel is determined based on the client ID and token used for the OCAPI call. Usually, a customer-based authentication sets the channel to Storefront, and an agent-based authentication sets it to CallCenter. Using applications that use other client IDs for OCAPI calls, like Customer Service Center, will set different channel types. To modify the channel type in OCAPI, use a hook. * + * @member {module:models/Basket.ChannelTypeEnum} channel_type + */ + channel_type = undefined; /** - * value: "subscriptions" - * @const - */ - subscriptions: 'subscriptions', - + * The sorted array of coupon items. This array can be empty. + * @member {Array.} coupon_items + */ + coupon_items = undefined; /** - * value: "onlinereservation" - * @const - */ - onlinereservation: 'onlinereservation', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "customerservicecenter" - * @const - */ - customerservicecenter: 'customerservicecenter', - + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; /** - * value: "instagramcommerce" - * @const - */ - instagramcommerce: 'instagramcommerce' -} + * The customer information for logged in customers. This property is part of basket checkout information only. + * @member {module:models/CustomerInfo} customer_info + */ + customer_info = undefined; + /** + * The sorted array of gift certificate line items. This array can be empty. + * @member {Array.} gift_certificate_items + */ + gift_certificate_items = undefined; + /** + * + * @member {Date} inventory_reservation_expiry + */ + inventory_reservation_expiry = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The notes for the line item container. + * @member {module:models/SimpleLink} notes + */ + notes = undefined; + /** + * The array of order level price adjustments. This array can be empty. + * @member {Array.} order_price_adjustments + */ + order_price_adjustments = undefined; + /** + * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. + * @member {Number} order_total + */ + order_total = undefined; + /** + * The payment instruments list for the order. + * @member {Array.} payment_instruments + */ + payment_instruments = undefined; + /** + * The sorted array of product items (up to a maximum of 50 items). This array can be empty. + * @member {Array.} product_items + */ + product_items = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The array of shipments. This property is part of basket checkout information only. + * @member {Array.} shipments + */ + shipments = undefined; + /** + * The sorted array of shipping items. This array can be empty. + * @member {Array.} shipping_items + */ + shipping_items = undefined; + /** + * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * Gets the source code assigned to this basket. + * @member {String} source_code + */ + source_code = undefined; + /** + * The total tax amount of the order. This property is part of basket checkout information only. + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The taxation the line item container is based on. + * @member {module:models/Basket.TaxationEnum} taxation + */ + taxation = undefined; + + + + -/** -* Allowed values for the taxation property. -* @enum {String} -* @readonly -*/ -Basket.TaxationEnum = { /** - * value: "gross" - * @const - */ - gross: 'gross', + * Allowed values for the channel_type property. + * @enum {String} + * @readonly + */ + static ChannelTypeEnum = { + + /** + * value: "storefront" + * @const + */ + storefront: 'storefront', + + /** + * value: "callcenter" + * @const + */ + callcenter: 'callcenter', + + /** + * value: "marketplace" + * @const + */ + marketplace: 'marketplace', + + /** + * value: "dss" + * @const + */ + dss: 'dss', + + /** + * value: "store" + * @const + */ + store: 'store', + + /** + * value: "pinterest" + * @const + */ + pinterest: 'pinterest', + + /** + * value: "twitter" + * @const + */ + twitter: 'twitter', + + /** + * value: "facebookads" + * @const + */ + facebookads: 'facebookads', + + /** + * value: "subscriptions" + * @const + */ + subscriptions: 'subscriptions', + + /** + * value: "onlinereservation" + * @const + */ + onlinereservation: 'onlinereservation', + + /** + * value: "customerservicecenter" + * @const + */ + customerservicecenter: 'customerservicecenter', + + /** + * value: "instagramcommerce" + * @const + */ + instagramcommerce: 'instagramcommerce' + }; /** - * value: "net" - * @const - */ - net: 'net' + * Allowed values for the taxation property. + * @enum {String} + * @readonly + */ + static TaxationEnum = { + + /** + * value: "gross" + * @const + */ + gross: 'gross', + + /** + * value: "net" + * @const + */ + net: 'net' + }; + + + } diff --git a/src/models/BasketPaymentInstrumentRequest.js b/src/models/BasketPaymentInstrumentRequest.js index 3362372..8e044e4 100644 --- a/src/models/BasketPaymentInstrumentRequest.js +++ b/src/models/BasketPaymentInstrumentRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderPaymentCardRequest from './OrderPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The BasketPaymentInstrumentRequest model module. * @module models/BasketPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class BasketPaymentInstrumentRequest { /** @@ -31,48 +36,16 @@ export default class BasketPaymentInstrumentRequest { * @alias module:models/BasketPaymentInstrumentRequest * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The id of a customer payment instrument. - * @member {String} customer_payment_instrument_id - */ - this.customer_payment_instrument_id = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/OrderPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -86,29 +59,78 @@ export default class BasketPaymentInstrumentRequest { if (data) { obj = obj || new BasketPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('customer_payment_instrument_id')) { - obj['customer_payment_instrument_id'] = ApiClient.convertToType(data['customer_payment_instrument_id'], 'String') + obj.customer_payment_instrument_id = ApiClient.convertToType(data.customer_payment_instrument_id, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = OrderPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = OrderPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The id of a customer payment instrument. + * @member {String} customer_payment_instrument_id + */ + customer_payment_instrument_id = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/OrderPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/BasketReference.js b/src/models/BasketReference.js new file mode 100644 index 0000000..c23af2c --- /dev/null +++ b/src/models/BasketReference.js @@ -0,0 +1,96 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The BasketReference model module. +* @module models/BasketReference +* @version 20.4 +*/ +export default class BasketReference { + /** + * Constructs a new BasketReference. + * Reference to a basket. + * @alias module:models/BasketReference + * @class + * @param basketId {String} The unique identifier for the basket. + * @param customerId {String} The unique identifier for the customer. + */ + + constructor(basketId, customerId) { + + + + + + this.basket_id = basketId; this.customer_id = customerId + + + } + + /** + * Constructs a BasketReference from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/BasketReference} obj Optional instance to populate. + * @return {module:models/BasketReference} The populated BasketReference instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BasketReference() + + + + + + if (data.hasOwnProperty('basket_id')) { + obj.basket_id = ApiClient.convertToType(data.basket_id, 'String') + } + if (data.hasOwnProperty('customer_id')) { + obj.customer_id = ApiClient.convertToType(data.customer_id, 'String') + } + } + return obj + } + + /** + * The unique identifier for the basket. + * @member {String} basket_id + */ + basket_id = undefined; + /** + * The unique identifier for the customer. + * @member {String} customer_id + */ + customer_id = undefined; + + + + + + + + +} + + diff --git a/src/models/BasketsResult.js b/src/models/BasketsResult.js index 1efddd4..0a7f532 100644 --- a/src/models/BasketsResult.js +++ b/src/models/BasketsResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Basket from './Basket' + + + + /** * The BasketsResult model module. * @module models/BasketsResult -* @version 17.8 +* @version 20.4 */ export default class BasketsResult { /** @@ -30,18 +35,16 @@ export default class BasketsResult { * @alias module:models/BasketsResult * @class */ + constructor() { - /** - * The list of baskets for a customer. - * @member {Array.} baskets - */ - this.baskets = undefined - - /** - * The total number of baskets. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -55,13 +58,38 @@ export default class BasketsResult { if (data) { obj = obj || new BasketsResult() + + + + if (data.hasOwnProperty('baskets')) { - obj['baskets'] = ApiClient.convertToType(data['baskets'], [Basket]) + obj.baskets = ApiClient.convertToType(data.baskets, [Basket]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } return obj } + + /** + * The list of baskets for a customer. + * @member {Array.} baskets + */ + baskets = undefined; + /** + * The total number of baskets. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/BonusDiscountLineItem.js b/src/models/BonusDiscountLineItem.js index c4826dd..c1a8893 100644 --- a/src/models/BonusDiscountLineItem.js +++ b/src/models/BonusDiscountLineItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductDetailsLink from './ProductDetailsLink' + + + + /** * The BonusDiscountLineItem model module. * @module models/BonusDiscountLineItem -* @version 17.8 +* @version 20.4 */ export default class BonusDiscountLineItem { /** @@ -30,36 +35,16 @@ export default class BonusDiscountLineItem { * @alias module:models/BonusDiscountLineItem * @class */ + constructor() { - /** - * The list of links to the bonus products the customer can choose from. - * @member {Array.} bonus_products - */ - this.bonus_products = undefined - - /** - * The coupon code that triggered the promotion, if applicable. - * @member {String} coupon_code - */ - this.coupon_code = undefined - - /** - * The ID of the line item. - * @member {String} id - */ - this.id = undefined - - /** - * The maximum number of bonus items the user can select for this promotion. - * @member {Number} max_bonus_items - */ - this.max_bonus_items = undefined - - /** - * The ID of the promotion which triggered the creation of the line item. - * @member {String} promotion_id - */ - this.promotion_id = undefined + + + + + + + + } /** @@ -73,23 +58,62 @@ export default class BonusDiscountLineItem { if (data) { obj = obj || new BonusDiscountLineItem() + + + + if (data.hasOwnProperty('bonus_products')) { - obj['bonus_products'] = ApiClient.convertToType(data['bonus_products'], [ProductDetailsLink]) + obj.bonus_products = ApiClient.convertToType(data.bonus_products, [ProductDetailsLink]) } if (data.hasOwnProperty('coupon_code')) { - obj['coupon_code'] = ApiClient.convertToType(data['coupon_code'], 'String') + obj.coupon_code = ApiClient.convertToType(data.coupon_code, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('max_bonus_items')) { - obj['max_bonus_items'] = ApiClient.convertToType(data['max_bonus_items'], 'Number') + obj.max_bonus_items = ApiClient.convertToType(data.max_bonus_items, 'Number') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } } - return obj } + + /** + * The list of links to the bonus products the customer can choose from. + * @member {Array.} bonus_products + */ + bonus_products = undefined; + /** + * The coupon code that triggered the promotion, if applicable. + * @member {String} coupon_code + */ + coupon_code = undefined; + /** + * The ID of the line item. + * @member {String} id + */ + id = undefined; + /** + * The maximum number of bonus items the user can select for this promotion. + * @member {Number} max_bonus_items + */ + max_bonus_items = undefined; + /** + * The ID of the promotion which triggered the creation of the line item. + * @member {String} promotion_id + */ + promotion_id = undefined; + + + + + + + + } + + diff --git a/src/models/BoolFilter.js b/src/models/BoolFilter.js index 921e3d2..e11f0ef 100644 --- a/src/models/BoolFilter.js +++ b/src/models/BoolFilter.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Filter from './Filter' + + + + /** * The BoolFilter model module. * @module models/BoolFilter -* @version 17.8 +* @version 20.4 */ export default class BoolFilter { /** @@ -31,18 +36,16 @@ export default class BoolFilter { * @class * @param operator {module:models/BoolFilter.OperatorEnum} The logical operator the filters are combined with. */ + constructor(operator) { - /** - * A list of filters, which are logically combined by an operator. - * @member {Array.} filters - */ - this.filters = undefined - /** - * The logical operator the filters are combined with. - * @member {module:models/BoolFilter.OperatorEnum} operator - */ + + + + this.operator = operator + + } /** @@ -56,39 +59,64 @@ export default class BoolFilter { if (data) { obj = obj || new BoolFilter() + + + + if (data.hasOwnProperty('filters')) { - obj['filters'] = ApiClient.convertToType(data['filters'], [Filter]) + obj.filters = ApiClient.convertToType(data.filters, [Filter]) } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } } return obj } -} - -/** -* Allowed values for the operator property. -* @enum {String} -* @readonly -*/ -BoolFilter.OperatorEnum = { /** - * value: "and" - * @const - */ - and: 'and', - + * A list of filters, which are logically combined by an operator. + * @member {Array.} filters + */ + filters = undefined; /** - * value: "or" - * @const - */ - or: 'or', + * The logical operator the filters are combined with. + * @member {module:models/BoolFilter.OperatorEnum} operator + */ + operator = undefined; + + + + + /** - * value: "not" - * @const - */ - not: 'not' + * Allowed values for the operator property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "and" + * @const + */ + and: 'and', + + /** + * value: "or" + * @const + */ + or: 'or', + + /** + * value: "not" + * @const + */ + not: 'not' + }; + + + } + + diff --git a/src/models/BoolQuery.js b/src/models/BoolQuery.js index fe6e4ff..e7b7e11 100644 --- a/src/models/BoolQuery.js +++ b/src/models/BoolQuery.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,42 +14,37 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' + + + + /** * The BoolQuery model module. * @module models/BoolQuery -* @version 17.8 +* @version 20.4 */ export default class BoolQuery { /** * Constructs a new BoolQuery. - * A boolean query allows to construct full logical expression trees consisting of other queries - * (usually term and text queries). A boolean query basically has 3 sets of clauses that - * 'must', 'should' and / or 'must not' match. If 'must', 'must_not', - * or 'should' appear in the same boolean query, they are combined logically using the AND operator. + * A boolean query allows construction of full logical expression trees consisting of other queries (usually term and text queries). A boolean query basically has 3 sets of clauses that 'must', 'should' and / or 'must not' match. If 'must', 'must_not', or 'should' appear in the same boolean query, they are combined logically using the AND operator. * @alias module:models/BoolQuery * @class */ + constructor() { - /** - * List of queries, which must match. - * @member {Array.} must - */ - this.must = undefined - - /** - * List of queries, which must not match. - * @member {Array.} must_not - */ - this.must_not = undefined - - /** - * List of queries, which should match. - * @member {Array.} should - */ - this.should = undefined + + + + + + + + } /** @@ -64,17 +58,46 @@ export default class BoolQuery { if (data) { obj = obj || new BoolQuery() + + + + if (data.hasOwnProperty('must')) { - obj['must'] = ApiClient.convertToType(data['must'], [Query]) + obj.must = ApiClient.convertToType(data.must, [Query]) } if (data.hasOwnProperty('must_not')) { - obj['must_not'] = ApiClient.convertToType(data['must_not'], [Query]) + obj.must_not = ApiClient.convertToType(data.must_not, [Query]) } if (data.hasOwnProperty('should')) { - obj['should'] = ApiClient.convertToType(data['should'], [Query]) + obj.should = ApiClient.convertToType(data.should, [Query]) } } - return obj } + + /** + * List of queries that must match. + * @member {Array.} must + */ + must = undefined; + /** + * List of queries that must not match. + * @member {Array.} must_not + */ + must_not = undefined; + /** + * List of queries that should match. + * @member {Array.} should + */ + should = undefined; + + + + + + + + } + + diff --git a/src/models/BundledProduct.js b/src/models/BundledProduct.js index 1375fbc..cdda3ff 100644 --- a/src/models/BundledProduct.js +++ b/src/models/BundledProduct.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' + + + + /** * The BundledProduct model module. * @module models/BundledProduct -* @version 17.8 +* @version 20.4 */ export default class BundledProduct { /** @@ -30,23 +35,16 @@ export default class BundledProduct { * @alias module:models/BundledProduct * @class */ + constructor() { - /** - * @member {String} id - */ - this.id = undefined - - /** - * The product being bundled. - * @member {module:models/Product} product - */ - this.product = undefined - - /** - * For the product being bundled, the quantity added to the bundle. - * @member {Number} quantity - */ - this.quantity = undefined + + + + + + + + } /** @@ -60,17 +58,45 @@ export default class BundledProduct { if (data) { obj = obj || new BundledProduct() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } } - return obj } + + /** + * @member {String} id + */ + id = undefined; + /** + * The product being bundled. + * @member {module:models/Product} product + */ + product = undefined; + /** + * For the product being bundled, the quantity added to the bundle. + * @member {Number} quantity + */ + quantity = undefined; + + + + + + + + } + + diff --git a/src/models/Category.js b/src/models/Category.js index eb6cf2a..2f3e012 100644 --- a/src/models/Category.js +++ b/src/models/Category.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Category model module. * @module models/Category -* @version 17.8 +* @version 20.4 */ export default class Category { /** @@ -29,66 +34,16 @@ export default class Category { * @alias module:models/Category * @class */ + constructor() { - /** - * Array of subcategories. Can be empty. - * @member {Array.} categories - */ - this.categories = undefined - /** - * The localized description of the category. - * @member {String} description - */ - this.description = undefined - /** - * The id of the category. - * @member {String} id - */ - this.id = undefined - /** - * The URL to the category image. - * @member {String} image - */ - this.image = undefined - /** - * The localized name of the category. - * @member {String} name - */ - this.name = undefined - /** - * The localized page description of the category. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized page keywords of the category. - * @member {String} page_keywords - */ - this.page_keywords = undefined - /** - * The localized page title of the category. - * @member {String} page_title - */ - this.page_title = undefined - /** - * The id of the parent category. - * @member {String} parent_category_id - */ - this.parent_category_id = undefined - /** - * The URL to the category thumbnail. - * @member {String} thumbnail - */ - this.thumbnail = undefined } /** @@ -102,38 +57,198 @@ export default class Category { if (data) { obj = obj || new Category() + + + + + if (data.hasOwnProperty('c_alternativeUrl')) { + obj.c_alternativeUrl = ApiClient.convertToType(data.c_alternativeUrl, 'String') + } + if (data.hasOwnProperty('c_catBannerID')) { + obj.c_catBannerID = ApiClient.convertToType(data.c_catBannerID, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } + if (data.hasOwnProperty('c_enableCompare')) { + obj.c_enableCompare = ApiClient.convertToType(data.c_enableCompare, 'Boolean') + } + if (data.hasOwnProperty('c_headerMenuBanner')) { + obj.c_headerMenuBanner = ApiClient.convertToType(data.c_headerMenuBanner, 'String') + } + if (data.hasOwnProperty('c_headerMenuOrientation')) { + obj.c_headerMenuOrientation = ApiClient.convertToType(data.c_headerMenuOrientation, 'String') + } + if (data.hasOwnProperty('c_showInMenu')) { + obj.c_showInMenu = ApiClient.convertToType(data.c_showInMenu, 'Boolean') + } + if (data.hasOwnProperty('c_sizeChartID')) { + obj.c_sizeChartID = ApiClient.convertToType(data.c_sizeChartID, 'String') + } + if (data.hasOwnProperty('c_slotBannerHtml')) { + obj.c_slotBannerHtml = ApiClient.convertToType(data.c_slotBannerHtml, 'String') + } + if (data.hasOwnProperty('c_slotBannerImage')) { + obj.c_slotBannerImage = ApiClient.convertToType(data.c_slotBannerImage, 'String') + } if (data.hasOwnProperty('categories')) { - obj['categories'] = ApiClient.convertToType(data['categories'], [Category]) + obj.categories = ApiClient.convertToType(data.categories, [Category]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('parent_category_id')) { - obj['parent_category_id'] = ApiClient.convertToType(data['parent_category_id'], 'String') + obj.parent_category_id = ApiClient.convertToType(data.parent_category_id, 'String') } if (data.hasOwnProperty('thumbnail')) { - obj['thumbnail'] = ApiClient.convertToType(data['thumbnail'], 'String') + obj.thumbnail = ApiClient.convertToType(data.thumbnail, 'String') } } - return obj } + + /** + * Renders an alternative URL in main navigation. Uses Salesforce Commerce Cloud content url notation. For example: $url('Account-Show')$ or normal URL http://xchange.demandware.com + * @member {String} c_alternativeUrl + */ + c_alternativeUrl = undefined; + /** + * Used to define the content asset used to populate a grid page banner for a category. This value is applied to all sub-category navigation (cascading) if no specific catBannerID has been defined for a sub-category. + * @member {String} c_catBannerID + */ + c_catBannerID = undefined; + /** + * Use this attribute to apply custom styles for this category. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * Used to define if/when the Compare feature is to be visualized in the storefront based on navigation. If enableCompare = FALSE, no Compare checkboxes will be displayed in the grid view. If enableCompare = TRUE, the category (and its children) will support the Compare feature. + * @member {Boolean} c_enableCompare + */ + c_enableCompare = undefined; + /** + * @member {String} c_headerMenuBanner + */ + c_headerMenuBanner = undefined; + /** + * Which way to orient the menu and optional header menu HTML. Vertical will list all in one line. Horizontal will list in columns. + * @member {module:models/Category.CHeaderMenuOrientationEnum} c_headerMenuOrientation + */ + c_headerMenuOrientation = undefined; + /** + * Used to indicate that a category (such as Mens -> Footwear -> Boots) will display in the roll-over navigation. A sub-category only shows if also the parent category is marked as showInMenu. Up to three category levels are shown in roll-over navigation. + * @member {Boolean} c_showInMenu + */ + c_showInMenu = undefined; + /** + * Used to define the content asset ID of the Size Chart that is appropriate for products whose PRIMARY category is the associated category (and its children). Whenever a product detail page (or quick view) is rendered, the Size Chart link is populated based on the value of this attribute for the products primary categorization. If not defined, NO size chart link is displayed. + * @member {String} c_sizeChartID + */ + c_sizeChartID = undefined; + /** + * @member {String} c_slotBannerHtml + */ + c_slotBannerHtml = undefined; + /** + * Image used on either the top or bottom slot on the category landing pages. + * @member {String} c_slotBannerImage + */ + c_slotBannerImage = undefined; + /** + * Array of subcategories. Can be empty. + * @member {Array.} categories + */ + categories = undefined; + /** + * The localized description of the category. + * @member {String} description + */ + description = undefined; + /** + * The id of the category. + * @member {String} id + */ + id = undefined; + /** + * The URL to the category image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the category. + * @member {String} name + */ + name = undefined; + /** + * The localized page description of the category. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized page keywords of the category. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized page title of the category. + * @member {String} page_title + */ + page_title = undefined; + /** + * The id of the parent category. + * @member {String} parent_category_id + */ + parent_category_id = undefined; + /** + * The URL to the category thumbnail. + * @member {String} thumbnail + */ + thumbnail = undefined; + + + + + + + /** + * Allowed values for the c_headerMenuOrientation property. + * @enum {String} + * @readonly + */ + static CHeaderMenuOrientationEnum = { + + /** + * value: "Horizontal" + * @const + */ + Horizontal: 'Horizontal', + + /** + * value: "Vertical" + * @const + */ + Vertical: 'Vertical' + }; + + + } diff --git a/src/models/CategoryResult.js b/src/models/CategoryResult.js index ad1e97b..4435d22 100644 --- a/src/models/CategoryResult.js +++ b/src/models/CategoryResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Category from './Category' + + + + /** * The CategoryResult model module. * @module models/CategoryResult -* @version 17.8 +* @version 20.4 */ export default class CategoryResult { /** @@ -30,24 +35,16 @@ export default class CategoryResult { * @alias module:models/CategoryResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of category documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class CategoryResult { if (data) { obj = obj || new CategoryResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Category]) + obj.data = ApiClient.convertToType(data.data, [Category]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of category documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/Content.js b/src/models/Content.js index 077f6d8..6f36ef1 100644 --- a/src/models/Content.js +++ b/src/models/Content.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Content model module. * @module models/Content -* @version 17.8 +* @version 20.4 */ export default class Content { /** @@ -30,42 +35,16 @@ export default class Content { * @class * @param id {String} The id of the content asset. */ + constructor(id) { - /** - * The localized content asset description. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the content asset. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized content asset name. - * @member {String} name - */ - this.name = undefined - - /** - * The localized content asset page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized content asset page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized content asset page title. - * @member {String} page_title - */ - this.page_title = undefined + } /** @@ -79,26 +58,92 @@ export default class Content { if (data) { obj = obj || new Content() + + + + + if (data.hasOwnProperty('c_Year')) { + obj.c_Year = ApiClient.convertToType(data.c_Year, 'String') + } + if (data.hasOwnProperty('c_body')) { + obj.c_body = ApiClient.convertToType(data.c_body, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } } - return obj } + + /** + * @member {String} c_Year + */ + c_Year = undefined; + /** + * @member {String} c_body + */ + c_body = undefined; + /** + * Use this attribute to apply custom styles for this content asset. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * The localized content asset description. + * @member {String} description + */ + description = undefined; + /** + * The id of the content asset. + * @member {String} id + */ + id = undefined; + /** + * The localized content asset name. + * @member {String} name + */ + name = undefined; + /** + * The localized content asset page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized content asset page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized content asset page title. + * @member {String} page_title + */ + page_title = undefined; + + + + + + + + } + + diff --git a/src/models/ContentFolder.js b/src/models/ContentFolder.js index 9f47cc6..c13b051 100644 --- a/src/models/ContentFolder.js +++ b/src/models/ContentFolder.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ContentFolder model module. * @module models/ContentFolder -* @version 17.8 +* @version 20.4 */ export default class ContentFolder { /** @@ -30,54 +35,16 @@ export default class ContentFolder { * @class * @param id {String} The id of the content folder. */ + constructor(id) { - /** - * The localized content folder description. - * @member {String} description - */ - this.description = undefined - - /** - * The array of content subfolders. This array can be empty. - * @member {Array.} folders - */ - this.folders = undefined - - /** - * The id of the content folder. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized content folder name. - * @member {String} name - */ - this.name = undefined - - /** - * The localized content folder page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized content folder page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized content folder page title. - * @member {String} page_title - */ - this.page_title = undefined - - /** - * The id of the parent content folder. - * @member {String} parent_folder_id - */ - this.parent_folder_id = undefined + } /** @@ -91,32 +58,92 @@ export default class ContentFolder { if (data) { obj = obj || new ContentFolder() + + + + + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('folders')) { - obj['folders'] = ApiClient.convertToType(data['folders'], [ContentFolder]) + obj.folders = ApiClient.convertToType(data.folders, [ContentFolder]) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('parent_folder_id')) { - obj['parent_folder_id'] = ApiClient.convertToType(data['parent_folder_id'], 'String') + obj.parent_folder_id = ApiClient.convertToType(data.parent_folder_id, 'String') } } - return obj } + + /** + * Use this attribute to apply custom styles for this category. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * The localized content folder description. + * @member {String} description + */ + description = undefined; + /** + * The array of content subfolders. This array can be empty. + * @member {Array.} folders + */ + folders = undefined; + /** + * The id of the content folder. + * @member {String} id + */ + id = undefined; + /** + * The localized content folder name. + * @member {String} name + */ + name = undefined; + /** + * The localized content folder page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized content folder page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized content folder page title. + * @member {String} page_title + */ + page_title = undefined; + /** + * The id of the parent content folder. + * @member {String} parent_folder_id + */ + parent_folder_id = undefined; + + + + + + + + } diff --git a/src/models/ContentFolderResult.js b/src/models/ContentFolderResult.js index 26f41af..1a1ca4b 100644 --- a/src/models/ContentFolderResult.js +++ b/src/models/ContentFolderResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentFolder from './ContentFolder' + + + + /** * The ContentFolderResult model module. * @module models/ContentFolderResult -* @version 17.8 +* @version 20.4 */ export default class ContentFolderResult { /** @@ -30,24 +35,16 @@ export default class ContentFolderResult { * @alias module:models/ContentFolderResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of content folder documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class ContentFolderResult { if (data) { obj = obj || new ContentFolderResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ContentFolder]) + obj.data = ApiClient.convertToType(data.data, [ContentFolder]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of content folder documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/ContentResult.js b/src/models/ContentResult.js index 645a6d0..5b959a5 100644 --- a/src/models/ContentResult.js +++ b/src/models/ContentResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from './Content' + + + + /** * The ContentResult model module. * @module models/ContentResult -* @version 17.8 +* @version 20.4 */ export default class ContentResult { /** @@ -30,24 +35,16 @@ export default class ContentResult { * @alias module:models/ContentResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of content assets. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class ContentResult { if (data) { obj = obj || new ContentResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Content]) + obj.data = ApiClient.convertToType(data.data, [Content]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of content assets. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/ContentSearchRefinement.js b/src/models/ContentSearchRefinement.js index 63c5d69..0f12ba0 100644 --- a/src/models/ContentSearchRefinement.js +++ b/src/models/ContentSearchRefinement.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentSearchRefinementValue from './ContentSearchRefinementValue' + + + + /** * The ContentSearchRefinement model module. * @module models/ContentSearchRefinement -* @version 17.8 +* @version 20.4 */ export default class ContentSearchRefinement { /** @@ -31,24 +36,16 @@ export default class ContentSearchRefinement { * @class * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". */ + constructor(attributeId) { - /** - * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". - * @member {String} attribute_id - */ + + + + + this.attribute_id = attributeId - /** - * The localized label of the refinement. - * @member {String} label - */ - this.label = undefined - - /** - * The sorted array of refinement values. The array can be empty. - * @member {Array.} values - */ - this.values = undefined + } /** @@ -62,16 +59,46 @@ export default class ContentSearchRefinement { if (data) { obj = obj || new ContentSearchRefinement() + + + + if (data.hasOwnProperty('attribute_id')) { - obj['attribute_id'] = ApiClient.convertToType(data['attribute_id'], 'String') + obj.attribute_id = ApiClient.convertToType(data.attribute_id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ContentSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ContentSearchRefinementValue]) } } return obj } + + /** + * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". + * @member {String} attribute_id + */ + attribute_id = undefined; + /** + * The localized label of the refinement. + * @member {String} label + */ + label = undefined; + /** + * The sorted array of refinement values. The array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } + + diff --git a/src/models/ContentSearchRefinementValue.js b/src/models/ContentSearchRefinementValue.js index 7752c8f..72d94df 100644 --- a/src/models/ContentSearchRefinementValue.js +++ b/src/models/ContentSearchRefinementValue.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ContentSearchRefinementValue model module. * @module models/ContentSearchRefinementValue -* @version 17.8 +* @version 20.4 */ export default class ContentSearchRefinementValue { /** @@ -29,42 +34,16 @@ export default class ContentSearchRefinementValue { * @alias module:models/ContentSearchRefinementValue * @class */ + constructor() { - /** - * The localized description of the refinement value. - * @member {String} description - */ - this.description = undefined - - /** - * The number of search hits (0 or more) when selecting the refinement value. - * @member {Number} hit_count - */ - this.hit_count = undefined - - /** - * The localized label of the refinement value. - * @member {String} label - */ - this.label = undefined - - /** - * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. - * @member {String} presentation_id - */ - this.presentation_id = undefined - - /** - * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a content folder refinement, this is the folder id. - * @member {String} value - */ - this.value = undefined - - /** - * The array of hierarchical refinement values. This array can be empty. - * @member {Array.} values - */ - this.values = undefined + + + + + + + + } /** @@ -78,26 +57,68 @@ export default class ContentSearchRefinementValue { if (data) { obj = obj || new ContentSearchRefinementValue() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('hit_count')) { - obj['hit_count'] = ApiClient.convertToType(data['hit_count'], 'Number') + obj.hit_count = ApiClient.convertToType(data.hit_count, 'Number') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('presentation_id')) { - obj['presentation_id'] = ApiClient.convertToType(data['presentation_id'], 'String') + obj.presentation_id = ApiClient.convertToType(data.presentation_id, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ContentSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ContentSearchRefinementValue]) } } - return obj } + + /** + * The localized description of the refinement value. + * @member {String} description + */ + description = undefined; + /** + * The number of search hits (0 or more) when selecting the refinement value. + * @member {Number} hit_count + */ + hit_count = undefined; + /** + * The localized label of the refinement value. + * @member {String} label + */ + label = undefined; + /** + * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. + * @member {String} presentation_id + */ + presentation_id = undefined; + /** + * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a content folder refinement, this is the folder id. + * @member {String} value + */ + value = undefined; + /** + * The array of hierarchical refinement values. This array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } diff --git a/src/models/ContentSearchResult.js b/src/models/ContentSearchResult.js index d75a840..ca5de99 100644 --- a/src/models/ContentSearchResult.js +++ b/src/models/ContentSearchResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from './Content' import ContentSearchRefinement from './ContentSearchRefinement' + + + + /** * The ContentSearchResult model module. * @module models/ContentSearchResult -* @version 17.8 +* @version 20.4 */ export default class ContentSearchResult { /** @@ -31,65 +36,16 @@ export default class ContentSearchResult { * @alias module:models/ContentSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.} data - */ - this.data = undefined - - /** - * The sorted array of search hits. Can be empty. - * @member {Array.} hits - */ - this.hits = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The query String that was searched for. - * @member {String} query - */ - this.query = undefined - - /** - * The sorted array of search refinements. Can be empty. - * @member {Array.} refinements - */ - this.refinements = undefined - - /** - * Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL. - * @member {Object.} selected_refinements - */ - this.selected_refinements = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -103,38 +59,101 @@ export default class ContentSearchResult { if (data) { obj = obj || new ContentSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [Content]) + obj.hits = ApiClient.convertToType(data.hits, [Content]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } if (data.hasOwnProperty('refinements')) { - obj['refinements'] = ApiClient.convertToType(data['refinements'], [ContentSearchRefinement]) + obj.refinements = ApiClient.convertToType(data.refinements, [ContentSearchRefinement]) } if (data.hasOwnProperty('selected_refinements')) { - obj['selected_refinements'] = ApiClient.convertToType(data['selected_refinements'], {String: 'String'}) + obj.selected_refinements = ApiClient.convertToType(data.selected_refinements, {String: 'String'}) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.} data + */ + data = undefined; + /** + * The sorted array of search hits. Can be empty. + * @member {Array.} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The query String that was searched for. + * @member {String} query + */ + query = undefined; + /** + * The sorted array of search refinements. Can be empty. + * @member {Array.} refinements + */ + refinements = undefined; + /** + * Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL. + * @member {Object.} selected_refinements + */ + selected_refinements = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CouponItem.js b/src/models/CouponItem.js index 961f5ec..6edf863 100644 --- a/src/models/CouponItem.js +++ b/src/models/CouponItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CouponItem model module. * @module models/CouponItem -* @version 17.8 +* @version 20.4 */ export default class CouponItem { /** @@ -30,29 +35,16 @@ export default class CouponItem { * @class * @param code {String} The coupon code. */ + constructor(code) { - /** - * The coupon code. - * @member {String} code - */ + + + + + this.code = code - /** - * The coupon item id. - * @member {String} coupon_item_id - */ - this.coupon_item_id = undefined - /** - * The status of the coupon item. - * @member {module:models/CouponItem.StatusCodeEnum} status_code - */ - this.status_code = undefined - /** - * A flag indicating whether the coupon item is valid. A coupon line item is valid if the status code is 'applied' or 'no_applicable_promotion'. - * @member {Boolean} valid - */ - this.valid = undefined } /** @@ -66,100 +58,134 @@ export default class CouponItem { if (data) { obj = obj || new CouponItem() + + + + if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String') + obj.code = ApiClient.convertToType(data.code, 'String') } if (data.hasOwnProperty('coupon_item_id')) { - obj['coupon_item_id'] = ApiClient.convertToType(data['coupon_item_id'], 'String') + obj.coupon_item_id = ApiClient.convertToType(data.coupon_item_id, 'String') } if (data.hasOwnProperty('status_code')) { - obj['status_code'] = ApiClient.convertToType(data['status_code'], 'String') + obj.status_code = ApiClient.convertToType(data.status_code, 'String') } if (data.hasOwnProperty('valid')) { - obj['valid'] = ApiClient.convertToType(data['valid'], 'Boolean') + obj.valid = ApiClient.convertToType(data.valid, 'Boolean') } } - return obj } -} - -/** -* Allowed values for the status_code property. -* @enum {String} -* @readonly -*/ -CouponItem.StatusCodeEnum = { /** - * value: "coupon_code_already_in_basket" - * @const - */ - coupon_code_already_in_basket: 'coupon_code_already_in_basket', - + * The coupon code. + * @member {String} code + */ + code = undefined; /** - * value: "coupon_code_already_redeemed" - * @const - */ - coupon_code_already_redeemed: 'coupon_code_already_redeemed', - + * The coupon item id. + * @member {String} coupon_item_id + */ + coupon_item_id = undefined; /** - * value: "coupon_code_unknown" - * @const - */ - coupon_code_unknown: 'coupon_code_unknown', - + * The status of the coupon item. + * @member {module:models/CouponItem.StatusCodeEnum} status_code + */ + status_code = undefined; /** - * value: "coupon_disabled" - * @const - */ - coupon_disabled: 'coupon_disabled', + * A flag indicating whether the coupon item is valid. A coupon line item is valid if the status code is 'applied' or 'no_applicable_promotion'. + * @member {Boolean} valid + */ + valid = undefined; - /** - * value: "redemption_limit_exceeded" - * @const - */ - redemption_limit_exceeded: 'redemption_limit_exceeded', - /** - * value: "customer_redemption_limit_exceeded" - * @const - */ - customer_redemption_limit_exceeded: 'customer_redemption_limit_exceeded', - /** - * value: "timeframe_redemption_limit_exceeded" - * @const - */ - timeframe_redemption_limit_exceeded: 'timeframe_redemption_limit_exceeded', - /** - * value: "no_active_promotion" - * @const - */ - no_active_promotion: 'no_active_promotion', - /** - * value: "coupon_already_in_basket" - * @const - */ - coupon_already_in_basket: 'coupon_already_in_basket', /** - * value: "no_applicable_promotion" - * @const - */ - no_applicable_promotion: 'no_applicable_promotion', + * Allowed values for the status_code property. + * @enum {String} + * @readonly + */ + static StatusCodeEnum = { + + /** + * value: "coupon_code_already_in_basket" + * @const + */ + coupon_code_already_in_basket: 'coupon_code_already_in_basket', + + /** + * value: "coupon_code_already_redeemed" + * @const + */ + coupon_code_already_redeemed: 'coupon_code_already_redeemed', + + /** + * value: "coupon_code_unknown" + * @const + */ + coupon_code_unknown: 'coupon_code_unknown', + + /** + * value: "coupon_disabled" + * @const + */ + coupon_disabled: 'coupon_disabled', + + /** + * value: "redemption_limit_exceeded" + * @const + */ + redemption_limit_exceeded: 'redemption_limit_exceeded', + + /** + * value: "customer_redemption_limit_exceeded" + * @const + */ + customer_redemption_limit_exceeded: 'customer_redemption_limit_exceeded', + + /** + * value: "timeframe_redemption_limit_exceeded" + * @const + */ + timeframe_redemption_limit_exceeded: 'timeframe_redemption_limit_exceeded', + + /** + * value: "no_active_promotion" + * @const + */ + no_active_promotion: 'no_active_promotion', + + /** + * value: "coupon_already_in_basket" + * @const + */ + coupon_already_in_basket: 'coupon_already_in_basket', + + /** + * value: "no_applicable_promotion" + * @const + */ + no_applicable_promotion: 'no_applicable_promotion', + + /** + * value: "applied" + * @const + */ + applied: 'applied', + + /** + * value: "adhoc" + * @const + */ + adhoc: 'adhoc' + }; + - /** - * value: "applied" - * @const - */ - applied: 'applied', - /** - * value: "adhoc" - * @const - */ - adhoc: 'adhoc' } + + diff --git a/src/models/CustomObject.js b/src/models/CustomObject.js index 46ca0df..fd69e2b 100644 --- a/src/models/CustomObject.js +++ b/src/models/CustomObject.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomObject model module. * @module models/CustomObject -* @version 17.8 +* @version 20.4 */ export default class CustomObject { /** @@ -29,30 +34,16 @@ export default class CustomObject { * @alias module:models/CustomObject * @class */ + constructor() { - /** - * The name of the key property for the custom object. - * @member {String} key_property - */ - this.key_property = undefined - - /** - * The id of the custom object when the type of the key is Integer. - * @member {Number} key_value_integer - */ - this.key_value_integer = undefined - - /** - * The id of the custom object when the type of the key is String. - * @member {String} key_value_string - */ - this.key_value_string = undefined - - /** - * The id of the object type. - * @member {String} object_type - */ - this.object_type = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class CustomObject { if (data) { obj = obj || new CustomObject() + + + + if (data.hasOwnProperty('key_property')) { - obj['key_property'] = ApiClient.convertToType(data['key_property'], 'String') + obj.key_property = ApiClient.convertToType(data.key_property, 'String') } if (data.hasOwnProperty('key_value_integer')) { - obj['key_value_integer'] = ApiClient.convertToType(data['key_value_integer'], 'Number') + obj.key_value_integer = ApiClient.convertToType(data.key_value_integer, 'Number') } if (data.hasOwnProperty('key_value_string')) { - obj['key_value_string'] = ApiClient.convertToType(data['key_value_string'], 'String') + obj.key_value_string = ApiClient.convertToType(data.key_value_string, 'String') } if (data.hasOwnProperty('object_type')) { - obj['object_type'] = ApiClient.convertToType(data['object_type'], 'String') + obj.object_type = ApiClient.convertToType(data.object_type, 'String') } } - return obj } + + /** + * The name of the key property for the custom object. + * @member {String} key_property + */ + key_property = undefined; + /** + * The id of the custom object when the type of the key is Integer. + * @member {Number} key_value_integer + */ + key_value_integer = undefined; + /** + * The id of the custom object when the type of the key is String. + * @member {String} key_value_string + */ + key_value_string = undefined; + /** + * The id of the object type. + * @member {String} object_type + */ + object_type = undefined; + + + + + + + + } + + diff --git a/src/models/Customer.js b/src/models/Customer.js index b7a54d7..a017c29 100644 --- a/src/models/Customer.js +++ b/src/models/Customer.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddress from './CustomerAddress' import CustomerPaymentInstrument from './CustomerPaymentInstrument' + + + + /** * The Customer model module. * @module models/Customer -* @version 17.8 +* @version 20.4 */ export default class Customer { /** @@ -31,186 +36,16 @@ export default class Customer { * @alias module:models/Customer * @class */ - constructor() { - /** - * The customer's addresses. - * @member {Array.} addresses - */ - this.addresses = undefined - - /** - * The customer's authorization type (indicates if the customer is a guest or a registered customer). - * @member {module:models/Customer.AuthTypeEnum} auth_type - */ - this.auth_type = undefined - - /** - * The customer's birthday. - * @member {Date} birthday - */ - this.birthday = undefined - - /** - * The customer's company name. - * @member {String} company_name - */ - this.company_name = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The customer's number (id). Both registered and guest customers have a customer id. - * @member {String} customer_id - */ - this.customer_id = undefined - - /** - * The customer's number (id). Only a registered customer has a customer number. - * @member {String} customer_no - */ - this.customer_no = undefined - - /** - * The customer's email address. - * @member {String} email - */ - this.email = undefined - - /** - * A flag indicating whether this customer is is enabled and can log in. - * @member {Boolean} enabled - */ - this.enabled = undefined - - /** - * The customer's fax number. The length is restricted to 32 characters. - * @member {String} fax - */ - this.fax = undefined - - /** - * The customer's first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The customer's gender. - * @member {module:models/Customer.GenderEnum} gender - */ - this.gender = undefined - - /** - * The customer's job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * The time when the customer last logged in. - * @member {Date} last_login_time - */ - this.last_login_time = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The customer's last name. - * @member {String} last_name - */ - this.last_name = undefined - /** - * The time when the customer last visited. - * @member {Date} last_visit_time - */ - this.last_visit_time = undefined - - /** - * The customer's login. - * @member {String} login - */ - this.login = undefined - - /** - * The customer's note. - * @member {String} note - */ - this.note = undefined - - /** - * The customer's payment instruments. - * @member {Array.} payment_instruments - */ - this.payment_instruments = undefined - - /** - * The customer's business phone number. - * @member {String} phone_business - */ - this.phone_business = undefined - - /** - * The customer's home phone number. - * @member {String} phone_home - */ - this.phone_home = undefined + constructor() { - /** - * The customer's mobile phone number. - * @member {String} phone_mobile - */ - this.phone_mobile = undefined - /** - * The customer's preferred locale. - * @member {String} preferred_locale - */ - this.preferred_locale = undefined - /** - * The time when the customer logged in previously. - * @member {Date} previous_login_time - */ - this.previous_login_time = undefined - /** - * The time when the customer last visited the store. - * @member {Date} previous_visit_time - */ - this.previous_visit_time = undefined - /** - * The salutation to use for the customer. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The customer's second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The customer's suffix (for example, \"Jr.\" or \"Sr.\"). - * @member {String} suffix - */ - this.suffix = undefined - /** - * The customer's title (for example, \"Mrs\" or \"Mr\"). - * @member {String} title - */ - this.title = undefined } /** @@ -225,138 +60,308 @@ export default class Customer { obj = obj || new Customer() + + + if (data.hasOwnProperty('addresses')) { - obj['addresses'] = ApiClient.convertToType(data['addresses'], [CustomerAddress]) + obj.addresses = ApiClient.convertToType(data.addresses, [CustomerAddress]) } if (data.hasOwnProperty('auth_type')) { - obj['auth_type'] = ApiClient.convertToType(data['auth_type'], 'String') + obj.auth_type = ApiClient.convertToType(data.auth_type, 'String') } if (data.hasOwnProperty('birthday')) { - obj['birthday'] = ApiClient.convertToType(data['birthday'], 'Date') + obj.birthday = ApiClient.convertToType(data.birthday, 'Date') + } + if (data.hasOwnProperty('c_familyStatus')) { + obj.c_familyStatus = ApiClient.convertToType(data.c_familyStatus, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String') + obj.customer_id = ApiClient.convertToType(data.customer_id, 'String') } if (data.hasOwnProperty('customer_no')) { - obj['customer_no'] = ApiClient.convertToType(data['customer_no'], 'String') + obj.customer_no = ApiClient.convertToType(data.customer_no, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean') + obj.enabled = ApiClient.convertToType(data.enabled, 'Boolean') } if (data.hasOwnProperty('fax')) { - obj['fax'] = ApiClient.convertToType(data['fax'], 'String') + obj.fax = ApiClient.convertToType(data.fax, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('gender')) { - obj['gender'] = ApiClient.convertToType(data['gender'], 'Number') + obj.gender = ApiClient.convertToType(data.gender, 'Number') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_login_time')) { - obj['last_login_time'] = ApiClient.convertToType(data['last_login_time'], 'Date') + obj.last_login_time = ApiClient.convertToType(data.last_login_time, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('last_visit_time')) { - obj['last_visit_time'] = ApiClient.convertToType(data['last_visit_time'], 'Date') + obj.last_visit_time = ApiClient.convertToType(data.last_visit_time, 'Date') } if (data.hasOwnProperty('login')) { - obj['login'] = ApiClient.convertToType(data['login'], 'String') + obj.login = ApiClient.convertToType(data.login, 'String') } if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String') + obj.note = ApiClient.convertToType(data.note, 'String') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [CustomerPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [CustomerPaymentInstrument]) } if (data.hasOwnProperty('phone_business')) { - obj['phone_business'] = ApiClient.convertToType(data['phone_business'], 'String') + obj.phone_business = ApiClient.convertToType(data.phone_business, 'String') } if (data.hasOwnProperty('phone_home')) { - obj['phone_home'] = ApiClient.convertToType(data['phone_home'], 'String') + obj.phone_home = ApiClient.convertToType(data.phone_home, 'String') } if (data.hasOwnProperty('phone_mobile')) { - obj['phone_mobile'] = ApiClient.convertToType(data['phone_mobile'], 'String') + obj.phone_mobile = ApiClient.convertToType(data.phone_mobile, 'String') } if (data.hasOwnProperty('preferred_locale')) { - obj['preferred_locale'] = ApiClient.convertToType(data['preferred_locale'], 'String') + obj.preferred_locale = ApiClient.convertToType(data.preferred_locale, 'String') } if (data.hasOwnProperty('previous_login_time')) { - obj['previous_login_time'] = ApiClient.convertToType(data['previous_login_time'], 'Date') + obj.previous_login_time = ApiClient.convertToType(data.previous_login_time, 'Date') } if (data.hasOwnProperty('previous_visit_time')) { - obj['previous_visit_time'] = ApiClient.convertToType(data['previous_visit_time'], 'Date') + obj.previous_visit_time = ApiClient.convertToType(data.previous_visit_time, 'Date') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the auth_type property. -* @enum {String} -* @readonly -*/ -Customer.AuthTypeEnum = { /** - * value: "guest" - * @const - */ - guest: 'guest', - + * The customer's addresses. + * @member {Array.} addresses + */ + addresses = undefined; /** - * value: "registered" - * @const - */ - registered: 'registered' -} + * The customer's authorization type (indicates if the customer is a guest or a registered customer). + * @member {module:models/Customer.AuthTypeEnum} auth_type + */ + auth_type = undefined; + /** + * The customer's birthday. + * @member {Date} birthday + */ + birthday = undefined; + /** + * @member {String} c_familyStatus + */ + c_familyStatus = undefined; + /** + * The customer's company name. + * @member {String} company_name + */ + company_name = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The customer's number (id). Both registered and guest customers have a customer id. + * @member {String} customer_id + */ + customer_id = undefined; + /** + * The customer's number (id). Only a registered customer has a customer number. + * @member {String} customer_no + */ + customer_no = undefined; + /** + * The customer's email address. + * @member {String} email + */ + email = undefined; + /** + * A flag indicating whether this customer is is enabled and can log in. + * @member {Boolean} enabled + */ + enabled = undefined; + /** + * The customer's fax number. The length is restricted to 32 characters. + * @member {String} fax + */ + fax = undefined; + /** + * The customer's first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The customer's gender. + * @member {module:models/Customer.GenderEnum} gender + */ + gender = undefined; + /** + * The customer's job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * The time when the customer last logged in. + * @member {Date} last_login_time + */ + last_login_time = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The customer's last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The time when the customer last visited. + * @member {Date} last_visit_time + */ + last_visit_time = undefined; + /** + * The customer's login. + * @member {String} login + */ + login = undefined; + /** + * The customer's note. + * @member {String} note + */ + note = undefined; + /** + * The customer's payment instruments. + * @member {Array.} payment_instruments + */ + payment_instruments = undefined; + /** + * The customer's business phone number. + * @member {String} phone_business + */ + phone_business = undefined; + /** + * The customer's home phone number. + * @member {String} phone_home + */ + phone_home = undefined; + /** + * The customer's mobile phone number. + * @member {String} phone_mobile + */ + phone_mobile = undefined; + /** + * The customer's preferred locale. + * @member {String} preferred_locale + */ + preferred_locale = undefined; + /** + * The time when the customer logged in previously. + * @member {Date} previous_login_time + */ + previous_login_time = undefined; + /** + * The time when the customer last visited the store. + * @member {Date} previous_visit_time + */ + previous_visit_time = undefined; + /** + * The salutation to use for the customer. + * @member {String} salutation + */ + salutation = undefined; + /** + * The customer's second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The customer's suffix (for example, \"Jr.\" or \"Sr.\"). + * @member {String} suffix + */ + suffix = undefined; + /** + * The customer's title (for example, \"Mrs\" or \"Mr\"). + * @member {String} title + */ + title = undefined; + + + + -/** -* Allowed values for the gender property. -* @enum {Number} -* @readonly -*/ -Customer.GenderEnum = { /** - * value: 1 - * @const - */ - 1: 1, + * Allowed values for the auth_type property. + * @enum {String} + * @readonly + */ + static AuthTypeEnum = { + + /** + * value: "guest" + * @const + */ + guest: 'guest', + + /** + * value: "registered" + * @const + */ + registered: 'registered' + }; /** - * value: 2 - * @const - */ - 2: 2 + * Allowed values for the gender property. + * @enum {Number} + * @readonly + */ + static GenderEnum = { + + /** + * value: 1 + * @const + */ + 1: 1, + + /** + * value: 2 + * @const + */ + 2: 2 + }; + + + } + + diff --git a/src/models/CustomerAddress.js b/src/models/CustomerAddress.js index e96f0de..378dcaa 100644 --- a/src/models/CustomerAddress.js +++ b/src/models/CustomerAddress.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerAddress model module. * @module models/CustomerAddress -* @version 17.8 +* @version 20.4 */ export default class CustomerAddress { /** @@ -29,138 +34,16 @@ export default class CustomerAddress { * @alias module:models/CustomerAddress * @class */ - constructor() { - /** - * The first address. - * @member {String} address1 - */ - this.address1 = undefined - - /** - * The second address. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The id of the address as specified by account owner. - * @member {String} address_id - */ - this.address_id = undefined - - /** - * The city. - * @member {String} city - */ - this.city = undefined - - /** - * The company name. - * @member {String} company_name - */ - this.company_name = undefined - - /** - * The two-letter ISO 3166-1 (Alpha-2) country code. - * @member {module:models/CustomerAddress.CountryCodeEnum} country_code - */ - this.country_code = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The full name. - * @member {String} full_name - */ - this.full_name = undefined - - /** - * The job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The last name. - * @member {String} last_name - */ - this.last_name = undefined - /** - * The phone number. - * @member {String} phone - */ - this.phone = undefined + constructor() { - /** - * The post box. - * @member {String} post_box - */ - this.post_box = undefined - /** - * The postal code. - * @member {String} postal_code - */ - this.postal_code = undefined - /** - * The preferred attribute. - * @member {Boolean} preferred - */ - this.preferred = undefined - /** - * The salutation. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The state code. - * @member {String} state_code - */ - this.state_code = undefined - - /** - * The suffix. - * @member {String} suffix - */ - this.suffix = undefined - /** - * The suite. - * @member {String} suite - */ - this.suite = undefined - /** - * The title. - * @member {String} title - */ - this.title = undefined } /** @@ -175,118 +58,241 @@ export default class CustomerAddress { obj = obj || new CustomerAddress() + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') } if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('full_name')) { - obj['full_name'] = ApiClient.convertToType(data['full_name'], 'String') + obj.full_name = ApiClient.convertToType(data.full_name, 'String') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('post_box')) { - obj['post_box'] = ApiClient.convertToType(data['post_box'], 'String') + obj.post_box = ApiClient.convertToType(data.post_box, 'String') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('preferred')) { - obj['preferred'] = ApiClient.convertToType(data['preferred'], 'Boolean') + obj.preferred = ApiClient.convertToType(data.preferred, 'Boolean') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('suite')) { - obj['suite'] = ApiClient.convertToType(data['suite'], 'String') + obj.suite = ApiClient.convertToType(data.suite, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the country_code property. -* @enum {String} -* @readonly -*/ -CustomerAddress.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address. + * @member {String} address1 + */ + address1 = undefined; /** - * value: "FR" - * @const - */ - FR: 'FR', - + * The second address. + * @member {String} address2 + */ + address2 = undefined; /** - * value: "IT" - * @const - */ - IT: 'IT', - + * The id of the address as specified by account owner. + * @member {String} address_id + */ + address_id = undefined; /** - * value: "JP" - * @const - */ - JP: 'JP', - + * The city. + * @member {String} city + */ + city = undefined; /** - * value: "CN" - * @const - */ - CN: 'CN', + * The company name. + * @member {String} company_name + */ + company_name = undefined; + /** + * The two-letter ISO 3166-1 (Alpha-2) country code. + * @member {module:models/CustomerAddress.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The full name. + * @member {String} full_name + */ + full_name = undefined; + /** + * The job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The phone number. + * @member {String} phone + */ + phone = undefined; + /** + * The post box. + * @member {String} post_box + */ + post_box = undefined; + /** + * The postal code. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The preferred attribute. + * @member {Boolean} preferred + */ + preferred = undefined; + /** + * The salutation. + * @member {String} salutation + */ + salutation = undefined; + /** + * The second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The state code. + * @member {String} state_code + */ + state_code = undefined; + /** + * The suffix. + * @member {String} suffix + */ + suffix = undefined; + /** + * The suite. + * @member {String} suite + */ + suite = undefined; + /** + * The title. + * @member {String} title + */ + title = undefined; + + + + + /** - * value: "GB" - * @const - */ - GB: 'GB' + * Allowed values for the country_code property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "FR" + * @const + */ + FR: 'FR', + + /** + * value: "IT" + * @const + */ + IT: 'IT', + + /** + * value: "JP" + * @const + */ + JP: 'JP', + + /** + * value: "CN" + * @const + */ + CN: 'CN', + + /** + * value: "GB" + * @const + */ + GB: 'GB' + }; + + + } + + diff --git a/src/models/CustomerAddressLink.js b/src/models/CustomerAddressLink.js index cbb7b60..f8db7cc 100644 --- a/src/models/CustomerAddressLink.js +++ b/src/models/CustomerAddressLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerAddressLink model module. * @module models/CustomerAddressLink -* @version 17.8 +* @version 20.4 */ export default class CustomerAddressLink { /** @@ -29,24 +34,16 @@ export default class CustomerAddressLink { * @alias module:models/CustomerAddressLink * @class */ + constructor() { - /** - * The id of the address. - * @member {String} address_id - */ - this.address_id = undefined - - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -60,17 +57,46 @@ export default class CustomerAddressLink { if (data) { obj = obj || new CustomerAddressLink() + + + + if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The id of the address. + * @member {String} address_id + */ + address_id = undefined; + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerAddressResult.js b/src/models/CustomerAddressResult.js index 3bbf85c..4b1a85e 100644 --- a/src/models/CustomerAddressResult.js +++ b/src/models/CustomerAddressResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddress from './CustomerAddress' + + + + /** * The CustomerAddressResult model module. * @module models/CustomerAddressResult -* @version 17.8 +* @version 20.4 */ export default class CustomerAddressResult { /** @@ -30,48 +35,16 @@ export default class CustomerAddressResult { * @alias module:models/CustomerAddressResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of customer address documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * - * @member {String} select - */ - this.select = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -85,29 +58,78 @@ export default class CustomerAddressResult { if (data) { obj = obj || new CustomerAddressResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerAddress]) + obj.data = ApiClient.convertToType(data.data, [CustomerAddress]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of customer address documents. + * @member {Array.} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * + * @member {String} select + */ + select = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerInfo.js b/src/models/CustomerInfo.js index 1d871a1..4f563e2 100644 --- a/src/models/CustomerInfo.js +++ b/src/models/CustomerInfo.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerInfo model module. * @module models/CustomerInfo -* @version 17.8 +* @version 20.4 */ export default class CustomerInfo { /** @@ -30,30 +35,16 @@ export default class CustomerInfo { * @class * @param email {String} The customer's email address. */ + constructor(email) { - /** - * The customer's number (id). - * @member {String} customer_id - */ - this.customer_id = undefined - - /** - * - * @member {String} customer_name - */ - this.customer_name = undefined - - /** - * The customer's number (id). - * @member {String} customer_no - */ - this.customer_no = undefined - - /** - * The customer's email address. - * @member {String} email - */ + + + + + this.email = email + + } /** @@ -67,20 +58,61 @@ export default class CustomerInfo { if (data) { obj = obj || new CustomerInfo() + + + + + if (data.hasOwnProperty('c_familyStatus')) { + obj.c_familyStatus = ApiClient.convertToType(data.c_familyStatus, 'String') + } if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String') + obj.customer_id = ApiClient.convertToType(data.customer_id, 'String') } if (data.hasOwnProperty('customer_name')) { - obj['customer_name'] = ApiClient.convertToType(data['customer_name'], 'String') + obj.customer_name = ApiClient.convertToType(data.customer_name, 'String') } if (data.hasOwnProperty('customer_no')) { - obj['customer_no'] = ApiClient.convertToType(data['customer_no'], 'String') + obj.customer_no = ApiClient.convertToType(data.customer_no, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } } - return obj } + + /** + * @member {String} c_familyStatus + */ + c_familyStatus = undefined; + /** + * The customer's number (id). + * @member {String} customer_id + */ + customer_id = undefined; + /** + * + * @member {String} customer_name + */ + customer_name = undefined; + /** + * The customer's number (id). + * @member {String} customer_no + */ + customer_no = undefined; + /** + * The customer's email address. + * @member {String} email + */ + email = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerOrderResult.js b/src/models/CustomerOrderResult.js index 56d94ae..8fe3714 100644 --- a/src/models/CustomerOrderResult.js +++ b/src/models/CustomerOrderResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Order from './Order' + + + + /** * The CustomerOrderResult model module. * @module models/CustomerOrderResult -* @version 17.8 +* @version 20.4 */ export default class CustomerOrderResult { /** @@ -30,48 +35,16 @@ export default class CustomerOrderResult { * @alias module:models/CustomerOrderResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of customer order documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The fields that you want to select. - * @member {String} select - */ - this.select = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -85,29 +58,78 @@ export default class CustomerOrderResult { if (data) { obj = obj || new CustomerOrderResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Order]) + obj.data = ApiClient.convertToType(data.data, [Order]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of customer order documents. + * @member {Array.} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The fields that you want to select. + * @member {String} select + */ + select = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerPaymentCardRequest.js b/src/models/CustomerPaymentCardRequest.js index 1aa9a12..865221e 100644 --- a/src/models/CustomerPaymentCardRequest.js +++ b/src/models/CustomerPaymentCardRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerPaymentCardRequest model module. * @module models/CustomerPaymentCardRequest -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentCardRequest { /** @@ -29,60 +34,16 @@ export default class CustomerPaymentCardRequest { * @alias module:models/CustomerPaymentCardRequest * @class */ + constructor() { - /** - * The payment card type (for example, 'Visa'). - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * The month when the payment card expires. - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * The year when the payment card expires. - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * The payment card holder. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment card issue number. - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * The payment card number. - * @member {String} number - */ - this.number = undefined - - /** - * The payment card valid from month. - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * The payment card valid from year. - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -96,35 +57,94 @@ export default class CustomerPaymentCardRequest { if (data) { obj = obj || new CustomerPaymentCardRequest() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * The payment card type (for example, 'Visa'). + * @member {String} card_type + */ + card_type = undefined; + /** + * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * The month when the payment card expires. + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * The year when the payment card expires. + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * The payment card holder. + * @member {String} holder + */ + holder = undefined; + /** + * The payment card issue number. + * @member {String} issue_number + */ + issue_number = undefined; + /** + * The payment card number. + * @member {String} number + */ + number = undefined; + /** + * The payment card valid from month. + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * The payment card valid from year. + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerPaymentInstrument.js b/src/models/CustomerPaymentInstrument.js index 0484721..7c6e1a5 100644 --- a/src/models/CustomerPaymentInstrument.js +++ b/src/models/CustomerPaymentInstrument.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentBankAccount from './PaymentBankAccount' import PaymentCard from './PaymentCard' + + + + /** * The CustomerPaymentInstrument model module. * @module models/CustomerPaymentInstrument -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrument { /** @@ -31,54 +36,16 @@ export default class CustomerPaymentInstrument { * @alias module:models/CustomerPaymentInstrument * @class */ + constructor() { - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The payment bank account. - * @member {module:models/PaymentBankAccount} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/PaymentCard} payment_card - */ - this.payment_card = undefined - - /** - * The payment instrument ID. - * @member {String} payment_instrument_id - */ - this.payment_instrument_id = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -92,32 +59,86 @@ export default class CustomerPaymentInstrument { if (data) { obj = obj || new CustomerPaymentInstrument() + + + + if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccount.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccount.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = PaymentCard.constructFromObject(data['payment_card']) + obj.payment_card = PaymentCard.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_instrument_id')) { - obj['payment_instrument_id'] = ApiClient.convertToType(data['payment_instrument_id'], 'String') + obj.payment_instrument_id = ApiClient.convertToType(data.payment_instrument_id, 'String') } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The payment bank account. + * @member {module:models/PaymentBankAccount} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/PaymentCard} payment_card + */ + payment_card = undefined; + /** + * The payment instrument ID. + * @member {String} payment_instrument_id + */ + payment_instrument_id = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerPaymentInstrumentRequest.js b/src/models/CustomerPaymentInstrumentRequest.js index 01ade23..eb6d29f 100644 --- a/src/models/CustomerPaymentInstrumentRequest.js +++ b/src/models/CustomerPaymentInstrumentRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerPaymentCardRequest from './CustomerPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The CustomerPaymentInstrumentRequest model module. * @module models/CustomerPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrumentRequest { /** @@ -31,36 +36,16 @@ export default class CustomerPaymentInstrumentRequest { * @alias module:models/CustomerPaymentInstrumentRequest * @class */ + constructor() { - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The customer payment card. - * @member {module:models/CustomerPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -74,23 +59,62 @@ export default class CustomerPaymentInstrumentRequest { if (data) { obj = obj || new CustomerPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = CustomerPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = CustomerPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The customer payment card. + * @member {module:models/CustomerPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerPaymentInstrumentResult.js b/src/models/CustomerPaymentInstrumentResult.js index c2aab0e..5a19083 100644 --- a/src/models/CustomerPaymentInstrumentResult.js +++ b/src/models/CustomerPaymentInstrumentResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerPaymentInstrument from './CustomerPaymentInstrument' + + + + /** * The CustomerPaymentInstrumentResult model module. * @module models/CustomerPaymentInstrumentResult -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrumentResult { /** @@ -30,24 +35,16 @@ export default class CustomerPaymentInstrumentResult { * @alias module:models/CustomerPaymentInstrumentResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The customer payment instruments list. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class CustomerPaymentInstrumentResult { if (data) { obj = obj || new CustomerPaymentInstrumentResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerPaymentInstrument]) + obj.data = ApiClient.convertToType(data.data, [CustomerPaymentInstrument]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The customer payment instruments list. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerProductList.js b/src/models/CustomerProductList.js index e04ec93..4425cec 100644 --- a/src/models/CustomerProductList.js +++ b/src/models/CustomerProductList.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,18 +14,24 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddressLink from './CustomerAddressLink' -import CustomerProductListItemLink from './CustomerProductListItemLink' import CustomerProductListItem from './CustomerProductListItem' +import CustomerProductListItemLink from './CustomerProductListItemLink' import CustomerProductListRegistrant from './CustomerProductListRegistrant' import ProductListEvent from './ProductListEvent' import ProductListShippingAddress from './ProductListShippingAddress' + + + + /** * The CustomerProductList model module. * @module models/CustomerProductList -* @version 17.8 +* @version 20.4 */ export default class CustomerProductList { /** @@ -35,102 +40,16 @@ export default class CustomerProductList { * @alias module:models/CustomerProductList * @class */ - constructor() { - /** - * The coRegistrant of this product list. - * @member {module:models/CustomerProductListRegistrant} co_registrant - */ - this.co_registrant = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - /** - * The resource link to the current shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} current_shipping_address_link - */ - this.current_shipping_address_link = undefined - - /** - * The list of customer product list items. - * @member {Array.} customer_product_list_items - */ - this.customer_product_list_items = undefined - - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - - /** - * The event of this product list. - * @member {module:models/ProductListEvent} event - */ - this.event = undefined - - /** - * The id of this product list. - * @member {String} id - */ - this.id = undefined - - /** - * The resource link to the items of this customer product list. - * @member {module:models/CustomerProductListItemLink} items_link - */ - this.items_link = undefined + constructor() { - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The resource link to the post event shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} post_event_shipping_address_link - */ - this.post_event_shipping_address_link = undefined - /** - * The abbreviated shipping address of this product list representing what anonymous user can see. - * @member {module:models/ProductListShippingAddress} product_list_shipping_address - */ - this.product_list_shipping_address = undefined - /** - * Indicates whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The registrant of this product list. - * @member {module:models/CustomerProductListRegistrant} registrant - */ - this.registrant = undefined - /** - * The resource link to the shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} shipping_address_link - */ - this.shipping_address_link = undefined - /** - * The type of the product list. - * @member {module:models/CustomerProductList.TypeEnum} type - */ - this.type = undefined } /** @@ -144,100 +63,194 @@ export default class CustomerProductList { if (data) { obj = obj || new CustomerProductList() + + + + if (data.hasOwnProperty('co_registrant')) { - obj['co_registrant'] = CustomerProductListRegistrant.constructFromObject(data['co_registrant']) + obj.co_registrant = CustomerProductListRegistrant.constructFromObject(data.co_registrant) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('current_shipping_address_link')) { - obj['current_shipping_address_link'] = CustomerAddressLink.constructFromObject(data['current_shipping_address_link']) + obj.current_shipping_address_link = CustomerAddressLink.constructFromObject(data.current_shipping_address_link) } if (data.hasOwnProperty('customer_product_list_items')) { - obj['customer_product_list_items'] = ApiClient.convertToType(data['customer_product_list_items'], [CustomerProductListItem]) + obj.customer_product_list_items = ApiClient.convertToType(data.customer_product_list_items, [CustomerProductListItem]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('event')) { - obj['event'] = ProductListEvent.constructFromObject(data['event']) + obj.event = ProductListEvent.constructFromObject(data.event) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('items_link')) { - obj['items_link'] = CustomerProductListItemLink.constructFromObject(data['items_link']) + obj.items_link = CustomerProductListItemLink.constructFromObject(data.items_link) } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('post_event_shipping_address_link')) { - obj['post_event_shipping_address_link'] = CustomerAddressLink.constructFromObject(data['post_event_shipping_address_link']) + obj.post_event_shipping_address_link = CustomerAddressLink.constructFromObject(data.post_event_shipping_address_link) } if (data.hasOwnProperty('product_list_shipping_address')) { - obj['product_list_shipping_address'] = ProductListShippingAddress.constructFromObject(data['product_list_shipping_address']) + obj.product_list_shipping_address = ProductListShippingAddress.constructFromObject(data.product_list_shipping_address) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('registrant')) { - obj['registrant'] = CustomerProductListRegistrant.constructFromObject(data['registrant']) + obj.registrant = CustomerProductListRegistrant.constructFromObject(data.registrant) } if (data.hasOwnProperty('shipping_address_link')) { - obj['shipping_address_link'] = CustomerAddressLink.constructFromObject(data['shipping_address_link']) + obj.shipping_address_link = CustomerAddressLink.constructFromObject(data.shipping_address_link) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -CustomerProductList.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The coRegistrant of this product list. + * @member {module:models/CustomerProductListRegistrant} co_registrant + */ + co_registrant = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The resource link to the current shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} current_shipping_address_link + */ + current_shipping_address_link = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The list of customer product list items. + * @member {Array.} customer_product_list_items + */ + customer_product_list_items = undefined; + /** + * The description of this product list. + * @member {String} description + */ + description = undefined; + /** + * The event of this product list. + * @member {module:models/ProductListEvent} event + */ + event = undefined; + /** + * The id of this product list. + * @member {String} id + */ + id = undefined; + /** + * The resource link to the items of this customer product list. + * @member {module:models/CustomerProductListItemLink} items_link + */ + items_link = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The name of this product list. + * @member {String} name + */ + name = undefined; + /** + * The resource link to the post event shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} post_event_shipping_address_link + */ + post_event_shipping_address_link = undefined; + /** + * The abbreviated shipping address of this product list representing what anonymous user can see. + * @member {module:models/ProductListShippingAddress} product_list_shipping_address + */ + product_list_shipping_address = undefined; + /** + * Indicates whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The registrant of this product list. + * @member {module:models/CustomerProductListRegistrant} registrant + */ + registrant = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The resource link to the shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} shipping_address_link + */ + shipping_address_link = undefined; + /** + * The type of the product list. + * @member {module:models/CustomerProductList.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + + diff --git a/src/models/CustomerProductListItem.js b/src/models/CustomerProductListItem.js index 9b72721..4f590b3 100644 --- a/src/models/CustomerProductListItem.js +++ b/src/models/CustomerProductListItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' import ProductSimpleLink from './ProductSimpleLink' + + + + /** * The CustomerProductListItem model module. * @module models/CustomerProductListItem -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItem { /** @@ -31,60 +36,16 @@ export default class CustomerProductListItem { * @alias module:models/CustomerProductListItem * @class */ + constructor() { - /** - * The id of this product list item. - * @member {String} id - */ - this.id = undefined - /** - * The priority of the item. - * @member {Number} priority - */ - this.priority = undefined - /** - * The product item - * @member {module:models/Product} product - */ - this.product = undefined - /** - * A link to the product. - * @member {module:models/ProductSimpleLink} product_details_link - */ - this.product_details_link = undefined - /** - * The id of the product. - * @member {String} product_id - */ - this.product_id = undefined - /** - * Is this product list item available for access by other customers? - * @member {Boolean} public - */ - this.public = undefined - /** - * The quantity of products already purchased. - * @member {Number} purchased_quantity - */ - this.purchased_quantity = undefined - /** - * The quantity of this product list item. - * @member {Number} quantity - */ - this.quantity = undefined - /** - * The type of the item. - * @member {module:models/CustomerProductListItem.TypeEnum} type - */ - this.type = undefined } /** @@ -98,55 +59,114 @@ export default class CustomerProductListItem { if (data) { obj = obj || new CustomerProductListItem() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductSimpleLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductSimpleLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('purchased_quantity')) { - obj['purchased_quantity'] = ApiClient.convertToType(data['purchased_quantity'], 'Number') + obj.purchased_quantity = ApiClient.convertToType(data.purchased_quantity, 'Number') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -CustomerProductListItem.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of this product list item. + * @member {String} id + */ + id = undefined; + /** + * The priority of the item. + * @member {Number} priority + */ + priority = undefined; + /** + * The product item + * @member {module:models/Product} product + */ + product = undefined; + /** + * A link to the product. + * @member {module:models/ProductSimpleLink} product_details_link + */ + product_details_link = undefined; + /** + * The id of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * Is this product list item available for access by other customers? + * @member {Boolean} public + */ + public = undefined; + /** + * The quantity of products already purchased. + * @member {Number} purchased_quantity + */ + purchased_quantity = undefined; + /** + * The quantity of this product list item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The type of the item. + * @member {module:models/CustomerProductListItem.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + + diff --git a/src/models/CustomerProductListItemLink.js b/src/models/CustomerProductListItemLink.js index fbb89df..7cc7ecf 100644 --- a/src/models/CustomerProductListItemLink.js +++ b/src/models/CustomerProductListItemLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerProductListItemLink model module. * @module models/CustomerProductListItemLink -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItemLink { /** @@ -29,18 +34,16 @@ export default class CustomerProductListItemLink { * @alias module:models/CustomerProductListItemLink * @class */ + constructor() { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -54,14 +57,38 @@ export default class CustomerProductListItemLink { if (data) { obj = obj || new CustomerProductListItemLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerProductListItemPurchase.js b/src/models/CustomerProductListItemPurchase.js new file mode 100644 index 0000000..1acea03 --- /dev/null +++ b/src/models/CustomerProductListItemPurchase.js @@ -0,0 +1,118 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The CustomerProductListItemPurchase model module. +* @module models/CustomerProductListItemPurchase +* @version 20.4 +*/ +export default class CustomerProductListItemPurchase { + /** + * Constructs a new CustomerProductListItemPurchase. + * Document representing a customer product list item purchase. + * @alias module:models/CustomerProductListItemPurchase + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CustomerProductListItemPurchase from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/CustomerProductListItemPurchase} obj Optional instance to populate. + * @return {module:models/CustomerProductListItemPurchase} The populated CustomerProductListItemPurchase instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerProductListItemPurchase() + + + + + + if (data.hasOwnProperty('id')) { + obj.id = ApiClient.convertToType(data.id, 'String') + } + if (data.hasOwnProperty('order_no')) { + obj.order_no = ApiClient.convertToType(data.order_no, 'String') + } + if (data.hasOwnProperty('product_list_item_id')) { + obj.product_list_item_id = ApiClient.convertToType(data.product_list_item_id, 'String') + } + if (data.hasOwnProperty('purchaser_name')) { + obj.purchaser_name = ApiClient.convertToType(data.purchaser_name, 'String') + } + if (data.hasOwnProperty('quantity')) { + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') + } + } + return obj + } + + /** + * The id of this purchase. + * @member {String} id + */ + id = undefined; + /** + * The order number of this purchase. + * @member {String} order_no + */ + order_no = undefined; + /** + * The id of the product list item this purchase relates to. + * @member {String} product_list_item_id + */ + product_list_item_id = undefined; + /** + * The name of the purchaser. + * @member {String} purchaser_name + */ + purchaser_name = undefined; + /** + * The quantity of this product list item purchased. + * @member {Number} quantity + */ + quantity = undefined; + + + + + + + + +} + + diff --git a/src/models/CustomerProductListItemPurchaseResult.js b/src/models/CustomerProductListItemPurchaseResult.js new file mode 100644 index 0000000..d0885c7 --- /dev/null +++ b/src/models/CustomerProductListItemPurchaseResult.js @@ -0,0 +1,103 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import CustomerProductListItemPurchase from './CustomerProductListItemPurchase' + + + + + +/** +* The CustomerProductListItemPurchaseResult model module. +* @module models/CustomerProductListItemPurchaseResult +* @version 20.4 +*/ +export default class CustomerProductListItemPurchaseResult { + /** + * Constructs a new CustomerProductListItemPurchaseResult. + * Document representing a customer product list purchases result. + * @alias module:models/CustomerProductListItemPurchaseResult + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a CustomerProductListItemPurchaseResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/CustomerProductListItemPurchaseResult} obj Optional instance to populate. + * @return {module:models/CustomerProductListItemPurchaseResult} The populated CustomerProductListItemPurchaseResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CustomerProductListItemPurchaseResult() + + + + + + if (data.hasOwnProperty('count')) { + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('data')) { + obj.data = ApiClient.convertToType(data.data, [CustomerProductListItemPurchase]) + } + if (data.hasOwnProperty('total')) { + obj.total = ApiClient.convertToType(data.total, 'Number') + } + } + return obj + } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The customer product list item purchases. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + +} + + diff --git a/src/models/CustomerProductListItemResult.js b/src/models/CustomerProductListItemResult.js index cb568cb..e43cb92 100644 --- a/src/models/CustomerProductListItemResult.js +++ b/src/models/CustomerProductListItemResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerProductListItem from './CustomerProductListItem' + + + + /** * The CustomerProductListItemResult model module. * @module models/CustomerProductListItemResult -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItemResult { /** @@ -30,40 +35,16 @@ export default class CustomerProductListItemResult { * @alias module:models/CustomerProductListItemResult * @class */ + constructor() { - /** - * @member {Number} count - */ - this.count = undefined - - /** - * The customer product list items. - * @member {Array.} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -77,26 +58,68 @@ export default class CustomerProductListItemResult { if (data) { obj = obj || new CustomerProductListItemResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerProductListItem]) + obj.data = ApiClient.convertToType(data.data, [CustomerProductListItem]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * @member {Number} count + */ + count = undefined; + /** + * The customer product list items. + * @member {Array.} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerProductListRegistrant.js b/src/models/CustomerProductListRegistrant.js index 83b9a89..23fb5d7 100644 --- a/src/models/CustomerProductListRegistrant.js +++ b/src/models/CustomerProductListRegistrant.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerProductListRegistrant model module. * @module models/CustomerProductListRegistrant -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListRegistrant { /** @@ -29,30 +34,16 @@ export default class CustomerProductListRegistrant { * @alias module:models/CustomerProductListRegistrant * @class */ + constructor() { - /** - * The email of the registrant. - * @member {String} email - */ - this.email = undefined - - /** - * The first name of the registrant. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of the registrant. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The role of the registrant. - * @member {String} role - */ - this.role = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class CustomerProductListRegistrant { if (data) { obj = obj || new CustomerProductListRegistrant() + + + + if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String') + obj.role = ApiClient.convertToType(data.role, 'String') } } - return obj } + + /** + * The email of the registrant. + * @member {String} email + */ + email = undefined; + /** + * The first name of the registrant. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of the registrant. + * @member {String} last_name + */ + last_name = undefined; + /** + * The role of the registrant. + * @member {String} role + */ + role = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerProductListResult.js b/src/models/CustomerProductListResult.js index a13eee7..e232048 100644 --- a/src/models/CustomerProductListResult.js +++ b/src/models/CustomerProductListResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerProductList from './CustomerProductList' + + + + /** * The CustomerProductListResult model module. * @module models/CustomerProductListResult -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListResult { /** @@ -30,24 +35,16 @@ export default class CustomerProductListResult { * @alias module:models/CustomerProductListResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The customer product lists. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class CustomerProductListResult { if (data) { obj = obj || new CustomerProductListResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerProductList]) + obj.data = ApiClient.convertToType(data.data, [CustomerProductList]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The customer product lists. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/CustomerRegistration.js b/src/models/CustomerRegistration.js index d98d169..340a5dc 100644 --- a/src/models/CustomerRegistration.js +++ b/src/models/CustomerRegistration.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Customer from './Customer' + + + + /** * The CustomerRegistration model module. * @module models/CustomerRegistration -* @version 17.8 +* @version 20.4 */ export default class CustomerRegistration { /** @@ -31,18 +36,16 @@ export default class CustomerRegistration { * @class * @param customer {module:models/Customer} The customer registration information. The mandatory properties for registration are login, last name and email. */ + constructor(customer) { - /** - * The customer registration information. The mandatory properties for registration are login, last name and email. - * @member {module:models/Customer} customer - */ + + + + + this.customer = customer - /** - * The password to authorize. - * @member {String} password - */ - this.password = undefined + } /** @@ -56,14 +59,38 @@ export default class CustomerRegistration { if (data) { obj = obj || new CustomerRegistration() + + + + if (data.hasOwnProperty('customer')) { - obj['customer'] = Customer.constructFromObject(data['customer']) + obj.customer = Customer.constructFromObject(data.customer) } if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String') + obj.password = ApiClient.convertToType(data.password, 'String') } } - return obj } + + /** + * The customer registration information. The mandatory properties for registration are login, last name and email. + * @member {module:models/Customer} customer + */ + customer = undefined; + /** + * The password to authorize. + * @member {String} password + */ + password = undefined; + + + + + + + + } + + diff --git a/src/models/Discount.js b/src/models/Discount.js index c749795..d0c27b6 100644 --- a/src/models/Discount.js +++ b/src/models/Discount.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Discount model module. * @module models/Discount -* @version 17.8 +* @version 20.4 */ export default class Discount { /** @@ -30,30 +35,16 @@ export default class Discount { * @class * @param type {module:models/Discount.TypeEnum} The type of discount. */ + constructor(type) { - /** - * The amount that is used with the amount and fixed price types. - * @member {Number} amount - */ - this.amount = undefined - /** - * The percentage that is used with percentage types. - * @member {Number} percentage - */ - this.percentage = undefined - /** - * The price book id that is used with some types. - * @member {String} price_book_id - */ - this.price_book_id = undefined - /** - * The type of discount. - * @member {module:models/Discount.TypeEnum} type - */ + + this.type = type + + } /** @@ -67,81 +58,116 @@ export default class Discount { if (data) { obj = obj || new Discount() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('percentage')) { - obj['percentage'] = ApiClient.convertToType(data['percentage'], 'Number') + obj.percentage = ApiClient.convertToType(data.percentage, 'Number') } if (data.hasOwnProperty('price_book_id')) { - obj['price_book_id'] = ApiClient.convertToType(data['price_book_id'], 'String') + obj.price_book_id = ApiClient.convertToType(data.price_book_id, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -Discount.TypeEnum = { /** - * value: "percentage" - * @const - */ - percentage: 'percentage', - + * The amount that is used with the amount and fixed price types. + * @member {Number} amount + */ + amount = undefined; /** - * value: "fixed_price" - * @const - */ - fixed_price: 'fixed_price', - + * The percentage that is used with percentage types. + * @member {Number} percentage + */ + percentage = undefined; /** - * value: "amount" - * @const - */ - amount: 'amount', - + * The price book id that is used with some types. + * @member {String} price_book_id + */ + price_book_id = undefined; /** - * value: "free" - * @const - */ - free: 'free', + * The type of discount. + * @member {module:models/Discount.TypeEnum} type + */ + type = undefined; + - /** - * value: "price_book_price" - * @const - */ - price_book_price: 'price_book_price', - /** - * value: "bonus" - * @const - */ - bonus: 'bonus', - /** - * value: "total_fixed_price" - * @const - */ - total_fixed_price: 'total_fixed_price', - /** - * value: "bonus_choice" - * @const - */ - bonus_choice: 'bonus_choice', /** - * value: "percentage_off_options" - * @const - */ - percentage_off_options: 'percentage_off_options' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "percentage" + * @const + */ + percentage: 'percentage', + + /** + * value: "fixed_price" + * @const + */ + fixed_price: 'fixed_price', + + /** + * value: "amount" + * @const + */ + amount: 'amount', + + /** + * value: "free" + * @const + */ + free: 'free', + + /** + * value: "price_book_price" + * @const + */ + price_book_price: 'price_book_price', + + /** + * value: "bonus" + * @const + */ + bonus: 'bonus', + + /** + * value: "total_fixed_price" + * @const + */ + total_fixed_price: 'total_fixed_price', + + /** + * value: "bonus_choice" + * @const + */ + bonus_choice: 'bonus_choice', + + /** + * value: "percentage_off_options" + * @const + */ + percentage_off_options: 'percentage_off_options' + }; + + + } + + diff --git a/src/models/DiscountRequest.js b/src/models/DiscountRequest.js new file mode 100644 index 0000000..3209420 --- /dev/null +++ b/src/models/DiscountRequest.js @@ -0,0 +1,122 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The DiscountRequest model module. +* @module models/DiscountRequest +* @version 20.4 +*/ +export default class DiscountRequest { + /** + * Constructs a new DiscountRequest. + * Document representing a discount to be applied to a custom price adjustment. The properties + * @alias module:models/DiscountRequest + * @class + * @param type {module:models/DiscountRequest.TypeEnum} The type of discount. + * @param value {Number} The amount of the discount. + */ + + constructor(type, value) { + + + + + + this.type = type; this.value = value + + + } + + /** + * Constructs a DiscountRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/DiscountRequest} obj Optional instance to populate. + * @return {module:models/DiscountRequest} The populated DiscountRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DiscountRequest() + + + + + + if (data.hasOwnProperty('type')) { + obj.type = ApiClient.convertToType(data.type, 'String') + } + if (data.hasOwnProperty('value')) { + obj.value = ApiClient.convertToType(data.value, 'Number') + } + } + return obj + } + + /** + * The type of discount. + * @member {module:models/DiscountRequest.TypeEnum} type + */ + type = undefined; + /** + * The amount of the discount. + * @member {Number} value + */ + value = undefined; + + + + + + + /** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "percentage" + * @const + */ + percentage: 'percentage', + + /** + * value: "fixed_price" + * @const + */ + fixed_price: 'fixed_price', + + /** + * value: "amount" + * @const + */ + amount: 'amount' + }; + + + +} + + diff --git a/src/models/Fault.js b/src/models/Fault.js index 07001ac..d558078 100644 --- a/src/models/Fault.js +++ b/src/models/Fault.js @@ -7,7 +7,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -20,7 +20,7 @@ import ApiClient from '../ApiClient' /** * The Fault model module. * @module models/Fault -* @version 17.8 +* @version 20.4 */ export default class Fault { /** diff --git a/src/models/Filter.js b/src/models/Filter.js index 435c564..d878a37 100644 --- a/src/models/Filter.js +++ b/src/models/Filter.js @@ -7,7 +7,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -20,7 +20,7 @@ import ApiClient from '../ApiClient' /** * The Filter model module. * @module models/Filter -* @version 17.8 +* @version 20.4 */ export default class Filter { /** diff --git a/src/models/FilteredQuery.js b/src/models/FilteredQuery.js index 7560a31..74fa7ab 100644 --- a/src/models/FilteredQuery.js +++ b/src/models/FilteredQuery.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,19 @@ * Do not edit the class manually. * */ -// import ApiClient from '../ApiClient' + + import Filter from './Filter' import Query from './Query' + + + + /** * The FilteredQuery model module. * @module models/FilteredQuery -* @version 17.8 +* @version 20.4 */ export default class FilteredQuery { /** @@ -35,17 +39,14 @@ export default class FilteredQuery { */ constructor(filter, query) { - /** - * The (possibly complex) filter object. - * @member {module:models/Filter} filter - */ - this.filter = filter - - /** - * The query object. - * @member {module:models/Query} query - */ - this.query = query + + + + + + this.filter = filter; this.query = query + + } /** @@ -59,13 +60,36 @@ export default class FilteredQuery { if (data) { obj = obj || new FilteredQuery() + + + + if (data.hasOwnProperty('filter')) { - obj['filter'] = Filter.constructFromObject(data['filter']) + obj.filter = Filter.constructFromObject(data.filter) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } } return obj } + + /** + * The (possibly complex) filter object. + * @member {module:models/Filter} filter + */ + filter = undefined; + /** + * The query object. + * @member {module:models/Query} query + */ + query = undefined; + + + + + + + + } diff --git a/src/models/GiftCertificate.js b/src/models/GiftCertificate.js index f73ed85..cee05ed 100644 --- a/src/models/GiftCertificate.js +++ b/src/models/GiftCertificate.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation *//** - +/** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificate model module. * @module models/GiftCertificate -* @version 17.8 +* @version 20.4 */ export default class GiftCertificate { /** @@ -29,72 +34,16 @@ export default class GiftCertificate { * @alias module:models/GiftCertificate * @class */ - constructor() { - /** - * The gift certificate original amount. - * @member {Number} amount - */ - this.amount = undefined - /** - * The gift certificate balance. - * @member {Number} balance - */ - this.balance = undefined + constructor() { - /** - * The gift certificate description. - * @member {String} description - */ - this.description = undefined - /** - * Is the gift certificate is enabled? - * @member {Boolean} enabled - */ - this.enabled = undefined - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The merchant ID. - * @member {String} merchant_id - */ - this.merchant_id = undefined - /** - * The message. - * @member {String} message - */ - this.message = undefined - /** - * The recipient email. - * @member {String} recipient_email - */ - this.recipient_email = undefined - /** - * The recipient name. - * @member {String} recipient_name - */ - this.recipient_name = undefined - /** - * The sender name. - * @member {String} sender_name - */ - this.sender_name = undefined - /** - * The gift certificate status. - * @member {module:models/GiftCertificate.StatusEnum} status - */ - this.status = undefined } /** @@ -108,73 +57,142 @@ export default class GiftCertificate { if (data) { obj = obj || new GiftCertificate() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('balance')) { - obj['balance'] = ApiClient.convertToType(data['balance'], 'Number') + obj.balance = ApiClient.convertToType(data.balance, 'Number') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean') + obj.enabled = ApiClient.convertToType(data.enabled, 'Boolean') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('merchant_id')) { - obj['merchant_id'] = ApiClient.convertToType(data['merchant_id'], 'String') + obj.merchant_id = ApiClient.convertToType(data.merchant_id, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('recipient_email')) { - obj['recipient_email'] = ApiClient.convertToType(data['recipient_email'], 'String') + obj.recipient_email = ApiClient.convertToType(data.recipient_email, 'String') } if (data.hasOwnProperty('recipient_name')) { - obj['recipient_name'] = ApiClient.convertToType(data['recipient_name'], 'String') + obj.recipient_name = ApiClient.convertToType(data.recipient_name, 'String') } if (data.hasOwnProperty('sender_name')) { - obj['sender_name'] = ApiClient.convertToType(data['sender_name'], 'String') + obj.sender_name = ApiClient.convertToType(data.sender_name, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } } - return obj } -} - -/** -* Allowed values for the status property. -* @enum {String} -* @readonly -*/ -GiftCertificate.StatusEnum = { /** - * value: "pending" - * @const - */ - pending: 'pending', - + * The gift certificate original amount. + * @member {Number} amount + */ + amount = undefined; /** - * value: "issued" - * @const - */ - issued: 'issued', - + * The gift certificate balance. + * @member {Number} balance + */ + balance = undefined; /** - * value: "partially_redeemed" - * @const - */ - partially_redeemed: 'partially_redeemed', + * The gift certificate description. + * @member {String} description + */ + description = undefined; + /** + * Is the gift certificate is enabled? + * @member {Boolean} enabled + */ + enabled = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The merchant ID. + * @member {String} merchant_id + */ + merchant_id = undefined; + /** + * The message. + * @member {String} message + */ + message = undefined; + /** + * The recipient email. + * @member {String} recipient_email + */ + recipient_email = undefined; + /** + * The recipient name. + * @member {String} recipient_name + */ + recipient_name = undefined; + /** + * The sender name. + * @member {String} sender_name + */ + sender_name = undefined; + /** + * The gift certificate status. + * @member {module:models/GiftCertificate.StatusEnum} status + */ + status = undefined; + + + + + /** - * value: "redeemed" - * @const - */ - redeemed: 'redeemed' + * Allowed values for the status property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "pending" + * @const + */ + pending: 'pending', + + /** + * value: "issued" + * @const + */ + issued: 'issued', + + /** + * value: "partially_redeemed" + * @const + */ + partially_redeemed: 'partially_redeemed', + + /** + * value: "redeemed" + * @const + */ + redeemed: 'redeemed' + }; + + + } + + diff --git a/src/models/GiftCertificateItem.js b/src/models/GiftCertificateItem.js index 1d88a01..78cf06f 100644 --- a/src/models/GiftCertificateItem.js +++ b/src/models/GiftCertificateItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificateItem model module. * @module models/GiftCertificateItem -* @version 17.8 +* @version 20.4 */ export default class GiftCertificateItem { /** @@ -31,48 +36,16 @@ export default class GiftCertificateItem { * @param amount {Number} The certificate item amount. * @param recipientEmail {String} The recipient's email. */ + constructor(amount, recipientEmail) { - /** - * The certificate item amount. - * @member {Number} amount - */ - this.amount = amount - - /** - * Id used to identify this item - * @member {String} gift_certificate_item_id - */ - this.gift_certificate_item_id = undefined - - /** - * The certificate's message. - * @member {String} message - */ - this.message = undefined - - /** - * The recipient's email. - * @member {String} recipient_email - */ - this.recipient_email = recipientEmail - - /** - * The recipient's name. - * @member {String} recipient_name - */ - this.recipient_name = undefined - - /** - * The sender's name. - * @member {String} sender_name - */ - this.sender_name = undefined - - /** - * The shipment id. - * @member {String} shipment_id - */ - this.shipment_id = undefined + + + + + + this.amount = amount; this.recipient_email = recipientEmail + + } /** @@ -86,29 +59,78 @@ export default class GiftCertificateItem { if (data) { obj = obj || new GiftCertificateItem() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('gift_certificate_item_id')) { - obj['gift_certificate_item_id'] = ApiClient.convertToType(data['gift_certificate_item_id'], 'String') + obj.gift_certificate_item_id = ApiClient.convertToType(data.gift_certificate_item_id, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('recipient_email')) { - obj['recipient_email'] = ApiClient.convertToType(data['recipient_email'], 'String') + obj.recipient_email = ApiClient.convertToType(data.recipient_email, 'String') } if (data.hasOwnProperty('recipient_name')) { - obj['recipient_name'] = ApiClient.convertToType(data['recipient_name'], 'String') + obj.recipient_name = ApiClient.convertToType(data.recipient_name, 'String') } if (data.hasOwnProperty('sender_name')) { - obj['sender_name'] = ApiClient.convertToType(data['sender_name'], 'String') + obj.sender_name = ApiClient.convertToType(data.sender_name, 'String') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } } - return obj } + + /** + * The certificate item amount. + * @member {Number} amount + */ + amount = undefined; + /** + * Id used to identify this item + * @member {String} gift_certificate_item_id + */ + gift_certificate_item_id = undefined; + /** + * The certificate's message. + * @member {String} message + */ + message = undefined; + /** + * The recipient's email. + * @member {String} recipient_email + */ + recipient_email = undefined; + /** + * The recipient's name. + * @member {String} recipient_name + */ + recipient_name = undefined; + /** + * The sender's name. + * @member {String} sender_name + */ + sender_name = undefined; + /** + * The shipment id. + * @member {String} shipment_id + */ + shipment_id = undefined; + + + + + + + + } + + diff --git a/src/models/GiftCertificateRequest.js b/src/models/GiftCertificateRequest.js index 5108bf8..f728a46 100644 --- a/src/models/GiftCertificateRequest.js +++ b/src/models/GiftCertificateRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificateRequest model module. * @module models/GiftCertificateRequest -* @version 17.8 +* @version 20.4 */ export default class GiftCertificateRequest { /** @@ -29,12 +34,16 @@ export default class GiftCertificateRequest { * @alias module:models/GiftCertificateRequest * @class */ + constructor() { - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined + + + + + + + + } /** @@ -48,11 +57,30 @@ export default class GiftCertificateRequest { if (data) { obj = obj || new GiftCertificateRequest() + + + + if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } } - return obj } + + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + + + + + + + + } + + diff --git a/src/models/Image.js b/src/models/Image.js index d504715..20ad5f0 100644 --- a/src/models/Image.js +++ b/src/models/Image.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Image model module. * @module models/Image -* @version 17.8 +* @version 20.4 */ export default class Image { /** @@ -29,26 +34,16 @@ export default class Image { * @class * @param link {String} */ + constructor(link) { - /** - * @member {String} alt - */ - this.alt = undefined - - /** - * @member {String} dis_base_link - */ - this.dis_base_link = undefined - - /** - * @member {String} link - */ + + + + + this.link = link - /** - * @member {String} title - */ - this.title = undefined + } /** @@ -62,20 +57,50 @@ export default class Image { if (data) { obj = obj || new Image() + + + + if (data.hasOwnProperty('alt')) { - obj['alt'] = ApiClient.convertToType(data['alt'], 'String') + obj.alt = ApiClient.convertToType(data.alt, 'String') } if (data.hasOwnProperty('dis_base_link')) { - obj['dis_base_link'] = ApiClient.convertToType(data['dis_base_link'], 'String') + obj.dis_base_link = ApiClient.convertToType(data.dis_base_link, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * @member {String} alt + */ + alt = undefined; + /** + * @member {String} dis_base_link + */ + dis_base_link = undefined; + /** + * @member {String} link + */ + link = undefined; + /** + * @member {String} title + */ + title = undefined; + + + + + + + + } + + diff --git a/src/models/ImageGroup.js b/src/models/ImageGroup.js index d2c0552..991c7cc 100644 --- a/src/models/ImageGroup.js +++ b/src/models/ImageGroup.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' import VariationAttribute from './VariationAttribute' + + + + /** * The ImageGroup model module. * @module models/ImageGroup -* @version 17.8 +* @version 20.4 */ export default class ImageGroup { /** @@ -31,24 +36,16 @@ export default class ImageGroup { * @alias module:models/ImageGroup * @class */ + constructor() { - /** - * The images of the image group. - * @member {Array.} images - */ - this.images = undefined - - /** - * Returns a list of variation attributes applying to this image group. - * @member {Array.} variation_attributes - */ - this.variation_attributes = undefined - - /** - * The image view type. - * @member {String} view_type - */ - this.view_type = undefined + + + + + + + + } /** @@ -62,17 +59,46 @@ export default class ImageGroup { if (data) { obj = obj || new ImageGroup() + + + + if (data.hasOwnProperty('images')) { - obj['images'] = ApiClient.convertToType(data['images'], [Image]) + obj.images = ApiClient.convertToType(data.images, [Image]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } if (data.hasOwnProperty('view_type')) { - obj['view_type'] = ApiClient.convertToType(data['view_type'], 'String') + obj.view_type = ApiClient.convertToType(data.view_type, 'String') } } - return obj } + + /** + * The images of the image group. + * @member {Array.} images + */ + images = undefined; + /** + * Returns a list of variation attributes applying to this image group. + * @member {Array.} variation_attributes + */ + variation_attributes = undefined; + /** + * The image view type. + * @member {String} view_type + */ + view_type = undefined; + + + + + + + + } + + diff --git a/src/models/Inventory.js b/src/models/Inventory.js index f7099dc..bc30db4 100644 --- a/src/models/Inventory.js +++ b/src/models/Inventory.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Inventory model module. * @module models/Inventory -* @version 17.8 +* @version 20.4 */ export default class Inventory { /** @@ -30,48 +35,16 @@ export default class Inventory { * @class * @param id {String} The inventory id. */ + constructor(id) { - /** - * The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.ats.max_threshold'. - * @member {Number} ats - */ - this.ats = undefined - - /** - * A flag indicating whether the product is back orderable. - * @member {Boolean} backorderable - */ - this.backorderable = undefined - - /** - * The inventory id. - * @member {String} id - */ + + + + + this.id = id - /** - * A flag indicating the date when the product will be in stock. - * @member {Date} in_stock_date - */ - this.in_stock_date = undefined - - /** - * A flag indicating whether at least one of products is available to sell. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * A flag indicating whether the product is pre orderable. - * @member {Boolean} preorderable - */ - this.preorderable = undefined - - /** - * The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.stock_level.max_threshold'. - * @member {Number} stock_level - */ - this.stock_level = undefined + } /** @@ -85,29 +58,78 @@ export default class Inventory { if (data) { obj = obj || new Inventory() + + + + if (data.hasOwnProperty('ats')) { - obj['ats'] = ApiClient.convertToType(data['ats'], 'Number') + obj.ats = ApiClient.convertToType(data.ats, 'Number') } if (data.hasOwnProperty('backorderable')) { - obj['backorderable'] = ApiClient.convertToType(data['backorderable'], 'Boolean') + obj.backorderable = ApiClient.convertToType(data.backorderable, 'Boolean') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('in_stock_date')) { - obj['in_stock_date'] = ApiClient.convertToType(data['in_stock_date'], 'Date') + obj.in_stock_date = ApiClient.convertToType(data.in_stock_date, 'Date') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('preorderable')) { - obj['preorderable'] = ApiClient.convertToType(data['preorderable'], 'Boolean') + obj.preorderable = ApiClient.convertToType(data.preorderable, 'Boolean') } if (data.hasOwnProperty('stock_level')) { - obj['stock_level'] = ApiClient.convertToType(data['stock_level'], 'Number') + obj.stock_level = ApiClient.convertToType(data.stock_level, 'Number') } } - return obj } + + /** + * The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.ats.max_threshold'. + * @member {Number} ats + */ + ats = undefined; + /** + * A flag indicating whether the product is back orderable. + * @member {Boolean} backorderable + */ + backorderable = undefined; + /** + * The inventory id. + * @member {String} id + */ + id = undefined; + /** + * A flag indicating the date when the product will be in stock. + * @member {Date} in_stock_date + */ + in_stock_date = undefined; + /** + * A flag indicating whether at least one of products is available to sell. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * A flag indicating whether the product is pre orderable. + * @member {Boolean} preorderable + */ + preorderable = undefined; + /** + * The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.stock_level.max_threshold'. + * @member {Number} stock_level + */ + stock_level = undefined; + + + + + + + + } + + diff --git a/src/models/Locale.js b/src/models/Locale.js index e85b864..f16178a 100644 --- a/src/models/Locale.js +++ b/src/models/Locale.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation *//** - +/** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Locale model module. * @module models/Locale -* @version 17.8 +* @version 20.4 */ export default class Locale { /** @@ -29,75 +34,16 @@ export default class Locale { * @alias module:models/Locale * @class */ + constructor() { - /** - * The country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code. - * @member {String} country - */ - this.country = undefined - - /** - * Flag that is true if the locale is the default one to use if an explicit locale is not specified. - * @member {Boolean} default - */ - this.default = undefined - - /** - * The name for the Locale's country that is appropriate for display to the user, or an empty - * string if no country has been specified for the Locale. The display country is returned - * in the language defined for this locale, and not in the language of the session locale. - * @member {String} display_country - */ - this.display_country = undefined - - /** - * The name for the Locale's language that is appropriate for display to the user, or an - * empty string if no language has been specified for the Locale. The display language is - * returned in the language defined for this locale, and not in the language of the session locale. - * @member {String} display_language - */ - this.display_language = undefined - - /** - * The name for the Locale that is appropriate for display to the user, or an empty string if - * no display name has been specified for the Locale. The display name is returned in the - * language defined for this locale, and not in the language of the session locale. - * @member {String} display_name - */ - this.display_name = undefined - - /** - * The identifier of the Locale. Contains a combination of the language and the country key, - * concatenated by \"-\", e.g. \"en-US\". This attribute is the primary key of the class. - * @member {String} id - */ - this.id = undefined - - /** - * The three-letter abbreviation for this Locale's country, or an empty string if no country - * has been specified for the Locale. - * @member {String} iso3_country - */ - this.iso3_country = undefined - - /** - * The three-letter abbreviation for this Locale's language, or an empty string if no - * language has been specified for the Locale. - * @member {String} iso3_language - */ - this.iso3_language = undefined - - /** - * The language code for this Locale, which will either be the empty string or a lowercase ISO 639 code. - * @member {String} language - */ - this.language = undefined - - /** - * The display name of the Locale. This uses the current request locale to localize the value. - * @member {String} name - */ - this.name = undefined + + + + + + + + } /** @@ -111,38 +57,102 @@ export default class Locale { if (data) { obj = obj || new Locale() + + + + if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String') + obj.country = ApiClient.convertToType(data.country, 'String') } if (data.hasOwnProperty('default')) { - obj['default'] = ApiClient.convertToType(data['default'], 'Boolean') + obj.default = ApiClient.convertToType(data.default, 'Boolean') } if (data.hasOwnProperty('display_country')) { - obj['display_country'] = ApiClient.convertToType(data['display_country'], 'String') + obj.display_country = ApiClient.convertToType(data.display_country, 'String') } if (data.hasOwnProperty('display_language')) { - obj['display_language'] = ApiClient.convertToType(data['display_language'], 'String') + obj.display_language = ApiClient.convertToType(data.display_language, 'String') } if (data.hasOwnProperty('display_name')) { - obj['display_name'] = ApiClient.convertToType(data['display_name'], 'String') + obj.display_name = ApiClient.convertToType(data.display_name, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('iso3_country')) { - obj['iso3_country'] = ApiClient.convertToType(data['iso3_country'], 'String') + obj.iso3_country = ApiClient.convertToType(data.iso3_country, 'String') } if (data.hasOwnProperty('iso3_language')) { - obj['iso3_language'] = ApiClient.convertToType(data['iso3_language'], 'String') + obj.iso3_language = ApiClient.convertToType(data.iso3_language, 'String') } if (data.hasOwnProperty('language')) { - obj['language'] = ApiClient.convertToType(data['language'], 'String') + obj.language = ApiClient.convertToType(data.language, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } } - return obj } + + /** + * The country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code. + * @member {String} country + */ + country = undefined; + /** + * Flag that is true if the locale is the default one to use if an explicit locale is not specified. + * @member {Boolean} default + */ + default = undefined; + /** + * The name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale. The display country is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_country + */ + display_country = undefined; + /** + * The name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale. The display language is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_language + */ + display_language = undefined; + /** + * The name for the Locale that is appropriate for display to the user, or an empty string if no display name has been specified for the Locale. The display name is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_name + */ + display_name = undefined; + /** + * The identifier of the Locale. Contains a combination of the language and the country key, concatenated by \"-\", e.g. \"en-US\". This attribute is the primary key of the class. + * @member {String} id + */ + id = undefined; + /** + * The three-letter abbreviation for this Locale's country, or an empty string if no country has been specified for the Locale. + * @member {String} iso3_country + */ + iso3_country = undefined; + /** + * The three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale. + * @member {String} iso3_language + */ + iso3_language = undefined; + /** + * The language code for this Locale, which will either be the empty string or a lowercase ISO 639 code. + * @member {String} language + */ + language = undefined; + /** + * The display name of the Locale. This uses the current request locale to localize the value. + * @member {String} name + */ + name = undefined; + + + + + + + + } + + diff --git a/src/models/Master.js b/src/models/Master.js index 7b5b766..505c8b2 100644 --- a/src/models/Master.js +++ b/src/models/Master.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Master model module. * @module models/Master -* @version 17.8 +* @version 20.4 */ export default class Master { /** @@ -30,36 +35,16 @@ export default class Master { * @param link {String} * @param masterId {String} */ + constructor(link, masterId) { - /** - * @member {String} link - */ - this.link = link - - /** - * @member {String} master_id - */ - this.master_id = masterId - - /** - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * @member {Number} price - */ - this.price = undefined - - /** - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * @member {Object.} prices - */ - this.prices = undefined + + + + + + this.link = link; this.master_id = masterId + + } /** @@ -73,26 +58,64 @@ export default class Master { if (data) { obj = obj || new Master() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('master_id')) { - obj['master_id'] = ApiClient.convertToType(data['master_id'], 'String') + obj.master_id = ApiClient.convertToType(data.master_id, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } } - return obj } + + /** + * @member {String} link + */ + link = undefined; + /** + * @member {String} master_id + */ + master_id = undefined; + /** + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * @member {Number} price + */ + price = undefined; + /** + * @member {Number} price_max + */ + price_max = undefined; + /** + * @member {Object.} prices + */ + prices = undefined; + + + + + + + + } + + diff --git a/src/models/NestedQuery.js b/src/models/NestedQuery.js index 269d016..291e070 100644 --- a/src/models/NestedQuery.js +++ b/src/models/NestedQuery.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,43 +14,39 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' + + + + /** * The NestedQuery model module. * @module models/NestedQuery -* @version 17.8 +* @version 20.4 */ export default class NestedQuery { /** * Constructs a new NestedQuery. - * Nested query allows to query upon nested documents that are part of a larger document. The classical - * example is a product master with variants (in one big document) where you want to constraint a search - * to masters that have variants that match multiple constraints (like color = blue AND size = M). + * A nested query queries nested documents that are part of a larger document. The classical example is a product master with variants (in one big document) where you want to constrain a search to masters that have variants that match multiple constraints (like color = blue AND size = M). This query is not compatible with some search types. * @alias module:models/NestedQuery * @class * @param path {String} * @param query {module:models/Query} */ + constructor(path, query) { - /** - * - * @member {String} path - */ - this.path = path - /** - * - * @member {module:models/Query} query - */ - this.query = query - /** - * - * @member {module:models/NestedQuery.ScoreModeEnum} score_mode - */ - this.score_mode = undefined + + + + this.path = path; this.query = query + + } /** @@ -65,49 +60,78 @@ export default class NestedQuery { if (data) { obj = obj || new NestedQuery() + + + + if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String') + obj.path = ApiClient.convertToType(data.path, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('score_mode')) { - obj['score_mode'] = ApiClient.convertToType(data['score_mode'], 'String') + obj.score_mode = ApiClient.convertToType(data.score_mode, 'String') } } - return obj } -} - -/** -* Allowed values for the score_mode property. -* @enum {String} -* @readonly -*/ -NestedQuery.ScoreModeEnum = { /** - * value: "avg" - * @const - */ - avg: 'avg', - + * + * @member {String} path + */ + path = undefined; /** - * value: "total" - * @const - */ - total: 'total', - + * + * @member {module:models/Query} query + */ + query = undefined; /** - * value: "max" - * @const - */ - max: 'max', + * + * @member {module:models/NestedQuery.ScoreModeEnum} score_mode + */ + score_mode = undefined; + + + + + /** - * value: "none" - * @const - */ - none: 'none' + * Allowed values for the score_mode property. + * @enum {String} + * @readonly + */ + static ScoreModeEnum = { + + /** + * value: "avg" + * @const + */ + avg: 'avg', + + /** + * value: "total" + * @const + */ + total: 'total', + + /** + * value: "max" + * @const + */ + max: 'max', + + /** + * value: "none" + * @const + */ + none: 'none' + }; + + + } + + diff --git a/src/models/Note.js b/src/models/Note.js index 6629df7..7e607ae 100644 --- a/src/models/Note.js +++ b/src/models/Note.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Note model module. * @module models/Note -* @version 17.8 +* @version 20.4 */ export default class Note { /** @@ -29,36 +34,16 @@ export default class Note { * @alias module:models/Note * @class */ + constructor() { - /** - * The author of the note. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * The creation date of the note. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ID of the note. - * @member {String} id - */ - this.id = undefined - - /** - * The note's subject. - * @member {String} subject - */ - this.subject = undefined - - /** - * The note's text. - * @member {String} text - */ - this.text = undefined + + + + + + + + } /** @@ -72,23 +57,62 @@ export default class Note { if (data) { obj = obj || new Note() + + + + if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String') + obj.subject = ApiClient.convertToType(data.subject, 'String') } if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'String') + obj.text = ApiClient.convertToType(data.text, 'String') } } - return obj } + + /** + * The author of the note. + * @member {String} created_by + */ + created_by = undefined; + /** + * The creation date of the note. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The ID of the note. + * @member {String} id + */ + id = undefined; + /** + * The note's subject. + * @member {String} subject + */ + subject = undefined; + /** + * The note's text. + * @member {String} text + */ + text = undefined; + + + + + + + + } + + diff --git a/src/models/NotesResult.js b/src/models/NotesResult.js index 8b84bed..6799272 100644 --- a/src/models/NotesResult.js +++ b/src/models/NotesResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Note from './Note' + + + + /** * The NotesResult model module. * @module models/NotesResult -* @version 17.8 +* @version 20.4 */ export default class NotesResult { /** @@ -30,12 +35,16 @@ export default class NotesResult { * @alias module:models/NotesResult * @class */ + constructor() { - /** - * The notes for an object. - * @member {Array.} notes - */ - this.notes = undefined + + + + + + + + } /** @@ -49,11 +58,30 @@ export default class NotesResult { if (data) { obj = obj || new NotesResult() + + + + if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], [Note]) + obj.notes = ApiClient.convertToType(data.notes, [Note]) } } - return obj } + + /** + * The notes for an object. + * @member {Array.} notes + */ + notes = undefined; + + + + + + + + } + + diff --git a/src/models/Option.js b/src/models/Option.js index e93aba6..4b60ef3 100644 --- a/src/models/Option.js +++ b/src/models/Option.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OptionValue from './OptionValue' + + + + /** * The Option model module. * @module models/Option -* @version 17.8 +* @version 20.4 */ export default class Option { /** @@ -31,36 +36,16 @@ export default class Option { * @class * @param id {String} The id of the option. */ + constructor(id) { - /** - * The localized description of the option. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the option. - * @member {String} id - */ + + + + + this.id = id - /** - * The URL to the option image. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the option. - * @member {String} name - */ - this.name = undefined - - /** - * The array of option values. This array can be empty. - * @member {Array.} values - */ - this.values = undefined + } /** @@ -75,23 +60,61 @@ export default class Option { obj = obj || new Option() + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [OptionValue]) + obj.values = ApiClient.convertToType(data.values, [OptionValue]) } } - return obj } + + /** + * The localized description of the option. + * @member {String} description + */ + description = undefined; + /** + * The id of the option. + * @member {String} id + */ + id = undefined; + /** + * The URL to the option image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the option. + * @member {String} name + */ + name = undefined; + /** + * The array of option values. This array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } + + diff --git a/src/models/OptionItem.js b/src/models/OptionItem.js index b0d255a..ce32420 100644 --- a/src/models/OptionItem.js +++ b/src/models/OptionItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,15 +14,21 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustment from './PriceAdjustment' import ProductItem from './ProductItem' import ProductListItemReference from './ProductListItemReference' + + + + /** * The OptionItem model module. * @module models/OptionItem -* @version 17.8 +* @version 20.4 */ export default class OptionItem { /** @@ -36,181 +41,14 @@ export default class OptionItem { */ constructor(optionId, optionValueId) { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before - * applying adjustments, in the purchase currency. The base price may be - * net or gross of tax depending on the configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - - /** - * The id of the bonus discount line item this bonus product relates to. - * @member {String} bonus_discount_line_item_id - */ - this.bonus_discount_line_item_id = undefined - - /** - * A flag indicating whether the product item is a bonus. - * @member {Boolean} bonus_product_line_item - */ - this.bonus_product_line_item = undefined - - /** - * The array of bundled product items. Can be empty. - * @member {Array.} bundled_product_items - */ - this.bundled_product_items = undefined - - /** - * Returns true if the item is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The inventory list id associated with this item. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The item identifier. Use this to identify an item when updating the item - * quantity or creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The id of the option. - * @member {String} option_id - */ - this.option_id = optionId - - /** - * The array of option items. This array can be empty. - * @member {Array.} option_items - */ - this.option_items = undefined - - /** - * The id of the option value. - * @member {String} option_value_id - */ - this.option_value_id = optionValueId - - /** - * The price of the line item before applying any adjustments. If the line - * item is based on net pricing then the net price is returned. If the - * line item is based on gross pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.} price_adjustments - */ - this.price_adjustments = undefined - - /** - * The price of the product line item after applying all product-level - * adjustments. For net pricing the adjusted net price is returned. For - * gross pricing, the adjusted gross price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined - - /** - * The price of this product line item after considering all dependent - * price adjustments and prorating all order-level price adjustments. For - * net pricing the net price is returned. For gross pricing, the gross price - * is returned. - * @member {Number} price_after_order_discount - */ - this.price_after_order_discount = undefined - - /** - * - * @member {String} product_id - */ - this.product_id = undefined - - /** - * - * @member {module:models/ProductListItemReference} product_list_item - */ - this.product_list_item = undefined - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - /** - * The quantity of the products represented by this item. - * @member {Number} quantity - */ - this.quantity = undefined - /** - * The id of the shipment which includes the product item. - * @member {String} shipment_id - */ - this.shipment_id = undefined - /** - * The reference to the related shipping item if it exists. This is the - * case if for example when a surcharge is defined for individual products - * using a particular a shipping method. - * @member {String} shipping_item_id - */ - this.shipping_item_id = undefined - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined + this.option_id = optionId; this.option_value_id = optionValueId - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - /** - * The tax class ID for the product item or null if no tax class ID is - * associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product - * represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined } /** @@ -224,89 +62,236 @@ export default class OptionItem { if (data) { obj = obj || new OptionItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('bonus_discount_line_item_id')) { - obj['bonus_discount_line_item_id'] = ApiClient.convertToType(data['bonus_discount_line_item_id'], 'String') + obj.bonus_discount_line_item_id = ApiClient.convertToType(data.bonus_discount_line_item_id, 'String') } if (data.hasOwnProperty('bonus_product_line_item')) { - obj['bonus_product_line_item'] = ApiClient.convertToType(data['bonus_product_line_item'], 'Boolean') + obj.bonus_product_line_item = ApiClient.convertToType(data.bonus_product_line_item, 'Boolean') } if (data.hasOwnProperty('bundled_product_items')) { - obj['bundled_product_items'] = ApiClient.convertToType(data['bundled_product_items'], [ProductItem]) + obj.bundled_product_items = ApiClient.convertToType(data.bundled_product_items, [ProductItem]) } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('option_id')) { - obj['option_id'] = ApiClient.convertToType(data['option_id'], 'String') + obj.option_id = ApiClient.convertToType(data.option_id, 'String') } if (data.hasOwnProperty('option_items')) { - obj['option_items'] = ApiClient.convertToType(data['option_items'], [OptionItem]) + obj.option_items = ApiClient.convertToType(data.option_items, [OptionItem]) } if (data.hasOwnProperty('option_value_id')) { - obj['option_value_id'] = ApiClient.convertToType(data['option_value_id'], 'String') + obj.option_value_id = ApiClient.convertToType(data.option_value_id, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('price_after_order_discount')) { - obj['price_after_order_discount'] = ApiClient.convertToType(data['price_after_order_discount'], 'Number') + obj.price_after_order_discount = ApiClient.convertToType(data.price_after_order_discount, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_list_item')) { - obj['product_list_item'] = ProductListItemReference.constructFromObject(data['product_list_item']) + obj.product_list_item = ProductListItemReference.constructFromObject(data.product_list_item) } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipping_item_id')) { - obj['shipping_item_id'] = ApiClient.convertToType(data['shipping_item_id'], 'String') + obj.shipping_item_id = ApiClient.convertToType(data.shipping_item_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The id of the bonus discount line item this bonus product relates to. + * @member {String} bonus_discount_line_item_id + */ + bonus_discount_line_item_id = undefined; + /** + * A flag indicating whether the product item is a bonus. + * @member {Boolean} bonus_product_line_item + */ + bonus_product_line_item = undefined; + /** + * The array of bundled product items. Can be empty. + * @member {Array.} bundled_product_items + */ + bundled_product_items = undefined; + /** + * Returns true if the item is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The inventory list id associated with this item. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The id of the option. + * @member {String} option_id + */ + option_id = undefined; + /** + * The array of option items. This array can be empty. + * @member {Array.} option_items + */ + option_items = undefined; + /** + * The id of the option value. + * @member {String} option_value_id + */ + option_value_id = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The price of this product line item after considering all dependent price adjustments and prorating all order-level price adjustments. For net pricing the net price is returned. For gross pricing, the gross price is returned. + * @member {Number} price_after_order_discount + */ + price_after_order_discount = undefined; + /** + * + * @member {String} product_id + */ + product_id = undefined; + /** + * + * @member {module:models/ProductListItemReference} product_list_item + */ + product_list_item = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The quantity of the products represented by this item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The id of the shipment which includes the product item. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The reference to the related shipping item if it exists. This is the case if for example when a surcharge is defined for individual products using a particular a shipping method. + * @member {String} shipping_item_id + */ + shipping_item_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + } diff --git a/src/models/OptionValue.js b/src/models/OptionValue.js index 0f359e6..8f5cf43 100644 --- a/src/models/OptionValue.js +++ b/src/models/OptionValue.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OptionValue model module. * @module models/OptionValue -* @version 17.8 +* @version 20.4 */ export default class OptionValue { /** @@ -30,30 +35,16 @@ export default class OptionValue { * @class * @param id {String} The id of the option value. */ + constructor(id) { - /** - * A flag indicating whether this option value is the default one. - * @member {Boolean} default - */ - this.default = undefined - - /** - * The id of the option value. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized name of the option value. - * @member {String} name - */ - this.name = undefined - - /** - * The effective price of this option value. - * @member {Number} price - */ - this.price = undefined + } /** @@ -67,20 +58,54 @@ export default class OptionValue { if (data) { obj = obj || new OptionValue() + + + + if (data.hasOwnProperty('default')) { - obj['default'] = ApiClient.convertToType(data['default'], 'Boolean') + obj.default = ApiClient.convertToType(data.default, 'Boolean') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } } - return obj } + + /** + * A flag indicating whether this option value is the default one. + * @member {Boolean} default + */ + default = undefined; + /** + * The id of the option value. + * @member {String} id + */ + id = undefined; + /** + * The localized name of the option value. + * @member {String} name + */ + name = undefined; + /** + * The effective price of this option value. + * @member {Number} price + */ + price = undefined; + + + + + + + + } + + diff --git a/src/models/Order.js b/src/models/Order.js index 495c873..c870e6d 100644 --- a/src/models/Order.js +++ b/src/models/Order.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +14,8 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BonusDiscountLineItem from './BonusDiscountLineItem' import CouponItem from './CouponItem' @@ -28,10 +29,14 @@ import Shipment from './Shipment' import ShippingItem from './ShippingItem' import SimpleLink from './SimpleLink' + + + + /** * The Order model module. * @module models/Order -* @version 17.8 +* @version 20.4 */ export default class Order { /** @@ -40,233 +45,16 @@ export default class Order { * @alias module:models/Order * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - - /** - * The billing address. This property is part of basket checkout information only. - * @member {module:models/OrderAddress} billing_address - */ - this.billing_address = undefined - - /** - * The bonus discount line items of the line item container. - * @member {Array.} bonus_discount_line_items - */ - this.bonus_discount_line_items = undefined - - /** - * The sales channel for the order. - * @member {module:models/Order.ChannelTypeEnum} channel_type - */ - this.channel_type = undefined - - /** - * The confirmation status of the order. - * @member {module:models/Order.ConfirmationStatusEnum} confirmation_status - */ - this.confirmation_status = undefined - - /** - * The sorted array of coupon items. This array can be empty. - * @member {Array.} coupon_items - */ - this.coupon_items = undefined - - /** - * The name of the user who created the order. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The customer information for logged in customers. This property is part of basket checkout information only. - * @member {module:models/CustomerInfo} customer_info - */ - this.customer_info = undefined - - /** - * The name of the customer associated with this order. - * @member {String} customer_name - */ - this.customer_name = undefined - - /** - * The export status of the order. - * @member {module:models/Order.ExportStatusEnum} export_status - */ - this.export_status = undefined - /** - * The external status of the order. - * @member {String} external_order_status - */ - this.external_order_status = undefined - - /** - * The sorted array of gift certificate line items. This array can be empty. - * @member {Array.} gift_certificate_items - */ - this.gift_certificate_items = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The notes for the line item container. - * @member {module:models/SimpleLink} notes - */ - this.notes = undefined - - /** - * The order number of the order. - * @member {String} order_no - */ - this.order_no = undefined - - /** - * The array of order level price adjustments. This array can be empty. - * @member {Array.} order_price_adjustments - */ - this.order_price_adjustments = undefined - - /** - * The order token used to secure the lookup of an order on base of the plain order number. The order token contains only URL safe characters. - * @member {String} order_token - */ - this.order_token = undefined - - /** - * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. - * @member {Number} order_total - */ - this.order_total = undefined - - /** - * The payment instruments list for the order. - * @member {Array.} payment_instruments - */ - this.payment_instruments = undefined - - /** - * The payment status of the order. - * @member {module:models/Order.PaymentStatusEnum} payment_status - */ - this.payment_status = undefined - - /** - * The sorted array of product items (up to a maximum of 50 items). This array can be empty. - * @member {Array.} product_items - */ - this.product_items = undefined - - /** - * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined - - /** - * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - - /** - * The array of shipments. This property is part of basket checkout information only. - * @member {Array.} shipments - */ - this.shipments = undefined - - /** - * The sorted array of shipping items. This array can be empty. - * @member {Array.} shipping_items - */ - this.shipping_items = undefined + constructor() { - /** - * The shipping status of the order. - * @member {module:models/Order.ShippingStatusEnum} shipping_status - */ - this.shipping_status = undefined - /** - * The total shipping price of the order after all shipping discounts. Excludes tax if - * taxation policy is net. Includes tax if taxation policy is gross. This property is part - * of basket checkout information only. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - /** - * The tax of all shipping line items of the line item container before shipping adjustments - * have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - /** - * The site where the order resides. - * @member {String} site_id - */ - this.site_id = undefined - /** - * Gets the source code assigned to this basket. - * @member {String} source_code - */ - this.source_code = undefined - /** - * The status of the order. - * @member {module:models/Order.StatusEnum} status - */ - this.status = undefined - /** - * The total tax amount of the order. This property is part of basket checkout information only. - * @member {Number} tax_total - */ - this.tax_total = undefined - /** - * The taxation the line item container is based on. - * @member {module:models/Order.TaxationEnum} taxation - */ - this.taxation = undefined } /** @@ -280,373 +68,580 @@ export default class Order { if (data) { obj = obj || new Order() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') } if (data.hasOwnProperty('billing_address')) { - obj['billing_address'] = OrderAddress.constructFromObject(data['billing_address']) + obj.billing_address = OrderAddress.constructFromObject(data.billing_address) } if (data.hasOwnProperty('bonus_discount_line_items')) { - obj['bonus_discount_line_items'] = ApiClient.convertToType(data['bonus_discount_line_items'], [BonusDiscountLineItem]) + obj.bonus_discount_line_items = ApiClient.convertToType(data.bonus_discount_line_items, [BonusDiscountLineItem]) } if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String') + obj.channel_type = ApiClient.convertToType(data.channel_type, 'String') } if (data.hasOwnProperty('confirmation_status')) { - obj['confirmation_status'] = ApiClient.convertToType(data['confirmation_status'], 'String') + obj.confirmation_status = ApiClient.convertToType(data.confirmation_status, 'String') } if (data.hasOwnProperty('coupon_items')) { - obj['coupon_items'] = ApiClient.convertToType(data['coupon_items'], [CouponItem]) + obj.coupon_items = ApiClient.convertToType(data.coupon_items, [CouponItem]) } if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('customer_info')) { - obj['customer_info'] = CustomerInfo.constructFromObject(data['customer_info']) + obj.customer_info = CustomerInfo.constructFromObject(data.customer_info) } if (data.hasOwnProperty('customer_name')) { - obj['customer_name'] = ApiClient.convertToType(data['customer_name'], 'String') + obj.customer_name = ApiClient.convertToType(data.customer_name, 'String') } if (data.hasOwnProperty('export_status')) { - obj['export_status'] = ApiClient.convertToType(data['export_status'], 'String') + obj.export_status = ApiClient.convertToType(data.export_status, 'String') } if (data.hasOwnProperty('external_order_status')) { - obj['external_order_status'] = ApiClient.convertToType(data['external_order_status'], 'String') + obj.external_order_status = ApiClient.convertToType(data.external_order_status, 'String') } if (data.hasOwnProperty('gift_certificate_items')) { - obj['gift_certificate_items'] = ApiClient.convertToType(data['gift_certificate_items'], [GiftCertificateItem]) + obj.gift_certificate_items = ApiClient.convertToType(data.gift_certificate_items, [GiftCertificateItem]) + } + if (data.hasOwnProperty('global_party_id')) { + obj.global_party_id = ApiClient.convertToType(data.global_party_id, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('notes')) { - obj['notes'] = SimpleLink.constructFromObject(data['notes']) + obj.notes = SimpleLink.constructFromObject(data.notes) } if (data.hasOwnProperty('order_no')) { - obj['order_no'] = ApiClient.convertToType(data['order_no'], 'String') + obj.order_no = ApiClient.convertToType(data.order_no, 'String') } if (data.hasOwnProperty('order_price_adjustments')) { - obj['order_price_adjustments'] = ApiClient.convertToType(data['order_price_adjustments'], [PriceAdjustment]) + obj.order_price_adjustments = ApiClient.convertToType(data.order_price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('order_token')) { - obj['order_token'] = ApiClient.convertToType(data['order_token'], 'String') + obj.order_token = ApiClient.convertToType(data.order_token, 'String') } if (data.hasOwnProperty('order_total')) { - obj['order_total'] = ApiClient.convertToType(data['order_total'], 'Number') + obj.order_total = ApiClient.convertToType(data.order_total, 'Number') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [OrderPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [OrderPaymentInstrument]) } if (data.hasOwnProperty('payment_status')) { - obj['payment_status'] = ApiClient.convertToType(data['payment_status'], 'String') + obj.payment_status = ApiClient.convertToType(data.payment_status, 'String') } if (data.hasOwnProperty('product_items')) { - obj['product_items'] = ApiClient.convertToType(data['product_items'], [ProductItem]) + obj.product_items = ApiClient.convertToType(data.product_items, [ProductItem]) } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipments')) { - obj['shipments'] = ApiClient.convertToType(data['shipments'], [Shipment]) + obj.shipments = ApiClient.convertToType(data.shipments, [Shipment]) } if (data.hasOwnProperty('shipping_items')) { - obj['shipping_items'] = ApiClient.convertToType(data['shipping_items'], [ShippingItem]) + obj.shipping_items = ApiClient.convertToType(data.shipping_items, [ShippingItem]) } if (data.hasOwnProperty('shipping_status')) { - obj['shipping_status'] = ApiClient.convertToType(data['shipping_status'], 'String') + obj.shipping_status = ApiClient.convertToType(data.shipping_status, 'String') } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('site_id')) { - obj['site_id'] = ApiClient.convertToType(data['site_id'], 'String') + obj.site_id = ApiClient.convertToType(data.site_id, 'String') } if (data.hasOwnProperty('source_code')) { - obj['source_code'] = ApiClient.convertToType(data['source_code'], 'String') + obj.source_code = ApiClient.convertToType(data.source_code, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('taxation')) { - obj['taxation'] = ApiClient.convertToType(data['taxation'], 'String') + obj.taxation = ApiClient.convertToType(data.taxation, 'String') } } - return obj } -} - -/** -* Allowed values for the channel_type property. -* @enum {String} -* @readonly -*/ -Order.ChannelTypeEnum = { /** - * value: "storefront" - * @const - */ - storefront: 'storefront', - + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. + * @member {Number} adjusted_merchandize_total_tax + */ + adjusted_merchandize_total_tax = undefined; /** - * value: "callcenter" - * @const - */ - callcenter: 'callcenter', - + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; /** - * value: "marketplace" - * @const - */ - marketplace: 'marketplace', - + * The billing address. This property is part of basket checkout information only. + * @member {module:models/OrderAddress} billing_address + */ + billing_address = undefined; /** - * value: "dss" - * @const - */ - dss: 'dss', - + * The bonus discount line items of the line item container. + * @member {Array.} bonus_discount_line_items + */ + bonus_discount_line_items = undefined; /** - * value: "store" - * @const - */ - store: 'store', - + * The sales channel for the order. + * @member {module:models/Order.ChannelTypeEnum} channel_type + */ + channel_type = undefined; /** - * value: "pinterest" - * @const - */ - pinterest: 'pinterest', - + * The confirmation status of the order. + * @member {module:models/Order.ConfirmationStatusEnum} confirmation_status + */ + confirmation_status = undefined; /** - * value: "twitter" - * @const - */ - twitter: 'twitter', - + * The sorted array of coupon items. This array can be empty. + * @member {Array.} coupon_items + */ + coupon_items = undefined; /** - * value: "facebookads" - * @const - */ - facebookads: 'facebookads', - + * The name of the user who created the order. + * @member {String} created_by + */ + created_by = undefined; /** - * value: "subscriptions" - * @const - */ - subscriptions: 'subscriptions', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "onlinereservation" - * @const - */ - onlinereservation: 'onlinereservation', - + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; /** - * value: "customerservicecenter" - * @const - */ - customerservicecenter: 'customerservicecenter', - + * The customer information for logged in customers. This property is part of basket checkout information only. + * @member {module:models/CustomerInfo} customer_info + */ + customer_info = undefined; /** - * value: "instagramcommerce" - * @const - */ - instagramcommerce: 'instagramcommerce' -} + * The name of the customer associated with this order. + * @member {String} customer_name + */ + customer_name = undefined; + /** + * The export status of the order. + * @member {module:models/Order.ExportStatusEnum} export_status + */ + export_status = undefined; + /** + * The external status of the order. + * @member {String} external_order_status + */ + external_order_status = undefined; + /** + * The sorted array of gift certificate line items. This array can be empty. + * @member {Array.} gift_certificate_items + */ + gift_certificate_items = undefined; + /** + * globalPartyId is managed by Customer 360. Its value can be changed. + * @member {String} global_party_id + */ + global_party_id = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The notes for the line item container. + * @member {module:models/SimpleLink} notes + */ + notes = undefined; + /** + * The order number of the order. + * @member {String} order_no + */ + order_no = undefined; + /** + * The array of order level price adjustments. This array can be empty. + * @member {Array.} order_price_adjustments + */ + order_price_adjustments = undefined; + /** + * The order token used to secure the lookup of an order on base of the plain order number. The order token contains only URL safe characters. + * @member {String} order_token + */ + order_token = undefined; + /** + * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. + * @member {Number} order_total + */ + order_total = undefined; + /** + * The payment instruments list for the order. + * @member {Array.} payment_instruments + */ + payment_instruments = undefined; + /** + * The payment status of the order. + * @member {module:models/Order.PaymentStatusEnum} payment_status + */ + payment_status = undefined; + /** + * The sorted array of product items (up to a maximum of 50 items). This array can be empty. + * @member {Array.} product_items + */ + product_items = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The array of shipments. This property is part of basket checkout information only. + * @member {Array.} shipments + */ + shipments = undefined; + /** + * The sorted array of shipping items. This array can be empty. + * @member {Array.} shipping_items + */ + shipping_items = undefined; + /** + * The shipping status of the order. + * @member {module:models/Order.ShippingStatusEnum} shipping_status + */ + shipping_status = undefined; + /** + * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * The site where the order resides. + * @member {String} site_id + */ + site_id = undefined; + /** + * Gets the source code assigned to this basket. + * @member {String} source_code + */ + source_code = undefined; + /** + * The status of the order. + * @member {module:models/Order.StatusEnum} status + */ + status = undefined; + /** + * The total tax amount of the order. This property is part of basket checkout information only. + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The taxation the line item container is based on. + * @member {module:models/Order.TaxationEnum} taxation + */ + taxation = undefined; -/** -* Allowed values for the confirmation_status property. -* @enum {String} -* @readonly -*/ -Order.ConfirmationStatusEnum = { - /** - * value: "not_confirmed" - * @const - */ - not_confirmed: 'not_confirmed', - /** - * value: "confirmed" - * @const - */ - confirmed: 'confirmed' -} -/** -* Allowed values for the export_status property. -* @enum {String} -* @readonly -*/ -Order.ExportStatusEnum = { - /** - * value: "not_exported" - * @const - */ - not_exported: 'not_exported', /** - * value: "exported" - * @const - */ - exported: 'exported', + * Allowed values for the channel_type property. + * @enum {String} + * @readonly + */ + static ChannelTypeEnum = { - /** - * value: "ready" - * @const - */ - ready: 'ready', + /** + * value: "storefront" + * @const + */ + storefront: 'storefront', - /** - * value: "failed" - * @const - */ - failed: 'failed' -} + /** + * value: "callcenter" + * @const + */ + callcenter: 'callcenter', -/** -* Allowed values for the payment_status property. -* @enum {String} -* @readonly -*/ -Order.PaymentStatusEnum = { + /** + * value: "marketplace" + * @const + */ + marketplace: 'marketplace', - /** - * value: "not_paid" - * @const - */ - not_paid: 'not_paid', + /** + * value: "dss" + * @const + */ + dss: 'dss', - /** - * value: "part_paid" - * @const - */ - part_paid: 'part_paid', + /** + * value: "store" + * @const + */ + store: 'store', - /** - * value: "paid" - * @const - */ - paid: 'paid' -} + /** + * value: "pinterest" + * @const + */ + pinterest: 'pinterest', -/** -* Allowed values for the shipping_status property. -* @enum {String} -* @readonly -*/ -Order.ShippingStatusEnum = { + /** + * value: "twitter" + * @const + */ + twitter: 'twitter', - /** - * value: "not_shipped" - * @const - */ - not_shipped: 'not_shipped', + /** + * value: "facebookads" + * @const + */ + facebookads: 'facebookads', - /** - * value: "part_shipped" - * @const - */ - part_shipped: 'part_shipped', + /** + * value: "subscriptions" + * @const + */ + subscriptions: 'subscriptions', - /** - * value: "shipped" - * @const - */ - shipped: 'shipped' -} + /** + * value: "onlinereservation" + * @const + */ + onlinereservation: 'onlinereservation', -/** -* Allowed values for the status property. -* @enum {String} -* @readonly -*/ -Order.StatusEnum = { + /** + * value: "customerservicecenter" + * @const + */ + customerservicecenter: 'customerservicecenter', - /** - * value: "created" - * @const - */ - created: 'created', + /** + * value: "instagramcommerce" + * @const + */ + instagramcommerce: 'instagramcommerce' + }; /** - * value: "new" - * @const - */ - new: 'new', + * Allowed values for the confirmation_status property. + * @enum {String} + * @readonly + */ + static ConfirmationStatusEnum = { - /** - * value: "open" - * @const - */ - open: 'open', + /** + * value: "not_confirmed" + * @const + */ + not_confirmed: 'not_confirmed', - /** - * value: "completed" - * @const - */ - completed: 'completed', + /** + * value: "confirmed" + * @const + */ + confirmed: 'confirmed' + }; /** - * value: "cancelled" - * @const - */ - cancelled: 'cancelled', + * Allowed values for the export_status property. + * @enum {String} + * @readonly + */ + static ExportStatusEnum = { + + /** + * value: "not_exported" + * @const + */ + not_exported: 'not_exported', + + /** + * value: "exported" + * @const + */ + exported: 'exported', + + /** + * value: "ready" + * @const + */ + ready: 'ready', + + /** + * value: "failed" + * @const + */ + failed: 'failed' + }; /** - * value: "replaced" - * @const - */ - replaced: 'replaced', + * Allowed values for the payment_status property. + * @enum {String} + * @readonly + */ + static PaymentStatusEnum = { + + /** + * value: "not_paid" + * @const + */ + not_paid: 'not_paid', + + /** + * value: "part_paid" + * @const + */ + part_paid: 'part_paid', + + /** + * value: "paid" + * @const + */ + paid: 'paid' + }; /** - * value: "failed" - * @const - */ - failed: 'failed' -} + * Allowed values for the shipping_status property. + * @enum {String} + * @readonly + */ + static ShippingStatusEnum = { -/** -* Allowed values for the taxation property. -* @enum {String} -* @readonly -*/ -Order.TaxationEnum = { + /** + * value: "not_shipped" + * @const + */ + not_shipped: 'not_shipped', + + /** + * value: "part_shipped" + * @const + */ + part_shipped: 'part_shipped', + + /** + * value: "shipped" + * @const + */ + shipped: 'shipped' + }; /** - * value: "gross" - * @const - */ - gross: 'gross', + * Allowed values for the status property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "created" + * @const + */ + created: 'created', + + /** + * value: "new" + * @const + */ + new: 'new', + + /** + * value: "open" + * @const + */ + open: 'open', + + /** + * value: "completed" + * @const + */ + completed: 'completed', + + /** + * value: "cancelled" + * @const + */ + cancelled: 'cancelled', + + /** + * value: "replaced" + * @const + */ + replaced: 'replaced', + + /** + * value: "failed" + * @const + */ + failed: 'failed' + }; /** - * value: "net" - * @const - */ - net: 'net' + * Allowed values for the taxation property. + * @enum {String} + * @readonly + */ + static TaxationEnum = { + + /** + * value: "gross" + * @const + */ + gross: 'gross', + + /** + * value: "net" + * @const + */ + net: 'net' + }; + + + } + + diff --git a/src/models/OrderAddress.js b/src/models/OrderAddress.js index 0d31c54..0367781 100644 --- a/src/models/OrderAddress.js +++ b/src/models/OrderAddress.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OrderAddress model module. * @module models/OrderAddress -* @version 17.8 +* @version 20.4 */ export default class OrderAddress { /** @@ -29,120 +34,16 @@ export default class OrderAddress { * @alias module:models/OrderAddress * @class */ - constructor() { - /** - * The first address. - * @member {String} address1 - */ - this.address1 = undefined - - /** - * The second address. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The city. - * @member {String} city - */ - this.city = undefined - - /** - * The company name. - * @member {String} company_name - */ - this.company_name = undefined - /** - * The two-letter ISO 3166-1 (Alpha-2) country code. - * @member {module:models/OrderAddress.CountryCodeEnum} country_code - */ - this.country_code = undefined - - /** - * The first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The full name. - * @member {String} full_name - */ - this.full_name = undefined - - /** - * Id used to identify this address - * @member {String} id - */ - this.id = undefined - - /** - * The job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * The last name. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The phone number. - * @member {String} phone - */ - this.phone = undefined + constructor() { - /** - * The post box. - * @member {String} post_box - */ - this.post_box = undefined - /** - * The postal code. - * @member {String} postal_code - */ - this.postal_code = undefined - /** - * The salutation. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The state code. - * @member {String} state_code - */ - this.state_code = undefined - /** - * The suffix. - * @member {String} suffix - */ - this.suffix = undefined - /** - * The suite. - * @member {String} suite - */ - this.suite = undefined - /** - * The title. - * @member {String} title - */ - this.title = undefined } /** @@ -156,109 +57,218 @@ export default class OrderAddress { if (data) { obj = obj || new OrderAddress() + + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('full_name')) { - obj['full_name'] = ApiClient.convertToType(data['full_name'], 'String') + obj.full_name = ApiClient.convertToType(data.full_name, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('post_box')) { - obj['post_box'] = ApiClient.convertToType(data['post_box'], 'String') + obj.post_box = ApiClient.convertToType(data.post_box, 'String') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('suite')) { - obj['suite'] = ApiClient.convertToType(data['suite'], 'String') + obj.suite = ApiClient.convertToType(data.suite, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the country_code property. -* @enum {String} -* @readonly -*/ -OrderAddress.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address. + * @member {String} address1 + */ + address1 = undefined; /** - * value: "FR" - * @const - */ - FR: 'FR', - + * The second address. + * @member {String} address2 + */ + address2 = undefined; /** - * value: "IT" - * @const - */ - IT: 'IT', - + * The city. + * @member {String} city + */ + city = undefined; /** - * value: "JP" - * @const - */ - JP: 'JP', - + * The company name. + * @member {String} company_name + */ + company_name = undefined; /** - * value: "CN" - * @const - */ - CN: 'CN', + * The two-letter ISO 3166-1 (Alpha-2) country code. + * @member {module:models/OrderAddress.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * The first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The full name. + * @member {String} full_name + */ + full_name = undefined; + /** + * Id used to identify this address + * @member {String} id + */ + id = undefined; + /** + * The job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * The last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The phone number. + * @member {String} phone + */ + phone = undefined; + /** + * The post box. + * @member {String} post_box + */ + post_box = undefined; + /** + * The postal code. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The salutation. + * @member {String} salutation + */ + salutation = undefined; + /** + * The second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The state code. + * @member {String} state_code + */ + state_code = undefined; + /** + * The suffix. + * @member {String} suffix + */ + suffix = undefined; + /** + * The suite. + * @member {String} suite + */ + suite = undefined; + /** + * The title. + * @member {String} title + */ + title = undefined; + + + + + /** - * value: "GB" - * @const - */ - GB: 'GB' + * Allowed values for the country_code property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "FR" + * @const + */ + FR: 'FR', + + /** + * value: "IT" + * @const + */ + IT: 'IT', + + /** + * value: "JP" + * @const + */ + JP: 'JP', + + /** + * value: "CN" + * @const + */ + CN: 'CN', + + /** + * value: "GB" + * @const + */ + GB: 'GB' + }; + + + } + + diff --git a/src/models/OrderPaymentCardRequest.js b/src/models/OrderPaymentCardRequest.js index 2537f0a..ddb2ae3 100644 --- a/src/models/OrderPaymentCardRequest.js +++ b/src/models/OrderPaymentCardRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OrderPaymentCardRequest model module. * @module models/OrderPaymentCardRequest -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentCardRequest { /** @@ -29,66 +34,16 @@ export default class OrderPaymentCardRequest { * @alias module:models/OrderPaymentCardRequest * @class */ + constructor() { - /** - * - * @member {String} card_type - */ - this.card_type = undefined - - /** - * - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * - * @member {String} holder - */ - this.holder = undefined - - /** - * - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * - * @member {String} number - */ - this.number = undefined - - /** - * The security code for the payment card. - * @member {String} security_code - */ - this.security_code = undefined - - /** - * - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -102,38 +57,102 @@ export default class OrderPaymentCardRequest { if (data) { obj = obj || new OrderPaymentCardRequest() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } if (data.hasOwnProperty('security_code')) { - obj['security_code'] = ApiClient.convertToType(data['security_code'], 'String') + obj.security_code = ApiClient.convertToType(data.security_code, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * + * @member {String} card_type + */ + card_type = undefined; + /** + * + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * + * @member {String} holder + */ + holder = undefined; + /** + * + * @member {String} issue_number + */ + issue_number = undefined; + /** + * + * @member {String} number + */ + number = undefined; + /** + * The security code for the payment card. + * @member {String} security_code + */ + security_code = undefined; + /** + * + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + + diff --git a/src/models/OrderPaymentInstrument.js b/src/models/OrderPaymentInstrument.js index 197448d..a28c282 100644 --- a/src/models/OrderPaymentInstrument.js +++ b/src/models/OrderPaymentInstrument.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,15 +14,21 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentBankAccount from './PaymentBankAccount' import PaymentCard from './PaymentCard' import Status from './Status' + + + + /** * The OrderPaymentInstrument model module. * @module models/OrderPaymentInstrument -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentInstrument { /** @@ -32,54 +37,16 @@ export default class OrderPaymentInstrument { * @alias module:models/OrderPaymentInstrument * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The authorization status of the payment transaction. - * @member {module:models/Status} authorization_status - */ - this.authorization_status = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The payment bank account. - * @member {module:models/PaymentBankAccount} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/PaymentCard} payment_card - */ - this.payment_card = undefined - - /** - * The payment instrument ID. - * @member {String} payment_instrument_id - */ - this.payment_instrument_id = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -93,32 +60,86 @@ export default class OrderPaymentInstrument { if (data) { obj = obj || new OrderPaymentInstrument() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('authorization_status')) { - obj['authorization_status'] = Status.constructFromObject(data['authorization_status']) + obj.authorization_status = Status.constructFromObject(data.authorization_status) } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccount.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccount.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = PaymentCard.constructFromObject(data['payment_card']) + obj.payment_card = PaymentCard.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_instrument_id')) { - obj['payment_instrument_id'] = ApiClient.convertToType(data['payment_instrument_id'], 'String') + obj.payment_instrument_id = ApiClient.convertToType(data.payment_instrument_id, 'String') } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The authorization status of the payment transaction. + * @member {module:models/Status} authorization_status + */ + authorization_status = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The payment bank account. + * @member {module:models/PaymentBankAccount} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/PaymentCard} payment_card + */ + payment_card = undefined; + /** + * The payment instrument ID. + * @member {String} payment_instrument_id + */ + payment_instrument_id = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/OrderPaymentInstrumentRequest.js b/src/models/OrderPaymentInstrumentRequest.js index 67ada81..d8aedd6 100644 --- a/src/models/OrderPaymentInstrumentRequest.js +++ b/src/models/OrderPaymentInstrumentRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation *//** - +/** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderPaymentCardRequest from './OrderPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The OrderPaymentInstrumentRequest model module. * @module models/OrderPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentInstrumentRequest { /** @@ -31,54 +36,16 @@ export default class OrderPaymentInstrumentRequest { * @alias module:models/OrderPaymentInstrumentRequest * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument is only created when the OrderPaymentInstrument was authorized successfully. - * @member {Boolean} create_customer_payment_instrument - */ - this.create_customer_payment_instrument = undefined - - /** - * The id of a customer payment instrument. - * @member {String} customer_payment_instrument_id - */ - this.customer_payment_instrument_id = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/OrderPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -92,32 +59,86 @@ export default class OrderPaymentInstrumentRequest { if (data) { obj = obj || new OrderPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('create_customer_payment_instrument')) { - obj['create_customer_payment_instrument'] = ApiClient.convertToType(data['create_customer_payment_instrument'], 'Boolean') + obj.create_customer_payment_instrument = ApiClient.convertToType(data.create_customer_payment_instrument, 'Boolean') } if (data.hasOwnProperty('customer_payment_instrument_id')) { - obj['customer_payment_instrument_id'] = ApiClient.convertToType(data['customer_payment_instrument_id'], 'String') + obj.customer_payment_instrument_id = ApiClient.convertToType(data.customer_payment_instrument_id, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = OrderPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = OrderPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument is only created when the OrderPaymentInstrument was authorized successfully. + * @member {Boolean} create_customer_payment_instrument + */ + create_customer_payment_instrument = undefined; + /** + * The id of a customer payment instrument. + * @member {String} customer_payment_instrument_id + */ + customer_payment_instrument_id = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/OrderPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/OrderSearchHit.js b/src/models/OrderSearchHit.js index 083af42..6ccb92e 100644 --- a/src/models/OrderSearchHit.js +++ b/src/models/OrderSearchHit.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Order from './Order' + + + + /** * The OrderSearchHit model module. * @module models/OrderSearchHit -* @version 17.8 +* @version 20.4 */ export default class OrderSearchHit { /** @@ -30,18 +35,16 @@ export default class OrderSearchHit { * @alias module:models/OrderSearchHit * @class */ + constructor() { - /** - * - * @member {module:models/Order} data - */ - this.data = undefined - - /** - * The hit's relevance score. - * @member {Number} relevance - */ - this.relevance = undefined + + + + + + + + } /** @@ -55,14 +58,38 @@ export default class OrderSearchHit { if (data) { obj = obj || new OrderSearchHit() + + + + if (data.hasOwnProperty('data')) { - obj['data'] = Order.constructFromObject(data['data']) + obj.data = Order.constructFromObject(data.data) } if (data.hasOwnProperty('relevance')) { - obj['relevance'] = ApiClient.convertToType(data['relevance'], 'Number') + obj.relevance = ApiClient.convertToType(data.relevance, 'Number') } } - return obj } + + /** + * + * @member {module:models/Order} data + */ + data = undefined; + /** + * The hit's relevance score. + * @member {Number} relevance + */ + relevance = undefined; + + + + + + + + } + + diff --git a/src/models/OrderSearchRequest.js b/src/models/OrderSearchRequest.js index 997d3a9..89f4bc1 100644 --- a/src/models/OrderSearchRequest.js +++ b/src/models/OrderSearchRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' import Sort from './Sort' + + + + /** * The OrderSearchRequest model module. * @module models/OrderSearchRequest -* @version 17.8 +* @version 20.4 */ export default class OrderSearchRequest { /** @@ -32,42 +37,16 @@ export default class OrderSearchRequest { * @class * @param query {module:models/Query} The query to apply */ + constructor(query) { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * List of expansions to be applied to each search results. Expands are optional. - * @member {Array.} expand - */ - this.expand = undefined - - /** - * The query to apply - * @member {module:models/Query} query - */ + + + + + this.query = query - /** - * The field to be selected. - * @member {String} select - */ - this.select = undefined - - /** - * The list of sort clauses configured for the search request. Sort clauses are optional. - * @member {Array.} sorts - */ - this.sorts = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined + } /** @@ -81,26 +60,78 @@ export default class OrderSearchRequest { if (data) { obj = obj || new OrderSearchRequest() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('expand')) { - obj['expand'] = ApiClient.convertToType(data['expand'], ['String']) + obj.expand = ApiClient.convertToType(data.expand, ['String']) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('sorts')) { - obj['sorts'] = ApiClient.convertToType(data['sorts'], [Sort]) + obj.sorts = ApiClient.convertToType(data.sorts, [Sort]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } } - return obj } + + /** + * The number of returned documents + * @member {Number} count + */ + count = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * List of expansions to be applied to each search results. Expands are optional + * @member {Array.} expand + */ + expand = undefined; + /** + * The query to apply + * @member {module:models/Query} query + */ + query = undefined; + /** + * The field to be selected. + * @member {String} select + */ + select = undefined; + /** + * The list of sort clauses configured for the search request. Sort clauses are optional. + * @member {Array.} sorts + */ + sorts = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + + + + + + + + } + + diff --git a/src/models/OrderSearchResult.js b/src/models/OrderSearchResult.js index 1a39e31..721e5d2 100644 --- a/src/models/OrderSearchResult.js +++ b/src/models/OrderSearchResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,16 +14,22 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderSearchHit from './OrderSearchHit' import Query from './Query' import ResultPage from './ResultPage' import Sort from './Sort' + + + + /** * The OrderSearchResult model module. * @module models/OrderSearchResult -* @version 17.8 +* @version 20.4 */ export default class OrderSearchResult { /** @@ -33,71 +38,16 @@ export default class OrderSearchResult { * @alias module:models/OrderSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.} data - */ - this.data = undefined - - /** - * The list of expands set for the search request. Expands are optional. - * @member {Array.} expand - */ - this.expand = undefined - - /** - * The sorted array of search hits. This array can be empty. - * @member {Array.} hits - */ - this.hits = undefined - - /** - * The data that can be used (as parameters on the search request) to retrieve the next result page. - * @member {module:models/ResultPage} next - */ - this.next = undefined - - /** - * The data that can be used to retrieve the previous result page (as parameters on the search request). - * @member {module:models/ResultPage} previous - */ - this.previous = undefined - - /** - * The query passed into the search - * @member {module:models/Query} query - */ - this.query = undefined - - /** - * The fields that you want to select. - * @member {String} select - */ - this.select = undefined - - /** - * The list of sort clauses configured for the search request. Sort clauses are optional. - * @member {Array.} sorts - */ - this.sorts = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -111,41 +61,117 @@ export default class OrderSearchResult { if (data) { obj = obj || new OrderSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('expand')) { - obj['expand'] = ApiClient.convertToType(data['expand'], ['String']) + obj.expand = ApiClient.convertToType(data.expand, ['String']) } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [OrderSearchHit]) + obj.hits = ApiClient.convertToType(data.hits, [OrderSearchHit]) } if (data.hasOwnProperty('next')) { - obj['next'] = ResultPage.constructFromObject(data['next']) + obj.next = ResultPage.constructFromObject(data.next) } if (data.hasOwnProperty('previous')) { - obj['previous'] = ResultPage.constructFromObject(data['previous']) + obj.previous = ResultPage.constructFromObject(data.previous) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('sorts')) { - obj['sorts'] = ApiClient.convertToType(data['sorts'], [Sort]) + obj.sorts = ApiClient.convertToType(data.sorts, [Sort]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.} data + */ + data = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * List of expansions to be applied to each search results. Expands are optional + * @member {Array.} expand + */ + expand = undefined; + /** + * The sorted array of search hits. This array can be empty. + * @member {Array.} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {module:models/ResultPage} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {module:models/ResultPage} previous + */ + previous = undefined; + /** + * The query passed into the search + * @member {module:models/Query} query + */ + query = undefined; + /** + * The fields that you want to select. + * @member {String} select + */ + select = undefined; + /** + * The list of sort clauses configured for the search request. Sort clauses are optional. + * @member {Array.} sorts + */ + sorts = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/PasswordChangeRequest.js b/src/models/PasswordChangeRequest.js index 05255c7..0c2b710 100644 --- a/src/models/PasswordChangeRequest.js +++ b/src/models/PasswordChangeRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PasswordChangeRequest model module. * @module models/PasswordChangeRequest -* @version 17.8 +* @version 20.4 */ export default class PasswordChangeRequest { /** @@ -31,18 +36,16 @@ export default class PasswordChangeRequest { * @param currentPassword {String} The customer's current password. * @param password {String} The customer's new password. */ + constructor(currentPassword, password) { - /** - * The customer's current password. - * @member {String} current_password - */ - this.current_password = currentPassword - - /** - * The customer's new password. - * @member {String} password - */ - this.password = password + + + + + + this.current_password = currentPassword; this.password = password + + } /** @@ -56,14 +59,38 @@ export default class PasswordChangeRequest { if (data) { obj = obj || new PasswordChangeRequest() + + + + if (data.hasOwnProperty('current_password')) { - obj['current_password'] = ApiClient.convertToType(data['current_password'], 'String') + obj.current_password = ApiClient.convertToType(data.current_password, 'String') } if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String') + obj.password = ApiClient.convertToType(data.password, 'String') } } - return obj } + + /** + * The customer's current password. + * @member {String} current_password + */ + current_password = undefined; + /** + * The customer's new password. + * @member {String} password + */ + password = undefined; + + + + + + + + } + + diff --git a/src/models/PasswordReset.js b/src/models/PasswordReset.js index 463c2a3..163ffb5 100644 --- a/src/models/PasswordReset.js +++ b/src/models/PasswordReset.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PasswordReset model module. * @module models/PasswordReset -* @version 17.8 +* @version 20.4 */ export default class PasswordReset { /** @@ -29,18 +34,16 @@ export default class PasswordReset { * @alias module:models/PasswordReset * @class */ + constructor() { - /** - * The customer's login or the customer's email depending on the type value. - * @member {String} identification - */ - this.identification = undefined - /** - * The type of customer identification. - * @member {module:models/PasswordReset.TypeEnum} type - */ - this.type = undefined + + + + + + + } /** @@ -54,34 +57,58 @@ export default class PasswordReset { if (data) { obj = obj || new PasswordReset() + + + + if (data.hasOwnProperty('identification')) { - obj['identification'] = ApiClient.convertToType(data['identification'], 'String') + obj.identification = ApiClient.convertToType(data.identification, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -PasswordReset.TypeEnum = { /** - * value: "email" - * @const - */ - email: 'email', + * The customer's login or the customer's email depending on the type value. + * @member {String} identification + */ + identification = undefined; + /** + * The type of customer identification. + * @member {module:models/PasswordReset.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "login" - * @const - */ - login: 'login' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "email" + * @const + */ + email: 'email', + + /** + * value: "login" + * @const + */ + login: 'login' + }; + + + } + + diff --git a/src/models/PaymentBankAccount.js b/src/models/PaymentBankAccount.js index 0a3a2f1..33da092 100644 --- a/src/models/PaymentBankAccount.js +++ b/src/models/PaymentBankAccount.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentBankAccount model module. * @module models/PaymentBankAccount -* @version 17.8 +* @version 20.4 */ export default class PaymentBankAccount { /** @@ -29,42 +34,16 @@ export default class PaymentBankAccount { * @alias module:models/PaymentBankAccount * @class */ + constructor() { - /** - * The last 4 characters of the decrypted driver's license number of the bank account associated with this payment instrument. - * @member {String} drivers_license_last_digits - */ - this.drivers_license_last_digits = undefined - - /** - * The driver license state code. - * @member {String} drivers_license_state_code - */ - this.drivers_license_state_code = undefined - - /** - * The holder of the bank account. - * @member {String} holder - */ - this.holder = undefined - - /** - * The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*' character. - * @member {String} masked_drivers_license - */ - this.masked_drivers_license = undefined - - /** - * The bank account masked number. - * @member {String} masked_number - */ - this.masked_number = undefined - - /** - * The last digits of the bank account number. - * @member {String} number_last_digits - */ - this.number_last_digits = undefined + + + + + + + + } /** @@ -78,26 +57,70 @@ export default class PaymentBankAccount { if (data) { obj = obj || new PaymentBankAccount() + + + + if (data.hasOwnProperty('drivers_license_last_digits')) { - obj['drivers_license_last_digits'] = ApiClient.convertToType(data['drivers_license_last_digits'], 'String') + obj.drivers_license_last_digits = ApiClient.convertToType(data.drivers_license_last_digits, 'String') } if (data.hasOwnProperty('drivers_license_state_code')) { - obj['drivers_license_state_code'] = ApiClient.convertToType(data['drivers_license_state_code'], 'String') + obj.drivers_license_state_code = ApiClient.convertToType(data.drivers_license_state_code, 'String') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('masked_drivers_license')) { - obj['masked_drivers_license'] = ApiClient.convertToType(data['masked_drivers_license'], 'String') + obj.masked_drivers_license = ApiClient.convertToType(data.masked_drivers_license, 'String') } if (data.hasOwnProperty('masked_number')) { - obj['masked_number'] = ApiClient.convertToType(data['masked_number'], 'String') + obj.masked_number = ApiClient.convertToType(data.masked_number, 'String') } if (data.hasOwnProperty('number_last_digits')) { - obj['number_last_digits'] = ApiClient.convertToType(data['number_last_digits'], 'String') + obj.number_last_digits = ApiClient.convertToType(data.number_last_digits, 'String') } } - return obj } + + /** + * The last 4 characters of the decrypted driver's license number of the bank account associated with this payment instrument. + * @member {String} drivers_license_last_digits + */ + drivers_license_last_digits = undefined; + /** + * The driver license state code. + * @member {String} drivers_license_state_code + */ + drivers_license_state_code = undefined; + /** + * The holder of the bank account. + * @member {String} holder + */ + holder = undefined; + /** + * The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*' character. + * @member {String} masked_drivers_license + */ + masked_drivers_license = undefined; + /** + * The bank account masked number. + * @member {String} masked_number + */ + masked_number = undefined; + /** + * The last digits of the bank account number. + * @member {String} number_last_digits + */ + number_last_digits = undefined; + + + + + + + + } + + diff --git a/src/models/PaymentBankAccountRequest.js b/src/models/PaymentBankAccountRequest.js index a03462d..9e30178 100644 --- a/src/models/PaymentBankAccountRequest.js +++ b/src/models/PaymentBankAccountRequest.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentBankAccountRequest model module. * @module models/PaymentBankAccountRequest -* @version 17.8 +* @version 20.4 */ export default class PaymentBankAccountRequest { /** @@ -29,30 +34,16 @@ export default class PaymentBankAccountRequest { * @alias module:models/PaymentBankAccountRequest * @class */ + constructor() { - /** - * The drivers license. - * @member {String} drivers_license - */ - this.drivers_license = undefined - - /** - * The driver license state code. - * @member {String} drivers_license_state_code - */ - this.drivers_license_state_code = undefined - - /** - * The holder of the bank account. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment bank account number. - * @member {String} number - */ - this.number = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class PaymentBankAccountRequest { if (data) { obj = obj || new PaymentBankAccountRequest() + + + + if (data.hasOwnProperty('drivers_license')) { - obj['drivers_license'] = ApiClient.convertToType(data['drivers_license'], 'String') + obj.drivers_license = ApiClient.convertToType(data.drivers_license, 'String') } if (data.hasOwnProperty('drivers_license_state_code')) { - obj['drivers_license_state_code'] = ApiClient.convertToType(data['drivers_license_state_code'], 'String') + obj.drivers_license_state_code = ApiClient.convertToType(data.drivers_license_state_code, 'String') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } } - return obj } + + /** + * The drivers license. + * @member {String} drivers_license + */ + drivers_license = undefined; + /** + * The driver license state code. + * @member {String} drivers_license_state_code + */ + drivers_license_state_code = undefined; + /** + * The holder of the bank account. + * @member {String} holder + */ + holder = undefined; + /** + * The payment bank account number. + * @member {String} number + */ + number = undefined; + + + + + + + + } + + diff --git a/src/models/PaymentCard.js b/src/models/PaymentCard.js index 851dc1e..d8bce6d 100644 --- a/src/models/PaymentCard.js +++ b/src/models/PaymentCard.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentCard model module. * @module models/PaymentCard -* @version 17.8 +* @version 20.4 */ export default class PaymentCard { /** @@ -29,72 +34,16 @@ export default class PaymentCard { * @alias module:models/PaymentCard * @class */ + constructor() { - /** - * The payment card type (for example, 'Visa'). - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A flag indicating if the credit card is expired. - * @member {Boolean} credit_card_expired - */ - this.credit_card_expired = undefined - - /** - * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * The month when the payment card expires. - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * The year when the payment card expires. - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * The payment card holder. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment card issue number. - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * The masked credit card number. - * @member {String} masked_number - */ - this.masked_number = undefined - - /** - * The last digits of credit card number. - * @member {String} number_last_digits - */ - this.number_last_digits = undefined - - /** - * The payment card valid from month. - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * The payment card valid from year. - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -108,41 +57,110 @@ export default class PaymentCard { if (data) { obj = obj || new PaymentCard() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_expired')) { - obj['credit_card_expired'] = ApiClient.convertToType(data['credit_card_expired'], 'Boolean') + obj.credit_card_expired = ApiClient.convertToType(data.credit_card_expired, 'Boolean') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('masked_number')) { - obj['masked_number'] = ApiClient.convertToType(data['masked_number'], 'String') + obj.masked_number = ApiClient.convertToType(data.masked_number, 'String') } if (data.hasOwnProperty('number_last_digits')) { - obj['number_last_digits'] = ApiClient.convertToType(data['number_last_digits'], 'String') + obj.number_last_digits = ApiClient.convertToType(data.number_last_digits, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * The payment card type (for example, 'Visa'). + * @member {String} card_type + */ + card_type = undefined; + /** + * A flag indicating if the credit card is expired. + * @member {Boolean} credit_card_expired + */ + credit_card_expired = undefined; + /** + * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * The month when the payment card expires. + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * The year when the payment card expires. + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * The payment card holder. + * @member {String} holder + */ + holder = undefined; + /** + * The payment card issue number. + * @member {String} issue_number + */ + issue_number = undefined; + /** + * The masked credit card number. + * @member {String} masked_number + */ + masked_number = undefined; + /** + * The last digits of credit card number. + * @member {String} number_last_digits + */ + number_last_digits = undefined; + /** + * The payment card valid from month. + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * The payment card valid from year. + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + + diff --git a/src/models/PaymentCardSpec.js b/src/models/PaymentCardSpec.js index 0489cc1..eca5c45 100644 --- a/src/models/PaymentCardSpec.js +++ b/src/models/PaymentCardSpec.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentCardSpec model module. * @module models/PaymentCardSpec -* @version 17.8 +* @version 20.4 */ export default class PaymentCardSpec { /** @@ -29,54 +34,16 @@ export default class PaymentCardSpec { * @alias module:models/PaymentCardSpec * @class */ + constructor() { - /** - * The type of the payment card. - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A flag indicating whether the card number is verified using the Luhn checksum algorithm. - * @member {Boolean} checksum_verification_enabled - */ - this.checksum_verification_enabled = undefined - - /** - * The localized description of the payment card. - * @member {String} description - */ - this.description = undefined - - /** - * The URL to the image that represents the payment card. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the payment card. - * @member {String} name - */ - this.name = undefined - - /** - * The sorted list of number lengths (individual lengths as well as length ranges). - * @member {Array.} number_lengths - */ - this.number_lengths = undefined - - /** - * The sorted list of number prefixes (individual prefixes as well as prefix ranges). - * @member {Array.} number_prefixes - */ - this - .number_prefixes = undefined - /** - * The length of the security code for this card. - * @member {Number} security_code_length - */ - this.security_code_length = undefined + + + + + + + + } /** @@ -90,32 +57,86 @@ export default class PaymentCardSpec { if (data) { obj = obj || new PaymentCardSpec() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('checksum_verification_enabled')) { - obj['checksum_verification_enabled'] = ApiClient.convertToType(data['checksum_verification_enabled'], 'Boolean') + obj.checksum_verification_enabled = ApiClient.convertToType(data.checksum_verification_enabled, 'Boolean') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('number_lengths')) { - obj['number_lengths'] = ApiClient.convertToType(data['number_lengths'], ['String']) + obj.number_lengths = ApiClient.convertToType(data.number_lengths, ['String']) } if (data.hasOwnProperty('number_prefixes')) { - obj['number_prefixes'] = ApiClient.convertToType(data['number_prefixes'], ['String']) + obj.number_prefixes = ApiClient.convertToType(data.number_prefixes, ['String']) } if (data.hasOwnProperty('security_code_length')) { - obj['security_code_length'] = ApiClient.convertToType(data['security_code_length'], 'Number') + obj.security_code_length = ApiClient.convertToType(data.security_code_length, 'Number') } } - return obj } + + /** + * The type of the payment card. + * @member {String} card_type + */ + card_type = undefined; + /** + * A flag indicating whether the card number is verified using the Luhn checksum algorithm. + * @member {Boolean} checksum_verification_enabled + */ + checksum_verification_enabled = undefined; + /** + * The localized description of the payment card. + * @member {String} description + */ + description = undefined; + /** + * The URL to the image that represents the payment card. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the payment card. + * @member {String} name + */ + name = undefined; + /** + * The sorted list of number lengths (individual lengths as well as length ranges). + * @member {Array.} number_lengths + */ + number_lengths = undefined; + /** + * The sorted list of number prefixes (individual prefixes as well as prefix ranges). + * @member {Array.} number_prefixes + */ + number_prefixes = undefined; + /** + * The length of the security code for this card. + * @member {Number} security_code_length + */ + security_code_length = undefined; + + + + + + + + } + + diff --git a/src/models/PaymentMethod.js b/src/models/PaymentMethod.js index 368cab7..49f6864 100644 --- a/src/models/PaymentMethod.js +++ b/src/models/PaymentMethod.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentCardSpec from './PaymentCardSpec' + + + + /** * The PaymentMethod model module. * @module models/PaymentMethod -* @version 17.8 +* @version 20.4 */ export default class PaymentMethod { /** @@ -31,36 +36,16 @@ export default class PaymentMethod { * @class * @param id {String} The id of the payment method or card. */ + constructor(id) { - /** - * The sorted array of payment cards (included only when the system payment method is CREDIT_CARD). - * @member {Array.} cards - */ - this.cards = undefined - - /** - * The localized description of the payment method or card. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the payment method or card. - * @member {String} id - */ + + + + + this.id = id - /** - * The URL to the image that represents the payment method or card. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the payment method or card. - * @member {String} name - */ - this.name = undefined + } /** @@ -74,23 +59,70 @@ export default class PaymentMethod { if (data) { obj = obj || new PaymentMethod() + + + + if (data.hasOwnProperty('cards')) { - obj['cards'] = ApiClient.convertToType(data['cards'], [PaymentCardSpec]) + obj.cards = ApiClient.convertToType(data.cards, [PaymentCardSpec]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') + } + if (data.hasOwnProperty('payment_processor_id')) { + obj.payment_processor_id = ApiClient.convertToType(data.payment_processor_id, 'String') } } - return obj } + + /** + * The sorted array of payment cards (included only when the system payment method is CREDIT_CARD). + * @member {Array.} cards + */ + cards = undefined; + /** + * The localized description of the payment method or card. + * @member {String} description + */ + description = undefined; + /** + * The id of the payment method or card. + * @member {String} id + */ + id = undefined; + /** + * The URL to the image that represents the payment method or card. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the payment method or card. + * @member {String} name + */ + name = undefined; + /** + * The payment processor ID. + * @member {String} payment_processor_id + */ + payment_processor_id = undefined; + + + + + + + + } + + diff --git a/src/models/PaymentMethodResult.js b/src/models/PaymentMethodResult.js index c880819..357f0ed 100644 --- a/src/models/PaymentMethodResult.js +++ b/src/models/PaymentMethodResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentMethod from './PaymentMethod' + + + + /** * The PaymentMethodResult model module. * @module models/PaymentMethodResult -* @version 17.8 +* @version 20.4 */ export default class PaymentMethodResult { /** @@ -30,12 +35,16 @@ export default class PaymentMethodResult { * @alias module:models/PaymentMethodResult * @class */ + constructor() { - /** - * The applicable payment methods. - * @member {Array.} applicable_payment_methods - */ - this.applicable_payment_methods = undefined + + + + + + + + } /** @@ -49,12 +58,30 @@ export default class PaymentMethodResult { if (data) { obj = obj || new PaymentMethodResult() + + + + if (data.hasOwnProperty('applicable_payment_methods')) { - obj['applicable_payment_methods'] = ApiClient.convertToType(data['applicable_payment_methods'], [PaymentMethod]) + obj.applicable_payment_methods = ApiClient.convertToType(data.applicable_payment_methods, [PaymentMethod]) } } - return obj } + /** + * The applicable payment methods. + * @member {Array.} applicable_payment_methods + */ + applicable_payment_methods = undefined; + + + + + + + + } + + diff --git a/src/models/PriceAdjustment.js b/src/models/PriceAdjustment.js index a6c8f84..f822d9c 100644 --- a/src/models/PriceAdjustment.js +++ b/src/models/PriceAdjustment.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,110 +14,37 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Discount from './Discount' + + + + /** * The PriceAdjustment model module. * @module models/PriceAdjustment -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustment { /** * Constructs a new PriceAdjustment. - * Document representing a price adjustment within a basket or order. Price adjustments can be assigned - * at the order, product, or shipping level. They can be created by the promotion engine (if the custom - * flag is set to false) or can be added by custom logic (if the custom flag is set to true). For custom - * price adjustments created by a user, the manual flag should be set to true; this is always - * the case for price adjustments created using OCAPI. + * Document representing a price adjustment within a basket or order. Price adjustments can be assigned at the order, product, or shipping level. They can be created by the promotion engine (if the custom flag is set to false) or can be added by custom logic (if the custom flag is set to true). For custom price adjustments created by a user, the manual flag should be set to true; this is always the case for price adjustments created using OCAPI. * @alias module:models/PriceAdjustment * @class */ - constructor() { - /** - * A price adjustment that provides details of the discount that was applied. This is null for custom - * price adjustments created without discount details. - * @member {module:models/Discount} applied_discount - */ - this.applied_discount = undefined - - /** - * The coupon code that triggered the promotion, provided the price adjustment was created as - * the result of a promotion being triggered by a coupon. - * @member {String} coupon_code - */ - this.coupon_code = undefined - /** - * The user who created the price adjustment. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * A flag indicating whether this price adjustment was created by custom logic. This flag is set - * to true unless the price adjustment was created by the promotion engine. - * @member {Boolean} custom - */ - this.custom = undefined + constructor() { - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * A flag indicating whether this price adjustment was created in a manual process. For custom price - * adjustments created using the shop API, this always returns true. Using the scripting API, - * however, it is possible to set this to true or false, according to the use case. - * @member {Boolean} manual - */ - this.manual = undefined - /** - * The adjustment price. - * @member {Number} price - */ - this.price = undefined - /** - * The price adjustment id (uuid). - * @member {String} price_adjustment_id - */ - this.price_adjustment_id = undefined - /** - * The id of the related promotion. Custom price adjustments can be assigned any promotion - * id so long it is not used by a price adjustment belonging to the same item and is not used - * by promotion defined in the promotion engine. If not specified, a promotion id is generated. - * @member {String} promotion_id - */ - this.promotion_id = undefined - /** - * The URL addressing the related promotion. - * @member {String} promotion_link - */ - this.promotion_link = undefined - /** - * The reason why this price adjustment was made. - * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code - */ - this.reason_code = undefined } /** @@ -132,73 +58,152 @@ export default class PriceAdjustment { if (data) { obj = obj || new PriceAdjustment() + + + + if (data.hasOwnProperty('applied_discount')) { - obj['applied_discount'] = Discount.constructFromObject(data['applied_discount']) + obj.applied_discount = Discount.constructFromObject(data.applied_discount) } if (data.hasOwnProperty('coupon_code')) { - obj['coupon_code'] = ApiClient.convertToType(data['coupon_code'], 'String') + obj.coupon_code = ApiClient.convertToType(data.coupon_code, 'String') } if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('custom')) { - obj['custom'] = ApiClient.convertToType(data['custom'], 'Boolean') + obj.custom = ApiClient.convertToType(data.custom, 'Boolean') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('manual')) { - obj['manual'] = ApiClient.convertToType(data['manual'], 'Boolean') + obj.manual = ApiClient.convertToType(data.manual, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustment_id')) { - obj['price_adjustment_id'] = ApiClient.convertToType(data['price_adjustment_id'], 'String') + obj.price_adjustment_id = ApiClient.convertToType(data.price_adjustment_id, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotion_link')) { - obj['promotion_link'] = ApiClient.convertToType(data['promotion_link'], 'String') + obj.promotion_link = ApiClient.convertToType(data.promotion_link, 'String') } if (data.hasOwnProperty('reason_code')) { - obj['reason_code'] = ApiClient.convertToType(data['reason_code'], 'String') + obj.reason_code = ApiClient.convertToType(data.reason_code, 'String') } } - return obj } -} - -/** -* Allowed values for the reason_code property. -* @enum {String} -* @readonly -*/ -PriceAdjustment.ReasonCodeEnum = { /** - * value: "PRICE_MATCH" - * @const - */ - PRICE_MATCH: 'PRICE_MATCH', - + * A price adjustment that provides details of the discount that was applied. This is null for custom price adjustments created without discount details. + * @member {module:models/Discount} applied_discount + */ + applied_discount = undefined; + /** + * The coupon code that triggered the promotion, provided the price adjustment was created as the result of a promotion being triggered by a coupon. + * @member {String} coupon_code + */ + coupon_code = undefined; /** - * value: "BACKORDER" - * @const - */ - BACKORDER: 'BACKORDER', + * The user who created the price adjustment. + * @member {String} created_by + */ + created_by = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * A flag indicating whether this price adjustment was created by custom logic. This flag is set to true unless the price adjustment was created by the promotion engine. + * @member {Boolean} custom + */ + custom = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * A flag indicating whether this price adjustment was created in a manual process. For custom price adjustments created using the shop API, this always returns true. Using the scripting API, however, it is possible to set this to true or false, according to the use case. + * @member {Boolean} manual + */ + manual = undefined; + /** + * The adjustment price. + * @member {Number} price + */ + price = undefined; + /** + * The price adjustment id (uuid). + * @member {String} price_adjustment_id + */ + price_adjustment_id = undefined; + /** + * The id of the related promotion. Custom price adjustments can be assigned any promotion id so long it is not used by a price adjustment belonging to the same item and is not used by promotion defined in the promotion engine. If not specified, a promotion id is generated. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The URL addressing the related promotion. + * @member {String} promotion_link + */ + promotion_link = undefined; + /** + * The reason why this price adjustment was made. + * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code + */ + reason_code = undefined; + + + + + /** - * value: "EVEN_EXCHANGE" - * @const - */ - EVEN_EXCHANGE: 'EVEN_EXCHANGE' + * Allowed values for the reason_code property. + * @enum {String} + * @readonly + */ + static ReasonCodeEnum = { + + /** + * value: "PRICE_MATCH" + * @const + */ + PRICE_MATCH: 'PRICE_MATCH', + + /** + * value: "BACKORDER" + * @const + */ + BACKORDER: 'BACKORDER', + + /** + * value: "EVEN_EXCHANGE" + * @const + */ + EVEN_EXCHANGE: 'EVEN_EXCHANGE' + }; + + + } + + diff --git a/src/models/PriceAdjustmentLimit.js b/src/models/PriceAdjustmentLimit.js index cdc4bf3..0a04874 100644 --- a/src/models/PriceAdjustmentLimit.js +++ b/src/models/PriceAdjustmentLimit.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,48 +14,36 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PriceAdjustmentLimit model module. * @module models/PriceAdjustmentLimit -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustmentLimit { /** * Constructs a new PriceAdjustmentLimit. - * A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at - * the specified level. + * A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at the specified level. * @alias module:models/PriceAdjustmentLimit * @class */ + constructor() { - /** - * The value for the currency or null if no currency value is specified. - * @member {Number} amount - */ - this.amount = undefined - /** - * Returns the currency of the Price Adjustment Limit or null if not applicable. Will be null if this - * is a percent limit only. Price adjustment limits can be given up to a fixed amount (unit=a currency unit). - * @member {String} currency - */ - this.currency = undefined - /** - * Returns percentage value of the Price Adjustment Limit or null if not applicable. Will be null - * if this is a currency limit only. - * @member {Number} percent - */ - this.percent = undefined - /** - * The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the - * Price Adjustment is applicable. - * @member {module:models/PriceAdjustmentLimit.TypeEnum} type - */ - this.type = undefined + + + + + } /** @@ -70,46 +57,80 @@ export default class PriceAdjustmentLimit { if (data) { obj = obj || new PriceAdjustmentLimit() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('percent')) { - obj['percent'] = ApiClient.convertToType(data['percent'], 'Number') + obj.percent = ApiClient.convertToType(data.percent, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -PriceAdjustmentLimit.TypeEnum = { /** - * value: "item" - * @const - */ - item: 'item', - + * The value for the currency or null if no currency value is specified. + * @member {Number} amount + */ + amount = undefined; + /** + * Returns the currency of the Price Adjustment Limit or null if not applicable. Will be null if this is a percent limit only. Price adjustment limits can be given up to a fixed amount (unit=a currency unit). + * @member {String} currency + */ + currency = undefined; + /** + * Returns percentage value of the Price Adjustment Limit or null if not applicable. Will be null if this is a currency limit only. + * @member {Number} percent + */ + percent = undefined; /** - * value: "shipping" - * @const - */ - shipping: 'shipping', + * The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the Price Adjustment is applicable. + * @member {module:models/PriceAdjustmentLimit.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "order" - * @const - */ - order: 'order' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "item" + * @const + */ + item: 'item', + + /** + * value: "shipping" + * @const + */ + shipping: 'shipping', + + /** + * value: "order" + * @const + */ + order: 'order' + }; + + + } + + diff --git a/src/models/PriceAdjustmentLimits.js b/src/models/PriceAdjustmentLimits.js index a9ffbc5..0b0881f 100644 --- a/src/models/PriceAdjustmentLimits.js +++ b/src/models/PriceAdjustmentLimits.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustmentLimit from './PriceAdjustmentLimit' + + + + /** * The PriceAdjustmentLimits model module. * @module models/PriceAdjustmentLimits -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustmentLimits { /** @@ -30,12 +35,16 @@ export default class PriceAdjustmentLimits { * @alias module:models/PriceAdjustmentLimits * @class */ + constructor() { - /** - * The list of price adjustment limits applicable for a user across all roles. - * @member {Array.} limits - */ - this.limits = undefined + + + + + + + + } /** @@ -49,11 +58,30 @@ export default class PriceAdjustmentLimits { if (data) { obj = obj || new PriceAdjustmentLimits() + + + + if (data.hasOwnProperty('limits')) { - obj['limits'] = ApiClient.convertToType(data['limits'], [PriceAdjustmentLimit]) + obj.limits = ApiClient.convertToType(data.limits, [PriceAdjustmentLimit]) } } - return obj } + + /** + * The list of price adjustment limits applicable for a user across all roles. + * @member {Array.} limits + */ + limits = undefined; + + + + + + + + } + + diff --git a/src/models/PriceAdjustmentRequest.js b/src/models/PriceAdjustmentRequest.js new file mode 100644 index 0000000..b1c8209 --- /dev/null +++ b/src/models/PriceAdjustmentRequest.js @@ -0,0 +1,180 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import DiscountRequest from './DiscountRequest' + + + + + +/** +* The PriceAdjustmentRequest model module. +* @module models/PriceAdjustmentRequest +* @version 20.4 +*/ +export default class PriceAdjustmentRequest { + /** + * Constructs a new PriceAdjustmentRequest. + * Document representing a price adjustment request. + * @alias module:models/PriceAdjustmentRequest + * @class + * @param level {module:models/PriceAdjustmentRequest.LevelEnum} The level at which the adjustment is applied. When a product or shipping level is specified, you must also specify the item id. + */ + + constructor(level) { + + + + + + this.level = level + + + } + + /** + * Constructs a PriceAdjustmentRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/PriceAdjustmentRequest} obj Optional instance to populate. + * @return {module:models/PriceAdjustmentRequest} The populated PriceAdjustmentRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PriceAdjustmentRequest() + + + + + + if (data.hasOwnProperty('discount')) { + obj.discount = DiscountRequest.constructFromObject(data.discount) + } + if (data.hasOwnProperty('item_id')) { + obj.item_id = ApiClient.convertToType(data.item_id, 'String') + } + if (data.hasOwnProperty('item_text')) { + obj.item_text = ApiClient.convertToType(data.item_text, 'String') + } + if (data.hasOwnProperty('level')) { + obj.level = ApiClient.convertToType(data.level, 'String') + } + if (data.hasOwnProperty('promotion_id')) { + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') + } + if (data.hasOwnProperty('reason_code')) { + obj.reason_code = ApiClient.convertToType(data.reason_code, 'String') + } + } + return obj + } + + /** + * A discount that you can specify instead of a price. When defining a discount, you must specify a type and a value. + * @member {module:models/DiscountRequest} discount + */ + discount = undefined; + /** + * The item to which the price adjustment should be added, depending on the specified level. If the level is 'order', you need not specify an item id. If 'shipping', specify the uuid of the shipping item. If 'product', specify the uuid of the product item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The level at which the adjustment is applied. When a product or shipping level is specified, you must also specify the item id. + * @member {module:models/PriceAdjustmentRequest.LevelEnum} level + */ + level = undefined; + /** + * The id of the related promotion. Custom price adjustments can be assigned any promotion id so long it is not used by a price adjustment belonging to the same item and is not used by promotion defined in the promotion engine. If not specified, a promotion id is generated. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The reason why this price adjustment was made. + * @member {module:models/PriceAdjustmentRequest.ReasonCodeEnum} reason_code + */ + reason_code = undefined; + + + + + + + /** + * Allowed values for the level property. + * @enum {String} + * @readonly + */ + static LevelEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "shipping" + * @const + */ + shipping: 'shipping', + + /** + * value: "order" + * @const + */ + order: 'order' + }; + + /** + * Allowed values for the reason_code property. + * @enum {String} + * @readonly + */ + static ReasonCodeEnum = { + + /** + * value: "PRICE_MATCH" + * @const + */ + PRICE_MATCH: 'PRICE_MATCH', + + /** + * value: "BACKORDER" + * @const + */ + BACKORDER: 'BACKORDER', + + /** + * value: "EVEN_EXCHANGE" + * @const + */ + EVEN_EXCHANGE: 'EVEN_EXCHANGE' + }; + + + +} + + diff --git a/src/models/Product.js b/src/models/Product.js index a01435e..5447c99 100644 --- a/src/models/Product.js +++ b/src/models/Product.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +14,8 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BundledProduct from './BundledProduct' import ImageGroup from './ImageGroup' @@ -29,10 +30,14 @@ import Variant from './Variant' import VariationAttribute from './VariationAttribute' import VariationGroup from './VariationGroup' + + + + /** * The Product model module. * @module models/Product -* @version 17.8 +* @version 20.4 */ export default class Product { /** @@ -42,221 +47,16 @@ export default class Product { * @class * @param id {String} The id (SKU) of the product. */ + constructor(id) { - /** - * The product's brand. - * @member {String} brand - */ - this.brand = undefined - /** - * The array of all bundled products of this product. - * @member {Array.} bundled_products - */ - this.bundled_products = undefined - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - /** - * The European Article Number. - * @member {String} ean - */ - this.ean = undefined - /** - * @member {Number} fetch_date - */ - this.fetch_date = undefined - /** - * The id (SKU) of the product. - * @member {String} id - */ this.id = id - /** - * The array of product image groups. - * @member {Array.} image_groups - */ - this.image_groups = undefined - - /** - * The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property is only returned in context of the 'availability' expansion. - * @member {Array.} inventories - */ - this.inventories = undefined - - /** - * The site default inventory information. This property is only returned in context of the 'availability' expansion. - * @member {module:models/Inventory} inventory - */ - this.inventory = undefined - - /** - * The localized product long description. - * @member {String} long_description - */ - this.long_description = undefined - - /** - * The products manufacturer name. - * @member {String} manufacturer_name - */ - this.manufacturer_name = undefined - - /** - * The products manufacturer sku. - * @member {String} manufacturer_sku - */ - this.manufacturer_sku = undefined - - /** - * The master product information. Only for types master, variation group and variant. - * @member {module:models/Master} master - */ - this.master = undefined - - /** - * The minimum order quantity for this product. - * @member {Number} min_order_quantity - */ - this.min_order_quantity = undefined - - /** - * The localized product name. - * @member {String} name - */ - this.name = undefined - - /** - * The array of product options. This array can be empty. Only for type option. - * @member {Array.} options - */ - this.options = undefined - - /** - * The localized products page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized products page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized products page title. - * @member {String} page_title - */ - this.page_title = undefined - - /** - * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The maximum sales of related child products in case of complex products like master or set. - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * The prices map with price book ids and their values. - * @member {Object.} prices - */ - this.prices = undefined - - /** - * The id of the products primary category. - * @member {String} primary_category_id - */ - this.primary_category_id = undefined - - /** - * The array of source and target products links information. - * @member {Array.} product_links - */ - this.product_links = undefined - - /** - * The array of active customer product promotions for this product. This array can be empty. Coupon promotions are not returned in this array. - * @member {Array.} product_promotions - */ - this.product_promotions = undefined - - /** - * Returns a list of recommendations. - * @member {Array.} recommendations - */ - this.recommendations = undefined - - /** - * The array of set products of this product. - * @member {Array.} set_products - */ - this.set_products = undefined - - /** - * The localized product short description. - * @member {String} short_description - */ - this.short_description = undefined - - /** - * The steps in which the order amount of the product can be increased. - * @member {Number} step_quantity - */ - this.step_quantity = undefined - - /** - * The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set. - * @member {module:models/ProductType} type - */ - this.type = undefined - - /** - * The sales unit of the product. - * @member {String} unit - */ - this.unit = undefined - - /** - * The Universal Product Code. - * @member {String} upc - */ - this.upc = undefined - - /** - * The array of actual variants. This array can be empty. Only for types master, variation group and variant. - * @member {Array.} variants - */ - this.variants = undefined - - /** - * Sorted array of variation attributes information. This array can be empty. Only for types master, variation group and variant. - * @member {Array.} variation_attributes - */ - this.variation_attributes = undefined - - /** - * The array of actual variation groups. This array can be empty. Only for types master, variation group and variant. - * @member {Array.} variation_groups - */ - this.variation_groups = undefined - /** - * The actual variation attribute id - value pairs. Only for type variant and variation group. - * @member {Object.} variation_values - */ - this.variation_values = undefined } /** @@ -270,115 +70,1809 @@ export default class Product { if (data) { obj = obj || new Product() + + + + if (data.hasOwnProperty('brand')) { - obj['brand'] = ApiClient.convertToType(data['brand'], 'String') + obj.brand = ApiClient.convertToType(data.brand, 'String') } if (data.hasOwnProperty('bundled_products')) { - obj['bundled_products'] = ApiClient.convertToType(data['bundled_products'], [BundledProduct]) + obj.bundled_products = ApiClient.convertToType(data.bundled_products, [BundledProduct]) + } + if (data.hasOwnProperty('c_availableForInStorePickup')) { + obj.c_availableForInStorePickup = ApiClient.convertToType(data.c_availableForInStorePickup, 'Boolean') + } + if (data.hasOwnProperty('c_batteryLife')) { + obj.c_batteryLife = ApiClient.convertToType(data.c_batteryLife, 'String') + } + if (data.hasOwnProperty('c_batteryType')) { + obj.c_batteryType = ApiClient.convertToType(data.c_batteryType, 'String') + } + if (data.hasOwnProperty('c_bootType')) { + obj.c_bootType = ApiClient.convertToType(data.c_bootType, ['String']) + } + if (data.hasOwnProperty('c_bottomType')) { + obj.c_bottomType = ApiClient.convertToType(data.c_bottomType, ['String']) + } + if (data.hasOwnProperty('c_color')) { + obj.c_color = ApiClient.convertToType(data.c_color, 'String') + } + if (data.hasOwnProperty('c_consoleWarranty')) { + obj.c_consoleWarranty = ApiClient.convertToType(data.c_consoleWarranty, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } + if (data.hasOwnProperty('c_digitalCameraFeatures')) { + obj.c_digitalCameraFeatures = ApiClient.convertToType(data.c_digitalCameraFeatures, ['String']) + } + if (data.hasOwnProperty('c_digitalCameraPixels')) { + obj.c_digitalCameraPixels = ApiClient.convertToType(data.c_digitalCameraPixels, 'String') + } + if (data.hasOwnProperty('c_digitalCameraType')) { + obj.c_digitalCameraType = ApiClient.convertToType(data.c_digitalCameraType, 'String') + } + if (data.hasOwnProperty('c_digitalCameraWarranty')) { + obj.c_digitalCameraWarranty = ApiClient.convertToType(data.c_digitalCameraWarranty, 'String') + } + if (data.hasOwnProperty('c_dimDepth')) { + obj.c_dimDepth = ApiClient.convertToType(data.c_dimDepth, 'String') + } + if (data.hasOwnProperty('c_dimHeight')) { + obj.c_dimHeight = ApiClient.convertToType(data.c_dimHeight, 'String') + } + if (data.hasOwnProperty('c_dimWeight')) { + obj.c_dimWeight = ApiClient.convertToType(data.c_dimWeight, 'String') + } + if (data.hasOwnProperty('c_dimWidth')) { + obj.c_dimWidth = ApiClient.convertToType(data.c_dimWidth, 'String') + } + if (data.hasOwnProperty('c_displaySize')) { + obj.c_displaySize = ApiClient.convertToType(data.c_displaySize, 'String') + } + if (data.hasOwnProperty('c_gameGenre')) { + obj.c_gameGenre = ApiClient.convertToType(data.c_gameGenre, ['String']) + } + if (data.hasOwnProperty('c_gameRating')) { + obj.c_gameRating = ApiClient.convertToType(data.c_gameRating, 'String') + } + if (data.hasOwnProperty('c_gameSystemType')) { + obj.c_gameSystemType = ApiClient.convertToType(data.c_gameSystemType, 'String') + } + if (data.hasOwnProperty('c_gpsFeatures')) { + obj.c_gpsFeatures = ApiClient.convertToType(data.c_gpsFeatures, ['String']) + } + if (data.hasOwnProperty('c_gpsType')) { + obj.c_gpsType = ApiClient.convertToType(data.c_gpsType, ['String']) + } + if (data.hasOwnProperty('c_gpsWarranty')) { + obj.c_gpsWarranty = ApiClient.convertToType(data.c_gpsWarranty, 'String') + } + if (data.hasOwnProperty('c_imageAspectRatio')) { + obj.c_imageAspectRatio = ApiClient.convertToType(data.c_imageAspectRatio, 'String') + } + if (data.hasOwnProperty('c_isNew')) { + obj.c_isNew = ApiClient.convertToType(data.c_isNew, 'Boolean') + } + if (data.hasOwnProperty('c_isNewtest')) { + obj.c_isNewtest = ApiClient.convertToType(data.c_isNewtest, 'Boolean') + } + if (data.hasOwnProperty('c_isSale')) { + obj.c_isSale = ApiClient.convertToType(data.c_isSale, 'Boolean') + } + if (data.hasOwnProperty('c_kidsAge')) { + obj.c_kidsAge = ApiClient.convertToType(data.c_kidsAge, 'String') + } + if (data.hasOwnProperty('c_length')) { + obj.c_length = ApiClient.convertToType(data.c_length, 'String') + } + if (data.hasOwnProperty('c_lensAperture')) { + obj.c_lensAperture = ApiClient.convertToType(data.c_lensAperture, 'String') + } + if (data.hasOwnProperty('c_materialTest')) { + obj.c_materialTest = ApiClient.convertToType(data.c_materialTest, ['String']) + } + if (data.hasOwnProperty('c_mediaFormat')) { + obj.c_mediaFormat = ApiClient.convertToType(data.c_mediaFormat, ['String']) + } + if (data.hasOwnProperty('c_memorySize')) { + obj.c_memorySize = ApiClient.convertToType(data.c_memorySize, 'String') + } + if (data.hasOwnProperty('c_memoryType')) { + obj.c_memoryType = ApiClient.convertToType(data.c_memoryType, ['String']) + } + if (data.hasOwnProperty('c_musicStorage')) { + obj.c_musicStorage = ApiClient.convertToType(data.c_musicStorage, 'String') + } + if (data.hasOwnProperty('c_opticalZoom')) { + obj.c_opticalZoom = ApiClient.convertToType(data.c_opticalZoom, 'String') + } + if (data.hasOwnProperty('c_outerwearType')) { + obj.c_outerwearType = ApiClient.convertToType(data.c_outerwearType, 'String') + } + if (data.hasOwnProperty('c_portableAudioType')) { + obj.c_portableAudioType = ApiClient.convertToType(data.c_portableAudioType, ['String']) + } + if (data.hasOwnProperty('c_refinementColor')) { + obj.c_refinementColor = ApiClient.convertToType(data.c_refinementColor, 'String') + } + if (data.hasOwnProperty('c_resolution')) { + obj.c_resolution = ApiClient.convertToType(data.c_resolution, 'String') + } + if (data.hasOwnProperty('c_sandalType')) { + obj.c_sandalType = ApiClient.convertToType(data.c_sandalType, 'String') + } + if (data.hasOwnProperty('c_sheets')) { + obj.c_sheets = ApiClient.convertToType(data.c_sheets, ['String']) + } + if (data.hasOwnProperty('c_shoeType')) { + obj.c_shoeType = ApiClient.convertToType(data.c_shoeType, 'String') + } + if (data.hasOwnProperty('c_size')) { + obj.c_size = ApiClient.convertToType(data.c_size, 'String') + } + if (data.hasOwnProperty('c_skinConcern')) { + obj.c_skinConcern = ApiClient.convertToType(data.c_skinConcern, ['String']) + } + if (data.hasOwnProperty('c_styleNumber')) { + obj.c_styleNumber = ApiClient.convertToType(data.c_styleNumber, 'String') + } + if (data.hasOwnProperty('c_tabDescription')) { + obj.c_tabDescription = ApiClient.convertToType(data.c_tabDescription, 'String') + } + if (data.hasOwnProperty('c_tabDetails')) { + obj.c_tabDetails = ApiClient.convertToType(data.c_tabDetails, 'String') + } + if (data.hasOwnProperty('c_test')) { + obj.c_test = ApiClient.convertToType(data.c_test, 'String') + } + if (data.hasOwnProperty('c_topType')) { + obj.c_topType = ApiClient.convertToType(data.c_topType, 'String') + } + if (data.hasOwnProperty('c_tvSignalFormat')) { + obj.c_tvSignalFormat = ApiClient.convertToType(data.c_tvSignalFormat, 'String') + } + if (data.hasOwnProperty('c_tvSize')) { + obj.c_tvSize = ApiClient.convertToType(data.c_tvSize, 'String') + } + if (data.hasOwnProperty('c_tvType')) { + obj.c_tvType = ApiClient.convertToType(data.c_tvType, 'String') + } + if (data.hasOwnProperty('c_tvWarranty')) { + obj.c_tvWarranty = ApiClient.convertToType(data.c_tvWarranty, 'String') + } + if (data.hasOwnProperty('c_videoStorage')) { + obj.c_videoStorage = ApiClient.convertToType(data.c_videoStorage, 'String') + } + if (data.hasOwnProperty('c_waist')) { + obj.c_waist = ApiClient.convertToType(data.c_waist, 'String') + } + if (data.hasOwnProperty('c_width')) { + obj.c_width = ApiClient.convertToType(data.c_width, 'String') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('ean')) { - obj['ean'] = ApiClient.convertToType(data['ean'], 'String') + obj.ean = ApiClient.convertToType(data.ean, 'String') } if (data.hasOwnProperty('fetch_date')) { - obj['fetch_date'] = ApiClient.convertToType(data['fetch_date'], 'Number') + obj.fetch_date = ApiClient.convertToType(data.fetch_date, 'Number') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image_groups')) { - obj['image_groups'] = ApiClient.convertToType(data['image_groups'], [ImageGroup]) + obj.image_groups = ApiClient.convertToType(data.image_groups, [ImageGroup]) } if (data.hasOwnProperty('inventories')) { - obj['inventories'] = ApiClient.convertToType(data['inventories'], [Inventory]) + obj.inventories = ApiClient.convertToType(data.inventories, [Inventory]) } if (data.hasOwnProperty('inventory')) { - obj['inventory'] = Inventory.constructFromObject(data['inventory']) + obj.inventory = Inventory.constructFromObject(data.inventory) } if (data.hasOwnProperty('long_description')) { - obj['long_description'] = ApiClient.convertToType(data['long_description'], 'String') + obj.long_description = ApiClient.convertToType(data.long_description, 'String') } if (data.hasOwnProperty('manufacturer_name')) { - obj['manufacturer_name'] = ApiClient.convertToType(data['manufacturer_name'], 'String') + obj.manufacturer_name = ApiClient.convertToType(data.manufacturer_name, 'String') } if (data.hasOwnProperty('manufacturer_sku')) { - obj['manufacturer_sku'] = ApiClient.convertToType(data['manufacturer_sku'], 'String') + obj.manufacturer_sku = ApiClient.convertToType(data.manufacturer_sku, 'String') } if (data.hasOwnProperty('master')) { - obj['master'] = Master.constructFromObject(data['master']) + obj.master = Master.constructFromObject(data.master) } if (data.hasOwnProperty('min_order_quantity')) { - obj['min_order_quantity'] = ApiClient.convertToType(data['min_order_quantity'], 'Number') + obj.min_order_quantity = ApiClient.convertToType(data.min_order_quantity, 'Number') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Option]) + obj.options = ApiClient.convertToType(data.options, [Option]) } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } if (data.hasOwnProperty('primary_category_id')) { - obj['primary_category_id'] = ApiClient.convertToType(data['primary_category_id'], 'String') + obj.primary_category_id = ApiClient.convertToType(data.primary_category_id, 'String') } if (data.hasOwnProperty('product_links')) { - obj['product_links'] = ApiClient.convertToType(data['product_links'], [ProductLink]) + obj.product_links = ApiClient.convertToType(data.product_links, [ProductLink]) } if (data.hasOwnProperty('product_promotions')) { - obj['product_promotions'] = ApiClient.convertToType(data['product_promotions'], [ProductPromotion]) + obj.product_promotions = ApiClient.convertToType(data.product_promotions, [ProductPromotion]) } if (data.hasOwnProperty('recommendations')) { - obj['recommendations'] = ApiClient.convertToType(data['recommendations'], [Recommendation]) + obj.recommendations = ApiClient.convertToType(data.recommendations, [Recommendation]) } if (data.hasOwnProperty('set_products')) { - obj['set_products'] = ApiClient.convertToType(data['set_products'], [Product]) + obj.set_products = ApiClient.convertToType(data.set_products, [Product]) } if (data.hasOwnProperty('short_description')) { - obj['short_description'] = ApiClient.convertToType(data['short_description'], 'String') + obj.short_description = ApiClient.convertToType(data.short_description, 'String') } if (data.hasOwnProperty('step_quantity')) { - obj['step_quantity'] = ApiClient.convertToType(data['step_quantity'], 'Number') + obj.step_quantity = ApiClient.convertToType(data.step_quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ProductType.constructFromObject(data['type']) + obj.type = ProductType.constructFromObject(data.type) } if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String') + obj.unit = ApiClient.convertToType(data.unit, 'String') } if (data.hasOwnProperty('upc')) { - obj['upc'] = ApiClient.convertToType(data['upc'], 'String') + obj.upc = ApiClient.convertToType(data.upc, 'String') + } + if (data.hasOwnProperty('valid_from')) { + obj.valid_from = ApiClient.convertToType(data.valid_from, 'Date') + } + if (data.hasOwnProperty('valid_to')) { + obj.valid_to = ApiClient.convertToType(data.valid_to, 'Date') } if (data.hasOwnProperty('variants')) { - obj['variants'] = ApiClient.convertToType(data['variants'], [Variant]) + obj.variants = ApiClient.convertToType(data.variants, [Variant]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } if (data.hasOwnProperty('variation_groups')) { - obj['variation_groups'] = ApiClient.convertToType(data['variation_groups'], [VariationGroup]) + obj.variation_groups = ApiClient.convertToType(data.variation_groups, [VariationGroup]) } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } return obj } + + /** + * The product's brand. + * @member {String} brand + */ + brand = undefined; + /** + * The array of all bundled products of this product. + * @member {Array.} bundled_products + */ + bundled_products = undefined; + /** + * Signals if there are inventory lists for brick-and-mortar stores associated with this product. + * @member {Boolean} c_availableForInStorePickup + */ + c_availableForInStorePickup = undefined; + /** + * @member {String} c_batteryLife + */ + c_batteryLife = undefined; + /** + * @member {String} c_batteryType + */ + c_batteryType = undefined; + /** + * Type of Boot for search refinement. + * @member {Array.} c_bootType + */ + c_bootType = undefined; + /** + * Bottom type for search refinement + * @member {Array.} c_bottomType + */ + c_bottomType = undefined; + /** + * Product color used for variation attribute + * @member {String} c_color + */ + c_color = undefined; + /** + * @member {String} c_consoleWarranty + */ + c_consoleWarranty = undefined; + /** + * Use this attribute to apply custom styles for this product. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * @member {Array.} c_digitalCameraFeatures + */ + c_digitalCameraFeatures = undefined; + /** + * @member {String} c_digitalCameraPixels + */ + c_digitalCameraPixels = undefined; + /** + * @member {String} c_digitalCameraType + */ + c_digitalCameraType = undefined; + /** + * @member {String} c_digitalCameraWarranty + */ + c_digitalCameraWarranty = undefined; + /** + * @member {String} c_dimDepth + */ + c_dimDepth = undefined; + /** + * @member {String} c_dimHeight + */ + c_dimHeight = undefined; + /** + * @member {String} c_dimWeight + */ + c_dimWeight = undefined; + /** + * @member {String} c_dimWidth + */ + c_dimWidth = undefined; + /** + * @member {String} c_displaySize + */ + c_displaySize = undefined; + /** + * @member {Array.} c_gameGenre + */ + c_gameGenre = undefined; + /** + * @member {String} c_gameRating + */ + c_gameRating = undefined; + /** + * @member {String} c_gameSystemType + */ + c_gameSystemType = undefined; + /** + * @member {Array.} c_gpsFeatures + */ + c_gpsFeatures = undefined; + /** + * @member {Array.} c_gpsType + */ + c_gpsType = undefined; + /** + * @member {String} c_gpsWarranty + */ + c_gpsWarranty = undefined; + /** + * @member {String} c_imageAspectRatio + */ + c_imageAspectRatio = undefined; + /** + * @member {Boolean} c_isNew + */ + c_isNew = undefined; + /** + * This indiciates if the product is a new arrival. + * @member {Boolean} c_isNewtest + */ + c_isNewtest = undefined; + /** + * This is the help text. It is used for sorting rules. + * @member {Boolean} c_isSale + */ + c_isSale = undefined; + /** + * Kids Age used for search refinements + * @member {module:models/Product.CKidsAgeEnum} c_kidsAge + */ + c_kidsAge = undefined; + /** + * This attribute is used for mens and womens pants lengths. + * @member {String} c_length + */ + c_length = undefined; + /** + * @member {String} c_lensAperture + */ + c_lensAperture = undefined; + /** + * @member {Array.} c_materialTest + */ + c_materialTest = undefined; + /** + * Media Format + * @member {Array.} c_mediaFormat + */ + c_mediaFormat = undefined; + /** + * Memory Size + * @member {String} c_memorySize + */ + c_memorySize = undefined; + /** + * @member {Array.} c_memoryType + */ + c_memoryType = undefined; + /** + * @member {String} c_musicStorage + */ + c_musicStorage = undefined; + /** + * @member {String} c_opticalZoom + */ + c_opticalZoom = undefined; + /** + * Type of Outerwear for search refinement + * @member {module:models/Product.COuterwearTypeEnum} c_outerwearType + */ + c_outerwearType = undefined; + /** + * @member {Array.} c_portableAudioType + */ + c_portableAudioType = undefined; + /** + * @member {module:models/Product.CRefinementColorEnum} c_refinementColor + */ + c_refinementColor = undefined; + /** + * @member {String} c_resolution + */ + c_resolution = undefined; + /** + * Type of Sandal for search refinement + * @member {module:models/Product.CSandalTypeEnum} c_sandalType + */ + c_sandalType = undefined; + /** + * test attribute + * @member {Array.} c_sheets + */ + c_sheets = undefined; + /** + * Type of Shoe for search refinements + * @member {module:models/Product.CShoeTypeEnum} c_shoeType + */ + c_shoeType = undefined; + /** + * This attribute is used for all footwear, apparel and accessory sizing for men, women and kids products. + * @member {String} c_size + */ + c_size = undefined; + /** + * @member {Array.} c_skinConcern + */ + c_skinConcern = undefined; + /** + * @member {String} c_styleNumber + */ + c_styleNumber = undefined; + /** + * @member {String} c_tabDescription + */ + c_tabDescription = undefined; + /** + * @member {String} c_tabDetails + */ + c_tabDetails = undefined; + /** + * @member {String} c_test + */ + c_test = undefined; + /** + * Type of tops in clothing + * @member {String} c_topType + */ + c_topType = undefined; + /** + * @member {String} c_tvSignalFormat + */ + c_tvSignalFormat = undefined; + /** + * @member {String} c_tvSize + */ + c_tvSize = undefined; + /** + * @member {module:models/Product.CTvTypeEnum} c_tvType + */ + c_tvType = undefined; + /** + * @member {String} c_tvWarranty + */ + c_tvWarranty = undefined; + /** + * @member {String} c_videoStorage + */ + c_videoStorage = undefined; + /** + * Attribute used for apparel waist sizing. + * @member {String} c_waist + */ + c_waist = undefined; + /** + * This attribute is used for shoe widths for mens, womens and kids. + * @member {String} c_width + */ + c_width = undefined; + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The European Article Number. + * @member {String} ean + */ + ean = undefined; + /** + * @member {Number} fetch_date + */ + fetch_date = undefined; + /** + * The id (SKU) of the product. + * @member {String} id + */ + id = undefined; + /** + * The array of product image groups. + * @member {Array.} image_groups + */ + image_groups = undefined; + /** + * The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property is only returned in context of the 'availability' expansion. + * @member {Array.} inventories + */ + inventories = undefined; + /** + * The site default inventory information. This property is only returned in context of the 'availability' expansion. + * @member {module:models/Inventory} inventory + */ + inventory = undefined; + /** + * The localized product long description. + * @member {String} long_description + */ + long_description = undefined; + /** + * The products manufacturer name. + * @member {String} manufacturer_name + */ + manufacturer_name = undefined; + /** + * The products manufacturer sku. + * @member {String} manufacturer_sku + */ + manufacturer_sku = undefined; + /** + * The master product information. Only for types master, variation group and variant. + * @member {module:models/Master} master + */ + master = undefined; + /** + * The minimum order quantity for this product. + * @member {Number} min_order_quantity + */ + min_order_quantity = undefined; + /** + * The localized product name. + * @member {String} name + */ + name = undefined; + /** + * The array of product options. This array can be empty. Only for type option. + * @member {Array.} options + */ + options = undefined; + /** + * The localized products page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized products page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized products page title. + * @member {String} page_title + */ + page_title = undefined; + /** + * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The maximum sales of related child products in case of complex products like master or set. + * @member {Number} price_max + */ + price_max = undefined; + /** + * The prices map with price book ids and their values. + * @member {Object.} prices + */ + prices = undefined; + /** + * The id of the products primary category. + * @member {String} primary_category_id + */ + primary_category_id = undefined; + /** + * The array of source and target products links information. + * @member {Array.} product_links + */ + product_links = undefined; + /** + * The array of active customer product promotions for this product. This array can be empty. Coupon promotions are not returned in this array. + * @member {Array.} product_promotions + */ + product_promotions = undefined; + /** + * Returns a list of recommendations. + * @member {Array.} recommendations + */ + recommendations = undefined; + /** + * The array of set products of this product. + * @member {Array.} set_products + */ + set_products = undefined; + /** + * The localized product short description. + * @member {String} short_description + */ + short_description = undefined; + /** + * The steps in which the order amount of the product can be increased. + * @member {Number} step_quantity + */ + step_quantity = undefined; + /** + * The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set. + * @member {module:models/ProductType} type + */ + type = undefined; + /** + * The sales unit of the product. + * @member {String} unit + */ + unit = undefined; + /** + * The Universal Product Code. + * @member {String} upc + */ + upc = undefined; + /** + * The time when product is valid from. + * @member {Date} valid_from + */ + valid_from = undefined; + /** + * The time when product is valid to. + * @member {Date} valid_to + */ + valid_to = undefined; + /** + * The array of actual variants. This array can be empty. Only for types master, variation group and variant. + * @member {Array.} variants + */ + variants = undefined; + /** + * Sorted array of variation attributes information. This array can be empty. Only for types master, variation group and variant. + * @member {Array.} variation_attributes + */ + variation_attributes = undefined; + /** + * The array of actual variation groups. This array can be empty. Only for types master, variation group and variant. + * @member {Array.} variation_groups + */ + variation_groups = undefined; + /** + * The actual variation attribute id - value pairs. Only for type variant and variation group. + * @member {Object.} variation_values + */ + variation_values = undefined; + + + + + + + /** + * Allowed values for the cBootType property. + * @enum {String} + * @readonly + */ + static CBootTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070' + }; + + /** + * Allowed values for the cBottomType property. + * @enum {String} + * @readonly + */ + static CBottomTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080' + }; + + /** + * Allowed values for the cDigitalCameraFeatures property. + * @enum {String} + * @readonly + */ + static CDigitalCameraFeaturesEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110', + + /** + * value: "0120" + * @const + */ + '0120': '0120', + + /** + * value: "0130" + * @const + */ + '0130': '0130', + + /** + * value: "0140" + * @const + */ + '0140': '0140', + + /** + * value: "0150" + * @const + */ + '0150': '0150', + + /** + * value: "0160" + * @const + */ + '0160': '0160', + + /** + * value: "0170" + * @const + */ + '0170': '0170', + + /** + * value: "0180" + * @const + */ + '0180': '0180', + + /** + * value: "0190" + * @const + */ + '0190': '0190', + + /** + * value: "0200" + * @const + */ + '0200': '0200', + + /** + * value: "0210" + * @const + */ + '0210': '0210', + + /** + * value: "0220" + * @const + */ + '0220': '0220', + + /** + * value: "0230" + * @const + */ + '0230': '0230', + + /** + * value: "0240" + * @const + */ + '0240': '0240', + + /** + * value: "0250" + * @const + */ + '0250': '0250', + + /** + * value: "0260" + * @const + */ + '0260': '0260', + + /** + * value: "0270" + * @const + */ + '0270': '0270', + + /** + * value: "0280" + * @const + */ + '0280': '0280' + }; + + /** + * Allowed values for the cGameGenre property. + * @enum {String} + * @readonly + */ + static CGameGenreEnum = { + + /** + * value: "Action" + * @const + */ + Action: 'Action', + + /** + * value: "Educational" + * @const + */ + Educational: 'Educational', + + /** + * value: "Kids" + * @const + */ + Kids: 'Kids', + + /** + * value: "Racing" + * @const + */ + Racing: 'Racing', + + /** + * value: "Role-Playing" + * @const + */ + 'Role-Playing': 'Role-Playing', + + /** + * value: "Sports" + * @const + */ + Sports: 'Sports', + + /** + * value: "Strategy" + * @const + */ + Strategy: 'Strategy' + }; + + /** + * Allowed values for the cGpsFeatures property. + * @enum {String} + * @readonly + */ + static CGpsFeaturesEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110', + + /** + * value: "0120" + * @const + */ + '0120': '0120', + + /** + * value: "0130" + * @const + */ + '0130': '0130', + + /** + * value: "0140" + * @const + */ + '0140': '0140', + + /** + * value: "0150" + * @const + */ + '0150': '0150', + + /** + * value: "0160" + * @const + */ + '0160': '0160', + + /** + * value: "0170" + * @const + */ + '0170': '0170', + + /** + * value: "0180" + * @const + */ + '0180': '0180', + + /** + * value: "0190" + * @const + */ + '0190': '0190', + + /** + * value: "0200" + * @const + */ + '0200': '0200', + + /** + * value: "0210" + * @const + */ + '0210': '0210', + + /** + * value: "0230" + * @const + */ + '0230': '0230' + }; + + /** + * Allowed values for the cGpsType property. + * @enum {String} + * @readonly + */ + static CGpsTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040' + }; + + /** + * Allowed values for the c_kidsAge property. + * @enum {String} + * @readonly + */ + static CKidsAgeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070' + }; + + /** + * Allowed values for the cMaterialTest property. + * @enum {String} + * @readonly + */ + static CMaterialTestEnum = { + + /** + * value: "cotton" + * @const + */ + cotton: 'cotton', + + /** + * value: "wool" + * @const + */ + wool: 'wool', + + /** + * value: "polyester" + * @const + */ + polyester: 'polyester' + }; + + /** + * Allowed values for the cMediaFormat property. + * @enum {String} + * @readonly + */ + static CMediaFormatEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100' + }; + + /** + * Allowed values for the cMemoryType property. + * @enum {String} + * @readonly + */ + static CMemoryTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090' + }; + + /** + * Allowed values for the c_outerwearType property. + * @enum {String} + * @readonly + */ + static COuterwearTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080' + }; + + /** + * Allowed values for the cPortableAudioType property. + * @enum {String} + * @readonly + */ + static CPortableAudioTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030' + }; + + /** + * Allowed values for the c_refinementColor property. + * @enum {String} + * @readonly + */ + static CRefinementColorEnum = { + + /** + * value: "black" + * @const + */ + black: 'black', + + /** + * value: "blue" + * @const + */ + blue: 'blue', + + /** + * value: "green" + * @const + */ + green: 'green', + + /** + * value: "red" + * @const + */ + red: 'red', + + /** + * value: "orange" + * @const + */ + orange: 'orange', + + /** + * value: "pink" + * @const + */ + pink: 'pink', + + /** + * value: "purple" + * @const + */ + purple: 'purple', + + /** + * value: "white" + * @const + */ + white: 'white', + + /** + * value: "yellow" + * @const + */ + yellow: 'yellow', + + /** + * value: "grey" + * @const + */ + grey: 'grey', + + /** + * value: "beige" + * @const + */ + beige: 'beige', + + /** + * value: "miscellaneous" + * @const + */ + miscellaneous: 'miscellaneous', + + /** + * value: "brown" + * @const + */ + brown: 'brown', + + /** + * value: "navy" + * @const + */ + navy: 'navy' + }; + + /** + * Allowed values for the c_sandalType property. + * @enum {String} + * @readonly + */ + static CSandalTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030' + }; + + /** + * Allowed values for the cSheets property. + * @enum {String} + * @readonly + */ + static CSheetsEnum = { + + /** + * value: "value1" + * @const + */ + value1: 'value1', + + /** + * value: "value2" + * @const + */ + value2: 'value2', + + /** + * value: "value3" + * @const + */ + value3: 'value3' + }; + + /** + * Allowed values for the c_shoeType property. + * @enum {String} + * @readonly + */ + static CShoeTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110' + }; + + /** + * Allowed values for the cSkinConcern property. + * @enum {String} + * @readonly + */ + static CSkinConcernEnum = { + + /** + * value: "dryTight" + * @const + */ + dryTight: 'dryTight', + + /** + * value: "comprehensive" + * @const + */ + comprehensive: 'comprehensive', + + /** + * value: "liftingLossFirm" + * @const + */ + liftingLossFirm: 'liftingLossFirm' + }; + + /** + * Allowed values for the c_tvType property. + * @enum {String} + * @readonly + */ + static CTvTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040' + }; + + + } diff --git a/src/models/ProductDetailsLink.js b/src/models/ProductDetailsLink.js index 24633d7..7e2b709 100644 --- a/src/models/ProductDetailsLink.js +++ b/src/models/ProductDetailsLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductDetailsLink model module. * @module models/ProductDetailsLink -* @version 17.8 +* @version 20.4 */ export default class ProductDetailsLink { /** @@ -30,36 +35,16 @@ export default class ProductDetailsLink { * @class * @param productId {String} The id of the product. */ + constructor(productId) { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The description of the product. - * @member {String} product_description - */ - this.product_description = undefined - - /** - * The id of the product. - * @member {String} product_id - */ + + + + + this.product_id = productId - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + } /** @@ -73,23 +58,62 @@ export default class ProductDetailsLink { if (data) { obj = obj || new ProductDetailsLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('product_description')) { - obj['product_description'] = ApiClient.convertToType(data['product_description'], 'String') + obj.product_description = ApiClient.convertToType(data.product_description, 'String') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The description of the product. + * @member {String} product_description + */ + product_description = undefined; + /** + * The id of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + + diff --git a/src/models/ProductItem.js b/src/models/ProductItem.js index 262debb..c135bc2 100644 --- a/src/models/ProductItem.js +++ b/src/models/ProductItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,274 +14,275 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OptionItem from './OptionItem' import PriceAdjustment from './PriceAdjustment' import ProductListItemReference from './ProductListItemReference' -/** - * The ProductItem model module. - * @module models/ProductItem - * @version 17.8 - */ -export default class ProductItem { - /** - * Constructs a new ProductItem. - * Document representing a product item. - * @alias module:models/ProductItem - * @class - * @param quantity {Number} The quantity of the products represented by this item. - */ - constructor(quantity) { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before applying adjustments, - * in the purchase currency. The base price may be net or gross of tax depending on the - * configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - /** - * The id of the bonus discount line item this bonus product relates to. - * @member {String} bonus_discount_line_item_id - */ - this.bonus_discount_line_item_id = undefined - /** - * A flag indicating whether the product item is a bonus. - * @member {Boolean} bonus_product_line_item - */ - this.bonus_product_line_item = undefined - /** - * The array of bundled product items. Can be empty. - * @member {Array.} bundled_product_items - */ - this.bundled_product_items = undefined - /** - * Returns true if the item is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The inventory list id associated with this item. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The item identifier. Use this to identify an item when updating the item quantity or - * creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The array of option items. This array can be empty. - * @member {Array.} option_items - */ - this.option_items = undefined - - /** - * The price of the line item before applying any adjustments. If the line item is based - * on net pricing then the net price is returned. If the line item is based on gross - * pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.} price_adjustments - */ - this.price_adjustments = undefined +/** +* The ProductItem model module. +* @module models/ProductItem +* @version 20.4 +*/ +export default class ProductItem { + /** + * Constructs a new ProductItem. + * Document representing a product item. + * @alias module:models/ProductItem + * @class + * @param quantity {Number} The quantity of the products represented by this item. + */ - /** - * The price of the product line item after applying all product-level adjustments. For - * net pricing the adjusted net price is returned. For gross pricing, the adjusted gross - * price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined + constructor(quantity) { - /** - * The price of this product line item after considering all dependent price adjustments - * and prorating all order-level price adjustments. For net pricing the net price is - * returned. For gross pricing, the gross price is returned. - * @member {Number} price_after_order_discount - */ - this.price_after_order_discount = undefined - /** - * - * @member {String} product_id - */ - this.product_id = undefined - /** - * - * @member {module:models/ProductListItemReference} product_list_item - */ - this.product_list_item = undefined - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - /** - * The quantity of the products represented by this item. - * @member {Number} quantity - */ this.quantity = quantity - /** - * The id of the shipment which includes the product item. - * @member {String} shipment_id - */ - this.shipment_id = undefined - - /** - * The reference to the related shipping item if it exists. This is the case if for example - * when a surcharge is defined for individual products using a particular a shipping method. - * @member {String} shipping_item_id - */ - this.shipping_item_id = undefined - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined - - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - - /** - * The tax class ID for the product item or null if no tax class ID is associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined } /** - * Constructs a ProductItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:models/ProductItem} obj Optional instance to populate. - * @return {module:models/ProductItem} The populated ProductItem instance. - */ + * Constructs a ProductItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ProductItem} obj Optional instance to populate. + * @return {module:models/ProductItem} The populated ProductItem instance. + */ static constructFromObject(data, obj) { if (data) { obj = obj || new ProductItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('bonus_discount_line_item_id')) { - obj['bonus_discount_line_item_id'] = ApiClient.convertToType(data['bonus_discount_line_item_id'], 'String') + obj.bonus_discount_line_item_id = ApiClient.convertToType(data.bonus_discount_line_item_id, 'String') } if (data.hasOwnProperty('bonus_product_line_item')) { - obj['bonus_product_line_item'] = ApiClient.convertToType(data['bonus_product_line_item'], 'Boolean') + obj.bonus_product_line_item = ApiClient.convertToType(data.bonus_product_line_item, 'Boolean') } if (data.hasOwnProperty('bundled_product_items')) { - obj['bundled_product_items'] = ApiClient.convertToType(data['bundled_product_items'], [ProductItem]) + obj.bundled_product_items = ApiClient.convertToType(data.bundled_product_items, [ProductItem]) + } + if (data.hasOwnProperty('c_fromStoreId')) { + obj.c_fromStoreId = ApiClient.convertToType(data.c_fromStoreId, 'String') } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('option_items')) { - obj['option_items'] = ApiClient.convertToType(data['option_items'], [OptionItem]) + obj.option_items = ApiClient.convertToType(data.option_items, [OptionItem]) } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('price_after_order_discount')) { - obj['price_after_order_discount'] = ApiClient.convertToType(data['price_after_order_discount'], 'Number') + obj.price_after_order_discount = ApiClient.convertToType(data.price_after_order_discount, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_list_item')) { - obj['product_list_item'] = ProductListItemReference.constructFromObject(data['product_list_item']) + obj.product_list_item = ProductListItemReference.constructFromObject(data.product_list_item) } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipping_item_id')) { - obj['shipping_item_id'] = ApiClient.convertToType(data['shipping_item_id'], 'String') + obj.shipping_item_id = ApiClient.convertToType(data.shipping_item_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The id of the bonus discount line item this bonus product relates to. + * @member {String} bonus_discount_line_item_id + */ + bonus_discount_line_item_id = undefined; + /** + * A flag indicating whether the product item is a bonus. + * @member {Boolean} bonus_product_line_item + */ + bonus_product_line_item = undefined; + /** + * The array of bundled product items. Can be empty. + * @member {Array.} bundled_product_items + */ + bundled_product_items = undefined; + /** + * Links the store to the product line item for grouping shipments in the checkout process. + * @member {String} c_fromStoreId + */ + c_fromStoreId = undefined; + /** + * Returns true if the item is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The inventory list id associated with this item. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The array of option items. This array can be empty. + * @member {Array.} option_items + */ + option_items = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The price of this product line item after considering all dependent price adjustments and prorating all order-level price adjustments. For net pricing the net price is returned. For gross pricing, the gross price is returned. + * @member {Number} price_after_order_discount + */ + price_after_order_discount = undefined; + /** + * + * @member {String} product_id + */ + product_id = undefined; + /** + * + * @member {module:models/ProductListItemReference} product_list_item + */ + product_list_item = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The quantity of the products represented by this item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The id of the shipment which includes the product item. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The reference to the related shipping item if it exists. This is the case if for example when a surcharge is defined for individual products using a particular a shipping method. + * @member {String} shipping_item_id + */ + shipping_item_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + } diff --git a/src/models/ProductLink.js b/src/models/ProductLink.js index cc7fbfe..0c4da06 100644 --- a/src/models/ProductLink.js +++ b/src/models/ProductLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductLink model module. * @module models/ProductLink -* @version 17.8 +* @version 20.4 */ export default class ProductLink { /** @@ -29,36 +34,16 @@ export default class ProductLink { * @alias module:models/ProductLink * @class */ + constructor() { - /** - * The semantic id of the product from which this product link is coming. - * @member {String} source_product_id - */ - this.source_product_id = undefined - /** - * The URL addressing the product from which this product link is coming. - * @member {String} source_product_link - */ - this.source_product_link = undefined - /** - * The semantic id of the product to which this product link is pointing. - * @member {String} target_product_id - */ - this.target_product_id = undefined - /** - * The URL addressing the product to which this product link is pointing. - * @member {String} target_product_link - */ - this.target_product_link = undefined - /** - * The type of this product link. - * @member {module:models/ProductLink.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -72,79 +57,118 @@ export default class ProductLink { if (data) { obj = obj || new ProductLink() + + + + if (data.hasOwnProperty('source_product_id')) { - obj['source_product_id'] = ApiClient.convertToType(data['source_product_id'], 'String') + obj.source_product_id = ApiClient.convertToType(data.source_product_id, 'String') } if (data.hasOwnProperty('source_product_link')) { - obj['source_product_link'] = ApiClient.convertToType(data['source_product_link'], 'String') + obj.source_product_link = ApiClient.convertToType(data.source_product_link, 'String') } if (data.hasOwnProperty('target_product_id')) { - obj['target_product_id'] = ApiClient.convertToType(data['target_product_id'], 'String') + obj.target_product_id = ApiClient.convertToType(data.target_product_id, 'String') } if (data.hasOwnProperty('target_product_link')) { - obj['target_product_link'] = ApiClient.convertToType(data['target_product_link'], 'String') + obj.target_product_link = ApiClient.convertToType(data.target_product_link, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -ProductLink.TypeEnum = { /** - * value: "cross_sell" - * @const - */ - cross_sell: 'cross_sell', - + * The semantic id of the product from which this product link is coming. + * @member {String} source_product_id + */ + source_product_id = undefined; /** - * value: "replacement" - * @const - */ - replacement: 'replacement', - + * The URL addressing the product from which this product link is coming. + * @member {String} source_product_link + */ + source_product_link = undefined; /** - * value: "up_sell" - * @const - */ - up_sell: 'up_sell', - + * The semantic id of the product to which this product link is pointing. + * @member {String} target_product_id + */ + target_product_id = undefined; /** - * value: "accessory" - * @const - */ - accessory: 'accessory', - + * The URL addressing the product to which this product link is pointing. + * @member {String} target_product_link + */ + target_product_link = undefined; /** - * value: "newer_version" - * @const - */ - newer_version: 'newer_version', + * The type of this product link. + * @member {module:models/ProductLink.TypeEnum} type + */ + type = undefined; + + + - /** - * value: "alt_orderunit" - * @const - */ - alt_orderunit: 'alt_orderunit', - /** - * value: "spare_part" - * @const - */ - spare_part: 'spare_part', /** - * value: "other" - * @const - */ - other: 'other' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "cross_sell" + * @const + */ + cross_sell: 'cross_sell', + + /** + * value: "replacement" + * @const + */ + replacement: 'replacement', + + /** + * value: "up_sell" + * @const + */ + up_sell: 'up_sell', + + /** + * value: "accessory" + * @const + */ + accessory: 'accessory', + + /** + * value: "newer_version" + * @const + */ + newer_version: 'newer_version', + + /** + * value: "alt_orderunit" + * @const + */ + alt_orderunit: 'alt_orderunit', + + /** + * value: "spare_part" + * @const + */ + spare_part: 'spare_part', + + /** + * value: "other" + * @const + */ + other: 'other' + }; + + + } + + diff --git a/src/models/ProductListEvent.js b/src/models/ProductListEvent.js index 68a5db2..9696728 100644 --- a/src/models/ProductListEvent.js +++ b/src/models/ProductListEvent.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListEvent model module. * @module models/ProductListEvent -* @version 17.8 +* @version 20.4 */ export default class ProductListEvent { /** @@ -29,36 +34,16 @@ export default class ProductListEvent { * @alias module:models/ProductListEvent * @class */ + constructor() { - /** - * The city where the event takes place. - * @member {String} city - */ - this.city = undefined - - /** - * The country where the event takes place. - * @member {String} country - */ - this.country = undefined - - /** - * The date when the event takes place. - * @member {Date} date - */ - this.date = undefined - - /** - * The federal state where the event takes place. - * @member {String} state - */ - this.state = undefined - - /** - * Type of the event to celebrate. - * @member {String} type - */ - this.type = undefined + + + + + + + + } /** @@ -72,23 +57,62 @@ export default class ProductListEvent { if (data) { obj = obj || new ProductListEvent() + + + + if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String') + obj.country = ApiClient.convertToType(data.country, 'String') } if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date') + obj.date = ApiClient.convertToType(data.date, 'Date') } if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String') + obj.state = ApiClient.convertToType(data.state, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } + + /** + * The city where the event takes place. + * @member {String} city + */ + city = undefined; + /** + * The country where the event takes place. + * @member {String} country + */ + country = undefined; + /** + * The date when the event takes place. + * @member {Date} date + */ + date = undefined; + /** + * The federal state where the event takes place. + * @member {String} state + */ + state = undefined; + /** + * Type of the event to celebrate. + * @member {String} type + */ + type = undefined; + + + + + + + + } + + diff --git a/src/models/ProductListItemReference.js b/src/models/ProductListItemReference.js index cb66429..daffe36 100644 --- a/src/models/ProductListItemReference.js +++ b/src/models/ProductListItemReference.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductDetailsLink from './ProductDetailsLink' import ProductListLink from './ProductListLink' + + + + /** * The ProductListItemReference model module. * @module models/ProductListItemReference -* @version 17.8 +* @version 20.4 */ export default class ProductListItemReference { /** @@ -31,48 +36,16 @@ export default class ProductListItemReference { * @class * @param id {String} The id of the product list item. */ + constructor(id) { - /** - * The id of the product list item. - * @member {String} id - */ - this.id = id - /** - * @member {Number} priority - */ - this.priority = undefined - /** - * @member {module:models/ProductDetailsLink} product_details_link - */ - this.product_details_link = undefined - /** - * The link of the product list, the item is assigned - * @member {module:models/ProductListLink} product_list - */ - this.product_list = undefined - /** - * @member {Boolean} public - */ - this.public = undefined - /** - * @member {Number} purchased_quantity - */ - this.purchased_quantity = undefined + this.id = id - /** - * @member {Number} quantity - */ - this.quantity = undefined - /** - * @member {module:models/ProductListItemReference.TypeEnum} type - */ - this.type = undefined } /** @@ -86,52 +59,100 @@ export default class ProductListItemReference { if (data) { obj = obj || new ProductListItemReference() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductDetailsLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductDetailsLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('product_list')) { - obj['product_list'] = ProductListLink.constructFromObject(data['product_list']) + obj.product_list = ProductListLink.constructFromObject(data.product_list) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('purchased_quantity')) { - obj['purchased_quantity'] = ApiClient.convertToType(data['purchased_quantity'], 'Number') + obj.purchased_quantity = ApiClient.convertToType(data.purchased_quantity, 'Number') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -ProductListItemReference.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of the product list item. + * @member {String} id + */ + id = undefined; + /** + * @member {Number} priority + */ + priority = undefined; + /** + * @member {module:models/ProductDetailsLink} product_details_link + */ + product_details_link = undefined; + /** + * The link of the product list, the item is assigned + * @member {module:models/ProductListLink} product_list + */ + product_list = undefined; + /** + * @member {Boolean} public + */ + public = undefined; + /** + * @member {Number} purchased_quantity + */ + purchased_quantity = undefined; + /** + * @member {Number} quantity + */ + quantity = undefined; + /** + * @member {module:models/ProductListItemReference.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + + diff --git a/src/models/ProductListLink.js b/src/models/ProductListLink.js index 8bc812c..751f2a0 100644 --- a/src/models/ProductListLink.js +++ b/src/models/ProductListLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListLink model module. * @module models/ProductListLink -* @version 17.8 +* @version 20.4 */ export default class ProductListLink { /** @@ -29,42 +34,16 @@ export default class ProductListLink { * @alias module:models/ProductListLink * @class */ + constructor() { - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * A flag indicating whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The link title. - * @member {String} title - */ - this.title = undefined - /** - * The type of the product list. - * @member {module:models/ProductListLink.TypeEnum} type - */ - this.type = undefined + + + } /** @@ -78,70 +57,114 @@ export default class ProductListLink { if (data) { obj = obj || new ProductListLink() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -ProductListLink.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * The target of the link. + * @member {String} link + */ + link = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The name of this product list. + * @member {String} name + */ + name = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * A flag indicating whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The type of the product list. + * @member {module:models/ProductListLink.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + + diff --git a/src/models/ProductListRegistrant.js b/src/models/ProductListRegistrant.js index a064b7c..0328093 100644 --- a/src/models/ProductListRegistrant.js +++ b/src/models/ProductListRegistrant.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,39 +14,36 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListRegistrant model module. * @module models/ProductListRegistrant -* @version 17.8 +* @version 20.4 */ export default class ProductListRegistrant { /** * Constructs a new ProductListRegistrant. - * A ProductListRegistrant is typically associated with an event related product list such as a gift registry. - * It holds information about a person associated with the event such as a bride or groom. + * A ProductListRegistrant is typically associated with an event related product list such as a gift registry. It holds information about a person associated with the event such as a bride or groom. * @alias module:models/ProductListRegistrant * @class */ + constructor() { - /** - * The first name of the registrant. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of the registrant. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The role of the registrant. - * @member {String} role - */ - this.role = undefined + + + + + + + + } /** @@ -61,17 +57,46 @@ export default class ProductListRegistrant { if (data) { obj = obj || new ProductListRegistrant() + + + + if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String') + obj.role = ApiClient.convertToType(data.role, 'String') } } - return obj } + + /** + * The first name of the registrant. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of the registrant. + * @member {String} last_name + */ + last_name = undefined; + /** + * The role of the registrant. + * @member {String} role + */ + role = undefined; + + + + + + + + } + + diff --git a/src/models/ProductListShippingAddress.js b/src/models/ProductListShippingAddress.js index cde6917..6d18bed 100644 --- a/src/models/ProductListShippingAddress.js +++ b/src/models/ProductListShippingAddress.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListShippingAddress model module. * @module models/ProductListShippingAddress -* @version 17.8 +* @version 20.4 */ export default class ProductListShippingAddress { /** @@ -30,30 +35,16 @@ export default class ProductListShippingAddress { * @class * @param addressId {String} The id of this address. */ + constructor(addressId) { - /** - * The id of this address. - * @member {String} address_id - */ + + + + + this.address_id = addressId - /** - * The city of this address. - * @member {String} city - */ - this.city = undefined - - /** - * The first name of this address. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of this address. - * @member {String} last_name - */ - this.last_name = undefined + } /** @@ -67,20 +58,54 @@ export default class ProductListShippingAddress { if (data) { obj = obj || new ProductListShippingAddress() + + + + if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } } - return obj } + + /** + * The id of this address. + * @member {String} address_id + */ + address_id = undefined; + /** + * The city of this address. + * @member {String} city + */ + city = undefined; + /** + * The first name of this address. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of this address. + * @member {String} last_name + */ + last_name = undefined; + + + + + + + + } + + diff --git a/src/models/ProductPromotion.js b/src/models/ProductPromotion.js index 4d9b97d..e71babf 100644 --- a/src/models/ProductPromotion.js +++ b/src/models/ProductPromotion.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductPromotion model module. * @module models/ProductPromotion -* @version 17.8 +* @version 20.4 */ export default class ProductPromotion { /** @@ -29,30 +34,16 @@ export default class ProductPromotion { * @alias module:models/ProductPromotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The URL addressing the promotion. - * @member {String} link - */ - this.link = undefined - - /** - * The unique id of the promotion. - * @member {String} promotion_id - */ - this.promotion_id = undefined - - /** - * The promotional price for this product. - * @member {Number} promotional_price - */ - this.promotional_price = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class ProductPromotion { if (data) { obj = obj || new ProductPromotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotional_price')) { - obj['promotional_price'] = ApiClient.convertToType(data['promotional_price'], 'Number') + obj.promotional_price = ApiClient.convertToType(data.promotional_price, 'Number') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The URL addressing the promotion. + * @member {String} link + */ + link = undefined; + /** + * The unique id of the promotion. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The promotional price for this product. + * @member {Number} promotional_price + */ + promotional_price = undefined; + + + + + + + + } + + diff --git a/src/models/ProductRecommendationsResult.js b/src/models/ProductRecommendationsResult.js new file mode 100644 index 0000000..04cc112 --- /dev/null +++ b/src/models/ProductRecommendationsResult.js @@ -0,0 +1,103 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' +import Product from './Product' + + + + + +/** +* The ProductRecommendationsResult model module. +* @module models/ProductRecommendationsResult +* @version 20.4 +*/ +export default class ProductRecommendationsResult { + /** + * Constructs a new ProductRecommendationsResult. + * The product recommendations + * @alias module:models/ProductRecommendationsResult + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ProductRecommendationsResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ProductRecommendationsResult} obj Optional instance to populate. + * @return {module:models/ProductRecommendationsResult} The populated ProductRecommendationsResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ProductRecommendationsResult() + + + + + + if (data.hasOwnProperty('count')) { + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('data')) { + obj.data = ApiClient.convertToType(data.data, [Product]) + } + if (data.hasOwnProperty('total')) { + obj.total = ApiClient.convertToType(data.total, 'Number') + } + } + return obj + } + + /** + * Count of current elements + * @member {Number} count + */ + count = undefined; + /** + * The objects itself + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + +} + + diff --git a/src/models/ProductRef.js b/src/models/ProductRef.js index 7328d1d..e15dacb 100644 --- a/src/models/ProductRef.js +++ b/src/models/ProductRef.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductRef model module. * @module models/ProductRef -* @version 17.8 +* @version 20.4 */ export default class ProductRef { /** @@ -29,19 +34,18 @@ export default class ProductRef { * @alias module:models/ProductRef * @class * @param id {String} The ID of the product reference. + * @param link {String} The link to the product reference. */ - constructor(id) { - /** - * The ID of the product reference. - * @member {String} id - */ - this.id = id - - /** - * The link to the product reference. - * @member {String} link - */ - this.link = undefined + + constructor(id, link) { + + + + + + this.id = id; this.link = link + + } /** @@ -55,14 +59,38 @@ export default class ProductRef { if (data) { obj = obj || new ProductRef() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } } - return obj } + + /** + * The ID of the product reference. + * @member {String} id + */ + id = undefined; + /** + * The link to the product reference. + * @member {String} link + */ + link = undefined; + + + + + + + + } + + diff --git a/src/models/ProductResult.js b/src/models/ProductResult.js index 1d0b8fe..f65d14f 100644 --- a/src/models/ProductResult.js +++ b/src/models/ProductResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' + + + + /** * The ProductResult model module. * @module models/ProductResult -* @version 17.8 +* @version 20.4 */ export default class ProductResult { /** @@ -30,24 +35,16 @@ export default class ProductResult { * @alias module:models/ProductResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class ProductResult { if (data) { obj = obj || new ProductResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Product]) + obj.data = ApiClient.convertToType(data.data, [Product]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/ProductSearchHit.js b/src/models/ProductSearchHit.js index 3398a9c..701062c 100644 --- a/src/models/ProductSearchHit.js +++ b/src/models/ProductSearchHit.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,16 +14,22 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' -import ProductType from './ProductType' import ProductRef from './ProductRef' +import ProductType from './ProductType' import VariationAttribute from './VariationAttribute' + + + + /** * The ProductSearchHit model module. * @module models/ProductSearchHit -* @version 17.8 +* @version 20.4 */ export default class ProductSearchHit { /** @@ -33,84 +38,16 @@ export default class ProductSearchHit { * @alias module:models/ProductSearchHit * @class */ + constructor() { - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The first image of the product hit for the configured viewtype. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * A flag indicating whether the product is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The maximum sales of related child products in case of complex products like master or set. - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * The prices map with price book ids and their values. - * @member {Object.} prices - */ - this.prices = undefined - - /** - * The id (SKU) of the product. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The localized name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The type information for the product. - * @member {module:models/ProductType} product_type - */ - this.product_type = undefined - - /** - * The first represented product. - * @member {module:models/ProductRef} represented_product - */ - this.represented_product = undefined - - /** - * All the represented products. - * @member {Array.} represented_products - */ - this.represented_products = undefined - - /** - * The array of represented variation attributes (for the master product only). This array can be empty. - * @member {Array.} variation_attributes - */ - this.variation_attributes = undefined + + + + + + + + } /** @@ -124,47 +61,134 @@ export default class ProductSearchHit { if (data) { obj = obj || new ProductSearchHit() + + + + if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') + } + if (data.hasOwnProperty('hit_type')) { + obj.hit_type = ApiClient.convertToType(data.hit_type, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('product_type')) { - obj['product_type'] = ProductType.constructFromObject(data['product_type']) + obj.product_type = ProductType.constructFromObject(data.product_type) } if (data.hasOwnProperty('represented_product')) { - obj['represented_product'] = ProductRef.constructFromObject(data['represented_product']) + obj.represented_product = ProductRef.constructFromObject(data.represented_product) } if (data.hasOwnProperty('represented_products')) { - obj['represented_products'] = ApiClient.convertToType(data['represented_products'], [ProductRef]) + obj.represented_products = ApiClient.convertToType(data.represented_products, [ProductRef]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } } - return obj } + + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The type information for the search hit. + * @member {String} hit_type + */ + hit_type = undefined; + /** + * The first image of the product hit for the configured viewtype. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the product is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The maximum sales of related child products in case of complex products like master or set. + * @member {Number} price_max + */ + price_max = undefined; + /** + * The prices map with price book ids and their values. + * @member {Object.} prices + */ + prices = undefined; + /** + * The id (SKU) of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The localized name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The type information for the product. + * @member {module:models/ProductType} product_type + */ + product_type = undefined; + /** + * The first represented product. + * @member {module:models/ProductRef} represented_product + */ + represented_product = undefined; + /** + * All the represented products. + * @member {Array.} represented_products + */ + represented_products = undefined; + /** + * The array of represented variation attributes (for the master product only). This array can be empty. + * @member {Array.} variation_attributes + */ + variation_attributes = undefined; + + + + + + + + } + + diff --git a/src/models/ProductSearchRefinement.js b/src/models/ProductSearchRefinement.js index d8c91ab..757fb70 100644 --- a/src/models/ProductSearchRefinement.js +++ b/src/models/ProductSearchRefinement.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchRefinementValue from './ProductSearchRefinementValue' + + + + /** * The ProductSearchRefinement model module. * @module models/ProductSearchRefinement -* @version 17.8 +* @version 20.4 */ export default class ProductSearchRefinement { /** @@ -29,32 +34,18 @@ export default class ProductSearchRefinement { * Document representing a product search refinement attribute. * @alias module:models/ProductSearchRefinement * @class - * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute - * refinement, this is the attribute id. Custom attributes are marked by the - * prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, - * the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". + * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". */ + constructor(attributeId) { - /** - * The id of the search refinement attribute. In the case of an attribute refinement, this is - * the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). - * In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, - * the id must be \"price\". - * @member {String} attribute_id - */ + + + + + this.attribute_id = attributeId - /** - * The localized label of the refinement. - * @member {String} label - */ - this.label = undefined - - /** - * The sorted array of refinement values. This array can be empty. - * @member {Array.} values - */ - this.values = undefined + } /** @@ -68,17 +59,46 @@ export default class ProductSearchRefinement { if (data) { obj = obj || new ProductSearchRefinement() + + + + if (data.hasOwnProperty('attribute_id')) { - obj['attribute_id'] = ApiClient.convertToType(data['attribute_id'], 'String') + obj.attribute_id = ApiClient.convertToType(data.attribute_id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ProductSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ProductSearchRefinementValue]) } } - return obj } + + /** + * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". + * @member {String} attribute_id + */ + attribute_id = undefined; + /** + * The localized label of the refinement. + * @member {String} label + */ + label = undefined; + /** + * The sorted array of refinement values. This array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } + + diff --git a/src/models/ProductSearchRefinementValue.js b/src/models/ProductSearchRefinementValue.js index d3cd799..1f8c0d0 100644 --- a/src/models/ProductSearchRefinementValue.js +++ b/src/models/ProductSearchRefinementValue.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSearchRefinementValue model module. * @module models/ProductSearchRefinementValue -* @version 17.8 +* @version 20.4 */ export default class ProductSearchRefinementValue { /** @@ -29,46 +34,16 @@ export default class ProductSearchRefinementValue { * @alias module:models/ProductSearchRefinementValue * @class */ + constructor() { - /** - * The localized description of the refinement value. - * @member {String} description - */ - this.description = undefined - - /** - * The number of search hits when selecting the refinement value. Can be 0. - * @member {Number} hit_count - */ - this.hit_count = undefined - - /** - * The localized label of the refinement value. - * @member {String} label - */ - this.label = undefined - - /** - * The optional presentation id associated with the refinement value. The presentation id can be used, - * for example, to associate an id with an HTML widget. - * @member {String} presentation_id - */ - this.presentation_id = undefined - - /** - * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, - * or a value range. In the case of a category refinement, this is the category id. In the case of a - * price refinement,k this is the price range. Ranges are enclosed by parentheses and separated - * by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\" are valid ranges. - * @member {String} value - */ - this.value = undefined - - /** - * The array of hierarchical refinement values. This array can be empty. - * @member {Array.} values - */ - this.values = undefined + + + + + + + + } /** @@ -83,26 +58,67 @@ export default class ProductSearchRefinementValue { obj = obj || new ProductSearchRefinementValue() + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('hit_count')) { - obj['hit_count'] = ApiClient.convertToType(data['hit_count'], 'Number') + obj.hit_count = ApiClient.convertToType(data.hit_count, 'Number') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('presentation_id')) { - obj['presentation_id'] = ApiClient.convertToType(data['presentation_id'], 'String') + obj.presentation_id = ApiClient.convertToType(data.presentation_id, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ProductSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ProductSearchRefinementValue]) } } - return obj } + + /** + * The localized description of the refinement value. + * @member {String} description + */ + description = undefined; + /** + * The number of search hits when selecting the refinement value. Can be 0. + * @member {Number} hit_count + */ + hit_count = undefined; + /** + * The localized label of the refinement value. + * @member {String} label + */ + label = undefined; + /** + * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. + * @member {String} presentation_id + */ + presentation_id = undefined; + /** + * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a category refinement, this is the category id. In the case of a price refinement,k this is the price range. Ranges are enclosed by parentheses and separated by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\" are valid ranges. + * @member {String} value + */ + value = undefined; + /** + * The array of hierarchical refinement values. This array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } diff --git a/src/models/ProductSearchResult.js b/src/models/ProductSearchResult.js index eca4917..7f2d3d7 100644 --- a/src/models/ProductSearchResult.js +++ b/src/models/ProductSearchResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,16 +14,22 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchHit from './ProductSearchHit' import ProductSearchRefinement from './ProductSearchRefinement' import ProductSearchSortingOption from './ProductSearchSortingOption' import Suggestion from './Suggestion' + + + + /** * The ProductSearchResult model module. * @module models/ProductSearchResult -* @version 17.8 +* @version 20.4 */ export default class ProductSearchResult { /** @@ -33,88 +38,16 @@ export default class ProductSearchResult { * @alias module:models/ProductSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.} data - */ - this.data = undefined - - /** - * @member {Number} fetch_date - */ - this.fetch_date = undefined - - /** - * The sorted array of search hits. This array can be empty. - * @member {Array.} hits - */ - this.hits = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The query String that was searched for. - * @member {String} query - */ - this.query = undefined - - /** - * The sorted array of search refinements. This array can be empty. - * @member {Array.} refinements - */ - this.refinements = undefined - - /** - * The suggestion given by the system for the submitted search phrase. - * @member {module:models/Suggestion} search_phrase_suggestions - */ - this.search_phrase_suggestions = undefined - - /** - * A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL. - * @member {Object.} selected_refinements - */ - this.selected_refinements = undefined - - /** - * The id of the applied sorting option. - * @member {String} selected_sorting_option - */ - this.selected_sorting_option = undefined - - /** - * The sorted array of search sorting options. This array can be empty. - * @member {Array.} sorting_options - */ - this.sorting_options = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -128,50 +61,132 @@ export default class ProductSearchResult { if (data) { obj = obj || new ProductSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) } if (data.hasOwnProperty('fetch_date')) { - obj['fetch_date'] = ApiClient.convertToType(data['fetch_date'], 'Number') + obj.fetch_date = ApiClient.convertToType(data.fetch_date, 'Number') } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [ProductSearchHit]) + obj.hits = ApiClient.convertToType(data.hits, [ProductSearchHit]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } if (data.hasOwnProperty('refinements')) { - obj['refinements'] = ApiClient.convertToType(data['refinements'], [ProductSearchRefinement]) + obj.refinements = ApiClient.convertToType(data.refinements, [ProductSearchRefinement]) } if (data.hasOwnProperty('search_phrase_suggestions')) { - obj['search_phrase_suggestions'] = Suggestion.constructFromObject(data['search_phrase_suggestions']) + obj.search_phrase_suggestions = Suggestion.constructFromObject(data.search_phrase_suggestions) } if (data.hasOwnProperty('selected_refinements')) { - obj['selected_refinements'] = ApiClient.convertToType(data['selected_refinements'], {String: 'String'}) + obj.selected_refinements = ApiClient.convertToType(data.selected_refinements, {String: 'String'}) } if (data.hasOwnProperty('selected_sorting_option')) { - obj['selected_sorting_option'] = ApiClient.convertToType(data['selected_sorting_option'], 'String') + obj.selected_sorting_option = ApiClient.convertToType(data.selected_sorting_option, 'String') } if (data.hasOwnProperty('sorting_options')) { - obj['sorting_options'] = ApiClient.convertToType(data['sorting_options'], [ProductSearchSortingOption]) + obj.sorting_options = ApiClient.convertToType(data.sorting_options, [ProductSearchSortingOption]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.} data + */ + data = undefined; + /** + * @member {Number} fetch_date + */ + fetch_date = undefined; + /** + * The sorted array of search hits. This array can be empty. + * @member {Array.} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The query String that was searched for. + * @member {String} query + */ + query = undefined; + /** + * The sorted array of search refinements. This array can be empty. + * @member {Array.} refinements + */ + refinements = undefined; + /** + * The suggestion given by the system for the submitted search phrase. + * @member {module:models/Suggestion} search_phrase_suggestions + */ + search_phrase_suggestions = undefined; + /** + * A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL. + * @member {Object.} selected_refinements + */ + selected_refinements = undefined; + /** + * The id of the applied sorting option. + * @member {String} selected_sorting_option + */ + selected_sorting_option = undefined; + /** + * The sorted array of search sorting options. This array can be empty. + * @member {Array.} sorting_options + */ + sorting_options = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/ProductSearchSortingOption.js b/src/models/ProductSearchSortingOption.js index cf18f04..36ba31d 100644 --- a/src/models/ProductSearchSortingOption.js +++ b/src/models/ProductSearchSortingOption.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSearchSortingOption model module. * @module models/ProductSearchSortingOption -* @version 17.8 +* @version 20.4 */ export default class ProductSearchSortingOption { /** @@ -29,18 +34,16 @@ export default class ProductSearchSortingOption { * @alias module:models/ProductSearchSortingOption * @class */ + constructor() { - /** - * The id of the sorting option. - * @member {String} id - */ - this.id = undefined - - /** - * The localized label of the sorting option. - * @member {String} label - */ - this.label = undefined + + + + + + + + } /** @@ -54,14 +57,38 @@ export default class ProductSearchSortingOption { if (data) { obj = obj || new ProductSearchSortingOption() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } } - return obj } + + /** + * The id of the sorting option. + * @member {String} id + */ + id = undefined; + /** + * The localized label of the sorting option. + * @member {String} label + */ + label = undefined; + + + + + + + + } + + diff --git a/src/models/ProductSimpleLink.js b/src/models/ProductSimpleLink.js index ebb4458..33ef338 100644 --- a/src/models/ProductSimpleLink.js +++ b/src/models/ProductSimpleLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSimpleLink model module. * @module models/ProductSimpleLink -* @version 17.8 +* @version 20.4 */ export default class ProductSimpleLink { /** @@ -29,18 +34,16 @@ export default class ProductSimpleLink { * @alias module:models/ProductSimpleLink * @class */ + constructor() { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -54,14 +57,38 @@ export default class ProductSimpleLink { if (data) { obj = obj || new ProductSimpleLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + + diff --git a/src/models/ProductType.js b/src/models/ProductType.js index 0058c51..fd0385e 100644 --- a/src/models/ProductType.js +++ b/src/models/ProductType.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductType model module. * @module models/ProductType -* @version 17.8 +* @version 20.4 */ export default class ProductType { /** @@ -29,48 +34,16 @@ export default class ProductType { * @alias module:models/ProductType * @class */ + constructor() { - /** - * A flag indicating whether the product is a bundle. - * @member {Boolean} bundle - */ - this.bundle = undefined - - /** - * A flag indicating whether the product is a standard item. - * @member {Boolean} item - */ - this.item = undefined - - /** - * A flag indicating whether the product is a master. - * @member {Boolean} master - */ - this.master = undefined - - /** - * A flag indicating whether the product is an option. - * @member {Boolean} option - */ - this.option = undefined - - /** - * A flag indicating whether the product is a set. - * @member {Boolean} set - */ - this.set = undefined - - /** - * A flag indicating whether the product is a variant. - * @member {Boolean} variant - */ - this.variant = undefined - - /** - * A flag indicating whether the product is a variation group. - * @member {Boolean} variation_group - */ - this.variation_group = undefined + + + + + + + + } /** @@ -84,29 +57,78 @@ export default class ProductType { if (data) { obj = obj || new ProductType() + + + + if (data.hasOwnProperty('bundle')) { - obj['bundle'] = ApiClient.convertToType(data['bundle'], 'Boolean') + obj.bundle = ApiClient.convertToType(data.bundle, 'Boolean') } if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'Boolean') + obj.item = ApiClient.convertToType(data.item, 'Boolean') } if (data.hasOwnProperty('master')) { - obj['master'] = ApiClient.convertToType(data['master'], 'Boolean') + obj.master = ApiClient.convertToType(data.master, 'Boolean') } if (data.hasOwnProperty('option')) { - obj['option'] = ApiClient.convertToType(data['option'], 'Boolean') + obj.option = ApiClient.convertToType(data.option, 'Boolean') } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'Boolean') + obj.set = ApiClient.convertToType(data.set, 'Boolean') } if (data.hasOwnProperty('variant')) { - obj['variant'] = ApiClient.convertToType(data['variant'], 'Boolean') + obj.variant = ApiClient.convertToType(data.variant, 'Boolean') } if (data.hasOwnProperty('variation_group')) { - obj['variation_group'] = ApiClient.convertToType(data['variation_group'], 'Boolean') + obj.variation_group = ApiClient.convertToType(data.variation_group, 'Boolean') } } - return obj } + + /** + * A flag indicating whether the product is a bundle. + * @member {Boolean} bundle + */ + bundle = undefined; + /** + * A flag indicating whether the product is a standard item. + * @member {Boolean} item + */ + item = undefined; + /** + * A flag indicating whether the product is a master. + * @member {Boolean} master + */ + master = undefined; + /** + * A flag indicating whether the product is an option. + * @member {Boolean} option + */ + option = undefined; + /** + * A flag indicating whether the product is a set. + * @member {Boolean} set + */ + set = undefined; + /** + * A flag indicating whether the product is a variant. + * @member {Boolean} variant + */ + variant = undefined; + /** + * A flag indicating whether the product is a variation group. + * @member {Boolean} variation_group + */ + variation_group = undefined; + + + + + + + + } + + diff --git a/src/models/Promotion.js b/src/models/Promotion.js index 1deadaf..22cc8e0 100644 --- a/src/models/Promotion.js +++ b/src/models/Promotion.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Promotion model module. * @module models/Promotion -* @version 17.8 +* @version 20.4 */ export default class Promotion { /** @@ -29,60 +34,16 @@ export default class Promotion { * @alias module:models/Promotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed currencies. - * @member {String} currency - */ - this.currency = undefined - - /** - * The localized detailed description of the promotion. - * @member {String} details - */ - this.details = undefined - - /** - * An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as refinement. - * @member {String} discounted_products_link - */ - this.discounted_products_link = undefined - - /** - * The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time zone of the date time is always UTC. - * @member {Date} end_date - */ - this.end_date = undefined - - /** - * The unique id of the promotion. - * @member {String} id - */ - this.id = undefined - - /** - * The URL to the promotion image. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the promotion. - * @member {String} name - */ - this.name = undefined - - /** - * The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The time zone of the date time is always UTC. - * @member {Date} start_date - */ - this.start_date = undefined + + + + + + + + } /** @@ -96,35 +57,94 @@ export default class Promotion { if (data) { obj = obj || new Promotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('details')) { - obj['details'] = ApiClient.convertToType(data['details'], 'String') + obj.details = ApiClient.convertToType(data.details, 'String') } if (data.hasOwnProperty('discounted_products_link')) { - obj['discounted_products_link'] = ApiClient.convertToType(data['discounted_products_link'], 'String') + obj.discounted_products_link = ApiClient.convertToType(data.discounted_products_link, 'String') } if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date') + obj.end_date = ApiClient.convertToType(data.end_date, 'Date') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date') + obj.start_date = ApiClient.convertToType(data.start_date, 'Date') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed currencies. + * @member {String} currency + */ + currency = undefined; + /** + * The localized detailed description of the promotion. + * @member {String} details + */ + details = undefined; + /** + * An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as refinement. + * @member {String} discounted_products_link + */ + discounted_products_link = undefined; + /** + * The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time zone of the date time is always UTC. + * @member {Date} end_date + */ + end_date = undefined; + /** + * The unique id of the promotion. + * @member {String} id + */ + id = undefined; + /** + * The URL to the promotion image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the promotion. + * @member {String} name + */ + name = undefined; + /** + * The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The time zone of the date time is always UTC. + * @member {Date} start_date + */ + start_date = undefined; + + + + + + + + } + + diff --git a/src/models/PromotionLink.js b/src/models/PromotionLink.js new file mode 100644 index 0000000..f996dcb --- /dev/null +++ b/src/models/PromotionLink.js @@ -0,0 +1,116 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The PromotionLink model module. +* @module models/PromotionLink +* @version 20.4 +*/ +export default class PromotionLink { + /** + * Constructs a new PromotionLink. + * Document representing a promotion link. + * @alias module:models/PromotionLink + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a PromotionLink from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/PromotionLink} obj Optional instance to populate. + * @return {module:models/PromotionLink} The populated PromotionLink instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PromotionLink() + + + + + + if (data.hasOwnProperty('callout_msg')) { + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') + } + if (data.hasOwnProperty('link')) { + obj.link = ApiClient.convertToType(data.link, 'String') + } + if (data.hasOwnProperty('name')) { + obj.name = ApiClient.convertToType(data.name, 'String') + } + if (data.hasOwnProperty('promotion_id')) { + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') + } + if (data.hasOwnProperty('title')) { + obj.title = ApiClient.convertToType(data.title, 'String') + } + } + return obj + } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * @member {String} link + */ + link = undefined; + /** + * The localized name of the promotion. + * @member {String} name + */ + name = undefined; + /** + * The unique id of the promotion. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * @member {String} title + */ + title = undefined; + + + + + + + + +} + + diff --git a/src/models/PromotionResult.js b/src/models/PromotionResult.js index 34c6c03..11cfc32 100644 --- a/src/models/PromotionResult.js +++ b/src/models/PromotionResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Promotion from './Promotion' + + + + /** * The PromotionResult model module. * @module models/PromotionResult -* @version 17.8 +* @version 20.4 */ export default class PromotionResult { /** @@ -30,24 +35,16 @@ export default class PromotionResult { * @alias module:models/PromotionResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of promotion documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class PromotionResult { if (data) { obj = obj || new PromotionResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Promotion]) + obj.data = ApiClient.convertToType(data.data, [Promotion]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of promotion documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/PublicProductList.js b/src/models/PublicProductList.js index 7c9f3c3..5b5004b 100644 --- a/src/models/PublicProductList.js +++ b/src/models/PublicProductList.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +14,8 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductListEvent from './ProductListEvent' import ProductListRegistrant from './ProductListRegistrant' @@ -22,10 +23,14 @@ import ProductListShippingAddress from './ProductListShippingAddress' import ProductSimpleLink from './ProductSimpleLink' import PublicProductListItem from './PublicProductListItem' + + + + /** * The PublicProductList model module. * @module models/PublicProductList -* @version 17.8 +* @version 20.4 */ export default class PublicProductList { /** @@ -33,84 +38,16 @@ export default class PublicProductList { * @alias module:models/PublicProductList * @class */ - constructor() { - /** - * The coRegistrant of this product list. - * @member {module:models/ProductListRegistrant} co_registrant - */ - this.co_registrant = undefined - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined + constructor() { - /** - * The event of this product list. - * @member {module:models/ProductListEvent} event - */ - this.event = undefined - /** - * The id of this product list. - * @member {String} id - */ - this.id = undefined - - /** - * The resource link to the items of this product list. - * @member {module:models/ProductSimpleLink} items_link - */ - this.items_link = undefined - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The product list items - * @member {Array.} product_list_items - */ - this.product_list_items = undefined - /** - * The abbreviated shipping address of this product list representing what anonymous user can see. - * @member {module:models/ProductListShippingAddress} product_list_shipping_address - */ - this.product_list_shipping_address = undefined - /** - * Indicates whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The registrant of this product list. - * @member {module:models/ProductListRegistrant} registrant - */ - this.registrant = undefined - - /** - * The type of the product list. - * @member {module:models/PublicProductList.TypeEnum} type - */ - this.type = undefined } /** @@ -124,91 +61,170 @@ export default class PublicProductList { if (data) { obj = obj || new PublicProductList() + + + + if (data.hasOwnProperty('co_registrant')) { - obj['co_registrant'] = ProductListRegistrant.constructFromObject(data['co_registrant']) + obj.co_registrant = ProductListRegistrant.constructFromObject(data.co_registrant) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('event')) { - obj['event'] = ProductListEvent.constructFromObject(data['event']) + obj.event = ProductListEvent.constructFromObject(data.event) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('items_link')) { - obj['items_link'] = ProductSimpleLink.constructFromObject(data['items_link']) + obj.items_link = ProductSimpleLink.constructFromObject(data.items_link) } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('product_list_items')) { - obj['product_list_items'] = ApiClient.convertToType(data['product_list_items'], [PublicProductListItem]) + obj.product_list_items = ApiClient.convertToType(data.product_list_items, [PublicProductListItem]) } if (data.hasOwnProperty('product_list_shipping_address')) { - obj['product_list_shipping_address'] = ProductListShippingAddress.constructFromObject(data['product_list_shipping_address']) + obj.product_list_shipping_address = ProductListShippingAddress.constructFromObject(data.product_list_shipping_address) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('registrant')) { - obj['registrant'] = ProductListRegistrant.constructFromObject(data['registrant']) + obj.registrant = ProductListRegistrant.constructFromObject(data.registrant) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -PublicProductList.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The coRegistrant of this product list. + * @member {module:models/ProductListRegistrant} co_registrant + */ + co_registrant = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The event of this product list. + * @member {module:models/ProductListEvent} event + */ + event = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The id of this product list. + * @member {String} id + */ + id = undefined; + /** + * The resource link to the items of this product list. + * @member {module:models/ProductSimpleLink} items_link + */ + items_link = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The name of this product list. + * @member {String} name + */ + name = undefined; + /** + * The product list items + * @member {Array.} product_list_items + */ + product_list_items = undefined; + /** + * The abbreviated shipping address of this product list representing what anonymous user can see. + * @member {module:models/ProductListShippingAddress} product_list_shipping_address + */ + product_list_shipping_address = undefined; + /** + * Indicates whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The registrant of this product list. + * @member {module:models/ProductListRegistrant} registrant + */ + registrant = undefined; + /** + * The type of the product list. + * @member {module:models/PublicProductList.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + + diff --git a/src/models/PublicProductListItem.js b/src/models/PublicProductListItem.js index 23a5c05..16b68d8 100644 --- a/src/models/PublicProductListItem.js +++ b/src/models/PublicProductListItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' import ProductSimpleLink from './ProductSimpleLink' + + + + /** * The PublicProductListItem model module. * @module models/PublicProductListItem -* @version 17.8 +* @version 20.4 */ export default class PublicProductListItem { /** @@ -31,36 +36,16 @@ export default class PublicProductListItem { * @alias module:models/PublicProductListItem * @class */ + constructor() { - /** - * The id of this product list item. - * @member {String} id - */ - this.id = undefined - /** - * The priority of the item. - * @member {Number} priority - */ - this.priority = undefined - /** - * The product item - * @member {module:models/Product} product - */ - this.product = undefined - /** - * A link to the product. - * @member {module:models/ProductSimpleLink} product_details_link - */ - this.product_details_link = undefined - /** - * The type of the item. - * @member {module:models/PublicProductListItem.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -74,43 +59,82 @@ export default class PublicProductListItem { if (data) { obj = obj || new PublicProductListItem() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductSimpleLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductSimpleLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -PublicProductListItem.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of this product list item. + * @member {String} id + */ + id = undefined; + /** + * The priority of the item. + * @member {Number} priority + */ + priority = undefined; + /** + * The product item + * @member {module:models/Product} product + */ + product = undefined; + /** + * A link to the product. + * @member {module:models/ProductSimpleLink} product_details_link + */ + product_details_link = undefined; + /** + * The type of the item. + * @member {module:models/PublicProductListItem.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + + diff --git a/src/models/PublicProductListItemResult.js b/src/models/PublicProductListItemResult.js index c282356..e46f288 100644 --- a/src/models/PublicProductListItemResult.js +++ b/src/models/PublicProductListItemResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PublicProductListItem from './PublicProductListItem' + + + + /** * The PublicProductListItemResult model module. * @module models/PublicProductListItemResult -* @version 17.8 +* @version 20.4 */ export default class PublicProductListItemResult { /** @@ -30,24 +35,16 @@ export default class PublicProductListItemResult { * @alias module:models/PublicProductListItemResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product list item documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class PublicProductListItemResult { if (data) { obj = obj || new PublicProductListItemResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PublicProductListItem]) + obj.data = ApiClient.convertToType(data.data, [PublicProductListItem]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product list item documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/PublicProductListLink.js b/src/models/PublicProductListLink.js index 44752b8..6982b9b 100644 --- a/src/models/PublicProductListLink.js +++ b/src/models/PublicProductListLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PublicProductListLink model module. * @module models/PublicProductListLink -* @version 17.8 +* @version 20.4 */ export default class PublicProductListLink { /** @@ -29,36 +34,16 @@ export default class PublicProductListLink { * @alias module:models/PublicProductListLink * @class */ + constructor() { - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The link title. - * @member {String} title - */ - this.title = undefined - /** - * The type of the product list. - * @member {module:models/PublicProductListLink.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -72,67 +57,106 @@ export default class PublicProductListLink { if (data) { obj = obj || new PublicProductListLink() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the type property. -* @enum {String} -* @readonly -*/ -PublicProductListLink.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * The target of the link. + * @member {String} link + */ + link = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The name of this product list. + * @member {String} name + */ + name = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The link title. + * @member {String} title + */ + title = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The type of the product list. + * @member {module:models/PublicProductListLink.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the type property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + + diff --git a/src/models/PublicProductListResult.js b/src/models/PublicProductListResult.js index bd40f13..4e3c409 100644 --- a/src/models/PublicProductListResult.js +++ b/src/models/PublicProductListResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PublicProductListLink from './PublicProductListLink' + + + + /** * The PublicProductListResult model module. * @module models/PublicProductListResult -* @version 17.8 +* @version 20.4 */ export default class PublicProductListResult { /** @@ -30,24 +35,16 @@ export default class PublicProductListResult { * @alias module:models/PublicProductListResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product list link documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -61,17 +58,46 @@ export default class PublicProductListResult { if (data) { obj = obj || new PublicProductListResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PublicProductListLink]) + obj.data = ApiClient.convertToType(data.data, [PublicProductListLink]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product list link documents. + * @member {Array.} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/Query.js b/src/models/Query.js index cb15c99..66340b2 100644 --- a/src/models/Query.js +++ b/src/models/Query.js @@ -7,7 +7,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -20,7 +20,7 @@ import ApiClient from '../ApiClient' /** * The Query model module. * @module models/Query -* @version 17.8 +* @version 20.4 */ export default class Query { /** diff --git a/src/models/QueryFilter.js b/src/models/QueryFilter.js index 75f98fa..595de1b 100644 --- a/src/models/QueryFilter.js +++ b/src/models/QueryFilter.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,18 @@ * Do not edit the class manually. * */ -// import ApiClient from '../ApiClient' + + import Query from './Query' + + + + /** * The QueryFilter model module. * @module models/QueryFilter -* @version 17.8 +* @version 20.4 */ export default class QueryFilter { /** @@ -29,14 +33,18 @@ export default class QueryFilter { * Document representing a query filter. A query filter wraps any query and allows it to be used as a filter. * @alias module:models/QueryFilter * @class - * @param query {module:models/Query} The query, which should be used as a filter. + * @param query {module:models/Query} The query to use as a filter. */ + constructor(query) { - /** - * The query, which should be used as a filter. - * @member {module:models/Query} query - */ + + + + + this.query = query + + } /** @@ -50,11 +58,28 @@ export default class QueryFilter { if (data) { obj = obj || new QueryFilter() + + + + if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } } - return obj } + + /** + * The query to use as a filter. + * @member {module:models/Query} query + */ + query = undefined; + + + + + + + + } diff --git a/src/models/Range2Filter.js b/src/models/Range2Filter.js index b05c0bd..e2309d8 100644 --- a/src/models/Range2Filter.js +++ b/src/models/Range2Filter.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Range2Filter model module. * @module models/Range2Filter -* @version 17.8 +* @version 20.4 */ export default class Range2Filter { /** @@ -28,51 +33,19 @@ export default class Range2Filter { * Document representing a range compare with range filter, named Range2Filter. * @alias module:models/Range2Filter * @class - * @param fromField {String} The field name of the field that start the range 1. - * @param toField {String} The field name of the field that end the range 1. + * @param fromField {String} The field name of the field that starts the first range. + * @param toField {String} The field name of the field that ends the first range. */ + constructor(fromField, toField) { - /** - * compare mode: overlap, containing, contained (default to \"overlap\"). It is optional. - * @member {module:models/Range2Filter.FilterModeEnum} filter_mode - */ - this.filter_mode = undefined - /** - * The field name of the field that start the range 1. - * @member {String} from_field - */ - this.from_field = fromField - /** - * A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive). - * @member {Boolean} from_inclusive - */ - this.from_inclusive = undefined - /** - * The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound. - * @member {Object} from_value - */ - this.from_value = undefined - /** - * The field name of the field that end the range 1. - * @member {String} to_field - */ - this.to_field = toField - /** - * A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive). - * @member {Boolean} to_inclusive - */ - this.to_inclusive = undefined + this.from_field = fromField; this.to_field = toField + - /** - * The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound. - * @member {Object} to_value - */ - this.to_value = undefined } /** @@ -86,55 +59,104 @@ export default class Range2Filter { if (data) { obj = obj || new Range2Filter() + + + + if (data.hasOwnProperty('filter_mode')) { - obj['filter_mode'] = ApiClient.convertToType(data['filter_mode'], 'String') + obj.filter_mode = ApiClient.convertToType(data.filter_mode, 'String') } if (data.hasOwnProperty('from_field')) { - obj['from_field'] = ApiClient.convertToType(data['from_field'], 'String') + obj.from_field = ApiClient.convertToType(data.from_field, 'String') } if (data.hasOwnProperty('from_inclusive')) { - obj['from_inclusive'] = ApiClient.convertToType(data['from_inclusive'], 'Boolean') + obj.from_inclusive = ApiClient.convertToType(data.from_inclusive, 'Boolean') } if (data.hasOwnProperty('from_value')) { - obj['from_value'] = ApiClient.convertToType(data['from_value'], Object) + obj.from_value = ApiClient.convertToType(data.from_value, Object) } if (data.hasOwnProperty('to_field')) { - obj['to_field'] = ApiClient.convertToType(data['to_field'], 'String') + obj.to_field = ApiClient.convertToType(data.to_field, 'String') } if (data.hasOwnProperty('to_inclusive')) { - obj['to_inclusive'] = ApiClient.convertToType(data['to_inclusive'], 'Boolean') + obj.to_inclusive = ApiClient.convertToType(data.to_inclusive, 'Boolean') } if (data.hasOwnProperty('to_value')) { - obj['to_value'] = ApiClient.convertToType(data['to_value'], Object) + obj.to_value = ApiClient.convertToType(data.to_value, Object) } } - return obj } -} - -/** -* Allowed values for the filter_mode property. -* @enum {String} -* @readonly -*/ -Range2Filter.FilterModeEnum = { /** - * value: "overlap" - * @const - */ - overlap: 'overlap', - + * Compare mode: overlap, containing, or contained. If not specified, the default is overlap. + * @member {module:models/Range2Filter.FilterModeEnum} filter_mode + */ + filter_mode = undefined; + /** + * The field name of the field that starts the first range. + * @member {String} from_field + */ + from_field = undefined; + /** + * Indicates whether the lower bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} from_inclusive + */ + from_inclusive = undefined; + /** + * The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended. + * @member {Object} from_value + */ + from_value = undefined; + /** + * The field name of the field that ends the first range. + * @member {String} to_field + */ + to_field = undefined; /** - * value: "containing" - * @const - */ - containing: 'containing', + * Indicates whether the upper bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} to_inclusive + */ + to_inclusive = undefined; + /** + * The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended. + * @member {Object} to_value + */ + to_value = undefined; + + + + + /** - * value: "contained" - * @const - */ - contained: 'contained' + * Allowed values for the filter_mode property. + * @enum {String} + * @readonly + */ + static FilterModeEnum = { + + /** + * value: "overlap" + * @const + */ + overlap: 'overlap', + + /** + * value: "containing" + * @const + */ + containing: 'containing', + + /** + * value: "contained" + * @const + */ + contained: 'contained' + }; + + + } + + diff --git a/src/models/RangeFilter.js b/src/models/RangeFilter.js index 1662cef..1e014b4 100644 --- a/src/models/RangeFilter.js +++ b/src/models/RangeFilter.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The RangeFilter model module. * @module models/RangeFilter -* @version 17.8 +* @version 20.4 */ export default class RangeFilter { /** @@ -32,35 +37,14 @@ export default class RangeFilter { */ constructor(field) { - /** - * The search field. - * @member {String} field - */ + + + + + this.field = field - /** - * The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound. - * @member {Object} from - */ - this.from = undefined - - /** - * A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive). - * @member {Boolean} from_inclusive - */ - this.from_inclusive = undefined - - /** - * The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound. - * @member {Object} to - */ - this.to = undefined - - /** - * A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive). - * @member {Boolean} to_inclusive - */ - this.to_inclusive = undefined + } /** @@ -74,23 +58,62 @@ export default class RangeFilter { if (data) { obj = obj || new RangeFilter() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], Object) + obj.from = ApiClient.convertToType(data.from, Object) } if (data.hasOwnProperty('from_inclusive')) { - obj['from_inclusive'] = ApiClient.convertToType(data['from_inclusive'], 'Boolean') + obj.from_inclusive = ApiClient.convertToType(data.from_inclusive, 'Boolean') } if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], Object) + obj.to = ApiClient.convertToType(data.to, Object) } if (data.hasOwnProperty('to_inclusive')) { - obj['to_inclusive'] = ApiClient.convertToType(data['to_inclusive'], 'Boolean') + obj.to_inclusive = ApiClient.convertToType(data.to_inclusive, 'Boolean') } } - return obj } + + /** + * The search field. + * @member {String} field + */ + field = undefined; + /** + * The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended. + * @member {Object} from + */ + from = undefined; + /** + * Indicates whether the lower bound of the range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} from_inclusive + */ + from_inclusive = undefined; + /** + * The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended. + * @member {Object} to + */ + to = undefined; + /** + * Indicates whether the upper bound of the range is inclusive. If not specified, the default is true. Set to false to made the upper bound exclusive. + * @member {Boolean} to_inclusive + */ + to_inclusive = undefined; + + + + + + + + } + + diff --git a/src/models/Recommendation.js b/src/models/Recommendation.js index 5fdf6f2..342f717 100644 --- a/src/models/Recommendation.js +++ b/src/models/Recommendation.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' import RecommendationType from './RecommendationType' + + + + /** * The Recommendation model module. * @module models/Recommendation -* @version 17.8 +* @version 20.4 */ export default class Recommendation { /** @@ -31,54 +36,16 @@ export default class Recommendation { * @alias module:models/Recommendation * @class */ + constructor() { - /** - * The localized callout message of the recommendation. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The image of the recommendation. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The localized long description of the recommendation. - * @member {String} long_description - */ - this.long_description = undefined - - /** - * The localized name of the recommendation. - * @member {String} name - */ - this.name = undefined - - /** - * The recommendation type of the recommendation. - * @member {module:models/RecommendationType} recommendation_type - */ - this.recommendation_type = undefined - - /** - * The recommended item id of the recommendation. - * @member {String} recommended_item_id - */ - this.recommended_item_id = undefined - - /** - * The recommended item link of the recommendation. - * @member {String} recommended_item_link - */ - this.recommended_item_link = undefined - - /** - * The localized short description of the recommendation. - * @member {String} short_description - */ - this.short_description = undefined + + + + + + + + } /** @@ -92,32 +59,86 @@ export default class Recommendation { if (data) { obj = obj || new Recommendation() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('long_description')) { - obj['long_description'] = ApiClient.convertToType(data['long_description'], 'String') + obj.long_description = ApiClient.convertToType(data.long_description, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('recommendation_type')) { - obj['recommendation_type'] = RecommendationType.constructFromObject(data['recommendation_type']) + obj.recommendation_type = RecommendationType.constructFromObject(data.recommendation_type) } if (data.hasOwnProperty('recommended_item_id')) { - obj['recommended_item_id'] = ApiClient.convertToType(data['recommended_item_id'], 'String') + obj.recommended_item_id = ApiClient.convertToType(data.recommended_item_id, 'String') } if (data.hasOwnProperty('recommended_item_link')) { - obj['recommended_item_link'] = ApiClient.convertToType(data['recommended_item_link'], 'String') + obj.recommended_item_link = ApiClient.convertToType(data.recommended_item_link, 'String') } if (data.hasOwnProperty('short_description')) { - obj['short_description'] = ApiClient.convertToType(data['short_description'], 'String') + obj.short_description = ApiClient.convertToType(data.short_description, 'String') } } - return obj } + + /** + * The localized callout message of the recommendation. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The image of the recommendation. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The localized long description of the recommendation. + * @member {String} long_description + */ + long_description = undefined; + /** + * The localized name of the recommendation. + * @member {String} name + */ + name = undefined; + /** + * The recommendation type of the recommendation. + * @member {module:models/RecommendationType} recommendation_type + */ + recommendation_type = undefined; + /** + * The recommended item id of the recommendation. + * @member {String} recommended_item_id + */ + recommended_item_id = undefined; + /** + * The recommended item link of the recommendation. + * @member {String} recommended_item_link + */ + recommended_item_link = undefined; + /** + * The localized short description of the recommendation. + * @member {String} short_description + */ + short_description = undefined; + + + + + + + + } + + diff --git a/src/models/RecommendationType.js b/src/models/RecommendationType.js index 2d7f242..f84d8c2 100644 --- a/src/models/RecommendationType.js +++ b/src/models/RecommendationType.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The RecommendationType model module. * @module models/RecommendationType -* @version 17.8 +* @version 20.4 */ export default class RecommendationType { /** @@ -29,18 +34,16 @@ export default class RecommendationType { * @alias module:models/RecommendationType * @class */ + constructor() { - /** - * The localized display value of the recommendation type. - * @member {String} display_value - */ - this.display_value = undefined - - /** - * The value of the recommendation type. - * @member {Number} value - */ - this.value = undefined + + + + + + + + } /** @@ -54,14 +57,38 @@ export default class RecommendationType { if (data) { obj = obj || new RecommendationType() + + + + if (data.hasOwnProperty('display_value')) { - obj['display_value'] = ApiClient.convertToType(data['display_value'], 'String') + obj.display_value = ApiClient.convertToType(data.display_value, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number') + obj.value = ApiClient.convertToType(data.value, 'Number') } } - return obj } + + /** + * The localized display value of the recommendation type. + * @member {String} display_value + */ + display_value = undefined; + /** + * The value of the recommendation type. + * @member {Number} value + */ + value = undefined; + + + + + + + + } + + diff --git a/src/models/ResetPasswordRequest.js b/src/models/ResetPasswordRequest.js new file mode 100644 index 0000000..4d3ad35 --- /dev/null +++ b/src/models/ResetPasswordRequest.js @@ -0,0 +1,102 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The ResetPasswordRequest model module. +* @module models/ResetPasswordRequest +* @version 20.4 +*/ +export default class ResetPasswordRequest { + /** + * Constructs a new ResetPasswordRequest. + * @alias module:models/ResetPasswordRequest + * @class + * @param newPassword {String} The new password for the customer. + */ + + constructor(newPassword) { + + + + + + this.new_password = newPassword + + + } + + /** + * Constructs a ResetPasswordRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ResetPasswordRequest} obj Optional instance to populate. + * @return {module:models/ResetPasswordRequest} The populated ResetPasswordRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetPasswordRequest() + + + + + + if (data.hasOwnProperty('login')) { + obj.login = ApiClient.convertToType(data.login, 'String') + } + if (data.hasOwnProperty('new_password')) { + obj.new_password = ApiClient.convertToType(data.new_password, 'String') + } + if (data.hasOwnProperty('reset_token')) { + obj.reset_token = ApiClient.convertToType(data.reset_token, 'String') + } + } + return obj + } + + /** + * The login id of the customer. + * @member {String} login + */ + login = undefined; + /** + * The new password for the customer. + * @member {String} new_password + */ + new_password = undefined; + /** + * The password reset token for the customer. + * @member {String} reset_token + */ + reset_token = undefined; + + + + + + + + +} + + diff --git a/src/models/ResetPasswordTokenRequest.js b/src/models/ResetPasswordTokenRequest.js new file mode 100644 index 0000000..061f15f --- /dev/null +++ b/src/models/ResetPasswordTokenRequest.js @@ -0,0 +1,85 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The ResetPasswordTokenRequest model module. +* @module models/ResetPasswordTokenRequest +* @version 20.4 +*/ +export default class ResetPasswordTokenRequest { + /** + * Constructs a new ResetPasswordTokenRequest. + * @alias module:models/ResetPasswordTokenRequest + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ResetPasswordTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ResetPasswordTokenRequest} obj Optional instance to populate. + * @return {module:models/ResetPasswordTokenRequest} The populated ResetPasswordTokenRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetPasswordTokenRequest() + + + + + + if (data.hasOwnProperty('login')) { + obj.login = ApiClient.convertToType(data.login, 'String') + } + } + return obj + } + + /** + * The login id of the customer. + * @member {String} login + */ + login = undefined; + + + + + + + + +} + + diff --git a/src/models/ResetPasswordTokenResult.js b/src/models/ResetPasswordTokenResult.js new file mode 100644 index 0000000..54cfa43 --- /dev/null +++ b/src/models/ResetPasswordTokenResult.js @@ -0,0 +1,109 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The ResetPasswordTokenResult model module. +* @module models/ResetPasswordTokenResult +* @version 20.4 +*/ +export default class ResetPasswordTokenResult { + /** + * Constructs a new ResetPasswordTokenResult. + * @alias module:models/ResetPasswordTokenResult + * @class + */ + + constructor() { + + + + + + + + + } + + /** + * Constructs a ResetPasswordTokenResult from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ResetPasswordTokenResult} obj Optional instance to populate. + * @return {module:models/ResetPasswordTokenResult} The populated ResetPasswordTokenResult instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetPasswordTokenResult() + + + + + + if (data.hasOwnProperty('email')) { + obj.email = ApiClient.convertToType(data.email, 'String') + } + if (data.hasOwnProperty('expires_in_minutes')) { + obj.expires_in_minutes = ApiClient.convertToType(data.expires_in_minutes, 'Number') + } + if (data.hasOwnProperty('login')) { + obj.login = ApiClient.convertToType(data.login, 'String') + } + if (data.hasOwnProperty('reset_token')) { + obj.reset_token = ApiClient.convertToType(data.reset_token, 'String') + } + } + return obj + } + + /** + * The email address of the customer. + * @member {String} email + */ + email = undefined; + /** + * The password reset token expire time in minutes. + * @member {Number} expires_in_minutes + */ + expires_in_minutes = undefined; + /** + * The login id of the customer. + * @member {String} login + */ + login = undefined; + /** + * The password reset token for the customer. + * @member {String} reset_token + */ + reset_token = undefined; + + + + + + + + +} + + diff --git a/src/models/ResultPage.js b/src/models/ResultPage.js index b347760..ace9cd7 100644 --- a/src/models/ResultPage.js +++ b/src/models/ResultPage.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ResultPage model module. * @module models/ResultPage -* @version 17.8 +* @version 20.4 */ export default class ResultPage { /** @@ -29,18 +34,16 @@ export default class ResultPage { * @alias module:models/ResultPage * @class */ + constructor() { - /** - * Returns the count of search hits to include in the page. - * @member {Number} count - */ - this.count = undefined - - /** - * Returns the zero-based index of the first search hit in the page. - * @member {Number} start - */ - this.start = undefined + + + + + + + + } /** @@ -54,14 +57,46 @@ export default class ResultPage { if (data) { obj = obj || new ResultPage() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + + + + + + + + } + + diff --git a/src/models/Shipment.js b/src/models/Shipment.js index 1c50ea1..4eeb33d 100644 --- a/src/models/Shipment.js +++ b/src/models/Shipment.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,14 +14,20 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderAddress from './OrderAddress' import ShippingMethod from './ShippingMethod' + + + + /** * The Shipment model module. * @module models/Shipment -* @version 17.8 +* @version 20.4 */ export default class Shipment { /** @@ -31,119 +36,16 @@ export default class Shipment { * @alias module:models/Shipment * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after - * adjustment from promotions have been added. Note that order level adjustments are considered - * if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - /** - * A flag indicating whether the shipment is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The total price of all product items after all product discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined + constructor() { - /** - * The total price of all product items after all product and order discounts. Depending on - * taxation policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - /** - * The order specific id to identify the shipment. - * @member {String} shipment_id - */ - this.shipment_id = undefined - /** - * Returns the shipment number for this shipment. This number is automatically generated. - * @member {String} shipment_no - */ - this.shipment_no = undefined - /** - * The total price of the shipment, including products, shipping and tax. Note that order - * level adjustments are not considered. - * @member {Number} shipment_total - */ - this.shipment_total = undefined - /** - * The shipping address. - * @member {module:models/OrderAddress} shipping_address - */ - this.shipping_address = undefined - /** - * The shipping method. - * @member {module:models/ShippingMethod} shipping_method - */ - this.shipping_method = undefined - /** - * The shipping status of the shipment. - * @member {module:models/Shipment.ShippingStatusEnum} shipping_status - */ - this.shipping_status = undefined - /** - * The total shipping price of the shipment after all shipping discounts. Excludes tax if - * taxation policy is net. Includes tax if taxation policy is gross. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - - /** - * The tax of all shipping line items of the line item container before shipping adjustments - * have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - - /** - * The total tax amount of the shipment. Note that order level adjustments are - * considered if Discount Taxation preference is set to \"Tax Products and Shipping Only - * Based on Adjusted Price\". - * @member {Number} tax_total - */ - this.tax_total = undefined - - /** - * The tracking number of the shipment. - * @member {String} tracking_number - */ - this.tracking_number = undefined } /** @@ -157,79 +59,201 @@ export default class Shipment { if (data) { obj = obj || new Shipment() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') + } + if (data.hasOwnProperty('c_fromStoreId')) { + obj.c_fromStoreId = ApiClient.convertToType(data.c_fromStoreId, 'String') + } + if (data.hasOwnProperty('c_shipmentType')) { + obj.c_shipmentType = ApiClient.convertToType(data.c_shipmentType, 'String') + } + if (data.hasOwnProperty('c_storePickupMessage')) { + obj.c_storePickupMessage = ApiClient.convertToType(data.c_storePickupMessage, 'String') } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipment_no')) { - obj['shipment_no'] = ApiClient.convertToType(data['shipment_no'], 'String') + obj.shipment_no = ApiClient.convertToType(data.shipment_no, 'String') } if (data.hasOwnProperty('shipment_total')) { - obj['shipment_total'] = ApiClient.convertToType(data['shipment_total'], 'Number') + obj.shipment_total = ApiClient.convertToType(data.shipment_total, 'Number') } if (data.hasOwnProperty('shipping_address')) { - obj['shipping_address'] = OrderAddress.constructFromObject(data['shipping_address']) + obj.shipping_address = OrderAddress.constructFromObject(data.shipping_address) } if (data.hasOwnProperty('shipping_method')) { - obj['shipping_method'] = ShippingMethod.constructFromObject(data['shipping_method']) + obj.shipping_method = ShippingMethod.constructFromObject(data.shipping_method) } if (data.hasOwnProperty('shipping_status')) { - obj['shipping_status'] = ApiClient.convertToType(data['shipping_status'], 'String') + obj.shipping_status = ApiClient.convertToType(data.shipping_status, 'String') } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('tracking_number')) { - obj['tracking_number'] = ApiClient.convertToType(data['tracking_number'], 'String') + obj.tracking_number = ApiClient.convertToType(data.tracking_number, 'String') } } - return obj } -} - -/** -* Allowed values for the shipping_status property. -* @enum {String} -* @readonly -*/ -Shipment.ShippingStatusEnum = { /** - * value: "not_shipped" - * @const - */ - not_shipped: 'not_shipped', + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. Note that order level adjustments are considered if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". + * @member {Number} adjusted_merchandize_total_tax + */ + adjusted_merchandize_total_tax = undefined; + /** + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; + /** + * Used to map the shipment to a brick and mortar store. + * @member {String} c_fromStoreId + */ + c_fromStoreId = undefined; + /** + * @member {String} c_shipmentType + */ + c_shipmentType = undefined; + /** + * This is text used by the end user when sending a message to the brick and mortar store about the shipment. This is reflected in the order export. + * @member {String} c_storePickupMessage + */ + c_storePickupMessage = undefined; + /** + * A flag indicating whether the shipment is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The order specific id to identify the shipment. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * Returns the shipment number for this shipment. This number is automatically generated. + * @member {String} shipment_no + */ + shipment_no = undefined; + /** + * The total price of the shipment, including products, shipping and tax. Note that order level adjustments are not considered. + * @member {Number} shipment_total + */ + shipment_total = undefined; + /** + * The shipping address. + * @member {module:models/OrderAddress} shipping_address + */ + shipping_address = undefined; + /** + * The shipping method. + * @member {module:models/ShippingMethod} shipping_method + */ + shipping_method = undefined; + /** + * The shipping status of the shipment. + * @member {module:models/Shipment.ShippingStatusEnum} shipping_status + */ + shipping_status = undefined; + /** + * The total shipping price of the shipment after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * The total tax amount of the shipment. Note that order level adjustments are considered if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The tracking number of the shipment. + * @member {String} tracking_number + */ + tracking_number = undefined; + + + + + /** - * value: "shipped" - * @const - */ - shipped: 'shipped' + * Allowed values for the shipping_status property. + * @enum {String} + * @readonly + */ + static ShippingStatusEnum = { + + /** + * value: "not_shipped" + * @const + */ + not_shipped: 'not_shipped', + + /** + * value: "shipped" + * @const + */ + shipped: 'shipped' + }; + + + } + + diff --git a/src/models/ShippingItem.js b/src/models/ShippingItem.js index c248876..7a26306 100644 --- a/src/models/ShippingItem.js +++ b/src/models/ShippingItem.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustment from './PriceAdjustment' + + + + /** * The ShippingItem model module. * @module models/ShippingItem -* @version 17.8 +* @version 20.4 */ export default class ShippingItem { /** @@ -30,85 +35,16 @@ export default class ShippingItem { * @alias module:models/ShippingItem * @class */ + constructor() { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before applying - * adjustments, in the purchase currency. The base price may be net or gross of - * tax depending on the configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - - /** - * The item identifier. Use this to identify an item when updating the item - * quantity or creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The price of the line item before applying any adjustments. If the line item is - * based on net pricing then the net price is returned. If the line item is - * based on gross pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.} price_adjustments - */ - this.price_adjustments = undefined - - /** - * The price of the product line item after applying all product-level adjustments. - * For net pricing the adjusted net price is returned. For gross pricing, - * the adjusted gross price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined - - /** - * The identifier of the shipment to which this item belongs. - * @member {String} shipment_id - */ - this.shipment_id = undefined - - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined - - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - - /** - * The tax class ID for the product item or null if no tax class ID is associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined + + + + + + + + } /** @@ -122,44 +58,118 @@ export default class ShippingItem { if (data) { obj = obj || new ShippingItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The identifier of the shipment to which this item belongs. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + } + + diff --git a/src/models/ShippingMethod.js b/src/models/ShippingMethod.js index 4365b90..5d649c6 100644 --- a/src/models/ShippingMethod.js +++ b/src/models/ShippingMethod.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ShippingPromotion from './ShippingPromotion' + + + + /** * The ShippingMethod model module. * @module models/ShippingMethod -* @version 17.8 +* @version 20.4 */ export default class ShippingMethod { /** @@ -32,42 +37,16 @@ export default class ShippingMethod { * @param cStorePickupEnabled {Boolean} * @param id {String} The shipping method id. */ - constructor(id) { - /** - * The localized description of the shipping method. - * @member {String} description - */ - this.description = undefined - - /** - * The external shipping method. - * @member {String} external_shipping_method - */ - this.external_shipping_method = undefined - - /** - * The shipping method id. - * @member {String} id - */ - this.id = id - - /** - * The localized name of the shipping method. - * @member {String} name - */ - this.name = undefined - - /** - * The shipping cost total, including shipment level costs and product level fix and surcharge costs. - * @member {Number} price - */ - this.price = undefined - - /** - * The array of active customer shipping promotions for this shipping method. This array can be empty. - * @member {Array.} shipping_promotions - */ - this.shipping_promotions = undefined + + constructor(cStorePickupEnabled, id) { + + + + + + this.c_storePickupEnabled = cStorePickupEnabled; this.id = id + + } /** @@ -81,26 +60,77 @@ export default class ShippingMethod { if (data) { obj = obj || new ShippingMethod() + + + + + if (data.hasOwnProperty('c_storePickupEnabled')) { + obj.c_storePickupEnabled = ApiClient.convertToType(data.c_storePickupEnabled, 'Boolean') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('external_shipping_method')) { - obj['external_shipping_method'] = ApiClient.convertToType(data['external_shipping_method'], 'String') + obj.external_shipping_method = ApiClient.convertToType(data.external_shipping_method, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('shipping_promotions')) { - obj['shipping_promotions'] = ApiClient.convertToType(data['shipping_promotions'], [ShippingPromotion]) + obj.shipping_promotions = ApiClient.convertToType(data.shipping_promotions, [ShippingPromotion]) } } - return obj } + + /** + * @member {Boolean} c_storePickupEnabled + */ + c_storePickupEnabled = undefined; + /** + * The localized description of the shipping method. + * @member {String} description + */ + description = undefined; + /** + * The external shipping method. + * @member {String} external_shipping_method + */ + external_shipping_method = undefined; + /** + * The shipping method id. + * @member {String} id + */ + id = undefined; + /** + * The localized name of the shipping method. + * @member {String} name + */ + name = undefined; + /** + * The shipping cost total, including shipment level costs and product level fix and surcharge costs. + * @member {Number} price + */ + price = undefined; + /** + * The array of active customer shipping promotions for this shipping method. This array can be empty. + * @member {Array.} shipping_promotions + */ + shipping_promotions = undefined; + + + + + + + + } + + diff --git a/src/models/ShippingMethodResult.js b/src/models/ShippingMethodResult.js index bff3c9f..32044f1 100644 --- a/src/models/ShippingMethodResult.js +++ b/src/models/ShippingMethodResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ShippingMethod from './ShippingMethod' + + + + /** * The ShippingMethodResult model module. * @module models/ShippingMethodResult -* @version 17.8 +* @version 20.4 */ export default class ShippingMethodResult { /** @@ -30,18 +35,16 @@ export default class ShippingMethodResult { * @alias module:models/ShippingMethodResult * @class */ + constructor() { - /** - * The applicable shipping method documents. - * @member {Array.} applicable_shipping_methods - */ - this.applicable_shipping_methods = undefined - - /** - * The default shipping method. - * @member {String} default_shipping_method_id - */ - this.default_shipping_method_id = undefined + + + + + + + + } /** @@ -55,14 +58,38 @@ export default class ShippingMethodResult { if (data) { obj = obj || new ShippingMethodResult() + + + + if (data.hasOwnProperty('applicable_shipping_methods')) { - obj['applicable_shipping_methods'] = ApiClient.convertToType(data['applicable_shipping_methods'], [ShippingMethod]) + obj.applicable_shipping_methods = ApiClient.convertToType(data.applicable_shipping_methods, [ShippingMethod]) } if (data.hasOwnProperty('default_shipping_method_id')) { - obj['default_shipping_method_id'] = ApiClient.convertToType(data['default_shipping_method_id'], 'String') + obj.default_shipping_method_id = ApiClient.convertToType(data.default_shipping_method_id, 'String') } } - return obj } + + /** + * The applicable shipping method documents. + * @member {Array.} applicable_shipping_methods + */ + applicable_shipping_methods = undefined; + /** + * The default shipping method. + * @member {String} default_shipping_method_id + */ + default_shipping_method_id = undefined; + + + + + + + + } + + diff --git a/src/models/ShippingPromotion.js b/src/models/ShippingPromotion.js index 63dca3b..6eb7793 100644 --- a/src/models/ShippingPromotion.js +++ b/src/models/ShippingPromotion.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ShippingPromotion model module. * @module models/ShippingPromotion -* @version 17.8 +* @version 20.4 */ export default class ShippingPromotion { /** @@ -29,30 +34,16 @@ export default class ShippingPromotion { * @alias module:models/ShippingPromotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The URL addressing the promotion. - * @member {String} link - */ - this.link = undefined - - /** - * The unique id of the promotion. - * @member {String} promotion_id - */ - this.promotion_id = undefined - - /** - * The localized promotion name. - * @member {String} promotion_name - */ - this.promotion_name = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class ShippingPromotion { if (data) { obj = obj || new ShippingPromotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotion_name')) { - obj['promotion_name'] = ApiClient.convertToType(data['promotion_name'], 'String') + obj.promotion_name = ApiClient.convertToType(data.promotion_name, 'String') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The URL addressing the promotion. + * @member {String} link + */ + link = undefined; + /** + * The unique id of the promotion. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The localized promotion name. + * @member {String} promotion_name + */ + promotion_name = undefined; + + + + + + + + } + + diff --git a/src/models/SimpleLink.js b/src/models/SimpleLink.js index 572bb25..cd24668 100644 --- a/src/models/SimpleLink.js +++ b/src/models/SimpleLink.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SimpleLink model module. * @module models/SimpleLink -* @version 17.8 +* @version 20.4 */ export default class SimpleLink { /** @@ -29,12 +34,16 @@ export default class SimpleLink { * @alias module:models/SimpleLink * @class */ + constructor() { - /** - * The link to the resource. - * @member {String} link - */ - this.link = undefined + + + + + + + + } /** @@ -48,11 +57,30 @@ export default class SimpleLink { if (data) { obj = obj || new SimpleLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } } - return obj } + + /** + * The link to the resource. + * @member {String} link + */ + link = undefined; + + + + + + + + } + + diff --git a/src/models/Site.js b/src/models/Site.js index bb38350..372fd0d 100644 --- a/src/models/Site.js +++ b/src/models/Site.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Locale from './Locale' + + + + /** * The Site model module. * @module models/Site -* @version 17.8 +* @version 20.4 */ export default class Site { /** @@ -30,108 +35,16 @@ export default class Site { * @alias module:models/Site * @class */ - constructor() { - /** - * The list of allowed currencies. - * @member {Array.} allowed_currencies - */ - this.allowed_currencies = undefined - - /** - * A list of all allowed site locales. - * @member {Array.} allowed_locales - */ - this.allowed_locales = undefined - - /** - * The currency mnemonic of the site. - * @member {String} default_currency - */ - this.default_currency = undefined - /** - * The default locale of the site. - * @member {String} default_locale - */ - this.default_locale = undefined - - /** - * The HTTP DIS base URL. - * @member {String} http_dis_base_url - */ - this.http_dis_base_url = undefined - - /** - * The configured HTTP host name. If no host name is configured the instance host name is returned. - * @member {String} http_hostname - */ - this.http_hostname = undefined - - /** - * The HTTP URL to the library content location of the site. - * @member {String} http_library_content_url - */ - this.http_library_content_url = undefined - - /** - * The HTTP URL to the site content location. - * @member {String} http_site_content_url - */ - this.http_site_content_url = undefined - - /** - * The HTTPS DIS base URL. - * @member {String} https_dis_base_url - */ - this.https_dis_base_url = undefined + constructor() { - /** - * The configured HTTPS host name. If no host name is configured the instance host name is returned. - * @member {String} https_hostname - */ - this.https_hostname = undefined - /** - * The HTTPS URL to the library content location of the site. - * @member {String} https_library_content_url - */ - this.https_library_content_url = undefined - /** - * The HTTPS URL to the site content location. - * @member {String} https_site_content_url - */ - this.https_site_content_url = undefined - /** - * The id of the site. - * @member {String} id - */ - this.id = undefined - /** - * The descriptive name for the site. - * @member {String} name - */ - this.name = undefined - /** - * The site status online/offline. - * @member {module:models/Site.StatusEnum} status - */ - this.status = undefined - /** - * The time zone of the site (for example, USA/Eastern). - * @member {String} timezone - */ - this.timezone = undefined - /** - * The time zone offset from UTC for the current time in milliseconds (for example, -14400000). - * @member {Number} timezone_offset - */ - this.timezone_offset = undefined } /** @@ -145,79 +58,178 @@ export default class Site { if (data) { obj = obj || new Site() + + + + if (data.hasOwnProperty('allowed_currencies')) { - obj['allowed_currencies'] = ApiClient.convertToType(data['allowed_currencies'], ['String']) + obj.allowed_currencies = ApiClient.convertToType(data.allowed_currencies, ['String']) } if (data.hasOwnProperty('allowed_locales')) { - obj['allowed_locales'] = ApiClient.convertToType(data['allowed_locales'], [Locale]) + obj.allowed_locales = ApiClient.convertToType(data.allowed_locales, [Locale]) } if (data.hasOwnProperty('default_currency')) { - obj['default_currency'] = ApiClient.convertToType(data['default_currency'], 'String') + obj.default_currency = ApiClient.convertToType(data.default_currency, 'String') } if (data.hasOwnProperty('default_locale')) { - obj['default_locale'] = ApiClient.convertToType(data['default_locale'], 'String') + obj.default_locale = ApiClient.convertToType(data.default_locale, 'String') } if (data.hasOwnProperty('http_dis_base_url')) { - obj['http_dis_base_url'] = ApiClient.convertToType(data['http_dis_base_url'], 'String') + obj.http_dis_base_url = ApiClient.convertToType(data.http_dis_base_url, 'String') } if (data.hasOwnProperty('http_hostname')) { - obj['http_hostname'] = ApiClient.convertToType(data['http_hostname'], 'String') + obj.http_hostname = ApiClient.convertToType(data.http_hostname, 'String') } if (data.hasOwnProperty('http_library_content_url')) { - obj['http_library_content_url'] = ApiClient.convertToType(data['http_library_content_url'], 'String') + obj.http_library_content_url = ApiClient.convertToType(data.http_library_content_url, 'String') } if (data.hasOwnProperty('http_site_content_url')) { - obj['http_site_content_url'] = ApiClient.convertToType(data['http_site_content_url'], 'String') + obj.http_site_content_url = ApiClient.convertToType(data.http_site_content_url, 'String') } if (data.hasOwnProperty('https_dis_base_url')) { - obj['https_dis_base_url'] = ApiClient.convertToType(data['https_dis_base_url'], 'String') + obj.https_dis_base_url = ApiClient.convertToType(data.https_dis_base_url, 'String') } if (data.hasOwnProperty('https_hostname')) { - obj['https_hostname'] = ApiClient.convertToType(data['https_hostname'], 'String') + obj.https_hostname = ApiClient.convertToType(data.https_hostname, 'String') } if (data.hasOwnProperty('https_library_content_url')) { - obj['https_library_content_url'] = ApiClient.convertToType(data['https_library_content_url'], 'String') + obj.https_library_content_url = ApiClient.convertToType(data.https_library_content_url, 'String') } if (data.hasOwnProperty('https_site_content_url')) { - obj['https_site_content_url'] = ApiClient.convertToType(data['https_site_content_url'], 'String') + obj.https_site_content_url = ApiClient.convertToType(data.https_site_content_url, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String') + obj.timezone = ApiClient.convertToType(data.timezone, 'String') } if (data.hasOwnProperty('timezone_offset')) { - obj['timezone_offset'] = ApiClient.convertToType(data['timezone_offset'], 'Number') + obj.timezone_offset = ApiClient.convertToType(data.timezone_offset, 'Number') } } - return obj } -} - -/** -* Allowed values for the status property. -* @enum {String} -* @readonly -*/ -Site.StatusEnum = { /** - * value: "online" - * @const - */ - online: 'online', + * The list of allowed currencies. + * @member {Array.} allowed_currencies + */ + allowed_currencies = undefined; + /** + * A list of all allowed site locales. + * @member {Array.} allowed_locales + */ + allowed_locales = undefined; + /** + * The currency mnemonic of the site. + * @member {String} default_currency + */ + default_currency = undefined; + /** + * The default locale of the site. + * @member {String} default_locale + */ + default_locale = undefined; + /** + * The HTTP DIS base URL. + * @member {String} http_dis_base_url + */ + http_dis_base_url = undefined; + /** + * The configured HTTP host name. If no host name is configured the instance host name is returned. + * @member {String} http_hostname + */ + http_hostname = undefined; + /** + * The HTTP URL to the library content location of the site. + * @member {String} http_library_content_url + */ + http_library_content_url = undefined; + /** + * The HTTP URL to the site content location. + * @member {String} http_site_content_url + */ + http_site_content_url = undefined; + /** + * The HTTPS DIS base URL. + * @member {String} https_dis_base_url + */ + https_dis_base_url = undefined; + /** + * The configured HTTPS host name. If no host name is configured the instance host name is returned. + * @member {String} https_hostname + */ + https_hostname = undefined; + /** + * The HTTPS URL to the library content location of the site. + * @member {String} https_library_content_url + */ + https_library_content_url = undefined; + /** + * The HTTPS URL to the site content location. + * @member {String} https_site_content_url + */ + https_site_content_url = undefined; + /** + * The id of the site. + * @member {String} id + */ + id = undefined; + /** + * The descriptive name for the site. + * @member {String} name + */ + name = undefined; + /** + * The site status online/offline. + * @member {module:models/Site.StatusEnum} status + */ + status = undefined; + /** + * The time zone of the site (for example, USA/Eastern). + * @member {String} timezone + */ + timezone = undefined; + /** + * The time zone offset from UTC for the current time in milliseconds (for example, -14400000). + * @member {Number} timezone_offset + */ + timezone_offset = undefined; + + + + + /** - * value: "offline" - * @const - */ - offline: 'offline' + * Allowed values for the status property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "online" + * @const + */ + online: 'online', + + /** + * value: "offline" + * @const + */ + offline: 'offline' + }; + + + } + + diff --git a/src/models/Sort.js b/src/models/Sort.js index 063077d..4f08fba 100644 --- a/src/models/Sort.js +++ b/src/models/Sort.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Sort model module. * @module models/Sort -* @version 17.8 +* @version 20.4 */ export default class Sort { /** @@ -28,19 +33,18 @@ export default class Sort { * Document representing a sort request. * @alias module:models/Sort * @class + * @param field {String} The name of the field to sort on. */ - constructor() { - /** - * The name of the field to sort on. - * @member {String} field - */ - this.field = undefined - /** - * The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used. - * @member {module:models/Sort.SortOrderEnum} sort_order - */ - this.sort_order = undefined + constructor(field) { + + + + + + this.field = field + + } /** @@ -54,34 +58,58 @@ export default class Sort { if (data) { obj = obj || new Sort() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('sort_order')) { - obj['sort_order'] = ApiClient.convertToType(data['sort_order'], 'String') + obj.sort_order = ApiClient.convertToType(data.sort_order, 'String') } } - return obj } -} - -/** -* Allowed values for the sort_order property. -* @enum {String} -* @readonly -*/ -Sort.SortOrderEnum = { /** - * value: "asc" - * @const - */ - asc: 'asc', + * The name of the field to sort on. + * @member {String} field + */ + field = undefined; + /** + * The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used. + * @member {module:models/Sort.SortOrderEnum} sort_order + */ + sort_order = undefined; + + + + + /** - * value: "desc" - * @const - */ - desc: 'desc' + * Allowed values for the sort_order property. + * @enum {String} + * @readonly + */ + static SortOrderEnum = { + + /** + * value: "asc" + * @const + */ + asc: 'asc', + + /** + * value: "desc" + * @const + */ + desc: 'desc' + }; + + + } + + diff --git a/src/models/Status.js b/src/models/Status.js index 431378f..d81eb60 100644 --- a/src/models/Status.js +++ b/src/models/Status.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Status model module. * @module models/Status -* @version 17.8 +* @version 20.4 */ export default class Status { /** @@ -29,24 +34,16 @@ export default class Status { * @alias module:models/Status * @class */ + constructor() { - /** - * The status code. - * @member {String} code - */ - this.code = undefined - - /** - * The status message. - * @member {String} message - */ - this.message = undefined - - /** - * The status. For more information on the status values see dw.system.Status.OK and dw.system.Status.ERROR. - * @member {Number} status - */ - this.status = undefined + + + + + + + + } /** @@ -60,16 +57,46 @@ export default class Status { if (data) { obj = obj || new Status() + + + + if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String') + obj.code = ApiClient.convertToType(data.code, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Number') + obj.status = ApiClient.convertToType(data.status, 'Number') } } return obj } + + /** + * The status code. + * @member {String} code + */ + code = undefined; + /** + * The status message. + * @member {String} message + */ + message = undefined; + /** + * The status. For more information on the status values see dw.system.Status.OK and dw.system.Status.ERROR. + * @member {Number} status + */ + status = undefined; + + + + + + + + } + + diff --git a/src/models/Store.js b/src/models/Store.js index 53b23d7..a773c59 100644 --- a/src/models/Store.js +++ b/src/models/Store.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Store model module. * @module models/Store -* @version 17.8 +* @version 20.4 */ export default class Store { /** @@ -30,132 +35,16 @@ export default class Store { * @class * @param id {String} The id of the store. */ - constructor(id) { - /** - * The first address of the store. - * @member {String} address1 - */ - this.address1 = undefined - /** - * The second address of the store. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The city of the store. - * @member {String} city - */ - this.city = undefined - - /** - * The country code of the store. - * @member {module:models/Store.CountryCodeEnum} country_code - */ - this.country_code = undefined + constructor(id) { - /** - * The distance to the given geo location in the unit of attribute distance (miles or kilometers). - * @member {Number} distance - */ - this.distance = undefined - /** - * The distance unit the distance attribute is measured in (either in miles or kilometers). - * @member {String} distance_unit - */ - this.distance_unit = undefined - /** - * The email address of the store. - * @member {String} email - */ - this.email = undefined - /** - * The fax number of the store. - * @member {String} fax - */ - this.fax = undefined - /** - * The id of the store. - * @member {String} id - */ this.id = id - /** - * The store image. - * @member {String} image - */ - this.image = undefined - - /** - * The inventory list id associated with this store. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The latitude of the store. - * @member {Number} latitude - */ - this.latitude = undefined - - /** - * The longitude of the store. - * @member {Number} longitude - */ - this.longitude = undefined - - /** - * The store name. - * @member {String} name - */ - this.name = undefined - - /** - * The phone number of the store. - * @member {String} phone - */ - this.phone = undefined - /** - * Whether this store uses Store Point-of-Sale. - * @member {Boolean} pos_enabled - */ - this.pos_enabled = undefined - - /** - * The postal code of the store. - * @member {String} postal_code - */ - this.postal_code = undefined - - /** - * The state code of the store. - * @member {String} state_code - */ - this.state_code = undefined - - /** - * The store events. - * @member {String} store_events - */ - this.store_events = undefined - - /** - * The store opening hours. - * @member {String} store_hours - */ - this.store_hours = undefined - - /** - * Whether this store should show up in store locator results. - * @member {Boolean} store_locator_enabled - */ - this.store_locator_enabled = undefined } /** @@ -169,97 +58,239 @@ export default class Store { if (data) { obj = obj || new Store() + + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') + } + if (data.hasOwnProperty('c_TestAttribute')) { + obj.c_TestAttribute = ApiClient.convertToType(data.c_TestAttribute, ['String']) + } + if (data.hasOwnProperty('c_countryCodeValue')) { + obj.c_countryCodeValue = ApiClient.convertToType(data.c_countryCodeValue, 'String') + } + if (data.hasOwnProperty('c_inventoryListId')) { + obj.c_inventoryListId = ApiClient.convertToType(data.c_inventoryListId, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('distance')) { - obj['distance'] = ApiClient.convertToType(data['distance'], 'Number') + obj.distance = ApiClient.convertToType(data.distance, 'Number') } if (data.hasOwnProperty('distance_unit')) { - obj['distance_unit'] = ApiClient.convertToType(data['distance_unit'], 'String') + obj.distance_unit = ApiClient.convertToType(data.distance_unit, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('fax')) { - obj['fax'] = ApiClient.convertToType(data['fax'], 'String') + obj.fax = ApiClient.convertToType(data.fax, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('latitude')) { - obj['latitude'] = ApiClient.convertToType(data['latitude'], 'Number') + obj.latitude = ApiClient.convertToType(data.latitude, 'Number') } if (data.hasOwnProperty('longitude')) { - obj['longitude'] = ApiClient.convertToType(data['longitude'], 'Number') + obj.longitude = ApiClient.convertToType(data.longitude, 'Number') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('pos_enabled')) { - obj['pos_enabled'] = ApiClient.convertToType(data['pos_enabled'], 'Boolean') + obj.pos_enabled = ApiClient.convertToType(data.pos_enabled, 'Boolean') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('store_events')) { - obj['store_events'] = ApiClient.convertToType(data['store_events'], 'String') + obj.store_events = ApiClient.convertToType(data.store_events, 'String') } if (data.hasOwnProperty('store_hours')) { - obj['store_hours'] = ApiClient.convertToType(data['store_hours'], 'String') + obj.store_hours = ApiClient.convertToType(data.store_hours, 'String') } if (data.hasOwnProperty('store_locator_enabled')) { - obj['store_locator_enabled'] = ApiClient.convertToType(data['store_locator_enabled'], 'Boolean') + obj.store_locator_enabled = ApiClient.convertToType(data.store_locator_enabled, 'Boolean') } } - return obj } -} - -/** -* Allowed values for the country_code property. -* @enum {String} -* @readonly -*/ -Store.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address of the store. + * @member {String} address1 + */ + address1 = undefined; + /** + * The second address of the store. + * @member {String} address2 + */ + address2 = undefined; + /** + * @member {Array.} c_TestAttribute + */ + c_TestAttribute = undefined; /** - * value: "CA" - * @const - */ - CA: 'CA', + * Country Code Value - for the form values + * @member {String} c_countryCodeValue + */ + c_countryCodeValue = undefined; + /** + * Store Inventory List ID + * @member {String} c_inventoryListId + */ + c_inventoryListId = undefined; + /** + * The city of the store. + * @member {String} city + */ + city = undefined; + /** + * The country code of the store. + * @member {module:models/Store.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * The distance to the given geo location in the unit of attribute distance (miles or kilometers). + * @member {Number} distance + */ + distance = undefined; + /** + * The distance unit the distance attribute is measured in (either in miles or kilometers). + * @member {String} distance_unit + */ + distance_unit = undefined; + /** + * The email address of the store. + * @member {String} email + */ + email = undefined; + /** + * The fax number of the store. + * @member {String} fax + */ + fax = undefined; + /** + * The id of the store. + * @member {String} id + */ + id = undefined; + /** + * The store image. + * @member {String} image + */ + image = undefined; + /** + * The inventory list id associated with this store. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The latitude of the store. + * @member {Number} latitude + */ + latitude = undefined; + /** + * The longitude of the store. + * @member {Number} longitude + */ + longitude = undefined; + /** + * The store name. + * @member {String} name + */ + name = undefined; + /** + * The phone number of the store. + * @member {String} phone + */ + phone = undefined; + /** + * Whether this store uses Store Point-of-Sale. + * @member {Boolean} pos_enabled + */ + pos_enabled = undefined; + /** + * The postal code of the store. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The state code of the store. + * @member {String} state_code + */ + state_code = undefined; + /** + * The store events. + * @member {String} store_events + */ + store_events = undefined; + /** + * The store opening hours. + * @member {String} store_hours + */ + store_hours = undefined; + /** + * Whether this store should show up in store locator results. + * @member {Boolean} store_locator_enabled + */ + store_locator_enabled = undefined; + + + + + /** - * value: "DE" - * @const - */ - DE: 'DE' + * Allowed values for the country_code property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "CA" + * @const + */ + CA: 'CA', + + /** + * value: "DE" + * @const + */ + DE: 'DE' + }; + + + } + + diff --git a/src/models/StoreResult.js b/src/models/StoreResult.js index 5fddd72..5a0b614 100644 --- a/src/models/StoreResult.js +++ b/src/models/StoreResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Store from './Store' + + + + /** * The StoreResult model module. * @module models/StoreResult -* @version 17.8 +* @version 20.4 */ export default class StoreResult { /** @@ -30,42 +35,16 @@ export default class StoreResult { * @alias module:models/StoreResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of store documents. - * @member {Array.} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -79,26 +58,70 @@ export default class StoreResult { if (data) { obj = obj || new StoreResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Store]) + obj.data = ApiClient.convertToType(data.data, [Store]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of search results in the current page. + * @member {Number} count + */ + count = undefined; + /** + * + * @member {Array.} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The zero-based index of the first search result to include in the document. + * @member {Number} start + */ + start = undefined; + /** + * The total number of search results. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedCategory.js b/src/models/SuggestedCategory.js index daefa4f..fffb189 100644 --- a/src/models/SuggestedCategory.js +++ b/src/models/SuggestedCategory.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedCategory model module. * @module models/SuggestedCategory -* @version 17.8 +* @version 20.4 */ export default class SuggestedCategory { /** @@ -28,30 +33,16 @@ export default class SuggestedCategory { * @alias module:models/SuggestedCategory * @class */ + constructor() { - /** - * The id of the category. - * @member {String} id - */ - this.id = undefined - - /** - * The URL addressing the category. - * @member {String} link - */ - this.link = undefined - - /** - * The localized name of the category. - * @member {String} name - */ - this.name = undefined - - /** - * The name of the parent category. - * @member {String} parent_category_name - */ - this.parent_category_name = undefined + + + + + + + + } /** @@ -65,20 +56,54 @@ export default class SuggestedCategory { if (data) { obj = obj || new SuggestedCategory() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('parent_category_name')) { - obj['parent_category_name'] = ApiClient.convertToType(data['parent_category_name'], 'String') + obj.parent_category_name = ApiClient.convertToType(data.parent_category_name, 'String') } } - return obj } + + /** + * The id of the category. + * @member {String} id + */ + id = undefined; + /** + * The URL addressing the category. + * @member {String} link + */ + link = undefined; + /** + * The localized name of the category. + * @member {String} name + */ + name = undefined; + /** + * The name of the parent category. + * @member {String} parent_category_name + */ + parent_category_name = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedContent.js b/src/models/SuggestedContent.js index 301afa1..db7303f 100644 --- a/src/models/SuggestedContent.js +++ b/src/models/SuggestedContent.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedContent model module. * @module models/SuggestedContent -* @version 17.8 +* @version 20.4 */ export default class SuggestedContent { /** @@ -28,24 +33,16 @@ export default class SuggestedContent { * @alias module:models/SuggestedContent * @class */ + constructor() { - /** - * The id of the content. - * @member {String} id - */ - this.id = undefined - - /** - * The URL addressing the content. - * @member {String} link - */ - this.link = undefined - - /** - * The localized name of the content. - * @member {String} name - */ - this.name = undefined + + + + + + + + } /** @@ -59,15 +56,46 @@ export default class SuggestedContent { if (data) { obj = obj || new SuggestedContent() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } } + return obj } + + /** + * The id of the content. + * @member {String} id + */ + id = undefined; + /** + * The URL addressing the content. + * @member {String} link + */ + link = undefined; + /** + * The localized name of the content. + * @member {String} name + */ + name = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedPhrase.js b/src/models/SuggestedPhrase.js index 3517042..090cd99 100644 --- a/src/models/SuggestedPhrase.js +++ b/src/models/SuggestedPhrase.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedPhrase model module. * @module models/SuggestedPhrase -* @version 17.8 +* @version 20.4 */ export default class SuggestedPhrase { /** @@ -29,18 +34,16 @@ export default class SuggestedPhrase { * @alias module:models/SuggestedPhrase * @class */ + constructor() { - /** - * Returns whether this suggested phrase exactly matches the user input search phrase. - * @member {Boolean} exact_match - */ - this.exact_match = undefined - - /** - * Returns the suggested search phrase. - * @member {String} phrase - */ - this.phrase = undefined + + + + + + + + } /** @@ -54,14 +57,38 @@ export default class SuggestedPhrase { if (data) { obj = obj || new SuggestedPhrase() + + + + if (data.hasOwnProperty('exact_match')) { - obj['exact_match'] = ApiClient.convertToType(data['exact_match'], 'Boolean') + obj.exact_match = ApiClient.convertToType(data.exact_match, 'Boolean') } if (data.hasOwnProperty('phrase')) { - obj['phrase'] = ApiClient.convertToType(data['phrase'], 'String') + obj.phrase = ApiClient.convertToType(data.phrase, 'String') } } - return obj } + + /** + * Returns whether this suggested phrase exactly matches the user input search phrase. + * @member {Boolean} exact_match + */ + exact_match = undefined; + /** + * Returns the suggested search phrase. + * @member {String} phrase + */ + phrase = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedProduct.js b/src/models/SuggestedProduct.js index c23160b..418cf58 100644 --- a/src/models/SuggestedProduct.js +++ b/src/models/SuggestedProduct.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' + + + + /** * The SuggestedProduct model module. * @module models/SuggestedProduct -* @version 17.8 +* @version 20.4 */ export default class SuggestedProduct { /** @@ -30,43 +35,16 @@ export default class SuggestedProduct { * @alias module:models/SuggestedProduct * @class */ + constructor() { - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The first image of the product hit for the configured viewtype. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * The sales price of the product. In the case of complex products like a master or a set, - * this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the product. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The localized name of the product. - * @member {String} product_name - */ - this.product_name = undefined + + + + + + + + } /** @@ -80,26 +58,70 @@ export default class SuggestedProduct { if (data) { obj = obj || new SuggestedProduct() + + + + if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } } - return obj } + + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The first image of the product hit for the configured viewtype. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The localized name of the product. + * @member {String} product_name + */ + product_name = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedTerm.js b/src/models/SuggestedTerm.js index b9ba8c3..49688eb 100644 --- a/src/models/SuggestedTerm.js +++ b/src/models/SuggestedTerm.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedTerm model module. * @module models/SuggestedTerm -* @version 17.8 +* @version 20.4 */ export default class SuggestedTerm { /** @@ -29,30 +34,16 @@ export default class SuggestedTerm { * @alias module:models/SuggestedTerm * @class */ + constructor() { - /** - * Returns whether this term value is a completion match. - * @member {Boolean} completed - */ - this.completed = undefined - - /** - * Returns whether this term value is a correction match. - * @member {Boolean} corrected - */ - this.corrected = undefined - - /** - * Returns whether this term value is a exact match. - * @member {Boolean} exact_match - */ - this.exact_match = undefined - - /** - * Returns the term value. - * @member {String} value - */ - this.value = undefined + + + + + + + + } /** @@ -66,20 +57,54 @@ export default class SuggestedTerm { if (data) { obj = obj || new SuggestedTerm() + + + + if (data.hasOwnProperty('completed')) { - obj['completed'] = ApiClient.convertToType(data['completed'], 'Boolean') + obj.completed = ApiClient.convertToType(data.completed, 'Boolean') } if (data.hasOwnProperty('corrected')) { - obj['corrected'] = ApiClient.convertToType(data['corrected'], 'Boolean') + obj.corrected = ApiClient.convertToType(data.corrected, 'Boolean') } if (data.hasOwnProperty('exact_match')) { - obj['exact_match'] = ApiClient.convertToType(data['exact_match'], 'Boolean') + obj.exact_match = ApiClient.convertToType(data.exact_match, 'Boolean') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } } - return obj } + + /** + * Returns whether this term value is a completion match. + * @member {Boolean} completed + */ + completed = undefined; + /** + * Returns whether this term value is a correction match. + * @member {Boolean} corrected + */ + corrected = undefined; + /** + * Returns whether this term value is a exact match. + * @member {Boolean} exact_match + */ + exact_match = undefined; + /** + * Returns the term value. + * @member {String} value + */ + value = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestedTerms.js b/src/models/SuggestedTerms.js index fd39da7..03295bd 100644 --- a/src/models/SuggestedTerms.js +++ b/src/models/SuggestedTerms.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestedTerm from './SuggestedTerm' + + + + /** * The SuggestedTerms model module. * @module models/SuggestedTerms -* @version 17.8 +* @version 20.4 */ export default class SuggestedTerms { /** @@ -30,18 +35,16 @@ export default class SuggestedTerms { * @alias module:models/SuggestedTerms * @class */ + constructor() { - /** - * Returns the original term that the suggested terms relates to. - * @member {String} original_term - */ - this.original_term = undefined - - /** - * Returns the suggested terms. - * @member {Array.} terms - */ - this.terms = undefined + + + + + + + + } /** @@ -55,14 +58,38 @@ export default class SuggestedTerms { if (data) { obj = obj || new SuggestedTerms() + + + + if (data.hasOwnProperty('original_term')) { - obj['original_term'] = ApiClient.convertToType(data['original_term'], 'String') + obj.original_term = ApiClient.convertToType(data.original_term, 'String') } if (data.hasOwnProperty('terms')) { - obj['terms'] = ApiClient.convertToType(data['terms'], [SuggestedTerm]) + obj.terms = ApiClient.convertToType(data.terms, [SuggestedTerm]) } } - return obj } + + /** + * Returns the original term that the suggested terms relates to. + * @member {String} original_term + */ + original_term = undefined; + /** + * Returns the suggested terms. + * @member {Array.} terms + */ + terms = undefined; + + + + + + + + } + + diff --git a/src/models/Suggestion.js b/src/models/Suggestion.js index be3878d..4e0bc41 100644 --- a/src/models/Suggestion.js +++ b/src/models/Suggestion.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,6 +14,8 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestedCategory from './SuggestedCategory' import SuggestedContent from './SuggestedContent' @@ -22,10 +23,14 @@ import SuggestedPhrase from './SuggestedPhrase' import SuggestedProduct from './SuggestedProduct' import SuggestedTerms from './SuggestedTerms' + + + + /** * The Suggestion model module. * @module models/Suggestion -* @version 17.8 +* @version 20.4 */ export default class Suggestion { /** @@ -34,48 +39,16 @@ export default class Suggestion { * @alias module:models/Suggestion * @class */ + constructor() { - /** - * The sorted list of suggested brands. This list can be empty. - * @member {Array.} brands - */ - this.brands = undefined - - /** - * The sorted list of suggested categories. This list can be empty. - * @member {Array.} categories - */ - this.categories = undefined - - /** - * The sorted list of suggested content. This list can be empty. - * @member {Array.} content - */ - this.content = undefined - - /** - * The sorted list of suggested custom suggestions. This list can be empty. - * @member {Array.} custom_suggestions - */ - this.custom_suggestions = undefined - - /** - * The sorted list of suggested products. This list can be empty. - * @member {Array.} products - */ - this.products = undefined - - /** - * A list of suggested phrases. This list can be empty. - * @member {Array.} suggested_phrases - */ - this.suggested_phrases = undefined - - /** - * A list of suggested terms. This list can be empty. - * @member {Array.} suggested_terms - */ - this.suggested_terms = undefined + + + + + + + + } /** @@ -89,29 +62,78 @@ export default class Suggestion { if (data) { obj = obj || new Suggestion() + + + + if (data.hasOwnProperty('brands')) { - obj['brands'] = ApiClient.convertToType(data['brands'], ['String']) + obj.brands = ApiClient.convertToType(data.brands, ['String']) } if (data.hasOwnProperty('categories')) { - obj['categories'] = ApiClient.convertToType(data['categories'], [SuggestedCategory]) + obj.categories = ApiClient.convertToType(data.categories, [SuggestedCategory]) } if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], [SuggestedContent]) + obj.content = ApiClient.convertToType(data.content, [SuggestedContent]) } if (data.hasOwnProperty('custom_suggestions')) { - obj['custom_suggestions'] = ApiClient.convertToType(data['custom_suggestions'], ['String']) + obj.custom_suggestions = ApiClient.convertToType(data.custom_suggestions, ['String']) } if (data.hasOwnProperty('products')) { - obj['products'] = ApiClient.convertToType(data['products'], [SuggestedProduct]) + obj.products = ApiClient.convertToType(data.products, [SuggestedProduct]) } if (data.hasOwnProperty('suggested_phrases')) { - obj['suggested_phrases'] = ApiClient.convertToType(data['suggested_phrases'], [SuggestedPhrase]) + obj.suggested_phrases = ApiClient.convertToType(data.suggested_phrases, [SuggestedPhrase]) } if (data.hasOwnProperty('suggested_terms')) { - obj['suggested_terms'] = ApiClient.convertToType(data['suggested_terms'], [SuggestedTerms]) + obj.suggested_terms = ApiClient.convertToType(data.suggested_terms, [SuggestedTerms]) } } - return obj } + + /** + * The sorted list of suggested brands. This list can be empty. + * @member {Array.} brands + */ + brands = undefined; + /** + * The sorted list of suggested categories. This list can be empty. + * @member {Array.} categories + */ + categories = undefined; + /** + * The sorted list of suggested content. This list can be empty. + * @member {Array.} content + */ + content = undefined; + /** + * The sorted list of suggested custom suggestions. This list can be empty. + * @member {Array.} custom_suggestions + */ + custom_suggestions = undefined; + /** + * The sorted list of suggested products. This list can be empty. + * @member {Array.} products + */ + products = undefined; + /** + * A list of suggested phrases. This list can be empty. + * @member {Array.} suggested_phrases + */ + suggested_phrases = undefined; + /** + * A list of suggested terms. This list can be empty. + * @member {Array.} suggested_terms + */ + suggested_terms = undefined; + + + + + + + + } + + diff --git a/src/models/SuggestionResult.js b/src/models/SuggestionResult.js index f77f10c..85fcd57 100644 --- a/src/models/SuggestionResult.js +++ b/src/models/SuggestionResult.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,13 +14,19 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Suggestion from './Suggestion' + + + + /** * The SuggestionResult model module. * @module models/SuggestionResult -* @version 17.8 +* @version 20.4 */ export default class SuggestionResult { /** @@ -30,42 +35,16 @@ export default class SuggestionResult { * @alias module:models/SuggestionResult * @class */ + constructor() { - /** - * Returns the suggested brands. - * @member {module:models/Suggestion} brand_suggestions - */ - this.brand_suggestions = undefined - - /** - * Returns the suggested categories. - * @member {module:models/Suggestion} category_suggestions - */ - this.category_suggestions = undefined - - /** - * Returns the suggested content. - * @member {module:models/Suggestion} content_suggestions - */ - this.content_suggestions = undefined - - /** - * Returns the suggested custom suggestions. - * @member {module:models/Suggestion} custom_suggestions - */ - this.custom_suggestions = undefined - - /** - * Returns the suggested products. - * @member {module:models/Suggestion} product_suggestions - */ - this.product_suggestions = undefined - - /** - * The query phrase to search for. - * @member {String} query - */ - this.query = undefined + + + + + + + + } /** @@ -79,26 +58,70 @@ export default class SuggestionResult { if (data) { obj = obj || new SuggestionResult() + + + + if (data.hasOwnProperty('brand_suggestions')) { - obj['brand_suggestions'] = Suggestion.constructFromObject(data['brand_suggestions']) + obj.brand_suggestions = Suggestion.constructFromObject(data.brand_suggestions) } if (data.hasOwnProperty('category_suggestions')) { - obj['category_suggestions'] = Suggestion.constructFromObject(data['category_suggestions']) + obj.category_suggestions = Suggestion.constructFromObject(data.category_suggestions) } if (data.hasOwnProperty('content_suggestions')) { - obj['content_suggestions'] = Suggestion.constructFromObject(data['content_suggestions']) + obj.content_suggestions = Suggestion.constructFromObject(data.content_suggestions) } if (data.hasOwnProperty('custom_suggestions')) { - obj['custom_suggestions'] = Suggestion.constructFromObject(data['custom_suggestions']) + obj.custom_suggestions = Suggestion.constructFromObject(data.custom_suggestions) } if (data.hasOwnProperty('product_suggestions')) { - obj['product_suggestions'] = Suggestion.constructFromObject(data['product_suggestions']) + obj.product_suggestions = Suggestion.constructFromObject(data.product_suggestions) } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } } - return obj } + + /** + * Returns the suggested brands. + * @member {module:models/Suggestion} brand_suggestions + */ + brand_suggestions = undefined; + /** + * Returns the suggested categories. + * @member {module:models/Suggestion} category_suggestions + */ + category_suggestions = undefined; + /** + * Returns the suggested content. + * @member {module:models/Suggestion} content_suggestions + */ + content_suggestions = undefined; + /** + * Returns the suggested custom suggestions. + * @member {module:models/Suggestion} custom_suggestions + */ + custom_suggestions = undefined; + /** + * Returns the suggested products. + * @member {module:models/Suggestion} product_suggestions + */ + product_suggestions = undefined; + /** + * The query phrase to search for. + * @member {String} query + */ + query = undefined; + + + + + + + + } + + diff --git a/src/models/TermFilter.js b/src/models/TermFilter.js index c2177a8..dd9be29 100644 --- a/src/models/TermFilter.js +++ b/src/models/TermFilter.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TermFilter model module. * @module models/TermFilter -* @version 17.8 +* @version 20.4 */ export default class TermFilter { /** @@ -29,27 +34,18 @@ export default class TermFilter { * @alias module:models/TermFilter * @class * @param field {String} The filter field. - * @param operator {module:models/TermFilter.OperatorEnum} The operator to compare - * the field's values with the given ones. + * @param operator {module:models/TermFilter.OperatorEnum} The operator to compare the field's values with the given ones. */ + constructor(field, operator) { - /** - * The filter field. - * @member {String} field - */ - this.field = field - /** - * The operator to compare the field's values with the given ones. - * @member {module:models/TermFilter.OperatorEnum} operator - */ - this.operator = operator - /** - * The filter values. - * @member {Array.} values - */ - this.values = undefined + + + + this.field = field; this.operator = operator + + } /** @@ -63,73 +59,102 @@ export default class TermFilter { if (data) { obj = obj || new TermFilter() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [Object]) + obj.values = ApiClient.convertToType(data.values, [Object]) } } - return obj } -} - -/** -* Allowed values for the operator property. -* @enum {String} -* @readonly -*/ -TermFilter.OperatorEnum = { /** - * value: "is" - * @const - */ - is: 'is', - + * The filter field. + * @member {String} field + */ + field = undefined; /** - * value: "one_of" - * @const - */ - one_of: 'one_of', - + * The operator to compare the field's values with the given ones. + * @member {module:models/TermFilter.OperatorEnum} operator + */ + operator = undefined; /** - * value: "is_null" - * @const - */ - is_null: 'is_null', + * The filter values. + * @member {Array.} values + */ + values = undefined; + - /** - * value: "is_not_null" - * @const - */ - is_not_null: 'is_not_null', - /** - * value: "less" - * @const - */ - less: 'less', - /** - * value: "greater" - * @const - */ - greater: 'greater', - /** - * value: "not_in" - * @const - */ - not_in: 'not_in', /** - * value: "neq" - * @const - */ - neq: 'neq' + * Allowed values for the operator property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "is" + * @const + */ + is: 'is', + + /** + * value: "one_of" + * @const + */ + one_of: 'one_of', + + /** + * value: "is_null" + * @const + */ + is_null: 'is_null', + + /** + * value: "is_not_null" + * @const + */ + is_not_null: 'is_not_null', + + /** + * value: "less" + * @const + */ + less: 'less', + + /** + * value: "greater" + * @const + */ + greater: 'greater', + + /** + * value: "not_in" + * @const + */ + not_in: 'not_in', + + /** + * value: "neq" + * @const + */ + neq: 'neq' + }; + + + } + + diff --git a/src/models/TermQuery.js b/src/models/TermQuery.js index bceea2e..36fed95 100644 --- a/src/models/TermQuery.js +++ b/src/models/TermQuery.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,44 +14,38 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TermQuery model module. * @module models/TermQuery -* @version 17.8 +* @version 20.4 */ export default class TermQuery { /** * Constructs a new TermQuery. - * A term query matches one (or more) value(s) against one (or more) document - * field(s). A document is considered a hit if one of the values matches (exactly) - * with at least one of the given fields. The operator \"is\" can only - * take one value, while \"one_of\" can take multiple. If multiple - * fields are specified, they are combined using the OR operator. + * A term query matches one (or more) value(s) against one (or more) document field(s). A document is considered a hit if one of the values matches (exactly) with at least one of the given fields. The operator \"is\" can only take one value, while \"one_of\" can take multiple values. If multiple fields are specified, they are combined using the OR operator. The * @alias module:models/TermQuery * @class * @param fields {Array.} The document field(s), the value(s) are matched against, combined with the operator. * @param operator {module:models/TermQuery.OperatorEnum} Returns the operator to use for the term query. */ + constructor(fields, operator) { - /** - * The document field(s), the value(s) are matched against, combined with the operator. - * @member {Array.} fields - */ - this.fields = fields - /** - * Returns the operator to use for the term query. - * @member {module:models/TermQuery.OperatorEnum} operator - */ - this.operator = operator - /** - * The values, the field(s) are compared against, combined with the operator. - * @member {Array.} values - */ - this.values = undefined + + + + this.fields = fields; this.operator = operator + + } /** @@ -66,73 +59,102 @@ export default class TermQuery { if (data) { obj = obj || new TermQuery() + + + + if (data.hasOwnProperty('fields')) { - obj['fields'] = ApiClient.convertToType(data['fields'], ['String']) + obj.fields = ApiClient.convertToType(data.fields, ['String']) } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [Object]) + obj.values = ApiClient.convertToType(data.values, [Object]) } } - return obj } -} - -/** -* Allowed values for the operator property. -* @enum {String} -* @readonly -*/ -TermQuery.OperatorEnum = { /** - * value: "is" - * @const - */ - is: 'is', - + * The document field(s), the value(s) are matched against, combined with the operator. + * @member {Array.} fields + */ + fields = undefined; /** - * value: "one_of" - * @const - */ - one_of: 'one_of', - + * Returns the operator to use for the term query. + * @member {module:models/TermQuery.OperatorEnum} operator + */ + operator = undefined; /** - * value: "is_null" - * @const - */ - is_null: 'is_null', + * The values, the field(s) are compared against, combined with the operator. + * @member {Array.} values + */ + values = undefined; + - /** - * value: "is_not_null" - * @const - */ - is_not_null: 'is_not_null', - /** - * value: "less" - * @const - */ - less: 'less', - /** - * value: "greater" - * @const - */ - greater: 'greater', - /** - * value: "not_in" - * @const - */ - not_in: 'not_in', /** - * value: "neq" - * @const - */ - neq: 'neq' + * Allowed values for the operator property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "is" + * @const + */ + is: 'is', + + /** + * value: "one_of" + * @const + */ + one_of: 'one_of', + + /** + * value: "is_null" + * @const + */ + is_null: 'is_null', + + /** + * value: "is_not_null" + * @const + */ + is_not_null: 'is_not_null', + + /** + * value: "less" + * @const + */ + less: 'less', + + /** + * value: "greater" + * @const + */ + greater: 'greater', + + /** + * value: "not_in" + * @const + */ + not_in: 'not_in', + + /** + * value: "neq" + * @const + */ + neq: 'neq' + }; + + + } + + diff --git a/src/models/TextQuery.js b/src/models/TextQuery.js index 3d9d47d..634e3dc 100644 --- a/src/models/TextQuery.js +++ b/src/models/TextQuery.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,21 +14,23 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TextQuery model module. * @module models/TextQuery -* @version 17.8 +* @version 20.4 */ export default class TextQuery { /** * Constructs a new TextQuery. - * A text query is used to match some text (i.e. a search phrase possibly consisting of - * multiple terms) against one or multiple fields. In case multiple fields are provided, - * the phrase conceptually forms a logical OR over the fields. In this case, the terms - * of the phrase basically have to match within the text, that would result in - * concatenating all given fields. + * A text query is used to match some text (i.e. a search phrase possibly consisting of multiple terms) against one or multiple fields. In case multiple fields are provided, the phrase conceptually forms a logical OR over the fields. In this case, the terms of the phrase basically have to match within the text, that would result in concatenating all given fields. * @alias module:models/TextQuery * @class * @param fields {Array.} The document fields the search phrase has to match against. @@ -37,16 +38,14 @@ export default class TextQuery { */ constructor(fields, searchPhrase) { - /** - * The document fields the search phrase has to match against. - * @member {Array.} fields - */ - this.fields = fields - /** - * A search phrase, which may consist of multiple terms. - * @member {String} search_phrase - */ - this.search_phrase = searchPhrase + + + + + + this.fields = fields; this.search_phrase = searchPhrase + + } /** @@ -60,13 +59,38 @@ export default class TextQuery { if (data) { obj = obj || new TextQuery() + + + + if (data.hasOwnProperty('fields')) { - obj['fields'] = ApiClient.convertToType(data['fields'], ['String']) + obj.fields = ApiClient.convertToType(data.fields, ['String']) } if (data.hasOwnProperty('search_phrase')) { - obj['search_phrase'] = ApiClient.convertToType(data['search_phrase'], 'String') + obj.search_phrase = ApiClient.convertToType(data.search_phrase, 'String') } } return obj } + + /** + * The document fields the search phrase has to match against. + * @member {Array.} fields + */ + fields = undefined; + /** + * A search phrase, which may consist of multiple terms. + * @member {String} search_phrase + */ + search_phrase = undefined; + + + + + + + + } + + diff --git a/src/models/TrustedSystemAuthRequest.js b/src/models/TrustedSystemAuthRequest.js new file mode 100644 index 0000000..63ac4fc --- /dev/null +++ b/src/models/TrustedSystemAuthRequest.js @@ -0,0 +1,95 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + +/** + * Shop API + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: 20.4 + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + * + */ + + +import ApiClient from '../ApiClient' + + + + + +/** +* The TrustedSystemAuthRequest model module. +* @module models/TrustedSystemAuthRequest +* @version 20.4 +*/ +export default class TrustedSystemAuthRequest { + /** + * Constructs a new TrustedSystemAuthRequest. + * @alias module:models/TrustedSystemAuthRequest + * @class + * @param clientId {String} The client id of the shopping application to be encoded in the customer JWT. This is not the same as the OAuth Client ID used to authenticate the API call. The OAuth Client ID is the trusted/private one; this is the untrusted/public one. + * @param login {String} The customer's login. + */ + + constructor(clientId, login) { + + + + + + this.client_id = clientId; this.login = login + + + } + + /** + * Constructs a TrustedSystemAuthRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/TrustedSystemAuthRequest} obj Optional instance to populate. + * @return {module:models/TrustedSystemAuthRequest} The populated TrustedSystemAuthRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TrustedSystemAuthRequest() + + + + + + if (data.hasOwnProperty('client_id')) { + obj.client_id = ApiClient.convertToType(data.client_id, 'String') + } + if (data.hasOwnProperty('login')) { + obj.login = ApiClient.convertToType(data.login, 'String') + } + } + return obj + } + + /** + * The client id of the shopping application to be encoded in the customer JWT. This is not the same as the OAuth Client ID used to authenticate the API call. The OAuth Client ID is the trusted/private one; this is the untrusted/public one. + * @member {String} client_id + */ + client_id = undefined; + /** + * The customer's login. + * @member {String} login + */ + login = undefined; + + + + + + + + +} + + diff --git a/src/models/Variant.js b/src/models/Variant.js index ae1da1c..aab1674 100644 --- a/src/models/Variant.js +++ b/src/models/Variant.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Variant model module. * @module models/Variant -* @version 17.8 +* @version 20.4 */ export default class Variant { /** @@ -31,36 +36,16 @@ export default class Variant { * @param link {String} The URL addressing the product. * @param productId {String} The id (SKU) of the variant. */ + constructor(link, productId) { - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = link - - /** - * A flag indicating whether the variant is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the variant. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the variant. - * @member {String} product_id - */ - this.product_id = productId - - /** - * The actual variation attribute id - value pairs. - * @member {Object.} variation_values - */ - this.variation_values = undefined + + + + + + this.link = link; this.product_id = productId + + } /** @@ -74,22 +59,62 @@ export default class Variant { if (data) { obj = obj || new Variant() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } return obj } + + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the variant is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the variant. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the variant. + * @member {String} product_id + */ + product_id = undefined; + /** + * The actual variation attribute id - value pairs. + * @member {Object.} variation_values + */ + variation_values = undefined; + + + + + + + + } + + diff --git a/src/models/VariationAttribute.js b/src/models/VariationAttribute.js index 5049bb2..6ef604a 100644 --- a/src/models/VariationAttribute.js +++ b/src/models/VariationAttribute.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,36 +14,38 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import VariationAttributeValue from './VariationAttributeValue' + + + + /** * The VariationAttribute model module. * @module models/VariationAttribute -* @version 17.8 +* @version 20.4 */ export default class VariationAttribute { /** * Constructs a new VariationAttribute. + * Document representing a variation attribute. * @alias module:models/VariationAttribute * @class - * @param id {String} + * @param id {String} The id of the variation attribute. */ + constructor(id) { - /** - * @member {String} id - */ + + + + + this.id = id - /** - * @member {String} name - */ - this.name = undefined - /** - * @member {Array.} values - */ - this.values = undefined } /** @@ -58,16 +59,46 @@ export default class VariationAttribute { if (data) { obj = obj || new VariationAttribute() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [VariationAttributeValue]) + obj.values = ApiClient.convertToType(data.values, [VariationAttributeValue]) } } return obj } + + /** + * The id of the variation attribute. + * @member {String} id + */ + id = undefined; + /** + * The localized display name of the variation attribute. + * @member {String} name + */ + name = undefined; + /** + * The sorted array of variation values. This array can be empty. + * @member {Array.} values + */ + values = undefined; + + + + + + + + } + + diff --git a/src/models/VariationAttributeValue.js b/src/models/VariationAttributeValue.js index 4ddbe40..856e6f7 100644 --- a/src/models/VariationAttributeValue.js +++ b/src/models/VariationAttributeValue.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,51 +14,38 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' + + + + /** * The VariationAttributeValue model module. * @module models/VariationAttributeValue -* @version 17.8 +* @version 20.4 */ export default class VariationAttributeValue { /** * Constructs a new VariationAttributeValue. + * Document representing a variation attribute value. * @alias module:models/VariationAttributeValue * @class - * @param value {String} + * @param value {String} The actual variation value. */ + constructor(value) { - /** - * @member {String} description - */ - this.description = undefined - - /** - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * @member {module:models/Image} image_swatch - */ - this.image_swatch = undefined - - /** - * @member {String} name - */ - this.name = undefined - - /** - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * @member {String} value - */ + + + + + this.value = value + + } /** @@ -73,26 +59,70 @@ export default class VariationAttributeValue { if (data) { obj = obj || new VariationAttributeValue() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('image_swatch')) { - obj['image_swatch'] = Image.constructFromObject(data['image_swatch']) + obj.image_swatch = Image.constructFromObject(data.image_swatch) } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } } - return obj } + + /** + * The localized description of the variation value. + * @member {String} description + */ + description = undefined; + /** + * The first product image for the configured viewtype and this variation value. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The first product image for the configured viewtype and this variation value. (typically the swatch image) + * @member {module:models/Image} image_swatch + */ + image_swatch = undefined; + /** + * The localized display name of the variation value. + * @member {String} name + */ + name = undefined; + /** + * A flag indicating whether at least one variant with this variation attribute value is available to sell. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The actual variation value. + * @member {String} value + */ + value = undefined; + + + + + + + + } + + diff --git a/src/models/VariationGroup.js b/src/models/VariationGroup.js index d94ceb7..a66c223 100644 --- a/src/models/VariationGroup.js +++ b/src/models/VariationGroup.js @@ -2,12 +2,11 @@ /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* eslint-disable dot-notation */ /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -15,12 +14,18 @@ * Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The VariationGroup model module. * @module models/VariationGroup -* @version 17.8 +* @version 20.4 */ export default class VariationGroup { /** @@ -29,36 +34,16 @@ export default class VariationGroup { * @alias module:models/VariationGroup * @class */ + constructor() { - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * A flag indicating whether the variation group is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the variation group. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the variation group. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The actual variation attribute id - value pairs. - * @member {Object.} variation_values - */ - this.variation_values = undefined + + + + + + + + } /** @@ -72,23 +57,62 @@ export default class VariationGroup { if (data) { obj = obj || new VariationGroup() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } - return obj } + + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the variation group is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the variation group. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the variation group. + * @member {String} product_id + */ + product_id = undefined; + /** + * The actual variation attribute id - value pairs. + * @member {Object.} variation_values + */ + variation_values = undefined; + + + + + + + + } + + diff --git a/test/api/BasketsApi.spec.js b/test/api/BasketsApi.spec.js index 28335fa..d7c3e79 100644 --- a/test/api/BasketsApi.spec.js +++ b/test/api/BasketsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/CategoriesApi.spec.js b/test/api/CategoriesApi.spec.js index 7de292e..072fcbd 100644 --- a/test/api/CategoriesApi.spec.js +++ b/test/api/CategoriesApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/ContentApi.spec.js b/test/api/ContentApi.spec.js index ba7e38a..457a5d9 100644 --- a/test/api/ContentApi.spec.js +++ b/test/api/ContentApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/ContentSearchApi.spec.js b/test/api/ContentSearchApi.spec.js index 99c0b08..a4f596f 100644 --- a/test/api/ContentSearchApi.spec.js +++ b/test/api/ContentSearchApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/CustomObjectsApi.spec.js b/test/api/CustomObjectsApi.spec.js index da0570d..7f050c5 100644 --- a/test/api/CustomObjectsApi.spec.js +++ b/test/api/CustomObjectsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/CustomersApi.spec.js b/test/api/CustomersApi.spec.js index 4045ab4..1050626 100644 --- a/test/api/CustomersApi.spec.js +++ b/test/api/CustomersApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/FoldersApi.spec.js b/test/api/FoldersApi.spec.js index 1b3e4c6..2c2b1ed 100644 --- a/test/api/FoldersApi.spec.js +++ b/test/api/FoldersApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/GiftCertificateApi.spec.js b/test/api/GiftCertificateApi.spec.js index 60cb226..502f505 100644 --- a/test/api/GiftCertificateApi.spec.js +++ b/test/api/GiftCertificateApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/OrderSearchApi.spec.js b/test/api/OrderSearchApi.spec.js index 9401da4..7ae022c 100644 --- a/test/api/OrderSearchApi.spec.js +++ b/test/api/OrderSearchApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/OrdersApi.spec.js b/test/api/OrdersApi.spec.js index 758313b..9e846e5 100644 --- a/test/api/OrdersApi.spec.js +++ b/test/api/OrdersApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/PriceAdjustmentLimitsApi.spec.js b/test/api/PriceAdjustmentLimitsApi.spec.js index cb1af57..3466264 100644 --- a/test/api/PriceAdjustmentLimitsApi.spec.js +++ b/test/api/PriceAdjustmentLimitsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/ProductListsApi.spec.js b/test/api/ProductListsApi.spec.js index 9cf3acb..8937aeb 100644 --- a/test/api/ProductListsApi.spec.js +++ b/test/api/ProductListsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/ProductSearchApi.spec.js b/test/api/ProductSearchApi.spec.js index 2073a60..c652c85 100644 --- a/test/api/ProductSearchApi.spec.js +++ b/test/api/ProductSearchApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/ProductsApi.spec.js b/test/api/ProductsApi.spec.js index 478217a..cd7954c 100644 --- a/test/api/ProductsApi.spec.js +++ b/test/api/ProductsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/PromotionsApi.spec.js b/test/api/PromotionsApi.spec.js index 7707097..52d8d76 100644 --- a/test/api/PromotionsApi.spec.js +++ b/test/api/PromotionsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/SearchSuggestionApi.spec.js b/test/api/SearchSuggestionApi.spec.js index 8600e7d..b24a24e 100644 --- a/test/api/SearchSuggestionApi.spec.js +++ b/test/api/SearchSuggestionApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/SessionsApi.spec.js b/test/api/SessionsApi.spec.js index abc2aa3..8605f0a 100644 --- a/test/api/SessionsApi.spec.js +++ b/test/api/SessionsApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/SiteApi.spec.js b/test/api/SiteApi.spec.js index 33f71ce..9f1235e 100644 --- a/test/api/SiteApi.spec.js +++ b/test/api/SiteApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/api/StoresApi.spec.js b/test/api/StoresApi.spec.js index 2dbdbae..31360a3 100644 --- a/test/api/StoresApi.spec.js +++ b/test/api/StoresApi.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/config.json b/test/config.json index 1149bb7..a3a9810 100644 --- a/test/config.json +++ b/test/config.json @@ -1,4 +1,4 @@ { "clientId": "5640cc6b-f5e9-466e-9134-9853e9f9db93", - "baseUrl": "https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/shop/v17_8" + "baseUrl": "https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/shop/v20_4" } diff --git a/test/model/AuthRequest.spec.js b/test/model/AuthRequest.spec.js index 8a39d09..e5e1da2 100644 --- a/test/model/AuthRequest.spec.js +++ b/test/model/AuthRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Basket.spec.js b/test/model/Basket.spec.js index a93d663..302f34f 100644 --- a/test/model/Basket.spec.js +++ b/test/model/Basket.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BasketPaymentInstrumentRequest.spec.js b/test/model/BasketPaymentInstrumentRequest.spec.js index 7d9905e..7290b80 100644 --- a/test/model/BasketPaymentInstrumentRequest.spec.js +++ b/test/model/BasketPaymentInstrumentRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BasketsResult.spec.js b/test/model/BasketsResult.spec.js index 788dc76..4fdf71d 100644 --- a/test/model/BasketsResult.spec.js +++ b/test/model/BasketsResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BonusDiscountLineItem.spec.js b/test/model/BonusDiscountLineItem.spec.js index 1b3f3e4..3558b9f 100644 --- a/test/model/BonusDiscountLineItem.spec.js +++ b/test/model/BonusDiscountLineItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BoolFilter.spec.js b/test/model/BoolFilter.spec.js index 34cb956..0e79b2a 100644 --- a/test/model/BoolFilter.spec.js +++ b/test/model/BoolFilter.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BoolQuery.spec.js b/test/model/BoolQuery.spec.js index 4519ae8..7d509f1 100644 --- a/test/model/BoolQuery.spec.js +++ b/test/model/BoolQuery.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/BundledProduct.spec.js b/test/model/BundledProduct.spec.js index 3422d35..3b17acb 100644 --- a/test/model/BundledProduct.spec.js +++ b/test/model/BundledProduct.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Category.spec.js b/test/model/Category.spec.js index 5b33223..a973bb0 100644 --- a/test/model/Category.spec.js +++ b/test/model/Category.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CategoryResult.spec.js b/test/model/CategoryResult.spec.js index 40e8dcb..2b59735 100644 --- a/test/model/CategoryResult.spec.js +++ b/test/model/CategoryResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Content.spec.js b/test/model/Content.spec.js index 31d8b5a..f90d492 100644 --- a/test/model/Content.spec.js +++ b/test/model/Content.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentFolder.spec.js b/test/model/ContentFolder.spec.js index 2b07ea1..e9a4c85 100644 --- a/test/model/ContentFolder.spec.js +++ b/test/model/ContentFolder.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentFolderResult.spec.js b/test/model/ContentFolderResult.spec.js index e5cf265..25acdff 100644 --- a/test/model/ContentFolderResult.spec.js +++ b/test/model/ContentFolderResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentResult.spec.js b/test/model/ContentResult.spec.js index 64e24c0..f1e44f7 100644 --- a/test/model/ContentResult.spec.js +++ b/test/model/ContentResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentSearchRefinement.spec.js b/test/model/ContentSearchRefinement.spec.js index c5a885e..8d2fc8c 100644 --- a/test/model/ContentSearchRefinement.spec.js +++ b/test/model/ContentSearchRefinement.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentSearchRefinementValue.spec.js b/test/model/ContentSearchRefinementValue.spec.js index fbae9c1..f6e5b86 100644 --- a/test/model/ContentSearchRefinementValue.spec.js +++ b/test/model/ContentSearchRefinementValue.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ContentSearchResult.spec.js b/test/model/ContentSearchResult.spec.js index fdc864a..761c3dc 100644 --- a/test/model/ContentSearchResult.spec.js +++ b/test/model/ContentSearchResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CouponItem.spec.js b/test/model/CouponItem.spec.js index 4491698..ab91ebf 100644 --- a/test/model/CouponItem.spec.js +++ b/test/model/CouponItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomObject.spec.js b/test/model/CustomObject.spec.js index e9f499e..1770be4 100644 --- a/test/model/CustomObject.spec.js +++ b/test/model/CustomObject.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Customer.spec.js b/test/model/Customer.spec.js index 5166a15..7f65291 100644 --- a/test/model/Customer.spec.js +++ b/test/model/Customer.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerAddress.spec.js b/test/model/CustomerAddress.spec.js index 2a18966..f339bc9 100644 --- a/test/model/CustomerAddress.spec.js +++ b/test/model/CustomerAddress.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerAddressLink.spec.js b/test/model/CustomerAddressLink.spec.js index 605274b..97eefae 100644 --- a/test/model/CustomerAddressLink.spec.js +++ b/test/model/CustomerAddressLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerAddressResult.spec.js b/test/model/CustomerAddressResult.spec.js index 28eaa48..8bb00f0 100644 --- a/test/model/CustomerAddressResult.spec.js +++ b/test/model/CustomerAddressResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerInfo.spec.js b/test/model/CustomerInfo.spec.js index 12fee6e..063a91e 100644 --- a/test/model/CustomerInfo.spec.js +++ b/test/model/CustomerInfo.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerOrderResult.spec.js b/test/model/CustomerOrderResult.spec.js index 4f0d2cf..d77895c 100644 --- a/test/model/CustomerOrderResult.spec.js +++ b/test/model/CustomerOrderResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerPaymentCardRequest.spec.js b/test/model/CustomerPaymentCardRequest.spec.js index 8395f9f..7705588 100644 --- a/test/model/CustomerPaymentCardRequest.spec.js +++ b/test/model/CustomerPaymentCardRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerPaymentInstrument.spec.js b/test/model/CustomerPaymentInstrument.spec.js index 84dad4d..cca50df 100644 --- a/test/model/CustomerPaymentInstrument.spec.js +++ b/test/model/CustomerPaymentInstrument.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerPaymentInstrumentRequest.spec.js b/test/model/CustomerPaymentInstrumentRequest.spec.js index 6aeca47..4e32b4d 100644 --- a/test/model/CustomerPaymentInstrumentRequest.spec.js +++ b/test/model/CustomerPaymentInstrumentRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerPaymentInstrumentResult.spec.js b/test/model/CustomerPaymentInstrumentResult.spec.js index 6b7db7c..de89219 100644 --- a/test/model/CustomerPaymentInstrumentResult.spec.js +++ b/test/model/CustomerPaymentInstrumentResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductList.spec.js b/test/model/CustomerProductList.spec.js index f12e099..a48ebc7 100644 --- a/test/model/CustomerProductList.spec.js +++ b/test/model/CustomerProductList.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductListItem.spec.js b/test/model/CustomerProductListItem.spec.js index f7d8daf..a4ea49e 100644 --- a/test/model/CustomerProductListItem.spec.js +++ b/test/model/CustomerProductListItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductListItemLink.spec.js b/test/model/CustomerProductListItemLink.spec.js index 9002ee2..31a3ab5 100644 --- a/test/model/CustomerProductListItemLink.spec.js +++ b/test/model/CustomerProductListItemLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductListItemResult.spec.js b/test/model/CustomerProductListItemResult.spec.js index d819486..5b03139 100644 --- a/test/model/CustomerProductListItemResult.spec.js +++ b/test/model/CustomerProductListItemResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductListRegistrant.spec.js b/test/model/CustomerProductListRegistrant.spec.js index 5ead5a2..1961a74 100644 --- a/test/model/CustomerProductListRegistrant.spec.js +++ b/test/model/CustomerProductListRegistrant.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerProductListResult.spec.js b/test/model/CustomerProductListResult.spec.js index 7d20097..744a70d 100644 --- a/test/model/CustomerProductListResult.spec.js +++ b/test/model/CustomerProductListResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/CustomerRegistration.spec.js b/test/model/CustomerRegistration.spec.js index 98a73f1..cd0d846 100644 --- a/test/model/CustomerRegistration.spec.js +++ b/test/model/CustomerRegistration.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Discount.spec.js b/test/model/Discount.spec.js index 7b438b0..a505955 100644 --- a/test/model/Discount.spec.js +++ b/test/model/Discount.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/FilteredQuery.spec.js b/test/model/FilteredQuery.spec.js index a368b25..b48e897 100644 --- a/test/model/FilteredQuery.spec.js +++ b/test/model/FilteredQuery.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/GiftCertificate.spec.js b/test/model/GiftCertificate.spec.js index adcab31..68747d7 100644 --- a/test/model/GiftCertificate.spec.js +++ b/test/model/GiftCertificate.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/GiftCertificateItem.spec.js b/test/model/GiftCertificateItem.spec.js index 58f2957..51e355b 100644 --- a/test/model/GiftCertificateItem.spec.js +++ b/test/model/GiftCertificateItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/GiftCertificateRequest.spec.js b/test/model/GiftCertificateRequest.spec.js index 17bfbbc..fbdbf79 100644 --- a/test/model/GiftCertificateRequest.spec.js +++ b/test/model/GiftCertificateRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Image.spec.js b/test/model/Image.spec.js index 4b9f414..07a9e31 100644 --- a/test/model/Image.spec.js +++ b/test/model/Image.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ImageGroup.spec.js b/test/model/ImageGroup.spec.js index 57e255a..b191edb 100644 --- a/test/model/ImageGroup.spec.js +++ b/test/model/ImageGroup.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Inventory.spec.js b/test/model/Inventory.spec.js index 5208fdc..74f38c8 100644 --- a/test/model/Inventory.spec.js +++ b/test/model/Inventory.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Locale.spec.js b/test/model/Locale.spec.js index a60c5fe..3681cdc 100644 --- a/test/model/Locale.spec.js +++ b/test/model/Locale.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Master.spec.js b/test/model/Master.spec.js index cdf0e16..c5819d1 100644 --- a/test/model/Master.spec.js +++ b/test/model/Master.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/NestedQuery.spec.js b/test/model/NestedQuery.spec.js index db734b2..abd39da 100644 --- a/test/model/NestedQuery.spec.js +++ b/test/model/NestedQuery.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Note.spec.js b/test/model/Note.spec.js index 4ac2e0f..99bc456 100644 --- a/test/model/Note.spec.js +++ b/test/model/Note.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/NotesResult.spec.js b/test/model/NotesResult.spec.js index ac68991..6d6f619 100644 --- a/test/model/NotesResult.spec.js +++ b/test/model/NotesResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Option.spec.js b/test/model/Option.spec.js index 4b7d2df..0401ba8 100644 --- a/test/model/Option.spec.js +++ b/test/model/Option.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OptionItem.spec.js b/test/model/OptionItem.spec.js index 9653e18..b03d373 100644 --- a/test/model/OptionItem.spec.js +++ b/test/model/OptionItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OptionValue.spec.js b/test/model/OptionValue.spec.js index 1a13dc2..0f4d192 100644 --- a/test/model/OptionValue.spec.js +++ b/test/model/OptionValue.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Order.spec.js b/test/model/Order.spec.js index e5c5caa..87eaf15 100644 --- a/test/model/Order.spec.js +++ b/test/model/Order.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderAddress.spec.js b/test/model/OrderAddress.spec.js index 0c9569c..8024bdc 100644 --- a/test/model/OrderAddress.spec.js +++ b/test/model/OrderAddress.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderPaymentCardRequest.spec.js b/test/model/OrderPaymentCardRequest.spec.js index 5d9a34b..211c7fd 100644 --- a/test/model/OrderPaymentCardRequest.spec.js +++ b/test/model/OrderPaymentCardRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderPaymentInstrument.spec.js b/test/model/OrderPaymentInstrument.spec.js index 59b8783..44e11cd 100644 --- a/test/model/OrderPaymentInstrument.spec.js +++ b/test/model/OrderPaymentInstrument.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderPaymentInstrumentRequest.spec.js b/test/model/OrderPaymentInstrumentRequest.spec.js index e1566bb..0b6c13f 100644 --- a/test/model/OrderPaymentInstrumentRequest.spec.js +++ b/test/model/OrderPaymentInstrumentRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderSearchHit.spec.js b/test/model/OrderSearchHit.spec.js index a7b8a1c..3b9e037 100644 --- a/test/model/OrderSearchHit.spec.js +++ b/test/model/OrderSearchHit.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderSearchRequest.spec.js b/test/model/OrderSearchRequest.spec.js index 8853f12..2f3f646 100644 --- a/test/model/OrderSearchRequest.spec.js +++ b/test/model/OrderSearchRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/OrderSearchResult.spec.js b/test/model/OrderSearchResult.spec.js index 5e33e0c..831d272 100644 --- a/test/model/OrderSearchResult.spec.js +++ b/test/model/OrderSearchResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PasswordChangeRequest.spec.js b/test/model/PasswordChangeRequest.spec.js index 7f94bca..6f98bec 100644 --- a/test/model/PasswordChangeRequest.spec.js +++ b/test/model/PasswordChangeRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PasswordReset.spec.js b/test/model/PasswordReset.spec.js index bf00c1c..880a367 100644 --- a/test/model/PasswordReset.spec.js +++ b/test/model/PasswordReset.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentBankAccount.spec.js b/test/model/PaymentBankAccount.spec.js index a3e18ad..6060986 100644 --- a/test/model/PaymentBankAccount.spec.js +++ b/test/model/PaymentBankAccount.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentBankAccountRequest.spec.js b/test/model/PaymentBankAccountRequest.spec.js index dbe5715..470b83d 100644 --- a/test/model/PaymentBankAccountRequest.spec.js +++ b/test/model/PaymentBankAccountRequest.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentCard.spec.js b/test/model/PaymentCard.spec.js index 31530d0..f620c28 100644 --- a/test/model/PaymentCard.spec.js +++ b/test/model/PaymentCard.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentCardSpec.spec.js b/test/model/PaymentCardSpec.spec.js index a64f8c4..1e3cf65 100644 --- a/test/model/PaymentCardSpec.spec.js +++ b/test/model/PaymentCardSpec.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentMethod.spec.js b/test/model/PaymentMethod.spec.js index a3d9b5c..10200f7 100644 --- a/test/model/PaymentMethod.spec.js +++ b/test/model/PaymentMethod.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PaymentMethodResult.spec.js b/test/model/PaymentMethodResult.spec.js index 5f8a5b3..2d9b780 100644 --- a/test/model/PaymentMethodResult.spec.js +++ b/test/model/PaymentMethodResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PriceAdjustment.spec.js b/test/model/PriceAdjustment.spec.js index b8f920d..8a09952 100644 --- a/test/model/PriceAdjustment.spec.js +++ b/test/model/PriceAdjustment.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PriceAdjustmentLimit.spec.js b/test/model/PriceAdjustmentLimit.spec.js index 04b926f..ddd7a2c 100644 --- a/test/model/PriceAdjustmentLimit.spec.js +++ b/test/model/PriceAdjustmentLimit.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PriceAdjustmentLimits.spec.js b/test/model/PriceAdjustmentLimits.spec.js index de80dc1..f172190 100644 --- a/test/model/PriceAdjustmentLimits.spec.js +++ b/test/model/PriceAdjustmentLimits.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Product.spec.js b/test/model/Product.spec.js index 30e498c..2cde847 100644 --- a/test/model/Product.spec.js +++ b/test/model/Product.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductDetailsLink.spec.js b/test/model/ProductDetailsLink.spec.js index d2bbee0..54673e1 100644 --- a/test/model/ProductDetailsLink.spec.js +++ b/test/model/ProductDetailsLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductItem.spec.js b/test/model/ProductItem.spec.js index e72080a..2966fb6 100644 --- a/test/model/ProductItem.spec.js +++ b/test/model/ProductItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductLink.spec.js b/test/model/ProductLink.spec.js index 89761de..ecb11d2 100644 --- a/test/model/ProductLink.spec.js +++ b/test/model/ProductLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductListEvent.spec.js b/test/model/ProductListEvent.spec.js index a5756aa..687753e 100644 --- a/test/model/ProductListEvent.spec.js +++ b/test/model/ProductListEvent.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductListItemReference.spec.js b/test/model/ProductListItemReference.spec.js index 476bb65..a9fb8ec 100644 --- a/test/model/ProductListItemReference.spec.js +++ b/test/model/ProductListItemReference.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductListLink.spec.js b/test/model/ProductListLink.spec.js index f5074dd..0360296 100644 --- a/test/model/ProductListLink.spec.js +++ b/test/model/ProductListLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductListRegistrant.spec.js b/test/model/ProductListRegistrant.spec.js index 8b1e787..aba90de 100644 --- a/test/model/ProductListRegistrant.spec.js +++ b/test/model/ProductListRegistrant.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductListShippingAddress.spec.js b/test/model/ProductListShippingAddress.spec.js index 83e9d96..7f944af 100644 --- a/test/model/ProductListShippingAddress.spec.js +++ b/test/model/ProductListShippingAddress.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductPromotion.spec.js b/test/model/ProductPromotion.spec.js index fc9878d..f1946dd 100644 --- a/test/model/ProductPromotion.spec.js +++ b/test/model/ProductPromotion.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductResult.spec.js b/test/model/ProductResult.spec.js index e54c368..26baf7c 100644 --- a/test/model/ProductResult.spec.js +++ b/test/model/ProductResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSearchHit.spec.js b/test/model/ProductSearchHit.spec.js index 2ada81a..b521cff 100644 --- a/test/model/ProductSearchHit.spec.js +++ b/test/model/ProductSearchHit.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSearchRefinement.spec.js b/test/model/ProductSearchRefinement.spec.js index 11e8b75..a7be516 100644 --- a/test/model/ProductSearchRefinement.spec.js +++ b/test/model/ProductSearchRefinement.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSearchRefinementValue.spec.js b/test/model/ProductSearchRefinementValue.spec.js index 371f6db..c2d671f 100644 --- a/test/model/ProductSearchRefinementValue.spec.js +++ b/test/model/ProductSearchRefinementValue.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSearchResult.spec.js b/test/model/ProductSearchResult.spec.js index 77b4dd7..3f6f76e 100644 --- a/test/model/ProductSearchResult.spec.js +++ b/test/model/ProductSearchResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSearchSortingOption.spec.js b/test/model/ProductSearchSortingOption.spec.js index 0c39783..94bef52 100644 --- a/test/model/ProductSearchSortingOption.spec.js +++ b/test/model/ProductSearchSortingOption.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductSimpleLink.spec.js b/test/model/ProductSimpleLink.spec.js index fb27499..5079748 100644 --- a/test/model/ProductSimpleLink.spec.js +++ b/test/model/ProductSimpleLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ProductType.spec.js b/test/model/ProductType.spec.js index 2d69bf5..e8215a4 100644 --- a/test/model/ProductType.spec.js +++ b/test/model/ProductType.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Promotion.spec.js b/test/model/Promotion.spec.js index 636b5ad..e7a251f 100644 --- a/test/model/Promotion.spec.js +++ b/test/model/Promotion.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PromotionResult.spec.js b/test/model/PromotionResult.spec.js index 06f7761..3f93662 100644 --- a/test/model/PromotionResult.spec.js +++ b/test/model/PromotionResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PublicProductList.spec.js b/test/model/PublicProductList.spec.js index 40c0ae9..85a3950 100644 --- a/test/model/PublicProductList.spec.js +++ b/test/model/PublicProductList.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PublicProductListItem.spec.js b/test/model/PublicProductListItem.spec.js index e8ec271..b99ecc4 100644 --- a/test/model/PublicProductListItem.spec.js +++ b/test/model/PublicProductListItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PublicProductListItemResult.spec.js b/test/model/PublicProductListItemResult.spec.js index 6009a4c..904b5a0 100644 --- a/test/model/PublicProductListItemResult.spec.js +++ b/test/model/PublicProductListItemResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PublicProductListLink.spec.js b/test/model/PublicProductListLink.spec.js index c4e652d..b76d1f6 100644 --- a/test/model/PublicProductListLink.spec.js +++ b/test/model/PublicProductListLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/PublicProductListResult.spec.js b/test/model/PublicProductListResult.spec.js index 769ffa2..604918e 100644 --- a/test/model/PublicProductListResult.spec.js +++ b/test/model/PublicProductListResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/QueryFilter.spec.js b/test/model/QueryFilter.spec.js index c3e90ed..e54356e 100644 --- a/test/model/QueryFilter.spec.js +++ b/test/model/QueryFilter.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Range2Filter.spec.js b/test/model/Range2Filter.spec.js index ea5efe4..c23da06 100644 --- a/test/model/Range2Filter.spec.js +++ b/test/model/Range2Filter.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/RangeFilter.spec.js b/test/model/RangeFilter.spec.js index 528941e..0e154a0 100644 --- a/test/model/RangeFilter.spec.js +++ b/test/model/RangeFilter.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Recommendation.spec.js b/test/model/Recommendation.spec.js index ee7d215..834fa97 100644 --- a/test/model/Recommendation.spec.js +++ b/test/model/Recommendation.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/RecommendationType.spec.js b/test/model/RecommendationType.spec.js index e2e4b99..e90fa8d 100644 --- a/test/model/RecommendationType.spec.js +++ b/test/model/RecommendationType.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ResultPage.spec.js b/test/model/ResultPage.spec.js index 8495b95..651f22d 100644 --- a/test/model/ResultPage.spec.js +++ b/test/model/ResultPage.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Shipment.spec.js b/test/model/Shipment.spec.js index 8407132..2967e9d 100644 --- a/test/model/Shipment.spec.js +++ b/test/model/Shipment.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ShippingItem.spec.js b/test/model/ShippingItem.spec.js index d760331..3df7ef5 100644 --- a/test/model/ShippingItem.spec.js +++ b/test/model/ShippingItem.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ShippingMethod.spec.js b/test/model/ShippingMethod.spec.js index f2290b1..842cd5a 100644 --- a/test/model/ShippingMethod.spec.js +++ b/test/model/ShippingMethod.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ShippingMethodResult.spec.js b/test/model/ShippingMethodResult.spec.js index 433d378..103e1bc 100644 --- a/test/model/ShippingMethodResult.spec.js +++ b/test/model/ShippingMethodResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/ShippingPromotion.spec.js b/test/model/ShippingPromotion.spec.js index 9cf0c93..ef35aed 100644 --- a/test/model/ShippingPromotion.spec.js +++ b/test/model/ShippingPromotion.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SimpleLink.spec.js b/test/model/SimpleLink.spec.js index 6567c20..09ffe70 100644 --- a/test/model/SimpleLink.spec.js +++ b/test/model/SimpleLink.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Site.spec.js b/test/model/Site.spec.js index a978d5d..11857d0 100644 --- a/test/model/Site.spec.js +++ b/test/model/Site.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Sort.spec.js b/test/model/Sort.spec.js index 1bbb48f..6b4ef4c 100644 --- a/test/model/Sort.spec.js +++ b/test/model/Sort.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Status.spec.js b/test/model/Status.spec.js index 7d896c9..0afdf85 100644 --- a/test/model/Status.spec.js +++ b/test/model/Status.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Store.spec.js b/test/model/Store.spec.js index b98b74f..eecf500 100644 --- a/test/model/Store.spec.js +++ b/test/model/Store.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/StoreResult.spec.js b/test/model/StoreResult.spec.js index 26a9911..30542fc 100644 --- a/test/model/StoreResult.spec.js +++ b/test/model/StoreResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedCategory.spec.js b/test/model/SuggestedCategory.spec.js index 6da84a3..020946e 100644 --- a/test/model/SuggestedCategory.spec.js +++ b/test/model/SuggestedCategory.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedContent.spec.js b/test/model/SuggestedContent.spec.js index 02b46f7..bb6fb07 100644 --- a/test/model/SuggestedContent.spec.js +++ b/test/model/SuggestedContent.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedPhrase.spec.js b/test/model/SuggestedPhrase.spec.js index a662a86..ecc9d1f 100644 --- a/test/model/SuggestedPhrase.spec.js +++ b/test/model/SuggestedPhrase.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedProduct.spec.js b/test/model/SuggestedProduct.spec.js index 2c767f7..bc15755 100644 --- a/test/model/SuggestedProduct.spec.js +++ b/test/model/SuggestedProduct.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedTerm.spec.js b/test/model/SuggestedTerm.spec.js index 5f2945e..7ee44a2 100644 --- a/test/model/SuggestedTerm.spec.js +++ b/test/model/SuggestedTerm.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestedTerms.spec.js b/test/model/SuggestedTerms.spec.js index 208aa4f..3387010 100644 --- a/test/model/SuggestedTerms.spec.js +++ b/test/model/SuggestedTerms.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Suggestion.spec.js b/test/model/Suggestion.spec.js index de7c551..4c8fb52 100644 --- a/test/model/Suggestion.spec.js +++ b/test/model/Suggestion.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/SuggestionResult.spec.js b/test/model/SuggestionResult.spec.js index 943cb72..8276890 100644 --- a/test/model/SuggestionResult.spec.js +++ b/test/model/SuggestionResult.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/TermFilter.spec.js b/test/model/TermFilter.spec.js index 35a2284..a4e208f 100644 --- a/test/model/TermFilter.spec.js +++ b/test/model/TermFilter.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/TermQuery.spec.js b/test/model/TermQuery.spec.js index 78549b3..56f7418 100644 --- a/test/model/TermQuery.spec.js +++ b/test/model/TermQuery.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/TextQuery.spec.js b/test/model/TextQuery.spec.js index 9a6b265..5d2d719 100644 --- a/test/model/TextQuery.spec.js +++ b/test/model/TextQuery.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/Variant.spec.js b/test/model/Variant.spec.js index f679f67..38e3739 100644 --- a/test/model/Variant.spec.js +++ b/test/model/Variant.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/VariationAttribute.spec.js b/test/model/VariationAttribute.spec.js index 9f40af4..c629a35 100644 --- a/test/model/VariationAttribute.spec.js +++ b/test/model/VariationAttribute.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/VariationAttributeValue.spec.js b/test/model/VariationAttributeValue.spec.js index 00162fd..bb0f55d 100644 --- a/test/model/VariationAttributeValue.spec.js +++ b/test/model/VariationAttributeValue.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/model/VariationGroup.spec.js b/test/model/VariationGroup.spec.js index d241c46..409a410 100644 --- a/test/model/VariationGroup.spec.js +++ b/test/model/VariationGroup.spec.js @@ -6,7 +6,7 @@ * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/samples.js b/test/samples.js index db2fd39..8cb0625 100644 --- a/test/samples.js +++ b/test/samples.js @@ -23,7 +23,7 @@ export const validProduct = ShopApi.Product.constructFromObject({ }) export const validCustomerProductListItemLink = ShopApi.CustomerProductListItemLink.constructFromObject({ - link: `https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/shop/v17_8/products/${validProduct.id}`, + link: `https://mobify-tech-prtnr-na03-dw.demandware.net/s/2017refresh/dw/shop/v20_4/products/${validProduct.id}`, title: 'Platinum Blue Stripes Easy Care Fitted Shirt' }) From 71cf121563e8143ee08549e4d7fd5885ba294b09 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:16:14 -0700 Subject: [PATCH 08/21] Delete lang-conf.json duplicate --- lang-conf.json | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 lang-conf.json diff --git a/lang-conf.json b/lang-conf.json deleted file mode 100644 index 2d6262f..0000000 --- a/lang-conf.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "useES6": true, - "usePromises": true -} From 1b0034e735241da91c93c89691ef85cd22a29c7e Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:18:57 -0700 Subject: [PATCH 09/21] Rerun docs generation, replace remaining references to v17_8 --- README.md | 4 +- docs/ApiClient.js.html | 12 +- docs/api_AiApi.js.html | 166 + docs/api_BasketsApi.js.html | 980 +- docs/api_CategoriesApi.js.html | 55 +- docs/api_ContentApi.js.html | 50 +- docs/api_ContentSearchApi.js.html | 75 +- docs/api_CustomObjectsApi.js.html | 37 +- docs/api_CustomersApi.js.html | 956 +- docs/api_FoldersApi.js.html | 50 +- docs/api_GiftCertificateApi.js.html | 47 +- docs/api_OrderSearchApi.js.html | 83 +- docs/api_OrdersApi.js.html | 373 +- docs/api_PriceAdjustmentLimitsApi.js.html | 55 +- docs/api_ProductListsApi.js.html | 68 +- docs/api_ProductSearchApi.js.html | 332 +- docs/api_ProductsApi.js.html | 248 +- docs/api_PromotionsApi.js.html | 78 +- docs/api_SearchSuggestionApi.js.html | 50 +- docs/api_SessionsApi.js.html | 63 +- docs/api_SiteApi.js.html | 45 +- docs/api_StoresApi.js.html | 116 +- docs/index.html | 8 +- docs/index.js.html | 495 +- docs/models_ApproachingDiscount.js.html | 186 + docs/models_ApproachingDiscountResult.js.html | 138 + docs/models_AuthRequest.js.html | 100 +- docs/models_Basket.js.html | 574 +- ...els_BasketPaymentInstrumentRequest.js.html | 130 +- docs/models_BasketReference.js.html | 147 + docs/models_BasketsResult.js.html | 64 +- docs/models_BonusDiscountLineItem.js.html | 104 +- docs/models_BoolFilter.js.html | 102 +- docs/models_BoolQuery.js.html | 83 +- docs/models_BundledProduct.js.html | 76 +- docs/models_Category.js.html | 249 +- docs/models_CategoryResult.js.html | 78 +- docs/models_Content.js.html | 135 +- docs/models_ContentFolder.js.html | 145 +- docs/models_ContentFolderResult.js.html | 78 +- docs/models_ContentResult.js.html | 78 +- docs/models_ContentSearchRefinement.js.html | 73 +- ...odels_ContentSearchRefinementValue.js.html | 115 +- docs/models_ContentSearchResult.js.html | 167 +- docs/models_CouponItem.js.html | 216 +- docs/models_CustomObject.js.html | 91 +- docs/models_Customer.js.html | 483 +- docs/models_CustomerAddress.js.html | 380 +- docs/models_CustomerAddressLink.js.html | 78 +- docs/models_CustomerAddressResult.js.html | 130 +- docs/models_CustomerInfo.js.html | 96 +- docs/models_CustomerOrderResult.js.html | 130 +- .../models_CustomerPaymentCardRequest.js.html | 156 +- docs/models_CustomerPaymentInstrument.js.html | 143 +- ...s_CustomerPaymentInstrumentRequest.js.html | 104 +- ...ls_CustomerPaymentInstrumentResult.js.html | 78 +- docs/models_CustomerProductList.js.html | 305 +- docs/models_CustomerProductListItem.js.html | 172 +- ...models_CustomerProductListItemLink.js.html | 65 +- ...ls_CustomerProductListItemPurchase.js.html | 169 + ...tomerProductListItemPurchaseResult.js.html | 154 + ...dels_CustomerProductListItemResult.js.html | 113 +- ...dels_CustomerProductListRegistrant.js.html | 91 +- docs/models_CustomerProductListResult.js.html | 78 +- docs/models_CustomerRegistration.js.html | 61 +- docs/models_Discount.js.html | 184 +- docs/models_DiscountRequest.js.html | 173 + docs/models_Fault.js.html | 8 +- docs/models_Filter.js.html | 8 +- docs/models_FilteredQuery.js.html | 62 +- docs/models_GiftCertificate.js.html | 220 +- docs/models_GiftCertificateItem.js.html | 130 +- docs/models_GiftCertificateRequest.js.html | 52 +- docs/models_Image.js.html | 79 +- docs/models_ImageGroup.js.html | 78 +- docs/models_Inventory.js.html | 126 +- docs/models_Locale.js.html | 180 +- docs/models_Master.js.html | 105 +- docs/models_NestedQuery.js.html | 130 +- docs/models_Note.js.html | 104 +- docs/models_NotesResult.js.html | 52 +- docs/models_Option.js.html | 99 +- docs/models_OptionItem.js.html | 401 +- docs/models_OptionValue.js.html | 87 +- docs/models_Order.js.html | 931 +- docs/models_OrderAddress.js.html | 342 +- docs/models_OrderPaymentCardRequest.js.html | 169 +- docs/models_OrderPaymentInstrument.js.html | 143 +- ...dels_OrderPaymentInstrumentRequest.js.html | 145 +- docs/models_OrderSearchHit.js.html | 65 +- docs/models_OrderSearchRequest.js.html | 121 +- docs/models_OrderSearchResult.js.html | 188 +- docs/models_PasswordChangeRequest.js.html | 65 +- docs/models_PasswordReset.js.html | 95 +- docs/models_PaymentBankAccount.js.html | 117 +- docs/models_PaymentBankAccountRequest.js.html | 91 +- docs/models_PaymentCard.js.html | 182 +- docs/models_PaymentCardSpec.js.html | 143 +- docs/models_PaymentMethod.js.html | 108 +- docs/models_PaymentMethodResult.js.html | 51 +- docs/models_PriceAdjustment.js.html | 247 +- docs/models_PriceAdjustmentLimit.js.html | 133 +- docs/models_PriceAdjustmentLimits.js.html | 52 +- docs/models_PriceAdjustmentRequest.js.html | 231 + docs/models_Product.js.html | 1988 +- docs/models_ProductDetailsLink.js.html | 100 +- docs/models_ProductItem.js.html | 406 +- docs/models_ProductLink.js.html | 188 +- docs/models_ProductListEvent.js.html | 104 +- docs/models_ProductListItemReference.js.html | 149 +- docs/models_ProductListLink.js.html | 179 +- docs/models_ProductListRegistrant.js.html | 81 +- .../models_ProductListShippingAddress.js.html | 87 +- docs/models_ProductPromotion.js.html | 91 +- ...odels_ProductRecommendationsResult.js.html | 154 + docs/models_ProductRef.js.html | 68 +- docs/models_ProductResult.js.html | 78 +- docs/models_ProductSearchHit.js.html | 218 +- docs/models_ProductSearchRefinement.js.html | 82 +- ...odels_ProductSearchRefinementValue.js.html | 118 +- docs/models_ProductSearchResult.js.html | 217 +- .../models_ProductSearchSortingOption.js.html | 65 +- docs/models_ProductSimpleLink.js.html | 65 +- docs/models_ProductType.js.html | 130 +- docs/models_Promotion.js.html | 156 +- docs/models_PromotionLink.js.html | 167 + docs/models_PromotionResult.js.html | 78 +- docs/models_PublicProductList.js.html | 264 +- docs/models_PublicProductListItem.js.html | 128 +- ...models_PublicProductListItemResult.js.html | 78 +- docs/models_PublicProductListLink.js.html | 168 +- docs/models_PublicProductListResult.js.html | 78 +- docs/models_Query.js.html | 8 +- docs/models_QueryFilter.js.html | 51 +- docs/models_Range2Filter.js.html | 164 +- docs/models_RangeFilter.js.html | 99 +- docs/models_Recommendation.js.html | 143 +- docs/models_RecommendationType.js.html | 65 +- docs/models_ResetPasswordRequest.js.html | 153 + docs/models_ResetPasswordTokenRequest.js.html | 136 + docs/models_ResetPasswordTokenResult.js.html | 160 + docs/models_ResultPage.js.html | 73 +- docs/models_Shipment.js.html | 310 +- docs/models_ShippingItem.js.html | 202 +- docs/models_ShippingMethod.js.html | 126 +- docs/models_ShippingMethodResult.js.html | 65 +- docs/models_ShippingPromotion.js.html | 91 +- docs/models_SimpleLink.js.html | 52 +- docs/models_Site.js.html | 276 +- docs/models_Sort.js.html | 98 +- docs/models_Status.js.html | 77 +- docs/models_Store.js.html | 361 +- docs/models_StoreResult.js.html | 117 +- docs/models_SuggestedCategory.js.html | 91 +- docs/models_SuggestedContent.js.html | 78 +- docs/models_SuggestedPhrase.js.html | 65 +- docs/models_SuggestedProduct.js.html | 118 +- docs/models_SuggestedTerm.js.html | 91 +- docs/models_SuggestedTerms.js.html | 65 +- docs/models_Suggestion.js.html | 130 +- docs/models_SuggestionResult.js.html | 117 +- docs/models_TermFilter.js.html | 169 +- docs/models_TermQuery.js.html | 172 +- docs/models_TextQuery.js.html | 68 +- docs/models_TrustedSystemAuthRequest.js.html | 146 + docs/models_Variant.js.html | 103 +- docs/models_VariationAttribute.js.html | 71 +- docs/models_VariationAttributeValue.js.html | 112 +- docs/models_VariationGroup.js.html | 104 +- docs/module-ApiClient.html | 4 +- docs/module-api_AiApi.html | 962 + docs/module-api_BasketsApi.html | 4965 ++++- docs/module-api_CategoriesApi.html | 20 +- docs/module-api_ContentApi.html | 20 +- docs/module-api_ContentSearchApi.html | 38 +- docs/module-api_CustomObjectsApi.html | 8 +- docs/module-api_CustomersApi.html | 4625 ++++- docs/module-api_FoldersApi.html | 20 +- docs/module-api_GiftCertificateApi.html | 8 +- docs/module-api_OrderSearchApi.html | 44 +- docs/module-api_OrdersApi.html | 878 +- docs/module-api_PriceAdjustmentLimitsApi.html | 16 +- docs/module-api_ProductListsApi.html | 20 +- docs/module-api_ProductSearchApi.html | 834 +- docs/module-api_ProductsApi.html | 1056 +- docs/module-api_PromotionsApi.html | 34 +- docs/module-api_SearchSuggestionApi.html | 16 +- docs/module-api_SessionsApi.html | 26 +- docs/module-api_SiteApi.html | 8 +- docs/module-api_StoresApi.html | 68 +- docs/module-index.html | 2720 ++- docs/module-models_ApproachingDiscount.html | 866 + ...dule-models_ApproachingDiscountResult.html | 434 + docs/module-models_AuthRequest.html | 328 +- docs/module-models_Basket.html | 1492 +- ...models_BasketPaymentInstrumentRequest.html | 20 +- docs/module-models_BasketReference.html | 578 + docs/module-models_BasketsResult.html | 10 +- docs/module-models_BonusDiscountLineItem.html | 16 +- docs/module-models_BoolFilter.html | 268 +- docs/module-models_BoolQuery.html | 23 +- docs/module-models_BundledProduct.html | 12 +- docs/module-models_Category.html | 934 +- docs/module-models_CategoryResult.html | 12 +- docs/module-models_Content.html | 226 +- docs/module-models_ContentFolder.html | 94 +- docs/module-models_ContentFolderResult.html | 12 +- docs/module-models_ContentResult.html | 12 +- ...module-models_ContentSearchRefinement.html | 12 +- ...e-models_ContentSearchRefinementValue.html | 18 +- docs/module-models_ContentSearchResult.html | 26 +- docs/module-models_CouponItem.html | 854 +- docs/module-models_CustomObject.html | 14 +- docs/module-models_Customer.html | 526 +- docs/module-models_CustomerAddress.html | 494 +- docs/module-models_CustomerAddressLink.html | 12 +- docs/module-models_CustomerAddressResult.html | 20 +- docs/module-models_CustomerInfo.html | 82 +- docs/module-models_CustomerOrderResult.html | 20 +- ...ule-models_CustomerPaymentCardRequest.html | 24 +- ...dule-models_CustomerPaymentInstrument.html | 22 +- ...dels_CustomerPaymentInstrumentRequest.html | 16 +- ...odels_CustomerPaymentInstrumentResult.html | 12 +- docs/module-models_CustomerProductList.html | 482 +- ...module-models_CustomerProductListItem.html | 220 +- ...le-models_CustomerProductListItemLink.html | 10 +- ...odels_CustomerProductListItemPurchase.html | 722 + ...CustomerProductListItemPurchaseResult.html | 578 + ...-models_CustomerProductListItemResult.html | 18 +- ...-models_CustomerProductListRegistrant.html | 14 +- ...dule-models_CustomerProductListResult.html | 12 +- docs/module-models_CustomerRegistration.html | 10 +- docs/module-models_Discount.html | 662 +- docs/module-models_DiscountRequest.html | 836 + docs/module-models_Fault.html | 2 +- docs/module-models_Filter.html | 2 +- docs/module-models_FilteredQuery.html | 10 +- docs/module-models_GiftCertificate.html | 348 +- docs/module-models_GiftCertificateItem.html | 20 +- .../module-models_GiftCertificateRequest.html | 8 +- docs/module-models_Image.html | 14 +- docs/module-models_ImageGroup.html | 12 +- docs/module-models_Inventory.html | 20 +- docs/module-models_Locale.html | 47 +- docs/module-models_Master.html | 18 +- docs/module-models_NestedQuery.html | 336 +- docs/module-models_Note.html | 16 +- docs/module-models_NotesResult.html | 8 +- docs/module-models_Option.html | 16 +- docs/module-models_OptionItem.html | 90 +- docs/module-models_OptionValue.html | 14 +- docs/module-models_Order.html | 3119 +++- docs/module-models_OrderAddress.html | 488 +- ...module-models_OrderPaymentCardRequest.html | 26 +- .../module-models_OrderPaymentInstrument.html | 22 +- ...-models_OrderPaymentInstrumentRequest.html | 22 +- docs/module-models_OrderSearchHit.html | 10 +- docs/module-models_OrderSearchRequest.html | 94 +- docs/module-models_OrderSearchResult.html | 106 +- docs/module-models_PasswordChangeRequest.html | 10 +- docs/module-models_PasswordReset.html | 206 +- docs/module-models_PaymentBankAccount.html | 18 +- ...dule-models_PaymentBankAccountRequest.html | 14 +- docs/module-models_PaymentCard.html | 28 +- docs/module-models_PaymentCardSpec.html | 22 +- docs/module-models_PaymentMethod.html | 88 +- docs/module-models_PaymentMethodResult.html | 8 +- docs/module-models_PriceAdjustment.html | 313 +- docs/module-models_PriceAdjustmentLimit.html | 284 +- docs/module-models_PriceAdjustmentLimits.html | 8 +- .../module-models_PriceAdjustmentRequest.html | 1359 ++ docs/module-models_Product.html | 15506 +++++++++++++++- docs/module-models_ProductDetailsLink.html | 16 +- docs/module-models_ProductItem.html | 150 +- docs/module-models_ProductLink.html | 584 +- docs/module-models_ProductListEvent.html | 16 +- ...odule-models_ProductListItemReference.html | 218 +- docs/module-models_ProductListLink.html | 462 +- docs/module-models_ProductListRegistrant.html | 15 +- ...ule-models_ProductListShippingAddress.html | 14 +- docs/module-models_ProductPromotion.html | 14 +- ...e-models_ProductRecommendationsResult.html | 578 + docs/module-models_ProductRef.html | 37 +- docs/module-models_ProductResult.html | 12 +- docs/module-models_ProductSearchHit.html | 104 +- ...module-models_ProductSearchRefinement.html | 22 +- ...e-models_ProductSearchRefinementValue.html | 26 +- docs/module-models_ProductSearchResult.html | 34 +- ...ule-models_ProductSearchSortingOption.html | 10 +- docs/module-models_ProductSimpleLink.html | 10 +- docs/module-models_ProductType.html | 20 +- docs/module-models_Promotion.html | 24 +- docs/module-models_PromotionLink.html | 714 + docs/module-models_PromotionResult.html | 12 +- docs/module-models_PublicProductList.html | 476 +- docs/module-models_PublicProductListItem.html | 212 +- ...le-models_PublicProductListItemResult.html | 12 +- docs/module-models_PublicProductListLink.html | 460 +- ...module-models_PublicProductListResult.html | 12 +- docs/module-models_Query.html | 2 +- docs/module-models_QueryFilter.html | 12 +- docs/module-models_Range2Filter.html | 296 +- docs/module-models_RangeFilter.html | 24 +- docs/module-models_Recommendation.html | 22 +- docs/module-models_RecommendationType.html | 10 +- docs/module-models_ResetPasswordRequest.html | 626 + ...dule-models_ResetPasswordTokenRequest.html | 433 + ...odule-models_ResetPasswordTokenResult.html | 649 + docs/module-models_ResultPage.html | 86 +- docs/module-models_Shipment.html | 475 +- docs/module-models_ShippingItem.html | 45 +- docs/module-models_ShippingMethod.html | 86 +- docs/module-models_ShippingMethodResult.html | 10 +- docs/module-models_ShippingPromotion.html | 14 +- docs/module-models_SimpleLink.html | 8 +- docs/module-models_Site.html | 236 +- docs/module-models_Sort.html | 259 +- docs/module-models_Status.html | 12 +- docs/module-models_Store.html | 518 +- docs/module-models_StoreResult.html | 28 +- docs/module-models_SuggestedCategory.html | 14 +- docs/module-models_SuggestedContent.html | 12 +- docs/module-models_SuggestedPhrase.html | 10 +- docs/module-models_SuggestedProduct.html | 21 +- docs/module-models_SuggestedTerm.html | 14 +- docs/module-models_SuggestedTerms.html | 10 +- docs/module-models_Suggestion.html | 20 +- docs/module-models_SuggestionResult.html | 18 +- docs/module-models_TermFilter.html | 583 +- docs/module-models_TermQuery.html | 586 +- docs/module-models_TextQuery.html | 16 +- ...odule-models_TrustedSystemAuthRequest.html | 577 + docs/module-models_Variant.html | 16 +- docs/module-models_VariationAttribute.html | 29 +- ...module-models_VariationAttributeValue.html | 47 +- docs/module-models_VariationGroup.html | 16 +- src/ApiClient.js | 4 +- 337 files changed, 72405 insertions(+), 14548 deletions(-) create mode 100644 docs/api_AiApi.js.html create mode 100644 docs/models_ApproachingDiscount.js.html create mode 100644 docs/models_ApproachingDiscountResult.js.html create mode 100644 docs/models_BasketReference.js.html create mode 100644 docs/models_CustomerProductListItemPurchase.js.html create mode 100644 docs/models_CustomerProductListItemPurchaseResult.js.html create mode 100644 docs/models_DiscountRequest.js.html create mode 100644 docs/models_PriceAdjustmentRequest.js.html create mode 100644 docs/models_ProductRecommendationsResult.js.html create mode 100644 docs/models_PromotionLink.js.html create mode 100644 docs/models_ResetPasswordRequest.js.html create mode 100644 docs/models_ResetPasswordTokenRequest.js.html create mode 100644 docs/models_ResetPasswordTokenResult.js.html create mode 100644 docs/models_TrustedSystemAuthRequest.js.html create mode 100644 docs/module-api_AiApi.html create mode 100644 docs/module-models_ApproachingDiscount.html create mode 100644 docs/module-models_ApproachingDiscountResult.html create mode 100644 docs/module-models_BasketReference.html create mode 100644 docs/module-models_CustomerProductListItemPurchase.html create mode 100644 docs/module-models_CustomerProductListItemPurchaseResult.html create mode 100644 docs/module-models_DiscountRequest.html create mode 100644 docs/module-models_PriceAdjustmentRequest.html create mode 100644 docs/module-models_ProductRecommendationsResult.html create mode 100644 docs/module-models_PromotionLink.html create mode 100644 docs/module-models_ResetPasswordRequest.html create mode 100644 docs/module-models_ResetPasswordTokenRequest.html create mode 100644 docs/module-models_ResetPasswordTokenResult.html create mode 100644 docs/module-models_TrustedSystemAuthRequest.html diff --git a/README.md b/README.md index ed28306..106a0bd 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ The API client accepts an configuration object, example: import ShopApi from 'commercecloud-ocapi-client' const config = { - basePath: 'https://localhost/s/siteId/dw/shop/v17_8', + basePath: 'https://localhost/s/siteId/dw/shop/v20_4', defaultHeaders: {}, // HTTP header for all requests timeout: 60000, // Request timeout in milliseconds cache: true, // If set to false an additional timestamp parameter is added to all API GET calls to prevent browser caching @@ -126,7 +126,7 @@ Example: ```json { "clientId": "5640cc6b-f5e9-466e-9134-9853e9f9db93", - "baseUrl": "https://localhost/s/siteId/dw/shop/v17_8" + "baseUrl": "https://localhost/s/siteId/dw/shop/v20_4" } ``` Then run the following command: diff --git a/docs/ApiClient.js.html b/docs/ApiClient.js.html index 8990269..7b20822 100644 --- a/docs/ApiClient.js.html +++ b/docs/ApiClient.js.html @@ -27,14 +27,14 @@

Source: ApiClient.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -49,11 +49,11 @@ 

Source: ApiClient.js

/** * @module ApiClient - * @version 17.8 + * @version 20.4 */ const defaultConfig = { - basePath: 'https://localhost/s/siteId/dw/shop/v17_8', + basePath: 'https://localhost/s/siteId/dw/shop/v20_4', cache: true, defaultHeaders: {}, enableCookies: false, @@ -91,7 +91,7 @@

Source: ApiClient.js

/** * The base URL against which to resolve every API call's (relative) path. * @type {String} - * @default https://localhost/s/siteId/dw/shop/v17_8 + * @default https://localhost/s/siteId/dw/shop/v20_4 */ this.basePath = basePath.replace(/\/+$/, '') @@ -754,7 +754,7 @@

Source: ApiClient.js


diff --git a/docs/api_AiApi.js.html b/docs/api_AiApi.js.html new file mode 100644 index 0000000..bac3c1e --- /dev/null +++ b/docs/api_AiApi.js.html @@ -0,0 +1,166 @@ + + + + + JSDoc: Source: api/AiApi.js + + + + + + + + + + +
+ +

Source: api/AiApi.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import ProductRecommendationsResult from '../models/ProductRecommendationsResult'
+
+/**
+* Ai service.
+* @module api/AiApi
+* @version 20.4
+*/
+export default class AiApi {
+
+    /**
+    * Constructs a new AiApi.
+    * @alias module:api/AiApi
+    * @class
+    * @param {module:ApiClient} apiClient Optional API client implementation to use,
+    * default to {@link module:ApiClient#instance} if unspecified.
+    */
+    constructor(apiClient) {
+        this.apiClient = apiClient || ApiClient.instance
+    }
+
+
+
+    /**
+     * This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API.  Returns product recommendations based on the given product or category IDs.
+     * @param {String} recommenderName The recommender name.
+     * @param {Object} opts Optional parameters
+     * @param {Array.<String>} opts.products
+     * @param {Array.<String>} opts.categories
+     * @param {String} opts.uuid
+     * @param {Array.<String>} opts.expand
+     * @param {Array.<String>} opts.inventoryIds
+     * @param {String} opts.currency
+     * @param {Boolean} opts.allImages
+     * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductRecommendationsResult} and HTTP response
+     */
+    getAiProductRecommendationsByIDWithHttpInfo(recommenderName, opts) {
+        opts = opts || {}
+        const postBody = null
+
+        // verify the required parameter 'recommenderName' is set
+        if (recommenderName === undefined || recommenderName === null) {
+            throw new Error('Missing the required parameter \'recommenderName\' when calling getAiProductRecommendationsByID')
+        }
+
+
+        const pathParams = {
+            recommender_name: recommenderName
+        }
+        const queryParams = {
+            products: this.apiClient.buildCollectionParam(opts.products, 'csv'),
+            categories: this.apiClient.buildCollectionParam(opts.categories, 'csv'),
+            uuid: opts.uuid,
+            expand: this.apiClient.buildCollectionParam(opts.expand, 'csv'),
+            inventory_ids: this.apiClient.buildCollectionParam(opts.inventoryIds, 'csv'),
+            currency: opts.currency,
+            all_images: opts.allImages
+        }
+        const headerParams = {
+        }
+        const formParams = {
+        }
+
+        const authNames = ['client_id', 'customers_auth']
+        const contentTypes = ['application/json', 'text/xml', 'application/xml']
+        const accepts = ['application/json', 'text/xml', 'application/xml']
+        const returnType = ProductRecommendationsResult
+
+        return this.apiClient.callApi(
+            '/ai/product_recommendations/{recommender_name}', 'GET',
+            pathParams, queryParams, headerParams, formParams, postBody,
+            authNames, contentTypes, accepts, returnType
+        )
+    }
+
+    /**
+     * This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API.  Returns product recommendations based on the given product or category IDs.
+     * @param {String} recommenderName The recommender name.
+     * @param {Object} opts Optional parameters
+     * @param {Array.<String>} opts.products
+     * @param {Array.<String>} opts.categories
+     * @param {String} opts.uuid
+     * @param {Array.<String>} opts.expand
+     * @param {Array.<String>} opts.inventoryIds
+     * @param {String} opts.currency
+     * @param {Boolean} opts.allImages
+     * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductRecommendationsResult}
+     */
+    getAiProductRecommendationsByID(recommenderName, opts) {
+        return this.getAiProductRecommendationsByIDWithHttpInfo(recommenderName, opts)
+            .then((response_and_data) => {
+                return response_and_data.data
+            })
+    }
+
+
+}
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/api_BasketsApi.js.html b/docs/api_BasketsApi.js.html index 282a39c..b799fde 100644 --- a/docs/api_BasketsApi.js.html +++ b/docs/api_BasketsApi.js.html @@ -27,14 +27,14 @@

Source: api/BasketsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,30 +42,35 @@ 

Source: api/BasketsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' +import ApproachingDiscountResult from '../models/ApproachingDiscountResult' import Basket from '../models/Basket' import NotesResult from '../models/NotesResult' import PaymentMethodResult from '../models/PaymentMethodResult' import ShippingMethodResult from '../models/ShippingMethodResult' /** - * Baskets service. - * @module api/BasketsApi - * @version 17.8 - */ +* Baskets service. +* @module api/BasketsApi +* @version 20.4 +*/ export default class BasketsApi { /** - * Constructs a new BasketsApi. - * @alias module:api/BasketsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new BasketsApi. + * @alias module:api/BasketsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Removes a basket. * @param {String} basketId the id of the basket to be retrieved @@ -79,14 +84,18 @@

Source: api/BasketsApi.js

throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByID') } + const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -135,11 +144,14 @@

Source: api/BasketsApi.js

basket_id: basketId, coupon_item_id: couponItemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -165,6 +177,63 @@

Source: api/BasketsApi.js

} + /** + * Deletes a gift certificate item from an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'giftCertificateItemId' is set + if (giftCertificateItemId === undefined || giftCertificateItemId === null) { + throw new Error('Missing the required parameter \'giftCertificateItemId\' when calling deleteBasketsByIDGiftCertificateItemsByID') + } + + + const pathParams = { + basket_id: basketId, + gift_certificate_item_id: giftCertificateItemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/gift_certificate_items/{gift_certificate_item_id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Deletes a gift certificate item from an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + deleteBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId) { + return this.deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Removes a product item from the basket. * @param {String} basketId the id of the basket to be modified @@ -189,11 +258,14 @@

Source: api/BasketsApi.js

basket_id: basketId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -243,11 +315,14 @@

Source: api/BasketsApi.js

basket_id: basketId, note_id: noteId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -297,11 +372,14 @@

Source: api/BasketsApi.js

basket_id: basketId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -327,6 +405,63 @@

Source: api/BasketsApi.js

} + /** + * Removes a custom manual price adjustment from the basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling deleteBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'priceAdjustmentId' is set + if (priceAdjustmentId === undefined || priceAdjustmentId === null) { + throw new Error('Missing the required parameter \'priceAdjustmentId\' when calling deleteBasketsByIDPriceAdjustmentsByID') + } + + + const pathParams = { + basket_id: basketId, + price_adjustment_id: priceAdjustmentId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments/{price_adjustment_id}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Removes a custom manual price adjustment from the basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be removed + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + deleteBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId) { + return this.deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment. * @param {String} basketId the id of the basket to be modified @@ -351,11 +486,14 @@

Source: api/BasketsApi.js

basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -398,11 +536,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -427,6 +568,55 @@

Source: api/BasketsApi.js

} + /** + * Gets the approaching discounts of a basket + * @param {String} basketId The id of the basket to be checked. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ApproachingDiscountResult} and HTTP response + */ + getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling getBasketsByIDApproachingDiscounts') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ApproachingDiscountResult + + return this.apiClient.callApi( + '/baskets/{basket_id}/approaching_discounts', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Gets the approaching discounts of a basket + * @param {String} basketId The id of the basket to be checked. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ApproachingDiscountResult} + */ + getBasketsByIDApproachingDiscounts(basketId) { + return this.getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Retrieves notes for a basket. * @param {String} basketId The id of the basket for which you want to retrieve the notes. @@ -444,11 +634,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = NotesResult @@ -490,11 +683,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PaymentMethodResult @@ -543,9 +739,12 @@

Source: api/BasketsApi.js

basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -596,11 +795,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -627,21 +829,71 @@

Source: api/BasketsApi.js

/** - * Updates an item in a basket. - * The following values in the request body are considered by the server: - * product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. - * shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. - * quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, - * the product item is removed. - * option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. - * This is only possible if the product item is an option product. - * To change option values a collection of option items to be changed need to be - * provided in property option_items. Those option_items need to contain option_id - * and option_value_id. The provided values must be valid for the option product that - * this product item represents. Otherwise InvalidProductOptionItemException or - * InvalidProductOptionValueItemException will be thrown. custom properties c_&lt;CUSTOM_NAME&gt;: a - * value corresponding to the type defined for custom attribute &lt;CUSTOM_NAME&gt; of ProductLineItem. - * The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. + * Updates a gift certificate item of an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be updated + * @param {module:models/GiftCertificateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'giftCertificateItemId' is set + if (giftCertificateItemId === undefined || giftCertificateItemId === null) { + throw new Error('Missing the required parameter \'giftCertificateItemId\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchBasketsByIDGiftCertificateItemsByID') + } + + + const pathParams = { + basket_id: basketId, + gift_certificate_item_id: giftCertificateItemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/gift_certificate_items/{gift_certificate_item_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a gift certificate item of an existing basket. + * @param {String} basketId the id of the basket to be modified + * @param {String} giftCertificateItemId the id of the gift certificate item to be updated + * @param {module:models/GiftCertificateItem} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + patchBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId, body) { + return this.patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_&lt;CUSTOM_NAME&gt;: a value corresponding to the type defined for custom attribute &lt;CUSTOM_NAME&gt; of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. * @param {String} basketId the id of the basket to be modified * @param {String} itemId the it of the item to be updated * @param {module:models/ProductItem} body @@ -670,11 +922,14 @@

Source: api/BasketsApi.js

basket_id: basketId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -687,20 +942,7 @@

Source: api/BasketsApi.js

} /** - * Updates an item in a basket. - * The following values in the request body are considered by the server: - * product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. - * shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. - * quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. - * option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. - * This is only possible if the product item is an option product. To change - * option values a collection of option items to be changed need to be - * provided in property option_items. Those option_items need to contain option_id and option_value_id. - * The provided values must be valid for the option product that this product item represents. Otherwise - * InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. - * custom properties c_&lt;CUSTOM_NAME&gt;: a value corresponding to the type defined for custom attribute - * &lt;CUSTOM_NAME&gt; of ProductLineItem. The purpose of this value is to - * add or change the value of a custom attribute defined for ProductLineItem. + * Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_&lt;CUSTOM_NAME&gt;: a value corresponding to the type defined for custom attribute &lt;CUSTOM_NAME&gt; of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem. * @param {String} basketId the id of the basket to be modified * @param {String} itemId the it of the item to be updated * @param {module:models/ProductItem} body @@ -715,11 +957,7 @@

Source: api/BasketsApi.js

/** - * Updates a payment instrument of a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. - * See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} + * Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} * @param {String} basketId the basket id * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/BasketPaymentInstrumentRequest} body @@ -748,11 +986,14 @@

Source: api/BasketsApi.js

basket_id: basketId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -765,10 +1006,7 @@

Source: api/BasketsApi.js

} /** - * Updates a payment instrument of a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} + * Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id} * @param {String} basketId the basket id * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/BasketPaymentInstrumentRequest} body @@ -783,11 +1021,71 @@

Source: api/BasketsApi.js

/** - * Updates a shipment for a basket. - * The shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified - * the id the shipping address the shipping method gift boolean flag gift message custom properties + * Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the &#39;percentage&#39; attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the &#39;amount&#39; attribute is mandatory. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be updated + * @param {module:models/PriceAdjustment} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'priceAdjustmentId' is set + if (priceAdjustmentId === undefined || priceAdjustmentId === null) { + throw new Error('Missing the required parameter \'priceAdjustmentId\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchBasketsByIDPriceAdjustmentsByID') + } + + + const pathParams = { + basket_id: basketId, + price_adjustment_id: priceAdjustmentId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments/{price_adjustment_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the &#39;percentage&#39; attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the &#39;amount&#39; attribute is mandatory. + * @param {String} basketId the id of the basket to be modified + * @param {String} priceAdjustmentId the uuid of the adjustment to be updated + * @param {module:models/PriceAdjustment} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + patchBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId, body) { + return this.patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {String} shipmentId the id of the shipment to be modified * @param {module:models/Shipment} body @@ -816,11 +1114,14 @@

Source: api/BasketsApi.js

basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -833,11 +1134,7 @@

Source: api/BasketsApi.js

} /** - * Updates a shipment for a basket. - * The shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified the id the shipping address - * the shipping method gift boolean flag gift message custom properties + * Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {String} shipmentId the id of the shipment to be modified * @param {module:models/Shipment} body @@ -852,28 +1149,7 @@

Source: api/BasketsApi.js

/** - * Creates a new basket. The created basket is initialized with default values. Data provided in the body document - * will be populated into the created basket. It can be updated with further Shop API calls. - * Considered values from the request body are: - * customer information: PUT /baskets/{basket_id}/customer - * billing address: PUT /baskets/{basket_id}/billing_address - * shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments - * product items: POST /baskets/{basket_id}/items - * coupon items: POST /baskets/{basket_id}/coupons - * gift certificate items: POST /baskets/{basket_id}/gift_certificates - * payment method and card type: POST /baskets/{basket_id}/payment_instruments - * custom properties: PATCH /baskets/{basket_id} - * Related resource means with which resource you can specify the same data after the basket creation. - * Identify the basket using the basket_id property, which - * should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. - * The resource supports JWT or OAuth tokens for authentication: - * A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. - * An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. - * The number of baskets which can be created per customer is limited. When a - * basket is created it is said to be open. It remains open until either an order is created from it - * using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: - * When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be - * updated by support) + * Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_&lt;CUSTOM_NAME&gt; are supported. A custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource. * @param {Object} opts Optional parameters * @param {module:models/Basket} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -883,12 +1159,16 @@

Source: api/BasketsApi.js

const postBody = opts.body - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -901,27 +1181,7 @@

Source: api/BasketsApi.js

} /** - * Creates a new basket. The created basket is initialized with default values. Data provided in the body document - * will be populated into the created basket. It can be updated with further Shop API calls. - * Considered values from the request body are: - * customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address - * shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items - * coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates - * payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} - * Related resource means with which resource you can specify the same data after the basket creation. - * Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to - * /baskets/{basket_id}/items. - * The resource supports JWT or OAuth tokens for authentication: - * A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered - * customer). In this case the resource creates a basket for this customer. - * An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created - * guest customer, and can later update the customer if desired. - * The number of baskets which can be created per customer is limited. When a - * basket is created it is said to be open. It remains open until either an order is created from it - * using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication - * method used: - * When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be - * updated by support) + * Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_&lt;CUSTOM_NAME&gt; are supported. A custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource. * @param {Object} opts Optional parameters * @param {module:models/Basket} opts.body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -957,11 +1217,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1010,11 +1273,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1041,28 +1307,7 @@

Source: api/BasketsApi.js

/** - * Adds new items to a basket. - * The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. - * Considered values from the request body, for each item are: - * product_id: a valid product id. This is the id of the product to be added to the basket. If the - * product is already in the basket, the API either increments the quantity of the existing product line item or - * creates a new product line item, based on the site preference &#39;Add Product Behavior&#39;. For option products and - * product bundles containing variation masters, the API creates a new product line item regardless of the site - * preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. - * quantity: a number between 0.01 and 999. This is the quantity of the product to order. - * inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is - * allocated. - * bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the - * bonus discount line item for which the added product is a selected bonus product. - * option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. - * This is only possible if the product item is an option - * product. To set option values, you must specify a collection of option items in the option_items - * property. These option items must contain option_id and option_value_id. Also, - * the values you specify must be valid for the option product that this product item represents. Otherwise, the - * server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom - * attribute (&lt;CUSTOM_NAME&gt;) defined for ProductLineItem. The value of this property must be valid for the - * type of custom attribute defined for ProductLineItem. + * Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference &#39;Add Product Behavior&#39;. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem. * @param {String} basketId The id of the basket to be modified. * @param {module:models/ProductItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1084,11 +1329,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1101,27 +1349,7 @@

Source: api/BasketsApi.js

} /** - * Adds new items to a basket. - * The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. - * Considered values from the request body, for each item are: - * product_id: a valid product id. This is the id of the product to be added to the basket. If the - * product is already in the basket, the API either increments the quantity of the existing product line item or - * creates a new product line item, based on the site preference &#39;Add Product Behavior&#39;. For option products and - * product bundles containing variation masters, the API creates a new product line item regardless of the site preference. - * shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. - * quantity: a number between 0.01 and 999. This is the quantity of the product to order. - * inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. - * bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the - * bonus discount line item for which the added product is a selected bonus product. - * option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. - * This is only possible if the product item is an option - * product. To set option values, you must specify a collection of option items in the option_items - * property. These option items must contain option_id and option_value_id. Also, - * the values you specify must be valid for the option product that this product item represents. - * Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom - * attribute (&lt;CUSTOM_NAME&gt;) defined for ProductLineItem. The value of this property must be valid for the - * type of custom attribute defined for ProductLineItem. + * Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference &#39;Add Product Behavior&#39;. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem. * @param {String} basketId The id of the basket to be modified. * @param {module:models/ProductItem} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1157,11 +1385,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1188,11 +1419,7 @@

Source: api/BasketsApi.js

/** - * Adds a payment instrument to a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. - * NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. + * Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. * @param {String} basketId the basket id * @param {module:models/BasketPaymentInstrumentRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1214,11 +1441,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1231,12 +1461,7 @@

Source: api/BasketsApi.js

} /** - * Adds a payment instrument to a basket. - * Payment instruments are usually authorized after order creation, for example in a custom hook. The default - * payment authorization process executes an authorization when a payment instrument is added to an order or - * updated. - * See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. - * NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. + * Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type. * @param {String} basketId the basket id * @param {module:models/BasketPaymentInstrumentRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1250,16 +1475,63 @@

Source: api/BasketsApi.js

/** - * Creates a new shipment for a basket. - * The created shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified: - * the id - * the shipping address - * the shipping method - * gift boolean flag - * gift message - * custom properties + * Adds a custom manual price adjustment to the basket. + * @param {String} basketId the id of the basket to be modified + * @param {module:models/PriceAdjustmentRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) { + const postBody = body + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling postBasketsByIDPriceAdjustments') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postBasketsByIDPriceAdjustments') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/price_adjustments', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Adds a custom manual price adjustment to the basket. + * @param {String} basketId the id of the basket to be modified + * @param {module:models/PriceAdjustmentRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + postBasketsByIDPriceAdjustments(basketId, body) { + return this.postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {module:models/Shipment} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response @@ -1281,11 +1553,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1298,16 +1573,7 @@

Source: api/BasketsApi.js

} /** - * Creates a new shipment for a basket. - * The created shipment is initialized with values provided in the body - * document and can be updated with further data API calls. Considered from - * the body are the following properties if specified: - * the id - * the shipping address - * the shipping method - * gift boolean flag - * gift message - * custom properties + * Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties * @param {String} basketId the id of the basket to be modified * @param {module:models/Shipment} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} @@ -1320,6 +1586,103 @@

Source: api/BasketsApi.js

} + /** + * Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket. + * @param {module:models/BasketReference} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + postBasketsReferenceWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postBasketsReference') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/reference', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket. + * @param {module:models/BasketReference} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + postBasketsReference(body) { + return this.postBasketsReferenceWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Marks a basket as an agent basket. + * @param {String} basketId the basket id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + putBasketsByIDAgentWithHttpInfo(basketId) { + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling putBasketsByIDAgent') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/agent', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Marks a basket as an agent basket. + * @param {String} basketId the basket id + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + putBasketsByIDAgent(basketId) { + return this.putBasketsByIDAgentWithHttpInfo(basketId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Sets the billing address of a basket. * @param {String} basketId The id of the basket to be modified. @@ -1346,10 +1709,12 @@

Source: api/BasketsApi.js

use_as_shipping: opts.useAsShipping, customer_address_id: opts.customerAddressId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1401,11 +1766,14 @@

Source: api/BasketsApi.js

const pathParams = { basket_id: basketId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1469,10 +1837,12 @@

Source: api/BasketsApi.js

use_as_billing: opts.useAsBilling, customer_address_id: opts.customerAddressId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1532,11 +1902,14 @@

Source: api/BasketsApi.js

basket_id: basketId, shipment_id: shipmentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Basket @@ -1563,6 +1936,61 @@

Source: api/BasketsApi.js

} + /** + * Marks a basket as storefront basket. + * @param {String} basketId the basket id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.exchange + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Basket} and HTTP response + */ + putBasketsByIDStorefrontWithHttpInfo(basketId, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'basketId' is set + if (basketId === undefined || basketId === null) { + throw new Error('Missing the required parameter \'basketId\' when calling putBasketsByIDStorefront') + } + + + const pathParams = { + basket_id: basketId + } + const queryParams = { + exchange: opts.exchange + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Basket + + return this.apiClient.callApi( + '/baskets/{basket_id}/storefront', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Marks a basket as storefront basket. + * @param {String} basketId the basket id + * @param {Object} opts Optional parameters + * @param {Boolean} opts.exchange + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Basket} + */ + putBasketsByIDStorefront(basketId, opts) { + return this.putBasketsByIDStorefrontWithHttpInfo(basketId, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + }
@@ -1574,7 +2002,7 @@

Source: api/BasketsApi.js


diff --git a/docs/api_CategoriesApi.js.html b/docs/api_CategoriesApi.js.html index e3806bc..d48fd03 100644 --- a/docs/api_CategoriesApi.js.html +++ b/docs/api_CategoriesApi.js.html @@ -27,14 +27,14 @@

Source: api/CategoriesApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,32 +42,34 @@ 

Source: api/CategoriesApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Category from '../models/Category' import CategoryResult from '../models/CategoryResult' /** - * Categories service. - * @module api/CategoriesApi - * @version 17.8 - */ +* Categories service. +* @module api/CategoriesApi +* @version 20.4 +*/ export default class CategoriesApi { /** - * Constructs a new CategoriesApi. - * @alias module:api/CategoriesApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CategoriesApi. + * @alias module:api/CategoriesApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * When you use the URL template below, the server returns a category identified by its id; by default, the server - * also returns the first level of subcategories, but you can specify another level by setting the levels - * parameter. The server only returns online categories. + * When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories. * @param {String} id The id of the requested category. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -83,6 +85,7 @@

Source: api/CategoriesApi.js

throw new Error('Missing the required parameter \'id\' when calling getCategoriesByID') } + const pathParams = { id } @@ -90,8 +93,10 @@

Source: api/CategoriesApi.js

levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -106,9 +111,7 @@

Source: api/CategoriesApi.js

} /** - * When you use the URL template below, the server returns a category identified by its id; by default, the server - * also returns the first level of subcategories, but you can specify another level by setting the levels - * parameter. The server only returns online categories. + * When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories. * @param {String} id The id of the requested category. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -122,6 +125,7 @@

Source: api/CategoriesApi.js

}) } + /** * @param {Array.<String>} ids * @param {Object} opts Optional parameters @@ -138,6 +142,7 @@

Source: api/CategoriesApi.js

throw new Error('Missing the required parameter \'ids\' when calling getCategoriesByIDs') } + const pathParams = { ids } @@ -145,8 +150,10 @@

Source: api/CategoriesApi.js

levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -173,6 +180,8 @@

Source: api/CategoriesApi.js

return response_and_data.data }) } + + }
@@ -184,7 +193,7 @@

Source: api/CategoriesApi.js


diff --git a/docs/api_ContentApi.js.html b/docs/api_ContentApi.js.html index 3825bea..a9937da 100644 --- a/docs/api_ContentApi.js.html +++ b/docs/api_ContentApi.js.html @@ -27,14 +27,14 @@

Source: api/ContentApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,32 +42,34 @@ 

Source: api/ContentApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from '../models/Content' import ContentResult from '../models/ContentResult' /** - * Content service. - * @module api/ContentApi - * @version 17.8 - */ +* Content service. +* @module api/ContentApi +* @version 20.4 +*/ export default class ContentApi { /** - * Constructs a new ContentApi. - * @alias module:api/ContentApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ContentApi. + * @alias module:api/ContentApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * To access a content asset, you construct a URL using the template shown below. This template requires you to - * specify a content asset id. In response, the server returns a corresponding content asset document. Only content - * assets, which are marked as online are returned. An assignment to a folder is not necessary. + * To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary. * @param {String} id The id of the requested content asset. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -89,8 +91,10 @@

Source: api/ContentApi.js

const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -105,9 +109,7 @@

Source: api/ContentApi.js

} /** - * To access a content asset, you construct a URL using the template shown below. This template requires you to - * specify a content asset id. In response, the server returns a corresponding content asset document. Only content - * assets, which are marked as online are returned. An assignment to a folder is not necessary. + * To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary. * @param {String} id The id of the requested content asset. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -143,8 +145,10 @@

Source: api/ContentApi.js

const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -183,7 +187,7 @@

Source: api/ContentApi.js


diff --git a/docs/api_ContentSearchApi.js.html b/docs/api_ContentSearchApi.js.html index 867ac35..7ba9856 100644 --- a/docs/api_ContentSearchApi.js.html +++ b/docs/api_ContentSearchApi.js.html @@ -27,14 +27,14 @@

Source: api/ContentSearchApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,44 +42,37 @@ 

Source: api/ContentSearchApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentSearchResult from '../models/ContentSearchResult' /** - * Content_search service. - * @module api/ContentSearchApi - * @version 17.8 - */ +* Content_search service. +* @module api/ContentSearchApi +* @version 20.4 +*/ export default class ContentSearchApi { /** - * Constructs a new ContentSearchApi. - * @alias module:api/ContentSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ContentSearchApi. + * @alias module:api/ContentSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Provides keyword and refinement search functionality for content assets. The search result contains only content that is online and assigned to a folder. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;foo&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementType&#x3D;type1|type2|type3. The - * following system refinement attribute ids are supported: - * fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. - * @param {Array.<String>} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are - * separated by &#39;&#x3D;&#39;. The value describes the sort direction. Possible values are &#39;asc&#39; and &#39;desc&#39;, for - * ascending or descending sort direction. I.e. sort&#x3D;c_myAttribute&#x3D;desc. Precondition: You have to select - * your sorting attributes in Business Manager &gt; YourSite &gt; Search Indexes &gt; Content Index &gt; Sorting - * Attributes. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;foo&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementType&#x3D;type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. + * @param {Array.<String>} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by &#39;&#x3D;&#39;. The value describes the sort direction. Possible values are &#39;asc&#39; and &#39;desc&#39;, for ascending or descending sort direction. I.e. sort&#x3D;c_myAttribute&#x3D;desc. Precondition: You have to select your sorting attributes in Business Manager &gt; YourSite &gt; Search Indexes &gt; Content Index &gt; Sorting Attributes. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. @@ -90,25 +83,26 @@

Source: api/ContentSearchApi.js

const postBody = null - const pathParams = {} + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: this.apiClient.buildCollectionParam(opts.sort, 'csv'), start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ContentSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/content_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -120,19 +114,8 @@

Source: api/ContentSearchApi.js

* Provides keyword and refinement search functionality for content assets. The search result contains only content that is online and assigned to a folder. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;foo&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementType&#x3D;type1|type2|type3. The - * following system refinement attribute ids are supported: - * fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. - * @param {Array.<String>} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are - * separated by &#39;&#x3D;&#39;. The value describes the sort direction. Possible values are &#39;asc&#39; and &#39;desc&#39;, for - * ascending or descending sort direction. I.e. sort&#x3D;c_myAttribute&#x3D;desc. Precondition: You have to select - * your sorting attributes in Business Manager &gt; YourSite &gt; Search Indexes &gt; Content Index &gt; Sorting - * Attributes. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;foo&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementType&#x3D;type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported. + * @param {Array.<String>} opts.sort Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by &#39;&#x3D;&#39;. The value describes the sort direction. Possible values are &#39;asc&#39; and &#39;desc&#39;, for ascending or descending sort direction. I.e. sort&#x3D;c_myAttribute&#x3D;desc. Precondition: You have to select your sorting attributes in Business Manager &gt; YourSite &gt; Search Indexes &gt; Content Index &gt; Sorting Attributes. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. @@ -144,6 +127,8 @@

Source: api/ContentSearchApi.js

return response_and_data.data }) } + + }
@@ -155,7 +140,7 @@

Source: api/ContentSearchApi.js


diff --git a/docs/api_CustomObjectsApi.js.html b/docs/api_CustomObjectsApi.js.html index 572115b..8cc617b 100644 --- a/docs/api_CustomObjectsApi.js.html +++ b/docs/api_CustomObjectsApi.js.html @@ -27,14 +27,14 @@

Source: api/CustomObjectsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,23 +42,25 @@ 

Source: api/CustomObjectsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomObject from '../models/CustomObject' /** - * Custom_objects service. - * @module api/CustomObjectsApi - * @version 17.8 - */ +* Custom_objects service. +* @module api/CustomObjectsApi +* @version 20.4 +*/ export default class CustomObjectsApi { /** - * Constructs a new CustomObjectsApi. - * @alias module:api/CustomObjectsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CustomObjectsApi. + * @alias module:api/CustomObjectsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -89,9 +91,12 @@

Source: api/CustomObjectsApi.js

object_type: objectType, key } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -130,7 +135,7 @@

Source: api/CustomObjectsApi.js


diff --git a/docs/api_CustomersApi.js.html b/docs/api_CustomersApi.js.html index 4482ac7..e69d21f 100644 --- a/docs/api_CustomersApi.js.html +++ b/docs/api_CustomersApi.js.html @@ -27,14 +27,14 @@

Source: api/CustomersApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,33 +42,38 @@ 

Source: api/CustomersApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BasketsResult from '../models/BasketsResult' +import Customer from '../models/Customer' import CustomerAddress from '../models/CustomerAddress' import CustomerAddressResult from '../models/CustomerAddressResult' -import Customer from '../models/Customer' import CustomerOrderResult from '../models/CustomerOrderResult' import CustomerPaymentInstrument from '../models/CustomerPaymentInstrument' import CustomerPaymentInstrumentResult from '../models/CustomerPaymentInstrumentResult' +import CustomerProductList from '../models/CustomerProductList' import CustomerProductListItem from '../models/CustomerProductListItem' +import CustomerProductListItemPurchase from '../models/CustomerProductListItemPurchase' +import CustomerProductListItemPurchaseResult from '../models/CustomerProductListItemPurchaseResult' import CustomerProductListItemResult from '../models/CustomerProductListItemResult' -import CustomerProductList from '../models/CustomerProductList' import CustomerProductListResult from '../models/CustomerProductListResult' +import ResetPasswordTokenResult from '../models/ResetPasswordTokenResult' /** - * Customers service. - * @module api/CustomersApi - * @version 17.8 - */ +* Customers service. +* @module api/CustomersApi +* @version 20.4 +*/ export default class CustomersApi { /** - * Constructs a new CustomersApi. - * @alias module:api/CustomersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new CustomersApi. + * @alias module:api/CustomersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -78,7 +83,7 @@

Source: api/CustomersApi.js

/** * Invalidates the JWT provided in the header. * @param {Object} opts Optional parameters - * @param {String} opts.authorization the JWT token + * @param {String} opts.authorization the JWT * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ deleteCustomersAuthWithHttpInfo(opts) { @@ -86,12 +91,15 @@

Source: api/CustomersApi.js

const postBody = null - const pathParams = {} - const queryParams = {} + const pathParams = { + } + const queryParams = { + } const headerParams = { Authorization: opts.authorization } - const formParams = {} + const formParams = { + } const authNames = ['customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -108,7 +116,7 @@

Source: api/CustomersApi.js

/** * Invalidates the JWT provided in the header. * @param {Object} opts Optional parameters - * @param {String} opts.authorization the JWT token + * @param {String} opts.authorization the JWT * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ deleteCustomersAuth(opts) { @@ -143,11 +151,14 @@

Source: api/CustomersApi.js

customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -197,11 +208,14 @@

Source: api/CustomersApi.js

customer_id: customerId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -251,11 +265,14 @@

Source: api/CustomersApi.js

customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -312,11 +329,14 @@

Source: api/CustomersApi.js

list_id: listId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -366,10 +386,12 @@

Source: api/CustomersApi.js

const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -397,11 +419,7 @@

Source: api/CustomersApi.js

/** - * Returns a sorted pageable list of all customer addresses in the address book. The default page - * size is 10 customer addresses. The addresses are sorted so that the preferred address is - * always sorted first. The remaining addresses are sorted alphabetically by ID. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent - * but an empty result list is returned in a case of JWT. + * Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId The customer uuid * @param {Object} opts Optional parameters * @param {Number} opts.start @@ -425,10 +443,12 @@

Source: api/CustomersApi.js

start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddressResult @@ -441,11 +461,7 @@

Source: api/CustomersApi.js

} /** - * Returns a sorted pageable list of all customer addresses in the address book. The default - * page size is 10 customer addresses. The addresses are sorted so that the preferred - * address is always sorted first. The remaining addresses are sorted alphabetically by ID. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId The customer uuid * @param {Object} opts Optional parameters * @param {Number} opts.start @@ -484,11 +500,14 @@

Source: api/CustomersApi.js

customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -531,11 +550,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = BasketsResult @@ -593,10 +615,12 @@

Source: api/CustomersApi.js

until: opts.until, status: opts.status } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerOrderResult @@ -629,10 +653,7 @@

Source: api/CustomersApi.js

/** - * Gets customer payment instruments for an customer. Can be limited to a specific payment - * method by providing query parameter payment_method_id. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId the id of the customer to retrieve the payment instruments for * @param {Object} opts Optional parameters * @param {String} opts.paymentMethodId @@ -654,10 +675,12 @@

Source: api/CustomersApi.js

const queryParams = { payment_method_id: opts.paymentMethodId } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrumentResult @@ -670,10 +693,7 @@

Source: api/CustomersApi.js

} /** - * Gets customer payment instruments for an customer. Can be limited to a specific payment - * method by providing query parameter payment_method_id. - * When the customer cannot be found CustomerNotFoundException is thrown in a case of an - * agent but an empty result list is returned in a case of JWT. + * Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT. * @param {String} customerId the id of the customer to retrieve the payment instruments for * @param {Object} opts Optional parameters * @param {String} opts.paymentMethodId @@ -711,11 +731,14 @@

Source: api/CustomersApi.js

customer_id: customerId, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrument @@ -764,10 +787,12 @@

Source: api/CustomersApi.js

const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListResult @@ -824,10 +849,12 @@

Source: api/CustomersApi.js

const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -889,10 +916,12 @@

Source: api/CustomersApi.js

start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItemResult @@ -959,10 +988,12 @@

Source: api/CustomersApi.js

const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -991,6 +1022,144 @@

Source: api/CustomersApi.js

} + /** + * Returns a list of all purchases of an item from a customer&#39;s product list. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve from. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchaseResult} and HTTP response + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId) { + const postBody = null + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchases') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchaseResult + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a list of all purchases of an item from a customer&#39;s product list. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve from. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchaseResult} + */ + getCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId) { + return this.getCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Returns a purchase of an item from a customer&#39;s product list. + * @param {String} customerId The id of the customer to retrieve the product list items for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId) { + const postBody = null + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'purchaseId' is set + if (purchaseId === undefined || purchaseId === null) { + throw new Error('Missing the required parameter \'purchaseId\' when calling getCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId, + purchase_id: purchaseId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases/{purchase_id}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a purchase of an item from a customer&#39;s product list. + * @param {String} customerId The id of the customer to retrieve the product list items for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + getCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId) { + return this.getCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Updates a customer. * @param {String} customerId the customer id @@ -1014,11 +1183,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -1074,11 +1246,14 @@

Source: api/CustomersApi.js

customer_id: customerId, address_name: addressName } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -1135,11 +1310,14 @@

Source: api/CustomersApi.js

customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -1167,13 +1345,7 @@

Source: api/CustomersApi.js

/** - * Updates an item of a customer&#39;s product list. Considered values from the request body are: - * priority: This is the priority of the customer&#39;s product list item. - * public: This is the flag whether the customer&#39;s product list item is public. - * quantity: used for product item type only. This is the quantity of the customer&#39;s product list item. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a - * custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. - * The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Updates an item of a customer&#39;s product list. Considered values from the request body are: priority: This is the priority of the customer&#39;s product list item. public: This is the flag whether the customer&#39;s product list item is public. quantity: used for product item type only. This is the quantity of the customer&#39;s product list item. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the owner of the product list. * @param {String} listId The id of the product list. * @param {String} itemId The id of the product list item to update. @@ -1209,11 +1381,14 @@

Source: api/CustomersApi.js

list_id: listId, item_id: itemId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -1226,13 +1401,7 @@

Source: api/CustomersApi.js

} /** - * Updates an item of a customer&#39;s product list. Considered values from the request body are: - * priority: This is the priority of the customer&#39;s product list item. - * public: This is the flag whether the customer&#39;s product list item is public. - * quantity: used for product item type only. This is the quantity of the customer&#39;s product list item. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a - * custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. - * The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Updates an item of a customer&#39;s product list. Considered values from the request body are: priority: This is the priority of the customer&#39;s product list item. public: This is the flag whether the customer&#39;s product list item is public. quantity: used for product item type only. This is the quantity of the customer&#39;s product list item. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the owner of the product list. * @param {String} listId The id of the product list. * @param {String} itemId The id of the product list item to update. @@ -1248,9 +1417,87 @@

Source: api/CustomersApi.js

/** - * Registers a customer. The mandatory data are the credentials and profile last name and email. - * When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException - * will be thrown. When using JWT the password is required. + * Updates a purchase of an item from a customer&#39;s product list. Considered values from the request body are: custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + patchCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId, body) { + const postBody = body + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'purchaseId' is set + if (purchaseId === undefined || purchaseId === null) { + throw new Error('Missing the required parameter \'purchaseId\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling patchCustomersByIDProductListsByIDItemsByIDPurchasesByID') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId, + purchase_id: purchaseId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases/{purchase_id}', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Updates a purchase of an item from a customer&#39;s product list. Considered values from the request body are: custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer to retrieve the product list item purchases for. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item to retrieve. + * @param {String} purchaseId The id of the product list item purchase to retrieve. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + patchCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId, body) { + return this.patchCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required. * @param {module:models/CustomerRegistration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response */ @@ -1263,12 +1510,16 @@

Source: api/CustomersApi.js

} - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Customer @@ -1281,9 +1532,7 @@

Source: api/CustomersApi.js

} /** - * Registers a customer. The mandatory data are the credentials and profile last name and email. - * When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException - * will be thrown. When using JWT the password is required. + * Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required. * @param {module:models/CustomerRegistration} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} */ @@ -1296,29 +1545,7 @@

Source: api/CustomersApi.js

/** - * Obtains a new JWT (JSON Web Token) for a guest or registered customer. - * Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: - * Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. - * Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an - * AuthenticationFailedException. - * Type session - authenticates the customer (anonymous or registered) on base of dwsid and dwsecuretoken cookies. It returns - * a token for a successfully authenticated customer, otherwise results in an - * AuthenticationFailedException. - * Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. - * For a request of type credentials: - * Updates profile attributes for the customer (for example, \&quot;last-visited\&quot;). Handles the maximum number of failed login attempts. - * For a request of type session: - * Does not touch profile attributes for the registered customer (for example, \&quot;last-visited\&quot;), since this is not a real login. Returns different tokens for multiple - * requests with the same session id. Means, there should be only one call per session. - * About JWT The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. - * A token is created and returned to the client whenever a registered customer logs in (type \&quot;credentials\&quot;) or a guest customer requests it (type \&quot;guest\&quot;). - * The token is returned in the response header as Authorization: Bearer --token-- - * The client has to include the token in the request header as - * Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or - * which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \&quot;refresh\&quot;). - * See \&quot;API Usage &gt; JWT\&quot; for more details on using JWT as an authentication mechanism. + * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, \&quot;last-visited\&quot;). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can&#39;t be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, \&quot;last-visited\&quot;), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type \&quot;credentials\&quot;) or a guest customer requests it (type \&quot;guest\&quot;). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \&quot;refresh\&quot;). See \&quot;API Usage &gt; JWT\&quot; for more details on using JWT as an authentication mechanism. * @param {module:models/AuthRequest} body * @param {Object} opts Optional parameters * @param {String} opts.authorization Authorization:Basic for type credentials Authorization:Bearer for type refresh @@ -1334,12 +1561,15 @@

Source: api/CustomersApi.js

} - const pathParams = {} - const queryParams = {} + const pathParams = { + } + const queryParams = { + } const headerParams = { Authorization: opts.authorization } - const formParams = {} + const formParams = { + } const authNames = ['client_id'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1357,34 +1587,7 @@

Source: api/CustomersApi.js

} /** - * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response - * header entry. These kinds of request are supported, as specified by the type: - * Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. - * Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an - * AuthenticationFailedException. - * Type session - authenticates the customer (anonymous or registered) - * on base of dwsid and dwsecuretoken cookies. It returns a token for a - * successfully authenticated customer, otherwise results in an - * AuthenticationFailedException. - * Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. - * For a request of type credentials: - * Updates profile attributes for the customer (for example, \&quot;last-visited\&quot;). - * Handles the maximum number of failed login attempts. - * For a request of type session: - * Does not touch profile attributes for the registered customer (for example, \&quot;last-visited\&quot;), since this is not a real login. - * Returns different tokens for multiple requests with the same session id. Means, there should be - * only one call per session. - * About JWT The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token is created and returned to the client whenever a registered - * customer logs in (type \&quot;credentials\&quot;) or a guest customer requests it (type \&quot;guest\&quot;). The token is returned in the response header as Authorization: Bearer --token-- - * The client has to include the token in the request header as - * Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests - * without a token or which cannot be verified based on the token signature - * or expiration time. A token nearing its expiration time should be exchanged for a new one (type \&quot;refresh\&quot;). - * See \&quot;API Usage &gt; JWT\&quot; for more details on using JWT as an authentication mechanism. + * Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, \&quot;last-visited\&quot;). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can&#39;t be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, \&quot;last-visited\&quot;), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type \&quot;credentials\&quot;) or a guest customer requests it (type \&quot;guest\&quot;). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type \&quot;refresh\&quot;). See \&quot;API Usage &gt; JWT\&quot; for more details on using JWT as an authentication mechanism. * @param {module:models/AuthRequest} body * @param {Object} opts Optional parameters * @param {String} opts.authorization Authorization:Basic for type credentials Authorization:Bearer for type refresh @@ -1398,6 +1601,54 @@

Source: api/CustomersApi.js

} + /** + * Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header. + * @param {module:models/TrustedSystemAuthRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response + */ + postCustomersAuthTrustedsystemWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersAuthTrustedsystem') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Customer + + return this.apiClient.callApi( + '/customers/auth/trustedsystem', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header. + * @param {module:models/TrustedSystemAuthRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} + */ + postCustomersAuthTrustedsystem(body) { + return this.postCustomersAuthTrustedsystemWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Creates a new address with the given name for the given customer. * @param {String} customerId the id of the customer to create the address for @@ -1421,11 +1672,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerAddress @@ -1452,17 +1706,7 @@

Source: api/CustomersApi.js

/** - * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer - * response header entry. - * A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. - * The token is returned in the response header as Authorization: Bearer --token--. - * The client has to include the token in the request header as Authorization: Bearer --token-- - * in any follow up request, the agent will do on behalf of the customer. - * About the order on behalf token - * The token contains 3 sections: - * the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token nearing its expiration time should be exchanged for a new one by calling this resource once more. + * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more. * @param {String} customerId specifies the customer to act on behalf of * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Customer} and HTTP response */ @@ -1478,9 +1722,12 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1495,17 +1742,7 @@

Source: api/CustomersApi.js

} /** - * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. - * A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. - * The token is returned in the response header as Authorization: Bearer --token--. - * The client has to include the token in the request header as Authorization: Bearer --token-- - * in any follow up request, the agent will do on behalf of the customer. - * About the order on behalf token - * The token contains 3 sections: - * the header section (specifies token type and algorithm used) - * the payload section (contains customer information, client id, issue and expiration time) - * finally the signature section records the token signature. - * A token nearing its expiration time should be exchanged for a new one by calling this resource once more. + * Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more. * @param {String} customerId specifies the customer to act on behalf of * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Customer} */ @@ -1518,10 +1755,7 @@

Source: api/CustomersApi.js

/** - * Starts a password reset process. A password reset token is generated and passed together with the customer - * resolved by the id provided as path parameter to a afterPOST hook. The hook - * dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to - * send a reset email. + * Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email. * @param {String} customerId the id of the customer * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ @@ -1537,11 +1771,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -1554,10 +1791,7 @@

Source: api/CustomersApi.js

} /** - * Starts a password reset process. A password reset token is generated and passed together with the customer - * resolved by the id provided as path parameter to a afterPOST hook. - * The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, - * for example to send a reset email. + * Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email. * @param {String} customerId the id of the customer * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ @@ -1592,11 +1826,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerPaymentInstrument @@ -1645,11 +1882,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductList @@ -1663,8 +1903,8 @@

Source: api/CustomersApi.js

/** * Creates a customer product list. - * @param {String} customerId The customer id. * @param {module:models/CustomerProductList} body + * @param {String} customerId The customer id. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductList} */ postCustomersByIDProductLists(customerId, body) { @@ -1676,18 +1916,7 @@

Source: api/CustomersApi.js

/** - * Adds an item to the customer&#39;s product list. - * Considered values from the request body are: - * type: a valid type, mandatory. This is the type of the item to be added to the customer&#39;s product list. - * priority: This is the priority of the item to be added to the customer&#39;s product list. - * public: This is the flag whether the item to be added to the customer&#39;s product list is public. - * product_id: a valid product id, used for product item type only. This is the id (sku) - * of the product related to the item to be added to the customer&#39;s product list. It is mandatory for - * product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. - * quantity: used for product item type only. This is the quantity of the item to be - * added to the customer&#39;s product list. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom - * attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. + * Adds an item to the customer&#39;s product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer&#39;s product list. priority: This is the priority of the item to be added to the customer&#39;s product list. public: This is the flag whether the item to be added to the customer&#39;s product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer&#39;s product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer&#39;s product list. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the customer - owner of the product list. * @param {String} listId The id of the product list * @param {module:models/CustomerProductListItem} body @@ -1716,11 +1945,14 @@

Source: api/CustomersApi.js

customer_id: customerId, list_id: listId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = CustomerProductListItem @@ -1733,17 +1965,7 @@

Source: api/CustomersApi.js

} /** - * Adds an item to the customer&#39;s product list. Considered values from the request body are: - * type: a valid type, mandatory. This is the type of the item to be added to the customer&#39;s product list. - * priority: This is the priority of the item to be added to the customer&#39;s product list. - * public: This is the flag whether the item to be added to the customer&#39;s product list is public. - * product_id: a valid product id, used for product item type only. This is the id (sku) of the product - * related to the item to be added to the customer&#39;s product list. It is mandatory for product item type and it must - * be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. - * quantity: used for product item type only. This is the quantity of the item to be added to the customer&#39;s product list. - * custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom - * attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid - * for the type of custom attribute defined for ProductListItem. + * Adds an item to the customer&#39;s product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer&#39;s product list. priority: This is the priority of the item to be added to the customer&#39;s product list. public: This is the flag whether the item to be added to the customer&#39;s product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer&#39;s product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer&#39;s product list. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem. * @param {String} customerId The id of the customer - owner of the product list. * @param {String} listId The id of the product list * @param {module:models/CustomerProductListItem} body @@ -1758,15 +1980,175 @@

Source: api/CustomersApi.js

/** - * First the beforePOST hook is called. After that the validation of the - * customer information provided in the the password reset document is performed. - * Then a password reset token is generated and together with the resolved - * customer is passed to a afterPOST hook. The customer resolution is based - * on the password reset request type. Both hooks are performed in a single transaction. - * Currently the resolution can be done by email or login. In case of an email the password reset - * hook is only executed if one and only one customer has been identified for that email. - * In the case that more than one customers have been identified for the provided email the - * resource does nothing. + * Adds a purchase to an item in the customer&#39;s product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer - owner of the product list. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item where to add the purchase. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/CustomerProductListItemPurchase} and HTTP response + */ + postCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId, body) { + const postBody = body + + // verify the required parameter 'customerId' is set + if (customerId === undefined || customerId === null) { + throw new Error('Missing the required parameter \'customerId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'listId' is set + if (listId === undefined || listId === null) { + throw new Error('Missing the required parameter \'listId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'itemId' is set + if (itemId === undefined || itemId === null) { + throw new Error('Missing the required parameter \'itemId\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersByIDProductListsByIDItemsByIDPurchases') + } + + + const pathParams = { + customer_id: customerId, + list_id: listId, + item_id: itemId + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = CustomerProductListItemPurchase + + return this.apiClient.callApi( + '/customers/{customer_id}/product_lists/{list_id}/items/{item_id}/purchases', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Adds a purchase to an item in the customer&#39;s product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_&lt;CUSTOM_NAME&gt;: the custom property must correspond to a custom attribute (&lt;CUSTOM_NAME&gt;) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase. + * @param {String} customerId The id of the customer - owner of the product list. + * @param {String} listId The id of the product list. + * @param {String} itemId The id of the product list item where to add the purchase. + * @param {module:models/CustomerProductListItemPurchase} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/CustomerProductListItemPurchase} + */ + postCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId, body) { + return this.postCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Returns a reset password token for the passed in customer&#39;s login that will be used with the customers/reset_password endpoint to change the customer&#39;s password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ResetPasswordTokenResult} and HTTP response + */ + postCustomersPasswordActionsCreateResetTokenWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersPasswordActionsCreateResetToken') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ResetPasswordTokenResult + + return this.apiClient.callApi( + '/customers/password/actions/create_reset_token', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Returns a reset password token for the passed in customer&#39;s login that will be used with the customers/reset_password endpoint to change the customer&#39;s password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordTokenRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ResetPasswordTokenResult} + */ + postCustomersPasswordActionsCreateResetToken(body) { + return this.postCustomersPasswordActionsCreateResetTokenWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Changes the customer&#39;s password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + postCustomersPasswordActionsResetWithHttpInfo(body) { + const postBody = body + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling postCustomersPasswordActionsReset') + } + + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = null + + return this.apiClient.callApi( + '/customers/password/actions/reset', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Changes the customer&#39;s password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing. + * @param {module:models/ResetPasswordRequest} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + postCustomersPasswordActionsReset(body) { + return this.postCustomersPasswordActionsResetWithHttpInfo(body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing. * @param {module:models/PasswordReset} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ @@ -1779,10 +2161,14 @@

Source: api/CustomersApi.js

} - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -1797,14 +2183,7 @@

Source: api/CustomersApi.js

} /** - * First the beforePOST hook is called. After that the validation of the - * customer information provided in the the password reset document is performed. - * Then a password reset token is generated and together with the resolved - * customer is passed to a afterPOST hook. The customer resolution is based - * on the password reset request type. Both hooks are performed in a single transaction. - * Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one - * customer has been identified for that email. In the case that more than one - * customers have been identified for the provided email the resource does nothing. + * First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing. * @param {module:models/PasswordReset} body * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ @@ -1839,11 +2218,14 @@

Source: api/CustomersApi.js

const pathParams = { customer_id: customerId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth'] + const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = null @@ -1880,7 +2262,7 @@

Source: api/CustomersApi.js


diff --git a/docs/api_FoldersApi.js.html b/docs/api_FoldersApi.js.html index 94a457c..dee0893 100644 --- a/docs/api_FoldersApi.js.html +++ b/docs/api_FoldersApi.js.html @@ -27,14 +27,14 @@

Source: api/FoldersApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,24 +42,26 @@ 

Source: api/FoldersApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentFolder from '../models/ContentFolder' import ContentFolderResult from '../models/ContentFolderResult' /** - * Folders service. - * @module api/FoldersApi - * @version 17.8 - */ +* Folders service. +* @module api/FoldersApi +* @version 20.4 +*/ export default class FoldersApi { /** - * Constructs a new FoldersApi. - * @alias module:api/FoldersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new FoldersApi. + * @alias module:api/FoldersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } @@ -67,10 +69,7 @@

Source: api/FoldersApi.js

/** - * To access a content folder, you construct a URL using the template shown below. This - * template requires you to specify a content folder id and a subfolder level. In response, - * the server returns a corresponding content folder document. Only content folder, - * which are marked as online are returned. + * To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned. * @param {String} id The id of the requested content folder. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -94,8 +93,10 @@

Source: api/FoldersApi.js

levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -110,10 +111,7 @@

Source: api/FoldersApi.js

} /** - * To access a content folder, you construct a URL using the template shown below. - * This template requires you to specify a content folder id and a subfolder level. - * In response, the server returns a corresponding content folder document. Only content - * folder, which are marked as online are returned. + * To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned. * @param {String} id The id of the requested content folder. * @param {Object} opts Optional parameters * @param {Number} opts.levels @@ -152,8 +150,10 @@

Source: api/FoldersApi.js

levels: opts.levels, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -193,7 +193,7 @@

Source: api/FoldersApi.js


diff --git a/docs/api_GiftCertificateApi.js.html b/docs/api_GiftCertificateApi.js.html index 52914d5..51d5b7c 100644 --- a/docs/api_GiftCertificateApi.js.html +++ b/docs/api_GiftCertificateApi.js.html @@ -27,14 +27,14 @@

Source: api/GiftCertificateApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,27 +42,31 @@ 

Source: api/GiftCertificateApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import GiftCertificate from '../models/GiftCertificate' /** - * Gift_certificate service. - * @module api/GiftCertificateApi - * @version 17.8 - */ +* Gift_certificate service. +* @module api/GiftCertificateApi +* @version 20.4 +*/ export default class GiftCertificateApi { /** - * Constructs a new GiftCertificateApi. - * @alias module:api/GiftCertificateApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new GiftCertificateApi. + * @alias module:api/GiftCertificateApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Action to retrieve an existing gift certificate. * @param {Object} opts Optional parameters @@ -73,12 +77,17 @@

Source: api/GiftCertificateApi.js

opts = opts || {} const postBody = opts.body - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = GiftCertificate @@ -102,6 +111,8 @@

Source: api/GiftCertificateApi.js

return response_and_data.data }) } + + }
@@ -113,7 +124,7 @@

Source: api/GiftCertificateApi.js


diff --git a/docs/api_OrderSearchApi.js.html b/docs/api_OrderSearchApi.js.html index f041b2a..2157492 100644 --- a/docs/api_OrderSearchApi.js.html +++ b/docs/api_OrderSearchApi.js.html @@ -27,14 +27,14 @@

Source: api/OrderSearchApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,45 +42,33 @@ 

Source: api/OrderSearchApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderSearchResult from '../models/OrderSearchResult' /** - * Order_search service. - * @module api/OrderSearchApi - * @version 17.8 - */ +* Order_search service. +* @module api/OrderSearchApi +* @version 20.4 +*/ export default class OrderSearchApi { /** - * Constructs a new OrderSearchApi. - * @alias module:api/OrderSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new OrderSearchApi. + * @alias module:api/OrderSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Searches for orders. - * The query attribute specifies a complex query that can be used to narrow down the search. - * Note that search fields are mandatory now and no default ones are supported. - * As the old order search version, the new one always uses Search Service too and the for that reason Order - * Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. - * The supported search fields are: - * affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) - * created_by creation_date currency_code customer_email customer_name customer_no export_after - * export_status (String) external_order_no external_order_status last_modified order_no original_order_no - * payment_status (String) replaced_order_no replacement_order_no shipping_status (String) - * status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code - * coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type - * payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number - * shipments.shipping_method_id shipping_orders.shipping_order_number - * The sort order of the retrieved orders could be specified by the \&quot;sorts\&quot; parameter. It is a list of objects - * presenting field name and sort direction (\&quot;asc\&quot; or \&quot;desc\&quot;). - * Custom attributes could be used as search fields and as sort fields too. A prefix \&quot;c_\&quot; has to be added to them. + * Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the \&quot;sorts\&quot; parameter. It is a list of objects presenting field name and sort direction (\&quot;asc\&quot; or \&quot;desc\&quot;). Custom attributes could be used as search fields and as sort fields too. A prefix \&quot;c_\&quot; has to be added to them. * @param {module:models/OrderSearchRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/OrderSearchResult} and HTTP response */ @@ -92,12 +80,17 @@

Source: api/OrderSearchApi.js

throw new Error('Missing the required parameter \'body\' when calling postOrderSearch') } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = OrderSearchResult @@ -110,23 +103,7 @@

Source: api/OrderSearchApi.js

} /** - * Searches for orders. - * The query attribute specifies a complex query that can be used to narrow down the search. - * Note that search fields are mandatory now and no default ones are supported. - * As the old order search version, the new one always uses Search Service too and the for that reason Order - * Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. - * The supported search fields are: - * affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) - * created_by creation_date currency_code customer_email customer_name customer_no export_after - * export_status (String) external_order_no external_order_status last_modified order_no original_order_no - * payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) - * total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id - * holds.type invoices.status order_items.status payment_instruments.credit_card_type - * payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number - * shipments.shipping_method_id shipping_orders.shipping_order_number - * The sort order of the retrieved orders could be specified by the \&quot;sorts\&quot; parameter. It is a list of objects - * presenting field name and sort direction (\&quot;asc\&quot; or \&quot;desc\&quot;). - * Custom attributes could be used as search fields and as sort fields too. A prefix \&quot;c_\&quot; has to be added to them. + * Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the \&quot;sorts\&quot; parameter. It is a list of objects presenting field name and sort direction (\&quot;asc\&quot; or \&quot;desc\&quot;). Custom attributes could be used as search fields and as sort fields too. A prefix \&quot;c_\&quot; has to be added to them. * @param {module:models/OrderSearchRequest} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/OrderSearchResult} */ @@ -136,6 +113,8 @@

Source: api/OrderSearchApi.js

return response_and_data.data }) } + + }
@@ -147,7 +126,7 @@

Source: api/OrderSearchApi.js


diff --git a/docs/api_OrdersApi.js.html b/docs/api_OrdersApi.js.html index f8c1d60..9f1aced 100644 --- a/docs/api_OrdersApi.js.html +++ b/docs/api_OrdersApi.js.html @@ -27,14 +27,14 @@

Source: api/OrdersApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,29 +42,33 @@ 

Source: api/OrdersApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import NotesResult from '../models/NotesResult' import Order from '../models/Order' import PaymentMethodResult from '../models/PaymentMethodResult' /** - * Orders service. - * @module api/OrdersApi - * @version 17.8 - */ +* Orders service. +* @module api/OrdersApi +* @version 20.4 +*/ export default class OrdersApi { /** - * Constructs a new OrdersApi. - * @alias module:api/OrdersApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new OrdersApi. + * @alias module:api/OrdersApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Removes an order note. * @param {String} orderNo the id of the order to be modified @@ -84,15 +88,19 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'noteId\' when calling deleteOrdersByIDNotesByID') } + const pathParams = { order_no: orderNo, note_id: noteId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -117,6 +125,7 @@

Source: api/OrdersApi.js

}) } + /** * Removes a payment instrument of an order. * @param {String} orderNo the order number @@ -136,15 +145,19 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'paymentInstrumentId\' when calling deleteOrdersByIDPaymentInstrumentsByID') } + const pathParams = { order_no: orderNo, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -183,14 +196,18 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByID') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -228,14 +245,18 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByIDNotes') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = NotesResult @@ -273,14 +294,18 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'orderNo\' when calling getOrdersByIDPaymentMethods') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PaymentMethodResult @@ -304,11 +329,9 @@

Source: api/OrdersApi.js

}) } + /** - * Update an order. - * Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) - * plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a - * successful call. Without agent context the channel type will be storefront otherwise callcenter. + * Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter. * @param {String} orderNo the order number * @param {module:models/Order} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response @@ -326,14 +349,18 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'body\' when calling patchOrdersByID') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -346,11 +373,7 @@

Source: api/OrdersApi.js

} /** - * Update an order. - * Considered fields for update are status (same status transitions are possible as for - * dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During - * the call the correct channel type will be assured to be set for the order in a successful call. - * Without agent context the channel type will be storefront otherwise callcenter. + * Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter. * @param {String} orderNo the order number * @param {module:models/Order} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} @@ -362,37 +385,18 @@

Source: api/OrdersApi.js

}) } + /** - * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. - * Details: - * The payment instrument is updated with the provided details. The payment method must be applicable for the - * order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a - * payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument - * is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType - * the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. - * See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment - * instrument (An exception is thrown if none was found). Otherwise the data from the request document - * is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available - * to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is - * resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. - * Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) - * in the scripting API) results in the order being changed to status NEW and prepared for export. + * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ - patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body) { + patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body, opts) { + opts = opts || {} const postBody = body // verify the required parameter 'orderNo' is set @@ -410,15 +414,20 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'body\' when calling patchOrdersByIDPaymentInstrumentsByID') } + const pathParams = { order_no: orderNo, payment_instrument_id: paymentInstrumentId } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + skip_authorization: opts.skipAuthorization + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -431,49 +440,24 @@

Source: api/OrdersApi.js

} /** - * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. - * Details: - * The payment instrument is updated with the provided details. The payment method must be applicable - * for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a - * payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument - * is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the - * customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. - * See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied - * from the customer payment instrument (An exception is thrown if none was found). - * Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if - * available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved - * from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or - * exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in - * the order being changed to status NEW and prepared for export. + * Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {String} paymentInstrumentId the id of the payment instrument to be updated * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ - patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body) { - return this.patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body) + patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body, opts) { + return this.patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body, opts) .then((response_and_data) => { return response_and_data.data }) } + /** - * Submits an order based on a prepared basket. - * Note: If the basket has been submitted using Order Center (considered by it&#39;s client id) the channel - * type will be set to \&quot;Call Center\&quot;. In case another channel type was set by a script - * before submitting the basket, the channel type will be reset to \&quot;Call Center\&quot; and a warning - * will be logged. The only considered value from the request body is basket_id. + * Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it&#39;s client id) the channel type will be set to \&quot;Call Center\&quot;. In case another channel type was set by a script before submitting the basket, the channel type will be reset to \&quot;Call Center\&quot; and a warning will be logged. The only considered value from the request body is basket_id. * @param {module:models/Basket} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ @@ -485,12 +469,17 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'body\' when calling postOrders') } - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -503,11 +492,7 @@

Source: api/OrdersApi.js

} /** - * Submits an order based on a prepared basket. - * Note: If the basket has been submitted using Order Center (considered by it&#39;s client id) the - * channel type will be set to \&quot;Call Center\&quot;. In case another channel type was set by - * a script before submitting the basket, the channel type will be reset to \&quot;Call Center\&quot; - * and a warning will be logged. The only considered value from the request body is basket_id. + * Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it&#39;s client id) the channel type will be set to \&quot;Call Center\&quot;. In case another channel type was set by a script before submitting the basket, the channel type will be reset to \&quot;Call Center\&quot; and a warning will be logged. The only considered value from the request body is basket_id. * @param {module:models/Basket} body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ @@ -518,6 +503,7 @@

Source: api/OrdersApi.js

}) } + /** * Adds a note to an existing order. * @param {String} orderNo The id of the order to be modified. @@ -537,14 +523,18 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'body\' when calling postOrdersByIDNotes') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -569,40 +559,17 @@

Source: api/OrdersApi.js

}) } + /** - * Adds a payment instrument to an order. It is possible either to supply the full payment information - * or only a customer payment instrument id and amount. In case the customer payment instrument - * id was set all the other properties (except amount) are ignored and the payment data is - * resolved from the stored customer payment information. An attempt is made to authorize the order - * by passing it to the authorize or authorizeCreditCard hook. - * Details: - * The payment instrument is added with the provided details or the details from the customer payment - * instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the - * payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an - * dw.order.OrderPaymentInstrument is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument - * contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer - * payment instrument (An exception is thrown if none was found). - * Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to - * dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is - * resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. - * Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results - * in the order being changed to status NEW and prepared for export. + * Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response */ - postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body) { + postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body, opts) { + opts = opts || {} const postBody = body // verify the required parameter 'orderNo' is set @@ -615,14 +582,19 @@

Source: api/OrdersApi.js

throw new Error('Missing the required parameter \'body\' when calling postOrdersByIDPaymentInstruments') } + const pathParams = { order_no: orderNo } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + skip_authorization: opts.skipAuthorization + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = Order @@ -635,44 +607,77 @@

Source: api/OrdersApi.js

} /** - * Adds a payment instrument to an order. It is possible either to supply the full payment information - * or only a customer payment instrument id and amount. In case the customer payment instrument id - * was set all the other properties (except amount) are ignored and the payment data is resolved - * from the stored customer payment information. An attempt is made to authorize the order by passing - * it to the authorize or authorizeCreditCard hook. - * Details: - * The payment instrument is added with the provided details or the details from the customer payment - * instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the - * payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. - * Order authorization: - * To authorize the order one of two possible customization hooks is called and an - * dw.order.OrderPaymentInstrument is passed as an input argument. - * Which hook is called? - * If the request includes a payment_card or the dw.order.OrderPaymentInstrument - * contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. - * See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. - * Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. - * What is the dw.order.OrderPaymentInstrument input argument passed to the hook? - * If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from - * the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request - * document is passed (payment_card or payment_bank_account etc. information). - * Note: the amount and the security_code (cvn) contained in the payment_card data will be - * propagated if available to dw.order.payment.authorizeCreditCard even if the - * dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. - * Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default - * implementation places the order if the order status is CREATED and the authorization amount - * equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) - * results in the order being changed to status NEW and prepared for export. + * Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is &#39;CREDIT_CARD&#39; a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export. * @param {String} orderNo the order number * @param {module:models/OrderPaymentInstrumentRequest} body + * @param {Object} opts Optional parameters + * @param {Boolean} opts.skipAuthorization * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} */ - postOrdersByIDPaymentInstruments(orderNo, body) { - return this.postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body) + postOrdersByIDPaymentInstruments(orderNo, body, opts) { + return this.postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body, opts) .then((response_and_data) => { return response_and_data.data }) } + + + /** + * Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified. + * @param {String} orderNo The order number to assign to the new order. + * @param {module:models/Basket} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Order} and HTTP response + */ + putOrdersByIDWithHttpInfo(orderNo, body) { + const postBody = body + + // verify the required parameter 'orderNo' is set + if (orderNo === undefined || orderNo === null) { + throw new Error('Missing the required parameter \'orderNo\' when calling putOrdersByID') + } + + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error('Missing the required parameter \'body\' when calling putOrdersByID') + } + + + const pathParams = { + order_no: orderNo + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Order + + return this.apiClient.callApi( + '/orders/{order_no}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified. + * @param {String} orderNo The order number to assign to the new order. + * @param {module:models/Basket} body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Order} + */ + putOrdersByID(orderNo, body) { + return this.putOrdersByIDWithHttpInfo(orderNo, body) + .then((response_and_data) => { + return response_and_data.data + }) + } + + }
@@ -684,7 +689,7 @@

Source: api/OrdersApi.js


diff --git a/docs/api_PriceAdjustmentLimitsApi.js.html b/docs/api_PriceAdjustmentLimitsApi.js.html index ae68a65..6742308 100644 --- a/docs/api_PriceAdjustmentLimitsApi.js.html +++ b/docs/api_PriceAdjustmentLimitsApi.js.html @@ -27,14 +27,14 @@

Source: api/PriceAdjustmentLimitsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,42 +42,49 @@ 

Source: api/PriceAdjustmentLimitsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustmentLimits from '../models/PriceAdjustmentLimits' /** - * Price_adjustment_limits service. - * @module api/PriceAdjustmentLimitsApi - * @version 17.8 - */ +* Price_adjustment_limits service. +* @module api/PriceAdjustmentLimitsApi +* @version 20.4 +*/ export default class PriceAdjustmentLimitsApi { /** - * Constructs a new PriceAdjustmentLimitsApi. - * @alias module:api/PriceAdjustmentLimitsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new PriceAdjustmentLimitsApi. + * @alias module:api/PriceAdjustmentLimitsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. - * At least one of the following functional permissions must be assigned to the user to be able to access it: - * Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. + * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/PriceAdjustmentLimits} and HTTP response */ getPriceAdjustmentLimitsWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} - const authNames = ['customers_auth', 'oauth2_application'] + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = PriceAdjustmentLimits @@ -90,9 +97,7 @@

Source: api/PriceAdjustmentLimitsApi.js

} /** - * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. - * At least one of the following functional permissions must be assigned to the user to be able to access it: - * Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. + * Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/PriceAdjustmentLimits} */ getPriceAdjustmentLimits() { @@ -101,6 +106,8 @@

Source: api/PriceAdjustmentLimitsApi.js

return response_and_data.data }) } + + }
@@ -112,7 +119,7 @@

Source: api/PriceAdjustmentLimitsApi.js


diff --git a/docs/api_ProductListsApi.js.html b/docs/api_ProductListsApi.js.html index 20aef7c..b2d2d10 100644 --- a/docs/api_ProductListsApi.js.html +++ b/docs/api_ProductListsApi.js.html @@ -27,14 +27,14 @@

Source: api/ProductListsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,30 +42,34 @@ 

Source: api/ProductListsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' +import PublicProductList from '../models/PublicProductList' import PublicProductListItem from '../models/PublicProductListItem' import PublicProductListItemResult from '../models/PublicProductListItemResult' -import PublicProductList from '../models/PublicProductList' import PublicProductListResult from '../models/PublicProductListResult' /** - * Product_lists service. - * @module api/ProductListsApi - * @version 17.8 - */ +* Product_lists service. +* @module api/ProductListsApi +* @version 20.4 +*/ export default class ProductListsApi { /** - * Constructs a new ProductListsApi. - * @alias module:api/ProductListsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductListsApi. + * @alias module:api/ProductListsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Retrieves all public product lists as defined by the given search term (email, first name, last name). * @param {Object} opts Optional parameters @@ -78,14 +82,18 @@

Source: api/ProductListsApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { email: opts.email, firstname: opts.firstname, lastname: opts.lastname } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -114,6 +122,7 @@

Source: api/ProductListsApi.js

}) } + /** * Retrieves a public product list by id. * @param {String} listId The id of the list. @@ -130,14 +139,17 @@

Source: api/ProductListsApi.js

throw new Error('Missing the required parameter \'listId\' when calling getProductListsByID') } + const pathParams = { list_id: listId } const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -165,6 +177,7 @@

Source: api/ProductListsApi.js

}) } + /** * Retrieves the items of a public product list. * @param {String} listId The id of the list. @@ -181,14 +194,17 @@

Source: api/ProductListsApi.js

throw new Error('Missing the required parameter \'listId\' when calling getProductListsByIDItems') } + const pathParams = { list_id: listId } const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -216,6 +232,7 @@

Source: api/ProductListsApi.js

}) } + /** * Retrieves an item from a public product list. * @param {String} listId The id of the list. @@ -238,6 +255,7 @@

Source: api/ProductListsApi.js

throw new Error('Missing the required parameter \'itemId\' when calling getProductListsByIDItemsByID') } + const pathParams = { list_id: listId, item_id: itemId @@ -245,8 +263,10 @@

Source: api/ProductListsApi.js

const queryParams = { expand: this.apiClient.buildCollectionParam(opts.expand, 'csv') } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -274,6 +294,8 @@

Source: api/ProductListsApi.js

return response_and_data.data }) } + + }
@@ -285,7 +307,7 @@

Source: api/ProductListsApi.js


diff --git a/docs/api_ProductSearchApi.js.html b/docs/api_ProductSearchApi.js.html index 5a4c118..9bf53d6 100644 --- a/docs/api_ProductSearchApi.js.html +++ b/docs/api_ProductSearchApi.js.html @@ -27,14 +27,14 @@

Source: api/ProductSearchApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,48 +42,40 @@ 

Source: api/ProductSearchApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchResult from '../models/ProductSearchResult' /** - * Product_search service. - * @module api/ProductSearchApi - * @version 17.8 - */ +* Product_search service. +* @module api/ProductSearchApi +* @version 20.4 +*/ export default class ProductSearchApi { /** - * Constructs a new ProductSearchApi. - * @alias module:api/ProductSearchApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductSearchApi. + * @alias module:api/ProductSearchApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, - * link and name in the product search hit. Other search hit properties can be added by using - * the expand parameter. The search result contains only products that are online and assigned to site catalog. + * Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are &#39;product&#39;, &#39;master&#39;, &#39;set&#39;, &#39;bundle&#39;, &#39;slicing_group&#39; (deprecated), &#39;variation_group&#39;. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. - * @param {Array.<String>} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, variations) + * @param {Array.<String>} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations) * @param {String} opts.currency The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response @@ -92,9 +84,12 @@

Source: api/ProductSearchApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -102,17 +97,16 @@

Source: api/ProductSearchApi.js

currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -121,29 +115,14 @@

Source: api/ProductSearchApi.js

} /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link and name in the product search hit. Other search hit properties can be - * added by using the expand parameter. The search result contains only products that are online - * and assigned to site catalog. + * Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are &#39;product&#39;, &#39;master&#39;, &#39;set&#39;, &#39;bundle&#39;, &#39;slicing_group&#39; (deprecated), &#39;variation_group&#39;. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. - * @param {Array.<String>} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, - * prices, variations) + * @param {Array.<String>} opts.expand The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations) * @param {String} opts.currency The currency mnemonic specified for price. This parameter is effective only if specified expand parameter value contains prices. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductSearchResult} @@ -155,23 +134,12 @@

Source: api/ProductSearchApi.js

}) } + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, - * link, name and availability information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -182,25 +150,27 @@

Source: api/ProductSearchApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/availability', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -209,22 +179,10 @@

Source: api/ProductSearchApi.js

} /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and availability information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -238,23 +196,12 @@

Source: api/ProductSearchApi.js

}) } + /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and image information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -265,25 +212,27 @@

Source: api/ProductSearchApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -292,22 +241,10 @@

Source: api/ProductSearchApi.js

} /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and image information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -321,23 +258,12 @@

Source: api/ProductSearchApi.js

}) } + /** - * Provides keyword and refinement search functionality for products. Only returns the - * product id, link, name and price information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -349,26 +275,28 @@

Source: api/ProductSearchApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - return this.apiClient.callApi( '/product_search/prices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -377,21 +305,10 @@

Source: api/ProductSearchApi.js

} /** - * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -406,50 +323,104 @@

Source: api/ProductSearchApi.js

}) } + /** - * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @param {String} opts.locale The locale context. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response */ - getProductSearchVariationsWithHttpInfo(opts) { + getProductSearchRepresentedProductsWithHttpInfo(opts) { opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult - // Update queryParams with parsed refinements - Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( + '/product_search/represented_products', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product. + * @param {Object} opts Optional parameters + * @param {String} opts.q The query phrase to search for. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {String} opts.sort The id of the sorting option to sort the search hits. + * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. + * @param {Number} opts.count The maximum number of instances per request. Default value is 25. + * @param {String} opts.locale The locale context. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/ProductSearchResult} + */ + getProductSearchRepresentedProducts(opts) { + return this.getProductSearchRepresentedProductsWithHttpInfo(opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product. + * @param {Object} opts Optional parameters + * @param {String} opts.q The query phrase to search for. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. + * @param {String} opts.sort The id of the sorting option to sort the search hits. + * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. + * @param {Number} opts.count The maximum number of instances per request. Default value is 25. + * @param {String} opts.locale The locale context. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/ProductSearchResult} and HTTP response + */ + getProductSearchVariationsWithHttpInfo(opts) { + opts = opts || {} + const postBody = null + + + const pathParams = { + } + const queryParams = { + q: opts.q, + refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), + sort: opts.sort, + start: opts.start, + count: opts.count, + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = ProductSearchResult return this.apiClient.callApi( '/product_search/variations', 'GET', @@ -459,21 +430,10 @@

Source: api/ProductSearchApi.js

} /** - * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. + * Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product. * @param {Object} opts Optional parameters * @param {String} opts.q The query phrase to search for. - * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and - * value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and - * can be provided by separating them using a pipe (URL - * encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine - * parameters can be provided by adding an underscore in combination with an integer counter right behind - * the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The - * following system refinement attribute ids are supported: - * cgid: Allows to refine per single category id. Multiple category ids are not supported. - * price: Allows to refine per single price range. Multiple price ranges are not supported. - * pmid: Allows to refine per promotion id(s). - * orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple - * refinement values are not supported. + * @param {Array.<String>} opts.refine Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by &#39;&#x3D;&#39;. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded &#x3D; \&quot;|\&quot;). Value ranges can be specified like this: refine&#x3D;price&#x3D;(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1&#x3D;c_refinementColor&#x3D;red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported. * @param {String} opts.sort The id of the sorting option to sort the search hits. * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. @@ -486,6 +446,8 @@

Source: api/ProductSearchApi.js

return response_and_data.data }) } + + }
@@ -497,7 +459,7 @@

Source: api/ProductSearchApi.js


diff --git a/docs/api_ProductsApi.js.html b/docs/api_ProductsApi.js.html index c9cab05..972910c 100644 --- a/docs/api_ProductsApi.js.html +++ b/docs/api_ProductsApi.js.html @@ -27,14 +27,14 @@

Source: api/ProductsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,35 +42,35 @@ 

Source: api/ProductsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from '../models/Product' import ProductResult from '../models/ProductResult' import ShippingMethodResult from '../models/ShippingMethodResult' /** - * Products service. - * @module api/ProductsApi - * @version 17.8 - */ +* Products service. +* @module api/ProductsApi +* @version 20.4 +*/ export default class ProductsApi { /** - * Constructs a new ProductsApi. - * @alias module:api/ProductsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new ProductsApi. + * @alias module:api/ProductsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * To access single products resource, you construct a URL using the template shown below. - * This template requires you to specify an Id (typically a SKU) for a product. In response, the - * server returns a corresponding Product document, provided the product is online and assigned - * to site catalog. The document contains variation attributes (including values) and the variant - * matrix; this data is provided for both the master and for the variant. + * To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant. * @param {String} id The id of the requested product. * @param {Object} opts Optional parameters * @param {Array.<String>} opts.expand @@ -89,6 +89,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByID') } + const pathParams = { id } @@ -99,8 +100,10 @@

Source: api/ProductsApi.js

locale: opts.locale, all_images: opts.allImages } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -115,11 +118,7 @@

Source: api/ProductsApi.js

} /** - * To access single products resource, you construct a URL using the template shown below. - * This template requires you to specify an Id (typically a SKU) for a product. In response, - * the server returns a corresponding Product document, provided the product is online and - * assigned to site catalog. The document contains variation attributes (including values) - * and the variant matrix; this data is provided for both the master and for the variant. + * To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant. * @param {String} id The id of the requested product. * @param {Object} opts Optional parameters * @param {Array.<String>} opts.expand @@ -136,6 +135,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product availability information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -153,6 +153,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDAvailability') } + const pathParams = { id } @@ -160,8 +161,10 @@

Source: api/ProductsApi.js

inventory_ids: this.apiClient.buildCollectionParam(opts.inventoryIds, 'csv'), locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -190,6 +193,7 @@

Source: api/ProductsApi.js

}) } + /** * Access bundled product information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -206,14 +210,17 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDBundledProducts') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -241,6 +248,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product image information of products that are online and assigned to site catalog. Filter the result by view type and variation values. * @param {String} id The requested product id. @@ -260,6 +268,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDImages') } + const pathParams = { id } @@ -269,8 +278,10 @@

Source: api/ProductsApi.js

variation_attribute: opts.variationAttribute, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -301,6 +312,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product link information of products that are online and assigned to site catalog. Filter the result by link type and link direction. * @param {String} id The requested product id. @@ -319,6 +331,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDLinks') } + const pathParams = { id } @@ -327,8 +340,10 @@

Source: api/ProductsApi.js

direction: opts.direction, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -375,14 +390,17 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDOptions') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -410,6 +428,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product price information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -426,14 +445,17 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDPrices') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -461,6 +483,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product promotion information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -478,6 +501,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDPromotions') } + const pathParams = { id } @@ -485,8 +509,10 @@

Source: api/ProductsApi.js

currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -515,6 +541,120 @@

Source: api/ProductsApi.js

}) } + + /** + * Access product recommendation information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {Number} opts.recommendationType + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Product} and HTTP response + */ + getProductsByIDRecommendationsWithHttpInfo(id, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error('Missing the required parameter \'id\' when calling getProductsByIDRecommendations') + } + + + const pathParams = { + id + } + const queryParams = { + recommendation_type: opts.recommendationType, + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Product + + return this.apiClient.callApi( + '/products/{id}/recommendations', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Access product recommendation information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {Number} opts.recommendationType + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Product} + */ + getProductsByIDRecommendations(id, opts) { + return this.getProductsByIDRecommendationsWithHttpInfo(id, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + + /** + * Access product set information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Product} and HTTP response + */ + getProductsByIDSetProductsWithHttpInfo(id, opts) { + opts = opts || {} + const postBody = null + + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error('Missing the required parameter \'id\' when calling getProductsByIDSetProducts') + } + + + const pathParams = { + id + } + const queryParams = { + locale: opts.locale + } + const headerParams = { + } + const formParams = { + } + + const authNames = ['client_id', 'customers_auth'] + const contentTypes = ['application/json', 'text/xml', 'application/xml'] + const accepts = ['application/json', 'text/xml', 'application/xml'] + const returnType = Product + + return this.apiClient.callApi( + '/products/{id}/set_products', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType + ) + } + + /** + * Access product set information of products that are online and assigned to site catalog. + * @param {String} id The requested product id. + * @param {Object} opts Optional parameters + * @param {String} opts.locale + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/Product} + */ + getProductsByIDSetProducts(id, opts) { + return this.getProductsByIDSetProductsWithHttpInfo(id, opts) + .then((response_and_data) => { + return response_and_data.data + }) + } + + /** * Retrieves the applicable shipping methods for a certain product. * @param {String} id the requested product id @@ -528,14 +668,18 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDShippingMethods') } + const pathParams = { id } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } - const authNames = ['customers_auth', 'oauth2_application'] + const authNames = ['client_id', 'customers_auth', 'oauth2_application'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ShippingMethodResult @@ -559,6 +703,7 @@

Source: api/ProductsApi.js

}) } + /** * Access product variation information of products that are online and assigned to site catalog. * @param {String} id The requested product id. @@ -575,14 +720,17 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'id\' when calling getProductsByIDVariations') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -610,6 +758,7 @@

Source: api/ProductsApi.js

}) } + /** * @param {Array.<String>} ids * @param {Object} opts Optional parameters @@ -629,6 +778,7 @@

Source: api/ProductsApi.js

throw new Error('Missing the required parameter \'ids\' when calling getProductsByIDs') } + const pathParams = { ids } @@ -639,8 +789,10 @@

Source: api/ProductsApi.js

locale: opts.locale, all_images: opts.allImages } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -670,6 +822,8 @@

Source: api/ProductsApi.js

return response_and_data.data }) } + + }
@@ -681,7 +835,7 @@

Source: api/ProductsApi.js


diff --git a/docs/api_PromotionsApi.js.html b/docs/api_PromotionsApi.js.html index cbdf72a..36dbb25 100644 --- a/docs/api_PromotionsApi.js.html +++ b/docs/api_PromotionsApi.js.html @@ -27,14 +27,14 @@

Source: api/PromotionsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,35 +42,34 @@ 

Source: api/PromotionsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Promotion from '../models/Promotion' import PromotionResult from '../models/PromotionResult' /** - * Promotions service. - * @module api/PromotionsApi - * @version 17.8 - */ +* Promotions service. +* @module api/PromotionsApi +* @version 20.4 +*/ export default class PromotionsApi { /** - * Constructs a new PromotionsApi. - * @alias module:api/PromotionsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new PromotionsApi. + * @alias module:api/PromotionsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified - * filter criteria. In the request URL, you must provide a campaign_id parameter, and you can - * optionally specify a date range by providing start_date and end_date parameters. Both parameters - * are required to specify a date range: omitting one causes the server to return a - * MissingParameterException fault. Each request returns only enabled promotions; the - * server does not consider promotion qualifiers or schedules. + * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules. * @param {String} campaignId Find the promotions assigned to this campaign (mandatory) * @param {Object} opts Optional parameters * @param {String} opts.startDate The start date of the promotion in ISO8601 date time format: yyyy-MM-dd&#39;T&#39;HH:mmZ @@ -87,15 +86,19 @@

Source: api/PromotionsApi.js

throw new Error('Missing the required parameter \'campaignId\' when calling getPromotions') } - const pathParams = {} + + const pathParams = { + } const queryParams = { campaign_id: campaignId, start_date: opts.startDate, end_date: opts.endDate, currency: opts.currency } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -110,12 +113,7 @@

Source: api/PromotionsApi.js

} /** - * Handles get promotion by filter criteria Returns an array of enabled promotions matching - * specified filter criteria. In the request URL, you must provide a campaign_id parameter, - * and you can optionally specify a date range by providing start_date and end_date parameters. - * Both parameters are required to specify a date range: omitting one causes the server - * to return a MissingParameterException fault. Each request returns only enabled promotions; - * the server does not consider promotion qualifiers or schedules. + * Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules. * @param {String} campaignId Find the promotions assigned to this campaign (mandatory) * @param {Object} opts Optional parameters * @param {String} opts.startDate The start date of the promotion in ISO8601 date time format: yyyy-MM-dd&#39;T&#39;HH:mmZ @@ -130,9 +128,9 @@

Source: api/PromotionsApi.js

}) } + /** - * Returns an enabled promotion using a specified id. Each request returns a response only - * for an enabled promotion; the server does not consider promotion qualifiers or schedules. + * Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules. * @param {String} id The id of the requested promotion. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -147,14 +145,17 @@

Source: api/PromotionsApi.js

throw new Error('Missing the required parameter \'id\' when calling getPromotionsByID') } + const pathParams = { id } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -169,8 +170,7 @@

Source: api/PromotionsApi.js

} /** - * Returns an enabled promotion using a specified id. Each request returns a response - * only for an enabled promotion; the server does not consider promotion qualifiers or schedules. + * Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules. * @param {String} id The id of the requested promotion. * @param {Object} opts Optional parameters * @param {String} opts.locale @@ -183,6 +183,7 @@

Source: api/PromotionsApi.js

}) } + /** * @param {Array.<String>} ids * @param {Object} opts Optional parameters @@ -198,14 +199,17 @@

Source: api/PromotionsApi.js

throw new Error('Missing the required parameter \'ids\' when calling getPromotionsByIDs') } + const pathParams = { ids } const queryParams = { locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -231,6 +235,8 @@

Source: api/PromotionsApi.js

return response_and_data.data }) } + + }
@@ -242,7 +248,7 @@

Source: api/PromotionsApi.js


diff --git a/docs/api_SearchSuggestionApi.js.html b/docs/api_SearchSuggestionApi.js.html index 2617076..cfa6f55 100644 --- a/docs/api_SearchSuggestionApi.js.html +++ b/docs/api_SearchSuggestionApi.js.html @@ -27,14 +27,14 @@

Source: api/SearchSuggestionApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,31 +42,33 @@ 

Source: api/SearchSuggestionApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestionResult from '../models/SuggestionResult' /** - * Search_suggestion service. - * @module api/SearchSuggestionApi - * @version 17.8 - */ +* Search_suggestion service. +* @module api/SearchSuggestionApi +* @version 20.4 +*/ export default class SearchSuggestionApi { /** - * Constructs a new SearchSuggestionApi. - * @alias module:api/SearchSuggestionApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SearchSuggestionApi. + * @alias module:api/SearchSuggestionApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Provides keyword search functionality for products, categories, content, brands and custom - * suggestions. Returns suggested products, suggested categories, suggested content, suggested - * brands and custom suggestions for the given search phrase. + * Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase. * @param {String} q The query phrase to search for. * @param {Object} opts Optional parameters * @param {Number} opts.count The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions). @@ -83,15 +85,19 @@

Source: api/SearchSuggestionApi.js

throw new Error('Missing the required parameter \'q\' when calling getSearchSuggestion') } - const pathParams = {} + + const pathParams = { + } const queryParams = { q, count: opts.count, currency: opts.currency, locale: opts.locale } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -106,9 +112,7 @@

Source: api/SearchSuggestionApi.js

} /** - * Provides keyword search functionality for products, categories, content, brands and custom - * suggestions. Returns suggested products, suggested categories, suggested content, suggested - * brands and custom suggestions for the given search phrase. + * Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase. * @param {String} q The query phrase to search for. * @param {Object} opts Optional parameters * @param {Number} opts.count The maximum number of suggestions per request. Default value is 5. This affects all types of suggestions (category, product, content, brand, custom suggestions). @@ -122,6 +126,8 @@

Source: api/SearchSuggestionApi.js

return response_and_data.data }) } + + }
@@ -133,7 +139,7 @@

Source: api/SearchSuggestionApi.js


diff --git a/docs/api_SessionsApi.js.html b/docs/api_SessionsApi.js.html index 4c41f6e..227be82 100644 --- a/docs/api_SessionsApi.js.html +++ b/docs/api_SessionsApi.js.html @@ -27,14 +27,14 @@

Source: api/SessionsApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,44 +42,46 @@ 

Source: api/SessionsApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' /** - * Sessions service. - * @module api/SessionsApi - * @version 17.8 - */ +* Sessions service. +* @module api/SessionsApi +* @version 20.4 +*/ export default class SessionsApi { /** - * Constructs a new SessionsApi. - * @alias module:api/SessionsApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SessionsApi. + * @alias module:api/SessionsApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * Exchanges a JWT token into a new session. If the given token is valid, creates a new session, - * which is associated with the authenticated or anonymous customer. All Set-Cookie headers for - * handling the session are applied on the response. Please note that this resource always - * creates a new session with the consequence that you have no session basket after you do that. - * Once you created a session from a JWT token you can use this session and stateless OCAPI calls - * using the JWT in parallel. There is no additional need to call the bridging resources again. - * When a session ID is sent in with the request, the specified session is ignored. Only the - * incoming JWT token is used to create a new session. + * Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -&gt; Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -&gt; Sensitive data is accessible because the basket is marked as secured for this session * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ postSessionsWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -94,14 +96,7 @@

Source: api/SessionsApi.js

} /** - * Exchanges a JWT token into a new session. If the given token is valid, creates a new session, - * which is associated with the authenticated or anonymous customer. All Set-Cookie headers - * for handling the session are applied on the response. Please note that this resource - * always creates a new session with the consequence that you have no session basket after you - * do that. Once you created a session from a JWT token you can use this session and stateless - * OCAPI calls using the JWT in parallel. There is no additional need to call the bridging - * resources again. When a session ID is sent in with the request, the specified session is - * ignored. Only the incoming JWT token is used to create a new session. + * Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -&gt; Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -&gt; Sensitive data is accessible because the basket is marked as secured for this session * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ postSessions() { @@ -110,6 +105,8 @@

Source: api/SessionsApi.js

return response_and_data.data }) } + + }
@@ -121,7 +118,7 @@

Source: api/SessionsApi.js


diff --git a/docs/api_SiteApi.js.html b/docs/api_SiteApi.js.html index 850b5d6..e3cf706 100644 --- a/docs/api_SiteApi.js.html +++ b/docs/api_SiteApi.js.html @@ -27,14 +27,14 @@

Source: api/SiteApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,27 +42,31 @@ 

Source: api/SiteApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Site from '../models/Site' /** - * Site service. - * @module api/SiteApi - * @version 17.8 - */ +* Site service. +* @module api/SiteApi +* @version 20.4 +*/ export default class SiteApi { /** - * Constructs a new SiteApi. - * @alias module:api/SiteApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new SiteApi. + * @alias module:api/SiteApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** * Access site information, like site status and site content URLs. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/Site} and HTTP response @@ -70,10 +74,15 @@

Source: api/SiteApi.js

getSiteWithHttpInfo() { const postBody = null - const pathParams = {} - const queryParams = {} - const headerParams = {} - const formParams = {} + + const pathParams = { + } + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -97,6 +106,8 @@

Source: api/SiteApi.js

return response_and_data.data }) } + + }
@@ -108,7 +119,7 @@

Source: api/SiteApi.js


diff --git a/docs/api_StoresApi.js.html b/docs/api_StoresApi.js.html index b76f4ea..5fe9c22 100644 --- a/docs/api_StoresApi.js.html +++ b/docs/api_StoresApi.js.html @@ -27,14 +27,14 @@

Source: api/StoresApi.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -42,49 +42,41 @@ 

Source: api/StoresApi.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Store from '../models/Store' import StoreResult from '../models/StoreResult' /** - * Stores service. - * @module api/StoresApi - * @version 17.8 - */ +* Stores service. +* @module api/StoresApi +* @version 20.4 +*/ export default class StoresApi { /** - * Constructs a new StoresApi. - * @alias module:api/StoresApi - * @class - * @param {module:ApiClient} apiClient Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ + * Constructs a new StoresApi. + * @alias module:api/StoresApi + * @class + * @param {module:ApiClient} apiClient Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ constructor(apiClient) { this.apiClient = apiClient || ApiClient.instance } + + /** - * This resource retrieves a list of stores, for the given site, that are within a configured - * distance of a location on the earth. The stores and their distance from the specified location are returned - * as a result set of Store objects. The distance is interpreted either in miles or kilometers depending - * on the \&quot;distance_unit\&quot; input parameter. The location can be specified by either directly - * providing a latitude/longitude coordinate pair or by providing a country and a postal code: - * If a postal code is passed, the resource looks in the system&#39;s geolocation mappings to find - * the coordinates for this postal code. If no matching geolocation is found, the resource will - * return an empty list of stores. If coordinates are passed, the values for country and postal - * code are ignored. + * This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system&#39;s geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored. * @param {Object} opts Optional parameters - * @param {Number} opts.latitude The geo coordinate latitude to search for stores - * (value range -90.00 .. 90.00). - * @param {Number} opts.longitude The geo coordinate longitude to search for stores - * (value range -180.00 .. 180.00). - * @param {String} opts.countryCode The two letter ISO country code e.g. \&quot;US\&quot;. - * @param {String} opts.postalCode The postal code e.g. \&quot;01801\&quot;. - * @param {String} opts.distanceUnit The distance unit. Supported values are \&quot;mi\&quot; and \&quot;km\&quot; - * (for miles and kilometers respectively, default is \&quot;km\&quot;). - * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be - * searched for (default is half of the earth&#39;s perimeter). + * @param {Number} opts.latitude The geo coordinate latitude to search for stores (value range -90.00 .. 90.00). + * @param {Number} opts.longitude The geo coordinate longitude to search for stores (value range -180.00 .. 180.00). + * @param {String} opts.countryCode The two letter ISO country code e.g. \\\&quot;US\\\&quot;. + * @param {String} opts.postalCode The postal code e.g. \\\&quot;01801\\\&quot;. + * @param {String} opts.distanceUnit The distance unit. Supported values are \\\&quot;mi\\\&quot; and \\\&quot;km\\\&quot; (for miles and kilometers respectively, default is \\\&quot;km\\\&quot;). + * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be searched for (default is half of the earth&#39;s perimeter). * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/StoreResult} and HTTP response @@ -93,7 +85,9 @@

Source: api/StoresApi.js

opts = opts || {} const postBody = null - const pathParams = {} + + const pathParams = { + } const queryParams = { latitude: opts.latitude, longitude: opts.longitude, @@ -104,8 +98,10 @@

Source: api/StoresApi.js

start: opts.start, count: opts.count } - const headerParams = {} - const formParams = {} + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -120,26 +116,14 @@

Source: api/StoresApi.js

} /** - * This resource retrieves a list of stores, for the given site, that are within a configured distance - * of a location on the earth. The stores and their distance from the specified location are - * returned as a result set of Store objects. The distance is interpreted either in miles or - * kilometers depending on the \&quot;distance_unit\&quot; input parameter. The location can - * be specified by either directly providing a latitude/longitude coordinate pair or by providing - * a country and a postal code: If a postal code is passed, the resource looks in the - * system&#39;s geolocation mappings to find the coordinates for this postal code. If no - * matching geolocation is found, the resource will return an empty list of stores. If coordinates - * are passed, the values for country and postal code are ignored. + * This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system&#39;s geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored. * @param {Object} opts Optional parameters - * @param {Number} opts.latitude The geo coordinate latitude to search for stores - * (value range -90.00 .. 90.00). - * @param {Number} opts.longitude The geo coordinate longitude to search for stores - * (value range -180.00 .. 180.00). - * @param {String} opts.countryCode The two letter ISO country code e.g. \&quot;US\&quot;. - * @param {String} opts.postalCode The postal code e.g. \&quot;01801\&quot;. - * @param {String} opts.distanceUnit The distance unit. Supported values are \&quot;mi\&quot; and \&quot;km\&quot; - * (for miles and kilometers respectively, default is \&quot;km\&quot;). - * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be - * searched for (default is half of the earth&#39;s perimeter). + * @param {Number} opts.latitude The geo coordinate latitude to search for stores (value range -90.00 .. 90.00). + * @param {Number} opts.longitude The geo coordinate longitude to search for stores (value range -180.00 .. 180.00). + * @param {String} opts.countryCode The two letter ISO country code e.g. \\\&quot;US\\\&quot;. + * @param {String} opts.postalCode The postal code e.g. \\\&quot;01801\\\&quot;. + * @param {String} opts.distanceUnit The distance unit. Supported values are \\\&quot;mi\\\&quot; and \\\&quot;km\\\&quot; (for miles and kilometers respectively, default is \\\&quot;km\\\&quot;). + * @param {Number} opts.maxDistance The area (radius) in distancUnit where stores will be searched for (default is half of the earth&#39;s perimeter). * @param {Number} opts.start The result set index to return the first instance for. Default value is 0. * @param {Number} opts.count The maximum number of instances per request. Default value is 25. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:models/StoreResult} @@ -151,6 +135,7 @@

Source: api/StoresApi.js

}) } + /** * To access a store, you construct a URL using the template shown below. This template requires you to specify a store id. In the response, the server returns a corresponding store document. * @param {String} id The id of the requested store. @@ -164,12 +149,16 @@

Source: api/StoresApi.js

throw new Error('Missing the required parameter \'id\' when calling getStoresByID') } + const pathParams = { id } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -195,6 +184,7 @@

Source: api/StoresApi.js

}) } + /** * @param {Array.<String>} ids * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:models/StoreResult} and HTTP response @@ -207,12 +197,16 @@

Source: api/StoresApi.js

throw new Error('Missing the required parameter \'ids\' when calling getStoresByIDs') } + const pathParams = { ids } - const queryParams = {} - const headerParams = {} - const formParams = {} + const queryParams = { + } + const headerParams = { + } + const formParams = { + } const authNames = ['client_id', 'customers_auth'] const contentTypes = ['application/json', 'text/xml', 'application/xml'] @@ -236,6 +230,8 @@

Source: api/StoresApi.js

return response_and_data.data }) } + + }
@@ -247,7 +243,7 @@

Source: api/StoresApi.js


diff --git a/docs/index.html b/docs/index.html index 0779d0c..c4666cf 100644 --- a/docs/index.html +++ b/docs/index.html @@ -58,7 +58,7 @@

🙌 Introduction

Salesforce Commerce Cloud Open Commerce API (OCAPI) for Node and browsers.

    -
  • API version: 17.8
  • +
  • API version: 20.4

⚒ Installation

This library is distributed on npm, in order to add it as a dependency, run the following command:

@@ -100,7 +100,7 @@

🔌 Configuration

import ShopApi from 'commercecloud-ocapi-client'
 
 const config = {
-  basePath: 'https://localhost/s/siteId/dw/shop/v17_8',
+  basePath: 'https://localhost/s/siteId/dw/shop/v20_4',
   defaultHeaders: {}, // HTTP header for all requests
   timeout: 60000, // Request timeout in milliseconds
   cache: true, // If set to false an additional timestamp parameter is added to all API GET calls to prevent browser caching
@@ -135,7 +135,7 @@ 

✅ Testing

Example:

{
   "clientId": "5640cc6b-f5e9-466e-9134-9853e9f9db93",
-  "baseUrl": "https://localhost/s/siteId/dw/shop/v17_8"
+  "baseUrl": "https://localhost/s/siteId/dw/shop/v20_4"
 }
 

Then run the following command:

@@ -184,7 +184,7 @@

🏅 Contributors


diff --git a/docs/index.js.html b/docs/index.js.html index 8684cf1..301a429 100644 --- a/docs/index.js.html +++ b/docs/index.js.html @@ -26,15 +26,11 @@

Source: index.js

-
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
-/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-
-/**
+            
/**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,10 +39,14 @@ 

Source: index.js

* */ + import ApiClient from './ApiClient' +import ApproachingDiscount from './models/ApproachingDiscount' +import ApproachingDiscountResult from './models/ApproachingDiscountResult' import AuthRequest from './models/AuthRequest' import Basket from './models/Basket' import BasketPaymentInstrumentRequest from './models/BasketPaymentInstrumentRequest' +import BasketReference from './models/BasketReference' import BasketsResult from './models/BasketsResult' import BonusDiscountLineItem from './models/BonusDiscountLineItem' import BoolFilter from './models/BoolFilter' @@ -54,51 +54,54 @@

Source: index.js

import BundledProduct from './models/BundledProduct' import Category from './models/Category' import CategoryResult from './models/CategoryResult' +import Content from './models/Content' import ContentFolder from './models/ContentFolder' import ContentFolderResult from './models/ContentFolderResult' -import Content from './models/Content' import ContentResult from './models/ContentResult' import ContentSearchRefinement from './models/ContentSearchRefinement' import ContentSearchRefinementValue from './models/ContentSearchRefinementValue' import ContentSearchResult from './models/ContentSearchResult' import CouponItem from './models/CouponItem' import CustomObject from './models/CustomObject' -import CustomerAddressLink from './models/CustomerAddressLink' +import Customer from './models/Customer' import CustomerAddress from './models/CustomerAddress' +import CustomerAddressLink from './models/CustomerAddressLink' import CustomerAddressResult from './models/CustomerAddressResult' import CustomerInfo from './models/CustomerInfo' -import Customer from './models/Customer' import CustomerOrderResult from './models/CustomerOrderResult' import CustomerPaymentCardRequest from './models/CustomerPaymentCardRequest' import CustomerPaymentInstrument from './models/CustomerPaymentInstrument' import CustomerPaymentInstrumentRequest from './models/CustomerPaymentInstrumentRequest' import CustomerPaymentInstrumentResult from './models/CustomerPaymentInstrumentResult' -import CustomerProductListItemLink from './models/CustomerProductListItemLink' +import CustomerProductList from './models/CustomerProductList' import CustomerProductListItem from './models/CustomerProductListItem' +import CustomerProductListItemLink from './models/CustomerProductListItemLink' +import CustomerProductListItemPurchase from './models/CustomerProductListItemPurchase' +import CustomerProductListItemPurchaseResult from './models/CustomerProductListItemPurchaseResult' import CustomerProductListItemResult from './models/CustomerProductListItemResult' -import CustomerProductList from './models/CustomerProductList' import CustomerProductListRegistrant from './models/CustomerProductListRegistrant' import CustomerProductListResult from './models/CustomerProductListResult' import CustomerRegistration from './models/CustomerRegistration' import Discount from './models/Discount' +import DiscountRequest from './models/DiscountRequest' import Fault from './models/Fault' import FilteredQuery from './models/FilteredQuery' -import GiftCertificateItem from './models/GiftCertificateItem' import GiftCertificate from './models/GiftCertificate' +import GiftCertificateItem from './models/GiftCertificateItem' import GiftCertificateRequest from './models/GiftCertificateRequest' -import ImageGroup from './models/ImageGroup' import Image from './models/Image' +import ImageGroup from './models/ImageGroup' import Inventory from './models/Inventory' import Locale from './models/Locale' import Master from './models/Master' import NestedQuery from './models/NestedQuery' import Note from './models/Note' import NotesResult from './models/NotesResult' -import OptionItem from './models/OptionItem' import Option from './models/Option' +import OptionItem from './models/OptionItem' import OptionValue from './models/OptionValue' -import OrderAddress from './models/OrderAddress' import Order from './models/Order' +import OrderAddress from './models/OrderAddress' import OrderPaymentCardRequest from './models/OrderPaymentCardRequest' import OrderPaymentInstrument from './models/OrderPaymentInstrument' import OrderPaymentInstrumentRequest from './models/OrderPaymentInstrumentRequest' @@ -113,9 +116,11 @@

Source: index.js

import PaymentCardSpec from './models/PaymentCardSpec' import PaymentMethod from './models/PaymentMethod' import PaymentMethodResult from './models/PaymentMethodResult' +import PriceAdjustment from './models/PriceAdjustment' import PriceAdjustmentLimit from './models/PriceAdjustmentLimit' import PriceAdjustmentLimits from './models/PriceAdjustmentLimits' -import PriceAdjustment from './models/PriceAdjustment' +import PriceAdjustmentRequest from './models/PriceAdjustmentRequest' +import Product from './models/Product' import ProductDetailsLink from './models/ProductDetailsLink' import ProductItem from './models/ProductItem' import ProductLink from './models/ProductLink' @@ -124,8 +129,9 @@

Source: index.js

import ProductListLink from './models/ProductListLink' import ProductListRegistrant from './models/ProductListRegistrant' import ProductListShippingAddress from './models/ProductListShippingAddress' -import Product from './models/Product' import ProductPromotion from './models/ProductPromotion' +import ProductRecommendationsResult from './models/ProductRecommendationsResult' +import ProductRef from './models/ProductRef' import ProductResult from './models/ProductResult' import ProductSearchHit from './models/ProductSearchHit' import ProductSearchRefinement from './models/ProductSearchRefinement' @@ -135,17 +141,21 @@

Source: index.js

import ProductSimpleLink from './models/ProductSimpleLink' import ProductType from './models/ProductType' import Promotion from './models/Promotion' +import PromotionLink from './models/PromotionLink' import PromotionResult from './models/PromotionResult' +import PublicProductList from './models/PublicProductList' import PublicProductListItem from './models/PublicProductListItem' import PublicProductListItemResult from './models/PublicProductListItemResult' import PublicProductListLink from './models/PublicProductListLink' -import PublicProductList from './models/PublicProductList' import PublicProductListResult from './models/PublicProductListResult' import QueryFilter from './models/QueryFilter' import Range2Filter from './models/Range2Filter' import RangeFilter from './models/RangeFilter' import Recommendation from './models/Recommendation' import RecommendationType from './models/RecommendationType' +import ResetPasswordRequest from './models/ResetPasswordRequest' +import ResetPasswordTokenRequest from './models/ResetPasswordTokenRequest' +import ResetPasswordTokenResult from './models/ResetPasswordTokenResult' import ResultPage from './models/ResultPage' import Shipment from './models/Shipment' import ShippingItem from './models/ShippingItem' @@ -169,11 +179,12 @@

Source: index.js

import TermFilter from './models/TermFilter' import TermQuery from './models/TermQuery' import TextQuery from './models/TextQuery' +import TrustedSystemAuthRequest from './models/TrustedSystemAuthRequest' import Variant from './models/Variant' import VariationAttribute from './models/VariationAttribute' import VariationAttributeValue from './models/VariationAttributeValue' import VariationGroup from './models/VariationGroup' - +import AiApi from './api/AiApi' import BasketsApi from './api/BasketsApi' import CategoriesApi from './api/CategoriesApi' import ContentApi from './api/ContentApi' @@ -201,10 +212,10 @@

Source: index.js

* <p> * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: * <pre> -* var ShopApi = require('index') // See note below*. +* var ShopApi = require('index'); // See note below*. * var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use. * var yyyModel = new ShopApi.Yyy(); // Construct a model instance. -* yyyModel.someProperty = 'someValue' +* yyyModel.someProperty = 'someValue'; * ... * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * ... @@ -217,14 +228,14 @@

Source: index.js

* <pre> * var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use. * var yyy = new ShopApi.Yyy(); // Construct a model instance. -* yyyModel.someProperty = 'someValue' +* yyyModel.someProperty = 'someValue'; * ... * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service. * ... * </pre> * </p> * @module index -* @version 17.8 +* @version 20.4 */ export default { /** @@ -233,228 +244,264 @@

Source: index.js

*/ ApiClient, + /** + * The ApproachingDiscount model constructor. + * @property {module:models/ApproachingDiscount} + */ + ApproachingDiscount, + + /** + * The ApproachingDiscountResult model constructor. + * @property {module:models/ApproachingDiscountResult} + */ + ApproachingDiscountResult, + /** * The AuthRequest model constructor. - * @property {module:models/AuthRequestModel} + * @property {module:models/AuthRequest} */ AuthRequest, /** * The Basket model constructor. - * @property {module:models/BasketModel} + * @property {module:models/Basket} */ Basket, /** * The BasketPaymentInstrumentRequest model constructor. - * @property {module:models/BasketPaymentInstrumentRequestModel} + * @property {module:models/BasketPaymentInstrumentRequest} */ BasketPaymentInstrumentRequest, + /** + * The BasketReference model constructor. + * @property {module:models/BasketReference} + */ + BasketReference, + /** * The BasketsResult model constructor. - * @property {module:models/BasketsResultModel} + * @property {module:models/BasketsResult} */ BasketsResult, /** * The BonusDiscountLineItem model constructor. - * @property {module:models/BonusDiscountLineItemModel} + * @property {module:models/BonusDiscountLineItem} */ BonusDiscountLineItem, /** * The BoolFilter model constructor. - * @property {module:models/BoolFilterModel} + * @property {module:models/BoolFilter} */ BoolFilter, /** * The BoolQuery model constructor. - * @property {module:models/BoolQueryModel} + * @property {module:models/BoolQuery} */ BoolQuery, /** * The BundledProduct model constructor. - * @property {module:models/BundledProductModel} + * @property {module:models/BundledProduct} */ BundledProduct, /** * The Category model constructor. - * @property {module:models/CategoryModel} + * @property {module:models/Category} */ Category, /** * The CategoryResult model constructor. - * @property {module:models/CategoryResultModel} + * @property {module:models/CategoryResult} */ CategoryResult, + /** + * The Content model constructor. + * @property {module:models/Content} + */ + Content, + /** * The ContentFolder model constructor. - * @property {module:models/ContentFolderModel} + * @property {module:models/ContentFolder} */ ContentFolder, /** * The ContentFolderResult model constructor. - * @property {module:models/ContentFolderResultModel} + * @property {module:models/ContentFolderResult} */ ContentFolderResult, - /** - * The Content model constructor. - * @property {module:models/ContentModel} - */ - Content, - /** * The ContentResult model constructor. - * @property {module:models/ContentResultModel} + * @property {module:models/ContentResult} */ ContentResult, /** * The ContentSearchRefinement model constructor. - * @property {module:models/ContentSearchRefinementModel} + * @property {module:models/ContentSearchRefinement} */ ContentSearchRefinement, /** * The ContentSearchRefinementValue model constructor. - * @property {module:models/ContentSearchRefinementValueModel} + * @property {module:models/ContentSearchRefinementValue} */ ContentSearchRefinementValue, /** * The ContentSearchResult model constructor. - * @property {module:models/ContentSearchResultModel} + * @property {module:models/ContentSearchResult} */ ContentSearchResult, /** * The CouponItem model constructor. - * @property {module:models/CouponItemModel} + * @property {module:models/CouponItem} */ CouponItem, /** * The CustomObject model constructor. - * @property {module:models/CustomObjectModel} + * @property {module:models/CustomObject} */ CustomObject, /** - * The CustomerAddressLink model constructor. - * @property {module:models/CustomerAddressLinkModel} + * The Customer model constructor. + * @property {module:models/Customer} */ - CustomerAddressLink, + Customer, /** * The CustomerAddress model constructor. - * @property {module:models/CustomerAddressModel} + * @property {module:models/CustomerAddress} */ CustomerAddress, + /** + * The CustomerAddressLink model constructor. + * @property {module:models/CustomerAddressLink} + */ + CustomerAddressLink, + /** * The CustomerAddressResult model constructor. - * @property {module:models/CustomerAddressResultModel} + * @property {module:models/CustomerAddressResult} */ CustomerAddressResult, /** * The CustomerInfo model constructor. - * @property {module:models/CustomerInfoModel} + * @property {module:models/CustomerInfo} */ CustomerInfo, - /** - * The Customer model constructor. - * @property {module:models/CustomerModel} - */ - Customer, - /** * The CustomerOrderResult model constructor. - * @property {module:models/CustomerOrderResultModel} + * @property {module:models/CustomerOrderResult} */ CustomerOrderResult, /** * The CustomerPaymentCardRequest model constructor. - * @property {module:models/CustomerPaymentCardRequestModel} + * @property {module:models/CustomerPaymentCardRequest} */ CustomerPaymentCardRequest, /** * The CustomerPaymentInstrument model constructor. - * @property {module:models/CustomerPaymentInstrumentModel} + * @property {module:models/CustomerPaymentInstrument} */ CustomerPaymentInstrument, /** * The CustomerPaymentInstrumentRequest model constructor. - * @property {module:models/CustomerPaymentInstrumentRequestModel} + * @property {module:models/CustomerPaymentInstrumentRequest} */ CustomerPaymentInstrumentRequest, /** * The CustomerPaymentInstrumentResult model constructor. - * @property {module:models/CustomerPaymentInstrumentResultModel} + * @property {module:models/CustomerPaymentInstrumentResult} */ CustomerPaymentInstrumentResult, /** - * The CustomerProductListItemLink model constructor. - * @property {module:models/CustomerProductListItemLinkModel} + * The CustomerProductList model constructor. + * @property {module:models/CustomerProductList} */ - CustomerProductListItemLink, + CustomerProductList, /** * The CustomerProductListItem model constructor. - * @property {module:models/CustomerProductListItemModel} + * @property {module:models/CustomerProductListItem} */ CustomerProductListItem, /** - * The CustomerProductListItemResult model constructor. - * @property {module:models/CustomerProductListItemResultModel} + * The CustomerProductListItemLink model constructor. + * @property {module:models/CustomerProductListItemLink} */ - CustomerProductListItemResult, + CustomerProductListItemLink, /** - * The CustomerProductList model constructor. - * @property {module:models/CustomerProductListModel} + * The CustomerProductListItemPurchase model constructor. + * @property {module:models/CustomerProductListItemPurchase} */ - CustomerProductList, + CustomerProductListItemPurchase, + + /** + * The CustomerProductListItemPurchaseResult model constructor. + * @property {module:models/CustomerProductListItemPurchaseResult} + */ + CustomerProductListItemPurchaseResult, + + /** + * The CustomerProductListItemResult model constructor. + * @property {module:models/CustomerProductListItemResult} + */ + CustomerProductListItemResult, /** * The CustomerProductListRegistrant model constructor. - * @property {module:models/CustomerProductListRegistrantModel} + * @property {module:models/CustomerProductListRegistrant} */ CustomerProductListRegistrant, /** * The CustomerProductListResult model constructor. - * @property {module:models/CustomerProductListResultModel} + * @property {module:models/CustomerProductListResult} */ CustomerProductListResult, /** * The CustomerRegistration model constructor. - * @property {module:models/CustomerRegistrationModel} + * @property {module:models/CustomerRegistration} */ CustomerRegistration, /** * The Discount model constructor. - * @property {module:models/DiscountModel} + * @property {module:models/Discount} */ Discount, + /** + * The DiscountRequest model constructor. + * @property {module:models/DiscountRequest} + */ + DiscountRequest, + /** * The Fault model constructor. * @property {module:models/FaultModel} @@ -463,550 +510,604 @@

Source: index.js

/** * The FilteredQuery model constructor. - * @property {module:models/FilteredQueryModel} + * @property {module:models/FilteredQuery} */ FilteredQuery, /** - * The GiftCertificateItem model constructor. - * @property {module:models/GiftCertificateItemModel} + * The GiftCertificate model constructor. + * @property {module:models/GiftCertificate} */ - GiftCertificateItem, + GiftCertificate, /** - * The GiftCertificate model constructor. - * @property {module:models/GiftCertificateModel} + * The GiftCertificateItem model constructor. + * @property {module:models/GiftCertificateItem} */ - GiftCertificate, + GiftCertificateItem, /** * The GiftCertificateRequest model constructor. - * @property {module:models/GiftCertificateRequestModel} + * @property {module:models/GiftCertificateRequest} */ GiftCertificateRequest, /** - * The ImageGroup model constructor. - * @property {module:models/ImageGroupModel} + * The Image model constructor. + * @property {module:models/Image} */ - ImageGroup, + Image, /** - * The Image model constructor. - * @property {module:models/ImageModel} + * The ImageGroup model constructor. + * @property {module:models/ImageGroup} */ - Image, + ImageGroup, /** * The Inventory model constructor. - * @property {module:models/InventoryModel} + * @property {module:models/Inventory} */ Inventory, /** * The Locale model constructor. - * @property {module:models/LocaleModel} + * @property {module:models/Locale} */ Locale, /** * The Master model constructor. - * @property {module:models/MasterModel} + * @property {module:models/Master} */ Master, /** * The NestedQuery model constructor. - * @property {module:models/NestedQueryModel} + * @property {module:models/NestedQuery} */ NestedQuery, /** * The Note model constructor. - * @property {module:models/NoteModel} + * @property {module:models/Note} */ Note, /** * The NotesResult model constructor. - * @property {module:models/NotesResultModel} + * @property {module:models/NotesResult} */ NotesResult, /** - * The OptionItem model constructor. - * @property {module:models/OptionItemModel} + * The Option model constructor. + * @property {module:models/Option} */ - OptionItem, + Option, /** - * The Option model constructor. - * @property {module:models/OptionModel} + * The OptionItem model constructor. + * @property {module:models/OptionItem} */ - Option, + OptionItem, /** * The OptionValue model constructor. - * @property {module:models/OptionValueModel} + * @property {module:models/OptionValue} */ OptionValue, /** - * The OrderAddress model constructor. - * @property {module:models/OrderAddressModel} + * The Order model constructor. + * @property {module:models/Order} */ - OrderAddress, + Order, /** - * The Order model constructor. - * @property {module:models/OrderModel} + * The OrderAddress model constructor. + * @property {module:models/OrderAddress} */ - Order, + OrderAddress, /** * The OrderPaymentCardRequest model constructor. - * @property {module:models/OrderPaymentCardRequestModel} + * @property {module:models/OrderPaymentCardRequest} */ OrderPaymentCardRequest, /** * The OrderPaymentInstrument model constructor. - * @property {module:models/OrderPaymentInstrumentModel} + * @property {module:models/OrderPaymentInstrument} */ OrderPaymentInstrument, /** * The OrderPaymentInstrumentRequest model constructor. - * @property {module:models/OrderPaymentInstrumentRequestModel} + * @property {module:models/OrderPaymentInstrumentRequest} */ OrderPaymentInstrumentRequest, /** * The OrderSearchHit model constructor. - * @property {module:models/OrderSearchHitModel} + * @property {module:models/OrderSearchHit} */ OrderSearchHit, /** * The OrderSearchRequest model constructor. - * @property {module:models/OrderSearchRequestModel} + * @property {module:models/OrderSearchRequest} */ OrderSearchRequest, /** * The OrderSearchResult model constructor. - * @property {module:models/OrderSearchResultModel} + * @property {module:models/OrderSearchResult} */ OrderSearchResult, /** * The PasswordChangeRequest model constructor. - * @property {module:models/PasswordChangeRequestModel} + * @property {module:models/PasswordChangeRequest} */ PasswordChangeRequest, /** * The PasswordReset model constructor. - * @property {module:models/PasswordResetModel} + * @property {module:models/PasswordReset} */ PasswordReset, /** * The PaymentBankAccount model constructor. - * @property {module:models/PaymentBankAccountModel} + * @property {module:models/PaymentBankAccount} */ PaymentBankAccount, /** * The PaymentBankAccountRequest model constructor. - * @property {module:models/PaymentBankAccountRequestModel} + * @property {module:models/PaymentBankAccountRequest} */ PaymentBankAccountRequest, /** * The PaymentCard model constructor. - * @property {module:models/PaymentCardModel} + * @property {module:models/PaymentCard} */ PaymentCard, /** * The PaymentCardSpec model constructor. - * @property {module:models/PaymentCardSpecModel} + * @property {module:models/PaymentCardSpec} */ PaymentCardSpec, /** * The PaymentMethod model constructor. - * @property {module:models/PaymentMethodModel} + * @property {module:models/PaymentMethod} */ PaymentMethod, /** * The PaymentMethodResult model constructor. - * @property {module:models/PaymentMethodResultModel} + * @property {module:models/PaymentMethodResult} */ PaymentMethodResult, + /** + * The PriceAdjustment model constructor. + * @property {module:models/PriceAdjustment} + */ + PriceAdjustment, + /** * The PriceAdjustmentLimit model constructor. - * @property {module:models/PriceAdjustmentLimitModel} + * @property {module:models/PriceAdjustmentLimit} */ PriceAdjustmentLimit, /** * The PriceAdjustmentLimits model constructor. - * @property {module:models/PriceAdjustmentLimitsModel} + * @property {module:models/PriceAdjustmentLimits} */ PriceAdjustmentLimits, /** - * The PriceAdjustment model constructor. - * @property {module:models/PriceAdjustmentModel} + * The PriceAdjustmentRequest model constructor. + * @property {module:models/PriceAdjustmentRequest} */ - PriceAdjustment, + PriceAdjustmentRequest, + + /** + * The Product model constructor. + * @property {module:models/Product} + */ + Product, /** * The ProductDetailsLink model constructor. - * @property {module:models/ProductDetailsLinkModel} + * @property {module:models/ProductDetailsLink} */ ProductDetailsLink, /** * The ProductItem model constructor. - * @property {module:models/ProductItemModel} + * @property {module:models/ProductItem} */ ProductItem, /** * The ProductLink model constructor. - * @property {module:models/ProductLinkModel} + * @property {module:models/ProductLink} */ ProductLink, /** * The ProductListEvent model constructor. - * @property {module:models/ProductListEventModel} + * @property {module:models/ProductListEvent} */ ProductListEvent, /** * The ProductListItemReference model constructor. - * @property {module:models/ProductListItemReferenceModel} + * @property {module:models/ProductListItemReference} */ ProductListItemReference, /** * The ProductListLink model constructor. - * @property {module:models/ProductListLinkModel} + * @property {module:models/ProductListLink} */ ProductListLink, /** * The ProductListRegistrant model constructor. - * @property {module:models/ProductListRegistrantModel} + * @property {module:models/ProductListRegistrant} */ ProductListRegistrant, /** * The ProductListShippingAddress model constructor. - * @property {module:models/ProductListShippingAddressModel} + * @property {module:models/ProductListShippingAddress} */ ProductListShippingAddress, /** - * The Product model constructor. - * @property {module:models/ProductModel} + * The ProductPromotion model constructor. + * @property {module:models/ProductPromotion} */ - Product, + ProductPromotion, /** - * The ProductPromotion model constructor. - * @property {module:models/ProductPromotionModel} + * The ProductRecommendationsResult model constructor. + * @property {module:models/ProductRecommendationsResult} */ - ProductPromotion, + ProductRecommendationsResult, + + /** + * The ProductRef model constructor. + * @property {module:models/ProductRef} + */ + ProductRef, /** * The ProductResult model constructor. - * @property {module:models/ProductResultModel} + * @property {module:models/ProductResult} */ ProductResult, /** * The ProductSearchHit model constructor. - * @property {module:models/ProductSearchHitModel} + * @property {module:models/ProductSearchHit} */ ProductSearchHit, /** * The ProductSearchRefinement model constructor. - * @property {module:models/ProductSearchRefinementModel} + * @property {module:models/ProductSearchRefinement} */ ProductSearchRefinement, /** * The ProductSearchRefinementValue model constructor. - * @property {module:models/ProductSearchRefinementValueModel} + * @property {module:models/ProductSearchRefinementValue} */ ProductSearchRefinementValue, /** * The ProductSearchResult model constructor. - * @property {module:models/ProductSearchResultModel} + * @property {module:models/ProductSearchResult} */ ProductSearchResult, /** * The ProductSearchSortingOption model constructor. - * @property {module:models/ProductSearchSortingOptionModel} + * @property {module:models/ProductSearchSortingOption} */ ProductSearchSortingOption, /** * The ProductSimpleLink model constructor. - * @property {module:models/ProductSimpleLinkModel} + * @property {module:models/ProductSimpleLink} */ ProductSimpleLink, /** * The ProductType model constructor. - * @property {module:models/ProductTypeModel} + * @property {module:models/ProductType} */ ProductType, /** * The Promotion model constructor. - * @property {module:models/PromotionModel} + * @property {module:models/Promotion} */ Promotion, + /** + * The PromotionLink model constructor. + * @property {module:models/PromotionLink} + */ + PromotionLink, + /** * The PromotionResult model constructor. - * @property {module:models/PromotionResultModel} + * @property {module:models/PromotionResult} */ PromotionResult, + /** + * The PublicProductList model constructor. + * @property {module:models/PublicProductList} + */ + PublicProductList, + /** * The PublicProductListItem model constructor. - * @property {module:models/PublicProductListItemModel} + * @property {module:models/PublicProductListItem} */ PublicProductListItem, /** * The PublicProductListItemResult model constructor. - * @property {module:models/PublicProductListItemResultModel} + * @property {module:models/PublicProductListItemResult} */ PublicProductListItemResult, /** * The PublicProductListLink model constructor. - * @property {module:models/PublicProductListLinkModel} + * @property {module:models/PublicProductListLink} */ PublicProductListLink, - /** - * The PublicProductList model constructor. - * @property {module:models/PublicProductListModel} - */ - PublicProductList, - /** * The PublicProductListResult model constructor. - * @property {module:models/PublicProductListResultModel} + * @property {module:models/PublicProductListResult} */ PublicProductListResult, /** * The QueryFilter model constructor. - * @property {module:models/QueryFilterModel} + * @property {module:models/QueryFilter} */ QueryFilter, /** * The Range2Filter model constructor. - * @property {module:models/Range2FilterModel} + * @property {module:models/Range2Filter} */ Range2Filter, /** * The RangeFilter model constructor. - * @property {module:models/RangeFilterModel} + * @property {module:models/RangeFilter} */ RangeFilter, /** * The Recommendation model constructor. - * @property {module:models/RecommendationModel} + * @property {module:models/Recommendation} */ Recommendation, /** * The RecommendationType model constructor. - * @property {module:models/RecommendationTypeModel} + * @property {module:models/RecommendationType} */ RecommendationType, + /** + * The ResetPasswordRequest model constructor. + * @property {module:models/ResetPasswordRequest} + */ + ResetPasswordRequest, + + /** + * The ResetPasswordTokenRequest model constructor. + * @property {module:models/ResetPasswordTokenRequest} + */ + ResetPasswordTokenRequest, + + /** + * The ResetPasswordTokenResult model constructor. + * @property {module:models/ResetPasswordTokenResult} + */ + ResetPasswordTokenResult, + /** * The ResultPage model constructor. - * @property {module:models/ResultPageModel} + * @property {module:models/ResultPage} */ ResultPage, /** * The Shipment model constructor. - * @property {module:models/ShipmentModel} + * @property {module:models/Shipment} */ Shipment, /** * The ShippingItem model constructor. - * @property {module:models/ShippingItemModel} + * @property {module:models/ShippingItem} */ ShippingItem, /** * The ShippingMethod model constructor. - * @property {module:models/ShippingMethodModel} + * @property {module:models/ShippingMethod} */ ShippingMethod, /** * The ShippingMethodResult model constructor. - * @property {module:models/ShippingMethodResultModel} + * @property {module:models/ShippingMethodResult} */ ShippingMethodResult, /** * The ShippingPromotion model constructor. - * @property {module:models/ShippingPromotionModel} + * @property {module:models/ShippingPromotion} */ ShippingPromotion, /** * The SimpleLink model constructor. - * @property {module:models/SimpleLinkModel} + * @property {module:models/SimpleLink} */ SimpleLink, /** * The Site model constructor. - * @property {module:models/SiteModel} + * @property {module:models/Site} */ Site, /** * The Sort model constructor. - * @property {module:models/SortModel} + * @property {module:models/Sort} */ Sort, /** * The Status model constructor. - * @property {module:models/StatusModel} + * @property {module:models/Status} */ Status, /** * The Store model constructor. - * @property {module:models/StoreModel} + * @property {module:models/Store} */ Store, /** * The StoreResult model constructor. - * @property {module:models/StoreResultModel} + * @property {module:models/StoreResult} */ StoreResult, /** * The SuggestedCategory model constructor. - * @property {module:models/SuggestedCategoryModel} + * @property {module:models/SuggestedCategory} */ SuggestedCategory, /** * The SuggestedContent model constructor. - * @property {module:models/SuggestedContentModel} + * @property {module:models/SuggestedContent} */ SuggestedContent, /** * The SuggestedPhrase model constructor. - * @property {module:models/SuggestedPhraseModel} + * @property {module:models/SuggestedPhrase} */ SuggestedPhrase, /** * The SuggestedProduct model constructor. - * @property {module:models/SuggestedProductModel} + * @property {module:models/SuggestedProduct} */ SuggestedProduct, /** * The SuggestedTerm model constructor. - * @property {module:models/SuggestedTermModel} + * @property {module:models/SuggestedTerm} */ SuggestedTerm, /** * The SuggestedTerms model constructor. - * @property {module:models/SuggestedTermsModel} + * @property {module:models/SuggestedTerms} */ SuggestedTerms, /** * The Suggestion model constructor. - * @property {module:models/SuggestionModel} + * @property {module:models/Suggestion} */ Suggestion, /** * The SuggestionResult model constructor. - * @property {module:models/SuggestionResultModel} + * @property {module:models/SuggestionResult} */ SuggestionResult, /** * The TermFilter model constructor. - * @property {module:models/TermFilterModel} + * @property {module:models/TermFilter} */ TermFilter, /** * The TermQuery model constructor. - * @property {module:models/TermQueryModel} + * @property {module:models/TermQuery} */ TermQuery, /** * The TextQuery model constructor. - * @property {module:models/TextQueryModel} + * @property {module:models/TextQuery} */ TextQuery, + /** + * The TrustedSystemAuthRequest model constructor. + * @property {module:models/TrustedSystemAuthRequest} + */ + TrustedSystemAuthRequest, + /** * The Variant model constructor. - * @property {module:models/VariantModel} + * @property {module:models/Variant} */ Variant, /** * The VariationAttribute model constructor. - * @property {module:models/VariationAttributeModel} + * @property {module:models/VariationAttribute} */ VariationAttribute, /** * The VariationAttributeValue model constructor. - * @property {module:models/VariationAttributeValueModel} + * @property {module:models/VariationAttributeValue} */ VariationAttributeValue, /** * The VariationGroup model constructor. - * @property {module:models/VariationGroupModel} + * @property {module:models/VariationGroup} */ VariationGroup, + /** + * The AiApi service constructor. + * @property {module:api/AiApi} + */ + AiApi, + /** * The BasketsApi service constructor. * @property {module:api/BasketsApi} @@ -1131,7 +1232,7 @@

Source: index.js


diff --git a/docs/models_ApproachingDiscount.js.html b/docs/models_ApproachingDiscount.js.html new file mode 100644 index 0000000..3ae8d91 --- /dev/null +++ b/docs/models_ApproachingDiscount.js.html @@ -0,0 +1,186 @@ + + + + + JSDoc: Source: models/ApproachingDiscount.js + + + + + + + + + + +
+ +

Source: models/ApproachingDiscount.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import Discount from './Discount'
+import PromotionLink from './PromotionLink'
+import ShippingMethod from './ShippingMethod'
+
+
+
+
+
+/**
+* The ApproachingDiscount model module.
+* @module models/ApproachingDiscount
+* @version 20.4
+*/
+export default class ApproachingDiscount {
+    /**
+    * Constructs a new <code>ApproachingDiscount</code>.
+    * Document representing a note to an object.
+    * @alias module:models/ApproachingDiscount
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>ApproachingDiscount</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ApproachingDiscount} obj Optional instance to populate.
+    * @return {module:models/ApproachingDiscount} The populated <code>ApproachingDiscount</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ApproachingDiscount()
+
+
+
+
+
+            if (data.hasOwnProperty('condition_threshold')) {
+                obj.condition_threshold = ApiClient.convertToType(data.condition_threshold, 'Number')
+            }
+            if (data.hasOwnProperty('discount')) {
+                obj.discount = Discount.constructFromObject(data.discount)
+            }
+            if (data.hasOwnProperty('merchandise_total')) {
+                obj.merchandise_total = ApiClient.convertToType(data.merchandise_total, 'Number')
+            }
+            if (data.hasOwnProperty('promotion_link')) {
+                obj.promotion_link = PromotionLink.constructFromObject(data.promotion_link)
+            }
+            if (data.hasOwnProperty('shipment_id')) {
+                obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String')
+            }
+            if (data.hasOwnProperty('shipping_methods')) {
+                obj.shipping_methods = ApiClient.convertToType(data.shipping_methods, [ShippingMethod])
+            }
+            if (data.hasOwnProperty('type')) {
+                obj.type = ApiClient.convertToType(data.type, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The total amount needed to receive the discount.
+    * @member {Number} condition_threshold
+    */
+    condition_threshold = undefined;
+    /**
+    * The discount the customer can receive if eligible.
+    * @member {module:models/Discount} discount
+    */
+    discount = undefined;
+    /**
+    * The amount the customer basket contributes towards the purchase condition.
+    * @member {Number} merchandise_total
+    */
+    merchandise_total = undefined;
+    /**
+    * The link to details of the promotion associated with this discount.
+    * @member {module:models/PromotionLink} promotion_link
+    */
+    promotion_link = undefined;
+    /**
+    * The unique id of the shipment the discount relates to.
+    * @member {String} shipment_id
+    */
+    shipment_id = undefined;
+    /**
+    * The shipping methods the promotion relates to.
+    * @member {Array.<module:models/ShippingMethod>} shipping_methods
+    */
+    shipping_methods = undefined;
+    /**
+    * The type of the approaching discount (\"order\" or \"shipping\").
+    * @member {String} type
+    */
+    type = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_ApproachingDiscountResult.js.html b/docs/models_ApproachingDiscountResult.js.html new file mode 100644 index 0000000..2690fb1 --- /dev/null +++ b/docs/models_ApproachingDiscountResult.js.html @@ -0,0 +1,138 @@ + + + + + JSDoc: Source: models/ApproachingDiscountResult.js + + + + + + + + + + +
+ +

Source: models/ApproachingDiscountResult.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import ApproachingDiscount from './ApproachingDiscount'
+
+
+
+
+
+/**
+* The ApproachingDiscountResult model module.
+* @module models/ApproachingDiscountResult
+* @version 20.4
+*/
+export default class ApproachingDiscountResult {
+    /**
+    * Constructs a new <code>ApproachingDiscountResult</code>.
+    * A result of a approaching discount request.
+    * @alias module:models/ApproachingDiscountResult
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>ApproachingDiscountResult</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ApproachingDiscountResult} obj Optional instance to populate.
+    * @return {module:models/ApproachingDiscountResult} The populated <code>ApproachingDiscountResult</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ApproachingDiscountResult()
+
+
+
+
+
+            if (data.hasOwnProperty('approaching_discounts')) {
+                obj.approaching_discounts = ApiClient.convertToType(data.approaching_discounts, [ApproachingDiscount])
+            }
+        }
+        return obj
+    }
+
+    /**
+    * Lists approaching discounts.
+    * @member {Array.<module:models/ApproachingDiscount>} approaching_discounts
+    */
+    approaching_discounts = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_AuthRequest.js.html b/docs/models_AuthRequest.js.html index bf6edc8..d032c5b 100644 --- a/docs/models_AuthRequest.js.html +++ b/docs/models_AuthRequest.js.html @@ -27,15 +27,14 @@

Source: models/AuthRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/AuthRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The AuthRequest model module. * @module models/AuthRequest -* @version 17.8 +* @version 20.4 */ export default class AuthRequest { /** @@ -58,12 +63,16 @@

Source: models/AuthRequest.js

* @class * @param type {module:models/AuthRequest.TypeEnum} Type of authentication request: guest, login (credentials), refresh or session. */ + constructor(type) { - /** - * Type of authentication request: guest, login (credentials), refresh or session. - * @member {module:models/AuthRequest.TypeEnum} type - */ + + + + + this.type = type + + } /** @@ -77,45 +86,62 @@

Source: models/AuthRequest.js

if (data) { obj = obj || new AuthRequest() + + + + if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -AuthRequest.TypeEnum = { /** - * value: "guest" - * @const - */ - guest: 'guest', + * Type of authentication request: guest, login (credentials), refresh or session. + * @member {module:models/AuthRequest.TypeEnum} type + */ + type = undefined; + + + - /** - * value: "credentials" - * @const - */ - credentials: 'credentials', - /** - * value: "refresh" - * @const - */ - refresh: 'refresh', /** - * value: "session" - * @const - */ - session: 'session' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "guest" + * @const + */ + guest: 'guest', + + /** + * value: "credentials" + * @const + */ + credentials: 'credentials', + + /** + * value: "refresh" + * @const + */ + refresh: 'refresh', + + /** + * value: "session" + * @const + */ + session: 'session' + }; + + + }
@@ -127,7 +153,7 @@

Source: models/AuthRequest.js


diff --git a/docs/models_Basket.js.html b/docs/models_Basket.js.html index 41d995a..9f3e828 100644 --- a/docs/models_Basket.js.html +++ b/docs/models_Basket.js.html @@ -27,15 +27,14 @@

Source: models/Basket.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,6 +42,8 @@ 

Source: models/Basket.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BonusDiscountLineItem from './BonusDiscountLineItem' import CouponItem from './CouponItem' @@ -56,10 +57,14 @@

Source: models/Basket.js

import ShippingItem from './ShippingItem' import SimpleLink from './SimpleLink' + + + + /** * The Basket model module. * @module models/Basket -* @version 17.8 +* @version 20.4 */ export default class Basket { /** @@ -68,186 +73,16 @@

Source: models/Basket.js

* @alias module:models/Basket * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after - * adjustment from promotions have been added. - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - - /** - * Is the basket created by an agent? - * @member {Boolean} agent_basket - */ - this.agent_basket = undefined - - /** - * The unique identifier for the basket. - * @member {String} basket_id - */ - this.basket_id = undefined - - /** - * The billing address. This property is part of basket checkout information only. - * @member {module:models/OrderAddress} billing_address - */ - this.billing_address = undefined - - /** - * The bonus discount line items of the line item container. - * @member {Array.<module:models/BonusDiscountLineItem>} bonus_discount_line_items - */ - this.bonus_discount_line_items = undefined - - /** - * The sales channel for the order. - * @member {module:models/Basket.ChannelTypeEnum} channel_type - */ - this.channel_type = undefined - - /** - * The sorted array of coupon items. This array can be empty. - * @member {Array.<module:models/CouponItem>} coupon_items - */ - this.coupon_items = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The customer information for logged in customers. This property is part of basket checkout information only. - * @member {module:models/CustomerInfo} customer_info - */ - this.customer_info = undefined - - /** - * The sorted array of gift certificate line items. This array can be empty. - * @member {Array.<module:models/GiftCertificateItem>} gift_certificate_items - */ - this.gift_certificate_items = undefined - - /** - * - * @member {Date} inventory_reservation_expiry - */ - this.inventory_reservation_expiry = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The notes for the line item container. - * @member {module:models/SimpleLink} notes - */ - this.notes = undefined - - /** - * The array of order level price adjustments. This array can be empty. - * @member {Array.<module:models/PriceAdjustment>} order_price_adjustments - */ - this.order_price_adjustments = undefined - - /** - * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. - * @member {Number} order_total - */ - this.order_total = undefined - /** - * The payment instruments list for the order. - * @member {Array.<module:models/OrderPaymentInstrument>} payment_instruments - */ - this.payment_instruments = undefined + constructor() { - /** - * The sorted array of product items (up to a maximum of 50 items). This array can be empty. - * @member {Array.<module:models/ProductItem>} product_items - */ - this.product_items = undefined - /** - * The total price of all product items after all product discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined - /** - * The total price of all product items after all product and order discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - /** - * The array of shipments. This property is part of basket checkout information only. - * @member {Array.<module:models/Shipment>} shipments - */ - this.shipments = undefined - /** - * The sorted array of shipping items. This array can be empty. - * @member {Array.<module:models/ShippingItem>} shipping_items - */ - this.shipping_items = undefined - /** - * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy - * is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - /** - * The tax of all shipping line items of the line item container before shipping adjustments have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - /** - * Gets the source code assigned to this basket. - * @member {String} source_code - */ - this.source_code = undefined - - /** - * The total tax amount of the order. This property is part of basket checkout information only. - * @member {Number} tax_total - */ - this.tax_total = undefined - - /** - * The taxation the line item container is based on. - * @member {module:models/Basket.TaxationEnum} taxation - */ - this.taxation = undefined } /** @@ -261,196 +96,361 @@

Source: models/Basket.js

if (data) { obj = obj || new Basket() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') } if (data.hasOwnProperty('agent_basket')) { - obj['agent_basket'] = ApiClient.convertToType(data['agent_basket'], 'Boolean') + obj.agent_basket = ApiClient.convertToType(data.agent_basket, 'Boolean') } if (data.hasOwnProperty('basket_id')) { - obj['basket_id'] = ApiClient.convertToType(data['basket_id'], 'String') + obj.basket_id = ApiClient.convertToType(data.basket_id, 'String') } if (data.hasOwnProperty('billing_address')) { - obj['billing_address'] = OrderAddress.constructFromObject(data['billing_address']) + obj.billing_address = OrderAddress.constructFromObject(data.billing_address) } if (data.hasOwnProperty('bonus_discount_line_items')) { - obj['bonus_discount_line_items'] = ApiClient.convertToType(data['bonus_discount_line_items'], [BonusDiscountLineItem]) + obj.bonus_discount_line_items = ApiClient.convertToType(data.bonus_discount_line_items, [BonusDiscountLineItem]) + } + if (data.hasOwnProperty('c_sessionAddressBook')) { + obj.c_sessionAddressBook = ApiClient.convertToType(data.c_sessionAddressBook, 'String') } if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String') + obj.channel_type = ApiClient.convertToType(data.channel_type, 'String') } if (data.hasOwnProperty('coupon_items')) { - obj['coupon_items'] = ApiClient.convertToType(data['coupon_items'], [CouponItem]) + obj.coupon_items = ApiClient.convertToType(data.coupon_items, [CouponItem]) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('customer_info')) { - obj['customer_info'] = CustomerInfo.constructFromObject(data['customer_info']) + obj.customer_info = CustomerInfo.constructFromObject(data.customer_info) } if (data.hasOwnProperty('gift_certificate_items')) { - obj['gift_certificate_items'] = ApiClient.convertToType(data['gift_certificate_items'], [GiftCertificateItem]) + obj.gift_certificate_items = ApiClient.convertToType(data.gift_certificate_items, [GiftCertificateItem]) } if (data.hasOwnProperty('inventory_reservation_expiry')) { - obj['inventory_reservation_expiry'] = ApiClient.convertToType(data['inventory_reservation_expiry'], 'Date') + obj.inventory_reservation_expiry = ApiClient.convertToType(data.inventory_reservation_expiry, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('notes')) { - obj['notes'] = SimpleLink.constructFromObject(data['notes']) + obj.notes = SimpleLink.constructFromObject(data.notes) } if (data.hasOwnProperty('order_price_adjustments')) { - obj['order_price_adjustments'] = ApiClient.convertToType(data['order_price_adjustments'], [PriceAdjustment]) + obj.order_price_adjustments = ApiClient.convertToType(data.order_price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('order_total')) { - obj['order_total'] = ApiClient.convertToType(data['order_total'], 'Number') + obj.order_total = ApiClient.convertToType(data.order_total, 'Number') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [OrderPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [OrderPaymentInstrument]) } if (data.hasOwnProperty('product_items')) { - obj['product_items'] = ApiClient.convertToType(data['product_items'], [ProductItem]) + obj.product_items = ApiClient.convertToType(data.product_items, [ProductItem]) } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipments')) { - obj['shipments'] = ApiClient.convertToType(data['shipments'], [Shipment]) + obj.shipments = ApiClient.convertToType(data.shipments, [Shipment]) } if (data.hasOwnProperty('shipping_items')) { - obj['shipping_items'] = ApiClient.convertToType(data['shipping_items'], [ShippingItem]) + obj.shipping_items = ApiClient.convertToType(data.shipping_items, [ShippingItem]) } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('source_code')) { - obj['source_code'] = ApiClient.convertToType(data['source_code'], 'String') + obj.source_code = ApiClient.convertToType(data.source_code, 'String') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('taxation')) { - obj['taxation'] = ApiClient.convertToType(data['taxation'], 'String') + obj.taxation = ApiClient.convertToType(data.taxation, 'String') } } return obj } -} - -/** -* Allowed values for the <code>channel_type</code> property. -* @enum {String} -* @readonly -*/ -Basket.ChannelTypeEnum = { /** - * value: "storefront" - * @const - */ - storefront: 'storefront', - + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. + * @member {Number} adjusted_merchandize_total_tax + **/ + adjusted_merchandize_total_tax = undefined; /** - * value: "callcenter" - * @const - */ - callcenter: 'callcenter', - + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; /** - * value: "marketplace" - * @const - */ - marketplace: 'marketplace', - + * Is the basket created by an agent? + * @member {Boolean} agent_basket + */ + agent_basket = undefined; /** - * value: "dss" - * @const - */ - dss: 'dss', - + * The unique identifier for the basket. + * @member {String} basket_id + */ + basket_id = undefined; /** - * value: "store" - * @const - */ - store: 'store', - + * The billing address. This property is part of basket checkout information only. + * @member {module:models/OrderAddress} billing_address + */ + billing_address = undefined; /** - * value: "pinterest" - * @const - */ - pinterest: 'pinterest', - + * The bonus discount line items of the line item container. + * @member {Array.<module:models/BonusDiscountLineItem>} bonus_discount_line_items + */ + bonus_discount_line_items = undefined; /** - * value: "twitter" - * @const - */ - twitter: 'twitter', - + * @member {String} c_sessionAddressBook + */ + c_sessionAddressBook = undefined; /** - * value: "facebookads" - * @const - */ - facebookads: 'facebookads', - + * The sales channel for the order. This is a read-only attribute that can't be modified by an OCAPI call. For OCAPI, the sales channel is determined based on the client ID and token used for the OCAPI call. Usually, a customer-based authentication sets the channel to Storefront, and an agent-based authentication sets it to CallCenter. Using applications that use other client IDs for OCAPI calls, like Customer Service Center, will set different channel types. To modify the channel type in OCAPI, use a hook. * + * @member {module:models/Basket.ChannelTypeEnum} channel_type + */ + channel_type = undefined; /** - * value: "subscriptions" - * @const - */ - subscriptions: 'subscriptions', - + * The sorted array of coupon items. This array can be empty. + * @member {Array.<module:models/CouponItem>} coupon_items + */ + coupon_items = undefined; /** - * value: "onlinereservation" - * @const - */ - onlinereservation: 'onlinereservation', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "customerservicecenter" - * @const - */ - customerservicecenter: 'customerservicecenter', - + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; /** - * value: "instagramcommerce" - * @const - */ - instagramcommerce: 'instagramcommerce' -} + * The customer information for logged in customers. This property is part of basket checkout information only. + * @member {module:models/CustomerInfo} customer_info + */ + customer_info = undefined; + /** + * The sorted array of gift certificate line items. This array can be empty. + * @member {Array.<module:models/GiftCertificateItem>} gift_certificate_items + */ + gift_certificate_items = undefined; + /** + * + * @member {Date} inventory_reservation_expiry + */ + inventory_reservation_expiry = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The notes for the line item container. + * @member {module:models/SimpleLink} notes + */ + notes = undefined; + /** + * The array of order level price adjustments. This array can be empty. + * @member {Array.<module:models/PriceAdjustment>} order_price_adjustments + */ + order_price_adjustments = undefined; + /** + * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. + * @member {Number} order_total + */ + order_total = undefined; + /** + * The payment instruments list for the order. + * @member {Array.<module:models/OrderPaymentInstrument>} payment_instruments + */ + payment_instruments = undefined; + /** + * The sorted array of product items (up to a maximum of 50 items). This array can be empty. + * @member {Array.<module:models/ProductItem>} product_items + */ + product_items = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The array of shipments. This property is part of basket checkout information only. + * @member {Array.<module:models/Shipment>} shipments + */ + shipments = undefined; + /** + * The sorted array of shipping items. This array can be empty. + * @member {Array.<module:models/ShippingItem>} shipping_items + */ + shipping_items = undefined; + /** + * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * Gets the source code assigned to this basket. + * @member {String} source_code + */ + source_code = undefined; + /** + * The total tax amount of the order. This property is part of basket checkout information only. + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The taxation the line item container is based on. + * @member {module:models/Basket.TaxationEnum} taxation + */ + taxation = undefined; + + + + -/** -* Allowed values for the <code>taxation</code> property. -* @enum {String} -* @readonly -*/ -Basket.TaxationEnum = { /** - * value: "gross" - * @const - */ - gross: 'gross', + * Allowed values for the <code>channel_type</code> property. + * @enum {String} + * @readonly + */ + static ChannelTypeEnum = { + + /** + * value: "storefront" + * @const + */ + storefront: 'storefront', + + /** + * value: "callcenter" + * @const + */ + callcenter: 'callcenter', + + /** + * value: "marketplace" + * @const + */ + marketplace: 'marketplace', + + /** + * value: "dss" + * @const + */ + dss: 'dss', + + /** + * value: "store" + * @const + */ + store: 'store', + + /** + * value: "pinterest" + * @const + */ + pinterest: 'pinterest', + + /** + * value: "twitter" + * @const + */ + twitter: 'twitter', + + /** + * value: "facebookads" + * @const + */ + facebookads: 'facebookads', + + /** + * value: "subscriptions" + * @const + */ + subscriptions: 'subscriptions', + + /** + * value: "onlinereservation" + * @const + */ + onlinereservation: 'onlinereservation', + + /** + * value: "customerservicecenter" + * @const + */ + customerservicecenter: 'customerservicecenter', + + /** + * value: "instagramcommerce" + * @const + */ + instagramcommerce: 'instagramcommerce' + }; /** - * value: "net" - * @const - */ - net: 'net' + * Allowed values for the <code>taxation</code> property. + * @enum {String} + * @readonly + */ + static TaxationEnum = { + + /** + * value: "gross" + * @const + */ + gross: 'gross', + + /** + * value: "net" + * @const + */ + net: 'net' + }; + + + }
@@ -462,7 +462,7 @@

Source: models/Basket.js


diff --git a/docs/models_BasketPaymentInstrumentRequest.js.html b/docs/models_BasketPaymentInstrumentRequest.js.html index 563f153..3f65514 100644 --- a/docs/models_BasketPaymentInstrumentRequest.js.html +++ b/docs/models_BasketPaymentInstrumentRequest.js.html @@ -27,15 +27,14 @@

Source: models/BasketPaymentInstrumentRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/BasketPaymentInstrumentRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderPaymentCardRequest from './OrderPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The BasketPaymentInstrumentRequest model module. * @module models/BasketPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class BasketPaymentInstrumentRequest { /** @@ -59,48 +64,16 @@

Source: models/BasketPaymentInstrumentRequest.js

* @alias module:models/BasketPaymentInstrumentRequest * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The id of a customer payment instrument. - * @member {String} customer_payment_instrument_id - */ - this.customer_payment_instrument_id = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/OrderPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -114,32 +87,81 @@

Source: models/BasketPaymentInstrumentRequest.js

if (data) { obj = obj || new BasketPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('customer_payment_instrument_id')) { - obj['customer_payment_instrument_id'] = ApiClient.convertToType(data['customer_payment_instrument_id'], 'String') + obj.customer_payment_instrument_id = ApiClient.convertToType(data.customer_payment_instrument_id, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = OrderPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = OrderPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The id of a customer payment instrument. + * @member {String} customer_payment_instrument_id + */ + customer_payment_instrument_id = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/OrderPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + +
@@ -150,7 +172,7 @@

Source: models/BasketPaymentInstrumentRequest.js


diff --git a/docs/models_BasketReference.js.html b/docs/models_BasketReference.js.html new file mode 100644 index 0000000..1db14b7 --- /dev/null +++ b/docs/models_BasketReference.js.html @@ -0,0 +1,147 @@ + + + + + JSDoc: Source: models/BasketReference.js + + + + + + + + + + +
+ +

Source: models/BasketReference.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The BasketReference model module.
+* @module models/BasketReference
+* @version 20.4
+*/
+export default class BasketReference {
+    /**
+    * Constructs a new <code>BasketReference</code>.
+    * Reference to a basket.
+    * @alias module:models/BasketReference
+    * @class
+    * @param basketId {String} The unique identifier for the basket.
+    * @param customerId {String} The unique identifier for the customer.
+    */
+
+    constructor(basketId, customerId) {
+
+
+
+
+
+        this.basket_id = basketId; this.customer_id = customerId
+
+
+    }
+
+    /**
+    * Constructs a <code>BasketReference</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/BasketReference} obj Optional instance to populate.
+    * @return {module:models/BasketReference} The populated <code>BasketReference</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new BasketReference()
+
+
+
+
+
+            if (data.hasOwnProperty('basket_id')) {
+                obj.basket_id = ApiClient.convertToType(data.basket_id, 'String')
+            }
+            if (data.hasOwnProperty('customer_id')) {
+                obj.customer_id = ApiClient.convertToType(data.customer_id, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The unique identifier for the basket.
+    * @member {String} basket_id
+    */
+    basket_id = undefined;
+    /**
+    * The unique identifier for the customer.
+    * @member {String} customer_id
+    */
+    customer_id = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_BasketsResult.js.html b/docs/models_BasketsResult.js.html index 43eb65d..4c97d0c 100644 --- a/docs/models_BasketsResult.js.html +++ b/docs/models_BasketsResult.js.html @@ -27,15 +27,14 @@

Source: models/BasketsResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/BasketsResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Basket from './Basket' + + + + /** * The BasketsResult model module. * @module models/BasketsResult -* @version 17.8 +* @version 20.4 */ export default class BasketsResult { /** @@ -58,18 +63,16 @@

Source: models/BasketsResult.js

* @alias module:models/BasketsResult * @class */ + constructor() { - /** - * The list of baskets for a customer. - * @member {Array.<module:models/Basket>} baskets - */ - this.baskets = undefined - - /** - * The total number of baskets. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -83,16 +86,41 @@

Source: models/BasketsResult.js

if (data) { obj = obj || new BasketsResult() + + + + if (data.hasOwnProperty('baskets')) { - obj['baskets'] = ApiClient.convertToType(data['baskets'], [Basket]) + obj.baskets = ApiClient.convertToType(data.baskets, [Basket]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } return obj } + + /** + * The list of baskets for a customer. + * @member {Array.<module:models/Basket>} baskets + */ + baskets = undefined; + /** + * The total number of baskets. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -103,7 +131,7 @@

Source: models/BasketsResult.js


diff --git a/docs/models_BonusDiscountLineItem.js.html b/docs/models_BonusDiscountLineItem.js.html index a1848a7..469db8f 100644 --- a/docs/models_BonusDiscountLineItem.js.html +++ b/docs/models_BonusDiscountLineItem.js.html @@ -27,15 +27,14 @@

Source: models/BonusDiscountLineItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/BonusDiscountLineItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductDetailsLink from './ProductDetailsLink' + + + + /** * The BonusDiscountLineItem model module. * @module models/BonusDiscountLineItem -* @version 17.8 +* @version 20.4 */ export default class BonusDiscountLineItem { /** @@ -58,36 +63,16 @@

Source: models/BonusDiscountLineItem.js

* @alias module:models/BonusDiscountLineItem * @class */ + constructor() { - /** - * The list of links to the bonus products the customer can choose from. - * @member {Array.<module:models/ProductDetailsLink>} bonus_products - */ - this.bonus_products = undefined - - /** - * The coupon code that triggered the promotion, if applicable. - * @member {String} coupon_code - */ - this.coupon_code = undefined - - /** - * The ID of the line item. - * @member {String} id - */ - this.id = undefined - - /** - * The maximum number of bonus items the user can select for this promotion. - * @member {Number} max_bonus_items - */ - this.max_bonus_items = undefined - - /** - * The ID of the promotion which triggered the creation of the line item. - * @member {String} promotion_id - */ - this.promotion_id = undefined + + + + + + + + } /** @@ -101,26 +86,65 @@

Source: models/BonusDiscountLineItem.js

if (data) { obj = obj || new BonusDiscountLineItem() + + + + if (data.hasOwnProperty('bonus_products')) { - obj['bonus_products'] = ApiClient.convertToType(data['bonus_products'], [ProductDetailsLink]) + obj.bonus_products = ApiClient.convertToType(data.bonus_products, [ProductDetailsLink]) } if (data.hasOwnProperty('coupon_code')) { - obj['coupon_code'] = ApiClient.convertToType(data['coupon_code'], 'String') + obj.coupon_code = ApiClient.convertToType(data.coupon_code, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('max_bonus_items')) { - obj['max_bonus_items'] = ApiClient.convertToType(data['max_bonus_items'], 'Number') + obj.max_bonus_items = ApiClient.convertToType(data.max_bonus_items, 'Number') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } } - return obj } + + /** + * The list of links to the bonus products the customer can choose from. + * @member {Array.<module:models/ProductDetailsLink>} bonus_products + */ + bonus_products = undefined; + /** + * The coupon code that triggered the promotion, if applicable. + * @member {String} coupon_code + */ + coupon_code = undefined; + /** + * The ID of the line item. + * @member {String} id + */ + id = undefined; + /** + * The maximum number of bonus items the user can select for this promotion. + * @member {Number} max_bonus_items + */ + max_bonus_items = undefined; + /** + * The ID of the promotion which triggered the creation of the line item. + * @member {String} promotion_id + */ + promotion_id = undefined; + + + + + + + + } + +
@@ -131,7 +155,7 @@

Source: models/BonusDiscountLineItem.js


diff --git a/docs/models_BoolFilter.js.html b/docs/models_BoolFilter.js.html index da6e6f1..2bfcb80 100644 --- a/docs/models_BoolFilter.js.html +++ b/docs/models_BoolFilter.js.html @@ -27,15 +27,14 @@

Source: models/BoolFilter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/BoolFilter.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Filter from './Filter' + + + + /** * The BoolFilter model module. * @module models/BoolFilter -* @version 17.8 +* @version 20.4 */ export default class BoolFilter { /** @@ -59,18 +64,16 @@

Source: models/BoolFilter.js

* @class * @param operator {module:models/BoolFilter.OperatorEnum} The logical operator the filters are combined with. */ + constructor(operator) { - /** - * A list of filters, which are logically combined by an operator. - * @member {Array.<module:models/Filter>} filters - */ - this.filters = undefined - /** - * The logical operator the filters are combined with. - * @member {module:models/BoolFilter.OperatorEnum} operator - */ + + + + this.operator = operator + + } /** @@ -84,42 +87,67 @@

Source: models/BoolFilter.js

if (data) { obj = obj || new BoolFilter() + + + + if (data.hasOwnProperty('filters')) { - obj['filters'] = ApiClient.convertToType(data['filters'], [Filter]) + obj.filters = ApiClient.convertToType(data.filters, [Filter]) } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } } return obj } -} - -/** -* Allowed values for the <code>operator</code> property. -* @enum {String} -* @readonly -*/ -BoolFilter.OperatorEnum = { /** - * value: "and" - * @const - */ - and: 'and', - + * A list of filters, which are logically combined by an operator. + * @member {Array.<module:models/Filter>} filters + */ + filters = undefined; /** - * value: "or" - * @const - */ - or: 'or', + * The logical operator the filters are combined with. + * @member {module:models/BoolFilter.OperatorEnum} operator + */ + operator = undefined; + + + + + /** - * value: "not" - * @const - */ - not: 'not' + * Allowed values for the <code>operator</code> property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "and" + * @const + */ + and: 'and', + + /** + * value: "or" + * @const + */ + or: 'or', + + /** + * value: "not" + * @const + */ + not: 'not' + }; + + + } + +
@@ -130,7 +158,7 @@

Source: models/BoolFilter.js


diff --git a/docs/models_BoolQuery.js.html b/docs/models_BoolQuery.js.html index 3a4f8ed..e48c1b2 100644 --- a/docs/models_BoolQuery.js.html +++ b/docs/models_BoolQuery.js.html @@ -27,15 +27,14 @@

Source: models/BoolQuery.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,42 +42,37 @@ 

Source: models/BoolQuery.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' + + + + /** * The BoolQuery model module. * @module models/BoolQuery -* @version 17.8 +* @version 20.4 */ export default class BoolQuery { /** * Constructs a new <code>BoolQuery</code>. - * A boolean query allows to construct full logical expression trees consisting of other queries - * (usually term and text queries). A boolean query basically has 3 sets of clauses that - * &#39;must&#39;, &#39;should&#39; and / or &#39;must not&#39; match. If &#39;must&#39;, &#39;must_not&#39;, - * or &#39;should&#39; appear in the same boolean query, they are combined logically using the AND operator. + * A boolean query allows construction of full logical expression trees consisting of other queries (usually term and text queries). A boolean query basically has 3 sets of clauses that &#39;must&#39;, &#39;should&#39; and / or &#39;must not&#39; match. If &#39;must&#39;, &#39;must_not&#39;, or &#39;should&#39; appear in the same boolean query, they are combined logically using the AND operator. * @alias module:models/BoolQuery * @class */ + constructor() { - /** - * List of queries, which must match. - * @member {Array.<module:models/Query>} must - */ - this.must = undefined - - /** - * List of queries, which must not match. - * @member {Array.<module:models/Query>} must_not - */ - this.must_not = undefined - - /** - * List of queries, which should match. - * @member {Array.<module:models/Query>} should - */ - this.should = undefined + + + + + + + + } /** @@ -92,20 +86,49 @@

Source: models/BoolQuery.js

if (data) { obj = obj || new BoolQuery() + + + + if (data.hasOwnProperty('must')) { - obj['must'] = ApiClient.convertToType(data['must'], [Query]) + obj.must = ApiClient.convertToType(data.must, [Query]) } if (data.hasOwnProperty('must_not')) { - obj['must_not'] = ApiClient.convertToType(data['must_not'], [Query]) + obj.must_not = ApiClient.convertToType(data.must_not, [Query]) } if (data.hasOwnProperty('should')) { - obj['should'] = ApiClient.convertToType(data['should'], [Query]) + obj.should = ApiClient.convertToType(data.should, [Query]) } } - return obj } + + /** + * List of queries that must match. + * @member {Array.<module:models/Query>} must + */ + must = undefined; + /** + * List of queries that must not match. + * @member {Array.<module:models/Query>} must_not + */ + must_not = undefined; + /** + * List of queries that should match. + * @member {Array.<module:models/Query>} should + */ + should = undefined; + + + + + + + + } + +
@@ -116,7 +139,7 @@

Source: models/BoolQuery.js


diff --git a/docs/models_BundledProduct.js.html b/docs/models_BundledProduct.js.html index 7a06635..2a1a20e 100644 --- a/docs/models_BundledProduct.js.html +++ b/docs/models_BundledProduct.js.html @@ -27,15 +27,14 @@

Source: models/BundledProduct.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/BundledProduct.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' + + + + /** * The BundledProduct model module. * @module models/BundledProduct -* @version 17.8 +* @version 20.4 */ export default class BundledProduct { /** @@ -58,23 +63,16 @@

Source: models/BundledProduct.js

* @alias module:models/BundledProduct * @class */ + constructor() { - /** - * @member {String} id - */ - this.id = undefined - - /** - * The product being bundled. - * @member {module:models/Product} product - */ - this.product = undefined - - /** - * For the product being bundled, the quantity added to the bundle. - * @member {Number} quantity - */ - this.quantity = undefined + + + + + + + + } /** @@ -88,20 +86,48 @@

Source: models/BundledProduct.js

if (data) { obj = obj || new BundledProduct() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } } - return obj } + + /** + * @member {String} id + */ + id = undefined; + /** + * The product being bundled. + * @member {module:models/Product} product + */ + product = undefined; + /** + * For the product being bundled, the quantity added to the bundle. + * @member {Number} quantity + */ + quantity = undefined; + + + + + + + + } + +
@@ -112,7 +138,7 @@

Source: models/BundledProduct.js


diff --git a/docs/models_Category.js.html b/docs/models_Category.js.html index b965fe4..c509b21 100644 --- a/docs/models_Category.js.html +++ b/docs/models_Category.js.html @@ -27,15 +27,14 @@

Source: models/Category.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Category.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Category model module. * @module models/Category -* @version 17.8 +* @version 20.4 */ export default class Category { /** @@ -57,66 +62,16 @@

Source: models/Category.js

* @alias module:models/Category * @class */ + constructor() { - /** - * Array of subcategories. Can be empty. - * @member {Array.<module:models/Category>} categories - */ - this.categories = undefined - /** - * The localized description of the category. - * @member {String} description - */ - this.description = undefined - /** - * The id of the category. - * @member {String} id - */ - this.id = undefined - /** - * The URL to the category image. - * @member {String} image - */ - this.image = undefined - /** - * The localized name of the category. - * @member {String} name - */ - this.name = undefined - /** - * The localized page description of the category. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized page keywords of the category. - * @member {String} page_keywords - */ - this.page_keywords = undefined - /** - * The localized page title of the category. - * @member {String} page_title - */ - this.page_title = undefined - /** - * The id of the parent category. - * @member {String} parent_category_id - */ - this.parent_category_id = undefined - /** - * The URL to the category thumbnail. - * @member {String} thumbnail - */ - this.thumbnail = undefined } /** @@ -130,40 +85,200 @@

Source: models/Category.js

if (data) { obj = obj || new Category() + + + + + if (data.hasOwnProperty('c_alternativeUrl')) { + obj.c_alternativeUrl = ApiClient.convertToType(data.c_alternativeUrl, 'String') + } + if (data.hasOwnProperty('c_catBannerID')) { + obj.c_catBannerID = ApiClient.convertToType(data.c_catBannerID, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } + if (data.hasOwnProperty('c_enableCompare')) { + obj.c_enableCompare = ApiClient.convertToType(data.c_enableCompare, 'Boolean') + } + if (data.hasOwnProperty('c_headerMenuBanner')) { + obj.c_headerMenuBanner = ApiClient.convertToType(data.c_headerMenuBanner, 'String') + } + if (data.hasOwnProperty('c_headerMenuOrientation')) { + obj.c_headerMenuOrientation = ApiClient.convertToType(data.c_headerMenuOrientation, 'String') + } + if (data.hasOwnProperty('c_showInMenu')) { + obj.c_showInMenu = ApiClient.convertToType(data.c_showInMenu, 'Boolean') + } + if (data.hasOwnProperty('c_sizeChartID')) { + obj.c_sizeChartID = ApiClient.convertToType(data.c_sizeChartID, 'String') + } + if (data.hasOwnProperty('c_slotBannerHtml')) { + obj.c_slotBannerHtml = ApiClient.convertToType(data.c_slotBannerHtml, 'String') + } + if (data.hasOwnProperty('c_slotBannerImage')) { + obj.c_slotBannerImage = ApiClient.convertToType(data.c_slotBannerImage, 'String') + } if (data.hasOwnProperty('categories')) { - obj['categories'] = ApiClient.convertToType(data['categories'], [Category]) + obj.categories = ApiClient.convertToType(data.categories, [Category]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('parent_category_id')) { - obj['parent_category_id'] = ApiClient.convertToType(data['parent_category_id'], 'String') + obj.parent_category_id = ApiClient.convertToType(data.parent_category_id, 'String') } if (data.hasOwnProperty('thumbnail')) { - obj['thumbnail'] = ApiClient.convertToType(data['thumbnail'], 'String') + obj.thumbnail = ApiClient.convertToType(data.thumbnail, 'String') } } - return obj } + + /** + * Renders an alternative URL in main navigation. Uses Salesforce Commerce Cloud content url notation. For example: $url('Account-Show')$ or normal URL http://xchange.demandware.com + * @member {String} c_alternativeUrl + */ + c_alternativeUrl = undefined; + /** + * Used to define the content asset used to populate a grid page banner for a category. This value is applied to all sub-category navigation (cascading) if no specific catBannerID has been defined for a sub-category. + * @member {String} c_catBannerID + */ + c_catBannerID = undefined; + /** + * Use this attribute to apply custom styles for this category. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * Used to define if/when the Compare feature is to be visualized in the storefront based on navigation. If enableCompare = FALSE, no Compare checkboxes will be displayed in the grid view. If enableCompare = TRUE, the category (and its children) will support the Compare feature. + * @member {Boolean} c_enableCompare + */ + c_enableCompare = undefined; + /** + * @member {String} c_headerMenuBanner + */ + c_headerMenuBanner = undefined; + /** + * Which way to orient the menu and optional header menu HTML. Vertical will list all in one line. Horizontal will list in columns. + * @member {module:models/Category.CHeaderMenuOrientationEnum} c_headerMenuOrientation + */ + c_headerMenuOrientation = undefined; + /** + * Used to indicate that a category (such as Mens -> Footwear -> Boots) will display in the roll-over navigation. A sub-category only shows if also the parent category is marked as showInMenu. Up to three category levels are shown in roll-over navigation. + * @member {Boolean} c_showInMenu + */ + c_showInMenu = undefined; + /** + * Used to define the content asset ID of the Size Chart that is appropriate for products whose PRIMARY category is the associated category (and its children). Whenever a product detail page (or quick view) is rendered, the Size Chart link is populated based on the value of this attribute for the products primary categorization. If not defined, NO size chart link is displayed. + * @member {String} c_sizeChartID + */ + c_sizeChartID = undefined; + /** + * @member {String} c_slotBannerHtml + */ + c_slotBannerHtml = undefined; + /** + * Image used on either the top or bottom slot on the category landing pages. + * @member {String} c_slotBannerImage + */ + c_slotBannerImage = undefined; + /** + * Array of subcategories. Can be empty. + * @member {Array.<module:models/Category>} categories + */ + categories = undefined; + /** + * The localized description of the category. + * @member {String} description + */ + description = undefined; + /** + * The id of the category. + * @member {String} id + */ + id = undefined; + /** + * The URL to the category image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the category. + * @member {String} name + */ + name = undefined; + /** + * The localized page description of the category. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized page keywords of the category. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized page title of the category. + * @member {String} page_title + */ + page_title = undefined; + /** + * The id of the parent category. + * @member {String} parent_category_id + */ + parent_category_id = undefined; + /** + * The URL to the category thumbnail. + * @member {String} thumbnail + */ + thumbnail = undefined; + + + + + + + /** + * Allowed values for the <code>c_headerMenuOrientation</code> property. + * @enum {String} + * @readonly + */ + static CHeaderMenuOrientationEnum = { + + /** + * value: "Horizontal" + * @const + */ + Horizontal: 'Horizontal', + + /** + * value: "Vertical" + * @const + */ + Vertical: 'Vertical' + }; + + + }
@@ -175,7 +290,7 @@

Source: models/Category.js


diff --git a/docs/models_CategoryResult.js.html b/docs/models_CategoryResult.js.html index 7717bf6..c760b2c 100644 --- a/docs/models_CategoryResult.js.html +++ b/docs/models_CategoryResult.js.html @@ -27,15 +27,14 @@

Source: models/CategoryResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CategoryResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Category from './Category' + + + + /** * The CategoryResult model module. * @module models/CategoryResult -* @version 17.8 +* @version 20.4 */ export default class CategoryResult { /** @@ -58,24 +63,16 @@

Source: models/CategoryResult.js

* @alias module:models/CategoryResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of category documents. - * @member {Array.<module:models/Category>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/CategoryResult.js

if (data) { obj = obj || new CategoryResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Category]) + obj.data = ApiClient.convertToType(data.data, [Category]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of category documents. + * @member {Array.<module:models/Category>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/CategoryResult.js


diff --git a/docs/models_Content.js.html b/docs/models_Content.js.html index ab60ed1..0eb80a8 100644 --- a/docs/models_Content.js.html +++ b/docs/models_Content.js.html @@ -27,15 +27,14 @@

Source: models/Content.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Content.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Content model module. * @module models/Content -* @version 17.8 +* @version 20.4 */ export default class Content { /** @@ -58,42 +63,16 @@

Source: models/Content.js

* @class * @param id {String} The id of the content asset. */ + constructor(id) { - /** - * The localized content asset description. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the content asset. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized content asset name. - * @member {String} name - */ - this.name = undefined - - /** - * The localized content asset page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized content asset page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized content asset page title. - * @member {String} page_title - */ - this.page_title = undefined + } /** @@ -107,29 +86,95 @@

Source: models/Content.js

if (data) { obj = obj || new Content() + + + + + if (data.hasOwnProperty('c_Year')) { + obj.c_Year = ApiClient.convertToType(data.c_Year, 'String') + } + if (data.hasOwnProperty('c_body')) { + obj.c_body = ApiClient.convertToType(data.c_body, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } } - return obj } + + /** + * @member {String} c_Year + */ + c_Year = undefined; + /** + * @member {String} c_body + */ + c_body = undefined; + /** + * Use this attribute to apply custom styles for this content asset. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * The localized content asset description. + * @member {String} description + */ + description = undefined; + /** + * The id of the content asset. + * @member {String} id + */ + id = undefined; + /** + * The localized content asset name. + * @member {String} name + */ + name = undefined; + /** + * The localized content asset page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized content asset page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized content asset page title. + * @member {String} page_title + */ + page_title = undefined; + + + + + + + + } + +
@@ -140,7 +185,7 @@

Source: models/Content.js


diff --git a/docs/models_ContentFolder.js.html b/docs/models_ContentFolder.js.html index 56d1566..8b015bf 100644 --- a/docs/models_ContentFolder.js.html +++ b/docs/models_ContentFolder.js.html @@ -27,15 +27,14 @@

Source: models/ContentFolder.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ContentFolder.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ContentFolder model module. * @module models/ContentFolder -* @version 17.8 +* @version 20.4 */ export default class ContentFolder { /** @@ -58,54 +63,16 @@

Source: models/ContentFolder.js

* @class * @param id {String} The id of the content folder. */ + constructor(id) { - /** - * The localized content folder description. - * @member {String} description - */ - this.description = undefined - - /** - * The array of content subfolders. This array can be empty. - * @member {Array.<module:models/ContentFolder>} folders - */ - this.folders = undefined - - /** - * The id of the content folder. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized content folder name. - * @member {String} name - */ - this.name = undefined - - /** - * The localized content folder page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized content folder page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized content folder page title. - * @member {String} page_title - */ - this.page_title = undefined - - /** - * The id of the parent content folder. - * @member {String} parent_folder_id - */ - this.parent_folder_id = undefined + } /** @@ -119,34 +86,94 @@

Source: models/ContentFolder.js

if (data) { obj = obj || new ContentFolder() + + + + + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('folders')) { - obj['folders'] = ApiClient.convertToType(data['folders'], [ContentFolder]) + obj.folders = ApiClient.convertToType(data.folders, [ContentFolder]) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('parent_folder_id')) { - obj['parent_folder_id'] = ApiClient.convertToType(data['parent_folder_id'], 'String') + obj.parent_folder_id = ApiClient.convertToType(data.parent_folder_id, 'String') } } - return obj } + + /** + * Use this attribute to apply custom styles for this category. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * The localized content folder description. + * @member {String} description + */ + description = undefined; + /** + * The array of content subfolders. This array can be empty. + * @member {Array.<module:models/ContentFolder>} folders + */ + folders = undefined; + /** + * The id of the content folder. + * @member {String} id + */ + id = undefined; + /** + * The localized content folder name. + * @member {String} name + */ + name = undefined; + /** + * The localized content folder page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized content folder page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized content folder page title. + * @member {String} page_title + */ + page_title = undefined; + /** + * The id of the parent content folder. + * @member {String} parent_folder_id + */ + parent_folder_id = undefined; + + + + + + + + }
@@ -158,7 +185,7 @@

Source: models/ContentFolder.js


diff --git a/docs/models_ContentFolderResult.js.html b/docs/models_ContentFolderResult.js.html index d911bf3..d3ee0cf 100644 --- a/docs/models_ContentFolderResult.js.html +++ b/docs/models_ContentFolderResult.js.html @@ -27,15 +27,14 @@

Source: models/ContentFolderResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ContentFolderResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentFolder from './ContentFolder' + + + + /** * The ContentFolderResult model module. * @module models/ContentFolderResult -* @version 17.8 +* @version 20.4 */ export default class ContentFolderResult { /** @@ -58,24 +63,16 @@

Source: models/ContentFolderResult.js

* @alias module:models/ContentFolderResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of content folder documents. - * @member {Array.<module:models/ContentFolder>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/ContentFolderResult.js

if (data) { obj = obj || new ContentFolderResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ContentFolder]) + obj.data = ApiClient.convertToType(data.data, [ContentFolder]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of content folder documents. + * @member {Array.<module:models/ContentFolder>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/ContentFolderResult.js


diff --git a/docs/models_ContentResult.js.html b/docs/models_ContentResult.js.html index f310485..0010b46 100644 --- a/docs/models_ContentResult.js.html +++ b/docs/models_ContentResult.js.html @@ -27,15 +27,14 @@

Source: models/ContentResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ContentResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from './Content' + + + + /** * The ContentResult model module. * @module models/ContentResult -* @version 17.8 +* @version 20.4 */ export default class ContentResult { /** @@ -58,24 +63,16 @@

Source: models/ContentResult.js

* @alias module:models/ContentResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of content assets. - * @member {Array.<module:models/Content>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/ContentResult.js

if (data) { obj = obj || new ContentResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Content]) + obj.data = ApiClient.convertToType(data.data, [Content]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of content assets. + * @member {Array.<module:models/Content>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/ContentResult.js


diff --git a/docs/models_ContentSearchRefinement.js.html b/docs/models_ContentSearchRefinement.js.html index 9416774..2d8ff2b 100644 --- a/docs/models_ContentSearchRefinement.js.html +++ b/docs/models_ContentSearchRefinement.js.html @@ -27,15 +27,14 @@

Source: models/ContentSearchRefinement.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ContentSearchRefinement.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ContentSearchRefinementValue from './ContentSearchRefinementValue' + + + + /** * The ContentSearchRefinement model module. * @module models/ContentSearchRefinement -* @version 17.8 +* @version 20.4 */ export default class ContentSearchRefinement { /** @@ -59,24 +64,16 @@

Source: models/ContentSearchRefinement.js

* @class * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". */ + constructor(attributeId) { - /** - * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". - * @member {String} attribute_id - */ + + + + + this.attribute_id = attributeId - /** - * The localized label of the refinement. - * @member {String} label - */ - this.label = undefined - - /** - * The sorted array of refinement values. The array can be empty. - * @member {Array.<module:models/ContentSearchRefinementValue>} values - */ - this.values = undefined + } /** @@ -90,19 +87,49 @@

Source: models/ContentSearchRefinement.js

if (data) { obj = obj || new ContentSearchRefinement() + + + + if (data.hasOwnProperty('attribute_id')) { - obj['attribute_id'] = ApiClient.convertToType(data['attribute_id'], 'String') + obj.attribute_id = ApiClient.convertToType(data.attribute_id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ContentSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ContentSearchRefinementValue]) } } return obj } + + /** + * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\". + * @member {String} attribute_id + */ + attribute_id = undefined; + /** + * The localized label of the refinement. + * @member {String} label + */ + label = undefined; + /** + * The sorted array of refinement values. The array can be empty. + * @member {Array.<module:models/ContentSearchRefinementValue>} values + */ + values = undefined; + + + + + + + + } + +
@@ -113,7 +140,7 @@

Source: models/ContentSearchRefinement.js


diff --git a/docs/models_ContentSearchRefinementValue.js.html b/docs/models_ContentSearchRefinementValue.js.html index 2c81ed4..f911837 100644 --- a/docs/models_ContentSearchRefinementValue.js.html +++ b/docs/models_ContentSearchRefinementValue.js.html @@ -27,15 +27,14 @@

Source: models/ContentSearchRefinementValue.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ContentSearchRefinementValue.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ContentSearchRefinementValue model module. * @module models/ContentSearchRefinementValue -* @version 17.8 +* @version 20.4 */ export default class ContentSearchRefinementValue { /** @@ -57,42 +62,16 @@

Source: models/ContentSearchRefinementValue.js

* @alias module:models/ContentSearchRefinementValue * @class */ + constructor() { - /** - * The localized description of the refinement value. - * @member {String} description - */ - this.description = undefined - - /** - * The number of search hits (0 or more) when selecting the refinement value. - * @member {Number} hit_count - */ - this.hit_count = undefined - - /** - * The localized label of the refinement value. - * @member {String} label - */ - this.label = undefined - - /** - * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. - * @member {String} presentation_id - */ - this.presentation_id = undefined - - /** - * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a content folder refinement, this is the folder id. - * @member {String} value - */ - this.value = undefined - - /** - * The array of hierarchical refinement values. This array can be empty. - * @member {Array.<module:models/ContentSearchRefinementValue>} values - */ - this.values = undefined + + + + + + + + } /** @@ -106,28 +85,70 @@

Source: models/ContentSearchRefinementValue.js

if (data) { obj = obj || new ContentSearchRefinementValue() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('hit_count')) { - obj['hit_count'] = ApiClient.convertToType(data['hit_count'], 'Number') + obj.hit_count = ApiClient.convertToType(data.hit_count, 'Number') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('presentation_id')) { - obj['presentation_id'] = ApiClient.convertToType(data['presentation_id'], 'String') + obj.presentation_id = ApiClient.convertToType(data.presentation_id, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ContentSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ContentSearchRefinementValue]) } } - return obj } + + /** + * The localized description of the refinement value. + * @member {String} description + */ + description = undefined; + /** + * The number of search hits (0 or more) when selecting the refinement value. + * @member {Number} hit_count + */ + hit_count = undefined; + /** + * The localized label of the refinement value. + * @member {String} label + */ + label = undefined; + /** + * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. + * @member {String} presentation_id + */ + presentation_id = undefined; + /** + * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a content folder refinement, this is the folder id. + * @member {String} value + */ + value = undefined; + /** + * The array of hierarchical refinement values. This array can be empty. + * @member {Array.<module:models/ContentSearchRefinementValue>} values + */ + values = undefined; + + + + + + + + }
@@ -139,7 +160,7 @@

Source: models/ContentSearchRefinementValue.js


diff --git a/docs/models_ContentSearchResult.js.html b/docs/models_ContentSearchResult.js.html index 0c1302b..8132e55 100644 --- a/docs/models_ContentSearchResult.js.html +++ b/docs/models_ContentSearchResult.js.html @@ -27,15 +27,14 @@

Source: models/ContentSearchResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/ContentSearchResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Content from './Content' import ContentSearchRefinement from './ContentSearchRefinement' + + + + /** * The ContentSearchResult model module. * @module models/ContentSearchResult -* @version 17.8 +* @version 20.4 */ export default class ContentSearchResult { /** @@ -59,65 +64,16 @@

Source: models/ContentSearchResult.js

* @alias module:models/ContentSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.<Object>} data - */ - this.data = undefined - - /** - * The sorted array of search hits. Can be empty. - * @member {Array.<module:models/Content>} hits - */ - this.hits = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The query String that was searched for. - * @member {String} query - */ - this.query = undefined - - /** - * The sorted array of search refinements. Can be empty. - * @member {Array.<module:models/ContentSearchRefinement>} refinements - */ - this.refinements = undefined - - /** - * Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL. - * @member {Object.<String, String>} selected_refinements - */ - this.selected_refinements = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -131,41 +87,104 @@

Source: models/ContentSearchResult.js

if (data) { obj = obj || new ContentSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [Content]) + obj.hits = ApiClient.convertToType(data.hits, [Content]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } if (data.hasOwnProperty('refinements')) { - obj['refinements'] = ApiClient.convertToType(data['refinements'], [ContentSearchRefinement]) + obj.refinements = ApiClient.convertToType(data.refinements, [ContentSearchRefinement]) } if (data.hasOwnProperty('selected_refinements')) { - obj['selected_refinements'] = ApiClient.convertToType(data['selected_refinements'], {String: 'String'}) + obj.selected_refinements = ApiClient.convertToType(data.selected_refinements, {String: 'String'}) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.<Object>} data + */ + data = undefined; + /** + * The sorted array of search hits. Can be empty. + * @member {Array.<module:models/Content>} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The query String that was searched for. + * @member {String} query + */ + query = undefined; + /** + * The sorted array of search refinements. Can be empty. + * @member {Array.<module:models/ContentSearchRefinement>} refinements + */ + refinements = undefined; + /** + * Map of selected refinement attribute id/value(s) pairs. The sorting order is the same like in request URL. + * @member {Object.<String, String>} selected_refinements + */ + selected_refinements = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -176,7 +195,7 @@

Source: models/ContentSearchResult.js


diff --git a/docs/models_CouponItem.js.html b/docs/models_CouponItem.js.html index 8367bb4..b7d61e5 100644 --- a/docs/models_CouponItem.js.html +++ b/docs/models_CouponItem.js.html @@ -27,15 +27,14 @@

Source: models/CouponItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CouponItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CouponItem model module. * @module models/CouponItem -* @version 17.8 +* @version 20.4 */ export default class CouponItem { /** @@ -58,29 +63,16 @@

Source: models/CouponItem.js

* @class * @param code {String} The coupon code. */ + constructor(code) { - /** - * The coupon code. - * @member {String} code - */ + + + + + this.code = code - /** - * The coupon item id. - * @member {String} coupon_item_id - */ - this.coupon_item_id = undefined - /** - * The status of the coupon item. - * @member {module:models/CouponItem.StatusCodeEnum} status_code - */ - this.status_code = undefined - /** - * A flag indicating whether the coupon item is valid. A coupon line item is valid if the status code is 'applied' or 'no_applicable_promotion'. - * @member {Boolean} valid - */ - this.valid = undefined } /** @@ -94,103 +86,137 @@

Source: models/CouponItem.js

if (data) { obj = obj || new CouponItem() + + + + if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String') + obj.code = ApiClient.convertToType(data.code, 'String') } if (data.hasOwnProperty('coupon_item_id')) { - obj['coupon_item_id'] = ApiClient.convertToType(data['coupon_item_id'], 'String') + obj.coupon_item_id = ApiClient.convertToType(data.coupon_item_id, 'String') } if (data.hasOwnProperty('status_code')) { - obj['status_code'] = ApiClient.convertToType(data['status_code'], 'String') + obj.status_code = ApiClient.convertToType(data.status_code, 'String') } if (data.hasOwnProperty('valid')) { - obj['valid'] = ApiClient.convertToType(data['valid'], 'Boolean') + obj.valid = ApiClient.convertToType(data.valid, 'Boolean') } } - return obj } -} - -/** -* Allowed values for the <code>status_code</code> property. -* @enum {String} -* @readonly -*/ -CouponItem.StatusCodeEnum = { /** - * value: "coupon_code_already_in_basket" - * @const - */ - coupon_code_already_in_basket: 'coupon_code_already_in_basket', - + * The coupon code. + * @member {String} code + */ + code = undefined; /** - * value: "coupon_code_already_redeemed" - * @const - */ - coupon_code_already_redeemed: 'coupon_code_already_redeemed', - + * The coupon item id. + * @member {String} coupon_item_id + */ + coupon_item_id = undefined; /** - * value: "coupon_code_unknown" - * @const - */ - coupon_code_unknown: 'coupon_code_unknown', - + * The status of the coupon item. + * @member {module:models/CouponItem.StatusCodeEnum} status_code + */ + status_code = undefined; /** - * value: "coupon_disabled" - * @const - */ - coupon_disabled: 'coupon_disabled', + * A flag indicating whether the coupon item is valid. A coupon line item is valid if the status code is 'applied' or 'no_applicable_promotion'. + * @member {Boolean} valid + */ + valid = undefined; - /** - * value: "redemption_limit_exceeded" - * @const - */ - redemption_limit_exceeded: 'redemption_limit_exceeded', - /** - * value: "customer_redemption_limit_exceeded" - * @const - */ - customer_redemption_limit_exceeded: 'customer_redemption_limit_exceeded', - /** - * value: "timeframe_redemption_limit_exceeded" - * @const - */ - timeframe_redemption_limit_exceeded: 'timeframe_redemption_limit_exceeded', - /** - * value: "no_active_promotion" - * @const - */ - no_active_promotion: 'no_active_promotion', - /** - * value: "coupon_already_in_basket" - * @const - */ - coupon_already_in_basket: 'coupon_already_in_basket', /** - * value: "no_applicable_promotion" - * @const - */ - no_applicable_promotion: 'no_applicable_promotion', + * Allowed values for the <code>status_code</code> property. + * @enum {String} + * @readonly + */ + static StatusCodeEnum = { + + /** + * value: "coupon_code_already_in_basket" + * @const + */ + coupon_code_already_in_basket: 'coupon_code_already_in_basket', + + /** + * value: "coupon_code_already_redeemed" + * @const + */ + coupon_code_already_redeemed: 'coupon_code_already_redeemed', + + /** + * value: "coupon_code_unknown" + * @const + */ + coupon_code_unknown: 'coupon_code_unknown', + + /** + * value: "coupon_disabled" + * @const + */ + coupon_disabled: 'coupon_disabled', + + /** + * value: "redemption_limit_exceeded" + * @const + */ + redemption_limit_exceeded: 'redemption_limit_exceeded', + + /** + * value: "customer_redemption_limit_exceeded" + * @const + */ + customer_redemption_limit_exceeded: 'customer_redemption_limit_exceeded', + + /** + * value: "timeframe_redemption_limit_exceeded" + * @const + */ + timeframe_redemption_limit_exceeded: 'timeframe_redemption_limit_exceeded', + + /** + * value: "no_active_promotion" + * @const + */ + no_active_promotion: 'no_active_promotion', + + /** + * value: "coupon_already_in_basket" + * @const + */ + coupon_already_in_basket: 'coupon_already_in_basket', + + /** + * value: "no_applicable_promotion" + * @const + */ + no_applicable_promotion: 'no_applicable_promotion', + + /** + * value: "applied" + * @const + */ + applied: 'applied', + + /** + * value: "adhoc" + * @const + */ + adhoc: 'adhoc' + }; + - /** - * value: "applied" - * @const - */ - applied: 'applied', - /** - * value: "adhoc" - * @const - */ - adhoc: 'adhoc' } + +
@@ -201,7 +227,7 @@

Source: models/CouponItem.js


diff --git a/docs/models_CustomObject.js.html b/docs/models_CustomObject.js.html index e8e994d..9ee8688 100644 --- a/docs/models_CustomObject.js.html +++ b/docs/models_CustomObject.js.html @@ -27,15 +27,14 @@

Source: models/CustomObject.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomObject.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomObject model module. * @module models/CustomObject -* @version 17.8 +* @version 20.4 */ export default class CustomObject { /** @@ -57,30 +62,16 @@

Source: models/CustomObject.js

* @alias module:models/CustomObject * @class */ + constructor() { - /** - * The name of the key property for the custom object. - * @member {String} key_property - */ - this.key_property = undefined - - /** - * The id of the custom object when the type of the key is Integer. - * @member {Number} key_value_integer - */ - this.key_value_integer = undefined - - /** - * The id of the custom object when the type of the key is String. - * @member {String} key_value_string - */ - this.key_value_string = undefined - - /** - * The id of the object type. - * @member {String} object_type - */ - this.object_type = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/CustomObject.js

if (data) { obj = obj || new CustomObject() + + + + if (data.hasOwnProperty('key_property')) { - obj['key_property'] = ApiClient.convertToType(data['key_property'], 'String') + obj.key_property = ApiClient.convertToType(data.key_property, 'String') } if (data.hasOwnProperty('key_value_integer')) { - obj['key_value_integer'] = ApiClient.convertToType(data['key_value_integer'], 'Number') + obj.key_value_integer = ApiClient.convertToType(data.key_value_integer, 'Number') } if (data.hasOwnProperty('key_value_string')) { - obj['key_value_string'] = ApiClient.convertToType(data['key_value_string'], 'String') + obj.key_value_string = ApiClient.convertToType(data.key_value_string, 'String') } if (data.hasOwnProperty('object_type')) { - obj['object_type'] = ApiClient.convertToType(data['object_type'], 'String') + obj.object_type = ApiClient.convertToType(data.object_type, 'String') } } - return obj } + + /** + * The name of the key property for the custom object. + * @member {String} key_property + */ + key_property = undefined; + /** + * The id of the custom object when the type of the key is Integer. + * @member {Number} key_value_integer + */ + key_value_integer = undefined; + /** + * The id of the custom object when the type of the key is String. + * @member {String} key_value_string + */ + key_value_string = undefined; + /** + * The id of the object type. + * @member {String} object_type + */ + object_type = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/CustomObject.js


diff --git a/docs/models_Customer.js.html b/docs/models_Customer.js.html index f553a3e..348b877 100644 --- a/docs/models_Customer.js.html +++ b/docs/models_Customer.js.html @@ -27,15 +27,14 @@

Source: models/Customer.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/Customer.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddress from './CustomerAddress' import CustomerPaymentInstrument from './CustomerPaymentInstrument' + + + + /** * The Customer model module. * @module models/Customer -* @version 17.8 +* @version 20.4 */ export default class Customer { /** @@ -59,186 +64,16 @@

Source: models/Customer.js

* @alias module:models/Customer * @class */ - constructor() { - /** - * The customer's addresses. - * @member {Array.<module:models/CustomerAddress>} addresses - */ - this.addresses = undefined - - /** - * The customer's authorization type (indicates if the customer is a guest or a registered customer). - * @member {module:models/Customer.AuthTypeEnum} auth_type - */ - this.auth_type = undefined - - /** - * The customer's birthday. - * @member {Date} birthday - */ - this.birthday = undefined - - /** - * The customer's company name. - * @member {String} company_name - */ - this.company_name = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The customer's number (id). Both registered and guest customers have a customer id. - * @member {String} customer_id - */ - this.customer_id = undefined - - /** - * The customer's number (id). Only a registered customer has a customer number. - * @member {String} customer_no - */ - this.customer_no = undefined - - /** - * The customer's email address. - * @member {String} email - */ - this.email = undefined - - /** - * A flag indicating whether this customer is is enabled and can log in. - * @member {Boolean} enabled - */ - this.enabled = undefined - - /** - * The customer's fax number. The length is restricted to 32 characters. - * @member {String} fax - */ - this.fax = undefined - - /** - * The customer's first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The customer's gender. - * @member {module:models/Customer.GenderEnum} gender - */ - this.gender = undefined - - /** - * The customer's job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * The time when the customer last logged in. - * @member {Date} last_login_time - */ - this.last_login_time = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The customer's last name. - * @member {String} last_name - */ - this.last_name = undefined - /** - * The time when the customer last visited. - * @member {Date} last_visit_time - */ - this.last_visit_time = undefined - - /** - * The customer's login. - * @member {String} login - */ - this.login = undefined - - /** - * The customer's note. - * @member {String} note - */ - this.note = undefined - - /** - * The customer's payment instruments. - * @member {Array.<module:models/CustomerPaymentInstrument>} payment_instruments - */ - this.payment_instruments = undefined - - /** - * The customer's business phone number. - * @member {String} phone_business - */ - this.phone_business = undefined - - /** - * The customer's home phone number. - * @member {String} phone_home - */ - this.phone_home = undefined + constructor() { - /** - * The customer's mobile phone number. - * @member {String} phone_mobile - */ - this.phone_mobile = undefined - /** - * The customer's preferred locale. - * @member {String} preferred_locale - */ - this.preferred_locale = undefined - /** - * The time when the customer logged in previously. - * @member {Date} previous_login_time - */ - this.previous_login_time = undefined - /** - * The time when the customer last visited the store. - * @member {Date} previous_visit_time - */ - this.previous_visit_time = undefined - /** - * The salutation to use for the customer. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The customer's second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The customer's suffix (for example, \"Jr.\" or \"Sr.\"). - * @member {String} suffix - */ - this.suffix = undefined - /** - * The customer's title (for example, \"Mrs\" or \"Mr\"). - * @member {String} title - */ - this.title = undefined } /** @@ -253,141 +88,311 @@

Source: models/Customer.js

obj = obj || new Customer() + + + if (data.hasOwnProperty('addresses')) { - obj['addresses'] = ApiClient.convertToType(data['addresses'], [CustomerAddress]) + obj.addresses = ApiClient.convertToType(data.addresses, [CustomerAddress]) } if (data.hasOwnProperty('auth_type')) { - obj['auth_type'] = ApiClient.convertToType(data['auth_type'], 'String') + obj.auth_type = ApiClient.convertToType(data.auth_type, 'String') } if (data.hasOwnProperty('birthday')) { - obj['birthday'] = ApiClient.convertToType(data['birthday'], 'Date') + obj.birthday = ApiClient.convertToType(data.birthday, 'Date') + } + if (data.hasOwnProperty('c_familyStatus')) { + obj.c_familyStatus = ApiClient.convertToType(data.c_familyStatus, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String') + obj.customer_id = ApiClient.convertToType(data.customer_id, 'String') } if (data.hasOwnProperty('customer_no')) { - obj['customer_no'] = ApiClient.convertToType(data['customer_no'], 'String') + obj.customer_no = ApiClient.convertToType(data.customer_no, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean') + obj.enabled = ApiClient.convertToType(data.enabled, 'Boolean') } if (data.hasOwnProperty('fax')) { - obj['fax'] = ApiClient.convertToType(data['fax'], 'String') + obj.fax = ApiClient.convertToType(data.fax, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('gender')) { - obj['gender'] = ApiClient.convertToType(data['gender'], 'Number') + obj.gender = ApiClient.convertToType(data.gender, 'Number') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_login_time')) { - obj['last_login_time'] = ApiClient.convertToType(data['last_login_time'], 'Date') + obj.last_login_time = ApiClient.convertToType(data.last_login_time, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('last_visit_time')) { - obj['last_visit_time'] = ApiClient.convertToType(data['last_visit_time'], 'Date') + obj.last_visit_time = ApiClient.convertToType(data.last_visit_time, 'Date') } if (data.hasOwnProperty('login')) { - obj['login'] = ApiClient.convertToType(data['login'], 'String') + obj.login = ApiClient.convertToType(data.login, 'String') } if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String') + obj.note = ApiClient.convertToType(data.note, 'String') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [CustomerPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [CustomerPaymentInstrument]) } if (data.hasOwnProperty('phone_business')) { - obj['phone_business'] = ApiClient.convertToType(data['phone_business'], 'String') + obj.phone_business = ApiClient.convertToType(data.phone_business, 'String') } if (data.hasOwnProperty('phone_home')) { - obj['phone_home'] = ApiClient.convertToType(data['phone_home'], 'String') + obj.phone_home = ApiClient.convertToType(data.phone_home, 'String') } if (data.hasOwnProperty('phone_mobile')) { - obj['phone_mobile'] = ApiClient.convertToType(data['phone_mobile'], 'String') + obj.phone_mobile = ApiClient.convertToType(data.phone_mobile, 'String') } if (data.hasOwnProperty('preferred_locale')) { - obj['preferred_locale'] = ApiClient.convertToType(data['preferred_locale'], 'String') + obj.preferred_locale = ApiClient.convertToType(data.preferred_locale, 'String') } if (data.hasOwnProperty('previous_login_time')) { - obj['previous_login_time'] = ApiClient.convertToType(data['previous_login_time'], 'Date') + obj.previous_login_time = ApiClient.convertToType(data.previous_login_time, 'Date') } if (data.hasOwnProperty('previous_visit_time')) { - obj['previous_visit_time'] = ApiClient.convertToType(data['previous_visit_time'], 'Date') + obj.previous_visit_time = ApiClient.convertToType(data.previous_visit_time, 'Date') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>auth_type</code> property. -* @enum {String} -* @readonly -*/ -Customer.AuthTypeEnum = { /** - * value: "guest" - * @const - */ - guest: 'guest', - + * The customer's addresses. + * @member {Array.<module:models/CustomerAddress>} addresses + */ + addresses = undefined; /** - * value: "registered" - * @const - */ - registered: 'registered' -} + * The customer's authorization type (indicates if the customer is a guest or a registered customer). + * @member {module:models/Customer.AuthTypeEnum} auth_type + */ + auth_type = undefined; + /** + * The customer's birthday. + * @member {Date} birthday + */ + birthday = undefined; + /** + * @member {String} c_familyStatus + */ + c_familyStatus = undefined; + /** + * The customer's company name. + * @member {String} company_name + */ + company_name = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The customer's number (id). Both registered and guest customers have a customer id. + * @member {String} customer_id + */ + customer_id = undefined; + /** + * The customer's number (id). Only a registered customer has a customer number. + * @member {String} customer_no + */ + customer_no = undefined; + /** + * The customer's email address. + * @member {String} email + */ + email = undefined; + /** + * A flag indicating whether this customer is is enabled and can log in. + * @member {Boolean} enabled + */ + enabled = undefined; + /** + * The customer's fax number. The length is restricted to 32 characters. + * @member {String} fax + */ + fax = undefined; + /** + * The customer's first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The customer's gender. + * @member {module:models/Customer.GenderEnum} gender + */ + gender = undefined; + /** + * The customer's job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * The time when the customer last logged in. + * @member {Date} last_login_time + */ + last_login_time = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The customer's last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The time when the customer last visited. + * @member {Date} last_visit_time + */ + last_visit_time = undefined; + /** + * The customer's login. + * @member {String} login + */ + login = undefined; + /** + * The customer's note. + * @member {String} note + */ + note = undefined; + /** + * The customer's payment instruments. + * @member {Array.<module:models/CustomerPaymentInstrument>} payment_instruments + */ + payment_instruments = undefined; + /** + * The customer's business phone number. + * @member {String} phone_business + */ + phone_business = undefined; + /** + * The customer's home phone number. + * @member {String} phone_home + */ + phone_home = undefined; + /** + * The customer's mobile phone number. + * @member {String} phone_mobile + */ + phone_mobile = undefined; + /** + * The customer's preferred locale. + * @member {String} preferred_locale + */ + preferred_locale = undefined; + /** + * The time when the customer logged in previously. + * @member {Date} previous_login_time + */ + previous_login_time = undefined; + /** + * The time when the customer last visited the store. + * @member {Date} previous_visit_time + */ + previous_visit_time = undefined; + /** + * The salutation to use for the customer. + * @member {String} salutation + */ + salutation = undefined; + /** + * The customer's second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The customer's suffix (for example, \"Jr.\" or \"Sr.\"). + * @member {String} suffix + */ + suffix = undefined; + /** + * The customer's title (for example, \"Mrs\" or \"Mr\"). + * @member {String} title + */ + title = undefined; + + + + -/** -* Allowed values for the <code>gender</code> property. -* @enum {Number} -* @readonly -*/ -Customer.GenderEnum = { /** - * value: 1 - * @const - */ - 1: 1, + * Allowed values for the <code>auth_type</code> property. + * @enum {String} + * @readonly + */ + static AuthTypeEnum = { + + /** + * value: "guest" + * @const + */ + guest: 'guest', + + /** + * value: "registered" + * @const + */ + registered: 'registered' + }; /** - * value: 2 - * @const - */ - 2: 2 + * Allowed values for the <code>gender</code> property. + * @enum {Number} + * @readonly + */ + static GenderEnum = { + + /** + * value: 1 + * @const + */ + 1: 1, + + /** + * value: 2 + * @const + */ + 2: 2 + }; + + + } + +
@@ -398,7 +403,7 @@

Source: models/Customer.js


diff --git a/docs/models_CustomerAddress.js.html b/docs/models_CustomerAddress.js.html index d5df303..41399ec 100644 --- a/docs/models_CustomerAddress.js.html +++ b/docs/models_CustomerAddress.js.html @@ -27,15 +27,14 @@

Source: models/CustomerAddress.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerAddress.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerAddress model module. * @module models/CustomerAddress -* @version 17.8 +* @version 20.4 */ export default class CustomerAddress { /** @@ -57,138 +62,16 @@

Source: models/CustomerAddress.js

* @alias module:models/CustomerAddress * @class */ - constructor() { - /** - * The first address. - * @member {String} address1 - */ - this.address1 = undefined - - /** - * The second address. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The id of the address as specified by account owner. - * @member {String} address_id - */ - this.address_id = undefined - - /** - * The city. - * @member {String} city - */ - this.city = undefined - - /** - * The company name. - * @member {String} company_name - */ - this.company_name = undefined - - /** - * The two-letter ISO 3166-1 (Alpha-2) country code. - * @member {module:models/CustomerAddress.CountryCodeEnum} country_code - */ - this.country_code = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The full name. - * @member {String} full_name - */ - this.full_name = undefined - - /** - * The job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The last name. - * @member {String} last_name - */ - this.last_name = undefined - /** - * The phone number. - * @member {String} phone - */ - this.phone = undefined + constructor() { - /** - * The post box. - * @member {String} post_box - */ - this.post_box = undefined - /** - * The postal code. - * @member {String} postal_code - */ - this.postal_code = undefined - /** - * The preferred attribute. - * @member {Boolean} preferred - */ - this.preferred = undefined - /** - * The salutation. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The state code. - * @member {String} state_code - */ - this.state_code = undefined - - /** - * The suffix. - * @member {String} suffix - */ - this.suffix = undefined - /** - * The suite. - * @member {String} suite - */ - this.suite = undefined - /** - * The title. - * @member {String} title - */ - this.title = undefined } /** @@ -203,121 +86,244 @@

Source: models/CustomerAddress.js

obj = obj || new CustomerAddress() + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') } if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('full_name')) { - obj['full_name'] = ApiClient.convertToType(data['full_name'], 'String') + obj.full_name = ApiClient.convertToType(data.full_name, 'String') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('post_box')) { - obj['post_box'] = ApiClient.convertToType(data['post_box'], 'String') + obj.post_box = ApiClient.convertToType(data.post_box, 'String') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('preferred')) { - obj['preferred'] = ApiClient.convertToType(data['preferred'], 'Boolean') + obj.preferred = ApiClient.convertToType(data.preferred, 'Boolean') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('suite')) { - obj['suite'] = ApiClient.convertToType(data['suite'], 'String') + obj.suite = ApiClient.convertToType(data.suite, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>country_code</code> property. -* @enum {String} -* @readonly -*/ -CustomerAddress.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address. + * @member {String} address1 + */ + address1 = undefined; /** - * value: "FR" - * @const - */ - FR: 'FR', - + * The second address. + * @member {String} address2 + */ + address2 = undefined; /** - * value: "IT" - * @const - */ - IT: 'IT', - + * The id of the address as specified by account owner. + * @member {String} address_id + */ + address_id = undefined; /** - * value: "JP" - * @const - */ - JP: 'JP', - + * The city. + * @member {String} city + */ + city = undefined; /** - * value: "CN" - * @const - */ - CN: 'CN', + * The company name. + * @member {String} company_name + */ + company_name = undefined; + /** + * The two-letter ISO 3166-1 (Alpha-2) country code. + * @member {module:models/CustomerAddress.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The full name. + * @member {String} full_name + */ + full_name = undefined; + /** + * The job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The phone number. + * @member {String} phone + */ + phone = undefined; + /** + * The post box. + * @member {String} post_box + */ + post_box = undefined; + /** + * The postal code. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The preferred attribute. + * @member {Boolean} preferred + */ + preferred = undefined; + /** + * The salutation. + * @member {String} salutation + */ + salutation = undefined; + /** + * The second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The state code. + * @member {String} state_code + */ + state_code = undefined; + /** + * The suffix. + * @member {String} suffix + */ + suffix = undefined; + /** + * The suite. + * @member {String} suite + */ + suite = undefined; + /** + * The title. + * @member {String} title + */ + title = undefined; + + + + + /** - * value: "GB" - * @const - */ - GB: 'GB' + * Allowed values for the <code>country_code</code> property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "FR" + * @const + */ + FR: 'FR', + + /** + * value: "IT" + * @const + */ + IT: 'IT', + + /** + * value: "JP" + * @const + */ + JP: 'JP', + + /** + * value: "CN" + * @const + */ + CN: 'CN', + + /** + * value: "GB" + * @const + */ + GB: 'GB' + }; + + + } + +
@@ -328,7 +334,7 @@

Source: models/CustomerAddress.js


diff --git a/docs/models_CustomerAddressLink.js.html b/docs/models_CustomerAddressLink.js.html index 2520959..9386069 100644 --- a/docs/models_CustomerAddressLink.js.html +++ b/docs/models_CustomerAddressLink.js.html @@ -27,15 +27,14 @@

Source: models/CustomerAddressLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerAddressLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerAddressLink model module. * @module models/CustomerAddressLink -* @version 17.8 +* @version 20.4 */ export default class CustomerAddressLink { /** @@ -57,24 +62,16 @@

Source: models/CustomerAddressLink.js

* @alias module:models/CustomerAddressLink * @class */ + constructor() { - /** - * The id of the address. - * @member {String} address_id - */ - this.address_id = undefined - - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -88,20 +85,49 @@

Source: models/CustomerAddressLink.js

if (data) { obj = obj || new CustomerAddressLink() + + + + if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The id of the address. + * @member {String} address_id + */ + address_id = undefined; + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + +
@@ -112,7 +138,7 @@

Source: models/CustomerAddressLink.js


diff --git a/docs/models_CustomerAddressResult.js.html b/docs/models_CustomerAddressResult.js.html index aba4416..26b2fd6 100644 --- a/docs/models_CustomerAddressResult.js.html +++ b/docs/models_CustomerAddressResult.js.html @@ -27,15 +27,14 @@

Source: models/CustomerAddressResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerAddressResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddress from './CustomerAddress' + + + + /** * The CustomerAddressResult model module. * @module models/CustomerAddressResult -* @version 17.8 +* @version 20.4 */ export default class CustomerAddressResult { /** @@ -58,48 +63,16 @@

Source: models/CustomerAddressResult.js

* @alias module:models/CustomerAddressResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of customer address documents. - * @member {Array.<module:models/CustomerAddress>} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * - * @member {String} select - */ - this.select = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -113,32 +86,81 @@

Source: models/CustomerAddressResult.js

if (data) { obj = obj || new CustomerAddressResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerAddress]) + obj.data = ApiClient.convertToType(data.data, [CustomerAddress]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of customer address documents. + * @member {Array.<module:models/CustomerAddress>} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * + * @member {String} select + */ + select = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -149,7 +171,7 @@

Source: models/CustomerAddressResult.js


diff --git a/docs/models_CustomerInfo.js.html b/docs/models_CustomerInfo.js.html index 9cff599..86e7ee6 100644 --- a/docs/models_CustomerInfo.js.html +++ b/docs/models_CustomerInfo.js.html @@ -27,15 +27,14 @@

Source: models/CustomerInfo.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerInfo.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerInfo model module. * @module models/CustomerInfo -* @version 17.8 +* @version 20.4 */ export default class CustomerInfo { /** @@ -58,30 +63,16 @@

Source: models/CustomerInfo.js

* @class * @param email {String} The customer's email address. */ + constructor(email) { - /** - * The customer's number (id). - * @member {String} customer_id - */ - this.customer_id = undefined - - /** - * - * @member {String} customer_name - */ - this.customer_name = undefined - - /** - * The customer's number (id). - * @member {String} customer_no - */ - this.customer_no = undefined - - /** - * The customer's email address. - * @member {String} email - */ + + + + + this.email = email + + } /** @@ -95,23 +86,64 @@

Source: models/CustomerInfo.js

if (data) { obj = obj || new CustomerInfo() + + + + + if (data.hasOwnProperty('c_familyStatus')) { + obj.c_familyStatus = ApiClient.convertToType(data.c_familyStatus, 'String') + } if (data.hasOwnProperty('customer_id')) { - obj['customer_id'] = ApiClient.convertToType(data['customer_id'], 'String') + obj.customer_id = ApiClient.convertToType(data.customer_id, 'String') } if (data.hasOwnProperty('customer_name')) { - obj['customer_name'] = ApiClient.convertToType(data['customer_name'], 'String') + obj.customer_name = ApiClient.convertToType(data.customer_name, 'String') } if (data.hasOwnProperty('customer_no')) { - obj['customer_no'] = ApiClient.convertToType(data['customer_no'], 'String') + obj.customer_no = ApiClient.convertToType(data.customer_no, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } } - return obj } + + /** + * @member {String} c_familyStatus + */ + c_familyStatus = undefined; + /** + * The customer's number (id). + * @member {String} customer_id + */ + customer_id = undefined; + /** + * + * @member {String} customer_name + */ + customer_name = undefined; + /** + * The customer's number (id). + * @member {String} customer_no + */ + customer_no = undefined; + /** + * The customer's email address. + * @member {String} email + */ + email = undefined; + + + + + + + + } + +
@@ -122,7 +154,7 @@

Source: models/CustomerInfo.js


diff --git a/docs/models_CustomerOrderResult.js.html b/docs/models_CustomerOrderResult.js.html index 163b0cd..93ce6a0 100644 --- a/docs/models_CustomerOrderResult.js.html +++ b/docs/models_CustomerOrderResult.js.html @@ -27,15 +27,14 @@

Source: models/CustomerOrderResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerOrderResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Order from './Order' + + + + /** * The CustomerOrderResult model module. * @module models/CustomerOrderResult -* @version 17.8 +* @version 20.4 */ export default class CustomerOrderResult { /** @@ -58,48 +63,16 @@

Source: models/CustomerOrderResult.js

* @alias module:models/CustomerOrderResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of customer order documents. - * @member {Array.<module:models/Order>} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The fields that you want to select. - * @member {String} select - */ - this.select = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -113,32 +86,81 @@

Source: models/CustomerOrderResult.js

if (data) { obj = obj || new CustomerOrderResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Order]) + obj.data = ApiClient.convertToType(data.data, [Order]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of customer order documents. + * @member {Array.<module:models/Order>} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The fields that you want to select. + * @member {String} select + */ + select = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -149,7 +171,7 @@

Source: models/CustomerOrderResult.js


diff --git a/docs/models_CustomerPaymentCardRequest.js.html b/docs/models_CustomerPaymentCardRequest.js.html index 0fa9f6e..1bcab9c 100644 --- a/docs/models_CustomerPaymentCardRequest.js.html +++ b/docs/models_CustomerPaymentCardRequest.js.html @@ -27,15 +27,14 @@

Source: models/CustomerPaymentCardRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerPaymentCardRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerPaymentCardRequest model module. * @module models/CustomerPaymentCardRequest -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentCardRequest { /** @@ -57,60 +62,16 @@

Source: models/CustomerPaymentCardRequest.js

* @alias module:models/CustomerPaymentCardRequest * @class */ + constructor() { - /** - * The payment card type (for example, 'Visa'). - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * The month when the payment card expires. - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * The year when the payment card expires. - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * The payment card holder. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment card issue number. - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * The payment card number. - * @member {String} number - */ - this.number = undefined - - /** - * The payment card valid from month. - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * The payment card valid from year. - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -124,38 +85,97 @@

Source: models/CustomerPaymentCardRequest.js

if (data) { obj = obj || new CustomerPaymentCardRequest() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * The payment card type (for example, 'Visa'). + * @member {String} card_type + */ + card_type = undefined; + /** + * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * The month when the payment card expires. + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * The year when the payment card expires. + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * The payment card holder. + * @member {String} holder + */ + holder = undefined; + /** + * The payment card issue number. + * @member {String} issue_number + */ + issue_number = undefined; + /** + * The payment card number. + * @member {String} number + */ + number = undefined; + /** + * The payment card valid from month. + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * The payment card valid from year. + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + +
@@ -166,7 +186,7 @@

Source: models/CustomerPaymentCardRequest.js


diff --git a/docs/models_CustomerPaymentInstrument.js.html b/docs/models_CustomerPaymentInstrument.js.html index 6a4e179..58f4d30 100644 --- a/docs/models_CustomerPaymentInstrument.js.html +++ b/docs/models_CustomerPaymentInstrument.js.html @@ -27,15 +27,14 @@

Source: models/CustomerPaymentInstrument.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/CustomerPaymentInstrument.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentBankAccount from './PaymentBankAccount' import PaymentCard from './PaymentCard' + + + + /** * The CustomerPaymentInstrument model module. * @module models/CustomerPaymentInstrument -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrument { /** @@ -59,54 +64,16 @@

Source: models/CustomerPaymentInstrument.js

* @alias module:models/CustomerPaymentInstrument * @class */ + constructor() { - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The payment bank account. - * @member {module:models/PaymentBankAccount} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/PaymentCard} payment_card - */ - this.payment_card = undefined - - /** - * The payment instrument ID. - * @member {String} payment_instrument_id - */ - this.payment_instrument_id = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -120,35 +87,89 @@

Source: models/CustomerPaymentInstrument.js

if (data) { obj = obj || new CustomerPaymentInstrument() + + + + if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccount.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccount.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = PaymentCard.constructFromObject(data['payment_card']) + obj.payment_card = PaymentCard.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_instrument_id')) { - obj['payment_instrument_id'] = ApiClient.convertToType(data['payment_instrument_id'], 'String') + obj.payment_instrument_id = ApiClient.convertToType(data.payment_instrument_id, 'String') } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The payment bank account. + * @member {module:models/PaymentBankAccount} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/PaymentCard} payment_card + */ + payment_card = undefined; + /** + * The payment instrument ID. + * @member {String} payment_instrument_id + */ + payment_instrument_id = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + +
@@ -159,7 +180,7 @@

Source: models/CustomerPaymentInstrument.js


diff --git a/docs/models_CustomerPaymentInstrumentRequest.js.html b/docs/models_CustomerPaymentInstrumentRequest.js.html index 68dc9b9..5d3201a 100644 --- a/docs/models_CustomerPaymentInstrumentRequest.js.html +++ b/docs/models_CustomerPaymentInstrumentRequest.js.html @@ -27,15 +27,14 @@

Source: models/CustomerPaymentInstrumentRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/CustomerPaymentInstrumentRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerPaymentCardRequest from './CustomerPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The CustomerPaymentInstrumentRequest model module. * @module models/CustomerPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrumentRequest { /** @@ -59,36 +64,16 @@

Source: models/CustomerPaymentInstrumentRequest.js

* @alias module:models/CustomerPaymentInstrumentRequest * @class */ + constructor() { - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The customer payment card. - * @member {module:models/CustomerPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -102,26 +87,65 @@

Source: models/CustomerPaymentInstrumentRequest.js

if (data) { obj = obj || new CustomerPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = CustomerPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = CustomerPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The customer payment card. + * @member {module:models/CustomerPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + +
@@ -132,7 +156,7 @@

Source: models/CustomerPaymentInstrumentRequest.js


diff --git a/docs/models_CustomerPaymentInstrumentResult.js.html b/docs/models_CustomerPaymentInstrumentResult.js.html index 7ad00f1..9cbcbf9 100644 --- a/docs/models_CustomerPaymentInstrumentResult.js.html +++ b/docs/models_CustomerPaymentInstrumentResult.js.html @@ -27,15 +27,14 @@

Source: models/CustomerPaymentInstrumentResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerPaymentInstrumentResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerPaymentInstrument from './CustomerPaymentInstrument' + + + + /** * The CustomerPaymentInstrumentResult model module. * @module models/CustomerPaymentInstrumentResult -* @version 17.8 +* @version 20.4 */ export default class CustomerPaymentInstrumentResult { /** @@ -58,24 +63,16 @@

Source: models/CustomerPaymentInstrumentResult.js

* @alias module:models/CustomerPaymentInstrumentResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The customer payment instruments list. - * @member {Array.<module:models/CustomerPaymentInstrument>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/CustomerPaymentInstrumentResult.js

if (data) { obj = obj || new CustomerPaymentInstrumentResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerPaymentInstrument]) + obj.data = ApiClient.convertToType(data.data, [CustomerPaymentInstrument]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The customer payment instruments list. + * @member {Array.<module:models/CustomerPaymentInstrument>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/CustomerPaymentInstrumentResult.js


diff --git a/docs/models_CustomerProductList.js.html b/docs/models_CustomerProductList.js.html index 31c874c..065a979 100644 --- a/docs/models_CustomerProductList.js.html +++ b/docs/models_CustomerProductList.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductList.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,18 +42,24 @@ 

Source: models/CustomerProductList.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerAddressLink from './CustomerAddressLink' -import CustomerProductListItemLink from './CustomerProductListItemLink' import CustomerProductListItem from './CustomerProductListItem' +import CustomerProductListItemLink from './CustomerProductListItemLink' import CustomerProductListRegistrant from './CustomerProductListRegistrant' import ProductListEvent from './ProductListEvent' import ProductListShippingAddress from './ProductListShippingAddress' + + + + /** * The CustomerProductList model module. * @module models/CustomerProductList -* @version 17.8 +* @version 20.4 */ export default class CustomerProductList { /** @@ -63,102 +68,16 @@

Source: models/CustomerProductList.js

* @alias module:models/CustomerProductList * @class */ - constructor() { - /** - * The coRegistrant of this product list. - * @member {module:models/CustomerProductListRegistrant} co_registrant - */ - this.co_registrant = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - /** - * The resource link to the current shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} current_shipping_address_link - */ - this.current_shipping_address_link = undefined - - /** - * The list of customer product list items. - * @member {Array.<module:models/CustomerProductListItem>} customer_product_list_items - */ - this.customer_product_list_items = undefined - - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - - /** - * The event of this product list. - * @member {module:models/ProductListEvent} event - */ - this.event = undefined - - /** - * The id of this product list. - * @member {String} id - */ - this.id = undefined - - /** - * The resource link to the items of this customer product list. - * @member {module:models/CustomerProductListItemLink} items_link - */ - this.items_link = undefined + constructor() { - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The resource link to the post event shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} post_event_shipping_address_link - */ - this.post_event_shipping_address_link = undefined - /** - * The abbreviated shipping address of this product list representing what anonymous user can see. - * @member {module:models/ProductListShippingAddress} product_list_shipping_address - */ - this.product_list_shipping_address = undefined - /** - * Indicates whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The registrant of this product list. - * @member {module:models/CustomerProductListRegistrant} registrant - */ - this.registrant = undefined - /** - * The resource link to the shipping address of this customer product list. - * @member {module:models/CustomerAddressLink} shipping_address_link - */ - this.shipping_address_link = undefined - /** - * The type of the product list. - * @member {module:models/CustomerProductList.TypeEnum} type - */ - this.type = undefined } /** @@ -172,103 +91,197 @@

Source: models/CustomerProductList.js

if (data) { obj = obj || new CustomerProductList() + + + + if (data.hasOwnProperty('co_registrant')) { - obj['co_registrant'] = CustomerProductListRegistrant.constructFromObject(data['co_registrant']) + obj.co_registrant = CustomerProductListRegistrant.constructFromObject(data.co_registrant) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('current_shipping_address_link')) { - obj['current_shipping_address_link'] = CustomerAddressLink.constructFromObject(data['current_shipping_address_link']) + obj.current_shipping_address_link = CustomerAddressLink.constructFromObject(data.current_shipping_address_link) } if (data.hasOwnProperty('customer_product_list_items')) { - obj['customer_product_list_items'] = ApiClient.convertToType(data['customer_product_list_items'], [CustomerProductListItem]) + obj.customer_product_list_items = ApiClient.convertToType(data.customer_product_list_items, [CustomerProductListItem]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('event')) { - obj['event'] = ProductListEvent.constructFromObject(data['event']) + obj.event = ProductListEvent.constructFromObject(data.event) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('items_link')) { - obj['items_link'] = CustomerProductListItemLink.constructFromObject(data['items_link']) + obj.items_link = CustomerProductListItemLink.constructFromObject(data.items_link) } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('post_event_shipping_address_link')) { - obj['post_event_shipping_address_link'] = CustomerAddressLink.constructFromObject(data['post_event_shipping_address_link']) + obj.post_event_shipping_address_link = CustomerAddressLink.constructFromObject(data.post_event_shipping_address_link) } if (data.hasOwnProperty('product_list_shipping_address')) { - obj['product_list_shipping_address'] = ProductListShippingAddress.constructFromObject(data['product_list_shipping_address']) + obj.product_list_shipping_address = ProductListShippingAddress.constructFromObject(data.product_list_shipping_address) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('registrant')) { - obj['registrant'] = CustomerProductListRegistrant.constructFromObject(data['registrant']) + obj.registrant = CustomerProductListRegistrant.constructFromObject(data.registrant) } if (data.hasOwnProperty('shipping_address_link')) { - obj['shipping_address_link'] = CustomerAddressLink.constructFromObject(data['shipping_address_link']) + obj.shipping_address_link = CustomerAddressLink.constructFromObject(data.shipping_address_link) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -CustomerProductList.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The coRegistrant of this product list. + * @member {module:models/CustomerProductListRegistrant} co_registrant + */ + co_registrant = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The resource link to the current shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} current_shipping_address_link + */ + current_shipping_address_link = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The list of customer product list items. + * @member {Array.<module:models/CustomerProductListItem>} customer_product_list_items + */ + customer_product_list_items = undefined; + /** + * The description of this product list. + * @member {String} description + */ + description = undefined; + /** + * The event of this product list. + * @member {module:models/ProductListEvent} event + */ + event = undefined; + /** + * The id of this product list. + * @member {String} id + */ + id = undefined; + /** + * The resource link to the items of this customer product list. + * @member {module:models/CustomerProductListItemLink} items_link + */ + items_link = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The name of this product list. + * @member {String} name + */ + name = undefined; + /** + * The resource link to the post event shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} post_event_shipping_address_link + */ + post_event_shipping_address_link = undefined; + /** + * The abbreviated shipping address of this product list representing what anonymous user can see. + * @member {module:models/ProductListShippingAddress} product_list_shipping_address + */ + product_list_shipping_address = undefined; + /** + * Indicates whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The registrant of this product list. + * @member {module:models/CustomerProductListRegistrant} registrant + */ + registrant = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The resource link to the shipping address of this customer product list. + * @member {module:models/CustomerAddressLink} shipping_address_link + */ + shipping_address_link = undefined; + /** + * The type of the product list. + * @member {module:models/CustomerProductList.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + +
@@ -279,7 +292,7 @@

Source: models/CustomerProductList.js


diff --git a/docs/models_CustomerProductListItem.js.html b/docs/models_CustomerProductListItem.js.html index 6d4f622..d489d03 100644 --- a/docs/models_CustomerProductListItem.js.html +++ b/docs/models_CustomerProductListItem.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductListItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/CustomerProductListItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' import ProductSimpleLink from './ProductSimpleLink' + + + + /** * The CustomerProductListItem model module. * @module models/CustomerProductListItem -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItem { /** @@ -59,60 +64,16 @@

Source: models/CustomerProductListItem.js

* @alias module:models/CustomerProductListItem * @class */ + constructor() { - /** - * The id of this product list item. - * @member {String} id - */ - this.id = undefined - /** - * The priority of the item. - * @member {Number} priority - */ - this.priority = undefined - /** - * The product item - * @member {module:models/Product} product - */ - this.product = undefined - /** - * A link to the product. - * @member {module:models/ProductSimpleLink} product_details_link - */ - this.product_details_link = undefined - /** - * The id of the product. - * @member {String} product_id - */ - this.product_id = undefined - /** - * Is this product list item available for access by other customers? - * @member {Boolean} public - */ - this.public = undefined - /** - * The quantity of products already purchased. - * @member {Number} purchased_quantity - */ - this.purchased_quantity = undefined - /** - * The quantity of this product list item. - * @member {Number} quantity - */ - this.quantity = undefined - /** - * The type of the item. - * @member {module:models/CustomerProductListItem.TypeEnum} type - */ - this.type = undefined } /** @@ -126,58 +87,117 @@

Source: models/CustomerProductListItem.js

if (data) { obj = obj || new CustomerProductListItem() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductSimpleLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductSimpleLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('purchased_quantity')) { - obj['purchased_quantity'] = ApiClient.convertToType(data['purchased_quantity'], 'Number') + obj.purchased_quantity = ApiClient.convertToType(data.purchased_quantity, 'Number') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -CustomerProductListItem.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of this product list item. + * @member {String} id + */ + id = undefined; + /** + * The priority of the item. + * @member {Number} priority + */ + priority = undefined; + /** + * The product item + * @member {module:models/Product} product + */ + product = undefined; + /** + * A link to the product. + * @member {module:models/ProductSimpleLink} product_details_link + */ + product_details_link = undefined; + /** + * The id of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * Is this product list item available for access by other customers? + * @member {Boolean} public + */ + public = undefined; + /** + * The quantity of products already purchased. + * @member {Number} purchased_quantity + */ + purchased_quantity = undefined; + /** + * The quantity of this product list item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The type of the item. + * @member {module:models/CustomerProductListItem.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + +
@@ -188,7 +208,7 @@

Source: models/CustomerProductListItem.js


diff --git a/docs/models_CustomerProductListItemLink.js.html b/docs/models_CustomerProductListItemLink.js.html index f653796..2e672eb 100644 --- a/docs/models_CustomerProductListItemLink.js.html +++ b/docs/models_CustomerProductListItemLink.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductListItemLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerProductListItemLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerProductListItemLink model module. * @module models/CustomerProductListItemLink -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItemLink { /** @@ -57,18 +62,16 @@

Source: models/CustomerProductListItemLink.js

* @alias module:models/CustomerProductListItemLink * @class */ + constructor() { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -82,17 +85,41 @@

Source: models/CustomerProductListItemLink.js

if (data) { obj = obj || new CustomerProductListItemLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + +
@@ -103,7 +130,7 @@

Source: models/CustomerProductListItemLink.js


diff --git a/docs/models_CustomerProductListItemPurchase.js.html b/docs/models_CustomerProductListItemPurchase.js.html new file mode 100644 index 0000000..fca3244 --- /dev/null +++ b/docs/models_CustomerProductListItemPurchase.js.html @@ -0,0 +1,169 @@ + + + + + JSDoc: Source: models/CustomerProductListItemPurchase.js + + + + + + + + + + +
+ +

Source: models/CustomerProductListItemPurchase.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The CustomerProductListItemPurchase model module.
+* @module models/CustomerProductListItemPurchase
+* @version 20.4
+*/
+export default class CustomerProductListItemPurchase {
+    /**
+    * Constructs a new <code>CustomerProductListItemPurchase</code>.
+    * Document representing a customer product list item purchase.
+    * @alias module:models/CustomerProductListItemPurchase
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>CustomerProductListItemPurchase</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/CustomerProductListItemPurchase} obj Optional instance to populate.
+    * @return {module:models/CustomerProductListItemPurchase} The populated <code>CustomerProductListItemPurchase</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new CustomerProductListItemPurchase()
+
+
+
+
+
+            if (data.hasOwnProperty('id')) {
+                obj.id = ApiClient.convertToType(data.id, 'String')
+            }
+            if (data.hasOwnProperty('order_no')) {
+                obj.order_no = ApiClient.convertToType(data.order_no, 'String')
+            }
+            if (data.hasOwnProperty('product_list_item_id')) {
+                obj.product_list_item_id = ApiClient.convertToType(data.product_list_item_id, 'String')
+            }
+            if (data.hasOwnProperty('purchaser_name')) {
+                obj.purchaser_name = ApiClient.convertToType(data.purchaser_name, 'String')
+            }
+            if (data.hasOwnProperty('quantity')) {
+                obj.quantity = ApiClient.convertToType(data.quantity, 'Number')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The id of this purchase.
+    * @member {String} id
+    */
+    id = undefined;
+    /**
+    * The order number of this purchase.
+    * @member {String} order_no
+    */
+    order_no = undefined;
+    /**
+    * The id of the product list item this purchase relates to.
+    * @member {String} product_list_item_id
+    */
+    product_list_item_id = undefined;
+    /**
+    * The name of the purchaser.
+    * @member {String} purchaser_name
+    */
+    purchaser_name = undefined;
+    /**
+    * The quantity of this product list item purchased.
+    * @member {Number} quantity
+    */
+    quantity = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_CustomerProductListItemPurchaseResult.js.html b/docs/models_CustomerProductListItemPurchaseResult.js.html new file mode 100644 index 0000000..4e5bafc --- /dev/null +++ b/docs/models_CustomerProductListItemPurchaseResult.js.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Source: models/CustomerProductListItemPurchaseResult.js + + + + + + + + + + +
+ +

Source: models/CustomerProductListItemPurchaseResult.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import CustomerProductListItemPurchase from './CustomerProductListItemPurchase'
+
+
+
+
+
+/**
+* The CustomerProductListItemPurchaseResult model module.
+* @module models/CustomerProductListItemPurchaseResult
+* @version 20.4
+*/
+export default class CustomerProductListItemPurchaseResult {
+    /**
+    * Constructs a new <code>CustomerProductListItemPurchaseResult</code>.
+    * Document representing a customer product list purchases result.
+    * @alias module:models/CustomerProductListItemPurchaseResult
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>CustomerProductListItemPurchaseResult</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/CustomerProductListItemPurchaseResult} obj Optional instance to populate.
+    * @return {module:models/CustomerProductListItemPurchaseResult} The populated <code>CustomerProductListItemPurchaseResult</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new CustomerProductListItemPurchaseResult()
+
+
+
+
+
+            if (data.hasOwnProperty('count')) {
+                obj.count = ApiClient.convertToType(data.count, 'Number')
+            }
+            if (data.hasOwnProperty('data')) {
+                obj.data = ApiClient.convertToType(data.data, [CustomerProductListItemPurchase])
+            }
+            if (data.hasOwnProperty('total')) {
+                obj.total = ApiClient.convertToType(data.total, 'Number')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The number of returned documents.
+    * @member {Number} count
+    */
+    count = undefined;
+    /**
+    * The customer product list item purchases.
+    * @member {Array.<module:models/CustomerProductListItemPurchase>} data
+    */
+    data = undefined;
+    /**
+    * The total number of documents.
+    * @member {Number} total
+    */
+    total = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_CustomerProductListItemResult.js.html b/docs/models_CustomerProductListItemResult.js.html index 07950f6..65cf714 100644 --- a/docs/models_CustomerProductListItemResult.js.html +++ b/docs/models_CustomerProductListItemResult.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductListItemResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerProductListItemResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerProductListItem from './CustomerProductListItem' + + + + /** * The CustomerProductListItemResult model module. * @module models/CustomerProductListItemResult -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListItemResult { /** @@ -58,40 +63,16 @@

Source: models/CustomerProductListItemResult.js

* @alias module:models/CustomerProductListItemResult * @class */ + constructor() { - /** - * @member {Number} count - */ - this.count = undefined - - /** - * The customer product list items. - * @member {Array.<module:models/CustomerProductListItem>} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -105,29 +86,71 @@

Source: models/CustomerProductListItemResult.js

if (data) { obj = obj || new CustomerProductListItemResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerProductListItem]) + obj.data = ApiClient.convertToType(data.data, [CustomerProductListItem]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * @member {Number} count + */ + count = undefined; + /** + * The customer product list items. + * @member {Array.<module:models/CustomerProductListItem>} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -138,7 +161,7 @@

Source: models/CustomerProductListItemResult.js


diff --git a/docs/models_CustomerProductListRegistrant.js.html b/docs/models_CustomerProductListRegistrant.js.html index 0d7febb..704deae 100644 --- a/docs/models_CustomerProductListRegistrant.js.html +++ b/docs/models_CustomerProductListRegistrant.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductListRegistrant.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/CustomerProductListRegistrant.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The CustomerProductListRegistrant model module. * @module models/CustomerProductListRegistrant -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListRegistrant { /** @@ -57,30 +62,16 @@

Source: models/CustomerProductListRegistrant.js

* @alias module:models/CustomerProductListRegistrant * @class */ + constructor() { - /** - * The email of the registrant. - * @member {String} email - */ - this.email = undefined - - /** - * The first name of the registrant. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of the registrant. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The role of the registrant. - * @member {String} role - */ - this.role = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/CustomerProductListRegistrant.js

if (data) { obj = obj || new CustomerProductListRegistrant() + + + + if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String') + obj.role = ApiClient.convertToType(data.role, 'String') } } - return obj } + + /** + * The email of the registrant. + * @member {String} email + */ + email = undefined; + /** + * The first name of the registrant. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of the registrant. + * @member {String} last_name + */ + last_name = undefined; + /** + * The role of the registrant. + * @member {String} role + */ + role = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/CustomerProductListRegistrant.js


diff --git a/docs/models_CustomerProductListResult.js.html b/docs/models_CustomerProductListResult.js.html index 89699a7..9edf56b 100644 --- a/docs/models_CustomerProductListResult.js.html +++ b/docs/models_CustomerProductListResult.js.html @@ -27,15 +27,14 @@

Source: models/CustomerProductListResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerProductListResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import CustomerProductList from './CustomerProductList' + + + + /** * The CustomerProductListResult model module. * @module models/CustomerProductListResult -* @version 17.8 +* @version 20.4 */ export default class CustomerProductListResult { /** @@ -58,24 +63,16 @@

Source: models/CustomerProductListResult.js

* @alias module:models/CustomerProductListResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The customer product lists. - * @member {Array.<module:models/CustomerProductList>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/CustomerProductListResult.js

if (data) { obj = obj || new CustomerProductListResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [CustomerProductList]) + obj.data = ApiClient.convertToType(data.data, [CustomerProductList]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The customer product lists. + * @member {Array.<module:models/CustomerProductList>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/CustomerProductListResult.js


diff --git a/docs/models_CustomerRegistration.js.html b/docs/models_CustomerRegistration.js.html index 4492c71..6ca29c4 100644 --- a/docs/models_CustomerRegistration.js.html +++ b/docs/models_CustomerRegistration.js.html @@ -27,15 +27,14 @@

Source: models/CustomerRegistration.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/CustomerRegistration.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Customer from './Customer' + + + + /** * The CustomerRegistration model module. * @module models/CustomerRegistration -* @version 17.8 +* @version 20.4 */ export default class CustomerRegistration { /** @@ -59,18 +64,16 @@

Source: models/CustomerRegistration.js

* @class * @param customer {module:models/Customer} The customer registration information. The mandatory properties for registration are login, last name and email. */ + constructor(customer) { - /** - * The customer registration information. The mandatory properties for registration are login, last name and email. - * @member {module:models/Customer} customer - */ + + + + + this.customer = customer - /** - * The password to authorize. - * @member {String} password - */ - this.password = undefined + } /** @@ -84,17 +87,41 @@

Source: models/CustomerRegistration.js

if (data) { obj = obj || new CustomerRegistration() + + + + if (data.hasOwnProperty('customer')) { - obj['customer'] = Customer.constructFromObject(data['customer']) + obj.customer = Customer.constructFromObject(data.customer) } if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String') + obj.password = ApiClient.convertToType(data.password, 'String') } } - return obj } + + /** + * The customer registration information. The mandatory properties for registration are login, last name and email. + * @member {module:models/Customer} customer + */ + customer = undefined; + /** + * The password to authorize. + * @member {String} password + */ + password = undefined; + + + + + + + + } + +
@@ -105,7 +132,7 @@

Source: models/CustomerRegistration.js


diff --git a/docs/models_Discount.js.html b/docs/models_Discount.js.html index 71a175a..d169075 100644 --- a/docs/models_Discount.js.html +++ b/docs/models_Discount.js.html @@ -27,15 +27,14 @@

Source: models/Discount.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Discount.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Discount model module. * @module models/Discount -* @version 17.8 +* @version 20.4 */ export default class Discount { /** @@ -58,30 +63,16 @@

Source: models/Discount.js

* @class * @param type {module:models/Discount.TypeEnum} The type of discount. */ + constructor(type) { - /** - * The amount that is used with the amount and fixed price types. - * @member {Number} amount - */ - this.amount = undefined - /** - * The percentage that is used with percentage types. - * @member {Number} percentage - */ - this.percentage = undefined - /** - * The price book id that is used with some types. - * @member {String} price_book_id - */ - this.price_book_id = undefined - /** - * The type of discount. - * @member {module:models/Discount.TypeEnum} type - */ + + this.type = type + + } /** @@ -95,84 +86,119 @@

Source: models/Discount.js

if (data) { obj = obj || new Discount() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('percentage')) { - obj['percentage'] = ApiClient.convertToType(data['percentage'], 'Number') + obj.percentage = ApiClient.convertToType(data.percentage, 'Number') } if (data.hasOwnProperty('price_book_id')) { - obj['price_book_id'] = ApiClient.convertToType(data['price_book_id'], 'String') + obj.price_book_id = ApiClient.convertToType(data.price_book_id, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -Discount.TypeEnum = { /** - * value: "percentage" - * @const - */ - percentage: 'percentage', - + * The amount that is used with the amount and fixed price types. + * @member {Number} amount + */ + amount = undefined; /** - * value: "fixed_price" - * @const - */ - fixed_price: 'fixed_price', - + * The percentage that is used with percentage types. + * @member {Number} percentage + */ + percentage = undefined; /** - * value: "amount" - * @const - */ - amount: 'amount', - + * The price book id that is used with some types. + * @member {String} price_book_id + */ + price_book_id = undefined; /** - * value: "free" - * @const - */ - free: 'free', + * The type of discount. + * @member {module:models/Discount.TypeEnum} type + */ + type = undefined; + - /** - * value: "price_book_price" - * @const - */ - price_book_price: 'price_book_price', - /** - * value: "bonus" - * @const - */ - bonus: 'bonus', - /** - * value: "total_fixed_price" - * @const - */ - total_fixed_price: 'total_fixed_price', - /** - * value: "bonus_choice" - * @const - */ - bonus_choice: 'bonus_choice', /** - * value: "percentage_off_options" - * @const - */ - percentage_off_options: 'percentage_off_options' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "percentage" + * @const + */ + percentage: 'percentage', + + /** + * value: "fixed_price" + * @const + */ + fixed_price: 'fixed_price', + + /** + * value: "amount" + * @const + */ + amount: 'amount', + + /** + * value: "free" + * @const + */ + free: 'free', + + /** + * value: "price_book_price" + * @const + */ + price_book_price: 'price_book_price', + + /** + * value: "bonus" + * @const + */ + bonus: 'bonus', + + /** + * value: "total_fixed_price" + * @const + */ + total_fixed_price: 'total_fixed_price', + + /** + * value: "bonus_choice" + * @const + */ + bonus_choice: 'bonus_choice', + + /** + * value: "percentage_off_options" + * @const + */ + percentage_off_options: 'percentage_off_options' + }; + + + } + +
@@ -183,7 +209,7 @@

Source: models/Discount.js


diff --git a/docs/models_DiscountRequest.js.html b/docs/models_DiscountRequest.js.html new file mode 100644 index 0000000..386f4a4 --- /dev/null +++ b/docs/models_DiscountRequest.js.html @@ -0,0 +1,173 @@ + + + + + JSDoc: Source: models/DiscountRequest.js + + + + + + + + + + +
+ +

Source: models/DiscountRequest.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The DiscountRequest model module.
+* @module models/DiscountRequest
+* @version 20.4
+*/
+export default class DiscountRequest {
+    /**
+    * Constructs a new <code>DiscountRequest</code>.
+    * Document representing a discount to be applied to a custom price adjustment. The properties
+    * @alias module:models/DiscountRequest
+    * @class
+    * @param type {module:models/DiscountRequest.TypeEnum} The type of discount.
+    * @param value {Number} The amount of the discount.
+    */
+
+    constructor(type, value) {
+
+
+
+
+
+        this.type = type; this.value = value
+
+
+    }
+
+    /**
+    * Constructs a <code>DiscountRequest</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/DiscountRequest} obj Optional instance to populate.
+    * @return {module:models/DiscountRequest} The populated <code>DiscountRequest</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new DiscountRequest()
+
+
+
+
+
+            if (data.hasOwnProperty('type')) {
+                obj.type = ApiClient.convertToType(data.type, 'String')
+            }
+            if (data.hasOwnProperty('value')) {
+                obj.value = ApiClient.convertToType(data.value, 'Number')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The type of discount.
+    * @member {module:models/DiscountRequest.TypeEnum} type
+    */
+    type = undefined;
+    /**
+    * The amount of the discount.
+    * @member {Number} value
+    */
+    value = undefined;
+
+
+
+
+
+
+    /**
+    * Allowed values for the <code>type</code> property.
+    * @enum {String}
+    * @readonly
+    */
+    static TypeEnum = {
+
+        /**
+         * value: "percentage"
+         * @const
+         */
+        percentage: 'percentage',
+
+        /**
+         * value: "fixed_price"
+         * @const
+         */
+        fixed_price: 'fixed_price',
+
+        /**
+         * value: "amount"
+         * @const
+         */
+        amount: 'amount'
+    };
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_Fault.js.html b/docs/models_Fault.js.html index 34f5d85..9f0f0ad 100644 --- a/docs/models_Fault.js.html +++ b/docs/models_Fault.js.html @@ -27,7 +27,7 @@

Source: models/Fault.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /* eslint-disable dot-notation */
@@ -35,7 +35,7 @@ 

Source: models/Fault.js

* Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -48,7 +48,7 @@

Source: models/Fault.js

/** * The Fault model module. * @module models/Fault -* @version 17.8 +* @version 20.4 */ export default class Fault { /** @@ -114,7 +114,7 @@

Source: models/Fault.js


diff --git a/docs/models_Filter.js.html b/docs/models_Filter.js.html index 8e62886..aca0fe8 100644 --- a/docs/models_Filter.js.html +++ b/docs/models_Filter.js.html @@ -27,7 +27,7 @@

Source: models/Filter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /* eslint-disable dot-notation */
@@ -35,7 +35,7 @@ 

Source: models/Filter.js

* Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -48,7 +48,7 @@

Source: models/Filter.js

/** * The Filter model module. * @module models/Filter -* @version 17.8 +* @version 20.4 */ export default class Filter { /** @@ -122,7 +122,7 @@

Source: models/Filter.js


diff --git a/docs/models_FilteredQuery.js.html b/docs/models_FilteredQuery.js.html index aae82b6..c49cd41 100644 --- a/docs/models_FilteredQuery.js.html +++ b/docs/models_FilteredQuery.js.html @@ -27,15 +27,14 @@

Source: models/FilteredQuery.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,19 @@ 

Source: models/FilteredQuery.js

* Do not edit the class manually. * */ -// import ApiClient from '../ApiClient' + + import Filter from './Filter' import Query from './Query' + + + + /** * The FilteredQuery model module. * @module models/FilteredQuery -* @version 17.8 +* @version 20.4 */ export default class FilteredQuery { /** @@ -63,17 +67,14 @@

Source: models/FilteredQuery.js

*/ constructor(filter, query) { - /** - * The (possibly complex) filter object. - * @member {module:models/Filter} filter - */ - this.filter = filter - - /** - * The query object. - * @member {module:models/Query} query - */ - this.query = query + + + + + + this.filter = filter; this.query = query + + } /** @@ -87,15 +88,38 @@

Source: models/FilteredQuery.js

if (data) { obj = obj || new FilteredQuery() + + + + if (data.hasOwnProperty('filter')) { - obj['filter'] = Filter.constructFromObject(data['filter']) + obj.filter = Filter.constructFromObject(data.filter) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } } return obj } + + /** + * The (possibly complex) filter object. + * @member {module:models/Filter} filter + */ + filter = undefined; + /** + * The query object. + * @member {module:models/Query} query + */ + query = undefined; + + + + + + + + }
@@ -107,7 +131,7 @@

Source: models/FilteredQuery.js


diff --git a/docs/models_GiftCertificate.js.html b/docs/models_GiftCertificate.js.html index 09e4c9c..b07d6eb 100644 --- a/docs/models_GiftCertificate.js.html +++ b/docs/models_GiftCertificate.js.html @@ -27,15 +27,14 @@

Source: models/GiftCertificate.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation *//**
-
+/**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/GiftCertificate.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificate model module. * @module models/GiftCertificate -* @version 17.8 +* @version 20.4 */ export default class GiftCertificate { /** @@ -57,72 +62,16 @@

Source: models/GiftCertificate.js

* @alias module:models/GiftCertificate * @class */ - constructor() { - /** - * The gift certificate original amount. - * @member {Number} amount - */ - this.amount = undefined - /** - * The gift certificate balance. - * @member {Number} balance - */ - this.balance = undefined + constructor() { - /** - * The gift certificate description. - * @member {String} description - */ - this.description = undefined - /** - * Is the gift certificate is enabled? - * @member {Boolean} enabled - */ - this.enabled = undefined - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The merchant ID. - * @member {String} merchant_id - */ - this.merchant_id = undefined - /** - * The message. - * @member {String} message - */ - this.message = undefined - /** - * The recipient email. - * @member {String} recipient_email - */ - this.recipient_email = undefined - /** - * The recipient name. - * @member {String} recipient_name - */ - this.recipient_name = undefined - /** - * The sender name. - * @member {String} sender_name - */ - this.sender_name = undefined - /** - * The gift certificate status. - * @member {module:models/GiftCertificate.StatusEnum} status - */ - this.status = undefined } /** @@ -136,76 +85,145 @@

Source: models/GiftCertificate.js

if (data) { obj = obj || new GiftCertificate() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('balance')) { - obj['balance'] = ApiClient.convertToType(data['balance'], 'Number') + obj.balance = ApiClient.convertToType(data.balance, 'Number') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean') + obj.enabled = ApiClient.convertToType(data.enabled, 'Boolean') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('merchant_id')) { - obj['merchant_id'] = ApiClient.convertToType(data['merchant_id'], 'String') + obj.merchant_id = ApiClient.convertToType(data.merchant_id, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('recipient_email')) { - obj['recipient_email'] = ApiClient.convertToType(data['recipient_email'], 'String') + obj.recipient_email = ApiClient.convertToType(data.recipient_email, 'String') } if (data.hasOwnProperty('recipient_name')) { - obj['recipient_name'] = ApiClient.convertToType(data['recipient_name'], 'String') + obj.recipient_name = ApiClient.convertToType(data.recipient_name, 'String') } if (data.hasOwnProperty('sender_name')) { - obj['sender_name'] = ApiClient.convertToType(data['sender_name'], 'String') + obj.sender_name = ApiClient.convertToType(data.sender_name, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>status</code> property. -* @enum {String} -* @readonly -*/ -GiftCertificate.StatusEnum = { /** - * value: "pending" - * @const - */ - pending: 'pending', - + * The gift certificate original amount. + * @member {Number} amount + */ + amount = undefined; /** - * value: "issued" - * @const - */ - issued: 'issued', - + * The gift certificate balance. + * @member {Number} balance + */ + balance = undefined; /** - * value: "partially_redeemed" - * @const - */ - partially_redeemed: 'partially_redeemed', + * The gift certificate description. + * @member {String} description + */ + description = undefined; + /** + * Is the gift certificate is enabled? + * @member {Boolean} enabled + */ + enabled = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The merchant ID. + * @member {String} merchant_id + */ + merchant_id = undefined; + /** + * The message. + * @member {String} message + */ + message = undefined; + /** + * The recipient email. + * @member {String} recipient_email + */ + recipient_email = undefined; + /** + * The recipient name. + * @member {String} recipient_name + */ + recipient_name = undefined; + /** + * The sender name. + * @member {String} sender_name + */ + sender_name = undefined; + /** + * The gift certificate status. + * @member {module:models/GiftCertificate.StatusEnum} status + */ + status = undefined; + + + + + /** - * value: "redeemed" - * @const - */ - redeemed: 'redeemed' + * Allowed values for the <code>status</code> property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "pending" + * @const + */ + pending: 'pending', + + /** + * value: "issued" + * @const + */ + issued: 'issued', + + /** + * value: "partially_redeemed" + * @const + */ + partially_redeemed: 'partially_redeemed', + + /** + * value: "redeemed" + * @const + */ + redeemed: 'redeemed' + }; + + + } + +
@@ -216,7 +234,7 @@

Source: models/GiftCertificate.js


diff --git a/docs/models_GiftCertificateItem.js.html b/docs/models_GiftCertificateItem.js.html index 595b35f..52327ff 100644 --- a/docs/models_GiftCertificateItem.js.html +++ b/docs/models_GiftCertificateItem.js.html @@ -27,15 +27,14 @@

Source: models/GiftCertificateItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/GiftCertificateItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificateItem model module. * @module models/GiftCertificateItem -* @version 17.8 +* @version 20.4 */ export default class GiftCertificateItem { /** @@ -59,48 +64,16 @@

Source: models/GiftCertificateItem.js

* @param amount {Number} The certificate item amount. * @param recipientEmail {String} The recipient's email. */ + constructor(amount, recipientEmail) { - /** - * The certificate item amount. - * @member {Number} amount - */ - this.amount = amount - - /** - * Id used to identify this item - * @member {String} gift_certificate_item_id - */ - this.gift_certificate_item_id = undefined - - /** - * The certificate's message. - * @member {String} message - */ - this.message = undefined - - /** - * The recipient's email. - * @member {String} recipient_email - */ - this.recipient_email = recipientEmail - - /** - * The recipient's name. - * @member {String} recipient_name - */ - this.recipient_name = undefined - - /** - * The sender's name. - * @member {String} sender_name - */ - this.sender_name = undefined - - /** - * The shipment id. - * @member {String} shipment_id - */ - this.shipment_id = undefined + + + + + + this.amount = amount; this.recipient_email = recipientEmail + + } /** @@ -114,32 +87,81 @@

Source: models/GiftCertificateItem.js

if (data) { obj = obj || new GiftCertificateItem() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('gift_certificate_item_id')) { - obj['gift_certificate_item_id'] = ApiClient.convertToType(data['gift_certificate_item_id'], 'String') + obj.gift_certificate_item_id = ApiClient.convertToType(data.gift_certificate_item_id, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('recipient_email')) { - obj['recipient_email'] = ApiClient.convertToType(data['recipient_email'], 'String') + obj.recipient_email = ApiClient.convertToType(data.recipient_email, 'String') } if (data.hasOwnProperty('recipient_name')) { - obj['recipient_name'] = ApiClient.convertToType(data['recipient_name'], 'String') + obj.recipient_name = ApiClient.convertToType(data.recipient_name, 'String') } if (data.hasOwnProperty('sender_name')) { - obj['sender_name'] = ApiClient.convertToType(data['sender_name'], 'String') + obj.sender_name = ApiClient.convertToType(data.sender_name, 'String') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } } - return obj } + + /** + * The certificate item amount. + * @member {Number} amount + */ + amount = undefined; + /** + * Id used to identify this item + * @member {String} gift_certificate_item_id + */ + gift_certificate_item_id = undefined; + /** + * The certificate's message. + * @member {String} message + */ + message = undefined; + /** + * The recipient's email. + * @member {String} recipient_email + */ + recipient_email = undefined; + /** + * The recipient's name. + * @member {String} recipient_name + */ + recipient_name = undefined; + /** + * The sender's name. + * @member {String} sender_name + */ + sender_name = undefined; + /** + * The shipment id. + * @member {String} shipment_id + */ + shipment_id = undefined; + + + + + + + + } + +
@@ -150,7 +172,7 @@

Source: models/GiftCertificateItem.js


diff --git a/docs/models_GiftCertificateRequest.js.html b/docs/models_GiftCertificateRequest.js.html index 249499d..881d290 100644 --- a/docs/models_GiftCertificateRequest.js.html +++ b/docs/models_GiftCertificateRequest.js.html @@ -27,15 +27,14 @@

Source: models/GiftCertificateRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/GiftCertificateRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The GiftCertificateRequest model module. * @module models/GiftCertificateRequest -* @version 17.8 +* @version 20.4 */ export default class GiftCertificateRequest { /** @@ -57,12 +62,16 @@

Source: models/GiftCertificateRequest.js

* @alias module:models/GiftCertificateRequest * @class */ + constructor() { - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined + + + + + + + + } /** @@ -76,14 +85,33 @@

Source: models/GiftCertificateRequest.js

if (data) { obj = obj || new GiftCertificateRequest() + + + + if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } } - return obj } + + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + + + + + + + + } + +
@@ -94,7 +122,7 @@

Source: models/GiftCertificateRequest.js


diff --git a/docs/models_Image.js.html b/docs/models_Image.js.html index 3b2a5b8..2937f9f 100644 --- a/docs/models_Image.js.html +++ b/docs/models_Image.js.html @@ -27,15 +27,14 @@

Source: models/Image.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Image.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Image model module. * @module models/Image -* @version 17.8 +* @version 20.4 */ export default class Image { /** @@ -57,26 +62,16 @@

Source: models/Image.js

* @class * @param link {String} */ + constructor(link) { - /** - * @member {String} alt - */ - this.alt = undefined - - /** - * @member {String} dis_base_link - */ - this.dis_base_link = undefined - - /** - * @member {String} link - */ + + + + + this.link = link - /** - * @member {String} title - */ - this.title = undefined + } /** @@ -90,23 +85,53 @@

Source: models/Image.js

if (data) { obj = obj || new Image() + + + + if (data.hasOwnProperty('alt')) { - obj['alt'] = ApiClient.convertToType(data['alt'], 'String') + obj.alt = ApiClient.convertToType(data.alt, 'String') } if (data.hasOwnProperty('dis_base_link')) { - obj['dis_base_link'] = ApiClient.convertToType(data['dis_base_link'], 'String') + obj.dis_base_link = ApiClient.convertToType(data.dis_base_link, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * @member {String} alt + */ + alt = undefined; + /** + * @member {String} dis_base_link + */ + dis_base_link = undefined; + /** + * @member {String} link + */ + link = undefined; + /** + * @member {String} title + */ + title = undefined; + + + + + + + + } + +
@@ -117,7 +142,7 @@

Source: models/Image.js


diff --git a/docs/models_ImageGroup.js.html b/docs/models_ImageGroup.js.html index e1f3a87..ff82b40 100644 --- a/docs/models_ImageGroup.js.html +++ b/docs/models_ImageGroup.js.html @@ -27,15 +27,14 @@

Source: models/ImageGroup.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/ImageGroup.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' import VariationAttribute from './VariationAttribute' + + + + /** * The ImageGroup model module. * @module models/ImageGroup -* @version 17.8 +* @version 20.4 */ export default class ImageGroup { /** @@ -59,24 +64,16 @@

Source: models/ImageGroup.js

* @alias module:models/ImageGroup * @class */ + constructor() { - /** - * The images of the image group. - * @member {Array.<module:models/Image>} images - */ - this.images = undefined - - /** - * Returns a list of variation attributes applying to this image group. - * @member {Array.<module:models/VariationAttribute>} variation_attributes - */ - this.variation_attributes = undefined - - /** - * The image view type. - * @member {String} view_type - */ - this.view_type = undefined + + + + + + + + } /** @@ -90,20 +87,49 @@

Source: models/ImageGroup.js

if (data) { obj = obj || new ImageGroup() + + + + if (data.hasOwnProperty('images')) { - obj['images'] = ApiClient.convertToType(data['images'], [Image]) + obj.images = ApiClient.convertToType(data.images, [Image]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } if (data.hasOwnProperty('view_type')) { - obj['view_type'] = ApiClient.convertToType(data['view_type'], 'String') + obj.view_type = ApiClient.convertToType(data.view_type, 'String') } } - return obj } + + /** + * The images of the image group. + * @member {Array.<module:models/Image>} images + */ + images = undefined; + /** + * Returns a list of variation attributes applying to this image group. + * @member {Array.<module:models/VariationAttribute>} variation_attributes + */ + variation_attributes = undefined; + /** + * The image view type. + * @member {String} view_type + */ + view_type = undefined; + + + + + + + + } + +
@@ -114,7 +140,7 @@

Source: models/ImageGroup.js


diff --git a/docs/models_Inventory.js.html b/docs/models_Inventory.js.html index b9c72f6..dc20276 100644 --- a/docs/models_Inventory.js.html +++ b/docs/models_Inventory.js.html @@ -27,15 +27,14 @@

Source: models/Inventory.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Inventory.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Inventory model module. * @module models/Inventory -* @version 17.8 +* @version 20.4 */ export default class Inventory { /** @@ -58,48 +63,16 @@

Source: models/Inventory.js

* @class * @param id {String} The inventory id. */ + constructor(id) { - /** - * The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.ats.max_threshold'. - * @member {Number} ats - */ - this.ats = undefined - - /** - * A flag indicating whether the product is back orderable. - * @member {Boolean} backorderable - */ - this.backorderable = undefined - - /** - * The inventory id. - * @member {String} id - */ + + + + + this.id = id - /** - * A flag indicating the date when the product will be in stock. - * @member {Date} in_stock_date - */ - this.in_stock_date = undefined - - /** - * A flag indicating whether at least one of products is available to sell. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * A flag indicating whether the product is pre orderable. - * @member {Boolean} preorderable - */ - this.preorderable = undefined - - /** - * The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.stock_level.max_threshold'. - * @member {Number} stock_level - */ - this.stock_level = undefined + } /** @@ -113,32 +86,81 @@

Source: models/Inventory.js

if (data) { obj = obj || new Inventory() + + + + if (data.hasOwnProperty('ats')) { - obj['ats'] = ApiClient.convertToType(data['ats'], 'Number') + obj.ats = ApiClient.convertToType(data.ats, 'Number') } if (data.hasOwnProperty('backorderable')) { - obj['backorderable'] = ApiClient.convertToType(data['backorderable'], 'Boolean') + obj.backorderable = ApiClient.convertToType(data.backorderable, 'Boolean') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('in_stock_date')) { - obj['in_stock_date'] = ApiClient.convertToType(data['in_stock_date'], 'Date') + obj.in_stock_date = ApiClient.convertToType(data.in_stock_date, 'Date') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('preorderable')) { - obj['preorderable'] = ApiClient.convertToType(data['preorderable'], 'Boolean') + obj.preorderable = ApiClient.convertToType(data.preorderable, 'Boolean') } if (data.hasOwnProperty('stock_level')) { - obj['stock_level'] = ApiClient.convertToType(data['stock_level'], 'Number') + obj.stock_level = ApiClient.convertToType(data.stock_level, 'Number') } } - return obj } + + /** + * The ats of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.ats.max_threshold'. + * @member {Number} ats + */ + ats = undefined; + /** + * A flag indicating whether the product is back orderable. + * @member {Boolean} backorderable + */ + backorderable = undefined; + /** + * The inventory id. + * @member {String} id + */ + id = undefined; + /** + * A flag indicating the date when the product will be in stock. + * @member {Date} in_stock_date + */ + in_stock_date = undefined; + /** + * A flag indicating whether at least one of products is available to sell. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * A flag indicating whether the product is pre orderable. + * @member {Boolean} preorderable + */ + preorderable = undefined; + /** + * The stock level of the product. If it is infinity, the return value is 999999. The value can be overwritten by the OCAPI setting 'product.inventory.stock_level.max_threshold'. + * @member {Number} stock_level + */ + stock_level = undefined; + + + + + + + + } + +
@@ -149,7 +171,7 @@

Source: models/Inventory.js


diff --git a/docs/models_Locale.js.html b/docs/models_Locale.js.html index 8b5dc9e..0cb1cf7 100644 --- a/docs/models_Locale.js.html +++ b/docs/models_Locale.js.html @@ -27,15 +27,14 @@

Source: models/Locale.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation *//**
-
+/**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Locale.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Locale model module. * @module models/Locale -* @version 17.8 +* @version 20.4 */ export default class Locale { /** @@ -57,75 +62,16 @@

Source: models/Locale.js

* @alias module:models/Locale * @class */ + constructor() { - /** - * The country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code. - * @member {String} country - */ - this.country = undefined - - /** - * Flag that is true if the locale is the default one to use if an explicit locale is not specified. - * @member {Boolean} default - */ - this.default = undefined - - /** - * The name for the Locale's country that is appropriate for display to the user, or an empty - * string if no country has been specified for the Locale. The display country is returned - * in the language defined for this locale, and not in the language of the session locale. - * @member {String} display_country - */ - this.display_country = undefined - - /** - * The name for the Locale's language that is appropriate for display to the user, or an - * empty string if no language has been specified for the Locale. The display language is - * returned in the language defined for this locale, and not in the language of the session locale. - * @member {String} display_language - */ - this.display_language = undefined - - /** - * The name for the Locale that is appropriate for display to the user, or an empty string if - * no display name has been specified for the Locale. The display name is returned in the - * language defined for this locale, and not in the language of the session locale. - * @member {String} display_name - */ - this.display_name = undefined - - /** - * The identifier of the Locale. Contains a combination of the language and the country key, - * concatenated by \"-\", e.g. \"en-US\". This attribute is the primary key of the class. - * @member {String} id - */ - this.id = undefined - - /** - * The three-letter abbreviation for this Locale's country, or an empty string if no country - * has been specified for the Locale. - * @member {String} iso3_country - */ - this.iso3_country = undefined - - /** - * The three-letter abbreviation for this Locale's language, or an empty string if no - * language has been specified for the Locale. - * @member {String} iso3_language - */ - this.iso3_language = undefined - - /** - * The language code for this Locale, which will either be the empty string or a lowercase ISO 639 code. - * @member {String} language - */ - this.language = undefined - - /** - * The display name of the Locale. This uses the current request locale to localize the value. - * @member {String} name - */ - this.name = undefined + + + + + + + + } /** @@ -139,41 +85,105 @@

Source: models/Locale.js

if (data) { obj = obj || new Locale() + + + + if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String') + obj.country = ApiClient.convertToType(data.country, 'String') } if (data.hasOwnProperty('default')) { - obj['default'] = ApiClient.convertToType(data['default'], 'Boolean') + obj.default = ApiClient.convertToType(data.default, 'Boolean') } if (data.hasOwnProperty('display_country')) { - obj['display_country'] = ApiClient.convertToType(data['display_country'], 'String') + obj.display_country = ApiClient.convertToType(data.display_country, 'String') } if (data.hasOwnProperty('display_language')) { - obj['display_language'] = ApiClient.convertToType(data['display_language'], 'String') + obj.display_language = ApiClient.convertToType(data.display_language, 'String') } if (data.hasOwnProperty('display_name')) { - obj['display_name'] = ApiClient.convertToType(data['display_name'], 'String') + obj.display_name = ApiClient.convertToType(data.display_name, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('iso3_country')) { - obj['iso3_country'] = ApiClient.convertToType(data['iso3_country'], 'String') + obj.iso3_country = ApiClient.convertToType(data.iso3_country, 'String') } if (data.hasOwnProperty('iso3_language')) { - obj['iso3_language'] = ApiClient.convertToType(data['iso3_language'], 'String') + obj.iso3_language = ApiClient.convertToType(data.iso3_language, 'String') } if (data.hasOwnProperty('language')) { - obj['language'] = ApiClient.convertToType(data['language'], 'String') + obj.language = ApiClient.convertToType(data.language, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } } - return obj } + + /** + * The country/region code for this Locale, which will either be the empty string or an upercase ISO 3166 2-letter code. + * @member {String} country + */ + country = undefined; + /** + * Flag that is true if the locale is the default one to use if an explicit locale is not specified. + * @member {Boolean} default + */ + default = undefined; + /** + * The name for the Locale's country that is appropriate for display to the user, or an empty string if no country has been specified for the Locale. The display country is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_country + */ + display_country = undefined; + /** + * The name for the Locale's language that is appropriate for display to the user, or an empty string if no language has been specified for the Locale. The display language is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_language + */ + display_language = undefined; + /** + * The name for the Locale that is appropriate for display to the user, or an empty string if no display name has been specified for the Locale. The display name is returned in the language defined for this locale, and not in the language of the session locale. + * @member {String} display_name + */ + display_name = undefined; + /** + * The identifier of the Locale. Contains a combination of the language and the country key, concatenated by \"-\", e.g. \"en-US\". This attribute is the primary key of the class. + * @member {String} id + */ + id = undefined; + /** + * The three-letter abbreviation for this Locale's country, or an empty string if no country has been specified for the Locale. + * @member {String} iso3_country + */ + iso3_country = undefined; + /** + * The three-letter abbreviation for this Locale's language, or an empty string if no language has been specified for the Locale. + * @member {String} iso3_language + */ + iso3_language = undefined; + /** + * The language code for this Locale, which will either be the empty string or a lowercase ISO 639 code. + * @member {String} language + */ + language = undefined; + /** + * The display name of the Locale. This uses the current request locale to localize the value. + * @member {String} name + */ + name = undefined; + + + + + + + + } + +
@@ -184,7 +194,7 @@

Source: models/Locale.js


diff --git a/docs/models_Master.js.html b/docs/models_Master.js.html index 5c38353..93351dc 100644 --- a/docs/models_Master.js.html +++ b/docs/models_Master.js.html @@ -27,15 +27,14 @@

Source: models/Master.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Master.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Master model module. * @module models/Master -* @version 17.8 +* @version 20.4 */ export default class Master { /** @@ -58,36 +63,16 @@

Source: models/Master.js

* @param link {String} * @param masterId {String} */ + constructor(link, masterId) { - /** - * @member {String} link - */ - this.link = link - - /** - * @member {String} master_id - */ - this.master_id = masterId - - /** - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * @member {Number} price - */ - this.price = undefined - - /** - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * @member {Object.<String, Number>} prices - */ - this.prices = undefined + + + + + + this.link = link; this.master_id = masterId + + } /** @@ -101,29 +86,67 @@

Source: models/Master.js

if (data) { obj = obj || new Master() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('master_id')) { - obj['master_id'] = ApiClient.convertToType(data['master_id'], 'String') + obj.master_id = ApiClient.convertToType(data.master_id, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } } - return obj } + + /** + * @member {String} link + */ + link = undefined; + /** + * @member {String} master_id + */ + master_id = undefined; + /** + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * @member {Number} price + */ + price = undefined; + /** + * @member {Number} price_max + */ + price_max = undefined; + /** + * @member {Object.<String, Number>} prices + */ + prices = undefined; + + + + + + + + } + +
@@ -134,7 +157,7 @@

Source: models/Master.js


diff --git a/docs/models_NestedQuery.js.html b/docs/models_NestedQuery.js.html index 37db924..7cdd5ae 100644 --- a/docs/models_NestedQuery.js.html +++ b/docs/models_NestedQuery.js.html @@ -27,15 +27,14 @@

Source: models/NestedQuery.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,43 +42,39 @@ 

Source: models/NestedQuery.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' + + + + /** * The NestedQuery model module. * @module models/NestedQuery -* @version 17.8 +* @version 20.4 */ export default class NestedQuery { /** * Constructs a new <code>NestedQuery</code>. - * Nested query allows to query upon nested documents that are part of a larger document. The classical - * example is a product master with variants (in one big document) where you want to constraint a search - * to masters that have variants that match multiple constraints (like color &#x3D; blue AND size &#x3D; M). + * A nested query queries nested documents that are part of a larger document. The classical example is a product master with variants (in one big document) where you want to constrain a search to masters that have variants that match multiple constraints (like color &#x3D; blue AND size &#x3D; M). This query is not compatible with some search types. * @alias module:models/NestedQuery * @class * @param path {String} * @param query {module:models/Query} */ + constructor(path, query) { - /** - * - * @member {String} path - */ - this.path = path - /** - * - * @member {module:models/Query} query - */ - this.query = query - /** - * - * @member {module:models/NestedQuery.ScoreModeEnum} score_mode - */ - this.score_mode = undefined + + + + this.path = path; this.query = query + + } /** @@ -93,52 +88,81 @@

Source: models/NestedQuery.js

if (data) { obj = obj || new NestedQuery() + + + + if (data.hasOwnProperty('path')) { - obj['path'] = ApiClient.convertToType(data['path'], 'String') + obj.path = ApiClient.convertToType(data.path, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('score_mode')) { - obj['score_mode'] = ApiClient.convertToType(data['score_mode'], 'String') + obj.score_mode = ApiClient.convertToType(data.score_mode, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>score_mode</code> property. -* @enum {String} -* @readonly -*/ -NestedQuery.ScoreModeEnum = { /** - * value: "avg" - * @const - */ - avg: 'avg', - + * + * @member {String} path + */ + path = undefined; /** - * value: "total" - * @const - */ - total: 'total', - + * + * @member {module:models/Query} query + */ + query = undefined; /** - * value: "max" - * @const - */ - max: 'max', + * + * @member {module:models/NestedQuery.ScoreModeEnum} score_mode + */ + score_mode = undefined; + + + + + /** - * value: "none" - * @const - */ - none: 'none' + * Allowed values for the <code>score_mode</code> property. + * @enum {String} + * @readonly + */ + static ScoreModeEnum = { + + /** + * value: "avg" + * @const + */ + avg: 'avg', + + /** + * value: "total" + * @const + */ + total: 'total', + + /** + * value: "max" + * @const + */ + max: 'max', + + /** + * value: "none" + * @const + */ + none: 'none' + }; + + + } + +
@@ -149,7 +173,7 @@

Source: models/NestedQuery.js


diff --git a/docs/models_Note.js.html b/docs/models_Note.js.html index 90ccbfa..ab1de7f 100644 --- a/docs/models_Note.js.html +++ b/docs/models_Note.js.html @@ -27,15 +27,14 @@

Source: models/Note.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Note.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Note model module. * @module models/Note -* @version 17.8 +* @version 20.4 */ export default class Note { /** @@ -57,36 +62,16 @@

Source: models/Note.js

* @alias module:models/Note * @class */ + constructor() { - /** - * The author of the note. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * The creation date of the note. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ID of the note. - * @member {String} id - */ - this.id = undefined - - /** - * The note's subject. - * @member {String} subject - */ - this.subject = undefined - - /** - * The note's text. - * @member {String} text - */ - this.text = undefined + + + + + + + + } /** @@ -100,26 +85,65 @@

Source: models/Note.js

if (data) { obj = obj || new Note() + + + + if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String') + obj.subject = ApiClient.convertToType(data.subject, 'String') } if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'String') + obj.text = ApiClient.convertToType(data.text, 'String') } } - return obj } + + /** + * The author of the note. + * @member {String} created_by + */ + created_by = undefined; + /** + * The creation date of the note. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * The ID of the note. + * @member {String} id + */ + id = undefined; + /** + * The note's subject. + * @member {String} subject + */ + subject = undefined; + /** + * The note's text. + * @member {String} text + */ + text = undefined; + + + + + + + + } + +
@@ -130,7 +154,7 @@

Source: models/Note.js


diff --git a/docs/models_NotesResult.js.html b/docs/models_NotesResult.js.html index 9419b22..c228cf2 100644 --- a/docs/models_NotesResult.js.html +++ b/docs/models_NotesResult.js.html @@ -27,15 +27,14 @@

Source: models/NotesResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/NotesResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Note from './Note' + + + + /** * The NotesResult model module. * @module models/NotesResult -* @version 17.8 +* @version 20.4 */ export default class NotesResult { /** @@ -58,12 +63,16 @@

Source: models/NotesResult.js

* @alias module:models/NotesResult * @class */ + constructor() { - /** - * The notes for an object. - * @member {Array.<module:models/Note>} notes - */ - this.notes = undefined + + + + + + + + } /** @@ -77,14 +86,33 @@

Source: models/NotesResult.js

if (data) { obj = obj || new NotesResult() + + + + if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], [Note]) + obj.notes = ApiClient.convertToType(data.notes, [Note]) } } - return obj } + + /** + * The notes for an object. + * @member {Array.<module:models/Note>} notes + */ + notes = undefined; + + + + + + + + } + +
@@ -95,7 +123,7 @@

Source: models/NotesResult.js


diff --git a/docs/models_Option.js.html b/docs/models_Option.js.html index 4313c40..c6c7526 100644 --- a/docs/models_Option.js.html +++ b/docs/models_Option.js.html @@ -27,15 +27,14 @@

Source: models/Option.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/Option.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OptionValue from './OptionValue' + + + + /** * The Option model module. * @module models/Option -* @version 17.8 +* @version 20.4 */ export default class Option { /** @@ -59,36 +64,16 @@

Source: models/Option.js

* @class * @param id {String} The id of the option. */ + constructor(id) { - /** - * The localized description of the option. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the option. - * @member {String} id - */ + + + + + this.id = id - /** - * The URL to the option image. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the option. - * @member {String} name - */ - this.name = undefined - - /** - * The array of option values. This array can be empty. - * @member {Array.<module:models/OptionValue>} values - */ - this.values = undefined + } /** @@ -103,26 +88,64 @@

Source: models/Option.js

obj = obj || new Option() + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [OptionValue]) + obj.values = ApiClient.convertToType(data.values, [OptionValue]) } } - return obj } + + /** + * The localized description of the option. + * @member {String} description + */ + description = undefined; + /** + * The id of the option. + * @member {String} id + */ + id = undefined; + /** + * The URL to the option image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the option. + * @member {String} name + */ + name = undefined; + /** + * The array of option values. This array can be empty. + * @member {Array.<module:models/OptionValue>} values + */ + values = undefined; + + + + + + + + } + +
@@ -133,7 +156,7 @@

Source: models/Option.js


diff --git a/docs/models_OptionItem.js.html b/docs/models_OptionItem.js.html index 522237e..677c3a6 100644 --- a/docs/models_OptionItem.js.html +++ b/docs/models_OptionItem.js.html @@ -27,15 +27,14 @@

Source: models/OptionItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,15 +42,21 @@ 

Source: models/OptionItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustment from './PriceAdjustment' import ProductItem from './ProductItem' import ProductListItemReference from './ProductListItemReference' + + + + /** * The OptionItem model module. * @module models/OptionItem -* @version 17.8 +* @version 20.4 */ export default class OptionItem { /** @@ -64,181 +69,14 @@

Source: models/OptionItem.js

*/ constructor(optionId, optionValueId) { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before - * applying adjustments, in the purchase currency. The base price may be - * net or gross of tax depending on the configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - - /** - * The id of the bonus discount line item this bonus product relates to. - * @member {String} bonus_discount_line_item_id - */ - this.bonus_discount_line_item_id = undefined - - /** - * A flag indicating whether the product item is a bonus. - * @member {Boolean} bonus_product_line_item - */ - this.bonus_product_line_item = undefined - - /** - * The array of bundled product items. Can be empty. - * @member {Array.<module:models/ProductItem>} bundled_product_items - */ - this.bundled_product_items = undefined - - /** - * Returns true if the item is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The inventory list id associated with this item. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The item identifier. Use this to identify an item when updating the item - * quantity or creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The id of the option. - * @member {String} option_id - */ - this.option_id = optionId - - /** - * The array of option items. This array can be empty. - * @member {Array.<module:models/OptionItem>} option_items - */ - this.option_items = undefined - - /** - * The id of the option value. - * @member {String} option_value_id - */ - this.option_value_id = optionValueId - - /** - * The price of the line item before applying any adjustments. If the line - * item is based on net pricing then the net price is returned. If the - * line item is based on gross pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.<module:models/PriceAdjustment>} price_adjustments - */ - this.price_adjustments = undefined - - /** - * The price of the product line item after applying all product-level - * adjustments. For net pricing the adjusted net price is returned. For - * gross pricing, the adjusted gross price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined - - /** - * The price of this product line item after considering all dependent - * price adjustments and prorating all order-level price adjustments. For - * net pricing the net price is returned. For gross pricing, the gross price - * is returned. - * @member {Number} price_after_order_discount - */ - this.price_after_order_discount = undefined - - /** - * - * @member {String} product_id - */ - this.product_id = undefined - - /** - * - * @member {module:models/ProductListItemReference} product_list_item - */ - this.product_list_item = undefined - - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The quantity of the products represented by this item. - * @member {Number} quantity - */ - this.quantity = undefined - - /** - * The id of the shipment which includes the product item. - * @member {String} shipment_id - */ - this.shipment_id = undefined - - /** - * The reference to the related shipping item if it exists. This is the - * case if for example when a surcharge is defined for individual products - * using a particular a shipping method. - * @member {String} shipping_item_id - */ - this.shipping_item_id = undefined - - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined - - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - - /** - * The tax class ID for the product item or null if no tax class ID is - * associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product - * represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined + + + + + + this.option_id = optionId; this.option_value_id = optionValueId + + } /** @@ -252,91 +90,238 @@

Source: models/OptionItem.js

if (data) { obj = obj || new OptionItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('bonus_discount_line_item_id')) { - obj['bonus_discount_line_item_id'] = ApiClient.convertToType(data['bonus_discount_line_item_id'], 'String') + obj.bonus_discount_line_item_id = ApiClient.convertToType(data.bonus_discount_line_item_id, 'String') } if (data.hasOwnProperty('bonus_product_line_item')) { - obj['bonus_product_line_item'] = ApiClient.convertToType(data['bonus_product_line_item'], 'Boolean') + obj.bonus_product_line_item = ApiClient.convertToType(data.bonus_product_line_item, 'Boolean') } if (data.hasOwnProperty('bundled_product_items')) { - obj['bundled_product_items'] = ApiClient.convertToType(data['bundled_product_items'], [ProductItem]) + obj.bundled_product_items = ApiClient.convertToType(data.bundled_product_items, [ProductItem]) } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('option_id')) { - obj['option_id'] = ApiClient.convertToType(data['option_id'], 'String') + obj.option_id = ApiClient.convertToType(data.option_id, 'String') } if (data.hasOwnProperty('option_items')) { - obj['option_items'] = ApiClient.convertToType(data['option_items'], [OptionItem]) + obj.option_items = ApiClient.convertToType(data.option_items, [OptionItem]) } if (data.hasOwnProperty('option_value_id')) { - obj['option_value_id'] = ApiClient.convertToType(data['option_value_id'], 'String') + obj.option_value_id = ApiClient.convertToType(data.option_value_id, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('price_after_order_discount')) { - obj['price_after_order_discount'] = ApiClient.convertToType(data['price_after_order_discount'], 'Number') + obj.price_after_order_discount = ApiClient.convertToType(data.price_after_order_discount, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_list_item')) { - obj['product_list_item'] = ProductListItemReference.constructFromObject(data['product_list_item']) + obj.product_list_item = ProductListItemReference.constructFromObject(data.product_list_item) } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipping_item_id')) { - obj['shipping_item_id'] = ApiClient.convertToType(data['shipping_item_id'], 'String') + obj.shipping_item_id = ApiClient.convertToType(data.shipping_item_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The id of the bonus discount line item this bonus product relates to. + * @member {String} bonus_discount_line_item_id + */ + bonus_discount_line_item_id = undefined; + /** + * A flag indicating whether the product item is a bonus. + * @member {Boolean} bonus_product_line_item + */ + bonus_product_line_item = undefined; + /** + * The array of bundled product items. Can be empty. + * @member {Array.<module:models/ProductItem>} bundled_product_items + */ + bundled_product_items = undefined; + /** + * Returns true if the item is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The inventory list id associated with this item. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The id of the option. + * @member {String} option_id + */ + option_id = undefined; + /** + * The array of option items. This array can be empty. + * @member {Array.<module:models/OptionItem>} option_items + */ + option_items = undefined; + /** + * The id of the option value. + * @member {String} option_value_id + */ + option_value_id = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.<module:models/PriceAdjustment>} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The price of this product line item after considering all dependent price adjustments and prorating all order-level price adjustments. For net pricing the net price is returned. For gross pricing, the gross price is returned. + * @member {Number} price_after_order_discount + */ + price_after_order_discount = undefined; + /** + * + * @member {String} product_id + */ + product_id = undefined; + /** + * + * @member {module:models/ProductListItemReference} product_list_item + */ + product_list_item = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The quantity of the products represented by this item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The id of the shipment which includes the product item. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The reference to the related shipping item if it exists. This is the case if for example when a surcharge is defined for individual products using a particular a shipping method. + * @member {String} shipping_item_id + */ + shipping_item_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + }
@@ -348,7 +333,7 @@

Source: models/OptionItem.js


diff --git a/docs/models_OptionValue.js.html b/docs/models_OptionValue.js.html index 1c4eda2..f8a08f0 100644 --- a/docs/models_OptionValue.js.html +++ b/docs/models_OptionValue.js.html @@ -27,15 +27,14 @@

Source: models/OptionValue.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/OptionValue.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OptionValue model module. * @module models/OptionValue -* @version 17.8 +* @version 20.4 */ export default class OptionValue { /** @@ -58,30 +63,16 @@

Source: models/OptionValue.js

* @class * @param id {String} The id of the option value. */ + constructor(id) { - /** - * A flag indicating whether this option value is the default one. - * @member {Boolean} default - */ - this.default = undefined - - /** - * The id of the option value. - * @member {String} id - */ + + + + + this.id = id - /** - * The localized name of the option value. - * @member {String} name - */ - this.name = undefined - - /** - * The effective price of this option value. - * @member {Number} price - */ - this.price = undefined + } /** @@ -95,23 +86,57 @@

Source: models/OptionValue.js

if (data) { obj = obj || new OptionValue() + + + + if (data.hasOwnProperty('default')) { - obj['default'] = ApiClient.convertToType(data['default'], 'Boolean') + obj.default = ApiClient.convertToType(data.default, 'Boolean') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } } - return obj } + + /** + * A flag indicating whether this option value is the default one. + * @member {Boolean} default + */ + default = undefined; + /** + * The id of the option value. + * @member {String} id + */ + id = undefined; + /** + * The localized name of the option value. + * @member {String} name + */ + name = undefined; + /** + * The effective price of this option value. + * @member {Number} price + */ + price = undefined; + + + + + + + + } + +
@@ -122,7 +147,7 @@

Source: models/OptionValue.js


diff --git a/docs/models_Order.js.html b/docs/models_Order.js.html index 3e7bfcf..f3b3813 100644 --- a/docs/models_Order.js.html +++ b/docs/models_Order.js.html @@ -27,15 +27,14 @@

Source: models/Order.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,6 +42,8 @@ 

Source: models/Order.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BonusDiscountLineItem from './BonusDiscountLineItem' import CouponItem from './CouponItem' @@ -56,10 +57,14 @@

Source: models/Order.js

import ShippingItem from './ShippingItem' import SimpleLink from './SimpleLink' + + + + /** * The Order model module. * @module models/Order -* @version 17.8 +* @version 20.4 */ export default class Order { /** @@ -68,233 +73,16 @@

Source: models/Order.js

* @alias module:models/Order * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - - /** - * The billing address. This property is part of basket checkout information only. - * @member {module:models/OrderAddress} billing_address - */ - this.billing_address = undefined - - /** - * The bonus discount line items of the line item container. - * @member {Array.<module:models/BonusDiscountLineItem>} bonus_discount_line_items - */ - this.bonus_discount_line_items = undefined - - /** - * The sales channel for the order. - * @member {module:models/Order.ChannelTypeEnum} channel_type - */ - this.channel_type = undefined - - /** - * The confirmation status of the order. - * @member {module:models/Order.ConfirmationStatusEnum} confirmation_status - */ - this.confirmation_status = undefined - - /** - * The sorted array of coupon items. This array can be empty. - * @member {Array.<module:models/CouponItem>} coupon_items - */ - this.coupon_items = undefined - - /** - * The name of the user who created the order. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The customer information for logged in customers. This property is part of basket checkout information only. - * @member {module:models/CustomerInfo} customer_info - */ - this.customer_info = undefined - - /** - * The name of the customer associated with this order. - * @member {String} customer_name - */ - this.customer_name = undefined - - /** - * The export status of the order. - * @member {module:models/Order.ExportStatusEnum} export_status - */ - this.export_status = undefined - /** - * The external status of the order. - * @member {String} external_order_status - */ - this.external_order_status = undefined - - /** - * The sorted array of gift certificate line items. This array can be empty. - * @member {Array.<module:models/GiftCertificateItem>} gift_certificate_items - */ - this.gift_certificate_items = undefined - - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The notes for the line item container. - * @member {module:models/SimpleLink} notes - */ - this.notes = undefined - - /** - * The order number of the order. - * @member {String} order_no - */ - this.order_no = undefined - - /** - * The array of order level price adjustments. This array can be empty. - * @member {Array.<module:models/PriceAdjustment>} order_price_adjustments - */ - this.order_price_adjustments = undefined - - /** - * The order token used to secure the lookup of an order on base of the plain order number. The order token contains only URL safe characters. - * @member {String} order_token - */ - this.order_token = undefined - - /** - * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. - * @member {Number} order_total - */ - this.order_total = undefined - - /** - * The payment instruments list for the order. - * @member {Array.<module:models/OrderPaymentInstrument>} payment_instruments - */ - this.payment_instruments = undefined - - /** - * The payment status of the order. - * @member {module:models/Order.PaymentStatusEnum} payment_status - */ - this.payment_status = undefined - - /** - * The sorted array of product items (up to a maximum of 50 items). This array can be empty. - * @member {Array.<module:models/ProductItem>} product_items - */ - this.product_items = undefined - - /** - * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined - - /** - * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - - /** - * The array of shipments. This property is part of basket checkout information only. - * @member {Array.<module:models/Shipment>} shipments - */ - this.shipments = undefined - - /** - * The sorted array of shipping items. This array can be empty. - * @member {Array.<module:models/ShippingItem>} shipping_items - */ - this.shipping_items = undefined + constructor() { - /** - * The shipping status of the order. - * @member {module:models/Order.ShippingStatusEnum} shipping_status - */ - this.shipping_status = undefined - /** - * The total shipping price of the order after all shipping discounts. Excludes tax if - * taxation policy is net. Includes tax if taxation policy is gross. This property is part - * of basket checkout information only. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - /** - * The tax of all shipping line items of the line item container before shipping adjustments - * have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - /** - * The site where the order resides. - * @member {String} site_id - */ - this.site_id = undefined - /** - * Gets the source code assigned to this basket. - * @member {String} source_code - */ - this.source_code = undefined - /** - * The status of the order. - * @member {module:models/Order.StatusEnum} status - */ - this.status = undefined - /** - * The total tax amount of the order. This property is part of basket checkout information only. - * @member {Number} tax_total - */ - this.tax_total = undefined - /** - * The taxation the line item container is based on. - * @member {module:models/Order.TaxationEnum} taxation - */ - this.taxation = undefined } /** @@ -308,376 +96,583 @@

Source: models/Order.js

if (data) { obj = obj || new Order() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') } if (data.hasOwnProperty('billing_address')) { - obj['billing_address'] = OrderAddress.constructFromObject(data['billing_address']) + obj.billing_address = OrderAddress.constructFromObject(data.billing_address) } if (data.hasOwnProperty('bonus_discount_line_items')) { - obj['bonus_discount_line_items'] = ApiClient.convertToType(data['bonus_discount_line_items'], [BonusDiscountLineItem]) + obj.bonus_discount_line_items = ApiClient.convertToType(data.bonus_discount_line_items, [BonusDiscountLineItem]) } if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String') + obj.channel_type = ApiClient.convertToType(data.channel_type, 'String') } if (data.hasOwnProperty('confirmation_status')) { - obj['confirmation_status'] = ApiClient.convertToType(data['confirmation_status'], 'String') + obj.confirmation_status = ApiClient.convertToType(data.confirmation_status, 'String') } if (data.hasOwnProperty('coupon_items')) { - obj['coupon_items'] = ApiClient.convertToType(data['coupon_items'], [CouponItem]) + obj.coupon_items = ApiClient.convertToType(data.coupon_items, [CouponItem]) } if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('customer_info')) { - obj['customer_info'] = CustomerInfo.constructFromObject(data['customer_info']) + obj.customer_info = CustomerInfo.constructFromObject(data.customer_info) } if (data.hasOwnProperty('customer_name')) { - obj['customer_name'] = ApiClient.convertToType(data['customer_name'], 'String') + obj.customer_name = ApiClient.convertToType(data.customer_name, 'String') } if (data.hasOwnProperty('export_status')) { - obj['export_status'] = ApiClient.convertToType(data['export_status'], 'String') + obj.export_status = ApiClient.convertToType(data.export_status, 'String') } if (data.hasOwnProperty('external_order_status')) { - obj['external_order_status'] = ApiClient.convertToType(data['external_order_status'], 'String') + obj.external_order_status = ApiClient.convertToType(data.external_order_status, 'String') } if (data.hasOwnProperty('gift_certificate_items')) { - obj['gift_certificate_items'] = ApiClient.convertToType(data['gift_certificate_items'], [GiftCertificateItem]) + obj.gift_certificate_items = ApiClient.convertToType(data.gift_certificate_items, [GiftCertificateItem]) + } + if (data.hasOwnProperty('global_party_id')) { + obj.global_party_id = ApiClient.convertToType(data.global_party_id, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('notes')) { - obj['notes'] = SimpleLink.constructFromObject(data['notes']) + obj.notes = SimpleLink.constructFromObject(data.notes) } if (data.hasOwnProperty('order_no')) { - obj['order_no'] = ApiClient.convertToType(data['order_no'], 'String') + obj.order_no = ApiClient.convertToType(data.order_no, 'String') } if (data.hasOwnProperty('order_price_adjustments')) { - obj['order_price_adjustments'] = ApiClient.convertToType(data['order_price_adjustments'], [PriceAdjustment]) + obj.order_price_adjustments = ApiClient.convertToType(data.order_price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('order_token')) { - obj['order_token'] = ApiClient.convertToType(data['order_token'], 'String') + obj.order_token = ApiClient.convertToType(data.order_token, 'String') } if (data.hasOwnProperty('order_total')) { - obj['order_total'] = ApiClient.convertToType(data['order_total'], 'Number') + obj.order_total = ApiClient.convertToType(data.order_total, 'Number') } if (data.hasOwnProperty('payment_instruments')) { - obj['payment_instruments'] = ApiClient.convertToType(data['payment_instruments'], [OrderPaymentInstrument]) + obj.payment_instruments = ApiClient.convertToType(data.payment_instruments, [OrderPaymentInstrument]) } if (data.hasOwnProperty('payment_status')) { - obj['payment_status'] = ApiClient.convertToType(data['payment_status'], 'String') + obj.payment_status = ApiClient.convertToType(data.payment_status, 'String') } if (data.hasOwnProperty('product_items')) { - obj['product_items'] = ApiClient.convertToType(data['product_items'], [ProductItem]) + obj.product_items = ApiClient.convertToType(data.product_items, [ProductItem]) } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipments')) { - obj['shipments'] = ApiClient.convertToType(data['shipments'], [Shipment]) + obj.shipments = ApiClient.convertToType(data.shipments, [Shipment]) } if (data.hasOwnProperty('shipping_items')) { - obj['shipping_items'] = ApiClient.convertToType(data['shipping_items'], [ShippingItem]) + obj.shipping_items = ApiClient.convertToType(data.shipping_items, [ShippingItem]) } if (data.hasOwnProperty('shipping_status')) { - obj['shipping_status'] = ApiClient.convertToType(data['shipping_status'], 'String') + obj.shipping_status = ApiClient.convertToType(data.shipping_status, 'String') } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('site_id')) { - obj['site_id'] = ApiClient.convertToType(data['site_id'], 'String') + obj.site_id = ApiClient.convertToType(data.site_id, 'String') } if (data.hasOwnProperty('source_code')) { - obj['source_code'] = ApiClient.convertToType(data['source_code'], 'String') + obj.source_code = ApiClient.convertToType(data.source_code, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('taxation')) { - obj['taxation'] = ApiClient.convertToType(data['taxation'], 'String') + obj.taxation = ApiClient.convertToType(data.taxation, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>channel_type</code> property. -* @enum {String} -* @readonly -*/ -Order.ChannelTypeEnum = { /** - * value: "storefront" - * @const - */ - storefront: 'storefront', - + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. + * @member {Number} adjusted_merchandize_total_tax + */ + adjusted_merchandize_total_tax = undefined; /** - * value: "callcenter" - * @const - */ - callcenter: 'callcenter', - + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; /** - * value: "marketplace" - * @const - */ - marketplace: 'marketplace', - + * The billing address. This property is part of basket checkout information only. + * @member {module:models/OrderAddress} billing_address + */ + billing_address = undefined; /** - * value: "dss" - * @const - */ - dss: 'dss', - + * The bonus discount line items of the line item container. + * @member {Array.<module:models/BonusDiscountLineItem>} bonus_discount_line_items + */ + bonus_discount_line_items = undefined; /** - * value: "store" - * @const - */ - store: 'store', - + * The sales channel for the order. + * @member {module:models/Order.ChannelTypeEnum} channel_type + */ + channel_type = undefined; /** - * value: "pinterest" - * @const - */ - pinterest: 'pinterest', - + * The confirmation status of the order. + * @member {module:models/Order.ConfirmationStatusEnum} confirmation_status + */ + confirmation_status = undefined; /** - * value: "twitter" - * @const - */ - twitter: 'twitter', - + * The sorted array of coupon items. This array can be empty. + * @member {Array.<module:models/CouponItem>} coupon_items + */ + coupon_items = undefined; /** - * value: "facebookads" - * @const - */ - facebookads: 'facebookads', - + * The name of the user who created the order. + * @member {String} created_by + */ + created_by = undefined; /** - * value: "subscriptions" - * @const - */ - subscriptions: 'subscriptions', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "onlinereservation" - * @const - */ - onlinereservation: 'onlinereservation', - + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; /** - * value: "customerservicecenter" - * @const - */ - customerservicecenter: 'customerservicecenter', - + * The customer information for logged in customers. This property is part of basket checkout information only. + * @member {module:models/CustomerInfo} customer_info + */ + customer_info = undefined; /** - * value: "instagramcommerce" - * @const - */ - instagramcommerce: 'instagramcommerce' -} + * The name of the customer associated with this order. + * @member {String} customer_name + */ + customer_name = undefined; + /** + * The export status of the order. + * @member {module:models/Order.ExportStatusEnum} export_status + */ + export_status = undefined; + /** + * The external status of the order. + * @member {String} external_order_status + */ + external_order_status = undefined; + /** + * The sorted array of gift certificate line items. This array can be empty. + * @member {Array.<module:models/GiftCertificateItem>} gift_certificate_items + */ + gift_certificate_items = undefined; + /** + * globalPartyId is managed by Customer 360. Its value can be changed. + * @member {String} global_party_id + */ + global_party_id = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The notes for the line item container. + * @member {module:models/SimpleLink} notes + */ + notes = undefined; + /** + * The order number of the order. + * @member {String} order_no + */ + order_no = undefined; + /** + * The array of order level price adjustments. This array can be empty. + * @member {Array.<module:models/PriceAdjustment>} order_price_adjustments + */ + order_price_adjustments = undefined; + /** + * The order token used to secure the lookup of an order on base of the plain order number. The order token contains only URL safe characters. + * @member {String} order_token + */ + order_token = undefined; + /** + * The total price of the order, including products, shipping and tax. This property is part of basket checkout information only. + * @member {Number} order_total + */ + order_total = undefined; + /** + * The payment instruments list for the order. + * @member {Array.<module:models/OrderPaymentInstrument>} payment_instruments + */ + payment_instruments = undefined; + /** + * The payment status of the order. + * @member {module:models/Order.PaymentStatusEnum} payment_status + */ + payment_status = undefined; + /** + * The sorted array of product items (up to a maximum of 50 items). This array can be empty. + * @member {Array.<module:models/ProductItem>} product_items + */ + product_items = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The array of shipments. This property is part of basket checkout information only. + * @member {Array.<module:models/Shipment>} shipments + */ + shipments = undefined; + /** + * The sorted array of shipping items. This array can be empty. + * @member {Array.<module:models/ShippingItem>} shipping_items + */ + shipping_items = undefined; + /** + * The shipping status of the order. + * @member {module:models/Order.ShippingStatusEnum} shipping_status + */ + shipping_status = undefined; + /** + * The total shipping price of the order after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. This property is part of basket checkout information only. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * The site where the order resides. + * @member {String} site_id + */ + site_id = undefined; + /** + * Gets the source code assigned to this basket. + * @member {String} source_code + */ + source_code = undefined; + /** + * The status of the order. + * @member {module:models/Order.StatusEnum} status + */ + status = undefined; + /** + * The total tax amount of the order. This property is part of basket checkout information only. + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The taxation the line item container is based on. + * @member {module:models/Order.TaxationEnum} taxation + */ + taxation = undefined; -/** -* Allowed values for the <code>confirmation_status</code> property. -* @enum {String} -* @readonly -*/ -Order.ConfirmationStatusEnum = { - /** - * value: "not_confirmed" - * @const - */ - not_confirmed: 'not_confirmed', - /** - * value: "confirmed" - * @const - */ - confirmed: 'confirmed' -} -/** -* Allowed values for the <code>export_status</code> property. -* @enum {String} -* @readonly -*/ -Order.ExportStatusEnum = { - /** - * value: "not_exported" - * @const - */ - not_exported: 'not_exported', /** - * value: "exported" - * @const - */ - exported: 'exported', + * Allowed values for the <code>channel_type</code> property. + * @enum {String} + * @readonly + */ + static ChannelTypeEnum = { - /** - * value: "ready" - * @const - */ - ready: 'ready', + /** + * value: "storefront" + * @const + */ + storefront: 'storefront', - /** - * value: "failed" - * @const - */ - failed: 'failed' -} + /** + * value: "callcenter" + * @const + */ + callcenter: 'callcenter', -/** -* Allowed values for the <code>payment_status</code> property. -* @enum {String} -* @readonly -*/ -Order.PaymentStatusEnum = { + /** + * value: "marketplace" + * @const + */ + marketplace: 'marketplace', - /** - * value: "not_paid" - * @const - */ - not_paid: 'not_paid', + /** + * value: "dss" + * @const + */ + dss: 'dss', - /** - * value: "part_paid" - * @const - */ - part_paid: 'part_paid', + /** + * value: "store" + * @const + */ + store: 'store', - /** - * value: "paid" - * @const - */ - paid: 'paid' -} + /** + * value: "pinterest" + * @const + */ + pinterest: 'pinterest', -/** -* Allowed values for the <code>shipping_status</code> property. -* @enum {String} -* @readonly -*/ -Order.ShippingStatusEnum = { + /** + * value: "twitter" + * @const + */ + twitter: 'twitter', - /** - * value: "not_shipped" - * @const - */ - not_shipped: 'not_shipped', + /** + * value: "facebookads" + * @const + */ + facebookads: 'facebookads', - /** - * value: "part_shipped" - * @const - */ - part_shipped: 'part_shipped', + /** + * value: "subscriptions" + * @const + */ + subscriptions: 'subscriptions', - /** - * value: "shipped" - * @const - */ - shipped: 'shipped' -} + /** + * value: "onlinereservation" + * @const + */ + onlinereservation: 'onlinereservation', -/** -* Allowed values for the <code>status</code> property. -* @enum {String} -* @readonly -*/ -Order.StatusEnum = { + /** + * value: "customerservicecenter" + * @const + */ + customerservicecenter: 'customerservicecenter', - /** - * value: "created" - * @const - */ - created: 'created', + /** + * value: "instagramcommerce" + * @const + */ + instagramcommerce: 'instagramcommerce' + }; /** - * value: "new" - * @const - */ - new: 'new', + * Allowed values for the <code>confirmation_status</code> property. + * @enum {String} + * @readonly + */ + static ConfirmationStatusEnum = { - /** - * value: "open" - * @const - */ - open: 'open', + /** + * value: "not_confirmed" + * @const + */ + not_confirmed: 'not_confirmed', - /** - * value: "completed" - * @const - */ - completed: 'completed', + /** + * value: "confirmed" + * @const + */ + confirmed: 'confirmed' + }; /** - * value: "cancelled" - * @const - */ - cancelled: 'cancelled', + * Allowed values for the <code>export_status</code> property. + * @enum {String} + * @readonly + */ + static ExportStatusEnum = { + + /** + * value: "not_exported" + * @const + */ + not_exported: 'not_exported', + + /** + * value: "exported" + * @const + */ + exported: 'exported', + + /** + * value: "ready" + * @const + */ + ready: 'ready', + + /** + * value: "failed" + * @const + */ + failed: 'failed' + }; /** - * value: "replaced" - * @const - */ - replaced: 'replaced', + * Allowed values for the <code>payment_status</code> property. + * @enum {String} + * @readonly + */ + static PaymentStatusEnum = { + + /** + * value: "not_paid" + * @const + */ + not_paid: 'not_paid', + + /** + * value: "part_paid" + * @const + */ + part_paid: 'part_paid', + + /** + * value: "paid" + * @const + */ + paid: 'paid' + }; /** - * value: "failed" - * @const - */ - failed: 'failed' -} + * Allowed values for the <code>shipping_status</code> property. + * @enum {String} + * @readonly + */ + static ShippingStatusEnum = { -/** -* Allowed values for the <code>taxation</code> property. -* @enum {String} -* @readonly -*/ -Order.TaxationEnum = { + /** + * value: "not_shipped" + * @const + */ + not_shipped: 'not_shipped', + + /** + * value: "part_shipped" + * @const + */ + part_shipped: 'part_shipped', + + /** + * value: "shipped" + * @const + */ + shipped: 'shipped' + }; /** - * value: "gross" - * @const - */ - gross: 'gross', + * Allowed values for the <code>status</code> property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "created" + * @const + */ + created: 'created', + + /** + * value: "new" + * @const + */ + new: 'new', + + /** + * value: "open" + * @const + */ + open: 'open', + + /** + * value: "completed" + * @const + */ + completed: 'completed', + + /** + * value: "cancelled" + * @const + */ + cancelled: 'cancelled', + + /** + * value: "replaced" + * @const + */ + replaced: 'replaced', + + /** + * value: "failed" + * @const + */ + failed: 'failed' + }; /** - * value: "net" - * @const - */ - net: 'net' + * Allowed values for the <code>taxation</code> property. + * @enum {String} + * @readonly + */ + static TaxationEnum = { + + /** + * value: "gross" + * @const + */ + gross: 'gross', + + /** + * value: "net" + * @const + */ + net: 'net' + }; + + + } + +
@@ -688,7 +683,7 @@

Source: models/Order.js


diff --git a/docs/models_OrderAddress.js.html b/docs/models_OrderAddress.js.html index 35f9695..70a0a5f 100644 --- a/docs/models_OrderAddress.js.html +++ b/docs/models_OrderAddress.js.html @@ -27,15 +27,14 @@

Source: models/OrderAddress.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/OrderAddress.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OrderAddress model module. * @module models/OrderAddress -* @version 17.8 +* @version 20.4 */ export default class OrderAddress { /** @@ -57,120 +62,16 @@

Source: models/OrderAddress.js

* @alias module:models/OrderAddress * @class */ - constructor() { - /** - * The first address. - * @member {String} address1 - */ - this.address1 = undefined - - /** - * The second address. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The city. - * @member {String} city - */ - this.city = undefined - - /** - * The company name. - * @member {String} company_name - */ - this.company_name = undefined - /** - * The two-letter ISO 3166-1 (Alpha-2) country code. - * @member {module:models/OrderAddress.CountryCodeEnum} country_code - */ - this.country_code = undefined - - /** - * The first name. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The full name. - * @member {String} full_name - */ - this.full_name = undefined - - /** - * Id used to identify this address - * @member {String} id - */ - this.id = undefined - - /** - * The job title. - * @member {String} job_title - */ - this.job_title = undefined - - /** - * The last name. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The phone number. - * @member {String} phone - */ - this.phone = undefined + constructor() { - /** - * The post box. - * @member {String} post_box - */ - this.post_box = undefined - /** - * The postal code. - * @member {String} postal_code - */ - this.postal_code = undefined - /** - * The salutation. - * @member {String} salutation - */ - this.salutation = undefined - /** - * The second name. - * @member {String} second_name - */ - this.second_name = undefined - /** - * The state code. - * @member {String} state_code - */ - this.state_code = undefined - /** - * The suffix. - * @member {String} suffix - */ - this.suffix = undefined - /** - * The suite. - * @member {String} suite - */ - this.suite = undefined - /** - * The title. - * @member {String} title - */ - this.title = undefined } /** @@ -184,112 +85,221 @@

Source: models/OrderAddress.js

if (data) { obj = obj || new OrderAddress() + + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String') + obj.company_name = ApiClient.convertToType(data.company_name, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('full_name')) { - obj['full_name'] = ApiClient.convertToType(data['full_name'], 'String') + obj.full_name = ApiClient.convertToType(data.full_name, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('job_title')) { - obj['job_title'] = ApiClient.convertToType(data['job_title'], 'String') + obj.job_title = ApiClient.convertToType(data.job_title, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('post_box')) { - obj['post_box'] = ApiClient.convertToType(data['post_box'], 'String') + obj.post_box = ApiClient.convertToType(data.post_box, 'String') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('salutation')) { - obj['salutation'] = ApiClient.convertToType(data['salutation'], 'String') + obj.salutation = ApiClient.convertToType(data.salutation, 'String') } if (data.hasOwnProperty('second_name')) { - obj['second_name'] = ApiClient.convertToType(data['second_name'], 'String') + obj.second_name = ApiClient.convertToType(data.second_name, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('suffix')) { - obj['suffix'] = ApiClient.convertToType(data['suffix'], 'String') + obj.suffix = ApiClient.convertToType(data.suffix, 'String') } if (data.hasOwnProperty('suite')) { - obj['suite'] = ApiClient.convertToType(data['suite'], 'String') + obj.suite = ApiClient.convertToType(data.suite, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>country_code</code> property. -* @enum {String} -* @readonly -*/ -OrderAddress.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address. + * @member {String} address1 + */ + address1 = undefined; /** - * value: "FR" - * @const - */ - FR: 'FR', - + * The second address. + * @member {String} address2 + */ + address2 = undefined; /** - * value: "IT" - * @const - */ - IT: 'IT', - + * The city. + * @member {String} city + */ + city = undefined; /** - * value: "JP" - * @const - */ - JP: 'JP', - + * The company name. + * @member {String} company_name + */ + company_name = undefined; /** - * value: "CN" - * @const - */ - CN: 'CN', + * The two-letter ISO 3166-1 (Alpha-2) country code. + * @member {module:models/OrderAddress.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * The first name. + * @member {String} first_name + */ + first_name = undefined; + /** + * The full name. + * @member {String} full_name + */ + full_name = undefined; + /** + * Id used to identify this address + * @member {String} id + */ + id = undefined; + /** + * The job title. + * @member {String} job_title + */ + job_title = undefined; + /** + * The last name. + * @member {String} last_name + */ + last_name = undefined; + /** + * The phone number. + * @member {String} phone + */ + phone = undefined; + /** + * The post box. + * @member {String} post_box + */ + post_box = undefined; + /** + * The postal code. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The salutation. + * @member {String} salutation + */ + salutation = undefined; + /** + * The second name. + * @member {String} second_name + */ + second_name = undefined; + /** + * The state code. + * @member {String} state_code + */ + state_code = undefined; + /** + * The suffix. + * @member {String} suffix + */ + suffix = undefined; + /** + * The suite. + * @member {String} suite + */ + suite = undefined; + /** + * The title. + * @member {String} title + */ + title = undefined; + + + + + /** - * value: "GB" - * @const - */ - GB: 'GB' + * Allowed values for the <code>country_code</code> property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "FR" + * @const + */ + FR: 'FR', + + /** + * value: "IT" + * @const + */ + IT: 'IT', + + /** + * value: "JP" + * @const + */ + JP: 'JP', + + /** + * value: "CN" + * @const + */ + CN: 'CN', + + /** + * value: "GB" + * @const + */ + GB: 'GB' + }; + + + } + +
@@ -300,7 +310,7 @@

Source: models/OrderAddress.js


diff --git a/docs/models_OrderPaymentCardRequest.js.html b/docs/models_OrderPaymentCardRequest.js.html index 1d6e840..e46898f 100644 --- a/docs/models_OrderPaymentCardRequest.js.html +++ b/docs/models_OrderPaymentCardRequest.js.html @@ -27,15 +27,14 @@

Source: models/OrderPaymentCardRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/OrderPaymentCardRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The OrderPaymentCardRequest model module. * @module models/OrderPaymentCardRequest -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentCardRequest { /** @@ -57,66 +62,16 @@

Source: models/OrderPaymentCardRequest.js

* @alias module:models/OrderPaymentCardRequest * @class */ + constructor() { - /** - * - * @member {String} card_type - */ - this.card_type = undefined - - /** - * - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * - * @member {String} holder - */ - this.holder = undefined - - /** - * - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * - * @member {String} number - */ - this.number = undefined - - /** - * The security code for the payment card. - * @member {String} security_code - */ - this.security_code = undefined - - /** - * - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -130,41 +85,105 @@

Source: models/OrderPaymentCardRequest.js

if (data) { obj = obj || new OrderPaymentCardRequest() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } if (data.hasOwnProperty('security_code')) { - obj['security_code'] = ApiClient.convertToType(data['security_code'], 'String') + obj.security_code = ApiClient.convertToType(data.security_code, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * + * @member {String} card_type + */ + card_type = undefined; + /** + * + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * + * @member {String} holder + */ + holder = undefined; + /** + * + * @member {String} issue_number + */ + issue_number = undefined; + /** + * + * @member {String} number + */ + number = undefined; + /** + * The security code for the payment card. + * @member {String} security_code + */ + security_code = undefined; + /** + * + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + +
@@ -175,7 +194,7 @@

Source: models/OrderPaymentCardRequest.js


diff --git a/docs/models_OrderPaymentInstrument.js.html b/docs/models_OrderPaymentInstrument.js.html index 009a3ce..463909b 100644 --- a/docs/models_OrderPaymentInstrument.js.html +++ b/docs/models_OrderPaymentInstrument.js.html @@ -27,15 +27,14 @@

Source: models/OrderPaymentInstrument.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,15 +42,21 @@ 

Source: models/OrderPaymentInstrument.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentBankAccount from './PaymentBankAccount' import PaymentCard from './PaymentCard' import Status from './Status' + + + + /** * The OrderPaymentInstrument model module. * @module models/OrderPaymentInstrument -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentInstrument { /** @@ -60,54 +65,16 @@

Source: models/OrderPaymentInstrument.js

* @alias module:models/OrderPaymentInstrument * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The authorization status of the payment transaction. - * @member {module:models/Status} authorization_status - */ - this.authorization_status = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * The masked gift certificate code. - * @member {String} masked_gift_certificate_code - */ - this.masked_gift_certificate_code = undefined - - /** - * The payment bank account. - * @member {module:models/PaymentBankAccount} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/PaymentCard} payment_card - */ - this.payment_card = undefined - - /** - * The payment instrument ID. - * @member {String} payment_instrument_id - */ - this.payment_instrument_id = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -121,35 +88,89 @@

Source: models/OrderPaymentInstrument.js

if (data) { obj = obj || new OrderPaymentInstrument() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('authorization_status')) { - obj['authorization_status'] = Status.constructFromObject(data['authorization_status']) + obj.authorization_status = Status.constructFromObject(data.authorization_status) } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('masked_gift_certificate_code')) { - obj['masked_gift_certificate_code'] = ApiClient.convertToType(data['masked_gift_certificate_code'], 'String') + obj.masked_gift_certificate_code = ApiClient.convertToType(data.masked_gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccount.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccount.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = PaymentCard.constructFromObject(data['payment_card']) + obj.payment_card = PaymentCard.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_instrument_id')) { - obj['payment_instrument_id'] = ApiClient.convertToType(data['payment_instrument_id'], 'String') + obj.payment_instrument_id = ApiClient.convertToType(data.payment_instrument_id, 'String') } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The authorization status of the payment transaction. + * @member {module:models/Status} authorization_status + */ + authorization_status = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * The masked gift certificate code. + * @member {String} masked_gift_certificate_code + */ + masked_gift_certificate_code = undefined; + /** + * The payment bank account. + * @member {module:models/PaymentBankAccount} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/PaymentCard} payment_card + */ + payment_card = undefined; + /** + * The payment instrument ID. + * @member {String} payment_instrument_id + */ + payment_instrument_id = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + +
@@ -160,7 +181,7 @@

Source: models/OrderPaymentInstrument.js


diff --git a/docs/models_OrderPaymentInstrumentRequest.js.html b/docs/models_OrderPaymentInstrumentRequest.js.html index c9fcf57..fcccd7a 100644 --- a/docs/models_OrderPaymentInstrumentRequest.js.html +++ b/docs/models_OrderPaymentInstrumentRequest.js.html @@ -27,15 +27,14 @@

Source: models/OrderPaymentInstrumentRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation *//**
-
+/**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/OrderPaymentInstrumentRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderPaymentCardRequest from './OrderPaymentCardRequest' import PaymentBankAccountRequest from './PaymentBankAccountRequest' + + + + /** * The OrderPaymentInstrumentRequest model module. * @module models/OrderPaymentInstrumentRequest -* @version 17.8 +* @version 20.4 */ export default class OrderPaymentInstrumentRequest { /** @@ -59,54 +64,16 @@

Source: models/OrderPaymentInstrumentRequest.js

* @alias module:models/OrderPaymentInstrumentRequest * @class */ + constructor() { - /** - * The payment transaction amount. - * @member {Number} amount - */ - this.amount = undefined - - /** - * The bank routing number. - * @member {String} bank_routing_number - */ - this.bank_routing_number = undefined - - /** - * A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument is only created when the OrderPaymentInstrument was authorized successfully. - * @member {Boolean} create_customer_payment_instrument - */ - this.create_customer_payment_instrument = undefined - - /** - * The id of a customer payment instrument. - * @member {String} customer_payment_instrument_id - */ - this.customer_payment_instrument_id = undefined - - /** - * The gift certificate code. - * @member {String} gift_certificate_code - */ - this.gift_certificate_code = undefined - - /** - * The payment bank account request data. - * @member {module:models/PaymentBankAccountRequest} payment_bank_account - */ - this.payment_bank_account = undefined - - /** - * The payment card. - * @member {module:models/OrderPaymentCardRequest} payment_card - */ - this.payment_card = undefined - - /** - * The payment method id. Optional if a customer payment instrument id is specified. - * @member {String} payment_method_id - */ - this.payment_method_id = undefined + + + + + + + + } /** @@ -120,35 +87,89 @@

Source: models/OrderPaymentInstrumentRequest.js

if (data) { obj = obj || new OrderPaymentInstrumentRequest() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('bank_routing_number')) { - obj['bank_routing_number'] = ApiClient.convertToType(data['bank_routing_number'], 'String') + obj.bank_routing_number = ApiClient.convertToType(data.bank_routing_number, 'String') } if (data.hasOwnProperty('create_customer_payment_instrument')) { - obj['create_customer_payment_instrument'] = ApiClient.convertToType(data['create_customer_payment_instrument'], 'Boolean') + obj.create_customer_payment_instrument = ApiClient.convertToType(data.create_customer_payment_instrument, 'Boolean') } if (data.hasOwnProperty('customer_payment_instrument_id')) { - obj['customer_payment_instrument_id'] = ApiClient.convertToType(data['customer_payment_instrument_id'], 'String') + obj.customer_payment_instrument_id = ApiClient.convertToType(data.customer_payment_instrument_id, 'String') } if (data.hasOwnProperty('gift_certificate_code')) { - obj['gift_certificate_code'] = ApiClient.convertToType(data['gift_certificate_code'], 'String') + obj.gift_certificate_code = ApiClient.convertToType(data.gift_certificate_code, 'String') } if (data.hasOwnProperty('payment_bank_account')) { - obj['payment_bank_account'] = PaymentBankAccountRequest.constructFromObject(data['payment_bank_account']) + obj.payment_bank_account = PaymentBankAccountRequest.constructFromObject(data.payment_bank_account) } if (data.hasOwnProperty('payment_card')) { - obj['payment_card'] = OrderPaymentCardRequest.constructFromObject(data['payment_card']) + obj.payment_card = OrderPaymentCardRequest.constructFromObject(data.payment_card) } if (data.hasOwnProperty('payment_method_id')) { - obj['payment_method_id'] = ApiClient.convertToType(data['payment_method_id'], 'String') + obj.payment_method_id = ApiClient.convertToType(data.payment_method_id, 'String') } } - return obj } + + /** + * The payment transaction amount. + * @member {Number} amount + */ + amount = undefined; + /** + * The bank routing number. + * @member {String} bank_routing_number + */ + bank_routing_number = undefined; + /** + * A flag indicating whether a related customer payment instrument should be created. The CustomerPaymentInstrument is only created when the OrderPaymentInstrument was authorized successfully. + * @member {Boolean} create_customer_payment_instrument + */ + create_customer_payment_instrument = undefined; + /** + * The id of a customer payment instrument. + * @member {String} customer_payment_instrument_id + */ + customer_payment_instrument_id = undefined; + /** + * The gift certificate code. + * @member {String} gift_certificate_code + */ + gift_certificate_code = undefined; + /** + * The payment bank account request data. + * @member {module:models/PaymentBankAccountRequest} payment_bank_account + */ + payment_bank_account = undefined; + /** + * The payment card. + * @member {module:models/OrderPaymentCardRequest} payment_card + */ + payment_card = undefined; + /** + * The payment method id. Optional if a customer payment instrument id is specified. + * @member {String} payment_method_id + */ + payment_method_id = undefined; + + + + + + + + } + +
@@ -159,7 +180,7 @@

Source: models/OrderPaymentInstrumentRequest.js


diff --git a/docs/models_OrderSearchHit.js.html b/docs/models_OrderSearchHit.js.html index 793d38c..a21d038 100644 --- a/docs/models_OrderSearchHit.js.html +++ b/docs/models_OrderSearchHit.js.html @@ -27,15 +27,14 @@

Source: models/OrderSearchHit.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/OrderSearchHit.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Order from './Order' + + + + /** * The OrderSearchHit model module. * @module models/OrderSearchHit -* @version 17.8 +* @version 20.4 */ export default class OrderSearchHit { /** @@ -58,18 +63,16 @@

Source: models/OrderSearchHit.js

* @alias module:models/OrderSearchHit * @class */ + constructor() { - /** - * - * @member {module:models/Order} data - */ - this.data = undefined - - /** - * The hit's relevance score. - * @member {Number} relevance - */ - this.relevance = undefined + + + + + + + + } /** @@ -83,17 +86,41 @@

Source: models/OrderSearchHit.js

if (data) { obj = obj || new OrderSearchHit() + + + + if (data.hasOwnProperty('data')) { - obj['data'] = Order.constructFromObject(data['data']) + obj.data = Order.constructFromObject(data.data) } if (data.hasOwnProperty('relevance')) { - obj['relevance'] = ApiClient.convertToType(data['relevance'], 'Number') + obj.relevance = ApiClient.convertToType(data.relevance, 'Number') } } - return obj } + + /** + * + * @member {module:models/Order} data + */ + data = undefined; + /** + * The hit's relevance score. + * @member {Number} relevance + */ + relevance = undefined; + + + + + + + + } + +
@@ -104,7 +131,7 @@

Source: models/OrderSearchHit.js


diff --git a/docs/models_OrderSearchRequest.js.html b/docs/models_OrderSearchRequest.js.html index 4941baa..ddc1dc3 100644 --- a/docs/models_OrderSearchRequest.js.html +++ b/docs/models_OrderSearchRequest.js.html @@ -27,15 +27,14 @@

Source: models/OrderSearchRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/OrderSearchRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Query from './Query' import Sort from './Sort' + + + + /** * The OrderSearchRequest model module. * @module models/OrderSearchRequest -* @version 17.8 +* @version 20.4 */ export default class OrderSearchRequest { /** @@ -60,42 +65,16 @@

Source: models/OrderSearchRequest.js

* @class * @param query {module:models/Query} The query to apply */ + constructor(query) { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * List of expansions to be applied to each search results. Expands are optional. - * @member {Array.<String>} expand - */ - this.expand = undefined - - /** - * The query to apply - * @member {module:models/Query} query - */ + + + + + this.query = query - /** - * The field to be selected. - * @member {String} select - */ - this.select = undefined - - /** - * The list of sort clauses configured for the search request. Sort clauses are optional. - * @member {Array.<module:models/Sort>} sorts - */ - this.sorts = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined + } /** @@ -109,29 +88,81 @@

Source: models/OrderSearchRequest.js

if (data) { obj = obj || new OrderSearchRequest() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('expand')) { - obj['expand'] = ApiClient.convertToType(data['expand'], ['String']) + obj.expand = ApiClient.convertToType(data.expand, ['String']) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('sorts')) { - obj['sorts'] = ApiClient.convertToType(data['sorts'], [Sort]) + obj.sorts = ApiClient.convertToType(data.sorts, [Sort]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } } - return obj } + + /** + * The number of returned documents + * @member {Number} count + */ + count = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * List of expansions to be applied to each search results. Expands are optional + * @member {Array.<String>} expand + */ + expand = undefined; + /** + * The query to apply + * @member {module:models/Query} query + */ + query = undefined; + /** + * The field to be selected. + * @member {String} select + */ + select = undefined; + /** + * The list of sort clauses configured for the search request. Sort clauses are optional. + * @member {Array.<module:models/Sort>} sorts + */ + sorts = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + + + + + + + + } + +
@@ -142,7 +173,7 @@

Source: models/OrderSearchRequest.js


diff --git a/docs/models_OrderSearchResult.js.html b/docs/models_OrderSearchResult.js.html index 9d13da7..f2cd304 100644 --- a/docs/models_OrderSearchResult.js.html +++ b/docs/models_OrderSearchResult.js.html @@ -27,15 +27,14 @@

Source: models/OrderSearchResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,16 +42,22 @@ 

Source: models/OrderSearchResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderSearchHit from './OrderSearchHit' import Query from './Query' import ResultPage from './ResultPage' import Sort from './Sort' + + + + /** * The OrderSearchResult model module. * @module models/OrderSearchResult -* @version 17.8 +* @version 20.4 */ export default class OrderSearchResult { /** @@ -61,71 +66,16 @@

Source: models/OrderSearchResult.js

* @alias module:models/OrderSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.<Object>} data - */ - this.data = undefined - - /** - * The list of expands set for the search request. Expands are optional. - * @member {Array.<String>} expand - */ - this.expand = undefined - - /** - * The sorted array of search hits. This array can be empty. - * @member {Array.<module:models/OrderSearchHit>} hits - */ - this.hits = undefined - - /** - * The data that can be used (as parameters on the search request) to retrieve the next result page. - * @member {module:models/ResultPage} next - */ - this.next = undefined - - /** - * The data that can be used to retrieve the previous result page (as parameters on the search request). - * @member {module:models/ResultPage} previous - */ - this.previous = undefined - - /** - * The query passed into the search - * @member {module:models/Query} query - */ - this.query = undefined - - /** - * The fields that you want to select. - * @member {String} select - */ - this.select = undefined - - /** - * The list of sort clauses configured for the search request. Sort clauses are optional. - * @member {Array.<module:models/Sort>} sorts - */ - this.sorts = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -139,44 +89,120 @@

Source: models/OrderSearchResult.js

if (data) { obj = obj || new OrderSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('expand')) { - obj['expand'] = ApiClient.convertToType(data['expand'], ['String']) + obj.expand = ApiClient.convertToType(data.expand, ['String']) } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [OrderSearchHit]) + obj.hits = ApiClient.convertToType(data.hits, [OrderSearchHit]) } if (data.hasOwnProperty('next')) { - obj['next'] = ResultPage.constructFromObject(data['next']) + obj.next = ResultPage.constructFromObject(data.next) } if (data.hasOwnProperty('previous')) { - obj['previous'] = ResultPage.constructFromObject(data['previous']) + obj.previous = ResultPage.constructFromObject(data.previous) } if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } if (data.hasOwnProperty('select')) { - obj['select'] = ApiClient.convertToType(data['select'], 'String') + obj.select = ApiClient.convertToType(data.select, 'String') } if (data.hasOwnProperty('sorts')) { - obj['sorts'] = ApiClient.convertToType(data['sorts'], [Sort]) + obj.sorts = ApiClient.convertToType(data.sorts, [Sort]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.<Object>} data + */ + data = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * List of expansions to be applied to each search results. Expands are optional + * @member {Array.<String>} expand + */ + expand = undefined; + /** + * The sorted array of search hits. This array can be empty. + * @member {Array.<module:models/OrderSearchHit>} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {module:models/ResultPage} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {module:models/ResultPage} previous + */ + previous = undefined; + /** + * The query passed into the search + * @member {module:models/Query} query + */ + query = undefined; + /** + * The fields that you want to select. + * @member {String} select + */ + select = undefined; + /** + * The list of sort clauses configured for the search request. Sort clauses are optional. + * @member {Array.<module:models/Sort>} sorts + */ + sorts = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -187,7 +213,7 @@

Source: models/OrderSearchResult.js


diff --git a/docs/models_PasswordChangeRequest.js.html b/docs/models_PasswordChangeRequest.js.html index 6342bdc..b4dd724 100644 --- a/docs/models_PasswordChangeRequest.js.html +++ b/docs/models_PasswordChangeRequest.js.html @@ -27,15 +27,14 @@

Source: models/PasswordChangeRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PasswordChangeRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PasswordChangeRequest model module. * @module models/PasswordChangeRequest -* @version 17.8 +* @version 20.4 */ export default class PasswordChangeRequest { /** @@ -59,18 +64,16 @@

Source: models/PasswordChangeRequest.js

* @param currentPassword {String} The customer's current password. * @param password {String} The customer's new password. */ + constructor(currentPassword, password) { - /** - * The customer's current password. - * @member {String} current_password - */ - this.current_password = currentPassword - - /** - * The customer's new password. - * @member {String} password - */ - this.password = password + + + + + + this.current_password = currentPassword; this.password = password + + } /** @@ -84,17 +87,41 @@

Source: models/PasswordChangeRequest.js

if (data) { obj = obj || new PasswordChangeRequest() + + + + if (data.hasOwnProperty('current_password')) { - obj['current_password'] = ApiClient.convertToType(data['current_password'], 'String') + obj.current_password = ApiClient.convertToType(data.current_password, 'String') } if (data.hasOwnProperty('password')) { - obj['password'] = ApiClient.convertToType(data['password'], 'String') + obj.password = ApiClient.convertToType(data.password, 'String') } } - return obj } + + /** + * The customer's current password. + * @member {String} current_password + */ + current_password = undefined; + /** + * The customer's new password. + * @member {String} password + */ + password = undefined; + + + + + + + + } + +
@@ -105,7 +132,7 @@

Source: models/PasswordChangeRequest.js


diff --git a/docs/models_PasswordReset.js.html b/docs/models_PasswordReset.js.html index 0af69b2..5b6c7b3 100644 --- a/docs/models_PasswordReset.js.html +++ b/docs/models_PasswordReset.js.html @@ -27,15 +27,14 @@

Source: models/PasswordReset.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PasswordReset.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PasswordReset model module. * @module models/PasswordReset -* @version 17.8 +* @version 20.4 */ export default class PasswordReset { /** @@ -57,18 +62,16 @@

Source: models/PasswordReset.js

* @alias module:models/PasswordReset * @class */ + constructor() { - /** - * The customer's login or the customer's email depending on the type value. - * @member {String} identification - */ - this.identification = undefined - /** - * The type of customer identification. - * @member {module:models/PasswordReset.TypeEnum} type - */ - this.type = undefined + + + + + + + } /** @@ -82,37 +85,61 @@

Source: models/PasswordReset.js

if (data) { obj = obj || new PasswordReset() + + + + if (data.hasOwnProperty('identification')) { - obj['identification'] = ApiClient.convertToType(data['identification'], 'String') + obj.identification = ApiClient.convertToType(data.identification, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -PasswordReset.TypeEnum = { /** - * value: "email" - * @const - */ - email: 'email', + * The customer's login or the customer's email depending on the type value. + * @member {String} identification + */ + identification = undefined; + /** + * The type of customer identification. + * @member {module:models/PasswordReset.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "login" - * @const - */ - login: 'login' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "email" + * @const + */ + email: 'email', + + /** + * value: "login" + * @const + */ + login: 'login' + }; + + + } + +
@@ -123,7 +150,7 @@

Source: models/PasswordReset.js


diff --git a/docs/models_PaymentBankAccount.js.html b/docs/models_PaymentBankAccount.js.html index 6de4d79..b337899 100644 --- a/docs/models_PaymentBankAccount.js.html +++ b/docs/models_PaymentBankAccount.js.html @@ -27,15 +27,14 @@

Source: models/PaymentBankAccount.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PaymentBankAccount.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentBankAccount model module. * @module models/PaymentBankAccount -* @version 17.8 +* @version 20.4 */ export default class PaymentBankAccount { /** @@ -57,42 +62,16 @@

Source: models/PaymentBankAccount.js

* @alias module:models/PaymentBankAccount * @class */ + constructor() { - /** - * The last 4 characters of the decrypted driver's license number of the bank account associated with this payment instrument. - * @member {String} drivers_license_last_digits - */ - this.drivers_license_last_digits = undefined - - /** - * The driver license state code. - * @member {String} drivers_license_state_code - */ - this.drivers_license_state_code = undefined - - /** - * The holder of the bank account. - * @member {String} holder - */ - this.holder = undefined - - /** - * The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*' character. - * @member {String} masked_drivers_license - */ - this.masked_drivers_license = undefined - - /** - * The bank account masked number. - * @member {String} masked_number - */ - this.masked_number = undefined - - /** - * The last digits of the bank account number. - * @member {String} number_last_digits - */ - this.number_last_digits = undefined + + + + + + + + } /** @@ -106,29 +85,73 @@

Source: models/PaymentBankAccount.js

if (data) { obj = obj || new PaymentBankAccount() + + + + if (data.hasOwnProperty('drivers_license_last_digits')) { - obj['drivers_license_last_digits'] = ApiClient.convertToType(data['drivers_license_last_digits'], 'String') + obj.drivers_license_last_digits = ApiClient.convertToType(data.drivers_license_last_digits, 'String') } if (data.hasOwnProperty('drivers_license_state_code')) { - obj['drivers_license_state_code'] = ApiClient.convertToType(data['drivers_license_state_code'], 'String') + obj.drivers_license_state_code = ApiClient.convertToType(data.drivers_license_state_code, 'String') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('masked_drivers_license')) { - obj['masked_drivers_license'] = ApiClient.convertToType(data['masked_drivers_license'], 'String') + obj.masked_drivers_license = ApiClient.convertToType(data.masked_drivers_license, 'String') } if (data.hasOwnProperty('masked_number')) { - obj['masked_number'] = ApiClient.convertToType(data['masked_number'], 'String') + obj.masked_number = ApiClient.convertToType(data.masked_number, 'String') } if (data.hasOwnProperty('number_last_digits')) { - obj['number_last_digits'] = ApiClient.convertToType(data['number_last_digits'], 'String') + obj.number_last_digits = ApiClient.convertToType(data.number_last_digits, 'String') } } - return obj } + + /** + * The last 4 characters of the decrypted driver's license number of the bank account associated with this payment instrument. + * @member {String} drivers_license_last_digits + */ + drivers_license_last_digits = undefined; + /** + * The driver license state code. + * @member {String} drivers_license_state_code + */ + drivers_license_state_code = undefined; + /** + * The holder of the bank account. + * @member {String} holder + */ + holder = undefined; + /** + * The decrypted driver's license number of the bank account with all but the last 4 characters replaced with a '*' character. + * @member {String} masked_drivers_license + */ + masked_drivers_license = undefined; + /** + * The bank account masked number. + * @member {String} masked_number + */ + masked_number = undefined; + /** + * The last digits of the bank account number. + * @member {String} number_last_digits + */ + number_last_digits = undefined; + + + + + + + + } + +
@@ -139,7 +162,7 @@

Source: models/PaymentBankAccount.js


diff --git a/docs/models_PaymentBankAccountRequest.js.html b/docs/models_PaymentBankAccountRequest.js.html index 3083a75..3042e37 100644 --- a/docs/models_PaymentBankAccountRequest.js.html +++ b/docs/models_PaymentBankAccountRequest.js.html @@ -27,15 +27,14 @@

Source: models/PaymentBankAccountRequest.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PaymentBankAccountRequest.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentBankAccountRequest model module. * @module models/PaymentBankAccountRequest -* @version 17.8 +* @version 20.4 */ export default class PaymentBankAccountRequest { /** @@ -57,30 +62,16 @@

Source: models/PaymentBankAccountRequest.js

* @alias module:models/PaymentBankAccountRequest * @class */ + constructor() { - /** - * The drivers license. - * @member {String} drivers_license - */ - this.drivers_license = undefined - - /** - * The driver license state code. - * @member {String} drivers_license_state_code - */ - this.drivers_license_state_code = undefined - - /** - * The holder of the bank account. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment bank account number. - * @member {String} number - */ - this.number = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/PaymentBankAccountRequest.js

if (data) { obj = obj || new PaymentBankAccountRequest() + + + + if (data.hasOwnProperty('drivers_license')) { - obj['drivers_license'] = ApiClient.convertToType(data['drivers_license'], 'String') + obj.drivers_license = ApiClient.convertToType(data.drivers_license, 'String') } if (data.hasOwnProperty('drivers_license_state_code')) { - obj['drivers_license_state_code'] = ApiClient.convertToType(data['drivers_license_state_code'], 'String') + obj.drivers_license_state_code = ApiClient.convertToType(data.drivers_license_state_code, 'String') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('number')) { - obj['number'] = ApiClient.convertToType(data['number'], 'String') + obj.number = ApiClient.convertToType(data.number, 'String') } } - return obj } + + /** + * The drivers license. + * @member {String} drivers_license + */ + drivers_license = undefined; + /** + * The driver license state code. + * @member {String} drivers_license_state_code + */ + drivers_license_state_code = undefined; + /** + * The holder of the bank account. + * @member {String} holder + */ + holder = undefined; + /** + * The payment bank account number. + * @member {String} number + */ + number = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/PaymentBankAccountRequest.js


diff --git a/docs/models_PaymentCard.js.html b/docs/models_PaymentCard.js.html index f3d19f9..52df44d 100644 --- a/docs/models_PaymentCard.js.html +++ b/docs/models_PaymentCard.js.html @@ -27,15 +27,14 @@

Source: models/PaymentCard.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PaymentCard.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentCard model module. * @module models/PaymentCard -* @version 17.8 +* @version 20.4 */ export default class PaymentCard { /** @@ -57,72 +62,16 @@

Source: models/PaymentCard.js

* @alias module:models/PaymentCard * @class */ + constructor() { - /** - * The payment card type (for example, 'Visa'). - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A flag indicating if the credit card is expired. - * @member {Boolean} credit_card_expired - */ - this.credit_card_expired = undefined - - /** - * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. - * @member {String} credit_card_token - */ - this.credit_card_token = undefined - - /** - * The month when the payment card expires. - * @member {Number} expiration_month - */ - this.expiration_month = undefined - - /** - * The year when the payment card expires. - * @member {Number} expiration_year - */ - this.expiration_year = undefined - - /** - * The payment card holder. - * @member {String} holder - */ - this.holder = undefined - - /** - * The payment card issue number. - * @member {String} issue_number - */ - this.issue_number = undefined - - /** - * The masked credit card number. - * @member {String} masked_number - */ - this.masked_number = undefined - - /** - * The last digits of credit card number. - * @member {String} number_last_digits - */ - this.number_last_digits = undefined - - /** - * The payment card valid from month. - * @member {Number} valid_from_month - */ - this.valid_from_month = undefined - - /** - * The payment card valid from year. - * @member {Number} valid_from_year - */ - this.valid_from_year = undefined + + + + + + + + } /** @@ -136,44 +85,113 @@

Source: models/PaymentCard.js

if (data) { obj = obj || new PaymentCard() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('credit_card_expired')) { - obj['credit_card_expired'] = ApiClient.convertToType(data['credit_card_expired'], 'Boolean') + obj.credit_card_expired = ApiClient.convertToType(data.credit_card_expired, 'Boolean') } if (data.hasOwnProperty('credit_card_token')) { - obj['credit_card_token'] = ApiClient.convertToType(data['credit_card_token'], 'String') + obj.credit_card_token = ApiClient.convertToType(data.credit_card_token, 'String') } if (data.hasOwnProperty('expiration_month')) { - obj['expiration_month'] = ApiClient.convertToType(data['expiration_month'], 'Number') + obj.expiration_month = ApiClient.convertToType(data.expiration_month, 'Number') } if (data.hasOwnProperty('expiration_year')) { - obj['expiration_year'] = ApiClient.convertToType(data['expiration_year'], 'Number') + obj.expiration_year = ApiClient.convertToType(data.expiration_year, 'Number') } if (data.hasOwnProperty('holder')) { - obj['holder'] = ApiClient.convertToType(data['holder'], 'String') + obj.holder = ApiClient.convertToType(data.holder, 'String') } if (data.hasOwnProperty('issue_number')) { - obj['issue_number'] = ApiClient.convertToType(data['issue_number'], 'String') + obj.issue_number = ApiClient.convertToType(data.issue_number, 'String') } if (data.hasOwnProperty('masked_number')) { - obj['masked_number'] = ApiClient.convertToType(data['masked_number'], 'String') + obj.masked_number = ApiClient.convertToType(data.masked_number, 'String') } if (data.hasOwnProperty('number_last_digits')) { - obj['number_last_digits'] = ApiClient.convertToType(data['number_last_digits'], 'String') + obj.number_last_digits = ApiClient.convertToType(data.number_last_digits, 'String') } if (data.hasOwnProperty('valid_from_month')) { - obj['valid_from_month'] = ApiClient.convertToType(data['valid_from_month'], 'Number') + obj.valid_from_month = ApiClient.convertToType(data.valid_from_month, 'Number') } if (data.hasOwnProperty('valid_from_year')) { - obj['valid_from_year'] = ApiClient.convertToType(data['valid_from_year'], 'Number') + obj.valid_from_year = ApiClient.convertToType(data.valid_from_year, 'Number') } } - return obj } + + /** + * The payment card type (for example, 'Visa'). + * @member {String} card_type + */ + card_type = undefined; + /** + * A flag indicating if the credit card is expired. + * @member {Boolean} credit_card_expired + */ + credit_card_expired = undefined; + /** + * A credit card token. If a credit card is tokenized, the token can be used to look up the credit card data at the token store. + * @member {String} credit_card_token + */ + credit_card_token = undefined; + /** + * The month when the payment card expires. + * @member {Number} expiration_month + */ + expiration_month = undefined; + /** + * The year when the payment card expires. + * @member {Number} expiration_year + */ + expiration_year = undefined; + /** + * The payment card holder. + * @member {String} holder + */ + holder = undefined; + /** + * The payment card issue number. + * @member {String} issue_number + */ + issue_number = undefined; + /** + * The masked credit card number. + * @member {String} masked_number + */ + masked_number = undefined; + /** + * The last digits of credit card number. + * @member {String} number_last_digits + */ + number_last_digits = undefined; + /** + * The payment card valid from month. + * @member {Number} valid_from_month + */ + valid_from_month = undefined; + /** + * The payment card valid from year. + * @member {Number} valid_from_year + */ + valid_from_year = undefined; + + + + + + + + } + +
@@ -184,7 +202,7 @@

Source: models/PaymentCard.js


diff --git a/docs/models_PaymentCardSpec.js.html b/docs/models_PaymentCardSpec.js.html index 6e5b498..54dd230 100644 --- a/docs/models_PaymentCardSpec.js.html +++ b/docs/models_PaymentCardSpec.js.html @@ -27,15 +27,14 @@

Source: models/PaymentCardSpec.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PaymentCardSpec.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PaymentCardSpec model module. * @module models/PaymentCardSpec -* @version 17.8 +* @version 20.4 */ export default class PaymentCardSpec { /** @@ -57,54 +62,16 @@

Source: models/PaymentCardSpec.js

* @alias module:models/PaymentCardSpec * @class */ + constructor() { - /** - * The type of the payment card. - * @member {String} card_type - */ - this.card_type = undefined - - /** - * A flag indicating whether the card number is verified using the Luhn checksum algorithm. - * @member {Boolean} checksum_verification_enabled - */ - this.checksum_verification_enabled = undefined - - /** - * The localized description of the payment card. - * @member {String} description - */ - this.description = undefined - - /** - * The URL to the image that represents the payment card. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the payment card. - * @member {String} name - */ - this.name = undefined - - /** - * The sorted list of number lengths (individual lengths as well as length ranges). - * @member {Array.<String>} number_lengths - */ - this.number_lengths = undefined - - /** - * The sorted list of number prefixes (individual prefixes as well as prefix ranges). - * @member {Array.<String>} number_prefixes - */ - this - .number_prefixes = undefined - /** - * The length of the security code for this card. - * @member {Number} security_code_length - */ - this.security_code_length = undefined + + + + + + + + } /** @@ -118,35 +85,89 @@

Source: models/PaymentCardSpec.js

if (data) { obj = obj || new PaymentCardSpec() + + + + if (data.hasOwnProperty('card_type')) { - obj['card_type'] = ApiClient.convertToType(data['card_type'], 'String') + obj.card_type = ApiClient.convertToType(data.card_type, 'String') } if (data.hasOwnProperty('checksum_verification_enabled')) { - obj['checksum_verification_enabled'] = ApiClient.convertToType(data['checksum_verification_enabled'], 'Boolean') + obj.checksum_verification_enabled = ApiClient.convertToType(data.checksum_verification_enabled, 'Boolean') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('number_lengths')) { - obj['number_lengths'] = ApiClient.convertToType(data['number_lengths'], ['String']) + obj.number_lengths = ApiClient.convertToType(data.number_lengths, ['String']) } if (data.hasOwnProperty('number_prefixes')) { - obj['number_prefixes'] = ApiClient.convertToType(data['number_prefixes'], ['String']) + obj.number_prefixes = ApiClient.convertToType(data.number_prefixes, ['String']) } if (data.hasOwnProperty('security_code_length')) { - obj['security_code_length'] = ApiClient.convertToType(data['security_code_length'], 'Number') + obj.security_code_length = ApiClient.convertToType(data.security_code_length, 'Number') } } - return obj } + + /** + * The type of the payment card. + * @member {String} card_type + */ + card_type = undefined; + /** + * A flag indicating whether the card number is verified using the Luhn checksum algorithm. + * @member {Boolean} checksum_verification_enabled + */ + checksum_verification_enabled = undefined; + /** + * The localized description of the payment card. + * @member {String} description + */ + description = undefined; + /** + * The URL to the image that represents the payment card. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the payment card. + * @member {String} name + */ + name = undefined; + /** + * The sorted list of number lengths (individual lengths as well as length ranges). + * @member {Array.<String>} number_lengths + */ + number_lengths = undefined; + /** + * The sorted list of number prefixes (individual prefixes as well as prefix ranges). + * @member {Array.<String>} number_prefixes + */ + number_prefixes = undefined; + /** + * The length of the security code for this card. + * @member {Number} security_code_length + */ + security_code_length = undefined; + + + + + + + + } + +
@@ -157,7 +178,7 @@

Source: models/PaymentCardSpec.js


diff --git a/docs/models_PaymentMethod.js.html b/docs/models_PaymentMethod.js.html index 26f0a98..05cde28 100644 --- a/docs/models_PaymentMethod.js.html +++ b/docs/models_PaymentMethod.js.html @@ -27,15 +27,14 @@

Source: models/PaymentMethod.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PaymentMethod.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentCardSpec from './PaymentCardSpec' + + + + /** * The PaymentMethod model module. * @module models/PaymentMethod -* @version 17.8 +* @version 20.4 */ export default class PaymentMethod { /** @@ -59,36 +64,16 @@

Source: models/PaymentMethod.js

* @class * @param id {String} The id of the payment method or card. */ + constructor(id) { - /** - * The sorted array of payment cards (included only when the system payment method is CREDIT_CARD). - * @member {Array.<module:models/PaymentCardSpec>} cards - */ - this.cards = undefined - - /** - * The localized description of the payment method or card. - * @member {String} description - */ - this.description = undefined - - /** - * The id of the payment method or card. - * @member {String} id - */ + + + + + this.id = id - /** - * The URL to the image that represents the payment method or card. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the payment method or card. - * @member {String} name - */ - this.name = undefined + } /** @@ -102,26 +87,73 @@

Source: models/PaymentMethod.js

if (data) { obj = obj || new PaymentMethod() + + + + if (data.hasOwnProperty('cards')) { - obj['cards'] = ApiClient.convertToType(data['cards'], [PaymentCardSpec]) + obj.cards = ApiClient.convertToType(data.cards, [PaymentCardSpec]) } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') + } + if (data.hasOwnProperty('payment_processor_id')) { + obj.payment_processor_id = ApiClient.convertToType(data.payment_processor_id, 'String') } } - return obj } + + /** + * The sorted array of payment cards (included only when the system payment method is CREDIT_CARD). + * @member {Array.<module:models/PaymentCardSpec>} cards + */ + cards = undefined; + /** + * The localized description of the payment method or card. + * @member {String} description + */ + description = undefined; + /** + * The id of the payment method or card. + * @member {String} id + */ + id = undefined; + /** + * The URL to the image that represents the payment method or card. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the payment method or card. + * @member {String} name + */ + name = undefined; + /** + * The payment processor ID. + * @member {String} payment_processor_id + */ + payment_processor_id = undefined; + + + + + + + + } + +
@@ -132,7 +164,7 @@

Source: models/PaymentMethod.js


diff --git a/docs/models_PaymentMethodResult.js.html b/docs/models_PaymentMethodResult.js.html index e24fb9f..95aec83 100644 --- a/docs/models_PaymentMethodResult.js.html +++ b/docs/models_PaymentMethodResult.js.html @@ -27,15 +27,14 @@

Source: models/PaymentMethodResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PaymentMethodResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PaymentMethod from './PaymentMethod' + + + + /** * The PaymentMethodResult model module. * @module models/PaymentMethodResult -* @version 17.8 +* @version 20.4 */ export default class PaymentMethodResult { /** @@ -58,12 +63,16 @@

Source: models/PaymentMethodResult.js

* @alias module:models/PaymentMethodResult * @class */ + constructor() { - /** - * The applicable payment methods. - * @member {Array.<module:models/PaymentMethod>} applicable_payment_methods - */ - this.applicable_payment_methods = undefined + + + + + + + + } /** @@ -77,15 +86,33 @@

Source: models/PaymentMethodResult.js

if (data) { obj = obj || new PaymentMethodResult() + + + + if (data.hasOwnProperty('applicable_payment_methods')) { - obj['applicable_payment_methods'] = ApiClient.convertToType(data['applicable_payment_methods'], [PaymentMethod]) + obj.applicable_payment_methods = ApiClient.convertToType(data.applicable_payment_methods, [PaymentMethod]) } } - return obj } + /** + * The applicable payment methods. + * @member {Array.<module:models/PaymentMethod>} applicable_payment_methods + */ + applicable_payment_methods = undefined; + + + + + + + + } + +
@@ -96,7 +123,7 @@

Source: models/PaymentMethodResult.js


diff --git a/docs/models_PriceAdjustment.js.html b/docs/models_PriceAdjustment.js.html index e8eea20..6e27b46 100644 --- a/docs/models_PriceAdjustment.js.html +++ b/docs/models_PriceAdjustment.js.html @@ -27,15 +27,14 @@

Source: models/PriceAdjustment.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,110 +42,37 @@ 

Source: models/PriceAdjustment.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Discount from './Discount' + + + + /** * The PriceAdjustment model module. * @module models/PriceAdjustment -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustment { /** * Constructs a new <code>PriceAdjustment</code>. - * Document representing a price adjustment within a basket or order. Price adjustments can be assigned - * at the order, product, or shipping level. They can be created by the promotion engine (if the custom - * flag is set to false) or can be added by custom logic (if the custom flag is set to true). For custom - * price adjustments created by a user, the manual flag should be set to true; this is always - * the case for price adjustments created using OCAPI. + * Document representing a price adjustment within a basket or order. Price adjustments can be assigned at the order, product, or shipping level. They can be created by the promotion engine (if the custom flag is set to false) or can be added by custom logic (if the custom flag is set to true). For custom price adjustments created by a user, the manual flag should be set to true; this is always the case for price adjustments created using OCAPI. * @alias module:models/PriceAdjustment * @class */ - constructor() { - /** - * A price adjustment that provides details of the discount that was applied. This is null for custom - * price adjustments created without discount details. - * @member {module:models/Discount} applied_discount - */ - this.applied_discount = undefined - - /** - * The coupon code that triggered the promotion, provided the price adjustment was created as - * the result of a promotion being triggered by a coupon. - * @member {String} coupon_code - */ - this.coupon_code = undefined - /** - * The user who created the price adjustment. - * @member {String} created_by - */ - this.created_by = undefined - - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * A flag indicating whether this price adjustment was created by custom logic. This flag is set - * to true unless the price adjustment was created by the promotion engine. - * @member {Boolean} custom - */ - this.custom = undefined + constructor() { - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * A flag indicating whether this price adjustment was created in a manual process. For custom price - * adjustments created using the shop API, this always returns true. Using the scripting API, - * however, it is possible to set this to true or false, according to the use case. - * @member {Boolean} manual - */ - this.manual = undefined - /** - * The adjustment price. - * @member {Number} price - */ - this.price = undefined - /** - * The price adjustment id (uuid). - * @member {String} price_adjustment_id - */ - this.price_adjustment_id = undefined - /** - * The id of the related promotion. Custom price adjustments can be assigned any promotion - * id so long it is not used by a price adjustment belonging to the same item and is not used - * by promotion defined in the promotion engine. If not specified, a promotion id is generated. - * @member {String} promotion_id - */ - this.promotion_id = undefined - /** - * The URL addressing the related promotion. - * @member {String} promotion_link - */ - this.promotion_link = undefined - /** - * The reason why this price adjustment was made. - * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code - */ - this.reason_code = undefined } /** @@ -160,76 +86,155 @@

Source: models/PriceAdjustment.js

if (data) { obj = obj || new PriceAdjustment() + + + + if (data.hasOwnProperty('applied_discount')) { - obj['applied_discount'] = Discount.constructFromObject(data['applied_discount']) + obj.applied_discount = Discount.constructFromObject(data.applied_discount) } if (data.hasOwnProperty('coupon_code')) { - obj['coupon_code'] = ApiClient.convertToType(data['coupon_code'], 'String') + obj.coupon_code = ApiClient.convertToType(data.coupon_code, 'String') } if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String') + obj.created_by = ApiClient.convertToType(data.created_by, 'String') } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('custom')) { - obj['custom'] = ApiClient.convertToType(data['custom'], 'Boolean') + obj.custom = ApiClient.convertToType(data.custom, 'Boolean') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('manual')) { - obj['manual'] = ApiClient.convertToType(data['manual'], 'Boolean') + obj.manual = ApiClient.convertToType(data.manual, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustment_id')) { - obj['price_adjustment_id'] = ApiClient.convertToType(data['price_adjustment_id'], 'String') + obj.price_adjustment_id = ApiClient.convertToType(data.price_adjustment_id, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotion_link')) { - obj['promotion_link'] = ApiClient.convertToType(data['promotion_link'], 'String') + obj.promotion_link = ApiClient.convertToType(data.promotion_link, 'String') } if (data.hasOwnProperty('reason_code')) { - obj['reason_code'] = ApiClient.convertToType(data['reason_code'], 'String') + obj.reason_code = ApiClient.convertToType(data.reason_code, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>reason_code</code> property. -* @enum {String} -* @readonly -*/ -PriceAdjustment.ReasonCodeEnum = { /** - * value: "PRICE_MATCH" - * @const - */ - PRICE_MATCH: 'PRICE_MATCH', - + * A price adjustment that provides details of the discount that was applied. This is null for custom price adjustments created without discount details. + * @member {module:models/Discount} applied_discount + */ + applied_discount = undefined; + /** + * The coupon code that triggered the promotion, provided the price adjustment was created as the result of a promotion being triggered by a coupon. + * @member {String} coupon_code + */ + coupon_code = undefined; /** - * value: "BACKORDER" - * @const - */ - BACKORDER: 'BACKORDER', + * The user who created the price adjustment. + * @member {String} created_by + */ + created_by = undefined; + /** + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; + /** + * A flag indicating whether this price adjustment was created by custom logic. This flag is set to true unless the price adjustment was created by the promotion engine. + * @member {Boolean} custom + */ + custom = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * A flag indicating whether this price adjustment was created in a manual process. For custom price adjustments created using the shop API, this always returns true. Using the scripting API, however, it is possible to set this to true or false, according to the use case. + * @member {Boolean} manual + */ + manual = undefined; + /** + * The adjustment price. + * @member {Number} price + */ + price = undefined; + /** + * The price adjustment id (uuid). + * @member {String} price_adjustment_id + */ + price_adjustment_id = undefined; + /** + * The id of the related promotion. Custom price adjustments can be assigned any promotion id so long it is not used by a price adjustment belonging to the same item and is not used by promotion defined in the promotion engine. If not specified, a promotion id is generated. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The URL addressing the related promotion. + * @member {String} promotion_link + */ + promotion_link = undefined; + /** + * The reason why this price adjustment was made. + * @member {module:models/PriceAdjustment.ReasonCodeEnum} reason_code + */ + reason_code = undefined; + + + + + /** - * value: "EVEN_EXCHANGE" - * @const - */ - EVEN_EXCHANGE: 'EVEN_EXCHANGE' + * Allowed values for the <code>reason_code</code> property. + * @enum {String} + * @readonly + */ + static ReasonCodeEnum = { + + /** + * value: "PRICE_MATCH" + * @const + */ + PRICE_MATCH: 'PRICE_MATCH', + + /** + * value: "BACKORDER" + * @const + */ + BACKORDER: 'BACKORDER', + + /** + * value: "EVEN_EXCHANGE" + * @const + */ + EVEN_EXCHANGE: 'EVEN_EXCHANGE' + }; + + + } + +
@@ -240,7 +245,7 @@

Source: models/PriceAdjustment.js


diff --git a/docs/models_PriceAdjustmentLimit.js.html b/docs/models_PriceAdjustmentLimit.js.html index 34c1d55..1d4d4a3 100644 --- a/docs/models_PriceAdjustmentLimit.js.html +++ b/docs/models_PriceAdjustmentLimit.js.html @@ -27,15 +27,14 @@

Source: models/PriceAdjustmentLimit.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,48 +42,36 @@ 

Source: models/PriceAdjustmentLimit.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PriceAdjustmentLimit model module. * @module models/PriceAdjustmentLimit -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustmentLimit { /** * Constructs a new <code>PriceAdjustmentLimit</code>. - * A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at - * the specified level. + * A price adjustment limit specifies the amount of manual adjustment that can be applied by a user at the specified level. * @alias module:models/PriceAdjustmentLimit * @class */ + constructor() { - /** - * The value for the currency or null if no currency value is specified. - * @member {Number} amount - */ - this.amount = undefined - /** - * Returns the currency of the Price Adjustment Limit or null if not applicable. Will be null if this - * is a percent limit only. Price adjustment limits can be given up to a fixed amount (unit=a currency unit). - * @member {String} currency - */ - this.currency = undefined - /** - * Returns percentage value of the Price Adjustment Limit or null if not applicable. Will be null - * if this is a currency limit only. - * @member {Number} percent - */ - this.percent = undefined - /** - * The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the - * Price Adjustment is applicable. - * @member {module:models/PriceAdjustmentLimit.TypeEnum} type - */ - this.type = undefined + + + + + } /** @@ -98,49 +85,83 @@

Source: models/PriceAdjustmentLimit.js

if (data) { obj = obj || new PriceAdjustmentLimit() + + + + if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number') + obj.amount = ApiClient.convertToType(data.amount, 'Number') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('percent')) { - obj['percent'] = ApiClient.convertToType(data['percent'], 'Number') + obj.percent = ApiClient.convertToType(data.percent, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -PriceAdjustmentLimit.TypeEnum = { /** - * value: "item" - * @const - */ - item: 'item', - + * The value for the currency or null if no currency value is specified. + * @member {Number} amount + */ + amount = undefined; + /** + * Returns the currency of the Price Adjustment Limit or null if not applicable. Will be null if this is a percent limit only. Price adjustment limits can be given up to a fixed amount (unit=a currency unit). + * @member {String} currency + */ + currency = undefined; + /** + * Returns percentage value of the Price Adjustment Limit or null if not applicable. Will be null if this is a currency limit only. + * @member {Number} percent + */ + percent = undefined; /** - * value: "shipping" - * @const - */ - shipping: 'shipping', + * The Price Adjustment Limit type - ITEM, SHIPPING or ORDER. It identifies the level at which the Price Adjustment is applicable. + * @member {module:models/PriceAdjustmentLimit.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "order" - * @const - */ - order: 'order' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "item" + * @const + */ + item: 'item', + + /** + * value: "shipping" + * @const + */ + shipping: 'shipping', + + /** + * value: "order" + * @const + */ + order: 'order' + }; + + + } + +
@@ -151,7 +172,7 @@

Source: models/PriceAdjustmentLimit.js


diff --git a/docs/models_PriceAdjustmentLimits.js.html b/docs/models_PriceAdjustmentLimits.js.html index 323e02d..17ace97 100644 --- a/docs/models_PriceAdjustmentLimits.js.html +++ b/docs/models_PriceAdjustmentLimits.js.html @@ -27,15 +27,14 @@

Source: models/PriceAdjustmentLimits.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PriceAdjustmentLimits.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustmentLimit from './PriceAdjustmentLimit' + + + + /** * The PriceAdjustmentLimits model module. * @module models/PriceAdjustmentLimits -* @version 17.8 +* @version 20.4 */ export default class PriceAdjustmentLimits { /** @@ -58,12 +63,16 @@

Source: models/PriceAdjustmentLimits.js

* @alias module:models/PriceAdjustmentLimits * @class */ + constructor() { - /** - * The list of price adjustment limits applicable for a user across all roles. - * @member {Array.<module:models/PriceAdjustmentLimit>} limits - */ - this.limits = undefined + + + + + + + + } /** @@ -77,14 +86,33 @@

Source: models/PriceAdjustmentLimits.js

if (data) { obj = obj || new PriceAdjustmentLimits() + + + + if (data.hasOwnProperty('limits')) { - obj['limits'] = ApiClient.convertToType(data['limits'], [PriceAdjustmentLimit]) + obj.limits = ApiClient.convertToType(data.limits, [PriceAdjustmentLimit]) } } - return obj } + + /** + * The list of price adjustment limits applicable for a user across all roles. + * @member {Array.<module:models/PriceAdjustmentLimit>} limits + */ + limits = undefined; + + + + + + + + } + +
@@ -95,7 +123,7 @@

Source: models/PriceAdjustmentLimits.js


diff --git a/docs/models_PriceAdjustmentRequest.js.html b/docs/models_PriceAdjustmentRequest.js.html new file mode 100644 index 0000000..e68f88b --- /dev/null +++ b/docs/models_PriceAdjustmentRequest.js.html @@ -0,0 +1,231 @@ + + + + + JSDoc: Source: models/PriceAdjustmentRequest.js + + + + + + + + + + +
+ +

Source: models/PriceAdjustmentRequest.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import DiscountRequest from './DiscountRequest'
+
+
+
+
+
+/**
+* The PriceAdjustmentRequest model module.
+* @module models/PriceAdjustmentRequest
+* @version 20.4
+*/
+export default class PriceAdjustmentRequest {
+    /**
+    * Constructs a new <code>PriceAdjustmentRequest</code>.
+    * Document representing a price adjustment request.
+    * @alias module:models/PriceAdjustmentRequest
+    * @class
+    * @param level {module:models/PriceAdjustmentRequest.LevelEnum} The level at which the adjustment is applied. When a product or shipping  level is specified, you must also specify the item id.
+    */
+
+    constructor(level) {
+
+
+
+
+
+        this.level = level
+
+
+    }
+
+    /**
+    * Constructs a <code>PriceAdjustmentRequest</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/PriceAdjustmentRequest} obj Optional instance to populate.
+    * @return {module:models/PriceAdjustmentRequest} The populated <code>PriceAdjustmentRequest</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new PriceAdjustmentRequest()
+
+
+
+
+
+            if (data.hasOwnProperty('discount')) {
+                obj.discount = DiscountRequest.constructFromObject(data.discount)
+            }
+            if (data.hasOwnProperty('item_id')) {
+                obj.item_id = ApiClient.convertToType(data.item_id, 'String')
+            }
+            if (data.hasOwnProperty('item_text')) {
+                obj.item_text = ApiClient.convertToType(data.item_text, 'String')
+            }
+            if (data.hasOwnProperty('level')) {
+                obj.level = ApiClient.convertToType(data.level, 'String')
+            }
+            if (data.hasOwnProperty('promotion_id')) {
+                obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String')
+            }
+            if (data.hasOwnProperty('reason_code')) {
+                obj.reason_code = ApiClient.convertToType(data.reason_code, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * A discount that you can specify instead of a price.  When defining a discount, you must specify a type and  a value.
+    * @member {module:models/DiscountRequest} discount
+    */
+    discount = undefined;
+    /**
+    * The item to which the price adjustment should be added, depending on the specified level.  If the level is 'order', you need not specify an item id. If 'shipping', specify the uuid  of the shipping item. If 'product', specify the uuid of the product item.
+    * @member {String} item_id
+    */
+    item_id = undefined;
+    /**
+    * The text describing the item in more detail.
+    * @member {String} item_text
+    */
+    item_text = undefined;
+    /**
+    * The level at which the adjustment is applied. When a product or shipping  level is specified, you must also specify the item id.
+    * @member {module:models/PriceAdjustmentRequest.LevelEnum} level
+    */
+    level = undefined;
+    /**
+    * The id of the related promotion. Custom price adjustments  can be assigned any promotion id so long it is not  used by a price adjustment belonging to the same item  and is not used by promotion defined in the promotion engine.  If not specified, a promotion id is generated.
+    * @member {String} promotion_id
+    */
+    promotion_id = undefined;
+    /**
+    * The reason why this price adjustment was made.
+    * @member {module:models/PriceAdjustmentRequest.ReasonCodeEnum} reason_code
+    */
+    reason_code = undefined;
+
+
+
+
+
+
+    /**
+    * Allowed values for the <code>level</code> property.
+    * @enum {String}
+    * @readonly
+    */
+    static LevelEnum = {
+
+        /**
+         * value: "product"
+         * @const
+         */
+        product: 'product',
+
+        /**
+         * value: "shipping"
+         * @const
+         */
+        shipping: 'shipping',
+
+        /**
+         * value: "order"
+         * @const
+         */
+        order: 'order'
+    };
+
+    /**
+    * Allowed values for the <code>reason_code</code> property.
+    * @enum {String}
+    * @readonly
+    */
+    static ReasonCodeEnum = {
+
+        /**
+         * value: "PRICE_MATCH"
+         * @const
+         */
+        PRICE_MATCH: 'PRICE_MATCH',
+
+        /**
+         * value: "BACKORDER"
+         * @const
+         */
+        BACKORDER: 'BACKORDER',
+
+        /**
+         * value: "EVEN_EXCHANGE"
+         * @const
+         */
+        EVEN_EXCHANGE: 'EVEN_EXCHANGE'
+    };
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_Product.js.html b/docs/models_Product.js.html index 8e0ce46..57bbfad 100644 --- a/docs/models_Product.js.html +++ b/docs/models_Product.js.html @@ -27,15 +27,14 @@

Source: models/Product.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,6 +42,8 @@ 

Source: models/Product.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import BundledProduct from './BundledProduct' import ImageGroup from './ImageGroup' @@ -57,10 +58,14 @@

Source: models/Product.js

import VariationAttribute from './VariationAttribute' import VariationGroup from './VariationGroup' + + + + /** * The Product model module. * @module models/Product -* @version 17.8 +* @version 20.4 */ export default class Product { /** @@ -70,221 +75,16 @@

Source: models/Product.js

* @class * @param id {String} The id (SKU) of the product. */ + constructor(id) { - /** - * The product's brand. - * @member {String} brand - */ - this.brand = undefined - /** - * The array of all bundled products of this product. - * @member {Array.<module:models/BundledProduct>} bundled_products - */ - this.bundled_products = undefined - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - /** - * The European Article Number. - * @member {String} ean - */ - this.ean = undefined - /** - * @member {Number} fetch_date - */ - this.fetch_date = undefined - /** - * The id (SKU) of the product. - * @member {String} id - */ this.id = id - /** - * The array of product image groups. - * @member {Array.<module:models/ImageGroup>} image_groups - */ - this.image_groups = undefined - - /** - * The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property is only returned in context of the 'availability' expansion. - * @member {Array.<module:models/Inventory>} inventories - */ - this.inventories = undefined - - /** - * The site default inventory information. This property is only returned in context of the 'availability' expansion. - * @member {module:models/Inventory} inventory - */ - this.inventory = undefined - - /** - * The localized product long description. - * @member {String} long_description - */ - this.long_description = undefined - - /** - * The products manufacturer name. - * @member {String} manufacturer_name - */ - this.manufacturer_name = undefined - - /** - * The products manufacturer sku. - * @member {String} manufacturer_sku - */ - this.manufacturer_sku = undefined - - /** - * The master product information. Only for types master, variation group and variant. - * @member {module:models/Master} master - */ - this.master = undefined - - /** - * The minimum order quantity for this product. - * @member {Number} min_order_quantity - */ - this.min_order_quantity = undefined - - /** - * The localized product name. - * @member {String} name - */ - this.name = undefined - - /** - * The array of product options. This array can be empty. Only for type option. - * @member {Array.<module:models/Option>} options - */ - this.options = undefined - - /** - * The localized products page description. - * @member {String} page_description - */ - this.page_description = undefined - - /** - * The localized products page description. - * @member {String} page_keywords - */ - this.page_keywords = undefined - - /** - * The localized products page title. - * @member {String} page_title - */ - this.page_title = undefined - - /** - * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The maximum sales of related child products in case of complex products like master or set. - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * The prices map with price book ids and their values. - * @member {Object.<String, Number>} prices - */ - this.prices = undefined - - /** - * The id of the products primary category. - * @member {String} primary_category_id - */ - this.primary_category_id = undefined - - /** - * The array of source and target products links information. - * @member {Array.<module:models/ProductLink>} product_links - */ - this.product_links = undefined - - /** - * The array of active customer product promotions for this product. This array can be empty. Coupon promotions are not returned in this array. - * @member {Array.<module:models/ProductPromotion>} product_promotions - */ - this.product_promotions = undefined - - /** - * Returns a list of recommendations. - * @member {Array.<module:models/Recommendation>} recommendations - */ - this.recommendations = undefined - - /** - * The array of set products of this product. - * @member {Array.<module:models/Product>} set_products - */ - this.set_products = undefined - - /** - * The localized product short description. - * @member {String} short_description - */ - this.short_description = undefined - - /** - * The steps in which the order amount of the product can be increased. - * @member {Number} step_quantity - */ - this.step_quantity = undefined - - /** - * The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set. - * @member {module:models/ProductType} type - */ - this.type = undefined - - /** - * The sales unit of the product. - * @member {String} unit - */ - this.unit = undefined - - /** - * The Universal Product Code. - * @member {String} upc - */ - this.upc = undefined - - /** - * The array of actual variants. This array can be empty. Only for types master, variation group and variant. - * @member {Array.<module:models/Variant>} variants - */ - this.variants = undefined - - /** - * Sorted array of variation attributes information. This array can be empty. Only for types master, variation group and variant. - * @member {Array.<module:models/VariationAttribute>} variation_attributes - */ - this.variation_attributes = undefined - - /** - * The array of actual variation groups. This array can be empty. Only for types master, variation group and variant. - * @member {Array.<module:models/VariationGroup>} variation_groups - */ - this.variation_groups = undefined - /** - * The actual variation attribute id - value pairs. Only for type variant and variation group. - * @member {Object.<String, String>} variation_values - */ - this.variation_values = undefined } /** @@ -298,117 +98,1811 @@

Source: models/Product.js

if (data) { obj = obj || new Product() + + + + if (data.hasOwnProperty('brand')) { - obj['brand'] = ApiClient.convertToType(data['brand'], 'String') + obj.brand = ApiClient.convertToType(data.brand, 'String') } if (data.hasOwnProperty('bundled_products')) { - obj['bundled_products'] = ApiClient.convertToType(data['bundled_products'], [BundledProduct]) + obj.bundled_products = ApiClient.convertToType(data.bundled_products, [BundledProduct]) + } + if (data.hasOwnProperty('c_availableForInStorePickup')) { + obj.c_availableForInStorePickup = ApiClient.convertToType(data.c_availableForInStorePickup, 'Boolean') + } + if (data.hasOwnProperty('c_batteryLife')) { + obj.c_batteryLife = ApiClient.convertToType(data.c_batteryLife, 'String') + } + if (data.hasOwnProperty('c_batteryType')) { + obj.c_batteryType = ApiClient.convertToType(data.c_batteryType, 'String') + } + if (data.hasOwnProperty('c_bootType')) { + obj.c_bootType = ApiClient.convertToType(data.c_bootType, ['String']) + } + if (data.hasOwnProperty('c_bottomType')) { + obj.c_bottomType = ApiClient.convertToType(data.c_bottomType, ['String']) + } + if (data.hasOwnProperty('c_color')) { + obj.c_color = ApiClient.convertToType(data.c_color, 'String') + } + if (data.hasOwnProperty('c_consoleWarranty')) { + obj.c_consoleWarranty = ApiClient.convertToType(data.c_consoleWarranty, 'String') + } + if (data.hasOwnProperty('c_customCSSFile')) { + obj.c_customCSSFile = ApiClient.convertToType(data.c_customCSSFile, 'String') + } + if (data.hasOwnProperty('c_digitalCameraFeatures')) { + obj.c_digitalCameraFeatures = ApiClient.convertToType(data.c_digitalCameraFeatures, ['String']) + } + if (data.hasOwnProperty('c_digitalCameraPixels')) { + obj.c_digitalCameraPixels = ApiClient.convertToType(data.c_digitalCameraPixels, 'String') + } + if (data.hasOwnProperty('c_digitalCameraType')) { + obj.c_digitalCameraType = ApiClient.convertToType(data.c_digitalCameraType, 'String') + } + if (data.hasOwnProperty('c_digitalCameraWarranty')) { + obj.c_digitalCameraWarranty = ApiClient.convertToType(data.c_digitalCameraWarranty, 'String') + } + if (data.hasOwnProperty('c_dimDepth')) { + obj.c_dimDepth = ApiClient.convertToType(data.c_dimDepth, 'String') + } + if (data.hasOwnProperty('c_dimHeight')) { + obj.c_dimHeight = ApiClient.convertToType(data.c_dimHeight, 'String') + } + if (data.hasOwnProperty('c_dimWeight')) { + obj.c_dimWeight = ApiClient.convertToType(data.c_dimWeight, 'String') + } + if (data.hasOwnProperty('c_dimWidth')) { + obj.c_dimWidth = ApiClient.convertToType(data.c_dimWidth, 'String') + } + if (data.hasOwnProperty('c_displaySize')) { + obj.c_displaySize = ApiClient.convertToType(data.c_displaySize, 'String') + } + if (data.hasOwnProperty('c_gameGenre')) { + obj.c_gameGenre = ApiClient.convertToType(data.c_gameGenre, ['String']) + } + if (data.hasOwnProperty('c_gameRating')) { + obj.c_gameRating = ApiClient.convertToType(data.c_gameRating, 'String') + } + if (data.hasOwnProperty('c_gameSystemType')) { + obj.c_gameSystemType = ApiClient.convertToType(data.c_gameSystemType, 'String') + } + if (data.hasOwnProperty('c_gpsFeatures')) { + obj.c_gpsFeatures = ApiClient.convertToType(data.c_gpsFeatures, ['String']) + } + if (data.hasOwnProperty('c_gpsType')) { + obj.c_gpsType = ApiClient.convertToType(data.c_gpsType, ['String']) + } + if (data.hasOwnProperty('c_gpsWarranty')) { + obj.c_gpsWarranty = ApiClient.convertToType(data.c_gpsWarranty, 'String') + } + if (data.hasOwnProperty('c_imageAspectRatio')) { + obj.c_imageAspectRatio = ApiClient.convertToType(data.c_imageAspectRatio, 'String') + } + if (data.hasOwnProperty('c_isNew')) { + obj.c_isNew = ApiClient.convertToType(data.c_isNew, 'Boolean') + } + if (data.hasOwnProperty('c_isNewtest')) { + obj.c_isNewtest = ApiClient.convertToType(data.c_isNewtest, 'Boolean') + } + if (data.hasOwnProperty('c_isSale')) { + obj.c_isSale = ApiClient.convertToType(data.c_isSale, 'Boolean') + } + if (data.hasOwnProperty('c_kidsAge')) { + obj.c_kidsAge = ApiClient.convertToType(data.c_kidsAge, 'String') + } + if (data.hasOwnProperty('c_length')) { + obj.c_length = ApiClient.convertToType(data.c_length, 'String') + } + if (data.hasOwnProperty('c_lensAperture')) { + obj.c_lensAperture = ApiClient.convertToType(data.c_lensAperture, 'String') + } + if (data.hasOwnProperty('c_materialTest')) { + obj.c_materialTest = ApiClient.convertToType(data.c_materialTest, ['String']) + } + if (data.hasOwnProperty('c_mediaFormat')) { + obj.c_mediaFormat = ApiClient.convertToType(data.c_mediaFormat, ['String']) + } + if (data.hasOwnProperty('c_memorySize')) { + obj.c_memorySize = ApiClient.convertToType(data.c_memorySize, 'String') + } + if (data.hasOwnProperty('c_memoryType')) { + obj.c_memoryType = ApiClient.convertToType(data.c_memoryType, ['String']) + } + if (data.hasOwnProperty('c_musicStorage')) { + obj.c_musicStorage = ApiClient.convertToType(data.c_musicStorage, 'String') + } + if (data.hasOwnProperty('c_opticalZoom')) { + obj.c_opticalZoom = ApiClient.convertToType(data.c_opticalZoom, 'String') + } + if (data.hasOwnProperty('c_outerwearType')) { + obj.c_outerwearType = ApiClient.convertToType(data.c_outerwearType, 'String') + } + if (data.hasOwnProperty('c_portableAudioType')) { + obj.c_portableAudioType = ApiClient.convertToType(data.c_portableAudioType, ['String']) + } + if (data.hasOwnProperty('c_refinementColor')) { + obj.c_refinementColor = ApiClient.convertToType(data.c_refinementColor, 'String') + } + if (data.hasOwnProperty('c_resolution')) { + obj.c_resolution = ApiClient.convertToType(data.c_resolution, 'String') + } + if (data.hasOwnProperty('c_sandalType')) { + obj.c_sandalType = ApiClient.convertToType(data.c_sandalType, 'String') + } + if (data.hasOwnProperty('c_sheets')) { + obj.c_sheets = ApiClient.convertToType(data.c_sheets, ['String']) + } + if (data.hasOwnProperty('c_shoeType')) { + obj.c_shoeType = ApiClient.convertToType(data.c_shoeType, 'String') + } + if (data.hasOwnProperty('c_size')) { + obj.c_size = ApiClient.convertToType(data.c_size, 'String') + } + if (data.hasOwnProperty('c_skinConcern')) { + obj.c_skinConcern = ApiClient.convertToType(data.c_skinConcern, ['String']) + } + if (data.hasOwnProperty('c_styleNumber')) { + obj.c_styleNumber = ApiClient.convertToType(data.c_styleNumber, 'String') + } + if (data.hasOwnProperty('c_tabDescription')) { + obj.c_tabDescription = ApiClient.convertToType(data.c_tabDescription, 'String') + } + if (data.hasOwnProperty('c_tabDetails')) { + obj.c_tabDetails = ApiClient.convertToType(data.c_tabDetails, 'String') + } + if (data.hasOwnProperty('c_test')) { + obj.c_test = ApiClient.convertToType(data.c_test, 'String') + } + if (data.hasOwnProperty('c_topType')) { + obj.c_topType = ApiClient.convertToType(data.c_topType, 'String') + } + if (data.hasOwnProperty('c_tvSignalFormat')) { + obj.c_tvSignalFormat = ApiClient.convertToType(data.c_tvSignalFormat, 'String') + } + if (data.hasOwnProperty('c_tvSize')) { + obj.c_tvSize = ApiClient.convertToType(data.c_tvSize, 'String') + } + if (data.hasOwnProperty('c_tvType')) { + obj.c_tvType = ApiClient.convertToType(data.c_tvType, 'String') + } + if (data.hasOwnProperty('c_tvWarranty')) { + obj.c_tvWarranty = ApiClient.convertToType(data.c_tvWarranty, 'String') + } + if (data.hasOwnProperty('c_videoStorage')) { + obj.c_videoStorage = ApiClient.convertToType(data.c_videoStorage, 'String') + } + if (data.hasOwnProperty('c_waist')) { + obj.c_waist = ApiClient.convertToType(data.c_waist, 'String') + } + if (data.hasOwnProperty('c_width')) { + obj.c_width = ApiClient.convertToType(data.c_width, 'String') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('ean')) { - obj['ean'] = ApiClient.convertToType(data['ean'], 'String') + obj.ean = ApiClient.convertToType(data.ean, 'String') } if (data.hasOwnProperty('fetch_date')) { - obj['fetch_date'] = ApiClient.convertToType(data['fetch_date'], 'Number') + obj.fetch_date = ApiClient.convertToType(data.fetch_date, 'Number') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image_groups')) { - obj['image_groups'] = ApiClient.convertToType(data['image_groups'], [ImageGroup]) + obj.image_groups = ApiClient.convertToType(data.image_groups, [ImageGroup]) } if (data.hasOwnProperty('inventories')) { - obj['inventories'] = ApiClient.convertToType(data['inventories'], [Inventory]) + obj.inventories = ApiClient.convertToType(data.inventories, [Inventory]) } if (data.hasOwnProperty('inventory')) { - obj['inventory'] = Inventory.constructFromObject(data['inventory']) + obj.inventory = Inventory.constructFromObject(data.inventory) } if (data.hasOwnProperty('long_description')) { - obj['long_description'] = ApiClient.convertToType(data['long_description'], 'String') + obj.long_description = ApiClient.convertToType(data.long_description, 'String') } if (data.hasOwnProperty('manufacturer_name')) { - obj['manufacturer_name'] = ApiClient.convertToType(data['manufacturer_name'], 'String') + obj.manufacturer_name = ApiClient.convertToType(data.manufacturer_name, 'String') } if (data.hasOwnProperty('manufacturer_sku')) { - obj['manufacturer_sku'] = ApiClient.convertToType(data['manufacturer_sku'], 'String') + obj.manufacturer_sku = ApiClient.convertToType(data.manufacturer_sku, 'String') } if (data.hasOwnProperty('master')) { - obj['master'] = Master.constructFromObject(data['master']) + obj.master = Master.constructFromObject(data.master) } if (data.hasOwnProperty('min_order_quantity')) { - obj['min_order_quantity'] = ApiClient.convertToType(data['min_order_quantity'], 'Number') + obj.min_order_quantity = ApiClient.convertToType(data.min_order_quantity, 'Number') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Option]) + obj.options = ApiClient.convertToType(data.options, [Option]) } if (data.hasOwnProperty('page_description')) { - obj['page_description'] = ApiClient.convertToType(data['page_description'], 'String') + obj.page_description = ApiClient.convertToType(data.page_description, 'String') } if (data.hasOwnProperty('page_keywords')) { - obj['page_keywords'] = ApiClient.convertToType(data['page_keywords'], 'String') + obj.page_keywords = ApiClient.convertToType(data.page_keywords, 'String') } if (data.hasOwnProperty('page_title')) { - obj['page_title'] = ApiClient.convertToType(data['page_title'], 'String') + obj.page_title = ApiClient.convertToType(data.page_title, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } if (data.hasOwnProperty('primary_category_id')) { - obj['primary_category_id'] = ApiClient.convertToType(data['primary_category_id'], 'String') + obj.primary_category_id = ApiClient.convertToType(data.primary_category_id, 'String') } if (data.hasOwnProperty('product_links')) { - obj['product_links'] = ApiClient.convertToType(data['product_links'], [ProductLink]) + obj.product_links = ApiClient.convertToType(data.product_links, [ProductLink]) } if (data.hasOwnProperty('product_promotions')) { - obj['product_promotions'] = ApiClient.convertToType(data['product_promotions'], [ProductPromotion]) + obj.product_promotions = ApiClient.convertToType(data.product_promotions, [ProductPromotion]) } if (data.hasOwnProperty('recommendations')) { - obj['recommendations'] = ApiClient.convertToType(data['recommendations'], [Recommendation]) + obj.recommendations = ApiClient.convertToType(data.recommendations, [Recommendation]) } if (data.hasOwnProperty('set_products')) { - obj['set_products'] = ApiClient.convertToType(data['set_products'], [Product]) + obj.set_products = ApiClient.convertToType(data.set_products, [Product]) } if (data.hasOwnProperty('short_description')) { - obj['short_description'] = ApiClient.convertToType(data['short_description'], 'String') + obj.short_description = ApiClient.convertToType(data.short_description, 'String') } if (data.hasOwnProperty('step_quantity')) { - obj['step_quantity'] = ApiClient.convertToType(data['step_quantity'], 'Number') + obj.step_quantity = ApiClient.convertToType(data.step_quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ProductType.constructFromObject(data['type']) + obj.type = ProductType.constructFromObject(data.type) } if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String') + obj.unit = ApiClient.convertToType(data.unit, 'String') } if (data.hasOwnProperty('upc')) { - obj['upc'] = ApiClient.convertToType(data['upc'], 'String') + obj.upc = ApiClient.convertToType(data.upc, 'String') + } + if (data.hasOwnProperty('valid_from')) { + obj.valid_from = ApiClient.convertToType(data.valid_from, 'Date') + } + if (data.hasOwnProperty('valid_to')) { + obj.valid_to = ApiClient.convertToType(data.valid_to, 'Date') } if (data.hasOwnProperty('variants')) { - obj['variants'] = ApiClient.convertToType(data['variants'], [Variant]) + obj.variants = ApiClient.convertToType(data.variants, [Variant]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } if (data.hasOwnProperty('variation_groups')) { - obj['variation_groups'] = ApiClient.convertToType(data['variation_groups'], [VariationGroup]) + obj.variation_groups = ApiClient.convertToType(data.variation_groups, [VariationGroup]) } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } return obj } + + /** + * The product's brand. + * @member {String} brand + */ + brand = undefined; + /** + * The array of all bundled products of this product. + * @member {Array.<module:models/BundledProduct>} bundled_products + */ + bundled_products = undefined; + /** + * Signals if there are inventory lists for brick-and-mortar stores associated with this product. + * @member {Boolean} c_availableForInStorePickup + */ + c_availableForInStorePickup = undefined; + /** + * @member {String} c_batteryLife + */ + c_batteryLife = undefined; + /** + * @member {String} c_batteryType + */ + c_batteryType = undefined; + /** + * Type of Boot for search refinement. + * @member {Array.<module:models/Product.CBootTypeEnum>} c_bootType + */ + c_bootType = undefined; + /** + * Bottom type for search refinement + * @member {Array.<module:models/Product.CBottomTypeEnum>} c_bottomType + */ + c_bottomType = undefined; + /** + * Product color used for variation attribute + * @member {String} c_color + */ + c_color = undefined; + /** + * @member {String} c_consoleWarranty + */ + c_consoleWarranty = undefined; + /** + * Use this attribute to apply custom styles for this product. + * @member {String} c_customCSSFile + */ + c_customCSSFile = undefined; + /** + * @member {Array.<module:models/Product.CDigitalCameraFeaturesEnum>} c_digitalCameraFeatures + */ + c_digitalCameraFeatures = undefined; + /** + * @member {String} c_digitalCameraPixels + */ + c_digitalCameraPixels = undefined; + /** + * @member {String} c_digitalCameraType + */ + c_digitalCameraType = undefined; + /** + * @member {String} c_digitalCameraWarranty + */ + c_digitalCameraWarranty = undefined; + /** + * @member {String} c_dimDepth + */ + c_dimDepth = undefined; + /** + * @member {String} c_dimHeight + */ + c_dimHeight = undefined; + /** + * @member {String} c_dimWeight + */ + c_dimWeight = undefined; + /** + * @member {String} c_dimWidth + */ + c_dimWidth = undefined; + /** + * @member {String} c_displaySize + */ + c_displaySize = undefined; + /** + * @member {Array.<module:models/Product.CGameGenreEnum>} c_gameGenre + */ + c_gameGenre = undefined; + /** + * @member {String} c_gameRating + */ + c_gameRating = undefined; + /** + * @member {String} c_gameSystemType + */ + c_gameSystemType = undefined; + /** + * @member {Array.<module:models/Product.CGpsFeaturesEnum>} c_gpsFeatures + */ + c_gpsFeatures = undefined; + /** + * @member {Array.<module:models/Product.CGpsTypeEnum>} c_gpsType + */ + c_gpsType = undefined; + /** + * @member {String} c_gpsWarranty + */ + c_gpsWarranty = undefined; + /** + * @member {String} c_imageAspectRatio + */ + c_imageAspectRatio = undefined; + /** + * @member {Boolean} c_isNew + */ + c_isNew = undefined; + /** + * This indiciates if the product is a new arrival. + * @member {Boolean} c_isNewtest + */ + c_isNewtest = undefined; + /** + * This is the help text. It is used for sorting rules. + * @member {Boolean} c_isSale + */ + c_isSale = undefined; + /** + * Kids Age used for search refinements + * @member {module:models/Product.CKidsAgeEnum} c_kidsAge + */ + c_kidsAge = undefined; + /** + * This attribute is used for mens and womens pants lengths. + * @member {String} c_length + */ + c_length = undefined; + /** + * @member {String} c_lensAperture + */ + c_lensAperture = undefined; + /** + * @member {Array.<module:models/Product.CMaterialTestEnum>} c_materialTest + */ + c_materialTest = undefined; + /** + * Media Format + * @member {Array.<module:models/Product.CMediaFormatEnum>} c_mediaFormat + */ + c_mediaFormat = undefined; + /** + * Memory Size + * @member {String} c_memorySize + */ + c_memorySize = undefined; + /** + * @member {Array.<module:models/Product.CMemoryTypeEnum>} c_memoryType + */ + c_memoryType = undefined; + /** + * @member {String} c_musicStorage + */ + c_musicStorage = undefined; + /** + * @member {String} c_opticalZoom + */ + c_opticalZoom = undefined; + /** + * Type of Outerwear for search refinement + * @member {module:models/Product.COuterwearTypeEnum} c_outerwearType + */ + c_outerwearType = undefined; + /** + * @member {Array.<module:models/Product.CPortableAudioTypeEnum>} c_portableAudioType + */ + c_portableAudioType = undefined; + /** + * @member {module:models/Product.CRefinementColorEnum} c_refinementColor + */ + c_refinementColor = undefined; + /** + * @member {String} c_resolution + */ + c_resolution = undefined; + /** + * Type of Sandal for search refinement + * @member {module:models/Product.CSandalTypeEnum} c_sandalType + */ + c_sandalType = undefined; + /** + * test attribute + * @member {Array.<module:models/Product.CSheetsEnum>} c_sheets + */ + c_sheets = undefined; + /** + * Type of Shoe for search refinements + * @member {module:models/Product.CShoeTypeEnum} c_shoeType + */ + c_shoeType = undefined; + /** + * This attribute is used for all footwear, apparel and accessory sizing for men, women and kids products. + * @member {String} c_size + */ + c_size = undefined; + /** + * @member {Array.<module:models/Product.CSkinConcernEnum>} c_skinConcern + */ + c_skinConcern = undefined; + /** + * @member {String} c_styleNumber + */ + c_styleNumber = undefined; + /** + * @member {String} c_tabDescription + */ + c_tabDescription = undefined; + /** + * @member {String} c_tabDetails + */ + c_tabDetails = undefined; + /** + * @member {String} c_test + */ + c_test = undefined; + /** + * Type of tops in clothing + * @member {String} c_topType + */ + c_topType = undefined; + /** + * @member {String} c_tvSignalFormat + */ + c_tvSignalFormat = undefined; + /** + * @member {String} c_tvSize + */ + c_tvSize = undefined; + /** + * @member {module:models/Product.CTvTypeEnum} c_tvType + */ + c_tvType = undefined; + /** + * @member {String} c_tvWarranty + */ + c_tvWarranty = undefined; + /** + * @member {String} c_videoStorage + */ + c_videoStorage = undefined; + /** + * Attribute used for apparel waist sizing. + * @member {String} c_waist + */ + c_waist = undefined; + /** + * This attribute is used for shoe widths for mens, womens and kids. + * @member {String} c_width + */ + c_width = undefined; + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The European Article Number. + * @member {String} ean + */ + ean = undefined; + /** + * @member {Number} fetch_date + */ + fetch_date = undefined; + /** + * The id (SKU) of the product. + * @member {String} id + */ + id = undefined; + /** + * The array of product image groups. + * @member {Array.<module:models/ImageGroup>} image_groups + */ + image_groups = undefined; + /** + * The array of product inventories explicitly requested via 'inventory_ids' query parameter. This property is only returned in context of the 'availability' expansion. + * @member {Array.<module:models/Inventory>} inventories + */ + inventories = undefined; + /** + * The site default inventory information. This property is only returned in context of the 'availability' expansion. + * @member {module:models/Inventory} inventory + */ + inventory = undefined; + /** + * The localized product long description. + * @member {String} long_description + */ + long_description = undefined; + /** + * The products manufacturer name. + * @member {String} manufacturer_name + */ + manufacturer_name = undefined; + /** + * The products manufacturer sku. + * @member {String} manufacturer_sku + */ + manufacturer_sku = undefined; + /** + * The master product information. Only for types master, variation group and variant. + * @member {module:models/Master} master + */ + master = undefined; + /** + * The minimum order quantity for this product. + * @member {Number} min_order_quantity + */ + min_order_quantity = undefined; + /** + * The localized product name. + * @member {String} name + */ + name = undefined; + /** + * The array of product options. This array can be empty. Only for type option. + * @member {Array.<module:models/Option>} options + */ + options = undefined; + /** + * The localized products page description. + * @member {String} page_description + */ + page_description = undefined; + /** + * The localized products page description. + * @member {String} page_keywords + */ + page_keywords = undefined; + /** + * The localized products page title. + * @member {String} page_title + */ + page_title = undefined; + /** + * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The maximum sales of related child products in case of complex products like master or set. + * @member {Number} price_max + */ + price_max = undefined; + /** + * The prices map with price book ids and their values. + * @member {Object.<String, Number>} prices + */ + prices = undefined; + /** + * The id of the products primary category. + * @member {String} primary_category_id + */ + primary_category_id = undefined; + /** + * The array of source and target products links information. + * @member {Array.<module:models/ProductLink>} product_links + */ + product_links = undefined; + /** + * The array of active customer product promotions for this product. This array can be empty. Coupon promotions are not returned in this array. + * @member {Array.<module:models/ProductPromotion>} product_promotions + */ + product_promotions = undefined; + /** + * Returns a list of recommendations. + * @member {Array.<module:models/Recommendation>} recommendations + */ + recommendations = undefined; + /** + * The array of set products of this product. + * @member {Array.<module:models/Product>} set_products + */ + set_products = undefined; + /** + * The localized product short description. + * @member {String} short_description + */ + short_description = undefined; + /** + * The steps in which the order amount of the product can be increased. + * @member {Number} step_quantity + */ + step_quantity = undefined; + /** + * The product type information. Can be one or multiple of the following values: item,master,variation_group,variant,bundle,set. + * @member {module:models/ProductType} type + */ + type = undefined; + /** + * The sales unit of the product. + * @member {String} unit + */ + unit = undefined; + /** + * The Universal Product Code. + * @member {String} upc + */ + upc = undefined; + /** + * The time when product is valid from. + * @member {Date} valid_from + */ + valid_from = undefined; + /** + * The time when product is valid to. + * @member {Date} valid_to + */ + valid_to = undefined; + /** + * The array of actual variants. This array can be empty. Only for types master, variation group and variant. + * @member {Array.<module:models/Variant>} variants + */ + variants = undefined; + /** + * Sorted array of variation attributes information. This array can be empty. Only for types master, variation group and variant. + * @member {Array.<module:models/VariationAttribute>} variation_attributes + */ + variation_attributes = undefined; + /** + * The array of actual variation groups. This array can be empty. Only for types master, variation group and variant. + * @member {Array.<module:models/VariationGroup>} variation_groups + */ + variation_groups = undefined; + /** + * The actual variation attribute id - value pairs. Only for type variant and variation group. + * @member {Object.<String, String>} variation_values + */ + variation_values = undefined; + + + + + + + /** + * Allowed values for the <code>cBootType</code> property. + * @enum {String} + * @readonly + */ + static CBootTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070' + }; + + /** + * Allowed values for the <code>cBottomType</code> property. + * @enum {String} + * @readonly + */ + static CBottomTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080' + }; + + /** + * Allowed values for the <code>cDigitalCameraFeatures</code> property. + * @enum {String} + * @readonly + */ + static CDigitalCameraFeaturesEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110', + + /** + * value: "0120" + * @const + */ + '0120': '0120', + + /** + * value: "0130" + * @const + */ + '0130': '0130', + + /** + * value: "0140" + * @const + */ + '0140': '0140', + + /** + * value: "0150" + * @const + */ + '0150': '0150', + + /** + * value: "0160" + * @const + */ + '0160': '0160', + + /** + * value: "0170" + * @const + */ + '0170': '0170', + + /** + * value: "0180" + * @const + */ + '0180': '0180', + + /** + * value: "0190" + * @const + */ + '0190': '0190', + + /** + * value: "0200" + * @const + */ + '0200': '0200', + + /** + * value: "0210" + * @const + */ + '0210': '0210', + + /** + * value: "0220" + * @const + */ + '0220': '0220', + + /** + * value: "0230" + * @const + */ + '0230': '0230', + + /** + * value: "0240" + * @const + */ + '0240': '0240', + + /** + * value: "0250" + * @const + */ + '0250': '0250', + + /** + * value: "0260" + * @const + */ + '0260': '0260', + + /** + * value: "0270" + * @const + */ + '0270': '0270', + + /** + * value: "0280" + * @const + */ + '0280': '0280' + }; + + /** + * Allowed values for the <code>cGameGenre</code> property. + * @enum {String} + * @readonly + */ + static CGameGenreEnum = { + + /** + * value: "Action" + * @const + */ + Action: 'Action', + + /** + * value: "Educational" + * @const + */ + Educational: 'Educational', + + /** + * value: "Kids" + * @const + */ + Kids: 'Kids', + + /** + * value: "Racing" + * @const + */ + Racing: 'Racing', + + /** + * value: "Role-Playing" + * @const + */ + 'Role-Playing': 'Role-Playing', + + /** + * value: "Sports" + * @const + */ + Sports: 'Sports', + + /** + * value: "Strategy" + * @const + */ + Strategy: 'Strategy' + }; + + /** + * Allowed values for the <code>cGpsFeatures</code> property. + * @enum {String} + * @readonly + */ + static CGpsFeaturesEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110', + + /** + * value: "0120" + * @const + */ + '0120': '0120', + + /** + * value: "0130" + * @const + */ + '0130': '0130', + + /** + * value: "0140" + * @const + */ + '0140': '0140', + + /** + * value: "0150" + * @const + */ + '0150': '0150', + + /** + * value: "0160" + * @const + */ + '0160': '0160', + + /** + * value: "0170" + * @const + */ + '0170': '0170', + + /** + * value: "0180" + * @const + */ + '0180': '0180', + + /** + * value: "0190" + * @const + */ + '0190': '0190', + + /** + * value: "0200" + * @const + */ + '0200': '0200', + + /** + * value: "0210" + * @const + */ + '0210': '0210', + + /** + * value: "0230" + * @const + */ + '0230': '0230' + }; + + /** + * Allowed values for the <code>cGpsType</code> property. + * @enum {String} + * @readonly + */ + static CGpsTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040' + }; + + /** + * Allowed values for the <code>c_kidsAge</code> property. + * @enum {String} + * @readonly + */ + static CKidsAgeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070' + }; + + /** + * Allowed values for the <code>cMaterialTest</code> property. + * @enum {String} + * @readonly + */ + static CMaterialTestEnum = { + + /** + * value: "cotton" + * @const + */ + cotton: 'cotton', + + /** + * value: "wool" + * @const + */ + wool: 'wool', + + /** + * value: "polyester" + * @const + */ + polyester: 'polyester' + }; + + /** + * Allowed values for the <code>cMediaFormat</code> property. + * @enum {String} + * @readonly + */ + static CMediaFormatEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100' + }; + + /** + * Allowed values for the <code>cMemoryType</code> property. + * @enum {String} + * @readonly + */ + static CMemoryTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090' + }; + + /** + * Allowed values for the <code>c_outerwearType</code> property. + * @enum {String} + * @readonly + */ + static COuterwearTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080' + }; + + /** + * Allowed values for the <code>cPortableAudioType</code> property. + * @enum {String} + * @readonly + */ + static CPortableAudioTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030' + }; + + /** + * Allowed values for the <code>c_refinementColor</code> property. + * @enum {String} + * @readonly + */ + static CRefinementColorEnum = { + + /** + * value: "black" + * @const + */ + black: 'black', + + /** + * value: "blue" + * @const + */ + blue: 'blue', + + /** + * value: "green" + * @const + */ + green: 'green', + + /** + * value: "red" + * @const + */ + red: 'red', + + /** + * value: "orange" + * @const + */ + orange: 'orange', + + /** + * value: "pink" + * @const + */ + pink: 'pink', + + /** + * value: "purple" + * @const + */ + purple: 'purple', + + /** + * value: "white" + * @const + */ + white: 'white', + + /** + * value: "yellow" + * @const + */ + yellow: 'yellow', + + /** + * value: "grey" + * @const + */ + grey: 'grey', + + /** + * value: "beige" + * @const + */ + beige: 'beige', + + /** + * value: "miscellaneous" + * @const + */ + miscellaneous: 'miscellaneous', + + /** + * value: "brown" + * @const + */ + brown: 'brown', + + /** + * value: "navy" + * @const + */ + navy: 'navy' + }; + + /** + * Allowed values for the <code>c_sandalType</code> property. + * @enum {String} + * @readonly + */ + static CSandalTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030' + }; + + /** + * Allowed values for the <code>cSheets</code> property. + * @enum {String} + * @readonly + */ + static CSheetsEnum = { + + /** + * value: "value1" + * @const + */ + value1: 'value1', + + /** + * value: "value2" + * @const + */ + value2: 'value2', + + /** + * value: "value3" + * @const + */ + value3: 'value3' + }; + + /** + * Allowed values for the <code>c_shoeType</code> property. + * @enum {String} + * @readonly + */ + static CShoeTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040', + + /** + * value: "0050" + * @const + */ + '0050': '0050', + + /** + * value: "0060" + * @const + */ + '0060': '0060', + + /** + * value: "0070" + * @const + */ + '0070': '0070', + + /** + * value: "0080" + * @const + */ + '0080': '0080', + + /** + * value: "0090" + * @const + */ + '0090': '0090', + + /** + * value: "0100" + * @const + */ + '0100': '0100', + + /** + * value: "0110" + * @const + */ + '0110': '0110' + }; + + /** + * Allowed values for the <code>cSkinConcern</code> property. + * @enum {String} + * @readonly + */ + static CSkinConcernEnum = { + + /** + * value: "dryTight" + * @const + */ + dryTight: 'dryTight', + + /** + * value: "comprehensive" + * @const + */ + comprehensive: 'comprehensive', + + /** + * value: "liftingLossFirm" + * @const + */ + liftingLossFirm: 'liftingLossFirm' + }; + + /** + * Allowed values for the <code>c_tvType</code> property. + * @enum {String} + * @readonly + */ + static CTvTypeEnum = { + + /** + * value: "0010" + * @const + */ + '0010': '0010', + + /** + * value: "0020" + * @const + */ + '0020': '0020', + + /** + * value: "0030" + * @const + */ + '0030': '0030', + + /** + * value: "0040" + * @const + */ + '0040': '0040' + }; + + + }
@@ -420,7 +1914,7 @@

Source: models/Product.js


diff --git a/docs/models_ProductDetailsLink.js.html b/docs/models_ProductDetailsLink.js.html index 6ff7394..84d41d9 100644 --- a/docs/models_ProductDetailsLink.js.html +++ b/docs/models_ProductDetailsLink.js.html @@ -27,15 +27,14 @@

Source: models/ProductDetailsLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductDetailsLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductDetailsLink model module. * @module models/ProductDetailsLink -* @version 17.8 +* @version 20.4 */ export default class ProductDetailsLink { /** @@ -58,36 +63,16 @@

Source: models/ProductDetailsLink.js

* @class * @param productId {String} The id of the product. */ + constructor(productId) { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The description of the product. - * @member {String} product_description - */ - this.product_description = undefined - - /** - * The id of the product. - * @member {String} product_id - */ + + + + + this.product_id = productId - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + } /** @@ -101,26 +86,65 @@

Source: models/ProductDetailsLink.js

if (data) { obj = obj || new ProductDetailsLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('product_description')) { - obj['product_description'] = ApiClient.convertToType(data['product_description'], 'String') + obj.product_description = ApiClient.convertToType(data.product_description, 'String') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The description of the product. + * @member {String} product_description + */ + product_description = undefined; + /** + * The id of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + +
@@ -131,7 +155,7 @@

Source: models/ProductDetailsLink.js


diff --git a/docs/models_ProductItem.js.html b/docs/models_ProductItem.js.html index be6c9ca..ef39db1 100644 --- a/docs/models_ProductItem.js.html +++ b/docs/models_ProductItem.js.html @@ -27,15 +27,14 @@

Source: models/ProductItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,276 +42,277 @@ 

Source: models/ProductItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OptionItem from './OptionItem' import PriceAdjustment from './PriceAdjustment' import ProductListItemReference from './ProductListItemReference' + + + + /** - * The ProductItem model module. - * @module models/ProductItem - * @version 17.8 - */ +* The ProductItem model module. +* @module models/ProductItem +* @version 20.4 +*/ export default class ProductItem { /** - * Constructs a new <code>ProductItem</code>. - * Document representing a product item. - * @alias module:models/ProductItem - * @class - * @param quantity {Number} The quantity of the products represented by this item. - */ + * Constructs a new <code>ProductItem</code>. + * Document representing a product item. + * @alias module:models/ProductItem + * @class + * @param quantity {Number} The quantity of the products represented by this item. + */ + constructor(quantity) { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before applying adjustments, - * in the purchase currency. The base price may be net or gross of tax depending on the - * configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - - /** - * The id of the bonus discount line item this bonus product relates to. - * @member {String} bonus_discount_line_item_id - */ - this.bonus_discount_line_item_id = undefined - - /** - * A flag indicating whether the product item is a bonus. - * @member {Boolean} bonus_product_line_item - */ - this.bonus_product_line_item = undefined - - /** - * The array of bundled product items. Can be empty. - * @member {Array.<module:models/ProductItem>} bundled_product_items - */ - this.bundled_product_items = undefined - - /** - * Returns true if the item is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The inventory list id associated with this item. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The item identifier. Use this to identify an item when updating the item quantity or - * creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The array of option items. This array can be empty. - * @member {Array.<module:models/OptionItem>} option_items - */ - this.option_items = undefined - - /** - * The price of the line item before applying any adjustments. If the line item is based - * on net pricing then the net price is returned. If the line item is based on gross - * pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.<module:models/PriceAdjustment>} price_adjustments - */ - this.price_adjustments = undefined - - /** - * The price of the product line item after applying all product-level adjustments. For - * net pricing the adjusted net price is returned. For gross pricing, the adjusted gross - * price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined - - /** - * The price of this product line item after considering all dependent price adjustments - * and prorating all order-level price adjustments. For net pricing the net price is - * returned. For gross pricing, the gross price is returned. - * @member {Number} price_after_order_discount - */ - this.price_after_order_discount = undefined - - /** - * - * @member {String} product_id - */ - this.product_id = undefined - - /** - * - * @member {module:models/ProductListItemReference} product_list_item - */ - this.product_list_item = undefined - - /** - * The name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The quantity of the products represented by this item. - * @member {Number} quantity - */ + + + + + this.quantity = quantity - /** - * The id of the shipment which includes the product item. - * @member {String} shipment_id - */ - this.shipment_id = undefined - - /** - * The reference to the related shipping item if it exists. This is the case if for example - * when a surcharge is defined for individual products using a particular a shipping method. - * @member {String} shipping_item_id - */ - this.shipping_item_id = undefined - - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined - - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - - /** - * The tax class ID for the product item or null if no tax class ID is associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined + } /** - * Constructs a <code>ProductItem</code> from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:models/ProductItem} obj Optional instance to populate. - * @return {module:models/ProductItem} The populated <code>ProductItem</code> instance. - */ + * Constructs a <code>ProductItem</code> from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:models/ProductItem} obj Optional instance to populate. + * @return {module:models/ProductItem} The populated <code>ProductItem</code> instance. + */ static constructFromObject(data, obj) { if (data) { obj = obj || new ProductItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('bonus_discount_line_item_id')) { - obj['bonus_discount_line_item_id'] = ApiClient.convertToType(data['bonus_discount_line_item_id'], 'String') + obj.bonus_discount_line_item_id = ApiClient.convertToType(data.bonus_discount_line_item_id, 'String') } if (data.hasOwnProperty('bonus_product_line_item')) { - obj['bonus_product_line_item'] = ApiClient.convertToType(data['bonus_product_line_item'], 'Boolean') + obj.bonus_product_line_item = ApiClient.convertToType(data.bonus_product_line_item, 'Boolean') } if (data.hasOwnProperty('bundled_product_items')) { - obj['bundled_product_items'] = ApiClient.convertToType(data['bundled_product_items'], [ProductItem]) + obj.bundled_product_items = ApiClient.convertToType(data.bundled_product_items, [ProductItem]) + } + if (data.hasOwnProperty('c_fromStoreId')) { + obj.c_fromStoreId = ApiClient.convertToType(data.c_fromStoreId, 'String') } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('option_items')) { - obj['option_items'] = ApiClient.convertToType(data['option_items'], [OptionItem]) + obj.option_items = ApiClient.convertToType(data.option_items, [OptionItem]) } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('price_after_order_discount')) { - obj['price_after_order_discount'] = ApiClient.convertToType(data['price_after_order_discount'], 'Number') + obj.price_after_order_discount = ApiClient.convertToType(data.price_after_order_discount, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_list_item')) { - obj['product_list_item'] = ProductListItemReference.constructFromObject(data['product_list_item']) + obj.product_list_item = ProductListItemReference.constructFromObject(data.product_list_item) } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipping_item_id')) { - obj['shipping_item_id'] = ApiClient.convertToType(data['shipping_item_id'], 'String') + obj.shipping_item_id = ApiClient.convertToType(data.shipping_item_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The id of the bonus discount line item this bonus product relates to. + * @member {String} bonus_discount_line_item_id + */ + bonus_discount_line_item_id = undefined; + /** + * A flag indicating whether the product item is a bonus. + * @member {Boolean} bonus_product_line_item + */ + bonus_product_line_item = undefined; + /** + * The array of bundled product items. Can be empty. + * @member {Array.<module:models/ProductItem>} bundled_product_items + */ + bundled_product_items = undefined; + /** + * Links the store to the product line item for grouping shipments in the checkout process. + * @member {String} c_fromStoreId + */ + c_fromStoreId = undefined; + /** + * Returns true if the item is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The inventory list id associated with this item. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The array of option items. This array can be empty. + * @member {Array.<module:models/OptionItem>} option_items + */ + option_items = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.<module:models/PriceAdjustment>} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The price of this product line item after considering all dependent price adjustments and prorating all order-level price adjustments. For net pricing the net price is returned. For gross pricing, the gross price is returned. + * @member {Number} price_after_order_discount + */ + price_after_order_discount = undefined; + /** + * + * @member {String} product_id + */ + product_id = undefined; + /** + * + * @member {module:models/ProductListItemReference} product_list_item + */ + product_list_item = undefined; + /** + * The name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The quantity of the products represented by this item. + * @member {Number} quantity + */ + quantity = undefined; + /** + * The id of the shipment which includes the product item. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The reference to the related shipping item if it exists. This is the case if for example when a surcharge is defined for individual products using a particular a shipping method. + * @member {String} shipping_item_id + */ + shipping_item_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + }
@@ -324,7 +324,7 @@

Source: models/ProductItem.js


diff --git a/docs/models_ProductLink.js.html b/docs/models_ProductLink.js.html index 6a3bf94..6d96649 100644 --- a/docs/models_ProductLink.js.html +++ b/docs/models_ProductLink.js.html @@ -27,15 +27,14 @@

Source: models/ProductLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductLink model module. * @module models/ProductLink -* @version 17.8 +* @version 20.4 */ export default class ProductLink { /** @@ -57,36 +62,16 @@

Source: models/ProductLink.js

* @alias module:models/ProductLink * @class */ + constructor() { - /** - * The semantic id of the product from which this product link is coming. - * @member {String} source_product_id - */ - this.source_product_id = undefined - /** - * The URL addressing the product from which this product link is coming. - * @member {String} source_product_link - */ - this.source_product_link = undefined - /** - * The semantic id of the product to which this product link is pointing. - * @member {String} target_product_id - */ - this.target_product_id = undefined - /** - * The URL addressing the product to which this product link is pointing. - * @member {String} target_product_link - */ - this.target_product_link = undefined - /** - * The type of this product link. - * @member {module:models/ProductLink.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -100,82 +85,121 @@

Source: models/ProductLink.js

if (data) { obj = obj || new ProductLink() + + + + if (data.hasOwnProperty('source_product_id')) { - obj['source_product_id'] = ApiClient.convertToType(data['source_product_id'], 'String') + obj.source_product_id = ApiClient.convertToType(data.source_product_id, 'String') } if (data.hasOwnProperty('source_product_link')) { - obj['source_product_link'] = ApiClient.convertToType(data['source_product_link'], 'String') + obj.source_product_link = ApiClient.convertToType(data.source_product_link, 'String') } if (data.hasOwnProperty('target_product_id')) { - obj['target_product_id'] = ApiClient.convertToType(data['target_product_id'], 'String') + obj.target_product_id = ApiClient.convertToType(data.target_product_id, 'String') } if (data.hasOwnProperty('target_product_link')) { - obj['target_product_link'] = ApiClient.convertToType(data['target_product_link'], 'String') + obj.target_product_link = ApiClient.convertToType(data.target_product_link, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -ProductLink.TypeEnum = { /** - * value: "cross_sell" - * @const - */ - cross_sell: 'cross_sell', - + * The semantic id of the product from which this product link is coming. + * @member {String} source_product_id + */ + source_product_id = undefined; /** - * value: "replacement" - * @const - */ - replacement: 'replacement', - + * The URL addressing the product from which this product link is coming. + * @member {String} source_product_link + */ + source_product_link = undefined; /** - * value: "up_sell" - * @const - */ - up_sell: 'up_sell', - + * The semantic id of the product to which this product link is pointing. + * @member {String} target_product_id + */ + target_product_id = undefined; /** - * value: "accessory" - * @const - */ - accessory: 'accessory', - + * The URL addressing the product to which this product link is pointing. + * @member {String} target_product_link + */ + target_product_link = undefined; /** - * value: "newer_version" - * @const - */ - newer_version: 'newer_version', + * The type of this product link. + * @member {module:models/ProductLink.TypeEnum} type + */ + type = undefined; + + + - /** - * value: "alt_orderunit" - * @const - */ - alt_orderunit: 'alt_orderunit', - /** - * value: "spare_part" - * @const - */ - spare_part: 'spare_part', /** - * value: "other" - * @const - */ - other: 'other' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "cross_sell" + * @const + */ + cross_sell: 'cross_sell', + + /** + * value: "replacement" + * @const + */ + replacement: 'replacement', + + /** + * value: "up_sell" + * @const + */ + up_sell: 'up_sell', + + /** + * value: "accessory" + * @const + */ + accessory: 'accessory', + + /** + * value: "newer_version" + * @const + */ + newer_version: 'newer_version', + + /** + * value: "alt_orderunit" + * @const + */ + alt_orderunit: 'alt_orderunit', + + /** + * value: "spare_part" + * @const + */ + spare_part: 'spare_part', + + /** + * value: "other" + * @const + */ + other: 'other' + }; + + + } + +
@@ -186,7 +210,7 @@

Source: models/ProductLink.js


diff --git a/docs/models_ProductListEvent.js.html b/docs/models_ProductListEvent.js.html index 6c18b5e..08ea326 100644 --- a/docs/models_ProductListEvent.js.html +++ b/docs/models_ProductListEvent.js.html @@ -27,15 +27,14 @@

Source: models/ProductListEvent.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductListEvent.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListEvent model module. * @module models/ProductListEvent -* @version 17.8 +* @version 20.4 */ export default class ProductListEvent { /** @@ -57,36 +62,16 @@

Source: models/ProductListEvent.js

* @alias module:models/ProductListEvent * @class */ + constructor() { - /** - * The city where the event takes place. - * @member {String} city - */ - this.city = undefined - - /** - * The country where the event takes place. - * @member {String} country - */ - this.country = undefined - - /** - * The date when the event takes place. - * @member {Date} date - */ - this.date = undefined - - /** - * The federal state where the event takes place. - * @member {String} state - */ - this.state = undefined - - /** - * Type of the event to celebrate. - * @member {String} type - */ - this.type = undefined + + + + + + + + } /** @@ -100,26 +85,65 @@

Source: models/ProductListEvent.js

if (data) { obj = obj || new ProductListEvent() + + + + if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String') + obj.country = ApiClient.convertToType(data.country, 'String') } if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'Date') + obj.date = ApiClient.convertToType(data.date, 'Date') } if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String') + obj.state = ApiClient.convertToType(data.state, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } + + /** + * The city where the event takes place. + * @member {String} city + */ + city = undefined; + /** + * The country where the event takes place. + * @member {String} country + */ + country = undefined; + /** + * The date when the event takes place. + * @member {Date} date + */ + date = undefined; + /** + * The federal state where the event takes place. + * @member {String} state + */ + state = undefined; + /** + * Type of the event to celebrate. + * @member {String} type + */ + type = undefined; + + + + + + + + } + +
@@ -130,7 +154,7 @@

Source: models/ProductListEvent.js


diff --git a/docs/models_ProductListItemReference.js.html b/docs/models_ProductListItemReference.js.html index 8fe9f2e..4ccf140 100644 --- a/docs/models_ProductListItemReference.js.html +++ b/docs/models_ProductListItemReference.js.html @@ -27,15 +27,14 @@

Source: models/ProductListItemReference.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/ProductListItemReference.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductDetailsLink from './ProductDetailsLink' import ProductListLink from './ProductListLink' + + + + /** * The ProductListItemReference model module. * @module models/ProductListItemReference -* @version 17.8 +* @version 20.4 */ export default class ProductListItemReference { /** @@ -59,48 +64,16 @@

Source: models/ProductListItemReference.js

* @class * @param id {String} The id of the product list item. */ + constructor(id) { - /** - * The id of the product list item. - * @member {String} id - */ - this.id = id - /** - * @member {Number} priority - */ - this.priority = undefined - /** - * @member {module:models/ProductDetailsLink} product_details_link - */ - this.product_details_link = undefined - /** - * The link of the product list, the item is assigned - * @member {module:models/ProductListLink} product_list - */ - this.product_list = undefined - /** - * @member {Boolean} public - */ - this.public = undefined - /** - * @member {Number} purchased_quantity - */ - this.purchased_quantity = undefined + this.id = id - /** - * @member {Number} quantity - */ - this.quantity = undefined - /** - * @member {module:models/ProductListItemReference.TypeEnum} type - */ - this.type = undefined } /** @@ -114,55 +87,103 @@

Source: models/ProductListItemReference.js

if (data) { obj = obj || new ProductListItemReference() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductDetailsLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductDetailsLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('product_list')) { - obj['product_list'] = ProductListLink.constructFromObject(data['product_list']) + obj.product_list = ProductListLink.constructFromObject(data.product_list) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('purchased_quantity')) { - obj['purchased_quantity'] = ApiClient.convertToType(data['purchased_quantity'], 'Number') + obj.purchased_quantity = ApiClient.convertToType(data.purchased_quantity, 'Number') } if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number') + obj.quantity = ApiClient.convertToType(data.quantity, 'Number') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -ProductListItemReference.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of the product list item. + * @member {String} id + */ + id = undefined; + /** + * @member {Number} priority + */ + priority = undefined; + /** + * @member {module:models/ProductDetailsLink} product_details_link + */ + product_details_link = undefined; + /** + * The link of the product list, the item is assigned + * @member {module:models/ProductListLink} product_list + */ + product_list = undefined; + /** + * @member {Boolean} public + */ + public = undefined; + /** + * @member {Number} purchased_quantity + */ + purchased_quantity = undefined; + /** + * @member {Number} quantity + */ + quantity = undefined; + /** + * @member {module:models/ProductListItemReference.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + +
@@ -173,7 +194,7 @@

Source: models/ProductListItemReference.js


diff --git a/docs/models_ProductListLink.js.html b/docs/models_ProductListLink.js.html index a90ea4d..f5793e2 100644 --- a/docs/models_ProductListLink.js.html +++ b/docs/models_ProductListLink.js.html @@ -27,15 +27,14 @@

Source: models/ProductListLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductListLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListLink model module. * @module models/ProductListLink -* @version 17.8 +* @version 20.4 */ export default class ProductListLink { /** @@ -57,42 +62,16 @@

Source: models/ProductListLink.js

* @alias module:models/ProductListLink * @class */ + constructor() { - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * A flag indicating whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The link title. - * @member {String} title - */ - this.title = undefined - /** - * The type of the product list. - * @member {module:models/ProductListLink.TypeEnum} type - */ - this.type = undefined + + + } /** @@ -106,73 +85,117 @@

Source: models/ProductListLink.js

if (data) { obj = obj || new ProductListLink() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -ProductListLink.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * The target of the link. + * @member {String} link + */ + link = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The name of this product list. + * @member {String} name + */ + name = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * A flag indicating whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The type of the product list. + * @member {module:models/ProductListLink.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + +
@@ -183,7 +206,7 @@

Source: models/ProductListLink.js


diff --git a/docs/models_ProductListRegistrant.js.html b/docs/models_ProductListRegistrant.js.html index 127d691..ea1fed4 100644 --- a/docs/models_ProductListRegistrant.js.html +++ b/docs/models_ProductListRegistrant.js.html @@ -27,15 +27,14 @@

Source: models/ProductListRegistrant.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,39 +42,36 @@ 

Source: models/ProductListRegistrant.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListRegistrant model module. * @module models/ProductListRegistrant -* @version 17.8 +* @version 20.4 */ export default class ProductListRegistrant { /** * Constructs a new <code>ProductListRegistrant</code>. - * A ProductListRegistrant is typically associated with an event related product list such as a gift registry. - * It holds information about a person associated with the event such as a bride or groom. + * A ProductListRegistrant is typically associated with an event related product list such as a gift registry. It holds information about a person associated with the event such as a bride or groom. * @alias module:models/ProductListRegistrant * @class */ + constructor() { - /** - * The first name of the registrant. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of the registrant. - * @member {String} last_name - */ - this.last_name = undefined - - /** - * The role of the registrant. - * @member {String} role - */ - this.role = undefined + + + + + + + + } /** @@ -89,20 +85,49 @@

Source: models/ProductListRegistrant.js

if (data) { obj = obj || new ProductListRegistrant() + + + + if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String') + obj.role = ApiClient.convertToType(data.role, 'String') } } - return obj } + + /** + * The first name of the registrant. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of the registrant. + * @member {String} last_name + */ + last_name = undefined; + /** + * The role of the registrant. + * @member {String} role + */ + role = undefined; + + + + + + + + } + +
@@ -113,7 +138,7 @@

Source: models/ProductListRegistrant.js


diff --git a/docs/models_ProductListShippingAddress.js.html b/docs/models_ProductListShippingAddress.js.html index 9b02a9d..421fd85 100644 --- a/docs/models_ProductListShippingAddress.js.html +++ b/docs/models_ProductListShippingAddress.js.html @@ -27,15 +27,14 @@

Source: models/ProductListShippingAddress.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductListShippingAddress.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductListShippingAddress model module. * @module models/ProductListShippingAddress -* @version 17.8 +* @version 20.4 */ export default class ProductListShippingAddress { /** @@ -58,30 +63,16 @@

Source: models/ProductListShippingAddress.js

* @class * @param addressId {String} The id of this address. */ + constructor(addressId) { - /** - * The id of this address. - * @member {String} address_id - */ + + + + + this.address_id = addressId - /** - * The city of this address. - * @member {String} city - */ - this.city = undefined - - /** - * The first name of this address. - * @member {String} first_name - */ - this.first_name = undefined - - /** - * The last name of this address. - * @member {String} last_name - */ - this.last_name = undefined + } /** @@ -95,23 +86,57 @@

Source: models/ProductListShippingAddress.js

if (data) { obj = obj || new ProductListShippingAddress() + + + + if (data.hasOwnProperty('address_id')) { - obj['address_id'] = ApiClient.convertToType(data['address_id'], 'String') + obj.address_id = ApiClient.convertToType(data.address_id, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String') + obj.first_name = ApiClient.convertToType(data.first_name, 'String') } if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String') + obj.last_name = ApiClient.convertToType(data.last_name, 'String') } } - return obj } + + /** + * The id of this address. + * @member {String} address_id + */ + address_id = undefined; + /** + * The city of this address. + * @member {String} city + */ + city = undefined; + /** + * The first name of this address. + * @member {String} first_name + */ + first_name = undefined; + /** + * The last name of this address. + * @member {String} last_name + */ + last_name = undefined; + + + + + + + + } + +
@@ -122,7 +147,7 @@

Source: models/ProductListShippingAddress.js


diff --git a/docs/models_ProductPromotion.js.html b/docs/models_ProductPromotion.js.html index fa2e038..1d263ad 100644 --- a/docs/models_ProductPromotion.js.html +++ b/docs/models_ProductPromotion.js.html @@ -27,15 +27,14 @@

Source: models/ProductPromotion.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductPromotion.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductPromotion model module. * @module models/ProductPromotion -* @version 17.8 +* @version 20.4 */ export default class ProductPromotion { /** @@ -57,30 +62,16 @@

Source: models/ProductPromotion.js

* @alias module:models/ProductPromotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The URL addressing the promotion. - * @member {String} link - */ - this.link = undefined - - /** - * The unique id of the promotion. - * @member {String} promotion_id - */ - this.promotion_id = undefined - - /** - * The promotional price for this product. - * @member {Number} promotional_price - */ - this.promotional_price = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/ProductPromotion.js

if (data) { obj = obj || new ProductPromotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotional_price')) { - obj['promotional_price'] = ApiClient.convertToType(data['promotional_price'], 'Number') + obj.promotional_price = ApiClient.convertToType(data.promotional_price, 'Number') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The URL addressing the promotion. + * @member {String} link + */ + link = undefined; + /** + * The unique id of the promotion. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The promotional price for this product. + * @member {Number} promotional_price + */ + promotional_price = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/ProductPromotion.js


diff --git a/docs/models_ProductRecommendationsResult.js.html b/docs/models_ProductRecommendationsResult.js.html new file mode 100644 index 0000000..8460d7d --- /dev/null +++ b/docs/models_ProductRecommendationsResult.js.html @@ -0,0 +1,154 @@ + + + + + JSDoc: Source: models/ProductRecommendationsResult.js + + + + + + + + + + +
+ +

Source: models/ProductRecommendationsResult.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+import Product from './Product'
+
+
+
+
+
+/**
+* The ProductRecommendationsResult model module.
+* @module models/ProductRecommendationsResult
+* @version 20.4
+*/
+export default class ProductRecommendationsResult {
+    /**
+    * Constructs a new <code>ProductRecommendationsResult</code>.
+    * The product recommendations
+    * @alias module:models/ProductRecommendationsResult
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>ProductRecommendationsResult</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ProductRecommendationsResult} obj Optional instance to populate.
+    * @return {module:models/ProductRecommendationsResult} The populated <code>ProductRecommendationsResult</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ProductRecommendationsResult()
+
+
+
+
+
+            if (data.hasOwnProperty('count')) {
+                obj.count = ApiClient.convertToType(data.count, 'Number')
+            }
+            if (data.hasOwnProperty('data')) {
+                obj.data = ApiClient.convertToType(data.data, [Product])
+            }
+            if (data.hasOwnProperty('total')) {
+                obj.total = ApiClient.convertToType(data.total, 'Number')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * Count of current elements
+    * @member {Number} count
+    */
+    count = undefined;
+    /**
+    * The objects itself
+    * @member {Array.<module:models/Product>} data
+    */
+    data = undefined;
+    /**
+    * The total number of documents.
+    * @member {Number} total
+    */
+    total = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_ProductRef.js.html b/docs/models_ProductRef.js.html index cfdc4c0..b74a4a4 100644 --- a/docs/models_ProductRef.js.html +++ b/docs/models_ProductRef.js.html @@ -27,15 +27,14 @@

Source: models/ProductRef.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductRef.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductRef model module. * @module models/ProductRef -* @version 17.8 +* @version 20.4 */ export default class ProductRef { /** @@ -57,19 +62,18 @@

Source: models/ProductRef.js

* @alias module:models/ProductRef * @class * @param id {String} The ID of the product reference. + * @param link {String} The link to the product reference. */ - constructor(id) { - /** - * The ID of the product reference. - * @member {String} id - */ - this.id = id - - /** - * The link to the product reference. - * @member {String} link - */ - this.link = undefined + + constructor(id, link) { + + + + + + this.id = id; this.link = link + + } /** @@ -83,17 +87,41 @@

Source: models/ProductRef.js

if (data) { obj = obj || new ProductRef() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } } - return obj } + + /** + * The ID of the product reference. + * @member {String} id + */ + id = undefined; + /** + * The link to the product reference. + * @member {String} link + */ + link = undefined; + + + + + + + + } + +
@@ -104,7 +132,7 @@

Source: models/ProductRef.js


diff --git a/docs/models_ProductResult.js.html b/docs/models_ProductResult.js.html index 1f670f7..26fbbe8 100644 --- a/docs/models_ProductResult.js.html +++ b/docs/models_ProductResult.js.html @@ -27,15 +27,14 @@

Source: models/ProductResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ProductResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' + + + + /** * The ProductResult model module. * @module models/ProductResult -* @version 17.8 +* @version 20.4 */ export default class ProductResult { /** @@ -58,24 +63,16 @@

Source: models/ProductResult.js

* @alias module:models/ProductResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product documents. - * @member {Array.<module:models/Product>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/ProductResult.js

if (data) { obj = obj || new ProductResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Product]) + obj.data = ApiClient.convertToType(data.data, [Product]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product documents. + * @member {Array.<module:models/Product>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/ProductResult.js


diff --git a/docs/models_ProductSearchHit.js.html b/docs/models_ProductSearchHit.js.html index 5becff2..2a1ac6a 100644 --- a/docs/models_ProductSearchHit.js.html +++ b/docs/models_ProductSearchHit.js.html @@ -27,15 +27,14 @@

Source: models/ProductSearchHit.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,16 +42,22 @@ 

Source: models/ProductSearchHit.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' -import ProductType from './ProductType' import ProductRef from './ProductRef' +import ProductType from './ProductType' import VariationAttribute from './VariationAttribute' + + + + /** * The ProductSearchHit model module. * @module models/ProductSearchHit -* @version 17.8 +* @version 20.4 */ export default class ProductSearchHit { /** @@ -61,84 +66,16 @@

Source: models/ProductSearchHit.js

* @alias module:models/ProductSearchHit * @class */ + constructor() { - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The first image of the product hit for the configured viewtype. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * A flag indicating whether the product is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The maximum sales of related child products in case of complex products like master or set. - * @member {Number} price_max - */ - this.price_max = undefined - - /** - * The prices map with price book ids and their values. - * @member {Object.<String, Number>} prices - */ - this.prices = undefined - - /** - * The id (SKU) of the product. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The localized name of the product. - * @member {String} product_name - */ - this.product_name = undefined - - /** - * The type information for the product. - * @member {module:models/ProductType} product_type - */ - this.product_type = undefined - - /** - * The first represented product. - * @member {module:models/ProductRef} represented_product - */ - this.represented_product = undefined - - /** - * All the represented products. - * @member {Array.<module:models/ProductRef>} represented_products - */ - this.represented_products = undefined - - /** - * The array of represented variation attributes (for the master product only). This array can be empty. - * @member {Array.<module:models/VariationAttribute>} variation_attributes - */ - this.variation_attributes = undefined + + + + + + + + } /** @@ -152,50 +89,137 @@

Source: models/ProductSearchHit.js

if (data) { obj = obj || new ProductSearchHit() + + + + if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') + } + if (data.hasOwnProperty('hit_type')) { + obj.hit_type = ApiClient.convertToType(data.hit_type, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_max')) { - obj['price_max'] = ApiClient.convertToType(data['price_max'], 'Number') + obj.price_max = ApiClient.convertToType(data.price_max, 'Number') } if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], {String: 'Number'}) + obj.prices = ApiClient.convertToType(data.prices, {String: 'Number'}) } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } if (data.hasOwnProperty('product_type')) { - obj['product_type'] = ProductType.constructFromObject(data['product_type']) + obj.product_type = ProductType.constructFromObject(data.product_type) } if (data.hasOwnProperty('represented_product')) { - obj['represented_product'] = ProductRef.constructFromObject(data['represented_product']) + obj.represented_product = ProductRef.constructFromObject(data.represented_product) } if (data.hasOwnProperty('represented_products')) { - obj['represented_products'] = ApiClient.convertToType(data['represented_products'], [ProductRef]) + obj.represented_products = ApiClient.convertToType(data.represented_products, [ProductRef]) } if (data.hasOwnProperty('variation_attributes')) { - obj['variation_attributes'] = ApiClient.convertToType(data['variation_attributes'], [VariationAttribute]) + obj.variation_attributes = ApiClient.convertToType(data.variation_attributes, [VariationAttribute]) } } - return obj } + + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The type information for the search hit. + * @member {String} hit_type + */ + hit_type = undefined; + /** + * The first image of the product hit for the configured viewtype. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the product is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the product. In case of complex products like master or set this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The maximum sales of related child products in case of complex products like master or set. + * @member {Number} price_max + */ + price_max = undefined; + /** + * The prices map with price book ids and their values. + * @member {Object.<String, Number>} prices + */ + prices = undefined; + /** + * The id (SKU) of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The localized name of the product. + * @member {String} product_name + */ + product_name = undefined; + /** + * The type information for the product. + * @member {module:models/ProductType} product_type + */ + product_type = undefined; + /** + * The first represented product. + * @member {module:models/ProductRef} represented_product + */ + represented_product = undefined; + /** + * All the represented products. + * @member {Array.<module:models/ProductRef>} represented_products + */ + represented_products = undefined; + /** + * The array of represented variation attributes (for the master product only). This array can be empty. + * @member {Array.<module:models/VariationAttribute>} variation_attributes + */ + variation_attributes = undefined; + + + + + + + + } + +
@@ -206,7 +230,7 @@

Source: models/ProductSearchHit.js


diff --git a/docs/models_ProductSearchRefinement.js.html b/docs/models_ProductSearchRefinement.js.html index ad60ccd..1c49098 100644 --- a/docs/models_ProductSearchRefinement.js.html +++ b/docs/models_ProductSearchRefinement.js.html @@ -27,15 +27,14 @@

Source: models/ProductSearchRefinement.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ProductSearchRefinement.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchRefinementValue from './ProductSearchRefinementValue' + + + + /** * The ProductSearchRefinement model module. * @module models/ProductSearchRefinement -* @version 17.8 +* @version 20.4 */ export default class ProductSearchRefinement { /** @@ -57,32 +62,18 @@

Source: models/ProductSearchRefinement.js

* Document representing a product search refinement attribute. * @alias module:models/ProductSearchRefinement * @class - * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute - * refinement, this is the attribute id. Custom attributes are marked by the - * prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, - * the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". + * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". */ + constructor(attributeId) { - /** - * The id of the search refinement attribute. In the case of an attribute refinement, this is - * the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). - * In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, - * the id must be \"price\". - * @member {String} attribute_id - */ + + + + + this.attribute_id = attributeId - /** - * The localized label of the refinement. - * @member {String} label - */ - this.label = undefined - - /** - * The sorted array of refinement values. This array can be empty. - * @member {Array.<module:models/ProductSearchRefinementValue>} values - */ - this.values = undefined + } /** @@ -96,20 +87,49 @@

Source: models/ProductSearchRefinement.js

if (data) { obj = obj || new ProductSearchRefinement() + + + + if (data.hasOwnProperty('attribute_id')) { - obj['attribute_id'] = ApiClient.convertToType(data['attribute_id'], 'String') + obj.attribute_id = ApiClient.convertToType(data.attribute_id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ProductSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ProductSearchRefinementValue]) } } - return obj } + + /** + * The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix \"c_\" (for example, \"c_refinementColor\"). In the case of a category refinement, the id must be \"cgid\". In the case of a price refinement, the id must be \"price\". + * @member {String} attribute_id + */ + attribute_id = undefined; + /** + * The localized label of the refinement. + * @member {String} label + */ + label = undefined; + /** + * The sorted array of refinement values. This array can be empty. + * @member {Array.<module:models/ProductSearchRefinementValue>} values + */ + values = undefined; + + + + + + + + } + +
@@ -120,7 +140,7 @@

Source: models/ProductSearchRefinement.js


diff --git a/docs/models_ProductSearchRefinementValue.js.html b/docs/models_ProductSearchRefinementValue.js.html index 1a749ad..46146a1 100644 --- a/docs/models_ProductSearchRefinementValue.js.html +++ b/docs/models_ProductSearchRefinementValue.js.html @@ -27,15 +27,14 @@

Source: models/ProductSearchRefinementValue.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductSearchRefinementValue.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSearchRefinementValue model module. * @module models/ProductSearchRefinementValue -* @version 17.8 +* @version 20.4 */ export default class ProductSearchRefinementValue { /** @@ -57,46 +62,16 @@

Source: models/ProductSearchRefinementValue.js

* @alias module:models/ProductSearchRefinementValue * @class */ + constructor() { - /** - * The localized description of the refinement value. - * @member {String} description - */ - this.description = undefined - - /** - * The number of search hits when selecting the refinement value. Can be 0. - * @member {Number} hit_count - */ - this.hit_count = undefined - - /** - * The localized label of the refinement value. - * @member {String} label - */ - this.label = undefined - - /** - * The optional presentation id associated with the refinement value. The presentation id can be used, - * for example, to associate an id with an HTML widget. - * @member {String} presentation_id - */ - this.presentation_id = undefined - - /** - * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, - * or a value range. In the case of a category refinement, this is the category id. In the case of a - * price refinement,k this is the price range. Ranges are enclosed by parentheses and separated - * by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\" are valid ranges. - * @member {String} value - */ - this.value = undefined - - /** - * The array of hierarchical refinement values. This array can be empty. - * @member {Array.<module:models/ProductSearchRefinementValue>} values - */ - this.values = undefined + + + + + + + + } /** @@ -111,28 +86,69 @@

Source: models/ProductSearchRefinementValue.js

obj = obj || new ProductSearchRefinementValue() + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('hit_count')) { - obj['hit_count'] = ApiClient.convertToType(data['hit_count'], 'Number') + obj.hit_count = ApiClient.convertToType(data.hit_count, 'Number') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } if (data.hasOwnProperty('presentation_id')) { - obj['presentation_id'] = ApiClient.convertToType(data['presentation_id'], 'String') + obj.presentation_id = ApiClient.convertToType(data.presentation_id, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [ProductSearchRefinementValue]) + obj.values = ApiClient.convertToType(data.values, [ProductSearchRefinementValue]) } } - return obj } + + /** + * The localized description of the refinement value. + * @member {String} description + */ + description = undefined; + /** + * The number of search hits when selecting the refinement value. Can be 0. + * @member {Number} hit_count + */ + hit_count = undefined; + /** + * The localized label of the refinement value. + * @member {String} label + */ + label = undefined; + /** + * The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget. + * @member {String} presentation_id + */ + presentation_id = undefined; + /** + * The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a category refinement, this is the category id. In the case of a price refinement,k this is the price range. Ranges are enclosed by parentheses and separated by \"..\"; for example, \"(100..999)\" and \"(Aa..Fa)\" are valid ranges. + * @member {String} value + */ + value = undefined; + /** + * The array of hierarchical refinement values. This array can be empty. + * @member {Array.<module:models/ProductSearchRefinementValue>} values + */ + values = undefined; + + + + + + + + }
@@ -144,7 +160,7 @@

Source: models/ProductSearchRefinementValue.js


diff --git a/docs/models_ProductSearchResult.js.html b/docs/models_ProductSearchResult.js.html index c48c252..d89a2a9 100644 --- a/docs/models_ProductSearchResult.js.html +++ b/docs/models_ProductSearchResult.js.html @@ -27,15 +27,14 @@

Source: models/ProductSearchResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,16 +42,22 @@ 

Source: models/ProductSearchResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductSearchHit from './ProductSearchHit' import ProductSearchRefinement from './ProductSearchRefinement' import ProductSearchSortingOption from './ProductSearchSortingOption' import Suggestion from './Suggestion' + + + + /** * The ProductSearchResult model module. * @module models/ProductSearchResult -* @version 17.8 +* @version 20.4 */ export default class ProductSearchResult { /** @@ -61,88 +66,16 @@

Source: models/ProductSearchResult.js

* @alias module:models/ProductSearchResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * @member {Array.<Object>} data - */ - this.data = undefined - - /** - * @member {Number} fetch_date - */ - this.fetch_date = undefined - - /** - * The sorted array of search hits. This array can be empty. - * @member {Array.<module:models/ProductSearchHit>} hits - */ - this.hits = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The query String that was searched for. - * @member {String} query - */ - this.query = undefined - - /** - * The sorted array of search refinements. This array can be empty. - * @member {Array.<module:models/ProductSearchRefinement>} refinements - */ - this.refinements = undefined - - /** - * The suggestion given by the system for the submitted search phrase. - * @member {module:models/Suggestion} search_phrase_suggestions - */ - this.search_phrase_suggestions = undefined - - /** - * A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL. - * @member {Object.<String, String>} selected_refinements - */ - this.selected_refinements = undefined - - /** - * The id of the applied sorting option. - * @member {String} selected_sorting_option - */ - this.selected_sorting_option = undefined - - /** - * The sorted array of search sorting options. This array can be empty. - * @member {Array.<module:models/ProductSearchSortingOption>} sorting_options - */ - this.sorting_options = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -156,53 +89,135 @@

Source: models/ProductSearchResult.js

if (data) { obj = obj || new ProductSearchResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]) + obj.data = ApiClient.convertToType(data.data, [Object]) } if (data.hasOwnProperty('fetch_date')) { - obj['fetch_date'] = ApiClient.convertToType(data['fetch_date'], 'Number') + obj.fetch_date = ApiClient.convertToType(data.fetch_date, 'Number') } if (data.hasOwnProperty('hits')) { - obj['hits'] = ApiClient.convertToType(data['hits'], [ProductSearchHit]) + obj.hits = ApiClient.convertToType(data.hits, [ProductSearchHit]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } if (data.hasOwnProperty('refinements')) { - obj['refinements'] = ApiClient.convertToType(data['refinements'], [ProductSearchRefinement]) + obj.refinements = ApiClient.convertToType(data.refinements, [ProductSearchRefinement]) } if (data.hasOwnProperty('search_phrase_suggestions')) { - obj['search_phrase_suggestions'] = Suggestion.constructFromObject(data['search_phrase_suggestions']) + obj.search_phrase_suggestions = Suggestion.constructFromObject(data.search_phrase_suggestions) } if (data.hasOwnProperty('selected_refinements')) { - obj['selected_refinements'] = ApiClient.convertToType(data['selected_refinements'], {String: 'String'}) + obj.selected_refinements = ApiClient.convertToType(data.selected_refinements, {String: 'String'}) } if (data.hasOwnProperty('selected_sorting_option')) { - obj['selected_sorting_option'] = ApiClient.convertToType(data['selected_sorting_option'], 'String') + obj.selected_sorting_option = ApiClient.convertToType(data.selected_sorting_option, 'String') } if (data.hasOwnProperty('sorting_options')) { - obj['sorting_options'] = ApiClient.convertToType(data['sorting_options'], [ProductSearchSortingOption]) + obj.sorting_options = ApiClient.convertToType(data.sorting_options, [ProductSearchSortingOption]) } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * @member {Array.<Object>} data + */ + data = undefined; + /** + * @member {Number} fetch_date + */ + fetch_date = undefined; + /** + * The sorted array of search hits. This array can be empty. + * @member {Array.<module:models/ProductSearchHit>} hits + */ + hits = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The query String that was searched for. + * @member {String} query + */ + query = undefined; + /** + * The sorted array of search refinements. This array can be empty. + * @member {Array.<module:models/ProductSearchRefinement>} refinements + */ + refinements = undefined; + /** + * The suggestion given by the system for the submitted search phrase. + * @member {module:models/Suggestion} search_phrase_suggestions + */ + search_phrase_suggestions = undefined; + /** + * A map of selected refinement attribute id/value(s) pairs. The sorting order is the same as in request URL. + * @member {Object.<String, String>} selected_refinements + */ + selected_refinements = undefined; + /** + * The id of the applied sorting option. + * @member {String} selected_sorting_option + */ + selected_sorting_option = undefined; + /** + * The sorted array of search sorting options. This array can be empty. + * @member {Array.<module:models/ProductSearchSortingOption>} sorting_options + */ + sorting_options = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -213,7 +228,7 @@

Source: models/ProductSearchResult.js


diff --git a/docs/models_ProductSearchSortingOption.js.html b/docs/models_ProductSearchSortingOption.js.html index ee9bc40..153692b 100644 --- a/docs/models_ProductSearchSortingOption.js.html +++ b/docs/models_ProductSearchSortingOption.js.html @@ -27,15 +27,14 @@

Source: models/ProductSearchSortingOption.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductSearchSortingOption.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSearchSortingOption model module. * @module models/ProductSearchSortingOption -* @version 17.8 +* @version 20.4 */ export default class ProductSearchSortingOption { /** @@ -57,18 +62,16 @@

Source: models/ProductSearchSortingOption.js

* @alias module:models/ProductSearchSortingOption * @class */ + constructor() { - /** - * The id of the sorting option. - * @member {String} id - */ - this.id = undefined - - /** - * The localized label of the sorting option. - * @member {String} label - */ - this.label = undefined + + + + + + + + } /** @@ -82,17 +85,41 @@

Source: models/ProductSearchSortingOption.js

if (data) { obj = obj || new ProductSearchSortingOption() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String') + obj.label = ApiClient.convertToType(data.label, 'String') } } - return obj } + + /** + * The id of the sorting option. + * @member {String} id + */ + id = undefined; + /** + * The localized label of the sorting option. + * @member {String} label + */ + label = undefined; + + + + + + + + } + +
@@ -103,7 +130,7 @@

Source: models/ProductSearchSortingOption.js


diff --git a/docs/models_ProductSimpleLink.js.html b/docs/models_ProductSimpleLink.js.html index e538bca..c374eb8 100644 --- a/docs/models_ProductSimpleLink.js.html +++ b/docs/models_ProductSimpleLink.js.html @@ -27,15 +27,14 @@

Source: models/ProductSimpleLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductSimpleLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductSimpleLink model module. * @module models/ProductSimpleLink -* @version 17.8 +* @version 20.4 */ export default class ProductSimpleLink { /** @@ -57,18 +62,16 @@

Source: models/ProductSimpleLink.js

* @alias module:models/ProductSimpleLink * @class */ + constructor() { - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - - /** - * The link title. - * @member {String} title - */ - this.title = undefined + + + + + + + + } /** @@ -82,17 +85,41 @@

Source: models/ProductSimpleLink.js

if (data) { obj = obj || new ProductSimpleLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } } - return obj } + + /** + * The target of the link. + * @member {String} link + */ + link = undefined; + /** + * The link title. + * @member {String} title + */ + title = undefined; + + + + + + + + } + +
@@ -103,7 +130,7 @@

Source: models/ProductSimpleLink.js


diff --git a/docs/models_ProductType.js.html b/docs/models_ProductType.js.html index 83f7dfd..8f22a04 100644 --- a/docs/models_ProductType.js.html +++ b/docs/models_ProductType.js.html @@ -27,15 +27,14 @@

Source: models/ProductType.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ProductType.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ProductType model module. * @module models/ProductType -* @version 17.8 +* @version 20.4 */ export default class ProductType { /** @@ -57,48 +62,16 @@

Source: models/ProductType.js

* @alias module:models/ProductType * @class */ + constructor() { - /** - * A flag indicating whether the product is a bundle. - * @member {Boolean} bundle - */ - this.bundle = undefined - - /** - * A flag indicating whether the product is a standard item. - * @member {Boolean} item - */ - this.item = undefined - - /** - * A flag indicating whether the product is a master. - * @member {Boolean} master - */ - this.master = undefined - - /** - * A flag indicating whether the product is an option. - * @member {Boolean} option - */ - this.option = undefined - - /** - * A flag indicating whether the product is a set. - * @member {Boolean} set - */ - this.set = undefined - - /** - * A flag indicating whether the product is a variant. - * @member {Boolean} variant - */ - this.variant = undefined - - /** - * A flag indicating whether the product is a variation group. - * @member {Boolean} variation_group - */ - this.variation_group = undefined + + + + + + + + } /** @@ -112,32 +85,81 @@

Source: models/ProductType.js

if (data) { obj = obj || new ProductType() + + + + if (data.hasOwnProperty('bundle')) { - obj['bundle'] = ApiClient.convertToType(data['bundle'], 'Boolean') + obj.bundle = ApiClient.convertToType(data.bundle, 'Boolean') } if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'Boolean') + obj.item = ApiClient.convertToType(data.item, 'Boolean') } if (data.hasOwnProperty('master')) { - obj['master'] = ApiClient.convertToType(data['master'], 'Boolean') + obj.master = ApiClient.convertToType(data.master, 'Boolean') } if (data.hasOwnProperty('option')) { - obj['option'] = ApiClient.convertToType(data['option'], 'Boolean') + obj.option = ApiClient.convertToType(data.option, 'Boolean') } if (data.hasOwnProperty('set')) { - obj['set'] = ApiClient.convertToType(data['set'], 'Boolean') + obj.set = ApiClient.convertToType(data.set, 'Boolean') } if (data.hasOwnProperty('variant')) { - obj['variant'] = ApiClient.convertToType(data['variant'], 'Boolean') + obj.variant = ApiClient.convertToType(data.variant, 'Boolean') } if (data.hasOwnProperty('variation_group')) { - obj['variation_group'] = ApiClient.convertToType(data['variation_group'], 'Boolean') + obj.variation_group = ApiClient.convertToType(data.variation_group, 'Boolean') } } - return obj } + + /** + * A flag indicating whether the product is a bundle. + * @member {Boolean} bundle + */ + bundle = undefined; + /** + * A flag indicating whether the product is a standard item. + * @member {Boolean} item + */ + item = undefined; + /** + * A flag indicating whether the product is a master. + * @member {Boolean} master + */ + master = undefined; + /** + * A flag indicating whether the product is an option. + * @member {Boolean} option + */ + option = undefined; + /** + * A flag indicating whether the product is a set. + * @member {Boolean} set + */ + set = undefined; + /** + * A flag indicating whether the product is a variant. + * @member {Boolean} variant + */ + variant = undefined; + /** + * A flag indicating whether the product is a variation group. + * @member {Boolean} variation_group + */ + variation_group = undefined; + + + + + + + + } + +
@@ -148,7 +170,7 @@

Source: models/ProductType.js


diff --git a/docs/models_Promotion.js.html b/docs/models_Promotion.js.html index 8b3fe1f..2a782c2 100644 --- a/docs/models_Promotion.js.html +++ b/docs/models_Promotion.js.html @@ -27,15 +27,14 @@

Source: models/Promotion.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Promotion.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Promotion model module. * @module models/Promotion -* @version 17.8 +* @version 20.4 */ export default class Promotion { /** @@ -57,60 +62,16 @@

Source: models/Promotion.js

* @alias module:models/Promotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed currencies. - * @member {String} currency - */ - this.currency = undefined - - /** - * The localized detailed description of the promotion. - * @member {String} details - */ - this.details = undefined - - /** - * An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as refinement. - * @member {String} discounted_products_link - */ - this.discounted_products_link = undefined - - /** - * The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time zone of the date time is always UTC. - * @member {Date} end_date - */ - this.end_date = undefined - - /** - * The unique id of the promotion. - * @member {String} id - */ - this.id = undefined - - /** - * The URL to the promotion image. - * @member {String} image - */ - this.image = undefined - - /** - * The localized name of the promotion. - * @member {String} name - */ - this.name = undefined - - /** - * The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The time zone of the date time is always UTC. - * @member {Date} start_date - */ - this.start_date = undefined + + + + + + + + } /** @@ -124,38 +85,97 @@

Source: models/Promotion.js

if (data) { obj = obj || new Promotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('details')) { - obj['details'] = ApiClient.convertToType(data['details'], 'String') + obj.details = ApiClient.convertToType(data.details, 'String') } if (data.hasOwnProperty('discounted_products_link')) { - obj['discounted_products_link'] = ApiClient.convertToType(data['discounted_products_link'], 'String') + obj.discounted_products_link = ApiClient.convertToType(data.discounted_products_link, 'String') } if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date') + obj.end_date = ApiClient.convertToType(data.end_date, 'Date') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date') + obj.start_date = ApiClient.convertToType(data.start_date, 'Date') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The currency that a promotion can be applied to. A null value means that the promotion applies to all allowed currencies. + * @member {String} currency + */ + currency = undefined; + /** + * The localized detailed description of the promotion. + * @member {String} details + */ + details = undefined; + /** + * An optional product search link. Product promotions that are marked searchable provide a product search link with the promotion id as refinement. + * @member {String} discounted_products_link + */ + discounted_products_link = undefined; + /** + * The end date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ . The time zone of the date time is always UTC. + * @member {Date} end_date + */ + end_date = undefined; + /** + * The unique id of the promotion. + * @member {String} id + */ + id = undefined; + /** + * The URL to the promotion image. + * @member {String} image + */ + image = undefined; + /** + * The localized name of the promotion. + * @member {String} name + */ + name = undefined; + /** + * The start date of the promotion. This property follows the ISO8601 date time format: yyyy-MM-dd'T'HH:mmZ. The time zone of the date time is always UTC. + * @member {Date} start_date + */ + start_date = undefined; + + + + + + + + } + +
@@ -166,7 +186,7 @@

Source: models/Promotion.js


diff --git a/docs/models_PromotionLink.js.html b/docs/models_PromotionLink.js.html new file mode 100644 index 0000000..861e442 --- /dev/null +++ b/docs/models_PromotionLink.js.html @@ -0,0 +1,167 @@ + + + + + JSDoc: Source: models/PromotionLink.js + + + + + + + + + + +
+ +

Source: models/PromotionLink.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The PromotionLink model module.
+* @module models/PromotionLink
+* @version 20.4
+*/
+export default class PromotionLink {
+    /**
+    * Constructs a new <code>PromotionLink</code>.
+    * Document representing a promotion link.
+    * @alias module:models/PromotionLink
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>PromotionLink</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/PromotionLink} obj Optional instance to populate.
+    * @return {module:models/PromotionLink} The populated <code>PromotionLink</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new PromotionLink()
+
+
+
+
+
+            if (data.hasOwnProperty('callout_msg')) {
+                obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String')
+            }
+            if (data.hasOwnProperty('link')) {
+                obj.link = ApiClient.convertToType(data.link, 'String')
+            }
+            if (data.hasOwnProperty('name')) {
+                obj.name = ApiClient.convertToType(data.name, 'String')
+            }
+            if (data.hasOwnProperty('promotion_id')) {
+                obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String')
+            }
+            if (data.hasOwnProperty('title')) {
+                obj.title = ApiClient.convertToType(data.title, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The localized call-out message of the promotion.
+    * @member {String} callout_msg
+    */
+    callout_msg = undefined;
+    /**
+    * @member {String} link
+    */
+    link = undefined;
+    /**
+    * The localized name of the promotion.
+    * @member {String} name
+    */
+    name = undefined;
+    /**
+    * The unique id of the promotion.
+    * @member {String} promotion_id
+    */
+    promotion_id = undefined;
+    /**
+    * @member {String} title
+    */
+    title = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_PromotionResult.js.html b/docs/models_PromotionResult.js.html index 4a1b962..0d06abf 100644 --- a/docs/models_PromotionResult.js.html +++ b/docs/models_PromotionResult.js.html @@ -27,15 +27,14 @@

Source: models/PromotionResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PromotionResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Promotion from './Promotion' + + + + /** * The PromotionResult model module. * @module models/PromotionResult -* @version 17.8 +* @version 20.4 */ export default class PromotionResult { /** @@ -58,24 +63,16 @@

Source: models/PromotionResult.js

* @alias module:models/PromotionResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of promotion documents. - * @member {Array.<module:models/Promotion>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/PromotionResult.js

if (data) { obj = obj || new PromotionResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Promotion]) + obj.data = ApiClient.convertToType(data.data, [Promotion]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of promotion documents. + * @member {Array.<module:models/Promotion>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/PromotionResult.js


diff --git a/docs/models_PublicProductList.js.html b/docs/models_PublicProductList.js.html index e63d21c..03b1404 100644 --- a/docs/models_PublicProductList.js.html +++ b/docs/models_PublicProductList.js.html @@ -27,15 +27,14 @@

Source: models/PublicProductList.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,6 +42,8 @@ 

Source: models/PublicProductList.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ProductListEvent from './ProductListEvent' import ProductListRegistrant from './ProductListRegistrant' @@ -50,10 +51,14 @@

Source: models/PublicProductList.js

import ProductSimpleLink from './ProductSimpleLink' import PublicProductListItem from './PublicProductListItem' + + + + /** * The PublicProductList model module. * @module models/PublicProductList -* @version 17.8 +* @version 20.4 */ export default class PublicProductList { /** @@ -61,84 +66,16 @@

Source: models/PublicProductList.js

* @alias module:models/PublicProductList * @class */ - constructor() { - /** - * The coRegistrant of this product list. - * @member {module:models/ProductListRegistrant} co_registrant - */ - this.co_registrant = undefined - /** - * Returns the value of attribute 'creationDate'. - * @member {Date} creation_date - */ - this.creation_date = undefined - - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined + constructor() { - /** - * The event of this product list. - * @member {module:models/ProductListEvent} event - */ - this.event = undefined - /** - * The id of this product list. - * @member {String} id - */ - this.id = undefined - - /** - * The resource link to the items of this product list. - * @member {module:models/ProductSimpleLink} items_link - */ - this.items_link = undefined - /** - * Returns the value of attribute 'lastModified'. - * @member {Date} last_modified - */ - this.last_modified = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The product list items - * @member {Array.<module:models/PublicProductListItem>} product_list_items - */ - this.product_list_items = undefined - /** - * The abbreviated shipping address of this product list representing what anonymous user can see. - * @member {module:models/ProductListShippingAddress} product_list_shipping_address - */ - this.product_list_shipping_address = undefined - /** - * Indicates whether the owner made this product list available for access by other customers. - * @member {Boolean} public - */ - this.public = undefined - /** - * The registrant of this product list. - * @member {module:models/ProductListRegistrant} registrant - */ - this.registrant = undefined - - /** - * The type of the product list. - * @member {module:models/PublicProductList.TypeEnum} type - */ - this.type = undefined } /** @@ -152,94 +89,173 @@

Source: models/PublicProductList.js

if (data) { obj = obj || new PublicProductList() + + + + if (data.hasOwnProperty('co_registrant')) { - obj['co_registrant'] = ProductListRegistrant.constructFromObject(data['co_registrant']) + obj.co_registrant = ProductListRegistrant.constructFromObject(data.co_registrant) } if (data.hasOwnProperty('creation_date')) { - obj['creation_date'] = ApiClient.convertToType(data['creation_date'], 'Date') + obj.creation_date = ApiClient.convertToType(data.creation_date, 'Date') } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('event')) { - obj['event'] = ProductListEvent.constructFromObject(data['event']) + obj.event = ProductListEvent.constructFromObject(data.event) } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('items_link')) { - obj['items_link'] = ProductSimpleLink.constructFromObject(data['items_link']) + obj.items_link = ProductSimpleLink.constructFromObject(data.items_link) } if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Date') + obj.last_modified = ApiClient.convertToType(data.last_modified, 'Date') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('product_list_items')) { - obj['product_list_items'] = ApiClient.convertToType(data['product_list_items'], [PublicProductListItem]) + obj.product_list_items = ApiClient.convertToType(data.product_list_items, [PublicProductListItem]) } if (data.hasOwnProperty('product_list_shipping_address')) { - obj['product_list_shipping_address'] = ProductListShippingAddress.constructFromObject(data['product_list_shipping_address']) + obj.product_list_shipping_address = ProductListShippingAddress.constructFromObject(data.product_list_shipping_address) } if (data.hasOwnProperty('public')) { - obj['public'] = ApiClient.convertToType(data['public'], 'Boolean') + obj.public = ApiClient.convertToType(data.public, 'Boolean') } if (data.hasOwnProperty('registrant')) { - obj['registrant'] = ProductListRegistrant.constructFromObject(data['registrant']) + obj.registrant = ProductListRegistrant.constructFromObject(data.registrant) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -PublicProductList.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The coRegistrant of this product list. + * @member {module:models/ProductListRegistrant} co_registrant + */ + co_registrant = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * Returns the value of attribute 'creationDate'. + * @member {Date} creation_date + */ + creation_date = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The event of this product list. + * @member {module:models/ProductListEvent} event + */ + event = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The id of this product list. + * @member {String} id + */ + id = undefined; + /** + * The resource link to the items of this product list. + * @member {module:models/ProductSimpleLink} items_link + */ + items_link = undefined; + /** + * Returns the value of attribute 'lastModified'. + * @member {Date} last_modified + */ + last_modified = undefined; + /** + * The name of this product list. + * @member {String} name + */ + name = undefined; + /** + * The product list items + * @member {Array.<module:models/PublicProductListItem>} product_list_items + */ + product_list_items = undefined; + /** + * The abbreviated shipping address of this product list representing what anonymous user can see. + * @member {module:models/ProductListShippingAddress} product_list_shipping_address + */ + product_list_shipping_address = undefined; + /** + * Indicates whether the owner made this product list available for access by other customers. + * @member {Boolean} public + */ + public = undefined; + /** + * The registrant of this product list. + * @member {module:models/ProductListRegistrant} registrant + */ + registrant = undefined; + /** + * The type of the product list. + * @member {module:models/PublicProductList.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + +
@@ -250,7 +266,7 @@

Source: models/PublicProductList.js


diff --git a/docs/models_PublicProductListItem.js.html b/docs/models_PublicProductListItem.js.html index 655ed27..5ac37a3 100644 --- a/docs/models_PublicProductListItem.js.html +++ b/docs/models_PublicProductListItem.js.html @@ -27,15 +27,14 @@

Source: models/PublicProductListItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/PublicProductListItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Product from './Product' import ProductSimpleLink from './ProductSimpleLink' + + + + /** * The PublicProductListItem model module. * @module models/PublicProductListItem -* @version 17.8 +* @version 20.4 */ export default class PublicProductListItem { /** @@ -59,36 +64,16 @@

Source: models/PublicProductListItem.js

* @alias module:models/PublicProductListItem * @class */ + constructor() { - /** - * The id of this product list item. - * @member {String} id - */ - this.id = undefined - /** - * The priority of the item. - * @member {Number} priority - */ - this.priority = undefined - /** - * The product item - * @member {module:models/Product} product - */ - this.product = undefined - /** - * A link to the product. - * @member {module:models/ProductSimpleLink} product_details_link - */ - this.product_details_link = undefined - /** - * The type of the item. - * @member {module:models/PublicProductListItem.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -102,46 +87,85 @@

Source: models/PublicProductListItem.js

if (data) { obj = obj || new PublicProductListItem() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number') + obj.priority = ApiClient.convertToType(data.priority, 'Number') } if (data.hasOwnProperty('product')) { - obj['product'] = Product.constructFromObject(data['product']) + obj.product = Product.constructFromObject(data.product) } if (data.hasOwnProperty('product_details_link')) { - obj['product_details_link'] = ProductSimpleLink.constructFromObject(data['product_details_link']) + obj.product_details_link = ProductSimpleLink.constructFromObject(data.product_details_link) } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -PublicProductListItem.TypeEnum = { /** - * value: "product" - * @const - */ - product: 'product', + * The id of this product list item. + * @member {String} id + */ + id = undefined; + /** + * The priority of the item. + * @member {Number} priority + */ + priority = undefined; + /** + * The product item + * @member {module:models/Product} product + */ + product = undefined; + /** + * A link to the product. + * @member {module:models/ProductSimpleLink} product_details_link + */ + product_details_link = undefined; + /** + * The type of the item. + * @member {module:models/PublicProductListItem.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "gift_certificate" - * @const - */ - gift_certificate: 'gift_certificate' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "product" + * @const + */ + product: 'product', + + /** + * value: "gift_certificate" + * @const + */ + gift_certificate: 'gift_certificate' + }; + + + } + +
@@ -152,7 +176,7 @@

Source: models/PublicProductListItem.js


diff --git a/docs/models_PublicProductListItemResult.js.html b/docs/models_PublicProductListItemResult.js.html index 4c708b0..f7b1479 100644 --- a/docs/models_PublicProductListItemResult.js.html +++ b/docs/models_PublicProductListItemResult.js.html @@ -27,15 +27,14 @@

Source: models/PublicProductListItemResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PublicProductListItemResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PublicProductListItem from './PublicProductListItem' + + + + /** * The PublicProductListItemResult model module. * @module models/PublicProductListItemResult -* @version 17.8 +* @version 20.4 */ export default class PublicProductListItemResult { /** @@ -58,24 +63,16 @@

Source: models/PublicProductListItemResult.js

* @alias module:models/PublicProductListItemResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product list item documents. - * @member {Array.<module:models/PublicProductListItem>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/PublicProductListItemResult.js

if (data) { obj = obj || new PublicProductListItemResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PublicProductListItem]) + obj.data = ApiClient.convertToType(data.data, [PublicProductListItem]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product list item documents. + * @member {Array.<module:models/PublicProductListItem>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/PublicProductListItemResult.js


diff --git a/docs/models_PublicProductListLink.js.html b/docs/models_PublicProductListLink.js.html index e4af1c1..065ff7f 100644 --- a/docs/models_PublicProductListLink.js.html +++ b/docs/models_PublicProductListLink.js.html @@ -27,15 +27,14 @@

Source: models/PublicProductListLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/PublicProductListLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The PublicProductListLink model module. * @module models/PublicProductListLink -* @version 17.8 +* @version 20.4 */ export default class PublicProductListLink { /** @@ -57,36 +62,16 @@

Source: models/PublicProductListLink.js

* @alias module:models/PublicProductListLink * @class */ + constructor() { - /** - * The description of this product list. - * @member {String} description - */ - this.description = undefined - /** - * The target of the link. - * @member {String} link - */ - this.link = undefined - /** - * The name of this product list. - * @member {String} name - */ - this.name = undefined - /** - * The link title. - * @member {String} title - */ - this.title = undefined - /** - * The type of the product list. - * @member {module:models/PublicProductListLink.TypeEnum} type - */ - this.type = undefined + + + + } /** @@ -100,70 +85,109 @@

Source: models/PublicProductListLink.js

if (data) { obj = obj || new PublicProductListLink() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String') + obj.title = ApiClient.convertToType(data.title, 'String') } if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String') + obj.type = ApiClient.convertToType(data.type, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>type</code> property. -* @enum {String} -* @readonly -*/ -PublicProductListLink.TypeEnum = { /** - * value: "wish_list" - * @const - */ - wish_list: 'wish_list', - + * The description of this product list. + * @member {String} description + */ + description = undefined; /** - * value: "gift_registry" - * @const - */ - gift_registry: 'gift_registry', - + * The target of the link. + * @member {String} link + */ + link = undefined; /** - * value: "shopping_list" - * @const - */ - shopping_list: 'shopping_list', - + * The name of this product list. + * @member {String} name + */ + name = undefined; /** - * value: "custom_1" - * @const - */ - custom_1: 'custom_1', - + * The link title. + * @member {String} title + */ + title = undefined; /** - * value: "custom_2" - * @const - */ - custom_2: 'custom_2', + * The type of the product list. + * @member {module:models/PublicProductListLink.TypeEnum} type + */ + type = undefined; + + + + + /** - * value: "custom_3" - * @const - */ - custom_3: 'custom_3' + * Allowed values for the <code>type</code> property. + * @enum {String} + * @readonly + */ + static TypeEnum = { + + /** + * value: "wish_list" + * @const + */ + wish_list: 'wish_list', + + /** + * value: "gift_registry" + * @const + */ + gift_registry: 'gift_registry', + + /** + * value: "shopping_list" + * @const + */ + shopping_list: 'shopping_list', + + /** + * value: "custom_1" + * @const + */ + custom_1: 'custom_1', + + /** + * value: "custom_2" + * @const + */ + custom_2: 'custom_2', + + /** + * value: "custom_3" + * @const + */ + custom_3: 'custom_3' + }; + + + } + +
@@ -174,7 +198,7 @@

Source: models/PublicProductListLink.js


diff --git a/docs/models_PublicProductListResult.js.html b/docs/models_PublicProductListResult.js.html index 03a0fa9..f4a874a 100644 --- a/docs/models_PublicProductListResult.js.html +++ b/docs/models_PublicProductListResult.js.html @@ -27,15 +27,14 @@

Source: models/PublicProductListResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/PublicProductListResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PublicProductListLink from './PublicProductListLink' + + + + /** * The PublicProductListResult model module. * @module models/PublicProductListResult -* @version 17.8 +* @version 20.4 */ export default class PublicProductListResult { /** @@ -58,24 +63,16 @@

Source: models/PublicProductListResult.js

* @alias module:models/PublicProductListResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of product list link documents. - * @member {Array.<module:models/PublicProductListLink>} data - */ - this.data = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -89,20 +86,49 @@

Source: models/PublicProductListResult.js

if (data) { obj = obj || new PublicProductListResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PublicProductListLink]) + obj.data = ApiClient.convertToType(data.data, [PublicProductListLink]) } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The array of product list link documents. + * @member {Array.<module:models/PublicProductListLink>} data + */ + data = undefined; + /** + * The total number of documents. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -113,7 +139,7 @@

Source: models/PublicProductListResult.js


diff --git a/docs/models_Query.js.html b/docs/models_Query.js.html index 65f9886..f16d154 100644 --- a/docs/models_Query.js.html +++ b/docs/models_Query.js.html @@ -27,7 +27,7 @@

Source: models/Query.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
 /* eslint-disable dot-notation */
@@ -35,7 +35,7 @@ 

Source: models/Query.js

* Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * - * OpenAPI spec version: 17.8 + * OpenAPI spec version: 20.4 * * * NOTE: This class is auto generated by the swagger code generator program. @@ -48,7 +48,7 @@

Source: models/Query.js

/** * The Query model module. * @module models/Query -* @version 17.8 +* @version 20.4 */ export default class Query { /** @@ -116,7 +116,7 @@

Source: models/Query.js


diff --git a/docs/models_QueryFilter.js.html b/docs/models_QueryFilter.js.html index 178213b..2dbc2c7 100644 --- a/docs/models_QueryFilter.js.html +++ b/docs/models_QueryFilter.js.html @@ -27,15 +27,14 @@

Source: models/QueryFilter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,18 @@ 

Source: models/QueryFilter.js

* Do not edit the class manually. * */ -// import ApiClient from '../ApiClient' + + import Query from './Query' + + + + /** * The QueryFilter model module. * @module models/QueryFilter -* @version 17.8 +* @version 20.4 */ export default class QueryFilter { /** @@ -57,14 +61,18 @@

Source: models/QueryFilter.js

* Document representing a query filter. A query filter wraps any query and allows it to be used as a filter. * @alias module:models/QueryFilter * @class - * @param query {module:models/Query} The query, which should be used as a filter. + * @param query {module:models/Query} The query to use as a filter. */ + constructor(query) { - /** - * The query, which should be used as a filter. - * @member {module:models/Query} query - */ + + + + + this.query = query + + } /** @@ -78,13 +86,30 @@

Source: models/QueryFilter.js

if (data) { obj = obj || new QueryFilter() + + + + if (data.hasOwnProperty('query')) { - obj['query'] = Query.constructFromObject(data['query']) + obj.query = Query.constructFromObject(data.query) } } - return obj } + + /** + * The query to use as a filter. + * @member {module:models/Query} query + */ + query = undefined; + + + + + + + + }
@@ -96,7 +121,7 @@

Source: models/QueryFilter.js


diff --git a/docs/models_Range2Filter.js.html b/docs/models_Range2Filter.js.html index 7e9895d..defc04b 100644 --- a/docs/models_Range2Filter.js.html +++ b/docs/models_Range2Filter.js.html @@ -27,15 +27,14 @@

Source: models/Range2Filter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Range2Filter.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Range2Filter model module. * @module models/Range2Filter -* @version 17.8 +* @version 20.4 */ export default class Range2Filter { /** @@ -56,51 +61,19 @@

Source: models/Range2Filter.js

* Document representing a range compare with range filter, named Range2Filter. * @alias module:models/Range2Filter * @class - * @param fromField {String} The field name of the field that start the range 1. - * @param toField {String} The field name of the field that end the range 1. + * @param fromField {String} The field name of the field that starts the first range. + * @param toField {String} The field name of the field that ends the first range. */ + constructor(fromField, toField) { - /** - * compare mode: overlap, containing, contained (default to \"overlap\"). It is optional. - * @member {module:models/Range2Filter.FilterModeEnum} filter_mode - */ - this.filter_mode = undefined - /** - * The field name of the field that start the range 1. - * @member {String} from_field - */ - this.from_field = fromField - /** - * A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive). - * @member {Boolean} from_inclusive - */ - this.from_inclusive = undefined - /** - * The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound. - * @member {Object} from_value - */ - this.from_value = undefined - /** - * The field name of the field that end the range 1. - * @member {String} to_field - */ - this.to_field = toField - /** - * A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive). - * @member {Boolean} to_inclusive - */ - this.to_inclusive = undefined + this.from_field = fromField; this.to_field = toField + - /** - * The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound. - * @member {Object} to_value - */ - this.to_value = undefined } /** @@ -114,58 +87,107 @@

Source: models/Range2Filter.js

if (data) { obj = obj || new Range2Filter() + + + + if (data.hasOwnProperty('filter_mode')) { - obj['filter_mode'] = ApiClient.convertToType(data['filter_mode'], 'String') + obj.filter_mode = ApiClient.convertToType(data.filter_mode, 'String') } if (data.hasOwnProperty('from_field')) { - obj['from_field'] = ApiClient.convertToType(data['from_field'], 'String') + obj.from_field = ApiClient.convertToType(data.from_field, 'String') } if (data.hasOwnProperty('from_inclusive')) { - obj['from_inclusive'] = ApiClient.convertToType(data['from_inclusive'], 'Boolean') + obj.from_inclusive = ApiClient.convertToType(data.from_inclusive, 'Boolean') } if (data.hasOwnProperty('from_value')) { - obj['from_value'] = ApiClient.convertToType(data['from_value'], Object) + obj.from_value = ApiClient.convertToType(data.from_value, Object) } if (data.hasOwnProperty('to_field')) { - obj['to_field'] = ApiClient.convertToType(data['to_field'], 'String') + obj.to_field = ApiClient.convertToType(data.to_field, 'String') } if (data.hasOwnProperty('to_inclusive')) { - obj['to_inclusive'] = ApiClient.convertToType(data['to_inclusive'], 'Boolean') + obj.to_inclusive = ApiClient.convertToType(data.to_inclusive, 'Boolean') } if (data.hasOwnProperty('to_value')) { - obj['to_value'] = ApiClient.convertToType(data['to_value'], Object) + obj.to_value = ApiClient.convertToType(data.to_value, Object) } } - return obj } -} - -/** -* Allowed values for the <code>filter_mode</code> property. -* @enum {String} -* @readonly -*/ -Range2Filter.FilterModeEnum = { /** - * value: "overlap" - * @const - */ - overlap: 'overlap', - + * Compare mode: overlap, containing, or contained. If not specified, the default is overlap. + * @member {module:models/Range2Filter.FilterModeEnum} filter_mode + */ + filter_mode = undefined; + /** + * The field name of the field that starts the first range. + * @member {String} from_field + */ + from_field = undefined; + /** + * Indicates whether the lower bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} from_inclusive + */ + from_inclusive = undefined; + /** + * The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended. + * @member {Object} from_value + */ + from_value = undefined; + /** + * The field name of the field that ends the first range. + * @member {String} to_field + */ + to_field = undefined; /** - * value: "containing" - * @const - */ - containing: 'containing', + * Indicates whether the upper bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} to_inclusive + */ + to_inclusive = undefined; + /** + * The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended. + * @member {Object} to_value + */ + to_value = undefined; + + + + + /** - * value: "contained" - * @const - */ - contained: 'contained' + * Allowed values for the <code>filter_mode</code> property. + * @enum {String} + * @readonly + */ + static FilterModeEnum = { + + /** + * value: "overlap" + * @const + */ + overlap: 'overlap', + + /** + * value: "containing" + * @const + */ + containing: 'containing', + + /** + * value: "contained" + * @const + */ + contained: 'contained' + }; + + + } + +
@@ -176,7 +198,7 @@

Source: models/Range2Filter.js


diff --git a/docs/models_RangeFilter.js.html b/docs/models_RangeFilter.js.html index 17ae6b2..6ddbb2f 100644 --- a/docs/models_RangeFilter.js.html +++ b/docs/models_RangeFilter.js.html @@ -27,15 +27,14 @@

Source: models/RangeFilter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/RangeFilter.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The RangeFilter model module. * @module models/RangeFilter -* @version 17.8 +* @version 20.4 */ export default class RangeFilter { /** @@ -60,35 +65,14 @@

Source: models/RangeFilter.js

*/ constructor(field) { - /** - * The search field. - * @member {String} field - */ + + + + + this.field = field - /** - * The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound. - * @member {Object} from - */ - this.from = undefined - - /** - * A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive). - * @member {Boolean} from_inclusive - */ - this.from_inclusive = undefined - - /** - * The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound. - * @member {Object} to - */ - this.to = undefined - - /** - * A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive). - * @member {Boolean} to_inclusive - */ - this.to_inclusive = undefined + } /** @@ -102,26 +86,65 @@

Source: models/RangeFilter.js

if (data) { obj = obj || new RangeFilter() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], Object) + obj.from = ApiClient.convertToType(data.from, Object) } if (data.hasOwnProperty('from_inclusive')) { - obj['from_inclusive'] = ApiClient.convertToType(data['from_inclusive'], 'Boolean') + obj.from_inclusive = ApiClient.convertToType(data.from_inclusive, 'Boolean') } if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], Object) + obj.to = ApiClient.convertToType(data.to, Object) } if (data.hasOwnProperty('to_inclusive')) { - obj['to_inclusive'] = ApiClient.convertToType(data['to_inclusive'], 'Boolean') + obj.to_inclusive = ApiClient.convertToType(data.to_inclusive, 'Boolean') } } - return obj } + + /** + * The search field. + * @member {String} field + */ + field = undefined; + /** + * The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended. + * @member {Object} from + */ + from = undefined; + /** + * Indicates whether the lower bound of the range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive. + * @member {Boolean} from_inclusive + */ + from_inclusive = undefined; + /** + * The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended. + * @member {Object} to + */ + to = undefined; + /** + * Indicates whether the upper bound of the range is inclusive. If not specified, the default is true. Set to false to made the upper bound exclusive. + * @member {Boolean} to_inclusive + */ + to_inclusive = undefined; + + + + + + + + } + +
@@ -132,7 +155,7 @@

Source: models/RangeFilter.js


diff --git a/docs/models_Recommendation.js.html b/docs/models_Recommendation.js.html index 4b9613b..706e18f 100644 --- a/docs/models_Recommendation.js.html +++ b/docs/models_Recommendation.js.html @@ -27,15 +27,14 @@

Source: models/Recommendation.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/Recommendation.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' import RecommendationType from './RecommendationType' + + + + /** * The Recommendation model module. * @module models/Recommendation -* @version 17.8 +* @version 20.4 */ export default class Recommendation { /** @@ -59,54 +64,16 @@

Source: models/Recommendation.js

* @alias module:models/Recommendation * @class */ + constructor() { - /** - * The localized callout message of the recommendation. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The image of the recommendation. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The localized long description of the recommendation. - * @member {String} long_description - */ - this.long_description = undefined - - /** - * The localized name of the recommendation. - * @member {String} name - */ - this.name = undefined - - /** - * The recommendation type of the recommendation. - * @member {module:models/RecommendationType} recommendation_type - */ - this.recommendation_type = undefined - - /** - * The recommended item id of the recommendation. - * @member {String} recommended_item_id - */ - this.recommended_item_id = undefined - - /** - * The recommended item link of the recommendation. - * @member {String} recommended_item_link - */ - this.recommended_item_link = undefined - - /** - * The localized short description of the recommendation. - * @member {String} short_description - */ - this.short_description = undefined + + + + + + + + } /** @@ -120,35 +87,89 @@

Source: models/Recommendation.js

if (data) { obj = obj || new Recommendation() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('long_description')) { - obj['long_description'] = ApiClient.convertToType(data['long_description'], 'String') + obj.long_description = ApiClient.convertToType(data.long_description, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('recommendation_type')) { - obj['recommendation_type'] = RecommendationType.constructFromObject(data['recommendation_type']) + obj.recommendation_type = RecommendationType.constructFromObject(data.recommendation_type) } if (data.hasOwnProperty('recommended_item_id')) { - obj['recommended_item_id'] = ApiClient.convertToType(data['recommended_item_id'], 'String') + obj.recommended_item_id = ApiClient.convertToType(data.recommended_item_id, 'String') } if (data.hasOwnProperty('recommended_item_link')) { - obj['recommended_item_link'] = ApiClient.convertToType(data['recommended_item_link'], 'String') + obj.recommended_item_link = ApiClient.convertToType(data.recommended_item_link, 'String') } if (data.hasOwnProperty('short_description')) { - obj['short_description'] = ApiClient.convertToType(data['short_description'], 'String') + obj.short_description = ApiClient.convertToType(data.short_description, 'String') } } - return obj } + + /** + * The localized callout message of the recommendation. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The image of the recommendation. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The localized long description of the recommendation. + * @member {String} long_description + */ + long_description = undefined; + /** + * The localized name of the recommendation. + * @member {String} name + */ + name = undefined; + /** + * The recommendation type of the recommendation. + * @member {module:models/RecommendationType} recommendation_type + */ + recommendation_type = undefined; + /** + * The recommended item id of the recommendation. + * @member {String} recommended_item_id + */ + recommended_item_id = undefined; + /** + * The recommended item link of the recommendation. + * @member {String} recommended_item_link + */ + recommended_item_link = undefined; + /** + * The localized short description of the recommendation. + * @member {String} short_description + */ + short_description = undefined; + + + + + + + + } + +
@@ -159,7 +180,7 @@

Source: models/Recommendation.js


diff --git a/docs/models_RecommendationType.js.html b/docs/models_RecommendationType.js.html index ad87fbc..e305a80 100644 --- a/docs/models_RecommendationType.js.html +++ b/docs/models_RecommendationType.js.html @@ -27,15 +27,14 @@

Source: models/RecommendationType.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/RecommendationType.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The RecommendationType model module. * @module models/RecommendationType -* @version 17.8 +* @version 20.4 */ export default class RecommendationType { /** @@ -57,18 +62,16 @@

Source: models/RecommendationType.js

* @alias module:models/RecommendationType * @class */ + constructor() { - /** - * The localized display value of the recommendation type. - * @member {String} display_value - */ - this.display_value = undefined - - /** - * The value of the recommendation type. - * @member {Number} value - */ - this.value = undefined + + + + + + + + } /** @@ -82,17 +85,41 @@

Source: models/RecommendationType.js

if (data) { obj = obj || new RecommendationType() + + + + if (data.hasOwnProperty('display_value')) { - obj['display_value'] = ApiClient.convertToType(data['display_value'], 'String') + obj.display_value = ApiClient.convertToType(data.display_value, 'String') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number') + obj.value = ApiClient.convertToType(data.value, 'Number') } } - return obj } + + /** + * The localized display value of the recommendation type. + * @member {String} display_value + */ + display_value = undefined; + /** + * The value of the recommendation type. + * @member {Number} value + */ + value = undefined; + + + + + + + + } + +
@@ -103,7 +130,7 @@

Source: models/RecommendationType.js


diff --git a/docs/models_ResetPasswordRequest.js.html b/docs/models_ResetPasswordRequest.js.html new file mode 100644 index 0000000..20c4eb5 --- /dev/null +++ b/docs/models_ResetPasswordRequest.js.html @@ -0,0 +1,153 @@ + + + + + JSDoc: Source: models/ResetPasswordRequest.js + + + + + + + + + + +
+ +

Source: models/ResetPasswordRequest.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The ResetPasswordRequest model module.
+* @module models/ResetPasswordRequest
+* @version 20.4
+*/
+export default class ResetPasswordRequest {
+    /**
+    * Constructs a new <code>ResetPasswordRequest</code>.
+    * @alias module:models/ResetPasswordRequest
+    * @class
+    * @param newPassword {String} The new password for the customer.
+    */
+
+    constructor(newPassword) {
+
+
+
+
+
+        this.new_password = newPassword
+
+
+    }
+
+    /**
+    * Constructs a <code>ResetPasswordRequest</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ResetPasswordRequest} obj Optional instance to populate.
+    * @return {module:models/ResetPasswordRequest} The populated <code>ResetPasswordRequest</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ResetPasswordRequest()
+
+
+
+
+
+            if (data.hasOwnProperty('login')) {
+                obj.login = ApiClient.convertToType(data.login, 'String')
+            }
+            if (data.hasOwnProperty('new_password')) {
+                obj.new_password = ApiClient.convertToType(data.new_password, 'String')
+            }
+            if (data.hasOwnProperty('reset_token')) {
+                obj.reset_token = ApiClient.convertToType(data.reset_token, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The login id of the customer.
+    * @member {String} login
+    */
+    login = undefined;
+    /**
+    * The new password for the customer.
+    * @member {String} new_password
+    */
+    new_password = undefined;
+    /**
+    * The password reset token for the customer.
+    * @member {String} reset_token
+    */
+    reset_token = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_ResetPasswordTokenRequest.js.html b/docs/models_ResetPasswordTokenRequest.js.html new file mode 100644 index 0000000..80ce3c8 --- /dev/null +++ b/docs/models_ResetPasswordTokenRequest.js.html @@ -0,0 +1,136 @@ + + + + + JSDoc: Source: models/ResetPasswordTokenRequest.js + + + + + + + + + + +
+ +

Source: models/ResetPasswordTokenRequest.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The ResetPasswordTokenRequest model module.
+* @module models/ResetPasswordTokenRequest
+* @version 20.4
+*/
+export default class ResetPasswordTokenRequest {
+    /**
+    * Constructs a new <code>ResetPasswordTokenRequest</code>.
+    * @alias module:models/ResetPasswordTokenRequest
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>ResetPasswordTokenRequest</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ResetPasswordTokenRequest} obj Optional instance to populate.
+    * @return {module:models/ResetPasswordTokenRequest} The populated <code>ResetPasswordTokenRequest</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ResetPasswordTokenRequest()
+
+
+
+
+
+            if (data.hasOwnProperty('login')) {
+                obj.login = ApiClient.convertToType(data.login, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The login id of the customer.
+    * @member {String} login
+    */
+    login = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_ResetPasswordTokenResult.js.html b/docs/models_ResetPasswordTokenResult.js.html new file mode 100644 index 0000000..c7c5e71 --- /dev/null +++ b/docs/models_ResetPasswordTokenResult.js.html @@ -0,0 +1,160 @@ + + + + + JSDoc: Source: models/ResetPasswordTokenResult.js + + + + + + + + + + +
+ +

Source: models/ResetPasswordTokenResult.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The ResetPasswordTokenResult model module.
+* @module models/ResetPasswordTokenResult
+* @version 20.4
+*/
+export default class ResetPasswordTokenResult {
+    /**
+    * Constructs a new <code>ResetPasswordTokenResult</code>.
+    * @alias module:models/ResetPasswordTokenResult
+    * @class
+    */
+
+    constructor() {
+
+
+
+
+
+
+
+
+    }
+
+    /**
+    * Constructs a <code>ResetPasswordTokenResult</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/ResetPasswordTokenResult} obj Optional instance to populate.
+    * @return {module:models/ResetPasswordTokenResult} The populated <code>ResetPasswordTokenResult</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new ResetPasswordTokenResult()
+
+
+
+
+
+            if (data.hasOwnProperty('email')) {
+                obj.email = ApiClient.convertToType(data.email, 'String')
+            }
+            if (data.hasOwnProperty('expires_in_minutes')) {
+                obj.expires_in_minutes = ApiClient.convertToType(data.expires_in_minutes, 'Number')
+            }
+            if (data.hasOwnProperty('login')) {
+                obj.login = ApiClient.convertToType(data.login, 'String')
+            }
+            if (data.hasOwnProperty('reset_token')) {
+                obj.reset_token = ApiClient.convertToType(data.reset_token, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The email address of the customer.
+    * @member {String} email
+    */
+    email = undefined;
+    /**
+    * The password reset token expire time in minutes.
+    * @member {Number} expires_in_minutes
+    */
+    expires_in_minutes = undefined;
+    /**
+    * The login id of the customer.
+    * @member {String} login
+    */
+    login = undefined;
+    /**
+    * The password reset token for the customer.
+    * @member {String} reset_token
+    */
+    reset_token = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_ResultPage.js.html b/docs/models_ResultPage.js.html index db462df..bc39420 100644 --- a/docs/models_ResultPage.js.html +++ b/docs/models_ResultPage.js.html @@ -27,15 +27,14 @@

Source: models/ResultPage.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ResultPage.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ResultPage model module. * @module models/ResultPage -* @version 17.8 +* @version 20.4 */ export default class ResultPage { /** @@ -57,18 +62,16 @@

Source: models/ResultPage.js

* @alias module:models/ResultPage * @class */ + constructor() { - /** - * Returns the count of search hits to include in the page. - * @member {Number} count - */ - this.count = undefined - - /** - * Returns the zero-based index of the first search hit in the page. - * @member {Number} start - */ - this.start = undefined + + + + + + + + } /** @@ -82,17 +85,49 @@

Source: models/ResultPage.js

if (data) { obj = obj || new ResultPage() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') + } + if (data.hasOwnProperty('db_start_record_')) { + obj.db_start_record_ = ApiClient.convertToType(data.db_start_record_, 'Number') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } } - return obj } + + /** + * The number of returned documents. + * @member {Number} count + */ + count = undefined; + /** + * The zero-based index of the record that we want to start with, used to optimize special handling + * @member {Number} db_start_record_ + */ + db_start_record_ = undefined; + /** + * The zero-based index of the first search hit to include in the result. + * @member {Number} start + */ + start = undefined; + + + + + + + + } + +
@@ -103,7 +138,7 @@

Source: models/ResultPage.js


diff --git a/docs/models_Shipment.js.html b/docs/models_Shipment.js.html index 8d49e8d..bcfa52c 100644 --- a/docs/models_Shipment.js.html +++ b/docs/models_Shipment.js.html @@ -27,15 +27,14 @@

Source: models/Shipment.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,14 +42,20 @@ 

Source: models/Shipment.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import OrderAddress from './OrderAddress' import ShippingMethod from './ShippingMethod' + + + + /** * The Shipment model module. * @module models/Shipment -* @version 17.8 +* @version 20.4 */ export default class Shipment { /** @@ -59,119 +64,16 @@

Source: models/Shipment.js

* @alias module:models/Shipment * @class */ - constructor() { - /** - * The products tax after discounts applying in purchase currency. Adjusted merchandize prices - * represent the sum of product prices before services such as shipping have been added, but after - * adjustment from promotions have been added. Note that order level adjustments are considered - * if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". - * @member {Number} adjusted_merchandize_total_tax - */ - this.adjusted_merchandize_total_tax = undefined - - /** - * The tax of all shipping line items of the line item container after shipping adjustments have been applied. - * @member {Number} adjusted_shipping_total_tax - */ - this.adjusted_shipping_total_tax = undefined - /** - * A flag indicating whether the shipment is a gift. - * @member {Boolean} gift - */ - this.gift = undefined - - /** - * The gift message. - * @member {String} gift_message - */ - this.gift_message = undefined - - /** - * The products total tax in purchase currency. Merchandize total prices represent the sum of - * product prices before services such as shipping or adjustment from promotions have been added. - * @member {Number} merchandize_total_tax - */ - this.merchandize_total_tax = undefined - - /** - * The total price of all product items after all product discounts. Depending on taxation - * policy the returned price is net or gross. - * @member {Number} product_sub_total - */ - this.product_sub_total = undefined + constructor() { - /** - * The total price of all product items after all product and order discounts. Depending on - * taxation policy the returned price is net or gross. - * @member {Number} product_total - */ - this.product_total = undefined - /** - * The order specific id to identify the shipment. - * @member {String} shipment_id - */ - this.shipment_id = undefined - /** - * Returns the shipment number for this shipment. This number is automatically generated. - * @member {String} shipment_no - */ - this.shipment_no = undefined - /** - * The total price of the shipment, including products, shipping and tax. Note that order - * level adjustments are not considered. - * @member {Number} shipment_total - */ - this.shipment_total = undefined - /** - * The shipping address. - * @member {module:models/OrderAddress} shipping_address - */ - this.shipping_address = undefined - /** - * The shipping method. - * @member {module:models/ShippingMethod} shipping_method - */ - this.shipping_method = undefined - /** - * The shipping status of the shipment. - * @member {module:models/Shipment.ShippingStatusEnum} shipping_status - */ - this.shipping_status = undefined - /** - * The total shipping price of the shipment after all shipping discounts. Excludes tax if - * taxation policy is net. Includes tax if taxation policy is gross. - * @member {Number} shipping_total - */ - this.shipping_total = undefined - - /** - * The tax of all shipping line items of the line item container before shipping adjustments - * have been applied. - * @member {Number} shipping_total_tax - */ - this.shipping_total_tax = undefined - - /** - * The total tax amount of the shipment. Note that order level adjustments are - * considered if Discount Taxation preference is set to \"Tax Products and Shipping Only - * Based on Adjusted Price\". - * @member {Number} tax_total - */ - this.tax_total = undefined - - /** - * The tracking number of the shipment. - * @member {String} tracking_number - */ - this.tracking_number = undefined } /** @@ -185,82 +87,204 @@

Source: models/Shipment.js

if (data) { obj = obj || new Shipment() + + + + if (data.hasOwnProperty('adjusted_merchandize_total_tax')) { - obj['adjusted_merchandize_total_tax'] = ApiClient.convertToType(data['adjusted_merchandize_total_tax'], 'Number') + obj.adjusted_merchandize_total_tax = ApiClient.convertToType(data.adjusted_merchandize_total_tax, 'Number') } if (data.hasOwnProperty('adjusted_shipping_total_tax')) { - obj['adjusted_shipping_total_tax'] = ApiClient.convertToType(data['adjusted_shipping_total_tax'], 'Number') + obj.adjusted_shipping_total_tax = ApiClient.convertToType(data.adjusted_shipping_total_tax, 'Number') + } + if (data.hasOwnProperty('c_fromStoreId')) { + obj.c_fromStoreId = ApiClient.convertToType(data.c_fromStoreId, 'String') + } + if (data.hasOwnProperty('c_shipmentType')) { + obj.c_shipmentType = ApiClient.convertToType(data.c_shipmentType, 'String') + } + if (data.hasOwnProperty('c_storePickupMessage')) { + obj.c_storePickupMessage = ApiClient.convertToType(data.c_storePickupMessage, 'String') } if (data.hasOwnProperty('gift')) { - obj['gift'] = ApiClient.convertToType(data['gift'], 'Boolean') + obj.gift = ApiClient.convertToType(data.gift, 'Boolean') } if (data.hasOwnProperty('gift_message')) { - obj['gift_message'] = ApiClient.convertToType(data['gift_message'], 'String') + obj.gift_message = ApiClient.convertToType(data.gift_message, 'String') } if (data.hasOwnProperty('merchandize_total_tax')) { - obj['merchandize_total_tax'] = ApiClient.convertToType(data['merchandize_total_tax'], 'Number') + obj.merchandize_total_tax = ApiClient.convertToType(data.merchandize_total_tax, 'Number') } if (data.hasOwnProperty('product_sub_total')) { - obj['product_sub_total'] = ApiClient.convertToType(data['product_sub_total'], 'Number') + obj.product_sub_total = ApiClient.convertToType(data.product_sub_total, 'Number') } if (data.hasOwnProperty('product_total')) { - obj['product_total'] = ApiClient.convertToType(data['product_total'], 'Number') + obj.product_total = ApiClient.convertToType(data.product_total, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('shipment_no')) { - obj['shipment_no'] = ApiClient.convertToType(data['shipment_no'], 'String') + obj.shipment_no = ApiClient.convertToType(data.shipment_no, 'String') } if (data.hasOwnProperty('shipment_total')) { - obj['shipment_total'] = ApiClient.convertToType(data['shipment_total'], 'Number') + obj.shipment_total = ApiClient.convertToType(data.shipment_total, 'Number') } if (data.hasOwnProperty('shipping_address')) { - obj['shipping_address'] = OrderAddress.constructFromObject(data['shipping_address']) + obj.shipping_address = OrderAddress.constructFromObject(data.shipping_address) } if (data.hasOwnProperty('shipping_method')) { - obj['shipping_method'] = ShippingMethod.constructFromObject(data['shipping_method']) + obj.shipping_method = ShippingMethod.constructFromObject(data.shipping_method) } if (data.hasOwnProperty('shipping_status')) { - obj['shipping_status'] = ApiClient.convertToType(data['shipping_status'], 'String') + obj.shipping_status = ApiClient.convertToType(data.shipping_status, 'String') } if (data.hasOwnProperty('shipping_total')) { - obj['shipping_total'] = ApiClient.convertToType(data['shipping_total'], 'Number') + obj.shipping_total = ApiClient.convertToType(data.shipping_total, 'Number') } if (data.hasOwnProperty('shipping_total_tax')) { - obj['shipping_total_tax'] = ApiClient.convertToType(data['shipping_total_tax'], 'Number') + obj.shipping_total_tax = ApiClient.convertToType(data.shipping_total_tax, 'Number') } if (data.hasOwnProperty('tax_total')) { - obj['tax_total'] = ApiClient.convertToType(data['tax_total'], 'Number') + obj.tax_total = ApiClient.convertToType(data.tax_total, 'Number') } if (data.hasOwnProperty('tracking_number')) { - obj['tracking_number'] = ApiClient.convertToType(data['tracking_number'], 'String') + obj.tracking_number = ApiClient.convertToType(data.tracking_number, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>shipping_status</code> property. -* @enum {String} -* @readonly -*/ -Shipment.ShippingStatusEnum = { /** - * value: "not_shipped" - * @const - */ - not_shipped: 'not_shipped', + * The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. Note that order level adjustments are considered if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". + * @member {Number} adjusted_merchandize_total_tax + */ + adjusted_merchandize_total_tax = undefined; + /** + * The tax of all shipping line items of the line item container after shipping adjustments have been applied. + * @member {Number} adjusted_shipping_total_tax + */ + adjusted_shipping_total_tax = undefined; + /** + * Used to map the shipment to a brick and mortar store. + * @member {String} c_fromStoreId + */ + c_fromStoreId = undefined; + /** + * @member {String} c_shipmentType + */ + c_shipmentType = undefined; + /** + * This is text used by the end user when sending a message to the brick and mortar store about the shipment. This is reflected in the order export. + * @member {String} c_storePickupMessage + */ + c_storePickupMessage = undefined; + /** + * A flag indicating whether the shipment is a gift. + * @member {Boolean} gift + */ + gift = undefined; + /** + * The gift message. + * @member {String} gift_message + */ + gift_message = undefined; + /** + * The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added. + * @member {Number} merchandize_total_tax + */ + merchandize_total_tax = undefined; + /** + * The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_sub_total + */ + product_sub_total = undefined; + /** + * The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross. + * @member {Number} product_total + */ + product_total = undefined; + /** + * The order specific id to identify the shipment. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * Returns the shipment number for this shipment. This number is automatically generated. + * @member {String} shipment_no + */ + shipment_no = undefined; + /** + * The total price of the shipment, including products, shipping and tax. Note that order level adjustments are not considered. + * @member {Number} shipment_total + */ + shipment_total = undefined; + /** + * The shipping address. + * @member {module:models/OrderAddress} shipping_address + */ + shipping_address = undefined; + /** + * The shipping method. + * @member {module:models/ShippingMethod} shipping_method + */ + shipping_method = undefined; + /** + * The shipping status of the shipment. + * @member {module:models/Shipment.ShippingStatusEnum} shipping_status + */ + shipping_status = undefined; + /** + * The total shipping price of the shipment after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross. + * @member {Number} shipping_total + */ + shipping_total = undefined; + /** + * The tax of all shipping line items of the line item container before shipping adjustments have been applied. + * @member {Number} shipping_total_tax + */ + shipping_total_tax = undefined; + /** + * The total tax amount of the shipment. Note that order level adjustments are considered if Discount Taxation preference is set to \"Tax Products and Shipping Only Based on Adjusted Price\". + * @member {Number} tax_total + */ + tax_total = undefined; + /** + * The tracking number of the shipment. + * @member {String} tracking_number + */ + tracking_number = undefined; + + + + + /** - * value: "shipped" - * @const - */ - shipped: 'shipped' + * Allowed values for the <code>shipping_status</code> property. + * @enum {String} + * @readonly + */ + static ShippingStatusEnum = { + + /** + * value: "not_shipped" + * @const + */ + not_shipped: 'not_shipped', + + /** + * value: "shipped" + * @const + */ + shipped: 'shipped' + }; + + + } + +
@@ -271,7 +295,7 @@

Source: models/Shipment.js


diff --git a/docs/models_ShippingItem.js.html b/docs/models_ShippingItem.js.html index beae637..164f139 100644 --- a/docs/models_ShippingItem.js.html +++ b/docs/models_ShippingItem.js.html @@ -27,15 +27,14 @@

Source: models/ShippingItem.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ShippingItem.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import PriceAdjustment from './PriceAdjustment' + + + + /** * The ShippingItem model module. * @module models/ShippingItem -* @version 17.8 +* @version 20.4 */ export default class ShippingItem { /** @@ -58,85 +63,16 @@

Source: models/ShippingItem.js

* @alias module:models/ShippingItem * @class */ + constructor() { - /** - * The tax of the product item after adjustments applying. - * @member {Number} adjusted_tax - */ - this.adjusted_tax = undefined - - /** - * The base price for the line item, which is the price of the unit before applying - * adjustments, in the purchase currency. The base price may be net or gross of - * tax depending on the configured taxation policy. - * @member {Number} base_price - */ - this.base_price = undefined - - /** - * The item identifier. Use this to identify an item when updating the item - * quantity or creating a custom price adjustment for an item. - * @member {String} item_id - */ - this.item_id = undefined - - /** - * The text describing the item in more detail. - * @member {String} item_text - */ - this.item_text = undefined - - /** - * The price of the line item before applying any adjustments. If the line item is - * based on net pricing then the net price is returned. If the line item is - * based on gross pricing then the gross price is returned. - * @member {Number} price - */ - this.price = undefined - - /** - * Array of price adjustments. Can be empty. - * @member {Array.<module:models/PriceAdjustment>} price_adjustments - */ - this.price_adjustments = undefined - - /** - * The price of the product line item after applying all product-level adjustments. - * For net pricing the adjusted net price is returned. For gross pricing, - * the adjusted gross price is returned. - * @member {Number} price_after_item_discount - */ - this.price_after_item_discount = undefined - - /** - * The identifier of the shipment to which this item belongs. - * @member {String} shipment_id - */ - this.shipment_id = undefined - - /** - * The tax of the product item before adjustments applying. - * @member {Number} tax - */ - this.tax = undefined - - /** - * The price used to calculate the tax for this product item. - * @member {Number} tax_basis - */ - this.tax_basis = undefined - - /** - * The tax class ID for the product item or null if no tax class ID is associated with the product item. - * @member {String} tax_class_id - */ - this.tax_class_id = undefined - - /** - * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. - * @member {Number} tax_rate - */ - this.tax_rate = undefined + + + + + + + + } /** @@ -150,47 +86,121 @@

Source: models/ShippingItem.js

if (data) { obj = obj || new ShippingItem() + + + + if (data.hasOwnProperty('adjusted_tax')) { - obj['adjusted_tax'] = ApiClient.convertToType(data['adjusted_tax'], 'Number') + obj.adjusted_tax = ApiClient.convertToType(data.adjusted_tax, 'Number') } if (data.hasOwnProperty('base_price')) { - obj['base_price'] = ApiClient.convertToType(data['base_price'], 'Number') + obj.base_price = ApiClient.convertToType(data.base_price, 'Number') } if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'String') + obj.item_id = ApiClient.convertToType(data.item_id, 'String') } if (data.hasOwnProperty('item_text')) { - obj['item_text'] = ApiClient.convertToType(data['item_text'], 'String') + obj.item_text = ApiClient.convertToType(data.item_text, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('price_adjustments')) { - obj['price_adjustments'] = ApiClient.convertToType(data['price_adjustments'], [PriceAdjustment]) + obj.price_adjustments = ApiClient.convertToType(data.price_adjustments, [PriceAdjustment]) } if (data.hasOwnProperty('price_after_item_discount')) { - obj['price_after_item_discount'] = ApiClient.convertToType(data['price_after_item_discount'], 'Number') + obj.price_after_item_discount = ApiClient.convertToType(data.price_after_item_discount, 'Number') } if (data.hasOwnProperty('shipment_id')) { - obj['shipment_id'] = ApiClient.convertToType(data['shipment_id'], 'String') + obj.shipment_id = ApiClient.convertToType(data.shipment_id, 'String') } if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number') + obj.tax = ApiClient.convertToType(data.tax, 'Number') } if (data.hasOwnProperty('tax_basis')) { - obj['tax_basis'] = ApiClient.convertToType(data['tax_basis'], 'Number') + obj.tax_basis = ApiClient.convertToType(data.tax_basis, 'Number') } if (data.hasOwnProperty('tax_class_id')) { - obj['tax_class_id'] = ApiClient.convertToType(data['tax_class_id'], 'String') + obj.tax_class_id = ApiClient.convertToType(data.tax_class_id, 'String') } if (data.hasOwnProperty('tax_rate')) { - obj['tax_rate'] = ApiClient.convertToType(data['tax_rate'], 'Number') + obj.tax_rate = ApiClient.convertToType(data.tax_rate, 'Number') } } - return obj } + + /** + * The tax of the product item after adjustments applying. + * @member {Number} adjusted_tax + */ + adjusted_tax = undefined; + /** + * The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy. + * @member {Number} base_price + */ + base_price = undefined; + /** + * The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item. + * @member {String} item_id + */ + item_id = undefined; + /** + * The text describing the item in more detail. + * @member {String} item_text + */ + item_text = undefined; + /** + * The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. + * @member {Number} price + */ + price = undefined; + /** + * Array of price adjustments. Can be empty. + * @member {Array.<module:models/PriceAdjustment>} price_adjustments + */ + price_adjustments = undefined; + /** + * The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned. + * @member {Number} price_after_item_discount + */ + price_after_item_discount = undefined; + /** + * The identifier of the shipment to which this item belongs. + * @member {String} shipment_id + */ + shipment_id = undefined; + /** + * The tax of the product item before adjustments applying. + * @member {Number} tax + */ + tax = undefined; + /** + * The price used to calculate the tax for this product item. + * @member {Number} tax_basis + */ + tax_basis = undefined; + /** + * The tax class ID for the product item or null if no tax class ID is associated with the product item. + * @member {String} tax_class_id + */ + tax_class_id = undefined; + /** + * The tax rate, which is the decimal tax rate to be applied to the product represented by this item. + * @member {Number} tax_rate + */ + tax_rate = undefined; + + + + + + + + } + +
@@ -201,7 +211,7 @@

Source: models/ShippingItem.js


diff --git a/docs/models_ShippingMethod.js.html b/docs/models_ShippingMethod.js.html index 1e9bfa8..1a31ed8 100644 --- a/docs/models_ShippingMethod.js.html +++ b/docs/models_ShippingMethod.js.html @@ -27,15 +27,14 @@

Source: models/ShippingMethod.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ShippingMethod.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ShippingPromotion from './ShippingPromotion' + + + + /** * The ShippingMethod model module. * @module models/ShippingMethod -* @version 17.8 +* @version 20.4 */ export default class ShippingMethod { /** @@ -60,42 +65,16 @@

Source: models/ShippingMethod.js

* @param cStorePickupEnabled {Boolean} * @param id {String} The shipping method id. */ - constructor(id) { - /** - * The localized description of the shipping method. - * @member {String} description - */ - this.description = undefined - - /** - * The external shipping method. - * @member {String} external_shipping_method - */ - this.external_shipping_method = undefined - - /** - * The shipping method id. - * @member {String} id - */ - this.id = id - - /** - * The localized name of the shipping method. - * @member {String} name - */ - this.name = undefined - - /** - * The shipping cost total, including shipment level costs and product level fix and surcharge costs. - * @member {Number} price - */ - this.price = undefined - - /** - * The array of active customer shipping promotions for this shipping method. This array can be empty. - * @member {Array.<module:models/ShippingPromotion>} shipping_promotions - */ - this.shipping_promotions = undefined + + constructor(cStorePickupEnabled, id) { + + + + + + this.c_storePickupEnabled = cStorePickupEnabled; this.id = id + + } /** @@ -109,29 +88,80 @@

Source: models/ShippingMethod.js

if (data) { obj = obj || new ShippingMethod() + + + + + if (data.hasOwnProperty('c_storePickupEnabled')) { + obj.c_storePickupEnabled = ApiClient.convertToType(data.c_storePickupEnabled, 'Boolean') + } if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('external_shipping_method')) { - obj['external_shipping_method'] = ApiClient.convertToType(data['external_shipping_method'], 'String') + obj.external_shipping_method = ApiClient.convertToType(data.external_shipping_method, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('shipping_promotions')) { - obj['shipping_promotions'] = ApiClient.convertToType(data['shipping_promotions'], [ShippingPromotion]) + obj.shipping_promotions = ApiClient.convertToType(data.shipping_promotions, [ShippingPromotion]) } } - return obj } + + /** + * @member {Boolean} c_storePickupEnabled + */ + c_storePickupEnabled = undefined; + /** + * The localized description of the shipping method. + * @member {String} description + */ + description = undefined; + /** + * The external shipping method. + * @member {String} external_shipping_method + */ + external_shipping_method = undefined; + /** + * The shipping method id. + * @member {String} id + */ + id = undefined; + /** + * The localized name of the shipping method. + * @member {String} name + */ + name = undefined; + /** + * The shipping cost total, including shipment level costs and product level fix and surcharge costs. + * @member {Number} price + */ + price = undefined; + /** + * The array of active customer shipping promotions for this shipping method. This array can be empty. + * @member {Array.<module:models/ShippingPromotion>} shipping_promotions + */ + shipping_promotions = undefined; + + + + + + + + } + +
@@ -142,7 +172,7 @@

Source: models/ShippingMethod.js


diff --git a/docs/models_ShippingMethodResult.js.html b/docs/models_ShippingMethodResult.js.html index c203044..ed1e4cd 100644 --- a/docs/models_ShippingMethodResult.js.html +++ b/docs/models_ShippingMethodResult.js.html @@ -27,15 +27,14 @@

Source: models/ShippingMethodResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/ShippingMethodResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import ShippingMethod from './ShippingMethod' + + + + /** * The ShippingMethodResult model module. * @module models/ShippingMethodResult -* @version 17.8 +* @version 20.4 */ export default class ShippingMethodResult { /** @@ -58,18 +63,16 @@

Source: models/ShippingMethodResult.js

* @alias module:models/ShippingMethodResult * @class */ + constructor() { - /** - * The applicable shipping method documents. - * @member {Array.<module:models/ShippingMethod>} applicable_shipping_methods - */ - this.applicable_shipping_methods = undefined - - /** - * The default shipping method. - * @member {String} default_shipping_method_id - */ - this.default_shipping_method_id = undefined + + + + + + + + } /** @@ -83,17 +86,41 @@

Source: models/ShippingMethodResult.js

if (data) { obj = obj || new ShippingMethodResult() + + + + if (data.hasOwnProperty('applicable_shipping_methods')) { - obj['applicable_shipping_methods'] = ApiClient.convertToType(data['applicable_shipping_methods'], [ShippingMethod]) + obj.applicable_shipping_methods = ApiClient.convertToType(data.applicable_shipping_methods, [ShippingMethod]) } if (data.hasOwnProperty('default_shipping_method_id')) { - obj['default_shipping_method_id'] = ApiClient.convertToType(data['default_shipping_method_id'], 'String') + obj.default_shipping_method_id = ApiClient.convertToType(data.default_shipping_method_id, 'String') } } - return obj } + + /** + * The applicable shipping method documents. + * @member {Array.<module:models/ShippingMethod>} applicable_shipping_methods + */ + applicable_shipping_methods = undefined; + /** + * The default shipping method. + * @member {String} default_shipping_method_id + */ + default_shipping_method_id = undefined; + + + + + + + + } + +
@@ -104,7 +131,7 @@

Source: models/ShippingMethodResult.js


diff --git a/docs/models_ShippingPromotion.js.html b/docs/models_ShippingPromotion.js.html index a4efd3a..49d0673 100644 --- a/docs/models_ShippingPromotion.js.html +++ b/docs/models_ShippingPromotion.js.html @@ -27,15 +27,14 @@

Source: models/ShippingPromotion.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/ShippingPromotion.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The ShippingPromotion model module. * @module models/ShippingPromotion -* @version 17.8 +* @version 20.4 */ export default class ShippingPromotion { /** @@ -57,30 +62,16 @@

Source: models/ShippingPromotion.js

* @alias module:models/ShippingPromotion * @class */ + constructor() { - /** - * The localized call-out message of the promotion. - * @member {String} callout_msg - */ - this.callout_msg = undefined - - /** - * The URL addressing the promotion. - * @member {String} link - */ - this.link = undefined - - /** - * The unique id of the promotion. - * @member {String} promotion_id - */ - this.promotion_id = undefined - - /** - * The localized promotion name. - * @member {String} promotion_name - */ - this.promotion_name = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/ShippingPromotion.js

if (data) { obj = obj || new ShippingPromotion() + + + + if (data.hasOwnProperty('callout_msg')) { - obj['callout_msg'] = ApiClient.convertToType(data['callout_msg'], 'String') + obj.callout_msg = ApiClient.convertToType(data.callout_msg, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('promotion_id')) { - obj['promotion_id'] = ApiClient.convertToType(data['promotion_id'], 'String') + obj.promotion_id = ApiClient.convertToType(data.promotion_id, 'String') } if (data.hasOwnProperty('promotion_name')) { - obj['promotion_name'] = ApiClient.convertToType(data['promotion_name'], 'String') + obj.promotion_name = ApiClient.convertToType(data.promotion_name, 'String') } } - return obj } + + /** + * The localized call-out message of the promotion. + * @member {String} callout_msg + */ + callout_msg = undefined; + /** + * The URL addressing the promotion. + * @member {String} link + */ + link = undefined; + /** + * The unique id of the promotion. + * @member {String} promotion_id + */ + promotion_id = undefined; + /** + * The localized promotion name. + * @member {String} promotion_name + */ + promotion_name = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/ShippingPromotion.js


diff --git a/docs/models_SimpleLink.js.html b/docs/models_SimpleLink.js.html index e3ec3bb..944a6ed 100644 --- a/docs/models_SimpleLink.js.html +++ b/docs/models_SimpleLink.js.html @@ -27,15 +27,14 @@

Source: models/SimpleLink.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/SimpleLink.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SimpleLink model module. * @module models/SimpleLink -* @version 17.8 +* @version 20.4 */ export default class SimpleLink { /** @@ -57,12 +62,16 @@

Source: models/SimpleLink.js

* @alias module:models/SimpleLink * @class */ + constructor() { - /** - * The link to the resource. - * @member {String} link - */ - this.link = undefined + + + + + + + + } /** @@ -76,14 +85,33 @@

Source: models/SimpleLink.js

if (data) { obj = obj || new SimpleLink() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } } - return obj } + + /** + * The link to the resource. + * @member {String} link + */ + link = undefined; + + + + + + + + } + +
@@ -94,7 +122,7 @@

Source: models/SimpleLink.js


diff --git a/docs/models_Site.js.html b/docs/models_Site.js.html index 4588524..289c10e 100644 --- a/docs/models_Site.js.html +++ b/docs/models_Site.js.html @@ -27,15 +27,14 @@

Source: models/Site.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/Site.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Locale from './Locale' + + + + /** * The Site model module. * @module models/Site -* @version 17.8 +* @version 20.4 */ export default class Site { /** @@ -58,108 +63,16 @@

Source: models/Site.js

* @alias module:models/Site * @class */ - constructor() { - /** - * The list of allowed currencies. - * @member {Array.<String>} allowed_currencies - */ - this.allowed_currencies = undefined - - /** - * A list of all allowed site locales. - * @member {Array.<module:models/Locale>} allowed_locales - */ - this.allowed_locales = undefined - - /** - * The currency mnemonic of the site. - * @member {String} default_currency - */ - this.default_currency = undefined - /** - * The default locale of the site. - * @member {String} default_locale - */ - this.default_locale = undefined - - /** - * The HTTP DIS base URL. - * @member {String} http_dis_base_url - */ - this.http_dis_base_url = undefined - - /** - * The configured HTTP host name. If no host name is configured the instance host name is returned. - * @member {String} http_hostname - */ - this.http_hostname = undefined - - /** - * The HTTP URL to the library content location of the site. - * @member {String} http_library_content_url - */ - this.http_library_content_url = undefined - - /** - * The HTTP URL to the site content location. - * @member {String} http_site_content_url - */ - this.http_site_content_url = undefined - - /** - * The HTTPS DIS base URL. - * @member {String} https_dis_base_url - */ - this.https_dis_base_url = undefined + constructor() { - /** - * The configured HTTPS host name. If no host name is configured the instance host name is returned. - * @member {String} https_hostname - */ - this.https_hostname = undefined - /** - * The HTTPS URL to the library content location of the site. - * @member {String} https_library_content_url - */ - this.https_library_content_url = undefined - /** - * The HTTPS URL to the site content location. - * @member {String} https_site_content_url - */ - this.https_site_content_url = undefined - /** - * The id of the site. - * @member {String} id - */ - this.id = undefined - /** - * The descriptive name for the site. - * @member {String} name - */ - this.name = undefined - /** - * The site status online/offline. - * @member {module:models/Site.StatusEnum} status - */ - this.status = undefined - /** - * The time zone of the site (for example, USA/Eastern). - * @member {String} timezone - */ - this.timezone = undefined - /** - * The time zone offset from UTC for the current time in milliseconds (for example, -14400000). - * @member {Number} timezone_offset - */ - this.timezone_offset = undefined } /** @@ -173,82 +86,181 @@

Source: models/Site.js

if (data) { obj = obj || new Site() + + + + if (data.hasOwnProperty('allowed_currencies')) { - obj['allowed_currencies'] = ApiClient.convertToType(data['allowed_currencies'], ['String']) + obj.allowed_currencies = ApiClient.convertToType(data.allowed_currencies, ['String']) } if (data.hasOwnProperty('allowed_locales')) { - obj['allowed_locales'] = ApiClient.convertToType(data['allowed_locales'], [Locale]) + obj.allowed_locales = ApiClient.convertToType(data.allowed_locales, [Locale]) } if (data.hasOwnProperty('default_currency')) { - obj['default_currency'] = ApiClient.convertToType(data['default_currency'], 'String') + obj.default_currency = ApiClient.convertToType(data.default_currency, 'String') } if (data.hasOwnProperty('default_locale')) { - obj['default_locale'] = ApiClient.convertToType(data['default_locale'], 'String') + obj.default_locale = ApiClient.convertToType(data.default_locale, 'String') } if (data.hasOwnProperty('http_dis_base_url')) { - obj['http_dis_base_url'] = ApiClient.convertToType(data['http_dis_base_url'], 'String') + obj.http_dis_base_url = ApiClient.convertToType(data.http_dis_base_url, 'String') } if (data.hasOwnProperty('http_hostname')) { - obj['http_hostname'] = ApiClient.convertToType(data['http_hostname'], 'String') + obj.http_hostname = ApiClient.convertToType(data.http_hostname, 'String') } if (data.hasOwnProperty('http_library_content_url')) { - obj['http_library_content_url'] = ApiClient.convertToType(data['http_library_content_url'], 'String') + obj.http_library_content_url = ApiClient.convertToType(data.http_library_content_url, 'String') } if (data.hasOwnProperty('http_site_content_url')) { - obj['http_site_content_url'] = ApiClient.convertToType(data['http_site_content_url'], 'String') + obj.http_site_content_url = ApiClient.convertToType(data.http_site_content_url, 'String') } if (data.hasOwnProperty('https_dis_base_url')) { - obj['https_dis_base_url'] = ApiClient.convertToType(data['https_dis_base_url'], 'String') + obj.https_dis_base_url = ApiClient.convertToType(data.https_dis_base_url, 'String') } if (data.hasOwnProperty('https_hostname')) { - obj['https_hostname'] = ApiClient.convertToType(data['https_hostname'], 'String') + obj.https_hostname = ApiClient.convertToType(data.https_hostname, 'String') } if (data.hasOwnProperty('https_library_content_url')) { - obj['https_library_content_url'] = ApiClient.convertToType(data['https_library_content_url'], 'String') + obj.https_library_content_url = ApiClient.convertToType(data.https_library_content_url, 'String') } if (data.hasOwnProperty('https_site_content_url')) { - obj['https_site_content_url'] = ApiClient.convertToType(data['https_site_content_url'], 'String') + obj.https_site_content_url = ApiClient.convertToType(data.https_site_content_url, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String') + obj.status = ApiClient.convertToType(data.status, 'String') } if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String') + obj.timezone = ApiClient.convertToType(data.timezone, 'String') } if (data.hasOwnProperty('timezone_offset')) { - obj['timezone_offset'] = ApiClient.convertToType(data['timezone_offset'], 'Number') + obj.timezone_offset = ApiClient.convertToType(data.timezone_offset, 'Number') } } - return obj } -} - -/** -* Allowed values for the <code>status</code> property. -* @enum {String} -* @readonly -*/ -Site.StatusEnum = { /** - * value: "online" - * @const - */ - online: 'online', + * The list of allowed currencies. + * @member {Array.<String>} allowed_currencies + */ + allowed_currencies = undefined; + /** + * A list of all allowed site locales. + * @member {Array.<module:models/Locale>} allowed_locales + */ + allowed_locales = undefined; + /** + * The currency mnemonic of the site. + * @member {String} default_currency + */ + default_currency = undefined; + /** + * The default locale of the site. + * @member {String} default_locale + */ + default_locale = undefined; + /** + * The HTTP DIS base URL. + * @member {String} http_dis_base_url + */ + http_dis_base_url = undefined; + /** + * The configured HTTP host name. If no host name is configured the instance host name is returned. + * @member {String} http_hostname + */ + http_hostname = undefined; + /** + * The HTTP URL to the library content location of the site. + * @member {String} http_library_content_url + */ + http_library_content_url = undefined; + /** + * The HTTP URL to the site content location. + * @member {String} http_site_content_url + */ + http_site_content_url = undefined; + /** + * The HTTPS DIS base URL. + * @member {String} https_dis_base_url + */ + https_dis_base_url = undefined; + /** + * The configured HTTPS host name. If no host name is configured the instance host name is returned. + * @member {String} https_hostname + */ + https_hostname = undefined; + /** + * The HTTPS URL to the library content location of the site. + * @member {String} https_library_content_url + */ + https_library_content_url = undefined; + /** + * The HTTPS URL to the site content location. + * @member {String} https_site_content_url + */ + https_site_content_url = undefined; + /** + * The id of the site. + * @member {String} id + */ + id = undefined; + /** + * The descriptive name for the site. + * @member {String} name + */ + name = undefined; + /** + * The site status online/offline. + * @member {module:models/Site.StatusEnum} status + */ + status = undefined; + /** + * The time zone of the site (for example, USA/Eastern). + * @member {String} timezone + */ + timezone = undefined; + /** + * The time zone offset from UTC for the current time in milliseconds (for example, -14400000). + * @member {Number} timezone_offset + */ + timezone_offset = undefined; + + + + + /** - * value: "offline" - * @const - */ - offline: 'offline' + * Allowed values for the <code>status</code> property. + * @enum {String} + * @readonly + */ + static StatusEnum = { + + /** + * value: "online" + * @const + */ + online: 'online', + + /** + * value: "offline" + * @const + */ + offline: 'offline' + }; + + + } + +
@@ -259,7 +271,7 @@

Source: models/Site.js


diff --git a/docs/models_Sort.js.html b/docs/models_Sort.js.html index 3d79377..5d7a4a1 100644 --- a/docs/models_Sort.js.html +++ b/docs/models_Sort.js.html @@ -27,15 +27,14 @@

Source: models/Sort.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Sort.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Sort model module. * @module models/Sort -* @version 17.8 +* @version 20.4 */ export default class Sort { /** @@ -56,19 +61,18 @@

Source: models/Sort.js

* Document representing a sort request. * @alias module:models/Sort * @class + * @param field {String} The name of the field to sort on. */ - constructor() { - /** - * The name of the field to sort on. - * @member {String} field - */ - this.field = undefined - /** - * The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used. - * @member {module:models/Sort.SortOrderEnum} sort_order - */ - this.sort_order = undefined + constructor(field) { + + + + + + this.field = field + + } /** @@ -82,37 +86,61 @@

Source: models/Sort.js

if (data) { obj = obj || new Sort() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('sort_order')) { - obj['sort_order'] = ApiClient.convertToType(data['sort_order'], 'String') + obj.sort_order = ApiClient.convertToType(data.sort_order, 'String') } } - return obj } -} - -/** -* Allowed values for the <code>sort_order</code> property. -* @enum {String} -* @readonly -*/ -Sort.SortOrderEnum = { /** - * value: "asc" - * @const - */ - asc: 'asc', + * The name of the field to sort on. + * @member {String} field + */ + field = undefined; + /** + * The sort order to be applied when sorting. When omitted, the default sort order (ASC) is used. + * @member {module:models/Sort.SortOrderEnum} sort_order + */ + sort_order = undefined; + + + + + /** - * value: "desc" - * @const - */ - desc: 'desc' + * Allowed values for the <code>sort_order</code> property. + * @enum {String} + * @readonly + */ + static SortOrderEnum = { + + /** + * value: "asc" + * @const + */ + asc: 'asc', + + /** + * value: "desc" + * @const + */ + desc: 'desc' + }; + + + } + +
@@ -123,7 +151,7 @@

Source: models/Sort.js


diff --git a/docs/models_Status.js.html b/docs/models_Status.js.html index 8d76fcb..413b3a1 100644 --- a/docs/models_Status.js.html +++ b/docs/models_Status.js.html @@ -27,15 +27,14 @@

Source: models/Status.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Status.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Status model module. * @module models/Status -* @version 17.8 +* @version 20.4 */ export default class Status { /** @@ -57,24 +62,16 @@

Source: models/Status.js

* @alias module:models/Status * @class */ + constructor() { - /** - * The status code. - * @member {String} code - */ - this.code = undefined - - /** - * The status message. - * @member {String} message - */ - this.message = undefined - - /** - * The status. For more information on the status values see dw.system.Status.OK and dw.system.Status.ERROR. - * @member {Number} status - */ - this.status = undefined + + + + + + + + } /** @@ -88,19 +85,49 @@

Source: models/Status.js

if (data) { obj = obj || new Status() + + + + if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String') + obj.code = ApiClient.convertToType(data.code, 'String') } if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String') + obj.message = ApiClient.convertToType(data.message, 'String') } if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Number') + obj.status = ApiClient.convertToType(data.status, 'Number') } } return obj } + + /** + * The status code. + * @member {String} code + */ + code = undefined; + /** + * The status message. + * @member {String} message + */ + message = undefined; + /** + * The status. For more information on the status values see dw.system.Status.OK and dw.system.Status.ERROR. + * @member {Number} status + */ + status = undefined; + + + + + + + + } + +
@@ -111,7 +138,7 @@

Source: models/Status.js


diff --git a/docs/models_Store.js.html b/docs/models_Store.js.html index 6a5fd1c..857339b 100644 --- a/docs/models_Store.js.html +++ b/docs/models_Store.js.html @@ -27,15 +27,14 @@

Source: models/Store.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Store.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Store model module. * @module models/Store -* @version 17.8 +* @version 20.4 */ export default class Store { /** @@ -58,132 +63,16 @@

Source: models/Store.js

* @class * @param id {String} The id of the store. */ - constructor(id) { - /** - * The first address of the store. - * @member {String} address1 - */ - this.address1 = undefined - /** - * The second address of the store. - * @member {String} address2 - */ - this.address2 = undefined - - /** - * The city of the store. - * @member {String} city - */ - this.city = undefined - - /** - * The country code of the store. - * @member {module:models/Store.CountryCodeEnum} country_code - */ - this.country_code = undefined + constructor(id) { - /** - * The distance to the given geo location in the unit of attribute distance (miles or kilometers). - * @member {Number} distance - */ - this.distance = undefined - /** - * The distance unit the distance attribute is measured in (either in miles or kilometers). - * @member {String} distance_unit - */ - this.distance_unit = undefined - /** - * The email address of the store. - * @member {String} email - */ - this.email = undefined - /** - * The fax number of the store. - * @member {String} fax - */ - this.fax = undefined - /** - * The id of the store. - * @member {String} id - */ this.id = id - /** - * The store image. - * @member {String} image - */ - this.image = undefined - - /** - * The inventory list id associated with this store. - * @member {String} inventory_id - */ - this.inventory_id = undefined - - /** - * The latitude of the store. - * @member {Number} latitude - */ - this.latitude = undefined - - /** - * The longitude of the store. - * @member {Number} longitude - */ - this.longitude = undefined - - /** - * The store name. - * @member {String} name - */ - this.name = undefined - - /** - * The phone number of the store. - * @member {String} phone - */ - this.phone = undefined - /** - * Whether this store uses Store Point-of-Sale. - * @member {Boolean} pos_enabled - */ - this.pos_enabled = undefined - - /** - * The postal code of the store. - * @member {String} postal_code - */ - this.postal_code = undefined - - /** - * The state code of the store. - * @member {String} state_code - */ - this.state_code = undefined - - /** - * The store events. - * @member {String} store_events - */ - this.store_events = undefined - - /** - * The store opening hours. - * @member {String} store_hours - */ - this.store_hours = undefined - - /** - * Whether this store should show up in store locator results. - * @member {Boolean} store_locator_enabled - */ - this.store_locator_enabled = undefined } /** @@ -197,100 +86,242 @@

Source: models/Store.js

if (data) { obj = obj || new Store() + + + + if (data.hasOwnProperty('address1')) { - obj['address1'] = ApiClient.convertToType(data['address1'], 'String') + obj.address1 = ApiClient.convertToType(data.address1, 'String') } if (data.hasOwnProperty('address2')) { - obj['address2'] = ApiClient.convertToType(data['address2'], 'String') + obj.address2 = ApiClient.convertToType(data.address2, 'String') + } + if (data.hasOwnProperty('c_TestAttribute')) { + obj.c_TestAttribute = ApiClient.convertToType(data.c_TestAttribute, ['String']) + } + if (data.hasOwnProperty('c_countryCodeValue')) { + obj.c_countryCodeValue = ApiClient.convertToType(data.c_countryCodeValue, 'String') + } + if (data.hasOwnProperty('c_inventoryListId')) { + obj.c_inventoryListId = ApiClient.convertToType(data.c_inventoryListId, 'String') } if (data.hasOwnProperty('city')) { - obj['city'] = ApiClient.convertToType(data['city'], 'String') + obj.city = ApiClient.convertToType(data.city, 'String') } if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String') + obj.country_code = ApiClient.convertToType(data.country_code, 'String') } if (data.hasOwnProperty('distance')) { - obj['distance'] = ApiClient.convertToType(data['distance'], 'Number') + obj.distance = ApiClient.convertToType(data.distance, 'Number') } if (data.hasOwnProperty('distance_unit')) { - obj['distance_unit'] = ApiClient.convertToType(data['distance_unit'], 'String') + obj.distance_unit = ApiClient.convertToType(data.distance_unit, 'String') } if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String') + obj.email = ApiClient.convertToType(data.email, 'String') } if (data.hasOwnProperty('fax')) { - obj['fax'] = ApiClient.convertToType(data['fax'], 'String') + obj.fax = ApiClient.convertToType(data.fax, 'String') } if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String') + obj.image = ApiClient.convertToType(data.image, 'String') } if (data.hasOwnProperty('inventory_id')) { - obj['inventory_id'] = ApiClient.convertToType(data['inventory_id'], 'String') + obj.inventory_id = ApiClient.convertToType(data.inventory_id, 'String') } if (data.hasOwnProperty('latitude')) { - obj['latitude'] = ApiClient.convertToType(data['latitude'], 'Number') + obj.latitude = ApiClient.convertToType(data.latitude, 'Number') } if (data.hasOwnProperty('longitude')) { - obj['longitude'] = ApiClient.convertToType(data['longitude'], 'Number') + obj.longitude = ApiClient.convertToType(data.longitude, 'Number') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String') + obj.phone = ApiClient.convertToType(data.phone, 'String') } if (data.hasOwnProperty('pos_enabled')) { - obj['pos_enabled'] = ApiClient.convertToType(data['pos_enabled'], 'Boolean') + obj.pos_enabled = ApiClient.convertToType(data.pos_enabled, 'Boolean') } if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String') + obj.postal_code = ApiClient.convertToType(data.postal_code, 'String') } if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String') + obj.state_code = ApiClient.convertToType(data.state_code, 'String') } if (data.hasOwnProperty('store_events')) { - obj['store_events'] = ApiClient.convertToType(data['store_events'], 'String') + obj.store_events = ApiClient.convertToType(data.store_events, 'String') } if (data.hasOwnProperty('store_hours')) { - obj['store_hours'] = ApiClient.convertToType(data['store_hours'], 'String') + obj.store_hours = ApiClient.convertToType(data.store_hours, 'String') } if (data.hasOwnProperty('store_locator_enabled')) { - obj['store_locator_enabled'] = ApiClient.convertToType(data['store_locator_enabled'], 'Boolean') + obj.store_locator_enabled = ApiClient.convertToType(data.store_locator_enabled, 'Boolean') } } - return obj } -} - -/** -* Allowed values for the <code>country_code</code> property. -* @enum {String} -* @readonly -*/ -Store.CountryCodeEnum = { /** - * value: "US" - * @const - */ - US: 'US', - + * The first address of the store. + * @member {String} address1 + */ + address1 = undefined; + /** + * The second address of the store. + * @member {String} address2 + */ + address2 = undefined; + /** + * @member {Array.<String>} c_TestAttribute + */ + c_TestAttribute = undefined; /** - * value: "CA" - * @const - */ - CA: 'CA', + * Country Code Value - for the form values + * @member {String} c_countryCodeValue + */ + c_countryCodeValue = undefined; + /** + * Store Inventory List ID + * @member {String} c_inventoryListId + */ + c_inventoryListId = undefined; + /** + * The city of the store. + * @member {String} city + */ + city = undefined; + /** + * The country code of the store. + * @member {module:models/Store.CountryCodeEnum} country_code + */ + country_code = undefined; + /** + * The distance to the given geo location in the unit of attribute distance (miles or kilometers). + * @member {Number} distance + */ + distance = undefined; + /** + * The distance unit the distance attribute is measured in (either in miles or kilometers). + * @member {String} distance_unit + */ + distance_unit = undefined; + /** + * The email address of the store. + * @member {String} email + */ + email = undefined; + /** + * The fax number of the store. + * @member {String} fax + */ + fax = undefined; + /** + * The id of the store. + * @member {String} id + */ + id = undefined; + /** + * The store image. + * @member {String} image + */ + image = undefined; + /** + * The inventory list id associated with this store. + * @member {String} inventory_id + */ + inventory_id = undefined; + /** + * The latitude of the store. + * @member {Number} latitude + */ + latitude = undefined; + /** + * The longitude of the store. + * @member {Number} longitude + */ + longitude = undefined; + /** + * The store name. + * @member {String} name + */ + name = undefined; + /** + * The phone number of the store. + * @member {String} phone + */ + phone = undefined; + /** + * Whether this store uses Store Point-of-Sale. + * @member {Boolean} pos_enabled + */ + pos_enabled = undefined; + /** + * The postal code of the store. + * @member {String} postal_code + */ + postal_code = undefined; + /** + * The state code of the store. + * @member {String} state_code + */ + state_code = undefined; + /** + * The store events. + * @member {String} store_events + */ + store_events = undefined; + /** + * The store opening hours. + * @member {String} store_hours + */ + store_hours = undefined; + /** + * Whether this store should show up in store locator results. + * @member {Boolean} store_locator_enabled + */ + store_locator_enabled = undefined; + + + + + /** - * value: "DE" - * @const - */ - DE: 'DE' + * Allowed values for the <code>country_code</code> property. + * @enum {String} + * @readonly + */ + static CountryCodeEnum = { + + /** + * value: "US" + * @const + */ + US: 'US', + + /** + * value: "CA" + * @const + */ + CA: 'CA', + + /** + * value: "DE" + * @const + */ + DE: 'DE' + }; + + + } + +
@@ -301,7 +332,7 @@

Source: models/Store.js


diff --git a/docs/models_StoreResult.js.html b/docs/models_StoreResult.js.html index 661162b..ce7bd9a 100644 --- a/docs/models_StoreResult.js.html +++ b/docs/models_StoreResult.js.html @@ -27,15 +27,14 @@

Source: models/StoreResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/StoreResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Store from './Store' + + + + /** * The StoreResult model module. * @module models/StoreResult -* @version 17.8 +* @version 20.4 */ export default class StoreResult { /** @@ -58,42 +63,16 @@

Source: models/StoreResult.js

* @alias module:models/StoreResult * @class */ + constructor() { - /** - * The number of returned documents. - * @member {Number} count - */ - this.count = undefined - - /** - * The array of store documents. - * @member {Array.<module:models/Store>} data - */ - this.data = undefined - - /** - * The URL of the next result page. - * @member {String} next - */ - this.next = undefined - - /** - * The URL of the previous result page. - * @member {String} previous - */ - this.previous = undefined - - /** - * The zero-based index of the first search hit to include in the result. - * @member {Number} start - */ - this.start = undefined - - /** - * The total number of documents. - * @member {Number} total - */ - this.total = undefined + + + + + + + + } /** @@ -107,29 +86,73 @@

Source: models/StoreResult.js

if (data) { obj = obj || new StoreResult() + + + + if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number') + obj.count = ApiClient.convertToType(data.count, 'Number') } if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Store]) + obj.data = ApiClient.convertToType(data.data, [Store]) } if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String') + obj.next = ApiClient.convertToType(data.next, 'String') } if (data.hasOwnProperty('previous')) { - obj['previous'] = ApiClient.convertToType(data['previous'], 'String') + obj.previous = ApiClient.convertToType(data.previous, 'String') } if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number') + obj.start = ApiClient.convertToType(data.start, 'Number') } if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number') + obj.total = ApiClient.convertToType(data.total, 'Number') } } - return obj } + + /** + * The number of search results in the current page. + * @member {Number} count + */ + count = undefined; + /** + * + * @member {Array.<module:models/Store>} data + */ + data = undefined; + /** + * The URL of the next result page. + * @member {String} next + */ + next = undefined; + /** + * The URL of the previous result page. + * @member {String} previous + */ + previous = undefined; + /** + * The zero-based index of the first search result to include in the document. + * @member {Number} start + */ + start = undefined; + /** + * The total number of search results. + * @member {Number} total + */ + total = undefined; + + + + + + + + } + +
@@ -140,7 +163,7 @@

Source: models/StoreResult.js


diff --git a/docs/models_SuggestedCategory.js.html b/docs/models_SuggestedCategory.js.html index cb6af82..a2663c8 100644 --- a/docs/models_SuggestedCategory.js.html +++ b/docs/models_SuggestedCategory.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedCategory.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/SuggestedCategory.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedCategory model module. * @module models/SuggestedCategory -* @version 17.8 +* @version 20.4 */ export default class SuggestedCategory { /** @@ -56,30 +61,16 @@

Source: models/SuggestedCategory.js

* @alias module:models/SuggestedCategory * @class */ + constructor() { - /** - * The id of the category. - * @member {String} id - */ - this.id = undefined - - /** - * The URL addressing the category. - * @member {String} link - */ - this.link = undefined - - /** - * The localized name of the category. - * @member {String} name - */ - this.name = undefined - - /** - * The name of the parent category. - * @member {String} parent_category_name - */ - this.parent_category_name = undefined + + + + + + + + } /** @@ -93,23 +84,57 @@

Source: models/SuggestedCategory.js

if (data) { obj = obj || new SuggestedCategory() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('parent_category_name')) { - obj['parent_category_name'] = ApiClient.convertToType(data['parent_category_name'], 'String') + obj.parent_category_name = ApiClient.convertToType(data.parent_category_name, 'String') } } - return obj } + + /** + * The id of the category. + * @member {String} id + */ + id = undefined; + /** + * The URL addressing the category. + * @member {String} link + */ + link = undefined; + /** + * The localized name of the category. + * @member {String} name + */ + name = undefined; + /** + * The name of the parent category. + * @member {String} parent_category_name + */ + parent_category_name = undefined; + + + + + + + + } + +
@@ -120,7 +145,7 @@

Source: models/SuggestedCategory.js


diff --git a/docs/models_SuggestedContent.js.html b/docs/models_SuggestedContent.js.html index 518b5a1..122e70a 100644 --- a/docs/models_SuggestedContent.js.html +++ b/docs/models_SuggestedContent.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedContent.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/SuggestedContent.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedContent model module. * @module models/SuggestedContent -* @version 17.8 +* @version 20.4 */ export default class SuggestedContent { /** @@ -56,24 +61,16 @@

Source: models/SuggestedContent.js

* @alias module:models/SuggestedContent * @class */ + constructor() { - /** - * The id of the content. - * @member {String} id - */ - this.id = undefined - - /** - * The URL addressing the content. - * @member {String} link - */ - this.link = undefined - - /** - * The localized name of the content. - * @member {String} name - */ - this.name = undefined + + + + + + + + } /** @@ -87,18 +84,49 @@

Source: models/SuggestedContent.js

if (data) { obj = obj || new SuggestedContent() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } } + return obj } + + /** + * The id of the content. + * @member {String} id + */ + id = undefined; + /** + * The URL addressing the content. + * @member {String} link + */ + link = undefined; + /** + * The localized name of the content. + * @member {String} name + */ + name = undefined; + + + + + + + + } + +
@@ -109,7 +137,7 @@

Source: models/SuggestedContent.js


diff --git a/docs/models_SuggestedPhrase.js.html b/docs/models_SuggestedPhrase.js.html index eb58f35..9b9d114 100644 --- a/docs/models_SuggestedPhrase.js.html +++ b/docs/models_SuggestedPhrase.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedPhrase.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/SuggestedPhrase.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedPhrase model module. * @module models/SuggestedPhrase -* @version 17.8 +* @version 20.4 */ export default class SuggestedPhrase { /** @@ -57,18 +62,16 @@

Source: models/SuggestedPhrase.js

* @alias module:models/SuggestedPhrase * @class */ + constructor() { - /** - * Returns whether this suggested phrase exactly matches the user input search phrase. - * @member {Boolean} exact_match - */ - this.exact_match = undefined - - /** - * Returns the suggested search phrase. - * @member {String} phrase - */ - this.phrase = undefined + + + + + + + + } /** @@ -82,17 +85,41 @@

Source: models/SuggestedPhrase.js

if (data) { obj = obj || new SuggestedPhrase() + + + + if (data.hasOwnProperty('exact_match')) { - obj['exact_match'] = ApiClient.convertToType(data['exact_match'], 'Boolean') + obj.exact_match = ApiClient.convertToType(data.exact_match, 'Boolean') } if (data.hasOwnProperty('phrase')) { - obj['phrase'] = ApiClient.convertToType(data['phrase'], 'String') + obj.phrase = ApiClient.convertToType(data.phrase, 'String') } } - return obj } + + /** + * Returns whether this suggested phrase exactly matches the user input search phrase. + * @member {Boolean} exact_match + */ + exact_match = undefined; + /** + * Returns the suggested search phrase. + * @member {String} phrase + */ + phrase = undefined; + + + + + + + + } + +
@@ -103,7 +130,7 @@

Source: models/SuggestedPhrase.js


diff --git a/docs/models_SuggestedProduct.js.html b/docs/models_SuggestedProduct.js.html index eff0337..274b087 100644 --- a/docs/models_SuggestedProduct.js.html +++ b/docs/models_SuggestedProduct.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedProduct.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/SuggestedProduct.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' + + + + /** * The SuggestedProduct model module. * @module models/SuggestedProduct -* @version 17.8 +* @version 20.4 */ export default class SuggestedProduct { /** @@ -58,43 +63,16 @@

Source: models/SuggestedProduct.js

* @alias module:models/SuggestedProduct * @class */ + constructor() { - /** - * The ISO 4217 mnemonic code of the currency. - * @member {String} currency - */ - this.currency = undefined - - /** - * The first image of the product hit for the configured viewtype. - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * The sales price of the product. In the case of complex products like a master or a set, - * this is the minimum price of related child products. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the product. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The localized name of the product. - * @member {String} product_name - */ - this.product_name = undefined + + + + + + + + } /** @@ -108,29 +86,73 @@

Source: models/SuggestedProduct.js

if (data) { obj = obj || new SuggestedProduct() + + + + if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String') + obj.currency = ApiClient.convertToType(data.currency, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String') + obj.product_name = ApiClient.convertToType(data.product_name, 'String') } } - return obj } + + /** + * The ISO 4217 mnemonic code of the currency. + * @member {String} currency + */ + currency = undefined; + /** + * The first image of the product hit for the configured viewtype. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of related child products. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the product. + * @member {String} product_id + */ + product_id = undefined; + /** + * The localized name of the product. + * @member {String} product_name + */ + product_name = undefined; + + + + + + + + } + +
@@ -141,7 +163,7 @@

Source: models/SuggestedProduct.js


diff --git a/docs/models_SuggestedTerm.js.html b/docs/models_SuggestedTerm.js.html index 5490ba7..b444483 100644 --- a/docs/models_SuggestedTerm.js.html +++ b/docs/models_SuggestedTerm.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedTerm.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/SuggestedTerm.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The SuggestedTerm model module. * @module models/SuggestedTerm -* @version 17.8 +* @version 20.4 */ export default class SuggestedTerm { /** @@ -57,30 +62,16 @@

Source: models/SuggestedTerm.js

* @alias module:models/SuggestedTerm * @class */ + constructor() { - /** - * Returns whether this term value is a completion match. - * @member {Boolean} completed - */ - this.completed = undefined - - /** - * Returns whether this term value is a correction match. - * @member {Boolean} corrected - */ - this.corrected = undefined - - /** - * Returns whether this term value is a exact match. - * @member {Boolean} exact_match - */ - this.exact_match = undefined - - /** - * Returns the term value. - * @member {String} value - */ - this.value = undefined + + + + + + + + } /** @@ -94,23 +85,57 @@

Source: models/SuggestedTerm.js

if (data) { obj = obj || new SuggestedTerm() + + + + if (data.hasOwnProperty('completed')) { - obj['completed'] = ApiClient.convertToType(data['completed'], 'Boolean') + obj.completed = ApiClient.convertToType(data.completed, 'Boolean') } if (data.hasOwnProperty('corrected')) { - obj['corrected'] = ApiClient.convertToType(data['corrected'], 'Boolean') + obj.corrected = ApiClient.convertToType(data.corrected, 'Boolean') } if (data.hasOwnProperty('exact_match')) { - obj['exact_match'] = ApiClient.convertToType(data['exact_match'], 'Boolean') + obj.exact_match = ApiClient.convertToType(data.exact_match, 'Boolean') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } } - return obj } + + /** + * Returns whether this term value is a completion match. + * @member {Boolean} completed + */ + completed = undefined; + /** + * Returns whether this term value is a correction match. + * @member {Boolean} corrected + */ + corrected = undefined; + /** + * Returns whether this term value is a exact match. + * @member {Boolean} exact_match + */ + exact_match = undefined; + /** + * Returns the term value. + * @member {String} value + */ + value = undefined; + + + + + + + + } + +
@@ -121,7 +146,7 @@

Source: models/SuggestedTerm.js


diff --git a/docs/models_SuggestedTerms.js.html b/docs/models_SuggestedTerms.js.html index ba60c83..dd09516 100644 --- a/docs/models_SuggestedTerms.js.html +++ b/docs/models_SuggestedTerms.js.html @@ -27,15 +27,14 @@

Source: models/SuggestedTerms.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/SuggestedTerms.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestedTerm from './SuggestedTerm' + + + + /** * The SuggestedTerms model module. * @module models/SuggestedTerms -* @version 17.8 +* @version 20.4 */ export default class SuggestedTerms { /** @@ -58,18 +63,16 @@

Source: models/SuggestedTerms.js

* @alias module:models/SuggestedTerms * @class */ + constructor() { - /** - * Returns the original term that the suggested terms relates to. - * @member {String} original_term - */ - this.original_term = undefined - - /** - * Returns the suggested terms. - * @member {Array.<module:models/SuggestedTerm>} terms - */ - this.terms = undefined + + + + + + + + } /** @@ -83,17 +86,41 @@

Source: models/SuggestedTerms.js

if (data) { obj = obj || new SuggestedTerms() + + + + if (data.hasOwnProperty('original_term')) { - obj['original_term'] = ApiClient.convertToType(data['original_term'], 'String') + obj.original_term = ApiClient.convertToType(data.original_term, 'String') } if (data.hasOwnProperty('terms')) { - obj['terms'] = ApiClient.convertToType(data['terms'], [SuggestedTerm]) + obj.terms = ApiClient.convertToType(data.terms, [SuggestedTerm]) } } - return obj } + + /** + * Returns the original term that the suggested terms relates to. + * @member {String} original_term + */ + original_term = undefined; + /** + * Returns the suggested terms. + * @member {Array.<module:models/SuggestedTerm>} terms + */ + terms = undefined; + + + + + + + + } + +
@@ -104,7 +131,7 @@

Source: models/SuggestedTerms.js


diff --git a/docs/models_Suggestion.js.html b/docs/models_Suggestion.js.html index ed6abf7..71e9c42 100644 --- a/docs/models_Suggestion.js.html +++ b/docs/models_Suggestion.js.html @@ -27,15 +27,14 @@

Source: models/Suggestion.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,6 +42,8 @@ 

Source: models/Suggestion.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import SuggestedCategory from './SuggestedCategory' import SuggestedContent from './SuggestedContent' @@ -50,10 +51,14 @@

Source: models/Suggestion.js

import SuggestedProduct from './SuggestedProduct' import SuggestedTerms from './SuggestedTerms' + + + + /** * The Suggestion model module. * @module models/Suggestion -* @version 17.8 +* @version 20.4 */ export default class Suggestion { /** @@ -62,48 +67,16 @@

Source: models/Suggestion.js

* @alias module:models/Suggestion * @class */ + constructor() { - /** - * The sorted list of suggested brands. This list can be empty. - * @member {Array.<String>} brands - */ - this.brands = undefined - - /** - * The sorted list of suggested categories. This list can be empty. - * @member {Array.<module:models/SuggestedCategory>} categories - */ - this.categories = undefined - - /** - * The sorted list of suggested content. This list can be empty. - * @member {Array.<module:models/SuggestedContent>} content - */ - this.content = undefined - - /** - * The sorted list of suggested custom suggestions. This list can be empty. - * @member {Array.<String>} custom_suggestions - */ - this.custom_suggestions = undefined - - /** - * The sorted list of suggested products. This list can be empty. - * @member {Array.<module:models/SuggestedProduct>} products - */ - this.products = undefined - - /** - * A list of suggested phrases. This list can be empty. - * @member {Array.<module:models/SuggestedPhrase>} suggested_phrases - */ - this.suggested_phrases = undefined - - /** - * A list of suggested terms. This list can be empty. - * @member {Array.<module:models/SuggestedTerms>} suggested_terms - */ - this.suggested_terms = undefined + + + + + + + + } /** @@ -117,32 +90,81 @@

Source: models/Suggestion.js

if (data) { obj = obj || new Suggestion() + + + + if (data.hasOwnProperty('brands')) { - obj['brands'] = ApiClient.convertToType(data['brands'], ['String']) + obj.brands = ApiClient.convertToType(data.brands, ['String']) } if (data.hasOwnProperty('categories')) { - obj['categories'] = ApiClient.convertToType(data['categories'], [SuggestedCategory]) + obj.categories = ApiClient.convertToType(data.categories, [SuggestedCategory]) } if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], [SuggestedContent]) + obj.content = ApiClient.convertToType(data.content, [SuggestedContent]) } if (data.hasOwnProperty('custom_suggestions')) { - obj['custom_suggestions'] = ApiClient.convertToType(data['custom_suggestions'], ['String']) + obj.custom_suggestions = ApiClient.convertToType(data.custom_suggestions, ['String']) } if (data.hasOwnProperty('products')) { - obj['products'] = ApiClient.convertToType(data['products'], [SuggestedProduct]) + obj.products = ApiClient.convertToType(data.products, [SuggestedProduct]) } if (data.hasOwnProperty('suggested_phrases')) { - obj['suggested_phrases'] = ApiClient.convertToType(data['suggested_phrases'], [SuggestedPhrase]) + obj.suggested_phrases = ApiClient.convertToType(data.suggested_phrases, [SuggestedPhrase]) } if (data.hasOwnProperty('suggested_terms')) { - obj['suggested_terms'] = ApiClient.convertToType(data['suggested_terms'], [SuggestedTerms]) + obj.suggested_terms = ApiClient.convertToType(data.suggested_terms, [SuggestedTerms]) } } - return obj } + + /** + * The sorted list of suggested brands. This list can be empty. + * @member {Array.<String>} brands + */ + brands = undefined; + /** + * The sorted list of suggested categories. This list can be empty. + * @member {Array.<module:models/SuggestedCategory>} categories + */ + categories = undefined; + /** + * The sorted list of suggested content. This list can be empty. + * @member {Array.<module:models/SuggestedContent>} content + */ + content = undefined; + /** + * The sorted list of suggested custom suggestions. This list can be empty. + * @member {Array.<String>} custom_suggestions + */ + custom_suggestions = undefined; + /** + * The sorted list of suggested products. This list can be empty. + * @member {Array.<module:models/SuggestedProduct>} products + */ + products = undefined; + /** + * A list of suggested phrases. This list can be empty. + * @member {Array.<module:models/SuggestedPhrase>} suggested_phrases + */ + suggested_phrases = undefined; + /** + * A list of suggested terms. This list can be empty. + * @member {Array.<module:models/SuggestedTerms>} suggested_terms + */ + suggested_terms = undefined; + + + + + + + + } + +
@@ -153,7 +175,7 @@

Source: models/Suggestion.js


diff --git a/docs/models_SuggestionResult.js.html b/docs/models_SuggestionResult.js.html index 3286025..e4629a5 100644 --- a/docs/models_SuggestionResult.js.html +++ b/docs/models_SuggestionResult.js.html @@ -27,15 +27,14 @@

Source: models/SuggestionResult.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,13 +42,19 @@ 

Source: models/SuggestionResult.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Suggestion from './Suggestion' + + + + /** * The SuggestionResult model module. * @module models/SuggestionResult -* @version 17.8 +* @version 20.4 */ export default class SuggestionResult { /** @@ -58,42 +63,16 @@

Source: models/SuggestionResult.js

* @alias module:models/SuggestionResult * @class */ + constructor() { - /** - * Returns the suggested brands. - * @member {module:models/Suggestion} brand_suggestions - */ - this.brand_suggestions = undefined - - /** - * Returns the suggested categories. - * @member {module:models/Suggestion} category_suggestions - */ - this.category_suggestions = undefined - - /** - * Returns the suggested content. - * @member {module:models/Suggestion} content_suggestions - */ - this.content_suggestions = undefined - - /** - * Returns the suggested custom suggestions. - * @member {module:models/Suggestion} custom_suggestions - */ - this.custom_suggestions = undefined - - /** - * Returns the suggested products. - * @member {module:models/Suggestion} product_suggestions - */ - this.product_suggestions = undefined - - /** - * The query phrase to search for. - * @member {String} query - */ - this.query = undefined + + + + + + + + } /** @@ -107,29 +86,73 @@

Source: models/SuggestionResult.js

if (data) { obj = obj || new SuggestionResult() + + + + if (data.hasOwnProperty('brand_suggestions')) { - obj['brand_suggestions'] = Suggestion.constructFromObject(data['brand_suggestions']) + obj.brand_suggestions = Suggestion.constructFromObject(data.brand_suggestions) } if (data.hasOwnProperty('category_suggestions')) { - obj['category_suggestions'] = Suggestion.constructFromObject(data['category_suggestions']) + obj.category_suggestions = Suggestion.constructFromObject(data.category_suggestions) } if (data.hasOwnProperty('content_suggestions')) { - obj['content_suggestions'] = Suggestion.constructFromObject(data['content_suggestions']) + obj.content_suggestions = Suggestion.constructFromObject(data.content_suggestions) } if (data.hasOwnProperty('custom_suggestions')) { - obj['custom_suggestions'] = Suggestion.constructFromObject(data['custom_suggestions']) + obj.custom_suggestions = Suggestion.constructFromObject(data.custom_suggestions) } if (data.hasOwnProperty('product_suggestions')) { - obj['product_suggestions'] = Suggestion.constructFromObject(data['product_suggestions']) + obj.product_suggestions = Suggestion.constructFromObject(data.product_suggestions) } if (data.hasOwnProperty('query')) { - obj['query'] = ApiClient.convertToType(data['query'], 'String') + obj.query = ApiClient.convertToType(data.query, 'String') } } - return obj } + + /** + * Returns the suggested brands. + * @member {module:models/Suggestion} brand_suggestions + */ + brand_suggestions = undefined; + /** + * Returns the suggested categories. + * @member {module:models/Suggestion} category_suggestions + */ + category_suggestions = undefined; + /** + * Returns the suggested content. + * @member {module:models/Suggestion} content_suggestions + */ + content_suggestions = undefined; + /** + * Returns the suggested custom suggestions. + * @member {module:models/Suggestion} custom_suggestions + */ + custom_suggestions = undefined; + /** + * Returns the suggested products. + * @member {module:models/Suggestion} product_suggestions + */ + product_suggestions = undefined; + /** + * The query phrase to search for. + * @member {String} query + */ + query = undefined; + + + + + + + + } + +
@@ -140,7 +163,7 @@

Source: models/SuggestionResult.js


diff --git a/docs/models_TermFilter.js.html b/docs/models_TermFilter.js.html index 44edbbf..bfa53a4 100644 --- a/docs/models_TermFilter.js.html +++ b/docs/models_TermFilter.js.html @@ -27,15 +27,14 @@

Source: models/TermFilter.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/TermFilter.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TermFilter model module. * @module models/TermFilter -* @version 17.8 +* @version 20.4 */ export default class TermFilter { /** @@ -57,27 +62,18 @@

Source: models/TermFilter.js

* @alias module:models/TermFilter * @class * @param field {String} The filter field. - * @param operator {module:models/TermFilter.OperatorEnum} The operator to compare - * the field's values with the given ones. + * @param operator {module:models/TermFilter.OperatorEnum} The operator to compare the field's values with the given ones. */ + constructor(field, operator) { - /** - * The filter field. - * @member {String} field - */ - this.field = field - /** - * The operator to compare the field's values with the given ones. - * @member {module:models/TermFilter.OperatorEnum} operator - */ - this.operator = operator - /** - * The filter values. - * @member {Array.<Object>} values - */ - this.values = undefined + + + + this.field = field; this.operator = operator + + } /** @@ -91,76 +87,105 @@

Source: models/TermFilter.js

if (data) { obj = obj || new TermFilter() + + + + if (data.hasOwnProperty('field')) { - obj['field'] = ApiClient.convertToType(data['field'], 'String') + obj.field = ApiClient.convertToType(data.field, 'String') } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [Object]) + obj.values = ApiClient.convertToType(data.values, [Object]) } } - return obj } -} - -/** -* Allowed values for the <code>operator</code> property. -* @enum {String} -* @readonly -*/ -TermFilter.OperatorEnum = { /** - * value: "is" - * @const - */ - is: 'is', - + * The filter field. + * @member {String} field + */ + field = undefined; /** - * value: "one_of" - * @const - */ - one_of: 'one_of', - + * The operator to compare the field's values with the given ones. + * @member {module:models/TermFilter.OperatorEnum} operator + */ + operator = undefined; /** - * value: "is_null" - * @const - */ - is_null: 'is_null', + * The filter values. + * @member {Array.<Object>} values + */ + values = undefined; + - /** - * value: "is_not_null" - * @const - */ - is_not_null: 'is_not_null', - /** - * value: "less" - * @const - */ - less: 'less', - /** - * value: "greater" - * @const - */ - greater: 'greater', - /** - * value: "not_in" - * @const - */ - not_in: 'not_in', /** - * value: "neq" - * @const - */ - neq: 'neq' + * Allowed values for the <code>operator</code> property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "is" + * @const + */ + is: 'is', + + /** + * value: "one_of" + * @const + */ + one_of: 'one_of', + + /** + * value: "is_null" + * @const + */ + is_null: 'is_null', + + /** + * value: "is_not_null" + * @const + */ + is_not_null: 'is_not_null', + + /** + * value: "less" + * @const + */ + less: 'less', + + /** + * value: "greater" + * @const + */ + greater: 'greater', + + /** + * value: "not_in" + * @const + */ + not_in: 'not_in', + + /** + * value: "neq" + * @const + */ + neq: 'neq' + }; + + + } + +
@@ -171,7 +196,7 @@

Source: models/TermFilter.js


diff --git a/docs/models_TermQuery.js.html b/docs/models_TermQuery.js.html index 65e8c8e..2455822 100644 --- a/docs/models_TermQuery.js.html +++ b/docs/models_TermQuery.js.html @@ -27,15 +27,14 @@

Source: models/TermQuery.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,44 +42,38 @@ 

Source: models/TermQuery.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TermQuery model module. * @module models/TermQuery -* @version 17.8 +* @version 20.4 */ export default class TermQuery { /** * Constructs a new <code>TermQuery</code>. - * A term query matches one (or more) value(s) against one (or more) document - * field(s). A document is considered a hit if one of the values matches (exactly) - * with at least one of the given fields. The operator \&quot;is\&quot; can only - * take one value, while \&quot;one_of\&quot; can take multiple. If multiple - * fields are specified, they are combined using the OR operator. + * A term query matches one (or more) value(s) against one (or more) document field(s). A document is considered a hit if one of the values matches (exactly) with at least one of the given fields. The operator \&quot;is\&quot; can only take one value, while \&quot;one_of\&quot; can take multiple values. If multiple fields are specified, they are combined using the OR operator. The * @alias module:models/TermQuery * @class * @param fields {Array.<String>} The document field(s), the value(s) are matched against, combined with the operator. * @param operator {module:models/TermQuery.OperatorEnum} Returns the operator to use for the term query. */ + constructor(fields, operator) { - /** - * The document field(s), the value(s) are matched against, combined with the operator. - * @member {Array.<String>} fields - */ - this.fields = fields - /** - * Returns the operator to use for the term query. - * @member {module:models/TermQuery.OperatorEnum} operator - */ - this.operator = operator - /** - * The values, the field(s) are compared against, combined with the operator. - * @member {Array.<Object>} values - */ - this.values = undefined + + + + this.fields = fields; this.operator = operator + + } /** @@ -94,76 +87,105 @@

Source: models/TermQuery.js

if (data) { obj = obj || new TermQuery() + + + + if (data.hasOwnProperty('fields')) { - obj['fields'] = ApiClient.convertToType(data['fields'], ['String']) + obj.fields = ApiClient.convertToType(data.fields, ['String']) } if (data.hasOwnProperty('operator')) { - obj['operator'] = ApiClient.convertToType(data['operator'], 'String') + obj.operator = ApiClient.convertToType(data.operator, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [Object]) + obj.values = ApiClient.convertToType(data.values, [Object]) } } - return obj } -} - -/** -* Allowed values for the <code>operator</code> property. -* @enum {String} -* @readonly -*/ -TermQuery.OperatorEnum = { /** - * value: "is" - * @const - */ - is: 'is', - + * The document field(s), the value(s) are matched against, combined with the operator. + * @member {Array.<String>} fields + */ + fields = undefined; /** - * value: "one_of" - * @const - */ - one_of: 'one_of', - + * Returns the operator to use for the term query. + * @member {module:models/TermQuery.OperatorEnum} operator + */ + operator = undefined; /** - * value: "is_null" - * @const - */ - is_null: 'is_null', + * The values, the field(s) are compared against, combined with the operator. + * @member {Array.<Object>} values + */ + values = undefined; + - /** - * value: "is_not_null" - * @const - */ - is_not_null: 'is_not_null', - /** - * value: "less" - * @const - */ - less: 'less', - /** - * value: "greater" - * @const - */ - greater: 'greater', - /** - * value: "not_in" - * @const - */ - not_in: 'not_in', /** - * value: "neq" - * @const - */ - neq: 'neq' + * Allowed values for the <code>operator</code> property. + * @enum {String} + * @readonly + */ + static OperatorEnum = { + + /** + * value: "is" + * @const + */ + is: 'is', + + /** + * value: "one_of" + * @const + */ + one_of: 'one_of', + + /** + * value: "is_null" + * @const + */ + is_null: 'is_null', + + /** + * value: "is_not_null" + * @const + */ + is_not_null: 'is_not_null', + + /** + * value: "less" + * @const + */ + less: 'less', + + /** + * value: "greater" + * @const + */ + greater: 'greater', + + /** + * value: "not_in" + * @const + */ + not_in: 'not_in', + + /** + * value: "neq" + * @const + */ + neq: 'neq' + }; + + + } + +
@@ -174,7 +196,7 @@

Source: models/TermQuery.js


diff --git a/docs/models_TextQuery.js.html b/docs/models_TextQuery.js.html index 6964751..a57b207 100644 --- a/docs/models_TextQuery.js.html +++ b/docs/models_TextQuery.js.html @@ -27,15 +27,14 @@

Source: models/TextQuery.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,21 +42,23 @@ 

Source: models/TextQuery.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The TextQuery model module. * @module models/TextQuery -* @version 17.8 +* @version 20.4 */ export default class TextQuery { /** * Constructs a new <code>TextQuery</code>. - * A text query is used to match some text (i.e. a search phrase possibly consisting of - * multiple terms) against one or multiple fields. In case multiple fields are provided, - * the phrase conceptually forms a logical OR over the fields. In this case, the terms - * of the phrase basically have to match within the text, that would result in - * concatenating all given fields. + * A text query is used to match some text (i.e. a search phrase possibly consisting of multiple terms) against one or multiple fields. In case multiple fields are provided, the phrase conceptually forms a logical OR over the fields. In this case, the terms of the phrase basically have to match within the text, that would result in concatenating all given fields. * @alias module:models/TextQuery * @class * @param fields {Array.<String>} The document fields the search phrase has to match against. @@ -65,16 +66,14 @@

Source: models/TextQuery.js

*/ constructor(fields, searchPhrase) { - /** - * The document fields the search phrase has to match against. - * @member {Array.<String>} fields - */ - this.fields = fields - /** - * A search phrase, which may consist of multiple terms. - * @member {String} search_phrase - */ - this.search_phrase = searchPhrase + + + + + + this.fields = fields; this.search_phrase = searchPhrase + + } /** @@ -88,16 +87,41 @@

Source: models/TextQuery.js

if (data) { obj = obj || new TextQuery() + + + + if (data.hasOwnProperty('fields')) { - obj['fields'] = ApiClient.convertToType(data['fields'], ['String']) + obj.fields = ApiClient.convertToType(data.fields, ['String']) } if (data.hasOwnProperty('search_phrase')) { - obj['search_phrase'] = ApiClient.convertToType(data['search_phrase'], 'String') + obj.search_phrase = ApiClient.convertToType(data.search_phrase, 'String') } } return obj } + + /** + * The document fields the search phrase has to match against. + * @member {Array.<String>} fields + */ + fields = undefined; + /** + * A search phrase, which may consist of multiple terms. + * @member {String} search_phrase + */ + search_phrase = undefined; + + + + + + + + } + +
@@ -108,7 +132,7 @@

Source: models/TextQuery.js


diff --git a/docs/models_TrustedSystemAuthRequest.js.html b/docs/models_TrustedSystemAuthRequest.js.html new file mode 100644 index 0000000..f1be795 --- /dev/null +++ b/docs/models_TrustedSystemAuthRequest.js.html @@ -0,0 +1,146 @@ + + + + + JSDoc: Source: models/TrustedSystemAuthRequest.js + + + + + + + + + + +
+ +

Source: models/TrustedSystemAuthRequest.js

+ + + + + + +
+
+
/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
+/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
+
+/**
+ * Shop API
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
+ *
+ * OpenAPI spec version: 20.4
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ *
+ */
+
+
+import ApiClient from '../ApiClient'
+
+
+
+
+
+/**
+* The TrustedSystemAuthRequest model module.
+* @module models/TrustedSystemAuthRequest
+* @version 20.4
+*/
+export default class TrustedSystemAuthRequest {
+    /**
+    * Constructs a new <code>TrustedSystemAuthRequest</code>.
+    * @alias module:models/TrustedSystemAuthRequest
+    * @class
+    * @param clientId {String} The client id of the shopping application to be encoded in the customer JWT.  This is not the same as the OAuth Client ID used to authenticate the API call.  The OAuth Client ID is the trusted/private one; this is the untrusted/public one.
+    * @param login {String} The customer's login.
+    */
+
+    constructor(clientId, login) {
+
+
+
+
+
+        this.client_id = clientId; this.login = login
+
+
+    }
+
+    /**
+    * Constructs a <code>TrustedSystemAuthRequest</code> from a plain JavaScript object, optionally creating a new instance.
+    * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
+    * @param {Object} data The plain JavaScript object bearing properties of interest.
+    * @param {module:models/TrustedSystemAuthRequest} obj Optional instance to populate.
+    * @return {module:models/TrustedSystemAuthRequest} The populated <code>TrustedSystemAuthRequest</code> instance.
+    */
+    static constructFromObject(data, obj) {
+        if (data) {
+            obj = obj || new TrustedSystemAuthRequest()
+
+
+
+
+
+            if (data.hasOwnProperty('client_id')) {
+                obj.client_id = ApiClient.convertToType(data.client_id, 'String')
+            }
+            if (data.hasOwnProperty('login')) {
+                obj.login = ApiClient.convertToType(data.login, 'String')
+            }
+        }
+        return obj
+    }
+
+    /**
+    * The client id of the shopping application to be encoded in the customer JWT.  This is not the same as the OAuth Client ID used to authenticate the API call.  The OAuth Client ID is the trusted/private one; this is the untrusted/public one.
+    * @member {String} client_id
+    */
+    client_id = undefined;
+    /**
+    * The customer's login.
+    * @member {String} login
+    */
+    login = undefined;
+
+
+
+
+
+
+
+
+}
+
+
+
+
+
+ + + + +
+ + + +
+ + + + + + + diff --git a/docs/models_Variant.js.html b/docs/models_Variant.js.html index 3c7e304..08c23e3 100644 --- a/docs/models_Variant.js.html +++ b/docs/models_Variant.js.html @@ -27,15 +27,14 @@

Source: models/Variant.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/Variant.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The Variant model module. * @module models/Variant -* @version 17.8 +* @version 20.4 */ export default class Variant { /** @@ -59,36 +64,16 @@

Source: models/Variant.js

* @param link {String} The URL addressing the product. * @param productId {String} The id (SKU) of the variant. */ + constructor(link, productId) { - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = link - - /** - * A flag indicating whether the variant is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the variant. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the variant. - * @member {String} product_id - */ - this.product_id = productId - - /** - * The actual variation attribute id - value pairs. - * @member {Object.<String, String>} variation_values - */ - this.variation_values = undefined + + + + + + this.link = link; this.product_id = productId + + } /** @@ -102,25 +87,65 @@

Source: models/Variant.js

if (data) { obj = obj || new Variant() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } return obj } + + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the variant is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the variant. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the variant. + * @member {String} product_id + */ + product_id = undefined; + /** + * The actual variation attribute id - value pairs. + * @member {Object.<String, String>} variation_values + */ + variation_values = undefined; + + + + + + + + } + +
@@ -131,7 +156,7 @@

Source: models/Variant.js


diff --git a/docs/models_VariationAttribute.js.html b/docs/models_VariationAttribute.js.html index c38b1a0..e9273f9 100644 --- a/docs/models_VariationAttribute.js.html +++ b/docs/models_VariationAttribute.js.html @@ -27,15 +27,14 @@

Source: models/VariationAttribute.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,36 +42,38 @@ 

Source: models/VariationAttribute.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import VariationAttributeValue from './VariationAttributeValue' + + + + /** * The VariationAttribute model module. * @module models/VariationAttribute -* @version 17.8 +* @version 20.4 */ export default class VariationAttribute { /** * Constructs a new <code>VariationAttribute</code>. + * Document representing a variation attribute. * @alias module:models/VariationAttribute * @class - * @param id {String} + * @param id {String} The id of the variation attribute. */ + constructor(id) { - /** - * @member {String} id - */ + + + + + this.id = id - /** - * @member {String} name - */ - this.name = undefined - /** - * @member {Array.<module:models/VariationAttributeValue>} values - */ - this.values = undefined } /** @@ -86,19 +87,49 @@

Source: models/VariationAttribute.js

if (data) { obj = obj || new VariationAttribute() + + + + if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String') + obj.id = ApiClient.convertToType(data.id, 'String') } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], [VariationAttributeValue]) + obj.values = ApiClient.convertToType(data.values, [VariationAttributeValue]) } } return obj } + + /** + * The id of the variation attribute. + * @member {String} id + */ + id = undefined; + /** + * The localized display name of the variation attribute. + * @member {String} name + */ + name = undefined; + /** + * The sorted array of variation values. This array can be empty. + * @member {Array.<module:models/VariationAttributeValue>} values + */ + values = undefined; + + + + + + + + } + +
@@ -109,7 +140,7 @@

Source: models/VariationAttribute.js


diff --git a/docs/models_VariationAttributeValue.js.html b/docs/models_VariationAttributeValue.js.html index 2633873..44afc12 100644 --- a/docs/models_VariationAttributeValue.js.html +++ b/docs/models_VariationAttributeValue.js.html @@ -27,15 +27,14 @@

Source: models/VariationAttributeValue.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,51 +42,38 @@ 

Source: models/VariationAttributeValue.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' import Image from './Image' + + + + /** * The VariationAttributeValue model module. * @module models/VariationAttributeValue -* @version 17.8 +* @version 20.4 */ export default class VariationAttributeValue { /** * Constructs a new <code>VariationAttributeValue</code>. + * Document representing a variation attribute value. * @alias module:models/VariationAttributeValue * @class - * @param value {String} + * @param value {String} The actual variation value. */ + constructor(value) { - /** - * @member {String} description - */ - this.description = undefined - - /** - * @member {module:models/Image} image - */ - this.image = undefined - - /** - * @member {module:models/Image} image_swatch - */ - this.image_swatch = undefined - - /** - * @member {String} name - */ - this.name = undefined - - /** - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * @member {String} value - */ + + + + + this.value = value + + } /** @@ -101,29 +87,73 @@

Source: models/VariationAttributeValue.js

if (data) { obj = obj || new VariationAttributeValue() + + + + if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String') + obj.description = ApiClient.convertToType(data.description, 'String') } if (data.hasOwnProperty('image')) { - obj['image'] = Image.constructFromObject(data['image']) + obj.image = Image.constructFromObject(data.image) } if (data.hasOwnProperty('image_swatch')) { - obj['image_swatch'] = Image.constructFromObject(data['image_swatch']) + obj.image_swatch = Image.constructFromObject(data.image_swatch) } if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String') + obj.name = ApiClient.convertToType(data.name, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String') + obj.value = ApiClient.convertToType(data.value, 'String') } } - return obj } + + /** + * The localized description of the variation value. + * @member {String} description + */ + description = undefined; + /** + * The first product image for the configured viewtype and this variation value. + * @member {module:models/Image} image + */ + image = undefined; + /** + * The first product image for the configured viewtype and this variation value. (typically the swatch image) + * @member {module:models/Image} image_swatch + */ + image_swatch = undefined; + /** + * The localized display name of the variation value. + * @member {String} name + */ + name = undefined; + /** + * A flag indicating whether at least one variant with this variation attribute value is available to sell. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The actual variation value. + * @member {String} value + */ + value = undefined; + + + + + + + + } + +
@@ -134,7 +164,7 @@

Source: models/VariationAttributeValue.js


diff --git a/docs/models_VariationGroup.js.html b/docs/models_VariationGroup.js.html index 76016d4..716595f 100644 --- a/docs/models_VariationGroup.js.html +++ b/docs/models_VariationGroup.js.html @@ -27,15 +27,14 @@

Source: models/VariationGroup.js

/* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
-/* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
+/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
 /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
 
-/* eslint-disable dot-notation */
 /**
  * Shop API
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
  *
- * OpenAPI spec version: 17.8
+ * OpenAPI spec version: 20.4
  *
  *
  * NOTE: This class is auto generated by the swagger code generator program.
@@ -43,12 +42,18 @@ 

Source: models/VariationGroup.js

* Do not edit the class manually. * */ + + import ApiClient from '../ApiClient' + + + + /** * The VariationGroup model module. * @module models/VariationGroup -* @version 17.8 +* @version 20.4 */ export default class VariationGroup { /** @@ -57,36 +62,16 @@

Source: models/VariationGroup.js

* @alias module:models/VariationGroup * @class */ + constructor() { - /** - * The URL addressing the product. - * @member {String} link - */ - this.link = undefined - - /** - * A flag indicating whether the variation group is orderable. - * @member {Boolean} orderable - */ - this.orderable = undefined - - /** - * The sales price of the variation group. - * @member {Number} price - */ - this.price = undefined - - /** - * The id (SKU) of the variation group. - * @member {String} product_id - */ - this.product_id = undefined - - /** - * The actual variation attribute id - value pairs. - * @member {Object.<String, String>} variation_values - */ - this.variation_values = undefined + + + + + + + + } /** @@ -100,26 +85,65 @@

Source: models/VariationGroup.js

if (data) { obj = obj || new VariationGroup() + + + + if (data.hasOwnProperty('link')) { - obj['link'] = ApiClient.convertToType(data['link'], 'String') + obj.link = ApiClient.convertToType(data.link, 'String') } if (data.hasOwnProperty('orderable')) { - obj['orderable'] = ApiClient.convertToType(data['orderable'], 'Boolean') + obj.orderable = ApiClient.convertToType(data.orderable, 'Boolean') } if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number') + obj.price = ApiClient.convertToType(data.price, 'Number') } if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String') + obj.product_id = ApiClient.convertToType(data.product_id, 'String') } if (data.hasOwnProperty('variation_values')) { - obj['variation_values'] = ApiClient.convertToType(data['variation_values'], {String: 'String'}) + obj.variation_values = ApiClient.convertToType(data.variation_values, {String: 'String'}) } } - return obj } + + /** + * The URL addressing the product. + * @member {String} link + */ + link = undefined; + /** + * A flag indicating whether the variation group is orderable. + * @member {Boolean} orderable + */ + orderable = undefined; + /** + * The sales price of the variation group. + * @member {Number} price + */ + price = undefined; + /** + * The id (SKU) of the variation group. + * @member {String} product_id + */ + product_id = undefined; + /** + * The actual variation attribute id - value pairs. + * @member {Object.<String, String>} variation_values + */ + variation_values = undefined; + + + + + + + + } + +
@@ -130,7 +154,7 @@

Source: models/VariationGroup.js


diff --git a/docs/module-ApiClient.html b/docs/module-ApiClient.html index 1a30dae..a58833c 100644 --- a/docs/module-ApiClient.html +++ b/docs/module-ApiClient.html @@ -269,7 +269,7 @@
Type:
Default Value:
    -
  • https://localhost/s/siteId/dw/shop/v17_8
  • +
  • https://localhost/s/siteId/dw/shop/v20_4
@@ -3604,7 +3604,7 @@
Returns:

diff --git a/docs/module-api_AiApi.html b/docs/module-api_AiApi.html new file mode 100644 index 0000000..9cd4bb0 --- /dev/null +++ b/docs/module-api_AiApi.html @@ -0,0 +1,962 @@ + + + + + JSDoc: Class: module:api/AiApi + + + + + + + + + + +
+ +

Class: module:api/AiApi

+ + + + + + +
+ +
+ +

module:api/AiApi(apiClient)

+ + +
+ +
+
+ + + + + + +

new module:api/AiApi(apiClient)

+ + + + + + +
+

Constructs a new AiApi.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
apiClient + + +module:ApiClient + + + +

Optional API client implementation to use, +default to module:ApiClient#instance if unspecified.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + +

Methods

+ + + + + + + +

getAiProductRecommendationsByID(recommenderName, opts) → {Promise}

+ + + + + + +
+

This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API. Returns product recommendations based on the given product or category IDs.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
recommenderName + + +String + + + +

The recommender name.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
products + + +Array.<String> + + + +
categories + + +Array.<String> + + + +
uuid + + +String + + + +
expand + + +Array.<String> + + + +
inventoryIds + + +Array.<String> + + + +
currency + + +String + + + +
allImages + + +Boolean + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + + + + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getAiProductRecommendationsByIDWithHttpInfo(recommenderName, opts) → {Promise}

+ + + + + + +
+

This is a beta feature that has been canceled. A future release will include the ability to obtain product recommendations by making direct calls to the Commerce Cloud Einstein API. Returns product recommendations based on the given product or category IDs.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
recommenderName + + +String + + + +

The recommender name.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
products + + +Array.<String> + + + +
categories + + +Array.<String> + + + +
uuid + + +String + + + +
expand + + +Array.<String> + + + +
inventoryIds + + +Array.<String> + + + +
currency + + +String + + + +
allImages + + +Boolean + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/ProductRecommendationsResult and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-api_BasketsApi.html b/docs/module-api_BasketsApi.html index 1e79cfb..7c4f333 100644 --- a/docs/module-api_BasketsApi.html +++ b/docs/module-api_BasketsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -300,7 +300,7 @@
Parameters:
Source:
@@ -482,7 +482,7 @@
Parameters:
Source:
@@ -664,7 +664,7 @@
Parameters:
Source:
@@ -722,7 +722,7 @@
Returns:
-

deleteBasketsByIDItemsByID(basketId, itemId) → {Promise}

+

deleteBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId) → {Promise}

@@ -730,7 +730,7 @@

-

Removes a product item from the basket.

+

Deletes a gift certificate item from an existing basket.

@@ -789,7 +789,7 @@
Parameters:
- itemId + giftCertificateItemId @@ -805,7 +805,7 @@
Parameters:
-

the id of the product item to be removed

+

the id of the gift certificate item to be removed

@@ -846,7 +846,7 @@
Parameters:
Source:
@@ -904,7 +904,7 @@
Returns:
-

deleteBasketsByIDItemsByIDWithHttpInfo(basketId, itemId) → {Promise}

+

deleteBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId) → {Promise}

@@ -912,7 +912,7 @@

-

Removes a product item from the basket.

+

Deletes a gift certificate item from an existing basket.

@@ -971,7 +971,7 @@
Parameters:
- itemId + giftCertificateItemId @@ -987,7 +987,7 @@
Parameters:
-

the id of the product item to be removed

+

the id of the gift certificate item to be removed

@@ -1028,7 +1028,7 @@
Parameters:
Source:
@@ -1086,7 +1086,7 @@
Returns:
-

deleteBasketsByIDNotesByID(basketId, noteId) → {Promise}

+

deleteBasketsByIDItemsByID(basketId, itemId) → {Promise}

@@ -1094,7 +1094,7 @@

-

Removes a basket note.

+

Removes a product item from the basket.

@@ -1153,7 +1153,7 @@
Parameters:
- noteId + itemId @@ -1169,7 +1169,7 @@
Parameters:
-

the id of the note to be removed

+

the id of the product item to be removed

@@ -1210,7 +1210,7 @@
Parameters:
Source:
@@ -1268,7 +1268,7 @@
Returns:
-

deleteBasketsByIDNotesByIDWithHttpInfo(basketId, noteId) → {Promise}

+

deleteBasketsByIDItemsByIDWithHttpInfo(basketId, itemId) → {Promise}

@@ -1276,7 +1276,7 @@

-

Removes a basket note.

+

Removes a product item from the basket.

@@ -1335,7 +1335,7 @@
Parameters:
- noteId + itemId @@ -1351,7 +1351,7 @@
Parameters:
-

the id of the note to be removed

+

the id of the product item to be removed

@@ -1392,7 +1392,7 @@
Parameters:
Source:
@@ -1450,7 +1450,7 @@
Returns:
-

deleteBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId) → {Promise}

+

deleteBasketsByIDNotesByID(basketId, noteId) → {Promise}

@@ -1458,7 +1458,7 @@

-

Removes a payment instrument of a basket.

+

Removes a basket note.

@@ -1510,14 +1510,14 @@
Parameters:
-

the basket id

+

the id of the basket to be modified

- paymentInstrumentId + noteId @@ -1533,7 +1533,7 @@
Parameters:
-

the id of the payment instrument to be removed

+

the id of the note to be removed

@@ -1574,7 +1574,7 @@
Parameters:
Source:
@@ -1632,7 +1632,7 @@
Returns:
-

deleteBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId) → {Promise}

+

deleteBasketsByIDNotesByIDWithHttpInfo(basketId, noteId) → {Promise}

@@ -1640,7 +1640,7 @@

-

Removes a payment instrument of a basket.

+

Removes a basket note.

@@ -1692,14 +1692,14 @@
Parameters:
-

the basket id

+

the id of the basket to be modified

- paymentInstrumentId + noteId @@ -1715,7 +1715,7 @@
Parameters:
-

the id of the payment instrument to be removed

+

the id of the note to be removed

@@ -1756,7 +1756,7 @@
Parameters:
Source:
@@ -1814,7 +1814,7 @@
Returns:
-

deleteBasketsByIDShipmentsByID(basketId, shipmentId) → {Promise}

+

deleteBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId) → {Promise}

@@ -1822,7 +1822,7 @@

-

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

+

Removes a payment instrument of a basket.

@@ -1874,14 +1874,14 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

- shipmentId + paymentInstrumentId @@ -1897,7 +1897,7 @@
Parameters:
-

the id of the shipment to be deleted

+

the id of the payment instrument to be removed

@@ -1938,7 +1938,7 @@
Parameters:
Source:
@@ -1996,7 +1996,7 @@
Returns:
-

deleteBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId) → {Promise}

+

deleteBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId) → {Promise}

@@ -2004,7 +2004,7 @@

-

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

+

Removes a payment instrument of a basket.

@@ -2056,14 +2056,14 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

- shipmentId + paymentInstrumentId @@ -2079,7 +2079,7 @@
Parameters:
-

the id of the shipment to be deleted

+

the id of the payment instrument to be removed

@@ -2120,7 +2120,7 @@
Parameters:
Source:
@@ -2178,7 +2178,7 @@
Returns:
-

deleteBasketsByIDWithHttpInfo(basketId) → {Promise}

+

deleteBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId) → {Promise}

@@ -2186,7 +2186,7 @@

-

Removes a basket.

+

Removes a custom manual price adjustment from the basket.

@@ -2238,7 +2238,30 @@
Parameters:
-

the id of the basket to be retrieved

+

the id of the basket to be modified

+ + + + + + + priceAdjustmentId + + + + + +String + + + + + + + + + +

the uuid of the adjustment to be removed

@@ -2279,7 +2302,7 @@
Parameters:
Source:
@@ -2308,7 +2331,7 @@
Returns:
-

a Promise, with an object containing HTTP response

+

a Promise, with data of type module:models/Basket

@@ -2337,7 +2360,7 @@
Returns:
-

getBasketsByID(basketId) → {Promise}

+

deleteBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId) → {Promise}

@@ -2345,7 +2368,7 @@

getBask
-

Gets a basket.

+

Removes a custom manual price adjustment from the basket.

@@ -2397,7 +2420,30 @@

Parameters:
-

the id of the basket to be retrieved

+

the id of the basket to be modified

+ + + + + + + priceAdjustmentId + + + + + +String + + + + + + + + + +

the uuid of the adjustment to be removed

@@ -2438,7 +2484,7 @@
Parameters:
Source:
@@ -2467,7 +2513,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -2496,7 +2542,7 @@
Returns:
-

getBasketsByIDNotes(basketId) → {Promise}

+

deleteBasketsByIDShipmentsByID(basketId, shipmentId) → {Promise}

@@ -2504,7 +2550,7 @@

ge
-

Retrieves notes for a basket.

+

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

@@ -2556,7 +2602,30 @@

Parameters:
-

The id of the basket for which you want to retrieve the notes.

+

the id of the basket to be modified

+ + + + + + + shipmentId + + + + + +String + + + + + + + + + +

the id of the shipment to be deleted

@@ -2597,7 +2666,7 @@
Parameters:
Source:
@@ -2626,7 +2695,7 @@
Returns:
-

a Promise, with data of type module:models/NotesResult

+

a Promise, with data of type module:models/Basket

@@ -2655,7 +2724,7 @@
Returns:
-

getBasketsByIDNotesWithHttpInfo(basketId) → {Promise}

+

deleteBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId) → {Promise}

@@ -2663,7 +2732,7 @@

-

Retrieves notes for a basket.

+

Removes a specified shipment and all associated product, gift certificate, shipping and price adjustment line items from a basket. It is not permissible to remove the default shipment.

@@ -2715,7 +2784,30 @@
Parameters:
-

The id of the basket for which you want to retrieve the notes.

+

the id of the basket to be modified

+ + + + + + + shipmentId + + + + + +String + + + + + + + + + +

the id of the shipment to be deleted

@@ -2756,7 +2848,7 @@
Parameters:
Source:
@@ -2785,7 +2877,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/NotesResult and HTTP response

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -2814,7 +2906,7 @@
Returns:
-

getBasketsByIDPaymentMethods(basketId) → {Promise}

+

deleteBasketsByIDWithHttpInfo(basketId) → {Promise}

@@ -2822,7 +2914,7 @@

-

Gets applicable payment methods for an existing basket considering the open payment amount only.

+

Removes a basket.

@@ -2874,7 +2966,7 @@
Parameters:
-

the basket id

+

the id of the basket to be retrieved

@@ -2915,7 +3007,7 @@
Parameters:
Source:
@@ -2944,7 +3036,7 @@
Returns:
-

a Promise, with data of type module:models/PaymentMethodResult

+

a Promise, with an object containing HTTP response

@@ -2973,7 +3065,7 @@
Returns:
-

getBasketsByIDPaymentMethodsWithHttpInfo(basketId) → {Promise}

+

getBasketsByID(basketId) → {Promise}

@@ -2981,7 +3073,7 @@

-

Gets applicable payment methods for an existing basket considering the open payment amount only.

+

Gets a basket.

@@ -3033,7 +3125,7 @@
Parameters:
-

the basket id

+

the id of the basket to be retrieved

@@ -3074,7 +3166,7 @@
Parameters:
Source:
@@ -3103,7 +3195,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/PaymentMethodResult and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -3132,7 +3224,7 @@
Returns:
-

getBasketsByIDShipmentsByIDShippingMethods(basketId, shipmentId) → {Promise}

+

getBasketsByIDApproachingDiscounts(basketId) → {Promise}

@@ -3140,7 +3232,7 @@

-

Gets the applicable shipping methods for a certain shipment of a basket.

+

Gets the approaching discounts of a basket

@@ -3192,30 +3284,7 @@
Parameters:
-

the id of the basket

- - - - - - - shipmentId - - - - - -String - - - - - - - - - -

the id of the shipment

+

The id of the basket to be checked.

@@ -3256,7 +3325,7 @@
Parameters:
Source:
@@ -3285,7 +3354,7 @@
Returns:
@@ -3314,7 +3383,7 @@
Returns:
-

getBasketsByIDShipmentsByIDShippingMethodsWithHttpInfo(basketId, shipmentId) → {Promise}

+

getBasketsByIDApproachingDiscountsWithHttpInfo(basketId) → {Promise}

@@ -3322,7 +3391,7 @@

-

Gets the applicable shipping methods for a certain shipment of a basket.

+

Gets the approaching discounts of a basket

@@ -3374,30 +3443,7 @@
Parameters:
-

the id of the basket

- - - - - - - shipmentId - - - - - -String - - - - - - - - - -

the id of the shipment

+

The id of the basket to be checked.

@@ -3438,7 +3484,7 @@
Parameters:
Source:
@@ -3467,7 +3513,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/ShippingMethodResult and HTTP response

+

a Promise, with an object containing data of type module:models/ApproachingDiscountResult and HTTP response

@@ -3496,7 +3542,7 @@
Returns:
-

getBasketsByIDWithHttpInfo(basketId) → {Promise}

+

getBasketsByIDNotes(basketId) → {Promise}

@@ -3504,7 +3550,7 @@

-

Gets a basket.

+

Retrieves notes for a basket.

@@ -3556,7 +3602,7 @@
Parameters:
-

the id of the basket to be retrieved

+

The id of the basket for which you want to retrieve the notes.

@@ -3597,7 +3643,7 @@
Parameters:
Source:
@@ -3626,7 +3672,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/NotesResult

@@ -3655,7 +3701,7 @@
Returns:
-

patchBasketsByID(basketId, body) → {Promise}

+

getBasketsByIDNotesWithHttpInfo(basketId) → {Promise}

@@ -3663,7 +3709,7 @@

patch
-

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

+

Retrieves notes for a basket.

@@ -3715,30 +3761,7 @@

Parameters:
-

the id of the basket to be modified

- - - - - - - body - - - - - -module:models/Basket - - - - - - - - - - +

The id of the basket for which you want to retrieve the notes.

@@ -3779,7 +3802,7 @@
Parameters:
Source:
@@ -3808,7 +3831,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/NotesResult and HTTP response

@@ -3837,7 +3860,7 @@
Returns:
-

patchBasketsByIDItemsByID(basketId, itemId, body) → {Promise}

+

getBasketsByIDPaymentMethods(basketId) → {Promise}

@@ -3845,20 +3868,7 @@

-

Updates an item in a basket. -The following values in the request body are considered by the server: -product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. -shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. -quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. -option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. -This is only possible if the product item is an option product. To change -option values a collection of option items to be changed need to be -provided in property option_items. Those option_items need to contain option_id and option_value_id. -The provided values must be valid for the option product that this product item represents. Otherwise -InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. -custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute -<CUSTOM_NAME> of ProductLineItem. The purpose of this value is to -add or change the value of a custom attribute defined for ProductLineItem.

+

Gets applicable payment methods for an existing basket considering the open payment amount only.

@@ -3910,53 +3920,7 @@
Parameters:
-

the id of the basket to be modified

- - - - - - - itemId - - - - - -String - - - - - - - - - -

the it of the item to be updated

- - - - - - - body - - - - - -module:models/ProductItem - - - - - - - - - - +

the basket id

@@ -3997,7 +3961,7 @@
Parameters:
Source:
@@ -4026,7 +3990,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with data of type module:models/PaymentMethodResult

@@ -4055,7 +4019,7 @@
Returns:
-

patchBasketsByIDItemsByIDWithHttpInfo(basketId, itemId, body) → {Promise}

+

getBasketsByIDPaymentMethodsWithHttpInfo(basketId) → {Promise}

@@ -4063,21 +4027,7 @@

-

Updates an item in a basket. -The following values in the request body are considered by the server: -product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. -shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. -quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, -the product item is removed. -option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. -This is only possible if the product item is an option product. -To change option values a collection of option items to be changed need to be -provided in property option_items. Those option_items need to contain option_id -and option_value_id. The provided values must be valid for the option product that -this product item represents. Otherwise InvalidProductOptionItemException or -InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a -value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. -The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem.

+

Gets applicable payment methods for an existing basket considering the open payment amount only.

@@ -4129,53 +4079,7 @@
Parameters:
-

the id of the basket to be modified

- - - - - - - itemId - - - - - -String - - - - - - - - - -

the it of the item to be updated

- - - - - - - body - - - - - -module:models/ProductItem - - - - - - - - - - +

the basket id

@@ -4216,7 +4120,7 @@
Parameters:
Source:
@@ -4245,7 +4149,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with an object containing data of type module:models/PaymentMethodResult and HTTP response

@@ -4274,7 +4178,7 @@
Returns:
-

patchBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId, body) → {Promise}

+

getBasketsByIDShipmentsByIDShippingMethods(basketId, shipmentId) → {Promise}

@@ -4282,10 +4186,7 @@

-

Updates a payment instrument of a basket. -Payment instruments are usually authorized after order creation, for example in a custom hook. The default -payment authorization process executes an authorization when a payment instrument is added to an order or -updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

+

Gets the applicable shipping methods for a certain shipment of a basket.

@@ -4337,14 +4238,14 @@
Parameters:
-

the basket id

+

the id of the basket

- paymentInstrumentId + shipmentId @@ -4360,30 +4261,7 @@
Parameters:
-

the id of the payment instrument to be updated

- - - - - - - body - - - - - -module:models/BasketPaymentInstrumentRequest - - - - - - - - - - +

the id of the shipment

@@ -4424,7 +4302,7 @@
Parameters:
Source:
@@ -4453,7 +4331,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with data of type module:models/ShippingMethodResult

@@ -4482,7 +4360,7 @@
Returns:
-

patchBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId, body) → {Promise}

+

getBasketsByIDShipmentsByIDShippingMethodsWithHttpInfo(basketId, shipmentId) → {Promise}

@@ -4490,11 +4368,7 @@

-

Updates a payment instrument of a basket. -Payment instruments are usually authorized after order creation, for example in a custom hook. The default -payment authorization process executes an authorization when a payment instrument is added to an order or -updated. -See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

+

Gets the applicable shipping methods for a certain shipment of a basket.

@@ -4546,14 +4420,14 @@
Parameters:
-

the basket id

+

the id of the basket

- paymentInstrumentId + shipmentId @@ -4569,30 +4443,7 @@
Parameters:
-

the id of the payment instrument to be updated

- - - - - - - body - - - - - -module:models/BasketPaymentInstrumentRequest - - - - - - - - - - +

the id of the shipment

@@ -4633,7 +4484,7 @@
Parameters:
Source:
@@ -4662,7 +4513,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with an object containing data of type module:models/ShippingMethodResult and HTTP response

@@ -4691,7 +4542,7 @@
Returns:
-

patchBasketsByIDShipmentsByID(basketId, shipmentId, body) → {Promise}

+

getBasketsByIDWithHttpInfo(basketId) → {Promise}

@@ -4699,11 +4550,7 @@

-

Updates a shipment for a basket. -The shipment is initialized with values provided in the body -document and can be updated with further data API calls. Considered from -the body are the following properties if specified the id the shipping address -the shipping method gift boolean flag gift message custom properties

+

Gets a basket.

@@ -4755,94 +4602,48 @@
Parameters:
-

the id of the basket to be modified

+

the id of the basket to be retrieved

+ + - - - shipmentId - - - - -String - - - - +
-

the id of the shipment to be modified

- + - - - body - + - - - -module:models/Shipment + + - - + - + - + - - + - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - +
Source:
@@ -4871,7 +4672,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -4900,7 +4701,7 @@
Returns:
-

patchBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId, body) → {Promise}

+

patchBasketsByID(basketId, body) → {Promise}

@@ -4908,11 +4709,7 @@

-

Updates a shipment for a basket. -The shipment is initialized with values provided in the body -document and can be updated with further data API calls. Considered from -the body are the following properties if specified -the id the shipping address the shipping method gift boolean flag gift message custom properties

+

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

@@ -4969,29 +4766,6 @@
Parameters:
- - - shipmentId - - - - - -String - - - - - - - - - -

the id of the shipment to be modified

- - - - body @@ -5000,7 +4774,7 @@
Parameters:
-module:models/Shipment +module:models/Basket @@ -5051,7 +4825,7 @@
Parameters:
Source:
@@ -5080,7 +4854,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -5109,7 +4883,7 @@
Returns:
-

patchBasketsByIDWithHttpInfo(basketId, body) → {Promise}

+

patchBasketsByIDGiftCertificateItemsByID(basketId, giftCertificateItemId, body) → {Promise}

@@ -5117,7 +4891,7 @@

-

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

+

Updates a gift certificate item of an existing basket.

@@ -5174,6 +4948,29 @@
Parameters:
+ + + giftCertificateItemId + + + + + +String + + + + + + + + + +

the id of the gift certificate item to be updated

+ + + + body @@ -5182,7 +4979,7 @@
Parameters:
-module:models/Basket +module:models/GiftCertificateItem @@ -5233,7 +5030,7 @@
Parameters:
Source:
@@ -5262,7 +5059,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -5291,7 +5088,7 @@
Returns:
-

postBaskets(opts) → {Promise}

+

patchBasketsByIDGiftCertificateItemsByIDWithHttpInfo(basketId, giftCertificateItemId, body) → {Promise}

@@ -5299,27 +5096,7 @@

postBasket
-

Creates a new basket. The created basket is initialized with default values. Data provided in the body document -will be populated into the created basket. It can be updated with further Shop API calls. -Considered values from the request body are: -customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address -shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items -coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates -payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} -Related resource means with which resource you can specify the same data after the basket creation. -Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to -/baskets/{basket_id}/items. -The resource supports JWT or OAuth tokens for authentication: -A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered -customer). In this case the resource creates a basket for this customer. -An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created -guest customer, and can later update the customer if desired. -The number of baskets which can be created per customer is limited. When a -basket is created it is said to be open. It remains open until either an order is created from it -using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication -method used: -When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be -updated by support)

+

Updates a gift certificate item of an existing basket.

@@ -5355,13 +5132,13 @@

Parameters:
- opts + basketId -Object +String @@ -5371,28 +5148,32 @@
Parameters:
-

Optional parameters

-
Properties
+

the id of the basket to be modified

+ + + + + + + giftCertificateItemId + + + + +String - - - - - - - + + - + - + - - - + + - @@ -5403,7 +5184,7 @@
Properties
NameTypeDescription

the id of the gift certificate item to be updated

-module:models/Basket +module:models/GiftCertificateItem @@ -5420,13 +5201,6 @@
Properties
- - - - - - - @@ -5461,7 +5235,7 @@
Properties
Source:
@@ -5490,7 +5264,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -5519,7 +5293,7 @@
Returns:
-

postBasketsByIDCoupons(basketId, body) → {Promise}

+

patchBasketsByIDItemsByID(basketId, itemId, body) → {Promise}

@@ -5527,7 +5301,7 @@

-

Adds a coupon to an existing basket.

+

Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem.

@@ -5579,7 +5353,30 @@

Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + itemId + + + + + +String + + + + + + + + + +

the it of the item to be updated

@@ -5592,7 +5389,7 @@
Parameters:
-module:models/CouponItem +module:models/ProductItem @@ -5643,7 +5440,7 @@
Parameters:
Source:
@@ -5701,7 +5498,7 @@
Returns:
-

postBasketsByIDCouponsWithHttpInfo(basketId, body) → {Promise}

+

patchBasketsByIDItemsByIDWithHttpInfo(basketId, itemId, body) → {Promise}

@@ -5709,7 +5506,7 @@

-

Adds a coupon to an existing basket.

+

Updates an item in a basket. The following values in the request body are considered by the server: product_id: a valid product id. The purpose of this value is to exchange a variation of a variation product. shipment_id: a valid shipment id. The purpose of this value is to move a product item to another shipment. quantity: a number between 0 and 999. The purpose of this value is to change quantity of the product item. If quantity is 0, the product item is removed. option_items/option_value_id: a valid option value id. The purpose of this value is to exchange an option value for an option item of an option product. This is only possible if the product item is an option product. To change option values a collection of option items to be changed need to be provided in property option_items. Those option_items need to contain option_id and option_value_id. The provided values must be valid for the option product that this product item represents. Otherwise InvalidProductOptionItemException or InvalidProductOptionValueItemException will be thrown. custom properties c_<CUSTOM_NAME>: a value corresponding to the type defined for custom attribute <CUSTOM_NAME> of ProductLineItem. The purpose of this value is to add or change the value of a custom attribute defined for ProductLineItem.

@@ -5761,7 +5558,30 @@
Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + itemId + + + + + +String + + + + + + + + + +

the it of the item to be updated

@@ -5774,7 +5594,7 @@
Parameters:
-module:models/CouponItem +module:models/ProductItem @@ -5825,7 +5645,7 @@
Parameters:
Source:
@@ -5883,7 +5703,7 @@
Returns:
-

postBasketsByIDGiftCertificateItems(basketId, body) → {Promise}

+

patchBasketsByIDPaymentInstrumentsByID(basketId, paymentInstrumentId, body) → {Promise}

@@ -5891,7 +5711,7 @@

-

Adds a gift certificate item to an existing basket.

+

Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

@@ -5943,7 +5763,30 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

+ + + + + + + paymentInstrumentId + + + + + +String + + + + + + + + + +

the id of the payment instrument to be updated

@@ -5956,7 +5799,7 @@
Parameters:
-module:models/GiftCertificateItem +module:models/BasketPaymentInstrumentRequest @@ -6007,7 +5850,7 @@
Parameters:
Source:
@@ -6065,7 +5908,7 @@
Returns:
-

postBasketsByIDGiftCertificateItemsWithHttpInfo(basketId, body) → {Promise}

+

patchBasketsByIDPaymentInstrumentsByIDWithHttpInfo(basketId, paymentInstrumentId, body) → {Promise}

@@ -6073,7 +5916,7 @@

-

Adds a gift certificate item to an existing basket.

+

Updates a payment instrument of a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}

@@ -6125,7 +5968,30 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

+ + + + + + + paymentInstrumentId + + + + + +String + + + + + + + + + +

the id of the payment instrument to be updated

@@ -6138,7 +6004,7 @@
Parameters:
-module:models/GiftCertificateItem +module:models/BasketPaymentInstrumentRequest @@ -6189,7 +6055,7 @@
Parameters:
Source:
@@ -6247,7 +6113,7 @@
Returns:
-

postBasketsByIDItems(basketId, body) → {Promise}

+

patchBasketsByIDPriceAdjustmentsByID(basketId, priceAdjustmentId, body) → {Promise}

@@ -6255,27 +6121,7 @@

p
-

Adds new items to a basket. -The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. -Considered values from the request body, for each item are: -product_id: a valid product id. This is the id of the product to be added to the basket. If the -product is already in the basket, the API either increments the quantity of the existing product line item or -creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and -product bundles containing variation masters, the API creates a new product line item regardless of the site preference. -shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. -quantity: a number between 0.01 and 999. This is the quantity of the product to order. -inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. -bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the -bonus discount line item for which the added product is a selected bonus product. -option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. -This is only possible if the product item is an option -product. To set option values, you must specify a collection of option items in the option_items -property. These option items must contain option_id and option_value_id. Also, -the values you specify must be valid for the option product that this product item represents. -Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom -attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the -type of custom attribute defined for ProductLineItem.

+

Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory.

@@ -6327,7 +6173,30 @@

Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + priceAdjustmentId + + + + + +String + + + + + + + + + +

the uuid of the adjustment to be updated

@@ -6340,7 +6209,7 @@
Parameters:
-module:models/ProductItem +module:models/PriceAdjustment @@ -6391,7 +6260,7 @@
Parameters:
Source:
@@ -6449,7 +6318,7 @@
Returns:
-

postBasketsByIDItemsWithHttpInfo(basketId, body) → {Promise}

+

patchBasketsByIDPriceAdjustmentsByIDWithHttpInfo(basketId, priceAdjustmentId, body) → {Promise}

@@ -6457,28 +6326,7 @@

-

Adds new items to a basket. -The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. -Considered values from the request body, for each item are: -product_id: a valid product id. This is the id of the product to be added to the basket. If the -product is already in the basket, the API either increments the quantity of the existing product line item or -creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and -product bundles containing variation masters, the API creates a new product line item regardless of the site -preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. -quantity: a number between 0.01 and 999. This is the quantity of the product to order. -inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is -allocated. -bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the -bonus discount line item for which the added product is a selected bonus product. -option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. -This is only possible if the product item is an option -product. To set option values, you must specify a collection of option items in the option_items -property. These option items must contain option_id and option_value_id. Also, -the values you specify must be valid for the option product that this product item represents. Otherwise, the -server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom -attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the -type of custom attribute defined for ProductLineItem.

+

Updates a custom manual price adjustment on the basket. Only the following PATH values are considered for the update: discount, item_text, reason_code and custom properties; all other attributes are ignored. The discount type of a price adjustment cannot be updated and therefore, the value of the existing type must be passed. For an adjustment of type PERCENTAGE, the 'percentage' attribute is mandatory. For adjustments of type AMOUNT and FIXED_PRICE, the 'amount' attribute is mandatory.

@@ -6530,7 +6378,30 @@
Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + priceAdjustmentId + + + + + +String + + + + + + + + + +

the uuid of the adjustment to be updated

@@ -6543,7 +6414,7 @@
Parameters:
-module:models/ProductItem +module:models/PriceAdjustment @@ -6594,7 +6465,7 @@
Parameters:
Source:
@@ -6652,7 +6523,7 @@
Returns:
-

postBasketsByIDNotes(basketId, body) → {Promise}

+

patchBasketsByIDShipmentsByID(basketId, shipmentId, body) → {Promise}

@@ -6660,7 +6531,7 @@

p
-

Adds a note to an existing basket.

+

Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties

@@ -6712,7 +6583,30 @@

Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + shipmentId + + + + + +String + + + + + + + + + +

the id of the shipment to be modified

@@ -6725,7 +6619,7 @@
Parameters:
-module:models/Note +module:models/Shipment @@ -6776,7 +6670,7 @@
Parameters:
Source:
@@ -6834,7 +6728,7 @@
Returns:
-

postBasketsByIDNotesWithHttpInfo(basketId, body) → {Promise}

+

patchBasketsByIDShipmentsByIDWithHttpInfo(basketId, shipmentId, body) → {Promise}

@@ -6842,7 +6736,7 @@

-

Adds a note to an existing basket.

+

Updates a shipment for a basket. The shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified the id the shipping address the shipping method gift boolean flag gift message custom properties

@@ -6894,7 +6788,30 @@
Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

+ + + + + + + shipmentId + + + + + +String + + + + + + + + + +

the id of the shipment to be modified

@@ -6907,7 +6824,7 @@
Parameters:
-module:models/Note +module:models/Shipment @@ -6958,7 +6875,7 @@
Parameters:
Source:
@@ -7016,7 +6933,7 @@
Returns:
-

postBasketsByIDPaymentInstruments(basketId, body) → {Promise}

+

patchBasketsByIDWithHttpInfo(basketId, body) → {Promise}

@@ -7024,12 +6941,7 @@

-

Adds a payment instrument to a basket. -Payment instruments are usually authorized after order creation, for example in a custom hook. The default -payment authorization process executes an authorization when a payment instrument is added to an order or -updated. -See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. -NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

+

Updates a basket. Only the currency of the basket, source code, and the custom properties of the basket and of the shipping items will be considered.

@@ -7081,7 +6993,7 @@
Parameters:
-

the basket id

+

the id of the basket to be modified

@@ -7094,7 +7006,7 @@
Parameters:
-module:models/BasketPaymentInstrumentRequest +module:models/Basket @@ -7145,7 +7057,7 @@
Parameters:
Source:
@@ -7174,7 +7086,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -7203,7 +7115,7 @@
Returns:
-

postBasketsByIDPaymentInstrumentsWithHttpInfo(basketId, body) → {Promise}

+

postBaskets(opts) → {Promise}

@@ -7211,11 +7123,7 @@

-

Adds a payment instrument to a basket. -Payment instruments are usually authorized after order creation, for example in a custom hook. The default -payment authorization process executes an authorization when a payment instrument is added to an order or -updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. -NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

+

Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource.

@@ -7251,13 +7159,13 @@
Parameters:
- basketId + opts -String +Object @@ -7267,9 +7175,28 @@
Parameters:
-

the basket id

- +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + @@ -7280,7 +7207,7 @@
Parameters:
NameTypeDescription
-module:models/BasketPaymentInstrumentRequest +module:models/Basket @@ -7297,6 +7224,13 @@
Parameters:
+ + + + + + + @@ -7331,7 +7265,7 @@
Parameters:
Source:
@@ -7360,7 +7294,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -7389,7 +7323,7 @@
Returns:
-

postBasketsByIDShipments(basketId, body) → {Promise}

+

postBasketsByIDCoupons(basketId, body) → {Promise}

@@ -7397,16 +7331,7 @@

-

Creates a new shipment for a basket. -The created shipment is initialized with values provided in the body -document and can be updated with further data API calls. Considered from -the body are the following properties if specified: -the id -the shipping address -the shipping method -gift boolean flag -gift message -custom properties

+

Adds a coupon to an existing basket.

@@ -7458,7 +7383,7 @@
Parameters:
-

the id of the basket to be modified

+

The id of the basket to be modified.

@@ -7471,7 +7396,7 @@
Parameters:
-module:models/Shipment +module:models/CouponItem @@ -7522,7 +7447,7 @@
Parameters:
Source:
@@ -7580,7 +7505,7 @@
Returns:
-

postBasketsByIDShipmentsWithHttpInfo(basketId, body) → {Promise}

+

postBasketsByIDCouponsWithHttpInfo(basketId, body) → {Promise}

@@ -7588,16 +7513,7 @@

-

Creates a new shipment for a basket. -The created shipment is initialized with values provided in the body -document and can be updated with further data API calls. Considered from -the body are the following properties if specified: -the id -the shipping address -the shipping method -gift boolean flag -gift message -custom properties

+

Adds a coupon to an existing basket.

@@ -7649,7 +7565,7 @@
Parameters:
-

the id of the basket to be modified

+

The id of the basket to be modified.

@@ -7662,7 +7578,7 @@
Parameters:
-module:models/Shipment +module:models/CouponItem @@ -7713,7 +7629,7 @@
Parameters:
Source:
@@ -7771,7 +7687,7 @@
Returns:
-

postBasketsWithHttpInfo(opts) → {Promise}

+

postBasketsByIDGiftCertificateItems(basketId, body) → {Promise}

@@ -7779,28 +7695,7 @@

-

Creates a new basket. The created basket is initialized with default values. Data provided in the body document -will be populated into the created basket. It can be updated with further Shop API calls. -Considered values from the request body are: -customer information: PUT /baskets/{basket_id}/customer -billing address: PUT /baskets/{basket_id}/billing_address -shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments -product items: POST /baskets/{basket_id}/items -coupon items: POST /baskets/{basket_id}/coupons -gift certificate items: POST /baskets/{basket_id}/gift_certificates -payment method and card type: POST /baskets/{basket_id}/payment_instruments -custom properties: PATCH /baskets/{basket_id} -Related resource means with which resource you can specify the same data after the basket creation. -Identify the basket using the basket_id property, which -should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. -The resource supports JWT or OAuth tokens for authentication: -A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. -An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. -The number of baskets which can be created per customer is limited. When a -basket is created it is said to be open. It remains open until either an order is created from it -using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: -When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be -updated by support)

+

Adds a gift certificate item to an existing basket.

@@ -7836,13 +7731,13 @@
Parameters:
- opts + basketId -Object +String @@ -7852,28 +7747,9 @@
Parameters:
-

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - + + - @@ -7884,7 +7760,7 @@
Properties
NameTypeDescription

the id of the basket to be modified

-module:models/Basket +module:models/GiftCertificateItem @@ -7901,13 +7777,6 @@
Properties
- - - - - - - @@ -7942,7 +7811,7 @@
Properties
Source:
@@ -7971,7 +7840,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -8000,7 +7869,7 @@
Returns:
-

putBasketsByIDBillingAddress(basketId, opts) → {Promise}

+

postBasketsByIDGiftCertificateItemsWithHttpInfo(basketId, body) → {Promise}

@@ -8008,7 +7877,7 @@

-

Sets the billing address of a basket.

+

Adds a gift certificate item to an existing basket.

@@ -8060,20 +7929,20 @@
Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

- opts + body -Object +module:models/GiftCertificateItem @@ -8083,36 +7952,3159 @@
Parameters:
-

Optional parameters

-
Properties
- + + - - - - - - + + +
Name
- Type - - - Description - - - + +
+ - - - useAsShipping - + - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDItems(basketId, body) → {Promise}

+ + + + + + +
+

Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

body + + +module:models/ProductItem + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDItemsWithHttpInfo(basketId, body) → {Promise}

+ + + + + + +
+

Adds new items to a basket. The added items are associated with the specified shipment. If no shipment id is specified, the added items are associated with the default shipment. Considered values from the request body, for each item are: product_id: a valid product id. This is the id of the product to be added to the basket. If the product is already in the basket, the API either increments the quantity of the existing product line item or creates a new product line item, based on the site preference 'Add Product Behavior'. For option products and product bundles containing variation masters, the API creates a new product line item regardless of the site preference. shipment_id: a valid shipment id (optional). This is the id of the shipment in which the product item is created. quantity: a number between 0.01 and 999. This is the quantity of the product to order. inventory_id: a valid inventory id (optional). This is the id of the inventory from which the item is allocated. bonus_discount_line_item_id: a valid bonus discount line item id (optional). This is the id of the bonus discount line item for which the added product is a selected bonus product. option_items/option_value_id: a valid option value id. This is an option value for an option item of an option product. This is only possible if the product item is an option product. To set option values, you must specify a collection of option items in the option_items property. These option items must contain option_id and option_value_id. Also, the values you specify must be valid for the option product that this product item represents. Otherwise, the server throws an InvalidProductOptionItemException or an InvalidProductOptionValueItemException. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductLineItem. The value of this property must be valid for the type of custom attribute defined for ProductLineItem.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

body + + +module:models/ProductItem + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDNotes(basketId, body) → {Promise}

+ + + + + + +
+

Adds a note to an existing basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

body + + +module:models/Note + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDNotesWithHttpInfo(basketId, body) → {Promise}

+ + + + + + +
+

Adds a note to an existing basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

body + + +module:models/Note + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDPaymentInstruments(basketId, body) → {Promise}

+ + + + + + +
+

Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the basket id

body + + +module:models/BasketPaymentInstrumentRequest + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDPaymentInstrumentsWithHttpInfo(basketId, body) → {Promise}

+ + + + + + +
+

Adds a payment instrument to a basket. Payment instruments are usually authorized after order creation, for example in a custom hook. The default payment authorization process executes an authorization when a payment instrument is added to an order or updated. See POST /orders/{order_no}/payment_instruments and PATCH /orders/{order_no}/payment_instruments/{payment_instrument_id}. NOTE: If CREDIT_CARD is selected as the payment_method_id, it is mandatory to provide the property card_type.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the basket id

body + + +module:models/BasketPaymentInstrumentRequest + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDPriceAdjustments(basketId, body) → {Promise}

+ + + + + + +
+

Adds a custom manual price adjustment to the basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the id of the basket to be modified

body + + +module:models/PriceAdjustmentRequest + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDPriceAdjustmentsWithHttpInfo(basketId, body) → {Promise}

+ + + + + + +
+

Adds a custom manual price adjustment to the basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the id of the basket to be modified

body + + +module:models/PriceAdjustmentRequest + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDShipments(basketId, body) → {Promise}

+ + + + + + +
+

Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the id of the basket to be modified

body + + +module:models/Shipment + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsByIDShipmentsWithHttpInfo(basketId, body) → {Promise}

+ + + + + + +
+

Creates a new shipment for a basket. The created shipment is initialized with values provided in the body document and can be updated with further data API calls. Considered from the body are the following properties if specified: the id the shipping address the shipping method gift boolean flag gift message custom properties

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the id of the basket to be modified

body + + +module:models/Shipment + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsReference(body) → {Promise}

+ + + + + + +
+

Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/BasketReference + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsReferenceWithHttpInfo(body) → {Promise}

+ + + + + + +
+

Creates a new basket based on a basket reference. The returned basket will be a copy of the basket in the reference. The basket in the reference must be a basket of an anonymous customer and the provided customer_id in the reference must match the anonymous customer in the basket. In case customer_id not matching a BasketNotFoundException will be returned as fault. All personal data like payment instruments and coupons will not be copied over to the new basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/BasketReference + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postBasketsWithHttpInfo(opts) → {Promise}

+ + + + + + +
+

Creates a new basket. The created basket is initialized with default values. Data provided in the body document will be populated into the created basket. It can be updated with further Shop API calls. Considered values from the request body are: customer information: PUT /baskets/{basket_id}/customer billing address: PUT /baskets/{basket_id}/billing_address shipments including shipping address and shipping method: POST /baskets/{basket_id}/shipments product items: POST /baskets/{basket_id}/items coupon items: POST /baskets/{basket_id}/coupons gift certificate items: POST /baskets/{basket_id}/gift_certificates payment method and card type: POST /baskets/{basket_id}/payment_instruments custom properties: PATCH /baskets/{basket_id} Related resource means with which resource you can specify the same data after the basket creation. Identify the basket using the basket_id property, which should be integrated into the path of an update request, for example a POST to /baskets/{basket_id}/items. The resource supports JWT or OAuth tokens for authentication: A customer must provide a JWT, which specifies exactly one customer (it may be a guest or a registered customer). In this case the resource creates a basket for this customer. An agent must provide an OAuth token. The agent can use this resource to create a basket for a new created guest customer, and can later update the customer if desired. The number of baskets which can be created per customer is limited. When a basket is created it is said to be open. It remains open until either an order is created from it using a POST to resource /orders or it is deleted using a DELETE to resource /baskets/{basket_id}. The number of open baskets allowed depends on the authentication method used: When using JWT each customer can have just one open basket When using OAuth each customer can have up to 4 open baskets (this is a quota setting which can be updated by support) Custom properties in the form c_<CUSTOM_NAME> are supported. A custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for the Basket system object, and its value must be valid for that custom attribute. Other basket properties like the channel type or source code cannot be set with this resource.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/Basket + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putBasketsByIDAgent(basketId) → {Promise}

+ + + + + + +
+

Marks a basket as an agent basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the basket id

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putBasketsByIDAgentWithHttpInfo(basketId) → {Promise}

+ + + + + + +
+

Marks a basket as an agent basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

the basket id

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Basket and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putBasketsByIDBillingAddress(basketId, opts) → {Promise}

+ + + + + + +
+

Sets the billing address of a basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
useAsShipping + + +Boolean + + + +
customerAddressId + + +String + + + +
body + + +module:models/OrderAddress + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putBasketsByIDBillingAddressWithHttpInfo(basketId, opts) → {Promise}

+ + + + + + +
+

Sets the billing address of a basket.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -8809,7 +11729,95 @@
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
basketId + + +String + + + +

The id of the basket to be modified.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
useAsShipping Boolean @@ -8219,7 +11211,7 @@
Properties
Source:
@@ -8248,7 +11240,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -8277,7 +11269,7 @@
Returns:
-

putBasketsByIDBillingAddressWithHttpInfo(basketId, opts) → {Promise}

+

putBasketsByIDCustomer(basketId, body) → {Promise}

@@ -8285,7 +11277,7 @@

-

Sets the billing address of a basket.

+

Sets customer information for an existing basket.

@@ -8337,95 +11329,7 @@
Parameters:
-

The id of the basket to be modified.

opts - - -Object - - - -

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -8438,7 +11342,7 @@
Properties
NameTypeDescription
useAsShipping - - -Boolean - - - -
customerAddressId - - -String - - - -

the id of the basket to be modified

-module:models/OrderAddress +module:models/CustomerInfo @@ -8455,13 +11359,6 @@
Properties
-
- @@ -8496,7 +11393,7 @@
Properties
Source:
@@ -8525,7 +11422,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -8554,7 +11451,7 @@
Returns:
-

putBasketsByIDCustomer(basketId, body) → {Promise}

+

putBasketsByIDCustomerWithHttpInfo(basketId, body) → {Promise}

@@ -8678,7 +11575,7 @@
Parameters:
Source:
@@ -8707,7 +11604,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -8736,7 +11633,7 @@
Returns:
-

putBasketsByIDCustomerWithHttpInfo(basketId, body) → {Promise}

+

putBasketsByIDShipmentsByIDShippingAddress(basketId, shipmentId, body, opts) → {Promise}

@@ -8744,7 +11641,7 @@

-

Sets customer information for an existing basket.

+

Sets a shipping address of a specific shipment of a basket.

@@ -8796,7 +11693,30 @@
Parameters:
-

the id of the basket to be modified

The id of the basket to be modified.

shipmentId + + +String + + + +

The id of the shipment to be modified.

-module:models/CustomerInfo +module:models/OrderAddress + + + +
opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
useAsBilling + + +Boolean + + + +
customerAddressId + + +String @@ -8826,6 +11834,13 @@
Parameters:
+
+ @@ -8860,7 +11875,7 @@
Parameters:
Source:
@@ -8889,7 +11904,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Basket and HTTP response

+

a Promise, with data of type module:models/Basket

@@ -8918,7 +11933,7 @@
Returns:
-

putBasketsByIDShipmentsByIDShippingAddress(basketId, shipmentId, body, opts) → {Promise}

+

putBasketsByIDShipmentsByIDShippingAddressWithHttpInfo(basketId, shipmentId, body, opts) → {Promise}

@@ -9160,7 +12175,7 @@
Properties
Source:
@@ -9189,7 +12204,7 @@
Returns:
-

a Promise, with data of type module:models/Basket

+

a Promise, with an object containing data of type module:models/Basket and HTTP response

@@ -9218,7 +12233,7 @@
Returns:
-

putBasketsByIDShipmentsByIDShippingAddressWithHttpInfo(basketId, shipmentId, body, opts) → {Promise}

+

putBasketsByIDShipmentsByIDShippingMethod(basketId, shipmentId, body) → {Promise}

@@ -9226,7 +12241,7 @@

-

Sets a shipping address of a specific shipment of a basket.

+

Sets a shipping method to a specific shipment of a basket.

@@ -9278,7 +12293,7 @@
Parameters:
-

The id of the basket to be modified.

+

the id of the basket to be modified

@@ -9301,7 +12316,7 @@
Parameters:
-

The id of the shipment to be modified.

+

the id of the shipment to be modified

@@ -9314,7 +12329,7 @@
Parameters:
-module:models/OrderAddress +module:models/ShippingMethod @@ -9328,28 +12343,122 @@
Parameters:
+ + - - - opts - - - - -Object - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Basket

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + -

Optional parameters

-
Properties
- + + + +

putBasketsByIDShipmentsByIDShippingMethodWithHttpInfo(basketId, shipmentId, body) → {Promise}

+ + + + + + +
+

Sets a shipping method to a specific shipment of a basket.

+
+ + + + + + + + + +
Parameters:
+ @@ -9373,13 +12482,13 @@
Properties
- + + - + + - -
useAsBillingbasketId -Boolean +String @@ -9389,14 +12498,14 @@
Properties
-

the id of the basket to be modified

customerAddressIdshipmentId @@ -9412,14 +12521,30 @@
Properties
-

the id of the shipment to be modified

+ + + body + + + + + +module:models/ShippingMethod + + + + + + + + + @@ -9460,7 +12585,7 @@
Properties
Source:
@@ -9518,7 +12643,7 @@
Returns:
-

putBasketsByIDShipmentsByIDShippingMethod(basketId, shipmentId, body) → {Promise}

+

putBasketsByIDStorefront(basketId, opts) → {Promise}

@@ -9526,7 +12651,7 @@

-

Sets a shipping method to a specific shipment of a basket.

+

Marks a basket as storefront basket.

@@ -9578,20 +12703,20 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

- shipmentId + opts -String +Object @@ -9601,20 +12726,39 @@
Parameters:
-

the id of the shipment to be modified

- +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + - +
NameTypeDescription
bodyexchange -module:models/ShippingMethod +Boolean @@ -9631,6 +12775,13 @@
Parameters:
+ + + + + + + @@ -9665,7 +12816,7 @@
Parameters:
Source:
@@ -9723,7 +12874,7 @@
Returns:
-

putBasketsByIDShipmentsByIDShippingMethodWithHttpInfo(basketId, shipmentId, body) → {Promise}

+

putBasketsByIDStorefrontWithHttpInfo(basketId, opts) → {Promise}

@@ -9731,7 +12882,7 @@

-

Sets a shipping method to a specific shipment of a basket.

+

Marks a basket as storefront basket.

@@ -9783,20 +12934,20 @@
Parameters:
-

the id of the basket to be modified

+

the basket id

- shipmentId + opts -String +Object @@ -9806,20 +12957,39 @@
Parameters:
-

the id of the shipment to be modified

- +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + - +
NameTypeDescription
bodyexchange -module:models/ShippingMethod +Boolean @@ -9836,6 +13006,13 @@
Parameters:
+ + + + + + + @@ -9870,7 +13047,7 @@
Parameters:
Source:
@@ -9938,7 +13115,7 @@
Returns:

diff --git a/docs/module-api_CategoriesApi.html b/docs/module-api_CategoriesApi.html index a83b127..b5c964e 100644 --- a/docs/module-api_CategoriesApi.html +++ b/docs/module-api_CategoriesApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,9 +207,7 @@

getC
-

When you use the URL template below, the server returns a category identified by its id; by default, the server -also returns the first level of subcategories, but you can specify another level by setting the levels -parameter. The server only returns online categories.

+

When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories.

@@ -397,7 +395,7 @@

Properties
Source:
@@ -647,7 +645,7 @@
Properties
Source:
@@ -897,7 +895,7 @@
Properties
Source:
@@ -963,9 +961,7 @@

-

When you use the URL template below, the server returns a category identified by its id; by default, the server -also returns the first level of subcategories, but you can specify another level by setting the levels -parameter. The server only returns online categories.

+

When you use the URL template below, the server returns a category identified by its id; by default, the server also returns the first level of subcategories, but you can specify another level by setting the levels parameter. The server only returns online categories.

@@ -1153,7 +1149,7 @@
Properties
Source:
@@ -1221,7 +1217,7 @@
Returns:

diff --git a/docs/module-api_ContentApi.html b/docs/module-api_ContentApi.html index 1bc355b..7871f39 100644 --- a/docs/module-api_ContentApi.html +++ b/docs/module-api_ContentApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,9 +207,7 @@

getCont
-

To access a content asset, you construct a URL using the template shown below. This template requires you to -specify a content asset id. In response, the server returns a corresponding content asset document. Only content -assets, which are marked as online are returned. An assignment to a folder is not necessary.

+

To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary.

@@ -374,7 +372,7 @@

Properties
Source:
@@ -601,7 +599,7 @@
Properties
Source:
@@ -828,7 +826,7 @@
Properties
Source:
@@ -894,9 +892,7 @@

-

To access a content asset, you construct a URL using the template shown below. This template requires you to -specify a content asset id. In response, the server returns a corresponding content asset document. Only content -assets, which are marked as online are returned. An assignment to a folder is not necessary.

+

To access a content asset, you construct a URL using the template shown below. This template requires you to specify a content asset id. In response, the server returns a corresponding content asset document. Only content assets, which are marked as online are returned. An assignment to a folder is not necessary.

@@ -1061,7 +1057,7 @@
Properties
Source:
@@ -1129,7 +1125,7 @@
Returns:

diff --git a/docs/module-api_ContentSearchApi.html b/docs/module-api_ContentSearchApi.html index f9c581c..a960bda 100644 --- a/docs/module-api_ContentSearchApi.html +++ b/docs/module-api_ContentSearchApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -324,14 +324,7 @@
Properties
-

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The -following system refinement attribute ids are supported: -fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.

+

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.

@@ -354,11 +347,7 @@
Properties
-

Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are -separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for -ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select -your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting -Attributes.

+

Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting Attributes.

@@ -475,7 +464,7 @@
Properties
Source:
@@ -658,14 +647,7 @@
Properties
-

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The -following system refinement attribute ids are supported: -fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.

+

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=foo=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementType=type1|type2|type3. The following system refinement attribute ids are supported: fdid: Allows to refine per single content folder id. Multiple folder ids are not supported.

@@ -688,11 +670,7 @@
Properties
-

Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are -separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for -ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select -your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting -Attributes.

+

Parameter that represents a sorting attribute/value(s) pair. Sorting attribute id and value are separated by '='. The value describes the sort direction. Possible values are 'asc' and 'desc', for ascending or descending sort direction. I.e. sort=c_myAttribute=desc. Precondition: You have to select your sorting attributes in Business Manager > YourSite > Search Indexes > Content Index > Sorting Attributes.

@@ -809,7 +787,7 @@
Properties
Source:
@@ -877,7 +855,7 @@
Returns:

diff --git a/docs/module-api_CustomObjectsApi.html b/docs/module-api_CustomObjectsApi.html index 7add968..8fb258c 100644 --- a/docs/module-api_CustomObjectsApi.html +++ b/docs/module-api_CustomObjectsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -323,7 +323,7 @@
Parameters:
Source:
@@ -505,7 +505,7 @@
Parameters:
Source:
@@ -573,7 +573,7 @@
Returns:

diff --git a/docs/module-api_CustomersApi.html b/docs/module-api_CustomersApi.html index 9c83c7a..2d4a89c 100644 --- a/docs/module-api_CustomersApi.html +++ b/docs/module-api_CustomersApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -301,7 +301,7 @@
Properties
-

the JWT token

+

the JWT

@@ -349,7 +349,7 @@
Properties
Source:
@@ -509,7 +509,7 @@
Properties
-

the JWT token

+

the JWT

@@ -557,7 +557,7 @@
Properties
Source:
@@ -739,7 +739,7 @@
Parameters:
Source:
@@ -921,7 +921,7 @@
Parameters:
Source:
@@ -1103,7 +1103,7 @@
Parameters:
Source:
@@ -1285,7 +1285,7 @@
Parameters:
Source:
@@ -1467,7 +1467,7 @@
Parameters:
Source:
@@ -1672,7 +1672,7 @@
Parameters:
Source:
@@ -1877,7 +1877,7 @@
Parameters:
Source:
@@ -2059,7 +2059,7 @@
Parameters:
Source:
@@ -2290,7 +2290,7 @@
Properties
Source:
@@ -2356,11 +2356,7 @@

-

Returns a sorted pageable list of all customer addresses in the address book. The default -page size is 10 customer addresses. The addresses are sorted so that the preferred -address is always sorted first. The remaining addresses are sorted alphabetically by ID. -When the customer cannot be found CustomerNotFoundException is thrown in a case of an -agent but an empty result list is returned in a case of JWT.

+

Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT.

@@ -2548,7 +2544,7 @@
Properties
Source:
@@ -2730,7 +2726,7 @@
Parameters:
Source:
@@ -2912,7 +2908,7 @@
Parameters:
Source:
@@ -2978,11 +2974,7 @@

-

Returns a sorted pageable list of all customer addresses in the address book. The default page -size is 10 customer addresses. The addresses are sorted so that the preferred address is -always sorted first. The remaining addresses are sorted alphabetically by ID. -When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent -but an empty result list is returned in a case of JWT.

+

Returns a sorted pageable list of all customer addresses in the address book. The default page size is 10 customer addresses. The addresses are sorted so that the preferred address is always sorted first. The remaining addresses are sorted alphabetically by ID. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT.

@@ -3170,7 +3162,7 @@
Properties
Source:
@@ -3329,7 +3321,7 @@
Parameters:
Source:
@@ -3488,7 +3480,7 @@
Parameters:
Source:
@@ -3834,7 +3826,7 @@
Properties
Source:
@@ -4180,7 +4172,7 @@
Properties
Source:
@@ -4246,10 +4238,7 @@

-

Gets customer payment instruments for an customer. Can be limited to a specific payment -method by providing query parameter payment_method_id. -When the customer cannot be found CustomerNotFoundException is thrown in a case of an -agent but an empty result list is returned in a case of JWT.

+

Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT.

@@ -4414,7 +4403,7 @@
Properties
Source:
@@ -4596,7 +4585,7 @@
Parameters:
Source:
@@ -4778,7 +4767,7 @@
Parameters:
Source:
@@ -4844,10 +4833,7 @@

-

Gets customer payment instruments for an customer. Can be limited to a specific payment -method by providing query parameter payment_method_id. -When the customer cannot be found CustomerNotFoundException is thrown in a case of an -agent but an empty result list is returned in a case of JWT.

+

Gets customer payment instruments for an customer. Can be limited to a specific payment method by providing query parameter payment_method_id. When the customer cannot be found CustomerNotFoundException is thrown in a case of an agent but an empty result list is returned in a case of JWT.

@@ -5012,7 +4998,7 @@
Properties
Source:
@@ -5243,7 +5229,7 @@
Properties
Source:
@@ -5497,7 +5483,7 @@
Properties
Source:
@@ -5797,7 +5783,7 @@
Properties
Source:
@@ -6074,7 +6060,7 @@
Properties
Source:
@@ -6132,7 +6118,7 @@
Returns:
-

getCustomersByIDProductListsByIDItemsByIDWithHttpInfo(customerId, listId, itemId, opts) → {Promise}

+

getCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId) → {Promise}

@@ -6140,7 +6126,7 @@

-

Returns an item of a customer product list.

+

Returns a list of all purchases of an item from a customer's product list.

@@ -6192,7 +6178,7 @@
Parameters:
-

The id of the customer to retrieve the product list items for.

+

The id of the customer to retrieve the product list item purchases for.

@@ -6238,79 +6224,7 @@
Parameters:
-

The id of the product list item to retrieve.

- - - - - - - opts - - - - - -Object - - - - - - - - - -

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
expand - - -Array.<String> - - - -
- - +

The id of the product list item to retrieve from.

@@ -6351,7 +6265,7 @@
Properties
Source:
@@ -6380,7 +6294,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

+

a Promise, with data of type module:models/CustomerProductListItemPurchaseResult

@@ -6409,7 +6323,7 @@
Returns:
-

getCustomersByIDProductListsByIDItemsWithHttpInfo(customerId, listId, opts) → {Promise}

+

getCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId) → {Promise}

@@ -6417,7 +6331,7 @@

-

Returns a pageable list of all items of a customer's product list. The default page size is 10.

+

Returns a purchase of an item from a customer's product list.

@@ -6499,78 +6413,13 @@
Parameters:
- opts - - - - - -Object - - - - - - - - - -

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - - - -
NameTypeDescription
expand - - -Array.<String> - - - -
startitemId -Number +String @@ -6580,20 +6429,20 @@
Properties
-

The id of the product list item to retrieve.

countpurchaseId -Number +String @@ -6603,14 +6452,7 @@
Properties
-
- - +

The id of the product list item purchase to retrieve.

@@ -6651,7 +6493,7 @@
Properties
Source:
@@ -6680,7 +6522,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductListItemResult and HTTP response

+

a Promise, with data of type module:models/CustomerProductListItemPurchase

@@ -6709,7 +6551,7 @@
Returns:
-

getCustomersByIDProductListsByIDWithHttpInfo(customerId, listId, opts) → {Promise}

+

getCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId) → {Promise}

@@ -6717,7 +6559,7 @@

-

Returns a customer product list of the given customer.

+

Returns a purchase of an item from a customer's product list.

@@ -6769,7 +6611,7 @@
Parameters:
-

The customer id.

+

The id of the customer to retrieve the product list items for.

@@ -6792,20 +6634,20 @@
Parameters:
-

The product list id.

+

The id of the product list.

- opts + itemId -Object +String @@ -6815,39 +6657,20 @@
Parameters:
-

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - + + - - + - - - - -
NameTypeDescription

The id of the product list item to retrieve.

expandpurchaseId -Array.<String> +String @@ -6857,14 +6680,7 @@
Properties
-
- - +

The id of the product list item purchase to retrieve.

@@ -6905,7 +6721,7 @@
Properties
Source:
@@ -6934,7 +6750,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerProductListItemPurchase and HTTP response

@@ -6963,7 +6779,7 @@
Returns:
-

getCustomersByIDProductListsWithHttpInfo(customerId, opts) → {Promise}

+

getCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId) → {Promise}

@@ -6971,7 +6787,7 @@

-

Returns all customer product lists.

+

Returns a list of all purchases of an item from a customer's product list.

@@ -7023,20 +6839,20 @@
Parameters:
-

The customer id.

+

The id of the customer to retrieve the product list item purchases for.

- opts + listId -Object +String @@ -7046,39 +6862,20 @@
Parameters:
-

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - + + - - + - - - - -
NameTypeDescription

The id of the product list.

expanditemId -Array.<String> +String @@ -7088,14 +6885,7 @@
Properties
-
- - +

The id of the product list item to retrieve from.

@@ -7136,7 +6926,7 @@
Properties
Source:
@@ -7165,7 +6955,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductListResult and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerProductListItemPurchaseResult and HTTP response

@@ -7194,7 +6984,7 @@
Returns:
-

getCustomersByIDWithHttpInfo(customerId, opts) → {Promise}

+

getCustomersByIDProductListsByIDItemsByIDWithHttpInfo(customerId, listId, itemId, opts) → {Promise}

@@ -7202,7 +6992,7 @@

-

Gets a customer.

+

Returns an item of a customer product list.

@@ -7254,7 +7044,53 @@
Parameters:
-

The customer id

+

The id of the customer to retrieve the product list items for.

+ + + + + + + listId + + + + + +String + + + + + + + + + +

The id of the product list.

+ + + + + + + itemId + + + + + +String + + + + + + + + + +

The id of the product list item to retrieve.

@@ -7367,7 +7203,7 @@
Properties
Source:
@@ -7396,7 +7232,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Customer and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

@@ -7425,7 +7261,7 @@
Returns:
-

patchCustomersByID(customerId, body) → {Promise}

+

getCustomersByIDProductListsByIDItemsWithHttpInfo(customerId, listId, opts) → {Promise}

@@ -7433,7 +7269,7 @@

pat
-

Updates a customer.

+

Returns a pageable list of all items of a customer's product list. The default page size is 10.

@@ -7485,20 +7321,131 @@

Parameters:
-

the customer id

+

The id of the customer to retrieve the product list items for.

- body + listId -module:models/Customer +String + + + + + + + + + +

The id of the product list.

+ + + + + + + opts + + + + + +Object + + + + + + + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expand + + +Array.<String> + + + +
start + + +Number + + + +
count + + +Number @@ -7515,6 +7462,13 @@
Parameters:
+ + + + + + + @@ -7549,7 +7503,7 @@
Parameters:
Source:
@@ -7578,7 +7532,7 @@
Returns:
-

a Promise, with data of type module:models/Customer

+

a Promise, with an object containing data of type module:models/CustomerProductListItemResult and HTTP response

@@ -7607,7 +7561,7 @@
Returns:
-

patchCustomersByIDAddressesByID(customerId, addressName, body) → {Promise}

+

getCustomersByIDProductListsByIDWithHttpInfo(customerId, listId, opts) → {Promise}

@@ -7615,7 +7569,7 @@

-

Updates a customer's address by address name.

+

Returns a customer product list of the given customer.

@@ -7667,14 +7621,14 @@
Parameters:
-

the id of the customer to update the address for

+

The customer id.

- addressName + listId @@ -7683,16 +7637,2828 @@
Parameters:
String - - + + + + + + + +

The product list id.

+ + + + + + + opts + + + + + +Object + + + + + + + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expand + + +Array.<String> + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getCustomersByIDProductListsWithHttpInfo(customerId, opts) → {Promise}

+ + + + + + +
+

Returns all customer product lists.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The customer id.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expand + + +Array.<String> + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerProductListResult and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getCustomersByIDWithHttpInfo(customerId, opts) → {Promise}

+ + + + + + +
+

Gets a customer.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The customer id

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expand + + +Array.<String> + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Customer and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByID(customerId, body) → {Promise}

+ + + + + + +
+

Updates a customer.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

the customer id

body + + +module:models/Customer + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Customer

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDAddressesByID(customerId, addressName, body) → {Promise}

+ + + + + + +
+

Updates a customer's address by address name.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

the id of the customer to update the address for

addressName + + +String + + + +

the name of the address to update

body + + +module:models/CustomerAddress + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/CustomerAddress

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDAddressesByIDWithHttpInfo(customerId, addressName, body) → {Promise}

+ + + + + + +
+

Updates a customer's address by address name.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

the id of the customer to update the address for

addressName + + +String + + + +

the name of the address to update

body + + +module:models/CustomerAddress + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerAddress and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByID(body, customerId, listId) → {Promise}

+ + + + + + +
+

Changes a product list. Changeable properties are the name, description and if the list is public.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/CustomerProductList + + + +
customerId + + +String + + + +

The customer id.

listId + + +String + + + +

The product list id.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/CustomerProductList

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByIDItemsByID(customerId, listId, itemId, body) → {Promise}

+ + + + + + +
+

Updates an item of a customer's product list. Considered values from the request body are: priority: This is the priority of the customer's product list item. public: This is the flag whether the customer's product list item is public. quantity: used for product item type only. This is the quantity of the customer's product list item. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The id of the owner of the product list.

listId + + +String + + + +

The id of the product list.

itemId + + +String + + + +

The id of the product list item to update.

body + + +module:models/CustomerProductListItem + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + + + + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId, listId, itemId, purchaseId, body) → {Promise}

+ + + + + + +
+

Updates a purchase of an item from a customer's product list. Considered values from the request body are: custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The id of the customer to retrieve the product list item purchases for.

listId + + +String + + + +

The id of the product list.

itemId + + +String + + + +

The id of the product list item to retrieve.

purchaseId + + +String + + + +

The id of the product list item purchase to retrieve.

body + + +module:models/CustomerProductListItemPurchase + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + + + + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByIDItemsByIDPurchasesByIDWithHttpInfo(customerId, listId, itemId, purchaseId, body) → {Promise}

+ + + + + + +
+

Updates a purchase of an item from a customer's product list. Considered values from the request body are: custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The id of the customer to retrieve the product list item purchases for.

listId + + +String + + + +

The id of the product list.

itemId + + +String + + + +

The id of the product list item to retrieve.

purchaseId + + +String + + + +

The id of the product list item purchase to retrieve.

body + + +module:models/CustomerProductListItemPurchase + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerProductListItemPurchase and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByIDItemsByIDWithHttpInfo(customerId, listId, itemId, body) → {Promise}

+ + + + + + +
+

Updates an item of a customer's product list. Considered values from the request body are: priority: This is the priority of the customer's product list item. public: This is the flag whether the customer's product list item is public. quantity: used for product item type only. This is the quantity of the customer's product list item. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The id of the owner of the product list.

listId + + +String + + + +

The id of the product list.

itemId + + +String + + + +

The id of the product list item to update.

body + + +module:models/CustomerProductListItem + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDProductListsByIDWithHttpInfo(body, customerId, listId) → {Promise}

+ + + + + + +
+

Changes a product list. Changeable properties are the name, description and if the list is public.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/CustomerProductList + + + +
customerId + + +String + + + +

The customer id.

listId + + +String + + + +

The product list id.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

patchCustomersByIDWithHttpInfo(customerId, body) → {Promise}

+ + + + + + +
+

Updates a customer.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

the customer id

body + + +module:models/Customer + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Customer and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

postCustomers(body) → {Promise}

+ + + + + + +
+

Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + - + - + - - + + + + @@ -7703,7 +10469,7 @@
Parameters:
- + + - + - + @@ -7959,7 +10751,7 @@
Parameters:
Source:
@@ -7988,7 +10780,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerAddress and HTTP response

+

a Promise, with data of type module:models/Customer

@@ -8017,7 +10809,7 @@
Returns:
-

patchCustomersByIDProductListsByID(body, customerId, listId) → {Promise}

+

postCustomersAuthTrustedsystem(body) → {Promise}

@@ -8025,7 +10817,7 @@

-

Changes a product list. Changeable properties are the name, description and if the list is public.

+

Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header.

@@ -8067,7 +10859,7 @@
Parameters:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameType

the name of the address to update

Description
-module:models/CustomerAddress +module:models/CustomerRegistration @@ -7754,7 +10520,7 @@
Parameters:
Source:
@@ -7783,7 +10549,7 @@
Returns:
-

a Promise, with data of type module:models/CustomerAddress

+

a Promise, with data of type module:models/Customer

@@ -7812,7 +10578,7 @@
Returns:
-

patchCustomersByIDAddressesByIDWithHttpInfo(customerId, addressName, body) → {Promise}

+

postCustomersAuth(body, opts) → {Promise}

@@ -7820,7 +10586,7 @@

-

Updates a customer's address by address name.

+

Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, &quot;last-visited&quot;). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can't be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, &quot;last-visited&quot;), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type &quot;credentials&quot;) or a guest customer requests it (type &quot;guest&quot;). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type &quot;refresh&quot;). See &quot;API Usage > JWT&quot; for more details on using JWT as an authentication mechanism.

@@ -7856,13 +10622,13 @@
Parameters:

customerIdbody -String +module:models/AuthRequest @@ -7872,20 +10638,20 @@
Parameters:
-

the id of the customer to update the address for

addressNameopts -String +Object @@ -7895,20 +10661,39 @@
Parameters:
-

the name of the address to update

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + - + + + + + + +
NameTypeDescription
bodyauthorization -module:models/CustomerAddress +String @@ -7918,7 +10703,14 @@
Parameters:
-

Authorization:Basic for type credentials Authorization:Bearer for type refresh

+ +
-module:models/CustomerProductList +module:models/TrustedSystemAuthRequest @@ -8081,52 +10873,6 @@
Parameters:
customerId - - -String - - - -

The customer id.

listId - - -String - - - -

The product list id.

@@ -8164,7 +10910,7 @@
Parameters:
Source:
@@ -8193,7 +10939,7 @@
Returns:
-

a Promise, with data of type module:models/CustomerProductList

+

a Promise, with data of type module:models/Customer

@@ -8222,7 +10968,7 @@
Returns:
-

patchCustomersByIDProductListsByIDItemsByID(customerId, listId, itemId, body) → {Promise}

+

postCustomersAuthTrustedsystemWithHttpInfo(body) → {Promise}

@@ -8230,13 +10976,7 @@

-

Updates an item of a customer's product list. Considered values from the request body are: -priority: This is the priority of the customer's product list item. -public: This is the flag whether the customer's product list item is public. -quantity: used for product item type only. This is the quantity of the customer's product list item. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a -custom attribute (<CUSTOM_NAME>) defined for ProductListItem. -The value of this property must be valid for the type of custom attribute defined for ProductListItem.

+

Obtain the JWTs for registered customers whose credentials are stored using a third party system. Accepts login_id and client_id Returns a customer object in the response body, and the JWT generated against the client_id in the response header.

@@ -8270,75 +11010,6 @@
Parameters:
- - - customerId - - - - - -String - - - - - - - - - -

The id of the owner of the product list.

- - - - - - - listId - - - - - -String - - - - - - - - - -

The id of the product list.

- - - - - - - itemId - - - - - -String - - - - - - - - - -

The id of the product list item to update.

- - - - body @@ -8347,7 +11018,7 @@
Parameters:
-module:models/CustomerProductListItem +module:models/TrustedSystemAuthRequest @@ -8398,7 +11069,7 @@
Parameters:
Source:
@@ -8427,7 +11098,7 @@
Returns:
-

a Promise, with data of type module:models/CustomerProductListItem

+

a Promise, with an object containing data of type module:models/Customer and HTTP response

@@ -8456,7 +11127,7 @@
Returns:
-

patchCustomersByIDProductListsByIDItemsByIDWithHttpInfo(customerId, listId, itemId, body) → {Promise}

+

postCustomersAuthWithHttpInfo(body, opts) → {Promise}

@@ -8464,13 +11135,7 @@

-

Updates an item of a customer's product list. Considered values from the request body are: -priority: This is the priority of the customer's product list item. -public: This is the flag whether the customer's product list item is public. -quantity: used for product item type only. This is the quantity of the customer's product list item. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a -custom attribute (<CUSTOM_NAME>) defined for ProductListItem. -The value of this property must be valid for the type of custom attribute defined for ProductListItem.

+

Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type session - authenticates the customer (anonymous or registered) based on the dwsid and dwsecuretoken cookies. It returns a token for a successfully authenticated customer, otherwise it throws an AuthenticationFailedException. Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. For a request of type credentials: Updates profile attributes for the customer (for example, &quot;last-visited&quot;). Handles the maximum number of failed login attempts. For a request of type session: The session and corresponding dwsecuretoken must be active and valid. An expired session can't be used. The dwsecuretoken cookie must have been used for at least one previous HTTPS request with the same dwsid cookie. Does not touch profile attributes for the registered customer (for example, &quot;last-visited&quot;), since this is not a real login. Returns different tokens for multiple requests with the same session id. Means, there should be only one call per session. About JWT The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token is created and returned to the client whenever a registered customer logs in (type &quot;credentials&quot;) or a guest customer requests it (type &quot;guest&quot;). The token is returned in the response header as Authorization: Bearer --token-- The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type &quot;refresh&quot;). See &quot;API Usage > JWT&quot; for more details on using JWT as an authentication mechanism.

@@ -8506,13 +11171,13 @@
Parameters:
- customerId + body -String +module:models/AuthRequest @@ -8522,20 +11187,20 @@
Parameters:
-

The id of the owner of the product list.

+ - listId + opts -String +Object @@ -8545,43 +11210,39 @@
Parameters:
-

The id of the product list.

- - - - - - - itemId - - - - +

Optional parameters

+
Properties
-String + + + + + + - - + - + - + - - + + + + - + + + + + + +
NameType

The id of the product list item to update.

Description
bodyauthorization -module:models/CustomerProductListItem +String @@ -8591,7 +11252,14 @@
Parameters:
-

Authorization:Basic for type credentials Authorization:Bearer for type refresh

+ + @@ -8632,7 +11300,7 @@
Parameters:
Source:
@@ -8661,7 +11329,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

+

a Promise, with an object containing data of type module:models/Customer and HTTP response

@@ -8690,7 +11358,7 @@
Returns:
-

patchCustomersByIDProductListsByIDWithHttpInfo(body, customerId, listId) → {Promise}

+

postCustomersByIDAddresses(customerId, body) → {Promise}

@@ -8698,7 +11366,7 @@

-

Changes a product list. Changeable properties are the name, description and if the list is public.

+

Creates a new address with the given name for the given customer.

@@ -8732,29 +11400,6 @@
Parameters:
- - - body - - - - - -module:models/CustomerProductList - - - - - - - - - - - - - - customerId @@ -8773,20 +11418,20 @@
Parameters:
-

The customer id.

+

the id of the customer to create the address for

- listId + body -String +module:models/CustomerAddress @@ -8796,7 +11441,7 @@
Parameters:
-

The product list id.

+ @@ -8837,7 +11482,7 @@
Parameters:
Source:
@@ -8866,7 +11511,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

+

a Promise, with data of type module:models/CustomerAddress

@@ -8895,7 +11540,7 @@
Returns:
-

patchCustomersByIDWithHttpInfo(customerId, body) → {Promise}

+

postCustomersByIDAddressesWithHttpInfo(customerId, body) → {Promise}

@@ -8903,7 +11548,7 @@

-

Updates a customer.

+

Creates a new address with the given name for the given customer.

@@ -8955,7 +11600,7 @@
Parameters:
-

the customer id

+

the id of the customer to create the address for

@@ -8968,7 +11613,7 @@
Parameters:
-module:models/Customer +module:models/CustomerAddress @@ -9019,7 +11664,7 @@
Parameters:
Source:
@@ -9048,7 +11693,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Customer and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerAddress and HTTP response

@@ -9077,7 +11722,7 @@
Returns:
-

postCustomers(body) → {Promise}

+

postCustomersByIDAuth(customerId) → {Promise}

@@ -9085,9 +11730,7 @@

postCust
-

Registers a customer. The mandatory data are the credentials and profile last name and email. -When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException -will be thrown. When using JWT the password is required.

+

Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more.

@@ -9123,13 +11766,13 @@

Parameters:
- body + customerId -module:models/CustomerRegistration +String @@ -9139,7 +11782,7 @@
Parameters:
- +

specifies the customer to act on behalf of

@@ -9180,7 +11823,7 @@
Parameters:
Source:
@@ -9238,7 +11881,7 @@
Returns:
-

postCustomersAuth(body, opts) → {Promise}

+

postCustomersByIDAuthWithHttpInfo(customerId) → {Promise}

@@ -9246,34 +11889,7 @@

post
-

Obtains a new JWT (JSON Web Token) for a guest or registered customer. Tokens are returned as a HTTP Authorization:Bearer response -header entry. These kinds of request are supported, as specified by the type: -Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. -Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an -AuthenticationFailedException. -Type session - authenticates the customer (anonymous or registered) -on base of dwsid and dwsecuretoken cookies. It returns a token for a -successfully authenticated customer, otherwise results in an -AuthenticationFailedException. -Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. -For a request of type credentials: -Updates profile attributes for the customer (for example, &quot;last-visited&quot;). -Handles the maximum number of failed login attempts. -For a request of type session: -Does not touch profile attributes for the registered customer (for example, &quot;last-visited&quot;), since this is not a real login. -Returns different tokens for multiple requests with the same session id. Means, there should be -only one call per session. -About JWT The token contains 3 sections: -the header section (specifies token type and algorithm used) -the payload section (contains customer information, client id, issue and expiration time) -finally the signature section records the token signature. -A token is created and returned to the client whenever a registered -customer logs in (type &quot;credentials&quot;) or a guest customer requests it (type &quot;guest&quot;). The token is returned in the response header as Authorization: Bearer --token-- -The client has to include the token in the request header as -Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests -without a token or which cannot be verified based on the token signature -or expiration time. A token nearing its expiration time should be exchanged for a new one (type &quot;refresh&quot;). -See &quot;API Usage > JWT&quot; for more details on using JWT as an authentication mechanism.

+

Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. The token is returned in the response header as Authorization: Bearer --token--. The client has to include the token in the request header as Authorization: Bearer --token-- in any follow up request, the agent will do on behalf of the customer. About the order on behalf token The token contains 3 sections: the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. A token nearing its expiration time should be exchanged for a new one by calling this resource once more.

@@ -9309,72 +11925,7 @@

Parameters:
- body - - - - - -module:models/AuthRequest - - - - - - - - - - - - - - - - - opts - - - - - -Object - - - - - - - - - -

Optional parameters

-
Properties
- - - - - - - - - - - - - - - - - - - - - - - - - + - - - - -
NameTypeDescription
authorizationcustomerId @@ -9390,14 +11941,7 @@
Properties
-

Authorization:Basic for type credentials Authorization:Bearer for type refresh

- - +

specifies the customer to act on behalf of

@@ -9438,7 +11982,7 @@
Properties
Source:
@@ -9467,7 +12011,7 @@
Returns:
-

a Promise, with data of type module:models/Customer

+

a Promise, with an object containing data of type module:models/Customer and HTTP response

@@ -9496,7 +12040,7 @@
Returns:
-

postCustomersAuthWithHttpInfo(body, opts) → {Promise}

+

postCustomersByIDPasswordReset(customerId) → {Promise}

@@ -9504,29 +12048,7 @@

-

Obtains a new JWT (JSON Web Token) for a guest or registered customer. -Tokens are returned as a HTTP Authorization:Bearer response header entry. These kinds of request are supported, as specified by the type: -Type guest - creates a new guest (non-authenticated) customer and returns a token for the customer. -Type credentials - authenticates credentials passed in the HTTP Authorization:Basic request header, returning a token for a successfully authenticated customer otherwise results in an -AuthenticationFailedException. -Type session - authenticates the customer (anonymous or registered) on base of dwsid and dwsecuretoken cookies. It returns -a token for a successfully authenticated customer, otherwise results in an -AuthenticationFailedException. -Type refresh - examines the token passed in the HTTP Authorization:Bearer request header and when valid returns a new token with an updated expiry time. -For a request of type credentials: -Updates profile attributes for the customer (for example, &quot;last-visited&quot;). Handles the maximum number of failed login attempts. -For a request of type session: -Does not touch profile attributes for the registered customer (for example, &quot;last-visited&quot;), since this is not a real login. Returns different tokens for multiple -requests with the same session id. Means, there should be only one call per session. -About JWT The token contains 3 sections: -the header section (specifies token type and algorithm used) -the payload section (contains customer information, client id, issue and expiration time) finally the signature section records the token signature. -A token is created and returned to the client whenever a registered customer logs in (type &quot;credentials&quot;) or a guest customer requests it (type &quot;guest&quot;). -The token is returned in the response header as Authorization: Bearer --token-- -The client has to include the token in the request header as -Authorization: Bearer --token-- in any follow up request. The server declines any follow up requests without a token or -which cannot be verified based on the token signature or expiration time. A token nearing its expiration time should be exchanged for a new one (type &quot;refresh&quot;). -See &quot;API Usage > JWT&quot; for more details on using JWT as an authentication mechanism.

+

Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email.

@@ -9562,13 +12084,13 @@
Parameters:
- body + customerId -module:models/AuthRequest +String @@ -9578,32 +12100,126 @@
Parameters:
- +

the id of the customer

+ + - - - opts - - + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + - -Object + + + + +

postCustomersByIDPasswordResetWithHttpInfo(customerId) → {Promise}

+ + + + + + +
+

Starts a password reset process. A password reset token is generated and passed together with the customer resolved by the id provided as path parameter to a afterPOST hook. The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to send a reset email.

+
+ + + - - - - -

Optional parameters

-
Properties
- + +
Parameters:
+ @@ -9627,7 +12243,7 @@
Properties
- + - - - - -
authorizationcustomerId @@ -9643,14 +12259,7 @@
Properties
-

Authorization:Basic for type credentials Authorization:Bearer for type refresh

- - +

the id of the customer

@@ -9691,7 +12300,7 @@
Properties
Source:
@@ -9720,7 +12329,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Customer and HTTP response

+

a Promise, with an object containing HTTP response

@@ -9749,7 +12358,7 @@
Returns:
-

postCustomersByIDAddresses(customerId, body) → {Promise}

+

postCustomersByIDPaymentInstruments(customerId, body) → {Promise}

@@ -9757,7 +12366,7 @@

-

Creates a new address with the given name for the given customer.

+

Adds a payment instrument to a customer information.

@@ -9809,7 +12418,7 @@
Parameters:
-

the id of the customer to create the address for

+

the id of the customer

@@ -9822,7 +12431,7 @@
Parameters:
-module:models/CustomerAddress +module:models/CustomerPaymentInstrumentRequest @@ -9873,7 +12482,7 @@
Parameters:
Source:
@@ -9902,7 +12511,7 @@
Returns:
@@ -9931,7 +12540,7 @@
Returns:
-

postCustomersByIDAddressesWithHttpInfo(customerId, body) → {Promise}

+

postCustomersByIDPaymentInstrumentsWithHttpInfo(customerId, body) → {Promise}

@@ -9939,7 +12548,7 @@

-

Creates a new address with the given name for the given customer.

+

Adds a payment instrument to a customer information.

@@ -9991,7 +12600,7 @@
Parameters:
-

the id of the customer to create the address for

+

the id of the customer

@@ -10004,7 +12613,7 @@
Parameters:
-module:models/CustomerAddress +module:models/CustomerPaymentInstrumentRequest @@ -10055,7 +12664,7 @@
Parameters:
Source:
@@ -10084,7 +12693,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerAddress and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerPaymentInstrument and HTTP response

@@ -10113,7 +12722,7 @@
Returns:
-

postCustomersByIDAuth(customerId) → {Promise}

+

postCustomersByIDProductLists(body, customerId) → {Promise}

@@ -10121,17 +12730,7 @@

-

Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer response header entry. -A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. -The token is returned in the response header as Authorization: Bearer --token--. -The client has to include the token in the request header as Authorization: Bearer --token-- -in any follow up request, the agent will do on behalf of the customer. -About the order on behalf token -The token contains 3 sections: -the header section (specifies token type and algorithm used) -the payload section (contains customer information, client id, issue and expiration time) -finally the signature section records the token signature. -A token nearing its expiration time should be exchanged for a new one by calling this resource once more.

+

Creates a customer product list.

@@ -10165,6 +12764,29 @@

Parameters:
+ + + body + + + + + +module:models/CustomerProductList + + + + + + + + + + + + + + customerId @@ -10183,7 +12805,7 @@
Parameters:
-

specifies the customer to act on behalf of

+

The customer id.

@@ -10224,7 +12846,7 @@
Parameters:
Source:
@@ -10253,7 +12875,7 @@
Returns:
-

a Promise, with data of type module:models/Customer

+

a Promise, with data of type module:models/CustomerProductList

@@ -10282,7 +12904,7 @@
Returns:
-

postCustomersByIDAuthWithHttpInfo(customerId) → {Promise}

+

postCustomersByIDProductListsByIDItems(customerId, listId, body) → {Promise}

@@ -10290,17 +12912,7 @@

-

Obtains a new agent on behalf token for a registered customer. Token is returned as a HTTP Authorization:Bearer -response header entry. -A token is created and returned to the client whenever an agent with Create_Order_On_Behalf_Of permission calls the resource for a registered customer. -The token is returned in the response header as Authorization: Bearer --token--. -The client has to include the token in the request header as Authorization: Bearer --token-- -in any follow up request, the agent will do on behalf of the customer. -About the order on behalf token -The token contains 3 sections: -the header section (specifies token type and algorithm used) the payload section (contains customer information, client id, issue and expiration time) -finally the signature section records the token signature. -A token nearing its expiration time should be exchanged for a new one by calling this resource once more.

+

Adds an item to the customer's product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. priority: This is the priority of the item to be added to the customer's product list. public: This is the flag whether the item to be added to the customer's product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer's product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem.

@@ -10352,7 +12964,53 @@
Parameters:
-

specifies the customer to act on behalf of

+

The id of the customer - owner of the product list.

+ + + + + + + listId + + + + + +String + + + + + + + + + +

The id of the product list

+ + + + + + + body + + + + + +module:models/CustomerProductListItem + + + + + + + + + + @@ -10393,7 +13051,7 @@
Parameters:
Source:
@@ -10422,7 +13080,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/Customer and HTTP response

+

a Promise, with data of type module:models/CustomerProductListItem

@@ -10451,7 +13109,7 @@
Returns:
-

postCustomersByIDPasswordReset(customerId) → {Promise}

+

postCustomersByIDProductListsByIDItemsByIDPurchases(customerId, listId, itemId, body) → {Promise}

@@ -10459,10 +13117,7 @@

-

Starts a password reset process. A password reset token is generated and passed together with the customer -resolved by the id provided as path parameter to a afterPOST hook. -The hook dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, -for example to send a reset email.

+

Adds a purchase to an item in the customer's product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.

@@ -10514,7 +13169,76 @@
Parameters:
-

the id of the customer

+

The id of the customer - owner of the product list.

+ + + + + + + listId + + + + + +String + + + + + + + + + +

The id of the product list.

+ + + + + + + itemId + + + + + +String + + + + + + + + + +

The id of the product list item where to add the purchase.

+ + + + + + + body + + + + + +module:models/CustomerProductListItemPurchase + + + + + + + + + + @@ -10555,7 +13279,7 @@
Parameters:
Source:
@@ -10584,7 +13308,7 @@
Returns:
@@ -10613,60 +13337,126 @@
Returns:
-

postCustomersByIDPasswordResetWithHttpInfo(customerId) → {Promise}

+

postCustomersByIDProductListsByIDItemsByIDPurchasesWithHttpInfo(customerId, listId, itemId, body) → {Promise}

+ + + + + + +
+

Adds a purchase to an item in the customer's product list. Considered values from the request body are: purchaser_name: name of the purchaser, mandatory. This is the full name of the purchaser of this product list item. quantity: amount purchased, mandatory. This is the quantity of the items purchased from the product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
-

Starts a password reset process. A password reset token is generated and passed together with the customer -resolved by the id provided as path parameter to a afterPOST hook. The hook -dw.ocapi.shop.customer.password_reset.afterPOST can utilize the provided reset token, for example to -send a reset email.

-
- + + + + + + + + + + -
Parameters:
- + + + + + + + + + + + + + + + + +
NameTypeDescription
customerId + + +String + + + +

The id of the customer - owner of the product list.

listId + + +String + +

The id of the product list.

itemId + + +String - - - - - - - + + - + - + - - - + + - - + + @@ -10717,7 +13507,7 @@
Parameters:
Source:
@@ -10746,7 +13536,7 @@
Returns:
-

a Promise, with an object containing HTTP response

+

a Promise, with an object containing data of type module:models/CustomerProductListItemPurchase and HTTP response

@@ -10775,7 +13565,7 @@
Returns:
-

postCustomersByIDPaymentInstruments(customerId, body) → {Promise}

+

postCustomersByIDProductListsByIDItemsWithHttpInfo(customerId, listId, body) → {Promise}

@@ -10783,7 +13573,7 @@

-

Adds a payment instrument to a customer information.

+

Adds an item to the customer's product list. Considered values from the request body are: type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. priority: This is the priority of the item to be added to the customer's product list. public: This is the flag whether the item to be added to the customer's product list is public. product_id: a valid product id, used for product item type only. This is the id (sku) of the product related to the item to be added to the customer's product list. It is mandatory for product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem.

@@ -10835,7 +13625,30 @@
Parameters:
-

+ + + + + + + + + + + + + + + + + @@ -10848,7 +13661,7 @@
Parameters:
- + + - + + @@ -11081,7 +13894,7 @@
Parameters:
Source:
@@ -11110,7 +13923,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerPaymentInstrument and HTTP response

+

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

@@ -11139,7 +13952,7 @@
Returns:
-

postCustomersByIDProductLists(customerId, body) → {Promise}

+

postCustomersPasswordActionsCreateResetToken(body) → {Promise}

@@ -11147,7 +13960,7 @@

-

Creates a customer product list.

+

Returns a reset password token for the passed in customer's login that will be used with the customers/reset_password endpoint to change the customer's password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.

@@ -11181,29 +13994,6 @@
Parameters:

- - - - - - - - - - - - - - - - @@ -11212,7 +14002,7 @@
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -11427,7 +14161,7 @@
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -11643,7 +14320,7 @@
Parameters:
- - - - - - - - - - - - - - - -
NameTypeDescription

The id of the product list item where to add the purchase.

customerIdbody -String +module:models/CustomerProductListItemPurchase @@ -10676,7 +13466,7 @@
Parameters:
-

the id of the customer

the id of the customer

The id of the customer - owner of the product list.

listId + + +String + + + +

The id of the product list

-module:models/CustomerPaymentInstrumentRequest +module:models/CustomerProductListItem @@ -10899,7 +13712,7 @@
Parameters:
Source:
@@ -10928,7 +13741,7 @@
Returns:
-

a Promise, with data of type module:models/CustomerPaymentInstrument

+

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

@@ -10957,7 +13770,7 @@
Returns:
-

postCustomersByIDPaymentInstrumentsWithHttpInfo(customerId, body) → {Promise}

+

postCustomersByIDProductListsWithHttpInfo(body, customerId) → {Promise}

@@ -10965,7 +13778,7 @@

-

Adds a payment instrument to a customer information.

+

Creates a customer product list.

@@ -11001,13 +13814,13 @@
Parameters:

customerIdbody -String +module:models/CustomerProductList @@ -11017,20 +13830,20 @@
Parameters:
-

the id of the customer

bodycustomerId -module:models/CustomerPaymentInstrumentRequest +String @@ -11040,7 +13853,7 @@
Parameters:
-

The customer id.

customerId - - -String - - - -

The customer id.

body -module:models/CustomerProductList +module:models/ResetPasswordTokenRequest @@ -11263,7 +14053,7 @@
Parameters:
Source:
@@ -11292,7 +14082,7 @@
Returns:
@@ -11321,7 +14111,7 @@
Returns:
-

postCustomersByIDProductListsByIDItems(customerId, listId, body) → {Promise}

+

postCustomersPasswordActionsCreateResetTokenWithHttpInfo(body) → {Promise}

@@ -11329,17 +14119,7 @@

-

Adds an item to the customer's product list. Considered values from the request body are: -type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. -priority: This is the priority of the item to be added to the customer's product list. -public: This is the flag whether the item to be added to the customer's product list is public. -product_id: a valid product id, used for product item type only. This is the id (sku) of the product -related to the item to be added to the customer's product list. It is mandatory for product item type and it must -be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. -quantity: used for product item type only. This is the quantity of the item to be added to the customer's product list. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom -attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid -for the type of custom attribute defined for ProductListItem.

+

Returns a reset password token for the passed in customer's login that will be used with the customers/reset_password endpoint to change the customer's password. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.

@@ -11373,52 +14153,6 @@
Parameters:

customerId - - -String - - - -

The id of the customer - owner of the product list.

listId - - -String - - - -

The id of the product list

body -module:models/CustomerProductListItem +module:models/ResetPasswordTokenRequest @@ -11478,7 +14212,7 @@
Parameters:
Source:
@@ -11507,7 +14241,7 @@
Returns:
-

a Promise, with data of type module:models/CustomerProductListItem

+

a Promise, with an object containing data of type module:models/ResetPasswordTokenResult and HTTP response

@@ -11536,7 +14270,7 @@
Returns:
-

postCustomersByIDProductListsByIDItemsWithHttpInfo(customerId, listId, body) → {Promise}

+

postCustomersPasswordActionsReset(body) → {Promise}

@@ -11544,18 +14278,7 @@

-

Adds an item to the customer's product list. -Considered values from the request body are: -type: a valid type, mandatory. This is the type of the item to be added to the customer's product list. -priority: This is the priority of the item to be added to the customer's product list. -public: This is the flag whether the item to be added to the customer's product list is public. -product_id: a valid product id, used for product item type only. This is the id (sku) -of the product related to the item to be added to the customer's product list. It is mandatory for -product item type and it must be a valid product id, otherwise ProductListProductIdMissingException or ProductListProductNotFoundException will be thrown. -quantity: used for product item type only. This is the quantity of the item to be -added to the customer's product list. -custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom -attribute (<CUSTOM_NAME>) defined for ProductListItem. The value of this property must be valid for the type of custom attribute defined for ProductListItem.

+

Changes the customer's password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.

@@ -11589,52 +14312,6 @@
Parameters:

customerId - - -String - - - -

The id of the customer - owner of the product list.

listId - - -String - - - -

The id of the product list

body -module:models/CustomerProductListItem +module:models/ResetPasswordRequest @@ -11694,7 +14371,7 @@
Parameters:
Source:
@@ -11723,7 +14400,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductListItem and HTTP response

+

a Promise

@@ -11752,7 +14429,7 @@
Returns:
-

postCustomersByIDProductListsWithHttpInfo(body, customerId) → {Promise}

+

postCustomersPasswordActionsResetWithHttpInfo(body) → {Promise}

@@ -11760,7 +14437,7 @@

-

Creates a customer product list.

+

Changes the customer's password to the new password value in the call using the reset password token that was returned from the customers/reset_password_token endpoint. This differs from the customers/password_reset endpoint as it does not require or allow before or after hook processing.

@@ -11802,7 +14479,7 @@
Parameters:

-module:models/CustomerProductList +module:models/ResetPasswordRequest @@ -11816,29 +14493,6 @@
Parameters:
customerId - - -String - - - -

The customer id.

@@ -11876,7 +14530,7 @@
Parameters:
Source:
@@ -11905,7 +14559,7 @@
Returns:
-

a Promise, with an object containing data of type module:models/CustomerProductList and HTTP response

+

a Promise, with an object containing HTTP response

@@ -11942,14 +14596,7 @@

-

First the beforePOST hook is called. After that the validation of the -customer information provided in the the password reset document is performed. -Then a password reset token is generated and together with the resolved -customer is passed to a afterPOST hook. The customer resolution is based -on the password reset request type. Both hooks are performed in a single transaction. -Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one -customer has been identified for that email. In the case that more than one -customers have been identified for the provided email the resource does nothing.

+

First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing.

@@ -12042,7 +14689,7 @@
Parameters:
Source:
@@ -12108,15 +14755,7 @@

-

First the beforePOST hook is called. After that the validation of the -customer information provided in the the password reset document is performed. -Then a password reset token is generated and together with the resolved -customer is passed to a afterPOST hook. The customer resolution is based -on the password reset request type. Both hooks are performed in a single transaction. -Currently the resolution can be done by email or login. In case of an email the password reset -hook is only executed if one and only one customer has been identified for that email. -In the case that more than one customers have been identified for the provided email the -resource does nothing.

+

First the beforePOST hook is called. After that the validation of the customer information provided in the the password reset document is performed. Then a password reset token is generated and together with the resolved customer is passed to a afterPOST hook. The customer resolution is based on the password reset request type. Both hooks are performed in a single transaction. Currently the resolution can be done by email or login. In case of an email the password reset hook is only executed if one and only one customer has been identified for that email. In the case that more than one customers have been identified for the provided email the resource does nothing.

@@ -12209,7 +14848,7 @@
Parameters:
Source:
@@ -12275,9 +14914,7 @@

-

Registers a customer. The mandatory data are the credentials and profile last name and email. -When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException -will be thrown. When using JWT the password is required.

+

Registers a customer. The mandatory data are the credentials and profile last name and email. When using OAuth the password in the request must not be set, otherwise an InvalidPasswordException will be thrown. When using JWT the password is required.

@@ -12370,7 +15007,7 @@
Parameters:
Source:
@@ -12552,7 +15189,7 @@
Parameters:
Source:
@@ -12734,7 +15371,7 @@
Parameters:
Source:
@@ -12802,7 +15439,7 @@
Returns:

diff --git a/docs/module-api_FoldersApi.html b/docs/module-api_FoldersApi.html index 460da6b..7d51437 100644 --- a/docs/module-api_FoldersApi.html +++ b/docs/module-api_FoldersApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,10 +207,7 @@

getFold
-

To access a content folder, you construct a URL using the template shown below. -This template requires you to specify a content folder id and a subfolder level. -In response, the server returns a corresponding content folder document. Only content -folder, which are marked as online are returned.

+

To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned.

@@ -398,7 +395,7 @@

Properties
Source:
@@ -898,7 +895,7 @@
Properties
Source:
@@ -964,10 +961,7 @@

-

To access a content folder, you construct a URL using the template shown below. This -template requires you to specify a content folder id and a subfolder level. In response, -the server returns a corresponding content folder document. Only content folder, -which are marked as online are returned.

+

To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned.

@@ -1155,7 +1149,7 @@
Properties
Source:
@@ -1223,7 +1217,7 @@
Returns:

diff --git a/docs/module-api_GiftCertificateApi.html b/docs/module-api_GiftCertificateApi.html index 13c5814..18a4834 100644 --- a/docs/module-api_GiftCertificateApi.html +++ b/docs/module-api_GiftCertificateApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -349,7 +349,7 @@
Properties
Source:
@@ -557,7 +557,7 @@
Properties
Source:
@@ -625,7 +625,7 @@
Returns:

diff --git a/docs/module-api_OrderSearchApi.html b/docs/module-api_OrderSearchApi.html index 049cf49..6a639f7 100644 --- a/docs/module-api_OrderSearchApi.html +++ b/docs/module-api_OrderSearchApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,23 +207,7 @@

postOr
-

Searches for orders. -The query attribute specifies a complex query that can be used to narrow down the search. -Note that search fields are mandatory now and no default ones are supported. -As the old order search version, the new one always uses Search Service too and the for that reason Order -Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. -The supported search fields are: -affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) -created_by creation_date currency_code customer_email customer_name customer_no export_after -export_status (String) external_order_no external_order_status last_modified order_no original_order_no -payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) -total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id -holds.type invoices.status order_items.status payment_instruments.credit_card_type -payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number -shipments.shipping_method_id shipping_orders.shipping_order_number -The sort order of the retrieved orders could be specified by the &quot;sorts&quot; parameter. It is a list of objects -presenting field name and sort direction (&quot;asc&quot; or &quot;desc&quot;). -Custom attributes could be used as search fields and as sort fields too. A prefix &quot;c_&quot; has to be added to them.

+

Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the &quot;sorts&quot; parameter. It is a list of objects presenting field name and sort direction (&quot;asc&quot; or &quot;desc&quot;). Custom attributes could be used as search fields and as sort fields too. A prefix &quot;c_&quot; has to be added to them.

@@ -316,7 +300,7 @@

Parameters:
Source:
@@ -382,23 +366,7 @@

<
-

Searches for orders. -The query attribute specifies a complex query that can be used to narrow down the search. -Note that search fields are mandatory now and no default ones are supported. -As the old order search version, the new one always uses Search Service too and the for that reason Order -Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. -The supported search fields are: -affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) -created_by creation_date currency_code customer_email customer_name customer_no export_after -export_status (String) external_order_no external_order_status last_modified order_no original_order_no -payment_status (String) replaced_order_no replacement_order_no shipping_status (String) -status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code -coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type -payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number -shipments.shipping_method_id shipping_orders.shipping_order_number -The sort order of the retrieved orders could be specified by the &quot;sorts&quot; parameter. It is a list of objects -presenting field name and sort direction (&quot;asc&quot; or &quot;desc&quot;). -Custom attributes could be used as search fields and as sort fields too. A prefix &quot;c_&quot; has to be added to them.

+

Searches for orders. The query attribute specifies a complex query that can be used to narrow down the search. Note that search fields are mandatory now and no default ones are supported. As the old order search version, the new one always uses Search Service too and the for that reason Order Incremental Indexing should be enabled. Otherwise HTTP 500 response will occur. The supported search fields are: affiliate_partner_i_d affiliate_partner_name business_type channel_type confirmation_status (String) created_by creation_date currency_code customer_email customer_name customer_no export_after export_status (String) external_order_no external_order_status global_party_id last_modified order_no original_order_no payment_status (String) replaced_order_no replacement_order_no shipping_status (String) status (String) total_gross_price total_net_price order.has_holds coupon_line_items.coupon_code coupon_line_items.coupon_id holds.type invoices.status order_items.status payment_instruments.credit_card_type payment_instruments.payment_method_id product_items.product_id return_cases.return_case_number shipments.shipping_method_id shipping_orders.shipping_order_number The sort order of the retrieved orders could be specified by the &quot;sorts&quot; parameter. It is a list of objects presenting field name and sort direction (&quot;asc&quot; or &quot;desc&quot;). Custom attributes could be used as search fields and as sort fields too. A prefix &quot;c_&quot; has to be added to them.

@@ -491,7 +459,7 @@
Parameters:
Source:
@@ -559,7 +527,7 @@
Returns:

diff --git a/docs/module-api_OrdersApi.html b/docs/module-api_OrdersApi.html index 47e3c91..96ef5d1 100644 --- a/docs/module-api_OrdersApi.html +++ b/docs/module-api_OrdersApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -323,7 +323,7 @@
Parameters:
Source:
@@ -505,7 +505,7 @@
Parameters:
Source:
@@ -687,7 +687,7 @@
Parameters:
Source:
@@ -869,7 +869,7 @@
Parameters:
Source:
@@ -1028,7 +1028,7 @@
Parameters:
Source:
@@ -1187,7 +1187,7 @@
Parameters:
Source:
@@ -1346,7 +1346,7 @@
Parameters:
Source:
@@ -1505,7 +1505,7 @@
Parameters:
Source:
@@ -1664,7 +1664,7 @@
Parameters:
Source:
@@ -1823,7 +1823,7 @@
Parameters:
Source:
@@ -1889,11 +1889,7 @@

patchO
-

Update an order. -Considered fields for update are status (same status transitions are possible as for -dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During -the call the correct channel type will be assured to be set for the order in a successful call. -Without agent context the channel type will be storefront otherwise callcenter.

+

Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter.

@@ -2009,7 +2005,7 @@

Parameters:
Source:
@@ -2067,7 +2063,7 @@
Returns:
-

patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body) → {Promise}

+

patchOrdersByIDPaymentInstrumentsByID(orderNo, paymentInstrumentId, body, opts) → {Promise}

@@ -2075,31 +2071,7 @@

-

Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. -Details: -The payment instrument is updated with the provided details. The payment method must be applicable -for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a -payment_card must be specified in the request. -Order authorization: -To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument -is passed as an input argument. -Which hook is called? -If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the -customization hook dw.order.payment.authorizeCreditCard is called. -See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. -Otherwise dw.order.payment.authorize is called. -See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. -What is the dw.order.OrderPaymentInstrument input argument passed to the hook? -If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied -from the customer payment instrument (An exception is thrown if none was found). -Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). -Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if -available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved -from a customer payment instrument. -Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default -implementation places the order if the order status is CREATED and the authorization amount equals or -exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in -the order being changed to status NEW and prepared for export.

+

Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export.

@@ -2201,6 +2173,78 @@
Parameters:

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
skipAuthorization + + +Boolean + + + +
+ +
@@ -2238,7 +2282,7 @@
Parameters:
Source:
@@ -2296,7 +2340,7 @@
Returns:
-

patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body) → {Promise}

+

patchOrdersByIDPaymentInstrumentsByIDWithHttpInfo(orderNo, paymentInstrumentId, body, opts) → {Promise}

@@ -2304,30 +2348,7 @@

-

Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. -Details: -The payment instrument is updated with the provided details. The payment method must be applicable for the -order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a -payment_card must be specified in the request. -Order authorization: -To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument -is passed as an input argument. -Which hook is called? -If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType -the customization hook dw.order.payment.authorizeCreditCard is called. -See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. -See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. -What is the dw.order.OrderPaymentInstrument input argument passed to the hook? -If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment -instrument (An exception is thrown if none was found). Otherwise the data from the request document -is passed (payment_card or payment_bank_account etc. information). -Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available -to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is -resolved from a customer payment instrument. -Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default -implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. -Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) -in the scripting API) results in the order being changed to status NEW and prepared for export.

+

Updates a payment instrument of an order and passes the order and updated payment instrument to the correct payment authorizeCreditcard or authorize hook. Details: The payment instrument is updated with the provided details. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPatchPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export.

@@ -2425,6 +2446,71 @@
Parameters:
+ + + + + + + + opts + + + + + +Object + + + + + + + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2432,6 +2518,13 @@
Parameters:
NameTypeDescription
skipAuthorization + + +Boolean + + + +
+ + + + + + + @@ -2466,7 +2559,7 @@
Parameters:
Source:
@@ -2532,10 +2625,7 @@

<
-

Update an order. -Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) -plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a -successful call. Without agent context the channel type will be storefront otherwise callcenter.

+

Update an order. Considered fields for update are status (same status transitions are possible as for dw.order.Order.setStatus(int status) plus CREATED to FAILED) and custom properties. During the call the correct channel type will be assured to be set for the order in a successful call. Without agent context the channel type will be storefront otherwise callcenter.

@@ -2651,7 +2741,7 @@
Parameters:
Source:
@@ -2717,11 +2807,7 @@

postOrders<
-

Submits an order based on a prepared basket. -Note: If the basket has been submitted using Order Center (considered by it's client id) the -channel type will be set to &quot;Call Center&quot;. In case another channel type was set by -a script before submitting the basket, the channel type will be reset to &quot;Call Center&quot; -and a warning will be logged. The only considered value from the request body is basket_id.

+

Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it's client id) the channel type will be set to &quot;Call Center&quot;. In case another channel type was set by a script before submitting the basket, the channel type will be reset to &quot;Call Center&quot; and a warning will be logged. The only considered value from the request body is basket_id.

@@ -2814,7 +2900,7 @@

Parameters:
Source:
@@ -2996,7 +3082,7 @@
Parameters:
Source:
@@ -3178,7 +3264,7 @@
Parameters:
Source:
@@ -3236,7 +3322,7 @@
Returns:
-

postOrdersByIDPaymentInstruments(orderNo, body) → {Promise}

+

postOrdersByIDPaymentInstruments(orderNo, body, opts) → {Promise}

@@ -3244,34 +3330,7 @@

-

Adds a payment instrument to an order. It is possible either to supply the full payment information -or only a customer payment instrument id and amount. In case the customer payment instrument id -was set all the other properties (except amount) are ignored and the payment data is resolved -from the stored customer payment information. An attempt is made to authorize the order by passing -it to the authorize or authorizeCreditCard hook. -Details: -The payment instrument is added with the provided details or the details from the customer payment -instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the -payment method is 'CREDIT_CARD' a payment_card must be specified in the request. -Order authorization: -To authorize the order one of two possible customization hooks is called and an -dw.order.OrderPaymentInstrument is passed as an input argument. -Which hook is called? -If the request includes a payment_card or the dw.order.OrderPaymentInstrument -contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. -See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. -Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. -What is the dw.order.OrderPaymentInstrument input argument passed to the hook? -If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from -the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request -document is passed (payment_card or payment_bank_account etc. information). -Note: the amount and the security_code (cvn) contained in the payment_card data will be -propagated if available to dw.order.payment.authorizeCreditCard even if the -dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. -Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default -implementation places the order if the order status is CREATED and the authorization amount -equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) -results in the order being changed to status NEW and prepared for export.

+

Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export.

@@ -3350,6 +3409,78 @@
Parameters:
+ + + + opts + + + + + +Object + + + + + + + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
skipAuthorization + + +Boolean + + + +
+ + + + + @@ -3387,7 +3518,7 @@
Parameters:
Source:
@@ -3445,7 +3576,7 @@
Returns:
-

postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body) → {Promise}

+

postOrdersByIDPaymentInstrumentsWithHttpInfo(orderNo, body, opts) → {Promise}

@@ -3453,34 +3584,7 @@

-

Adds a payment instrument to an order. It is possible either to supply the full payment information -or only a customer payment instrument id and amount. In case the customer payment instrument -id was set all the other properties (except amount) are ignored and the payment data is -resolved from the stored customer payment information. An attempt is made to authorize the order -by passing it to the authorize or authorizeCreditCard hook. -Details: -The payment instrument is added with the provided details or the details from the customer payment -instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the -payment method is 'CREDIT_CARD' a payment_card must be specified in the request. -Order authorization: -To authorize the order one of two possible customization hooks is called and an -dw.order.OrderPaymentInstrument is passed as an input argument. -Which hook is called? -If the request includes a payment_card or the dw.order.OrderPaymentInstrument -contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. -See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. -Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. -What is the dw.order.OrderPaymentInstrument input argument passed to the hook? -If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer -payment instrument (An exception is thrown if none was found). -Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). -Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to -dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is -resolved from a customer payment instrument. -Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default -implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. -Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results -in the order being changed to status NEW and prepared for export.

+

Adds a payment instrument to an order. It is possible either to supply the full payment information or only a customer payment instrument id and amount. In case the customer payment instrument id was set all the other properties (except amount) are ignored and the payment data is resolved from the stored customer payment information. An attempt is made to authorize the order by passing it to the authorize or authorizeCreditCard hook. Details: The payment instrument is added with the provided details or the details from the customer payment instrument. The payment method must be applicable for the order see GET /baskets/{basket_id}/payment_methods, if the payment method is 'CREDIT_CARD' a payment_card must be specified in the request. Order authorization: To authorize the order one of two possible customization hooks is called and an dw.order.OrderPaymentInstrument is passed as an input argument. Which hook is called? If the request includes a payment_card or the dw.order.OrderPaymentInstrument contains a creditCardType the customization hook dw.order.payment.authorizeCreditCard is called. See dw.order.hooks.PaymentHooks.authorizeCreditCard(order : Order, paymentDetails : OrderPaymentInstrument, cvn : String) : Status. Otherwise dw.order.payment.authorize is called. See dw.order.hooks.PaymentHooks.authorize(order : Order, paymentDetails : OrderPaymentInstrument) : Status. What is the dw.order.OrderPaymentInstrument input argument passed to the hook? If the request contains a customer_payment_instrument_id the dw.order.OrderPaymentInstrument is copied from the customer payment instrument (An exception is thrown if none was found). Otherwise the data from the request document is passed (payment_card or payment_bank_account etc. information). Note: the amount and the security_code (cvn) contained in the payment_card data will be propagated if available to dw.order.payment.authorizeCreditCard even if the dw.order.OrderPaymentInstrument is resolved from a customer payment instrument. Customization hook dw.ocapi.shop.order.afterPostPaymentInstrument is called. The default implementation places the order if the order status is CREATED and the authorization amount equals or exceeds the order total. Placing the order (equivalent to calling dw.order.OrderMgr.placeOrder(order : Order) in the scripting API) results in the order being changed to status NEW and prepared for export.

@@ -3559,48 +3663,120 @@
Parameters:
- - - + + + opts + + + + +Object + + -
+ - + - +

Optional parameters

+
Properties
+ - + + + + + + - + - + - + - + + + + - + + + + - + - -
Source:
-
- + - + + + + + + + +
NameTypeDescription
skipAuthorization + + +Boolean - - + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + @@ -3662,11 +3838,166 @@

-

Submits an order based on a prepared basket. -Note: If the basket has been submitted using Order Center (considered by it's client id) the channel -type will be set to &quot;Call Center&quot;. In case another channel type was set by a script -before submitting the basket, the channel type will be reset to &quot;Call Center&quot; and a warning -will be logged. The only considered value from the request body is basket_id.

+

Submits an order based on a prepared basket. Note: If the basket has been submitted using Order Center (considered by it's client id) the channel type will be set to &quot;Call Center&quot;. In case another channel type was set by a script before submitting the basket, the channel type will be reset to &quot;Call Center&quot; and a warning will be logged. The only considered value from the request body is basket_id.

+ + + + + + + + + + +

Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
body + + +module:models/Basket + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Order and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putOrdersByID(orderNo, body) → {Promise}

+ + + + + + +
+

Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified.

@@ -3700,6 +4031,211 @@
Parameters:
+ + + orderNo + + + + + +String + + + + + + + + + +

The order number to assign to the new order.

+ + + + + + + body + + + + + +module:models/Basket + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Order

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

putOrdersByIDWithHttpInfo(orderNo, body) → {Promise}

+ + + + + + +
+

Submits an order with a given order number, based on a prepared basket. The only considered value from the request body is basket_id. This resource is available for OAuth authentication and requires no user i.e. it supports server-server communication with client grant authentication and no user is specified.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3759,7 +4295,7 @@
Parameters:
Source:
@@ -3827,7 +4363,7 @@
Returns:

diff --git a/docs/module-api_PriceAdjustmentLimitsApi.html b/docs/module-api_PriceAdjustmentLimitsApi.html index da5546d..6a4fb04 100644 --- a/docs/module-api_PriceAdjustmentLimitsApi.html +++ b/docs/module-api_PriceAdjustmentLimitsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,9 +207,7 @@

-

Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. -At least one of the following functional permissions must be assigned to the user to be able to access it: -Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.

+

Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.

@@ -253,7 +251,7 @@

Source:
@@ -319,9 +317,7 @@

-

Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. -At least one of the following functional permissions must be assigned to the user to be able to access it: -Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.

+

Returns a list of price adjustment limits for the authenticated user and the site defined in the URL. At least one of the following functional permissions must be assigned to the user to be able to access it: Adjust_Item_Price or Adjust_Shipping_Price or Adjust_Order_Price.

@@ -365,7 +361,7 @@

Source:
@@ -433,7 +429,7 @@
Returns:

diff --git a/docs/module-api_ProductListsApi.html b/docs/module-api_ProductListsApi.html index 2af39a2..1b3dedf 100644 --- a/docs/module-api_ProductListsApi.html +++ b/docs/module-api_ProductListsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -395,7 +395,7 @@
Properties
Source:
@@ -626,7 +626,7 @@
Properties
Source:
@@ -857,7 +857,7 @@
Properties
Source:
@@ -1111,7 +1111,7 @@
Properties
Source:
@@ -1365,7 +1365,7 @@
Properties
Source:
@@ -1596,7 +1596,7 @@
Properties
Source:
@@ -1827,7 +1827,7 @@
Properties
Source:
@@ -2081,7 +2081,7 @@
Properties
Source:
@@ -2149,7 +2149,7 @@
Returns:

diff --git a/docs/module-api_ProductSearchApi.html b/docs/module-api_ProductSearchApi.html index 627c75a..6156de9 100644 --- a/docs/module-api_ProductSearchApi.html +++ b/docs/module-api_ProductSearchApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,10 +207,7 @@

getPr
-

Provides keyword and refinement search functionality for products. Only returns the -product id, link and name in the product search hit. Other search hit properties can be -added by using the expand parameter. The search result contains only products that are online -and assigned to site catalog.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -327,18 +324,7 @@

Properties
-

+ @@ -430,8 +416,7 @@
Properties
- + @@ -525,7 +510,7 @@
Properties
Source:
@@ -591,8 +576,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the -product id, link, name and availability information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -709,18 +693,7 @@
Properties
-

+ @@ -860,7 +833,7 @@
Properties
Source:
@@ -926,8 +899,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the product id, -link, name and availability information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and availability information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -1044,18 +1016,7 @@
Properties
-

+ @@ -1195,7 +1156,7 @@
Properties
Source:
@@ -1261,8 +1222,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the -product id, link, name and image information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -1379,18 +1339,7 @@

Properties
- + @@ -1530,7 +1479,7 @@
Properties
Source:
@@ -1596,8 +1545,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the -product id, link, name and image information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and image information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -1714,18 +1662,7 @@
Properties
-

+ @@ -1865,7 +1802,7 @@
Properties
Source:
@@ -1931,7 +1868,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -2048,18 +1985,7 @@

Properties
- + @@ -2222,7 +2148,7 @@
Properties
Source:
@@ -2288,8 +2214,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the -product id, link, name and price information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and price information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -2406,18 +2331,7 @@
Properties
-

+ @@ -2580,7 +2494,653 @@
Properties
Source:
+ + + + + + + + + + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/ProductSearchResult and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductSearchRepresentedProducts(opts) → {Promise}

+ + + + + + +
+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

+
+ + + + + + + + + +
Parameters:
+ + +
NameTypeDescription
orderNo + + +String + + + +

The order number to assign to the new order.

body

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are 'product', 'master', 'set', 'bundle', 'slicing_group' (deprecated), 'variation_group'. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

The expand parameter. A comma separated list with the allowed values (availability, images, -prices, variations)

The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations)

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
q + + +String + + + +

The query phrase to search for.

refine + + +Array.<String> + + + +

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

sort + + +String + + + +

The id of the sorting option to sort the search hits.

start + + +Number + + + +

The result set index to return the first instance for. Default value is 0.

count + + +Number + + + +

The maximum number of instances per request. Default value is 25.

locale + + +String + + + +

The locale context.

+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/ProductSearchResult

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductSearchRepresentedProductsWithHttpInfo(opts) → {Promise}

+ + + + + + +
+

Provides keyword and refinement search functionality for products. Only returns the product id, link, name and represented product information in the product search hit. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
q + + +String + + + +

The query phrase to search for.

refine + + +Array.<String> + + + +

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

sort + + +String + + + +

The id of the sorting option to sort the search hits.

start + + +Number + + + +

The result set index to return the first instance for. Default value is 0.

count + + +Number + + + +

The maximum number of instances per request. Default value is 25.

locale + + +String + + + +

The locale context.

+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -2646,7 +3206,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product.

@@ -2763,18 +3323,7 @@
Properties
-

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

+

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

@@ -2914,7 +3463,7 @@
Properties
Source:
@@ -2980,7 +3529,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit.

+

Provides keyword and refinement search functionality for products. Only returns the product id, name and variation information in the product search hit. This resource does not return detailed information about variation products. Use the products resource to retrieve more details about a variation product.

@@ -3097,18 +3646,7 @@
Properties
-

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple -refinement values are not supported.

+

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

@@ -3248,7 +3786,7 @@
Properties
Source:
@@ -3314,9 +3852,7 @@

-

Provides keyword and refinement search functionality for products. Only returns the product id, -link and name in the product search hit. Other search hit properties can be added by using -the expand parameter. The search result contains only products that are online and assigned to site catalog.

+

Provides keyword and refinement search functionality for products. Only returns the product id, link and name in the product search hit. Other search hit properties can be added by using the expand parameter. The search result contains only products that are online and assigned to site catalog. This resource does not return detailed information about variation products. If a variation product matches the query, basic information for the parent master product is returned. Use the products resource to retrieve more details about a variation product.

@@ -3433,17 +3969,7 @@
Properties
-

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and -value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and -can be provided by separating them using a pipe (URL -encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine -parameters can be provided by adding an underscore in combination with an integer counter right behind -the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The -following system refinement attribute ids are supported: -cgid: Allows to refine per single category id. Multiple category ids are not supported. -price: Allows to refine per single price range. Multiple price ranges are not supported. -pmid: Allows to refine per promotion id(s). -orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

+

Parameter that represents a refinement attribute/value(s) pair. Refinement attribute id and value(s) are separated by '='. Multiple values are supported by a sub-set of refinement attributes and can be provided by separating them using a pipe (URL encoded = &quot;|&quot;). Value ranges can be specified like this: refine=price=(100..500) Multiple refine parameters can be provided by adding an underscore in combination with an integer counter right behind the parameter name and a counter range 1..9. I.e. refine_1=c_refinementColor=red|green|blue. The following system refinement attribute ids are supported: cgid: Allows to refine per single category id. Multiple category ids are not supported. price: Allows to refine per single price range. Multiple price ranges are not supported. pmid: Allows to refine per promotion id(s). htypes: Allow to refine by including only the provided hit types. Accepted types are 'product', 'master', 'set', 'bundle', 'slicing_group' (deprecated), 'variation_group'. orderable_only: Unavailable products will be excluded from the search results if true is set. Multiple refinement values are not supported.

@@ -3535,7 +4061,7 @@
Properties
-

The expand parameter. A comma separated list with the allowed values (availability, images, prices, variations)

+

The expand parameter. A comma separated list with the allowed values (availability, images, prices, represented_products, variations)

@@ -3629,7 +4155,7 @@
Properties
Source:
@@ -3697,7 +4223,7 @@
Returns:

diff --git a/docs/module-api_ProductsApi.html b/docs/module-api_ProductsApi.html index 173ce7c..b5c2e2f 100644 --- a/docs/module-api_ProductsApi.html +++ b/docs/module-api_ProductsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,11 +207,7 @@

getPro
-

To access single products resource, you construct a URL using the template shown below. -This template requires you to specify an Id (typically a SKU) for a product. In response, -the server returns a corresponding Product document, provided the product is online and -assigned to site catalog. The document contains variation attributes (including values) -and the variant matrix; this data is provided for both the master and for the variant.

+

To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant.

@@ -468,7 +464,7 @@

Properties
Source:
@@ -722,7 +718,7 @@
Properties
Source:
@@ -1207,7 +1203,7 @@
Properties
Source:
@@ -1438,7 +1434,7 @@
Properties
Source:
@@ -1738,7 +1734,7 @@
Properties
Source:
@@ -2038,7 +2034,7 @@
Properties
Source:
@@ -2315,7 +2311,7 @@
Properties
Source:
@@ -2592,7 +2588,7 @@
Properties
Source:
@@ -2823,7 +2819,7 @@
Properties
Source:
@@ -3054,7 +3050,7 @@
Properties
Source:
@@ -3285,7 +3281,7 @@
Properties
Source:
@@ -3516,7 +3512,7 @@
Properties
Source:
@@ -3770,7 +3766,7 @@
Properties
Source:
@@ -4024,7 +4020,7 @@
Properties
Source:
@@ -4082,13 +4078,17 @@
Returns:
-

getProductsByIDs(ids, opts) → {Promise}

+

getProductsByIDRecommendations(id, opts) → {Promise}

+
+

Access product recommendation information of products that are online and assigned to site catalog.

+
+ @@ -4122,13 +4122,13 @@
Parameters:
- ids + id -Array.<String> +String @@ -4138,7 +4138,7 @@
Parameters:
- +

The requested product id.

@@ -4187,13 +4187,13 @@
Properties
- expand + recommendationType -Array.<String> +Number @@ -4210,13 +4210,13 @@
Properties
- inventoryIds + locale -Array.<String> +String @@ -4230,10 +4230,153 @@
Properties
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Product

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductsByIDRecommendationsWithHttpInfo(id, opts) → {Promise}

+ + + + + + +
+

Access product recommendation information of products that are online and assigned to site catalog.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + - + + - + + + + + + + + @@ -146,7 +143,7 @@
Parameters:
Source:
@@ -202,10 +199,7 @@

(inner)
-

The id of the search refinement attribute. In the case of an attribute refinement, this is -the attribute id. Custom attributes are marked by the prefix "c_" (for example, "c_refinementColor"). -In the case of a category refinement, the id must be "cgid". In the case of a price refinement, -the id must be "price".

+

The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix "c_" (for example, "c_refinementColor"). In the case of a category refinement, the id must be "cgid". In the case of a price refinement, the id must be "price".

@@ -253,7 +247,7 @@

Type:
Source:
@@ -325,7 +319,7 @@
Type:
Source:
@@ -397,7 +391,7 @@
Type:
Source:
@@ -550,7 +544,7 @@
Parameters:
Source:
@@ -618,7 +612,7 @@
Returns:

diff --git a/docs/module-models_ProductSearchRefinementValue.html b/docs/module-models_ProductSearchRefinementValue.html index 795dd08..15592a3 100644 --- a/docs/module-models_ProductSearchRefinementValue.html +++ b/docs/module-models_ProductSearchRefinementValue.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -366,8 +366,7 @@

(inner) -

The optional presentation id associated with the refinement value. The presentation id can be used, -for example, to associate an id with an HTML widget.

+

The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget.

@@ -415,7 +414,7 @@
Type:
Source:
@@ -439,10 +438,7 @@

(inner) value -

The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, -or a value range. In the case of a category refinement, this is the category id. In the case of a -price refinement,k this is the price range. Ranges are enclosed by parentheses and separated -by ".."; for example, "(100..999)" and "(Aa..Fa)" are valid ranges.

+

The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a category refinement, this is the category id. In the case of a price refinement,k this is the price range. Ranges are enclosed by parentheses and separated by ".."; for example, "(100..999)" and "(Aa..Fa)" are valid ranges.

@@ -490,7 +486,7 @@
Type:
Source:
@@ -562,7 +558,7 @@
Type:
Source:
@@ -715,7 +711,7 @@
Parameters:
Source:
@@ -783,7 +779,7 @@
Returns:

diff --git a/docs/module-models_ProductSearchResult.html b/docs/module-models_ProductSearchResult.html index 50b301a..658725d 100644 --- a/docs/module-models_ProductSearchResult.html +++ b/docs/module-models_ProductSearchResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -266,7 +266,7 @@
Type:
Source:
@@ -334,7 +334,7 @@
Type:
Source:
@@ -406,7 +406,7 @@
Type:
Source:
@@ -478,7 +478,7 @@
Type:
Source:
@@ -550,7 +550,7 @@
Type:
Source:
@@ -622,7 +622,7 @@
Type:
Source:
@@ -694,7 +694,7 @@
Type:
Source:
@@ -766,7 +766,7 @@
Type:
Source:
@@ -838,7 +838,7 @@
Type:
Source:
@@ -910,7 +910,7 @@
Type:
Source:
@@ -982,7 +982,7 @@
Type:
Source:
@@ -1054,7 +1054,7 @@
Type:
Source:
@@ -1126,7 +1126,7 @@
Type:
Source:
@@ -1279,7 +1279,7 @@
Parameters:
Source:
@@ -1347,7 +1347,7 @@
Returns:

diff --git a/docs/module-models_ProductSearchSortingOption.html b/docs/module-models_ProductSearchSortingOption.html index a372325..dbdc7fd 100644 --- a/docs/module-models_ProductSearchSortingOption.html +++ b/docs/module-models_ProductSearchSortingOption.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -423,7 +423,7 @@
Parameters:
Source:
@@ -491,7 +491,7 @@
Returns:

diff --git a/docs/module-models_ProductSimpleLink.html b/docs/module-models_ProductSimpleLink.html index 552d689..2ac97a8 100644 --- a/docs/module-models_ProductSimpleLink.html +++ b/docs/module-models_ProductSimpleLink.html @@ -94,7 +94,7 @@
Type:
Source:
@@ -342,7 +342,7 @@

Type:
Source:
@@ -414,7 +414,7 @@

Type:
Source:
@@ -486,7 +486,7 @@

Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -630,7 +630,7 @@
Type:
Source:
@@ -783,7 +783,7 @@
Parameters:
Source:
@@ -851,7 +851,7 @@
Returns:

diff --git a/docs/module-models_Promotion.html b/docs/module-models_Promotion.html index 8ce771d..4fa0578 100644 --- a/docs/module-models_Promotion.html +++ b/docs/module-models_Promotion.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -630,7 +630,7 @@
Type:
Source:
@@ -702,7 +702,7 @@
Type:
Source:
@@ -774,7 +774,7 @@
Type:
Source:
@@ -927,7 +927,7 @@
Parameters:
Source:
@@ -995,7 +995,7 @@
Returns:

diff --git a/docs/module-models_PromotionLink.html b/docs/module-models_PromotionLink.html new file mode 100644 index 0000000..5328f14 --- /dev/null +++ b/docs/module-models_PromotionLink.html @@ -0,0 +1,714 @@ + + + + + JSDoc: Class: module:models/PromotionLink + + + + + + + + + + +
+ +

Class: module:models/PromotionLink

+ + + + + + +
+ +
+ +

module:models/PromotionLink()

+ + +
+ +
+
+ + + + + + + + + + + + + +
+

Constructs a new PromotionLink. +Document representing a promotion link.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) callout_msg :String

+ + + + +
+

The localized call-out message of the promotion.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) name :String

+ + + + +
+

The localized name of the promotion.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) promotion_id :String

+ + + + +
+

The unique id of the promotion.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) title :String

+ + + + + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/PromotionLink}

+ + + + + + +
+

Constructs a PromotionLink from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + +

NameTypeDescription
currencyid @@ -4249,20 +4392,62 @@
Properties
-

The requested product id.

localeopts -String +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + @@ -333,8 +324,7 @@
Properties
- + @@ -357,7 +347,7 @@
Properties
- + @@ -380,7 +370,7 @@
Properties
- + @@ -403,8 +393,7 @@
Properties
- + @@ -427,8 +416,7 @@
Properties
- + @@ -522,7 +510,7 @@
Properties
Source:
@@ -681,7 +669,7 @@
Parameters:
Source:
@@ -836,7 +824,7 @@
Parameters:
Source:
@@ -991,7 +979,7 @@
Parameters:
Source:
@@ -1150,7 +1138,7 @@
Parameters:
Source:
@@ -1216,15 +1204,7 @@

-

This resource retrieves a list of stores, for the given site, that are within a configured -distance of a location on the earth. The stores and their distance from the specified location are returned -as a result set of Store objects. The distance is interpreted either in miles or kilometers depending -on the &quot;distance_unit&quot; input parameter. The location can be specified by either directly -providing a latitude/longitude coordinate pair or by providing a country and a postal code: -If a postal code is passed, the resource looks in the system's geolocation mappings to find -the coordinates for this postal code. If no matching geolocation is found, the resource will -return an empty list of stores. If coordinates are passed, the values for country and postal -code are ignored.

+

This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored.

@@ -1318,8 +1298,7 @@

Properties
- + @@ -1342,8 +1321,7 @@
Properties
- + @@ -1366,7 +1344,7 @@
Properties
- + @@ -1389,7 +1367,7 @@
Properties
- + @@ -1412,8 +1390,7 @@
Properties
- + @@ -1436,8 +1413,7 @@
Properties
- + @@ -1531,7 +1507,7 @@
Properties
Source:
@@ -1599,7 +1575,7 @@
Returns:

diff --git a/docs/module-index.html b/docs/module-index.html index 3fc016f..54b9f61 100644 --- a/docs/module-index.html +++ b/docs/module-index.html @@ -43,10 +43,10 @@

Module: index

An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:

-var ShopApi = require('index') // See note below*.
+var ShopApi = require('index'); // See note below*.
 var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use.
 var yyyModel = new ShopApi.Yyy(); // Construct a model instance.
-yyyModel.someProperty = 'someValue'
+yyyModel.someProperty = 'someValue';
 ...
 var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
 ...
@@ -59,7 +59,7 @@ 

Module: index

 var xxxSvc = new ShopApi.XxxApi(); // Allocate the API class we're going to use.
 var yyy = new ShopApi.Yyy(); // Construct a model instance.
-yyyModel.someProperty = 'someValue'
+yyyModel.someProperty = 'someValue';
 ...
 var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
 ...
@@ -88,7 +88,7 @@ 

Module: index

Version:
-
  • 17.8
+
  • 20.4
@@ -116,7 +116,7 @@

Module: index

Source:
@@ -167,13 +167,13 @@

Members

-

(static) ApiClient

+

(static) AiApi

-

The ApiClient constructor.

+

The AiApi service constructor.

@@ -210,7 +210,7 @@
Properties:
+ + + + + + + + + + +
NameTypeDescription
recommendationType + + +Number @@ -4279,13 +4464,13 @@
Properties
allImageslocale -Boolean +String @@ -4343,7 +4528,7 @@
Properties
Source:
@@ -4372,7 +4557,788 @@
Returns:
-

a Promise, with data of type module:models/ProductResult

+

a Promise, with an object containing data of type module:models/Product and HTTP response

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductsByIDs(ids, opts) → {Promise}

+ + + + + + + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ids + + +Array.<String> + + + +
opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
expand + + +Array.<String> + + + +
inventoryIds + + +Array.<String> + + + +
currency + + +String + + + +
locale + + +String + + + +
allImages + + +Boolean + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/ProductResult

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductsByIDSetProducts(id, opts) → {Promise}

+ + + + + + +
+

Access product set information of products that are online and assigned to site catalog.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +

The requested product id.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
locale + + +String + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with data of type module:models/Product

+
+ + + +
+
+ Type +
+
+ +Promise + + +
+
+ + + + + + + + + + + + + +

getProductsByIDSetProductsWithHttpInfo(id, opts) → {Promise}

+ + + + + + +
+

Access product set information of products that are online and assigned to site catalog.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
id + + +String + + + +

The requested product id.

opts + + +Object + + + +

Optional parameters

+
Properties
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
locale + + +String + + + +
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

a Promise, with an object containing data of type module:models/Product and HTTP response

@@ -4502,7 +5468,7 @@
Parameters:
Source:
@@ -4661,7 +5627,7 @@
Parameters:
Source:
@@ -4980,7 +5946,7 @@
Properties
Source:
@@ -5211,7 +6177,7 @@
Properties
Source:
@@ -5442,7 +6408,7 @@
Properties
Source:
@@ -5508,11 +6474,7 @@

<
-

To access single products resource, you construct a URL using the template shown below. -This template requires you to specify an Id (typically a SKU) for a product. In response, the -server returns a corresponding Product document, provided the product is online and assigned -to site catalog. The document contains variation attributes (including values) and the variant -matrix; this data is provided for both the master and for the variant.

+

To access single products resource, you construct a URL using the template shown below. This template requires you to specify an Id (typically a SKU) for a product. In response, the server returns a corresponding Product document, provided the product is online and assigned to site catalog. The document contains variation attributes (including values) and the variant matrix; this data is provided for both the master and for the variant.

@@ -5837,7 +6799,7 @@
Returns:

diff --git a/docs/module-api_PromotionsApi.html b/docs/module-api_PromotionsApi.html index b29724e..6954c6c 100644 --- a/docs/module-api_PromotionsApi.html +++ b/docs/module-api_PromotionsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,12 +207,7 @@

getPromo
-

Handles get promotion by filter criteria Returns an array of enabled promotions matching -specified filter criteria. In the request URL, you must provide a campaign_id parameter, -and you can optionally specify a date range by providing start_date and end_date parameters. -Both parameters are required to specify a date range: omitting one causes the server -to return a MissingParameterException fault. Each request returns only enabled promotions; -the server does not consider promotion qualifiers or schedules.

+

Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules.

@@ -423,7 +418,7 @@

Properties
Source:
@@ -489,8 +484,7 @@

getP
-

Returns an enabled promotion using a specified id. Each request returns a response -only for an enabled promotion; the server does not consider promotion qualifiers or schedules.

+

Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules.

@@ -882,7 +876,7 @@

Properties
Source:
@@ -1109,7 +1103,7 @@
Properties
Source:
@@ -1175,8 +1169,7 @@

-

Returns an enabled promotion using a specified id. Each request returns a response only -for an enabled promotion; the server does not consider promotion qualifiers or schedules.

+

Returns an enabled promotion using a specified id. Each request returns a response only for an enabled promotion; the server does not consider promotion qualifiers or schedules.

@@ -1341,7 +1334,7 @@
Properties
Source:
@@ -1407,12 +1400,7 @@

-

Handles get promotion by filter criteria Returns an array of enabled promotions matching specified -filter criteria. In the request URL, you must provide a campaign_id parameter, and you can -optionally specify a date range by providing start_date and end_date parameters. Both parameters -are required to specify a date range: omitting one causes the server to return a -MissingParameterException fault. Each request returns only enabled promotions; the -server does not consider promotion qualifiers or schedules.

+

Handles get promotion by filter criteria Returns an array of enabled promotions matching specified filter criteria. In the request URL, you must provide a campaign_id parameter, and you can optionally specify a date range by providing start_date and end_date parameters. Both parameters are required to specify a date range: omitting one causes the server to return a MissingParameterException fault. Each request returns only enabled promotions; the server does not consider promotion qualifiers or schedules.

@@ -1623,7 +1611,7 @@
Properties
Source:
@@ -1691,7 +1679,7 @@
Returns:

diff --git a/docs/module-api_SearchSuggestionApi.html b/docs/module-api_SearchSuggestionApi.html index da79ad1..f38b302 100644 --- a/docs/module-api_SearchSuggestionApi.html +++ b/docs/module-api_SearchSuggestionApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,9 +207,7 @@

ge
-

Provides keyword search functionality for products, categories, content, brands and custom -suggestions. Returns suggested products, suggested categories, suggested content, suggested -brands and custom suggestions for the given search phrase.

+

Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase.

@@ -420,7 +418,7 @@

Properties
Source:
@@ -486,9 +484,7 @@

-

Provides keyword search functionality for products, categories, content, brands and custom -suggestions. Returns suggested products, suggested categories, suggested content, suggested -brands and custom suggestions for the given search phrase.

+

Provides keyword search functionality for products, categories, content, brands and custom suggestions. Returns suggested products, suggested categories, suggested content, suggested brands and custom suggestions for the given search phrase.

@@ -699,7 +695,7 @@
Properties
Source:
@@ -767,7 +763,7 @@
Returns:

diff --git a/docs/module-api_SessionsApi.html b/docs/module-api_SessionsApi.html index 447d988..bb89c5c 100644 --- a/docs/module-api_SessionsApi.html +++ b/docs/module-api_SessionsApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,14 +207,7 @@

postSessi
-

Exchanges a JWT token into a new session. If the given token is valid, creates a new session, -which is associated with the authenticated or anonymous customer. All Set-Cookie headers -for handling the session are applied on the response. Please note that this resource -always creates a new session with the consequence that you have no session basket after you -do that. Once you created a session from a JWT token you can use this session and stateless -OCAPI calls using the JWT in parallel. There is no additional need to call the bridging -resources again. When a session ID is sent in with the request, the specified session is -ignored. Only the incoming JWT token is used to create a new session.

+

Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is accessible because the basket is marked as secured for this session

@@ -258,7 +251,7 @@

postSessi
Source:
@@ -324,14 +317,7 @@

-

Exchanges a JWT token into a new session. If the given token is valid, creates a new session, -which is associated with the authenticated or anonymous customer. All Set-Cookie headers for -handling the session are applied on the response. Please note that this resource always -creates a new session with the consequence that you have no session basket after you do that. -Once you created a session from a JWT token you can use this session and stateless OCAPI calls -using the JWT in parallel. There is no additional need to call the bridging resources again. -When a session ID is sent in with the request, the specified session is ignored. Only the -incoming JWT token is used to create a new session.

+

Exchanges a valid JWT into a new session, which is associated with the authenticated or anonymous customer. All Set-Cookie headers for handling the session are applied on the response. Only the JWT is used to create the new session. Any session IDs included in the request are ignored. Once you create a session from a JWT, you can use it in parallel with stateless OCAPI calls that use the JWT. There is no need to call the bridging resources again. If the customer is authenticated and has a storefront basket, that basket is transferred into the session and can be retrieved using BasketMgr.getCurrentBasket(), along with sensitive data such as addresses and payment information. The following examples show why this behavior is important to understand as it relates to guest customers: Basket created after the session is created: POST /customers/auth with type “guest” POST /sessions POST /baskets Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is erased from the basket due to security considerations Basket created before the session is created: POST /customers/auth with type “guest” POST /baskets POST /sessions Storefront request (controller with BasketMgr.getCurrentBasket()) -> Sensitive data is accessible because the basket is marked as secured for this session

@@ -375,7 +361,7 @@

Source:
@@ -443,7 +429,7 @@
Returns:

diff --git a/docs/module-api_SiteApi.html b/docs/module-api_SiteApi.html index 4088a54..764f9ad 100644 --- a/docs/module-api_SiteApi.html +++ b/docs/module-api_SiteApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -251,7 +251,7 @@

getSiteSource:
@@ -361,7 +361,7 @@

ge
Source:
@@ -429,7 +429,7 @@

Returns:

diff --git a/docs/module-api_StoresApi.html b/docs/module-api_StoresApi.html index ad874ac..1b902ef 100644 --- a/docs/module-api_StoresApi.html +++ b/docs/module-api_StoresApi.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -207,15 +207,7 @@

getStores -

This resource retrieves a list of stores, for the given site, that are within a configured distance -of a location on the earth. The stores and their distance from the specified location are -returned as a result set of Store objects. The distance is interpreted either in miles or -kilometers depending on the &quot;distance_unit&quot; input parameter. The location can -be specified by either directly providing a latitude/longitude coordinate pair or by providing -a country and a postal code: If a postal code is passed, the resource looks in the -system's geolocation mappings to find the coordinates for this postal code. If no -matching geolocation is found, the resource will return an empty list of stores. If coordinates -are passed, the values for country and postal code are ignored.

+

This resource retrieves a list of stores, for the given site, that are within a configured distance of a location on the earth. The stores and their distance from the specified location are returned as a result set of Store objects. The distance is interpreted either in miles or kilometers depending on the distance_unit input parameter. The location can be specified by either directly providing a latitude/longitude coordinate pair or by providing a country and a postal code: If a postal code is passed, the resource looks in the system's geolocation mappings to find the coordinates for this postal code. If no matching geolocation is found, the resource will return an empty list of stores. If coordinates are passed, the values for country and postal code are ignored.

@@ -309,8 +301,7 @@
Properties
-

The geo coordinate latitude to search for stores -(value range -90.00 .. 90.00).

The geo coordinate latitude to search for stores (value range -90.00 .. 90.00).

The geo coordinate longitude to search for stores -(value range -180.00 .. 180.00).

The geo coordinate longitude to search for stores (value range -180.00 .. 180.00).

The two letter ISO country code e.g. &quot;US&quot;.

The two letter ISO country code e.g. \&quot;US\&quot;.

The postal code e.g. &quot;01801&quot;.

The postal code e.g. \&quot;01801\&quot;.

The distance unit. Supported values are &quot;mi&quot; and &quot;km&quot; -(for miles and kilometers respectively, default is &quot;km&quot;).

The distance unit. Supported values are \&quot;mi\&quot; and \&quot;km\&quot; (for miles and kilometers respectively, default is \&quot;km\&quot;).

The area (radius) in distancUnit where stores will be -searched for (default is half of the earth's perimeter).

The area (radius) in distancUnit where stores will be searched for (default is half of the earth's perimeter).

The geo coordinate latitude to search for stores -(value range -90.00 .. 90.00).

The geo coordinate latitude to search for stores (value range -90.00 .. 90.00).

The geo coordinate longitude to search for stores -(value range -180.00 .. 180.00).

The geo coordinate longitude to search for stores (value range -180.00 .. 180.00).

The two letter ISO country code e.g. &quot;US&quot;.

The two letter ISO country code e.g. \&quot;US\&quot;.

The postal code e.g. &quot;01801&quot;.

The postal code e.g. \&quot;01801\&quot;.

The distance unit. Supported values are &quot;mi&quot; and &quot;km&quot; -(for miles and kilometers respectively, default is &quot;km&quot;).

The distance unit. Supported values are \&quot;mi\&quot; and \&quot;km\&quot; (for miles and kilometers respectively, default is \&quot;km\&quot;).

The area (radius) in distancUnit where stores will be -searched for (default is half of the earth's perimeter).

The area (radius) in distancUnit where stores will be searched for (default is half of the earth's perimeter).

-module:ApiClient +module:api/AiApi @@ -259,7 +259,7 @@
Properties:
Source:
@@ -277,13 +277,13 @@
Properties:
-

(static) AuthRequest

+

(static) ApiClient

-

The AuthRequest model constructor.

+

The ApiClient constructor.

@@ -320,7 +320,7 @@
Properties:
-module:models/AuthRequestModel +module:ApiClient @@ -369,7 +369,7 @@
Properties:
Source:
@@ -387,13 +387,13 @@
Properties:
-

(static) Basket

+

(static) ApproachingDiscount

-

The Basket model constructor.

+

The ApproachingDiscount model constructor.

@@ -430,7 +430,7 @@
Properties:
-module:models/BasketModel +module:models/ApproachingDiscount @@ -479,7 +479,7 @@
Properties:
Source:
@@ -497,13 +497,13 @@
Properties:
-

(static) BasketPaymentInstrumentRequest

+

(static) ApproachingDiscountResult

-

The BasketPaymentInstrumentRequest model constructor.

+

The ApproachingDiscountResult model constructor.

@@ -540,7 +540,7 @@
Properties:
-module:models/BasketPaymentInstrumentRequestModel +module:models/ApproachingDiscountResult @@ -589,7 +589,7 @@
Properties:
Source:
@@ -607,13 +607,13 @@
Properties:
-

(static) BasketsApi

+

(static) AuthRequest

-

The BasketsApi service constructor.

+

The AuthRequest model constructor.

@@ -650,7 +650,7 @@
Properties:
-module:api/BasketsApi +module:models/AuthRequest @@ -699,7 +699,7 @@
Properties:
Source:
@@ -717,13 +717,13 @@
Properties:
-

(static) BasketsResult

+

(static) Basket

-

The BasketsResult model constructor.

+

The Basket model constructor.

@@ -760,7 +760,7 @@
Properties:
-module:models/BasketsResultModel +module:models/Basket @@ -809,7 +809,7 @@
Properties:
Source:
@@ -827,13 +827,13 @@
Properties:
-

(static) BonusDiscountLineItem

+

(static) BasketPaymentInstrumentRequest

-

The BonusDiscountLineItem model constructor.

+

The BasketPaymentInstrumentRequest model constructor.

@@ -870,7 +870,7 @@
Properties:
-module:models/BonusDiscountLineItemModel +module:models/BasketPaymentInstrumentRequest @@ -919,7 +919,7 @@
Properties:
Source:
@@ -937,13 +937,13 @@
Properties:
-

(static) BoolFilter

+

(static) BasketReference

-

The BoolFilter model constructor.

+

The BasketReference model constructor.

@@ -980,7 +980,7 @@
Properties:
-module:models/BoolFilterModel +module:models/BasketReference @@ -1029,7 +1029,7 @@
Properties:
Source:
@@ -1047,13 +1047,13 @@
Properties:
-

(static) BoolQuery

+

(static) BasketsApi

-

The BoolQuery model constructor.

+

The BasketsApi service constructor.

@@ -1090,7 +1090,7 @@
Properties:
-module:models/BoolQueryModel +module:api/BasketsApi @@ -1139,7 +1139,7 @@
Properties:
Source:
@@ -1157,13 +1157,13 @@
Properties:
-

(static) BundledProduct

+

(static) BasketsResult

-

The BundledProduct model constructor.

+

The BasketsResult model constructor.

@@ -1200,7 +1200,7 @@
Properties:
-module:models/BundledProductModel +module:models/BasketsResult @@ -1249,7 +1249,7 @@
Properties:
Source:
@@ -1267,13 +1267,13 @@
Properties:
-

(static) CategoriesApi

+

(static) BonusDiscountLineItem

-

The CategoriesApi service constructor.

+

The BonusDiscountLineItem model constructor.

@@ -1310,7 +1310,7 @@
Properties:
-module:api/CategoriesApi +module:models/BonusDiscountLineItem @@ -1359,7 +1359,7 @@
Properties:
Source:
@@ -1377,13 +1377,13 @@
Properties:
-

(static) Category

+

(static) BoolFilter

-

The Category model constructor.

+

The BoolFilter model constructor.

@@ -1420,7 +1420,7 @@
Properties:
-module:models/CategoryModel +module:models/BoolFilter @@ -1469,7 +1469,7 @@
Properties:
Source:
@@ -1487,13 +1487,13 @@
Properties:
-

(static) CategoryResult

+

(static) BoolQuery

-

The CategoryResult model constructor.

+

The BoolQuery model constructor.

@@ -1530,7 +1530,7 @@
Properties:
-module:models/CategoryResultModel +module:models/BoolQuery @@ -1579,7 +1579,7 @@
Properties:
Source:
@@ -1597,13 +1597,13 @@
Properties:
-

(static) Content

+

(static) BundledProduct

-

The Content model constructor.

+

The BundledProduct model constructor.

@@ -1640,7 +1640,7 @@
Properties:
-module:models/ContentModel +module:models/BundledProduct @@ -1689,7 +1689,7 @@
Properties:
Source:
@@ -1707,13 +1707,13 @@
Properties:
-

(static) ContentApi

+

(static) CategoriesApi

-

The ContentApi service constructor.

+

The CategoriesApi service constructor.

@@ -1750,7 +1750,7 @@
Properties:
-module:api/ContentApi +module:api/CategoriesApi @@ -1799,7 +1799,7 @@
Properties:
Source:
@@ -1817,13 +1817,13 @@
Properties:
-

(static) ContentFolder

+

(static) Category

-

The ContentFolder model constructor.

+

The Category model constructor.

@@ -1860,7 +1860,7 @@
Properties:
-module:models/ContentFolderModel +module:models/Category @@ -1909,7 +1909,7 @@
Properties:
Source:
@@ -1927,13 +1927,13 @@
Properties:
-

(static) ContentFolderResult

+

(static) CategoryResult

-

The ContentFolderResult model constructor.

+

The CategoryResult model constructor.

@@ -1970,7 +1970,7 @@
Properties:
-module:models/ContentFolderResultModel +module:models/CategoryResult @@ -2019,7 +2019,7 @@
Properties:
Source:
@@ -2037,13 +2037,13 @@
Properties:
-

(static) ContentResult

+

(static) Content

-

The ContentResult model constructor.

+

The Content model constructor.

@@ -2080,7 +2080,7 @@
Properties:
-module:models/ContentResultModel +module:models/Content @@ -2129,7 +2129,7 @@
Properties:
Source:
@@ -2147,13 +2147,13 @@
Properties:
-

(static) ContentSearchApi

+

(static) ContentApi

-

The ContentSearchApi service constructor.

+

The ContentApi service constructor.

@@ -2190,7 +2190,7 @@
Properties:
-module:api/ContentSearchApi +module:api/ContentApi @@ -2239,7 +2239,7 @@
Properties:
Source:
@@ -2257,13 +2257,13 @@
Properties:
-

(static) ContentSearchRefinement

+

(static) ContentFolder

-

The ContentSearchRefinement model constructor.

+

The ContentFolder model constructor.

@@ -2300,7 +2300,7 @@
Properties:
-module:models/ContentSearchRefinementModel +module:models/ContentFolder @@ -2349,7 +2349,7 @@
Properties:
Source:
@@ -2367,13 +2367,13 @@
Properties:
-

(static) ContentSearchRefinementValue

+

(static) ContentFolderResult

-

The ContentSearchRefinementValue model constructor.

+

The ContentFolderResult model constructor.

@@ -2410,7 +2410,7 @@
Properties:
-module:models/ContentSearchRefinementValueModel +module:models/ContentFolderResult @@ -2459,7 +2459,7 @@
Properties:
Source:
@@ -2477,13 +2477,13 @@
Properties:
-

(static) ContentSearchResult

+

(static) ContentResult

-

The ContentSearchResult model constructor.

+

The ContentResult model constructor.

@@ -2520,7 +2520,7 @@
Properties:
-module:models/ContentSearchResultModel +module:models/ContentResult @@ -2569,7 +2569,7 @@
Properties:
Source:
@@ -2587,13 +2587,13 @@
Properties:
-

(static) CouponItem

+

(static) ContentSearchApi

-

The CouponItem model constructor.

+

The ContentSearchApi service constructor.

@@ -2630,7 +2630,7 @@
Properties:
-module:models/CouponItemModel +module:api/ContentSearchApi @@ -2679,7 +2679,7 @@
Properties:
Source:
@@ -2697,13 +2697,13 @@
Properties:
-

(static) Customer

+

(static) ContentSearchRefinement

-

The Customer model constructor.

+

The ContentSearchRefinement model constructor.

@@ -2740,7 +2740,7 @@
Properties:
-module:models/CustomerModel +module:models/ContentSearchRefinement @@ -2789,7 +2789,7 @@
Properties:
Source:
@@ -2807,13 +2807,13 @@
Properties:
-

(static) CustomerAddress

+

(static) ContentSearchRefinementValue

-

The CustomerAddress model constructor.

+

The ContentSearchRefinementValue model constructor.

@@ -2850,7 +2850,7 @@
Properties:
-module:models/CustomerAddressModel +module:models/ContentSearchRefinementValue @@ -2899,7 +2899,7 @@
Properties:
Source:
@@ -2917,13 +2917,13 @@
Properties:
- +

(static) ContentSearchResult

-

The CustomerAddressLink model constructor.

+

The ContentSearchResult model constructor.

@@ -2960,7 +2960,7 @@
Properties:
-module:models/CustomerAddressLinkModel +module:models/ContentSearchResult @@ -3009,7 +3009,7 @@
Properties:
Source:
@@ -3027,13 +3027,13 @@
Properties:
-

(static) CustomerAddressResult

+

(static) CouponItem

-

The CustomerAddressResult model constructor.

+

The CouponItem model constructor.

@@ -3070,7 +3070,7 @@
Properties:
-module:models/CustomerAddressResultModel +module:models/CouponItem @@ -3119,7 +3119,7 @@
Properties:
Source:
@@ -3137,13 +3137,13 @@
Properties:
-

(static) CustomerInfo

+

(static) Customer

-

The CustomerInfo model constructor.

+

The Customer model constructor.

@@ -3180,7 +3180,7 @@
Properties:
-module:models/CustomerInfoModel +module:models/Customer @@ -3229,7 +3229,7 @@
Properties:
Source:
@@ -3247,13 +3247,13 @@
Properties:
-

(static) CustomerOrderResult

+

(static) CustomerAddress

-

The CustomerOrderResult model constructor.

+

The CustomerAddress model constructor.

@@ -3290,7 +3290,7 @@
Properties:
-module:models/CustomerOrderResultModel +module:models/CustomerAddress @@ -3339,7 +3339,7 @@
Properties:
Source:
@@ -3357,13 +3357,13 @@
Properties:
-

(static) CustomerPaymentCardRequest

+
-

The CustomerPaymentCardRequest model constructor.

+

The CustomerAddressLink model constructor.

@@ -3400,7 +3400,7 @@
Properties:
-module:models/CustomerPaymentCardRequestModel +module:models/CustomerAddressLink @@ -3449,7 +3449,7 @@
Properties:
Source:
@@ -3467,13 +3467,13 @@
Properties:
-

(static) CustomerPaymentInstrument

+

(static) CustomerAddressResult

-

The CustomerPaymentInstrument model constructor.

+

The CustomerAddressResult model constructor.

@@ -3510,7 +3510,7 @@
Properties:
-module:models/CustomerPaymentInstrumentModel +module:models/CustomerAddressResult @@ -3559,7 +3559,7 @@
Properties:
Source:
@@ -3577,13 +3577,13 @@
Properties:
-

(static) CustomerPaymentInstrumentRequest

+

(static) CustomerInfo

-

The CustomerPaymentInstrumentRequest model constructor.

+

The CustomerInfo model constructor.

@@ -3620,7 +3620,7 @@
Properties:
-module:models/CustomerPaymentInstrumentRequestModel +module:models/CustomerInfo @@ -3669,7 +3669,7 @@
Properties:
Source:
@@ -3687,13 +3687,13 @@
Properties:
-

(static) CustomerPaymentInstrumentResult

+

(static) CustomerOrderResult

-

The CustomerPaymentInstrumentResult model constructor.

+

The CustomerOrderResult model constructor.

@@ -3730,7 +3730,7 @@
Properties:
-module:models/CustomerPaymentInstrumentResultModel +module:models/CustomerOrderResult @@ -3779,7 +3779,7 @@
Properties:
Source:
@@ -3797,13 +3797,13 @@
Properties:
-

(static) CustomerProductList

+

(static) CustomerPaymentCardRequest

-

The CustomerProductList model constructor.

+

The CustomerPaymentCardRequest model constructor.

@@ -3840,7 +3840,7 @@
Properties:
-module:models/CustomerProductListModel +module:models/CustomerPaymentCardRequest @@ -3889,7 +3889,7 @@
Properties:
Source:
@@ -3907,13 +3907,13 @@
Properties:
-

(static) CustomerProductListItem

+

(static) CustomerPaymentInstrument

-

The CustomerProductListItem model constructor.

+

The CustomerPaymentInstrument model constructor.

@@ -3950,7 +3950,7 @@
Properties:
-module:models/CustomerProductListItemModel +module:models/CustomerPaymentInstrument @@ -3999,7 +3999,7 @@
Properties:
Source:
@@ -4017,13 +4017,13 @@
Properties:
- +

(static) CustomerPaymentInstrumentRequest

-

The CustomerProductListItemLink model constructor.

+

The CustomerPaymentInstrumentRequest model constructor.

@@ -4060,7 +4060,7 @@
Properties:
-module:models/CustomerProductListItemLinkModel +module:models/CustomerPaymentInstrumentRequest @@ -4109,7 +4109,7 @@
Properties:
Source:
@@ -4127,13 +4127,13 @@
Properties:
-

(static) CustomerProductListItemResult

+

(static) CustomerPaymentInstrumentResult

-

The CustomerProductListItemResult model constructor.

+

The CustomerPaymentInstrumentResult model constructor.

@@ -4170,7 +4170,7 @@
Properties:
-module:models/CustomerProductListItemResultModel +module:models/CustomerPaymentInstrumentResult @@ -4219,7 +4219,7 @@
Properties:
Source:
@@ -4237,13 +4237,13 @@
Properties:
-

(static) CustomerProductListRegistrant

+

(static) CustomerProductList

-

The CustomerProductListRegistrant model constructor.

+

The CustomerProductList model constructor.

@@ -4280,7 +4280,7 @@
Properties:
-module:models/CustomerProductListRegistrantModel +module:models/CustomerProductList @@ -4329,7 +4329,7 @@
Properties:
Source:
@@ -4347,13 +4347,13 @@
Properties:
-

(static) CustomerProductListResult

+

(static) CustomerProductListItem

-

The CustomerProductListResult model constructor.

+

The CustomerProductListItem model constructor.

@@ -4390,7 +4390,7 @@
Properties:
-module:models/CustomerProductListResultModel +module:models/CustomerProductListItem @@ -4439,7 +4439,7 @@
Properties:
Source:
@@ -4457,13 +4457,13 @@
Properties:
-

(static) CustomerRegistration

+
-

The CustomerRegistration model constructor.

+

The CustomerProductListItemLink model constructor.

@@ -4500,7 +4500,7 @@
Properties:
-module:models/CustomerRegistrationModel +module:models/CustomerProductListItemLink @@ -4549,7 +4549,7 @@
Properties:
Source:
@@ -4567,13 +4567,13 @@
Properties:
-

(static) CustomersApi

+

(static) CustomerProductListItemPurchase

-

The CustomersApi service constructor.

+

The CustomerProductListItemPurchase model constructor.

@@ -4610,7 +4610,7 @@
Properties:
-module:api/CustomersApi +module:models/CustomerProductListItemPurchase @@ -4659,7 +4659,7 @@
Properties:
Source:
@@ -4677,13 +4677,13 @@
Properties:
-

(static) CustomObject

+

(static) CustomerProductListItemPurchaseResult

-

The CustomObject model constructor.

+

The CustomerProductListItemPurchaseResult model constructor.

@@ -4720,7 +4720,7 @@
Properties:
-module:models/CustomObjectModel +module:models/CustomerProductListItemPurchaseResult @@ -4769,7 +4769,7 @@
Properties:
Source:
@@ -4787,13 +4787,13 @@
Properties:
-

(static) CustomObjectsApi

+

(static) CustomerProductListItemResult

-

The CustomObjectsApi service constructor.

+

The CustomerProductListItemResult model constructor.

@@ -4830,7 +4830,7 @@
Properties:
-module:api/CustomObjectsApi +module:models/CustomerProductListItemResult @@ -4879,7 +4879,7 @@
Properties:
Source:
@@ -4897,13 +4897,13 @@
Properties:
-

(static) Discount

+

(static) CustomerProductListRegistrant

-

The Discount model constructor.

+

The CustomerProductListRegistrant model constructor.

@@ -4940,7 +4940,7 @@
Properties:
-module:models/DiscountModel +module:models/CustomerProductListRegistrant @@ -4989,7 +4989,7 @@
Properties:
Source:
@@ -5007,13 +5007,13 @@
Properties:
-

(static) Fault

+

(static) CustomerProductListResult

-

The Fault model constructor.

+

The CustomerProductListResult model constructor.

@@ -5050,7 +5050,7 @@
Properties:
-module:models/FaultModel +module:models/CustomerProductListResult @@ -5099,7 +5099,7 @@
Properties:
Source:
@@ -5117,13 +5117,13 @@
Properties:
-

(static) FilteredQuery

+

(static) CustomerRegistration

-

The FilteredQuery model constructor.

+

The CustomerRegistration model constructor.

@@ -5160,7 +5160,7 @@
Properties:
-module:models/FilteredQueryModel +module:models/CustomerRegistration @@ -5209,7 +5209,7 @@
Properties:
Source:
@@ -5227,13 +5227,13 @@
Properties:
-

(static) FoldersApi

+

(static) CustomersApi

-

The FoldersApi service constructor.

+

The CustomersApi service constructor.

@@ -5270,7 +5270,7 @@
Properties:
-module:api/FoldersApi +module:api/CustomersApi @@ -5319,7 +5319,7 @@
Properties:
Source:
@@ -5337,13 +5337,13 @@
Properties:
-

(static) GiftCertificate

+

(static) CustomObject

-

The GiftCertificate model constructor.

+

The CustomObject model constructor.

@@ -5380,7 +5380,7 @@
Properties:
-module:models/GiftCertificateModel +module:models/CustomObject @@ -5429,7 +5429,7 @@
Properties:
Source:
@@ -5447,13 +5447,13 @@
Properties:
-

(static) GiftCertificateApi

+

(static) CustomObjectsApi

-

The GiftCertificateApi service constructor.

+

The CustomObjectsApi service constructor.

@@ -5490,7 +5490,7 @@
Properties:
-module:api/GiftCertificateApi +module:api/CustomObjectsApi @@ -5539,7 +5539,7 @@
Properties:
Source:
@@ -5557,13 +5557,13 @@
Properties:
-

(static) GiftCertificateItem

+

(static) Discount

-

The GiftCertificateItem model constructor.

+

The Discount model constructor.

@@ -5600,7 +5600,7 @@
Properties:
-module:models/GiftCertificateItemModel +module:models/Discount @@ -5649,7 +5649,7 @@
Properties:
Source:
@@ -5667,13 +5667,13 @@
Properties:
-

(static) GiftCertificateRequest

+

(static) DiscountRequest

-

The GiftCertificateRequest model constructor.

+

The DiscountRequest model constructor.

@@ -5710,7 +5710,7 @@
Properties:
-module:models/GiftCertificateRequestModel +module:models/DiscountRequest @@ -5759,7 +5759,7 @@
Properties:
Source:
@@ -5777,13 +5777,13 @@
Properties:
-

(static) Image

+

(static) Fault

-

The Image model constructor.

+

The Fault model constructor.

@@ -5820,7 +5820,7 @@
Properties:
-module:models/ImageModel +module:models/FaultModel @@ -5869,7 +5869,7 @@
Properties:
Source:
@@ -5887,13 +5887,13 @@
Properties:
-

(static) ImageGroup

+

(static) FilteredQuery

-

The ImageGroup model constructor.

+

The FilteredQuery model constructor.

@@ -5930,7 +5930,7 @@
Properties:
-module:models/ImageGroupModel +module:models/FilteredQuery @@ -5979,7 +5979,7 @@
Properties:
Source:
@@ -5997,13 +5997,13 @@
Properties:
-

(static) Inventory

+

(static) FoldersApi

-

The Inventory model constructor.

+

The FoldersApi service constructor.

@@ -6040,7 +6040,7 @@
Properties:
-module:models/InventoryModel +module:api/FoldersApi @@ -6089,7 +6089,7 @@
Properties:
Source:
@@ -6107,13 +6107,13 @@
Properties:
-

(static) Locale

+

(static) GiftCertificate

-

The Locale model constructor.

+

The GiftCertificate model constructor.

@@ -6150,7 +6150,7 @@
Properties:
-module:models/LocaleModel +module:models/GiftCertificate @@ -6199,7 +6199,7 @@
Properties:
Source:
@@ -6217,13 +6217,13 @@
Properties:
-

(static) Master

+

(static) GiftCertificateApi

-

The Master model constructor.

+

The GiftCertificateApi service constructor.

@@ -6260,7 +6260,7 @@
Properties:
-module:models/MasterModel +module:api/GiftCertificateApi @@ -6309,7 +6309,7 @@
Properties:
Source:
@@ -6327,13 +6327,13 @@
Properties:
-

(static) NestedQuery

+

(static) GiftCertificateItem

-

The NestedQuery model constructor.

+

The GiftCertificateItem model constructor.

@@ -6370,7 +6370,7 @@
Properties:
-module:models/NestedQueryModel +module:models/GiftCertificateItem @@ -6419,7 +6419,7 @@
Properties:
Source:
@@ -6437,13 +6437,13 @@
Properties:
-

(static) Note

+

(static) GiftCertificateRequest

-

The Note model constructor.

+

The GiftCertificateRequest model constructor.

@@ -6480,7 +6480,7 @@
Properties:
-module:models/NoteModel +module:models/GiftCertificateRequest @@ -6529,7 +6529,7 @@
Properties:
Source:
@@ -6547,13 +6547,13 @@
Properties:
-

(static) NotesResult

+

(static) Image

-

The NotesResult model constructor.

+

The Image model constructor.

@@ -6590,7 +6590,7 @@
Properties:
-module:models/NotesResultModel +module:models/Image @@ -6639,7 +6639,7 @@
Properties:
Source:
@@ -6657,13 +6657,13 @@
Properties:
-

(static) Option

+

(static) ImageGroup

-

The Option model constructor.

+

The ImageGroup model constructor.

@@ -6700,7 +6700,7 @@
Properties:
-module:models/OptionModel +module:models/ImageGroup @@ -6749,7 +6749,7 @@
Properties:
Source:
@@ -6767,13 +6767,13 @@
Properties:
-

(static) OptionItem

+

(static) Inventory

-

The OptionItem model constructor.

+

The Inventory model constructor.

@@ -6810,7 +6810,7 @@
Properties:
-module:models/OptionItemModel +module:models/Inventory @@ -6859,7 +6859,7 @@
Properties:
Source:
@@ -6877,13 +6877,13 @@
Properties:
-

(static) OptionValue

+

(static) Locale

-

The OptionValue model constructor.

+

The Locale model constructor.

@@ -6920,7 +6920,7 @@
Properties:
-module:models/OptionValueModel +module:models/Locale @@ -6969,7 +6969,7 @@
Properties:
Source:
@@ -6987,7 +6987,777 @@
Properties:
-

(static) Order

+

(static) Master

+ + + + +
+

The Master model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/Master + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) NestedQuery

+ + + + +
+

The NestedQuery model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/NestedQuery + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) Note

+ + + + +
+

The Note model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/Note + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) NotesResult

+ + + + +
+

The NotesResult model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/NotesResult + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) Option

+ + + + +
+

The Option model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/Option + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OptionItem

+ + + + +
+

The OptionItem model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OptionItem + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OptionValue

+ + + + +
+

The OptionValue model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OptionValue + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) Order

@@ -7030,7 +7800,667 @@
Properties:
-module:models/OrderModel +module:models/Order + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrderAddress

+ + + + +
+

The OrderAddress model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OrderAddress + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrderPaymentCardRequest

+ + + + +
+

The OrderPaymentCardRequest model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OrderPaymentCardRequest + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrderPaymentInstrument

+ + + + +
+

The OrderPaymentInstrument model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OrderPaymentInstrument + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrderPaymentInstrumentRequest

+ + + + +
+

The OrderPaymentInstrumentRequest model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/OrderPaymentInstrumentRequest + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrdersApi

+ + + + +
+

The OrdersApi service constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:api/OrdersApi + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) OrderSearchApi

+ + + + +
+

The OrderSearchApi service constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:api/OrderSearchApi @@ -7079,7 +8509,7 @@
Properties:
Source:
@@ -7097,13 +8527,13 @@
Properties:
-

(static) OrderAddress

+

(static) OrderSearchHit

-

The OrderAddress model constructor.

+

The OrderSearchHit model constructor.

@@ -7140,7 +8570,7 @@
Properties:
-module:models/OrderAddressModel +module:models/OrderSearchHit @@ -7189,7 +8619,7 @@
Properties:
Source:
@@ -7207,13 +8637,13 @@
Properties:
-

(static) OrderPaymentCardRequest

+

(static) OrderSearchRequest

-

The OrderPaymentCardRequest model constructor.

+

The OrderSearchRequest model constructor.

@@ -7250,7 +8680,7 @@
Properties:
-module:models/OrderPaymentCardRequestModel +module:models/OrderSearchRequest @@ -7299,7 +8729,7 @@
Properties:
Source:
@@ -7317,13 +8747,13 @@
Properties:
-

(static) OrderPaymentInstrument

+

(static) OrderSearchResult

-

The OrderPaymentInstrument model constructor.

+

The OrderSearchResult model constructor.

@@ -7360,7 +8790,7 @@
Properties:
-module:models/OrderPaymentInstrumentModel +module:models/OrderSearchResult @@ -7409,7 +8839,7 @@
Properties:
Source:
@@ -7427,13 +8857,13 @@
Properties:
-

(static) OrderPaymentInstrumentRequest

+

(static) PasswordChangeRequest

-

The OrderPaymentInstrumentRequest model constructor.

+

The PasswordChangeRequest model constructor.

@@ -7470,7 +8900,7 @@
Properties:
-module:models/OrderPaymentInstrumentRequestModel +module:models/PasswordChangeRequest @@ -7519,7 +8949,7 @@
Properties:
Source:
@@ -7537,13 +8967,13 @@
Properties:
-

(static) OrdersApi

+

(static) PasswordReset

-

The OrdersApi service constructor.

+

The PasswordReset model constructor.

@@ -7580,7 +9010,7 @@
Properties:
-module:api/OrdersApi +module:models/PasswordReset @@ -7629,7 +9059,7 @@
Properties:
Source:
@@ -7647,13 +9077,13 @@
Properties:
-

(static) OrderSearchApi

+

(static) PaymentBankAccount

-

The OrderSearchApi service constructor.

+

The PaymentBankAccount model constructor.

@@ -7690,7 +9120,7 @@
Properties:
-module:api/OrderSearchApi +module:models/PaymentBankAccount @@ -7739,7 +9169,7 @@
Properties:
Source:
@@ -7757,13 +9187,13 @@
Properties:
-

(static) OrderSearchHit

+

(static) PaymentBankAccountRequest

-

The OrderSearchHit model constructor.

+

The PaymentBankAccountRequest model constructor.

@@ -7800,7 +9230,7 @@
Properties:
-module:models/OrderSearchHitModel +module:models/PaymentBankAccountRequest @@ -7849,7 +9279,7 @@
Properties:
Source:
@@ -7867,13 +9297,13 @@
Properties:
-

(static) OrderSearchRequest

+

(static) PaymentCard

-

The OrderSearchRequest model constructor.

+

The PaymentCard model constructor.

@@ -7910,7 +9340,7 @@
Properties:
-module:models/OrderSearchRequestModel +module:models/PaymentCard @@ -7959,7 +9389,7 @@
Properties:
Source:
@@ -7977,13 +9407,13 @@
Properties:
-

(static) OrderSearchResult

+

(static) PaymentCardSpec

-

The OrderSearchResult model constructor.

+

The PaymentCardSpec model constructor.

@@ -8020,7 +9450,7 @@
Properties:
-module:models/OrderSearchResultModel +module:models/PaymentCardSpec @@ -8069,7 +9499,7 @@
Properties:
Source:
@@ -8087,13 +9517,13 @@
Properties:
-

(static) PasswordChangeRequest

+

(static) PaymentMethod

-

The PasswordChangeRequest model constructor.

+

The PaymentMethod model constructor.

@@ -8130,7 +9560,7 @@
Properties:
-module:models/PasswordChangeRequestModel +module:models/PaymentMethod @@ -8179,7 +9609,7 @@
Properties:
Source:
@@ -8197,13 +9627,13 @@
Properties:
-

(static) PasswordReset

+

(static) PaymentMethodResult

-

The PasswordReset model constructor.

+

The PaymentMethodResult model constructor.

@@ -8240,7 +9670,7 @@
Properties:
-module:models/PasswordResetModel +module:models/PaymentMethodResult @@ -8289,7 +9719,7 @@
Properties:
Source:
@@ -8307,13 +9737,13 @@
Properties:
-

(static) PaymentBankAccount

+

(static) PriceAdjustment

-

The PaymentBankAccount model constructor.

+

The PriceAdjustment model constructor.

@@ -8350,7 +9780,7 @@
Properties:
-module:models/PaymentBankAccountModel +module:models/PriceAdjustment @@ -8399,7 +9829,7 @@
Properties:
Source:
@@ -8417,13 +9847,13 @@
Properties:
-

(static) PaymentBankAccountRequest

+

(static) PriceAdjustmentLimit

-

The PaymentBankAccountRequest model constructor.

+

The PriceAdjustmentLimit model constructor.

@@ -8460,7 +9890,7 @@
Properties:
-module:models/PaymentBankAccountRequestModel +module:models/PriceAdjustmentLimit @@ -8509,7 +9939,7 @@
Properties:
Source:
@@ -8527,13 +9957,13 @@
Properties:
-

(static) PaymentCard

+

(static) PriceAdjustmentLimits

-

The PaymentCard model constructor.

+

The PriceAdjustmentLimits model constructor.

@@ -8570,7 +10000,7 @@
Properties:
-module:models/PaymentCardModel +module:models/PriceAdjustmentLimits @@ -8619,7 +10049,7 @@
Properties:
Source:
@@ -8637,13 +10067,13 @@
Properties:
-

(static) PaymentCardSpec

+

(static) PriceAdjustmentLimitsApi

-

The PaymentCardSpec model constructor.

+

The PriceAdjustmentLimitsApi service constructor.

@@ -8680,7 +10110,7 @@
Properties:
-module:models/PaymentCardSpecModel +module:api/PriceAdjustmentLimitsApi @@ -8729,7 +10159,7 @@
Properties:
Source:
@@ -8747,13 +10177,13 @@
Properties:
-

(static) PaymentMethod

+

(static) PriceAdjustmentRequest

-

The PaymentMethod model constructor.

+

The PriceAdjustmentRequest model constructor.

@@ -8790,7 +10220,7 @@
Properties:
-module:models/PaymentMethodModel +module:models/PriceAdjustmentRequest @@ -8839,7 +10269,7 @@
Properties:
Source:
@@ -8857,13 +10287,123 @@
Properties:
-

(static) PaymentMethodResult

+

(static) Product

-

The PaymentMethodResult model constructor.

+

The Product model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/Product + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
+

The ProductDetailsLink model constructor.

@@ -8900,7 +10440,7 @@
Properties:
-module:models/PaymentMethodResultModel +module:models/ProductDetailsLink @@ -8949,7 +10489,7 @@
Properties:
Source:
@@ -8967,13 +10507,13 @@
Properties:
-

(static) PriceAdjustment

+

(static) ProductItem

-

The PriceAdjustment model constructor.

+

The ProductItem model constructor.

@@ -9010,7 +10550,7 @@
Properties:
-module:models/PriceAdjustmentModel +module:models/ProductItem @@ -9059,7 +10599,7 @@
Properties:
Source:
@@ -9077,13 +10617,13 @@
Properties:
-

(static) PriceAdjustmentLimit

+
-

The PriceAdjustmentLimit model constructor.

+

The ProductLink model constructor.

@@ -9120,7 +10660,7 @@
Properties:
-module:models/PriceAdjustmentLimitModel +module:models/ProductLink @@ -9169,7 +10709,7 @@
Properties:
Source:
@@ -9187,13 +10727,13 @@
Properties:
-

(static) PriceAdjustmentLimits

+

(static) ProductListEvent

-

The PriceAdjustmentLimits model constructor.

+

The ProductListEvent model constructor.

@@ -9230,7 +10770,7 @@
Properties:
-module:models/PriceAdjustmentLimitsModel +module:models/ProductListEvent @@ -9279,7 +10819,7 @@
Properties:
Source:
@@ -9297,13 +10837,13 @@
Properties:
-

(static) PriceAdjustmentLimitsApi

+

(static) ProductListItemReference

-

The PriceAdjustmentLimitsApi service constructor.

+

The ProductListItemReference model constructor.

@@ -9340,7 +10880,7 @@
Properties:
-module:api/PriceAdjustmentLimitsApi +module:models/ProductListItemReference @@ -9389,7 +10929,7 @@
Properties:
Source:
@@ -9407,13 +10947,13 @@
Properties:
-

(static) Product

+
-

The Product model constructor.

+

The ProductListLink model constructor.

@@ -9450,7 +10990,7 @@
Properties:
-module:models/ProductModel +module:models/ProductListLink @@ -9499,7 +11039,7 @@
Properties:
Source:
@@ -9517,13 +11057,13 @@
Properties:
- +

(static) ProductListRegistrant

-

The ProductDetailsLink model constructor.

+

The ProductListRegistrant model constructor.

@@ -9560,7 +11100,7 @@
Properties:
-module:models/ProductDetailsLinkModel +module:models/ProductListRegistrant @@ -9609,7 +11149,7 @@
Properties:
Source:
@@ -9627,13 +11167,13 @@
Properties:
-

(static) ProductItem

+

(static) ProductListsApi

-

The ProductItem model constructor.

+

The ProductListsApi service constructor.

@@ -9670,7 +11210,7 @@
Properties:
-module:models/ProductItemModel +module:api/ProductListsApi @@ -9719,7 +11259,7 @@
Properties:
Source:
@@ -9737,13 +11277,13 @@
Properties:
- +

(static) ProductListShippingAddress

-

The ProductLink model constructor.

+

The ProductListShippingAddress model constructor.

@@ -9780,7 +11320,7 @@
Properties:
-module:models/ProductLinkModel +module:models/ProductListShippingAddress @@ -9829,7 +11369,7 @@
Properties:
Source:
@@ -9847,13 +11387,13 @@
Properties:
-

(static) ProductListEvent

+

(static) ProductPromotion

-

The ProductListEvent model constructor.

+

The ProductPromotion model constructor.

@@ -9890,7 +11430,7 @@
Properties:
-module:models/ProductListEventModel +module:models/ProductPromotion @@ -9939,7 +11479,7 @@
Properties:
Source:
@@ -9957,13 +11497,13 @@
Properties:
-

(static) ProductListItemReference

+

(static) ProductRecommendationsResult

-

The ProductListItemReference model constructor.

+

The ProductRecommendationsResult model constructor.

@@ -10000,7 +11540,7 @@
Properties:
-module:models/ProductListItemReferenceModel +module:models/ProductRecommendationsResult @@ -10049,7 +11589,7 @@
Properties:
Source:
@@ -10067,13 +11607,13 @@
Properties:
- +

(static) ProductRef

-

The ProductListLink model constructor.

+

The ProductRef model constructor.

@@ -10110,7 +11650,7 @@
Properties:
-module:models/ProductListLinkModel +module:models/ProductRef @@ -10159,7 +11699,7 @@
Properties:
Source:
@@ -10177,13 +11717,13 @@
Properties:
-

(static) ProductListRegistrant

+

(static) ProductResult

-

The ProductListRegistrant model constructor.

+

The ProductResult model constructor.

@@ -10220,7 +11760,7 @@
Properties:
-module:models/ProductListRegistrantModel +module:models/ProductResult @@ -10269,7 +11809,7 @@
Properties:
Source:
@@ -10287,13 +11827,13 @@
Properties:
-

(static) ProductListsApi

+

(static) ProductsApi

-

The ProductListsApi service constructor.

+

The ProductsApi service constructor.

@@ -10330,7 +11870,7 @@
Properties:
-module:api/ProductListsApi +module:api/ProductsApi @@ -10379,7 +11919,7 @@
Properties:
Source:
@@ -10397,13 +11937,13 @@
Properties:
-

(static) ProductListShippingAddress

+

(static) ProductSearchApi

-

The ProductListShippingAddress model constructor.

+

The ProductSearchApi service constructor.

@@ -10440,7 +11980,7 @@
Properties:
-module:models/ProductListShippingAddressModel +module:api/ProductSearchApi @@ -10489,7 +12029,7 @@
Properties:
Source:
@@ -10507,13 +12047,13 @@
Properties:
-

(static) ProductPromotion

+

(static) ProductSearchHit

-

The ProductPromotion model constructor.

+

The ProductSearchHit model constructor.

@@ -10550,7 +12090,7 @@
Properties:
-module:models/ProductPromotionModel +module:models/ProductSearchHit @@ -10599,7 +12139,7 @@
Properties:
Source:
@@ -10617,13 +12157,13 @@
Properties:
-

(static) ProductResult

+

(static) ProductSearchRefinement

-

The ProductResult model constructor.

+

The ProductSearchRefinement model constructor.

@@ -10660,7 +12200,7 @@
Properties:
-module:models/ProductResultModel +module:models/ProductSearchRefinement @@ -10709,7 +12249,7 @@
Properties:
Source:
@@ -10727,13 +12267,13 @@
Properties:
-

(static) ProductsApi

+

(static) ProductSearchRefinementValue

-

The ProductsApi service constructor.

+

The ProductSearchRefinementValue model constructor.

@@ -10770,7 +12310,7 @@
Properties:
-module:api/ProductsApi +module:models/ProductSearchRefinementValue @@ -10819,7 +12359,7 @@
Properties:
Source:
@@ -10837,13 +12377,13 @@
Properties:
-

(static) ProductSearchApi

+

(static) ProductSearchResult

-

The ProductSearchApi service constructor.

+

The ProductSearchResult model constructor.

@@ -10880,7 +12420,7 @@
Properties:
-module:api/ProductSearchApi +module:models/ProductSearchResult @@ -10929,7 +12469,7 @@
Properties:
Source:
@@ -10947,13 +12487,13 @@
Properties:
-

(static) ProductSearchHit

+

(static) ProductSearchSortingOption

-

The ProductSearchHit model constructor.

+

The ProductSearchSortingOption model constructor.

@@ -10990,7 +12530,7 @@
Properties:
-module:models/ProductSearchHitModel +module:models/ProductSearchSortingOption @@ -11039,7 +12579,7 @@
Properties:
Source:
@@ -11057,13 +12597,13 @@
Properties:
-

(static) ProductSearchRefinement

+
-

The ProductSearchRefinement model constructor.

+

The ProductSimpleLink model constructor.

@@ -11100,7 +12640,7 @@
Properties:
-module:models/ProductSearchRefinementModel +module:models/ProductSimpleLink @@ -11149,7 +12689,7 @@
Properties:
Source:
@@ -11167,13 +12707,13 @@
Properties:
-

(static) ProductSearchRefinementValue

+

(static) ProductType

-

The ProductSearchRefinementValue model constructor.

+

The ProductType model constructor.

@@ -11210,7 +12750,7 @@
Properties:
-module:models/ProductSearchRefinementValueModel +module:models/ProductType @@ -11259,7 +12799,7 @@
Properties:
Source:
@@ -11277,13 +12817,13 @@
Properties:
-

(static) ProductSearchResult

+

(static) Promotion

-

The ProductSearchResult model constructor.

+

The Promotion model constructor.

@@ -11320,7 +12860,7 @@
Properties:
-module:models/ProductSearchResultModel +module:models/Promotion @@ -11369,7 +12909,7 @@
Properties:
Source:
@@ -11387,13 +12927,13 @@
Properties:
-

(static) ProductSearchSortingOption

+
-

The ProductSearchSortingOption model constructor.

+

The PromotionLink model constructor.

@@ -11430,7 +12970,7 @@
Properties:
-module:models/ProductSearchSortingOptionModel +module:models/PromotionLink @@ -11479,7 +13019,7 @@
Properties:
Source:
@@ -11497,13 +13037,13 @@
Properties:
- +

(static) PromotionResult

-

The ProductSimpleLink model constructor.

+

The PromotionResult model constructor.

@@ -11540,7 +13080,7 @@
Properties:
-module:models/ProductSimpleLinkModel +module:models/PromotionResult @@ -11589,7 +13129,7 @@
Properties:
Source:
@@ -11607,13 +13147,13 @@
Properties:
-

(static) ProductType

+

(static) PromotionsApi

-

The ProductType model constructor.

+

The PromotionsApi service constructor.

@@ -11650,7 +13190,7 @@
Properties:
-module:models/ProductTypeModel +module:api/PromotionsApi @@ -11699,7 +13239,7 @@
Properties:
Source:
@@ -11717,13 +13257,13 @@
Properties:
-

(static) Promotion

+

(static) PublicProductList

-

The Promotion model constructor.

+

The PublicProductList model constructor.

@@ -11760,7 +13300,7 @@
Properties:
-module:models/PromotionModel +module:models/PublicProductList @@ -11809,7 +13349,7 @@
Properties:
Source:
@@ -11827,13 +13367,13 @@
Properties:
-

(static) PromotionResult

+

(static) PublicProductListItem

-

The PromotionResult model constructor.

+

The PublicProductListItem model constructor.

@@ -11870,7 +13410,7 @@
Properties:
-module:models/PromotionResultModel +module:models/PublicProductListItem @@ -11919,7 +13459,7 @@
Properties:
Source:
@@ -11937,13 +13477,13 @@
Properties:
-

(static) PromotionsApi

+

(static) PublicProductListItemResult

-

The PromotionsApi service constructor.

+

The PublicProductListItemResult model constructor.

@@ -11980,7 +13520,7 @@
Properties:
-module:api/PromotionsApi +module:models/PublicProductListItemResult @@ -12029,7 +13569,7 @@
Properties:
Source:
@@ -12047,13 +13587,13 @@
Properties:
-

(static) PublicProductList

+
-

The PublicProductList model constructor.

+

The PublicProductListLink model constructor.

@@ -12090,7 +13630,7 @@
Properties:
-module:models/PublicProductListModel +module:models/PublicProductListLink @@ -12139,7 +13679,7 @@
Properties:
Source:
@@ -12157,13 +13697,13 @@
Properties:
-

(static) PublicProductListItem

+

(static) PublicProductListResult

-

The PublicProductListItem model constructor.

+

The PublicProductListResult model constructor.

@@ -12200,7 +13740,7 @@
Properties:
-module:models/PublicProductListItemModel +module:models/PublicProductListResult @@ -12249,7 +13789,7 @@
Properties:
Source:
@@ -12267,13 +13807,13 @@
Properties:
-

(static) PublicProductListItemResult

+

(static) QueryFilter

-

The PublicProductListItemResult model constructor.

+

The QueryFilter model constructor.

@@ -12310,7 +13850,7 @@
Properties:
-module:models/PublicProductListItemResultModel +module:models/QueryFilter @@ -12359,7 +13899,7 @@
Properties:
Source:
@@ -12377,13 +13917,13 @@
Properties:
- +

(static) Range2Filter

-

The PublicProductListLink model constructor.

+

The Range2Filter model constructor.

@@ -12420,7 +13960,7 @@
Properties:
-module:models/PublicProductListLinkModel +module:models/Range2Filter @@ -12469,7 +14009,7 @@
Properties:
Source:
@@ -12487,13 +14027,13 @@
Properties:
-

(static) PublicProductListResult

+

(static) RangeFilter

-

The PublicProductListResult model constructor.

+

The RangeFilter model constructor.

@@ -12530,7 +14070,7 @@
Properties:
-module:models/PublicProductListResultModel +module:models/RangeFilter @@ -12579,7 +14119,7 @@
Properties:
Source:
@@ -12597,13 +14137,13 @@
Properties:
-

(static) QueryFilter

+

(static) Recommendation

-

The QueryFilter model constructor.

+

The Recommendation model constructor.

@@ -12640,7 +14180,7 @@
Properties:
-module:models/QueryFilterModel +module:models/Recommendation @@ -12689,7 +14229,7 @@
Properties:
Source:
@@ -12707,13 +14247,13 @@
Properties:
-

(static) Range2Filter

+

(static) RecommendationType

-

The Range2Filter model constructor.

+

The RecommendationType model constructor.

@@ -12750,7 +14290,7 @@
Properties:
-module:models/Range2FilterModel +module:models/RecommendationType @@ -12799,7 +14339,7 @@
Properties:
Source:
@@ -12817,13 +14357,13 @@
Properties:
-

(static) RangeFilter

+

(static) ResetPasswordRequest

-

The RangeFilter model constructor.

+

The ResetPasswordRequest model constructor.

@@ -12860,7 +14400,7 @@
Properties:
-module:models/RangeFilterModel +module:models/ResetPasswordRequest @@ -12909,7 +14449,7 @@
Properties:
Source:
@@ -12927,13 +14467,13 @@
Properties:
-

(static) Recommendation

+

(static) ResetPasswordTokenRequest

-

The Recommendation model constructor.

+

The ResetPasswordTokenRequest model constructor.

@@ -12970,7 +14510,7 @@
Properties:
-module:models/RecommendationModel +module:models/ResetPasswordTokenRequest @@ -13019,7 +14559,7 @@
Properties:
Source:
@@ -13037,13 +14577,13 @@
Properties:
-

(static) RecommendationType

+

(static) ResetPasswordTokenResult

-

The RecommendationType model constructor.

+

The ResetPasswordTokenResult model constructor.

@@ -13080,7 +14620,7 @@
Properties:
-module:models/RecommendationTypeModel +module:models/ResetPasswordTokenResult @@ -13129,7 +14669,7 @@
Properties:
Source:
@@ -13190,7 +14730,7 @@
Properties:
-module:models/ResultPageModel +module:models/ResultPage @@ -13239,7 +14779,7 @@
Properties:
Source:
@@ -13349,7 +14889,7 @@
Properties:
Source:
@@ -13459,7 +14999,7 @@
Properties:
Source:
@@ -13520,7 +15060,7 @@
Properties:
-module:models/ShipmentModel +module:models/Shipment @@ -13569,7 +15109,7 @@
Properties:
Source:
@@ -13630,7 +15170,7 @@
Properties:
-module:models/ShippingItemModel +module:models/ShippingItem @@ -13679,7 +15219,7 @@
Properties:
Source:
@@ -13740,7 +15280,7 @@
Properties:
-module:models/ShippingMethodModel +module:models/ShippingMethod @@ -13789,7 +15329,7 @@
Properties:
Source:
@@ -13850,7 +15390,7 @@
Properties:
-module:models/ShippingMethodResultModel +module:models/ShippingMethodResult @@ -13899,7 +15439,7 @@
Properties:
Source:
@@ -13960,7 +15500,7 @@
Properties:
-module:models/ShippingPromotionModel +module:models/ShippingPromotion @@ -14009,7 +15549,7 @@
Properties:
Source:
@@ -14070,7 +15610,7 @@
Properties:
-module:models/SimpleLinkModel +module:models/SimpleLink @@ -14119,7 +15659,7 @@
Properties:
Source:
@@ -14180,7 +15720,7 @@
Properties:
-module:models/SiteModel +module:models/Site @@ -14229,7 +15769,7 @@
Properties:
Source:
@@ -14339,7 +15879,7 @@
Properties:
Source:
@@ -14400,7 +15940,7 @@
Properties:
-module:models/SortModel +module:models/Sort @@ -14449,7 +15989,7 @@
Properties:
Source:
@@ -14510,7 +16050,7 @@
Properties:
-module:models/StatusModel +module:models/Status @@ -14559,7 +16099,7 @@
Properties:
Source:
@@ -14620,7 +16160,7 @@
Properties:
-module:models/StoreModel +module:models/Store @@ -14669,7 +16209,7 @@
Properties:
Source:
@@ -14730,7 +16270,7 @@
Properties:
-module:models/StoreResultModel +module:models/StoreResult @@ -14779,7 +16319,7 @@
Properties:
Source:
@@ -14889,7 +16429,7 @@
Properties:
Source:
@@ -14950,7 +16490,7 @@
Properties:
-module:models/SuggestedCategoryModel +module:models/SuggestedCategory @@ -14999,7 +16539,7 @@
Properties:
Source:
@@ -15060,7 +16600,7 @@
Properties:
-module:models/SuggestedContentModel +module:models/SuggestedContent @@ -15109,7 +16649,7 @@
Properties:
Source:
@@ -15170,7 +16710,7 @@
Properties:
-module:models/SuggestedPhraseModel +module:models/SuggestedPhrase @@ -15219,7 +16759,7 @@
Properties:
Source:
@@ -15280,7 +16820,7 @@
Properties:
-module:models/SuggestedProductModel +module:models/SuggestedProduct @@ -15329,7 +16869,7 @@
Properties:
Source:
@@ -15390,7 +16930,7 @@
Properties:
-module:models/SuggestedTermModel +module:models/SuggestedTerm @@ -15439,7 +16979,7 @@
Properties:
Source:
@@ -15500,7 +17040,7 @@
Properties:
-module:models/SuggestedTermsModel +module:models/SuggestedTerms @@ -15549,7 +17089,7 @@
Properties:
Source:
@@ -15610,7 +17150,7 @@
Properties:
-module:models/SuggestionModel +module:models/Suggestion @@ -15659,7 +17199,7 @@
Properties:
Source:
@@ -15720,7 +17260,7 @@
Properties:
-module:models/SuggestionResultModel +module:models/SuggestionResult @@ -15769,7 +17309,7 @@
Properties:
Source:
@@ -15830,7 +17370,7 @@
Properties:
-module:models/TermFilterModel +module:models/TermFilter @@ -15879,7 +17419,7 @@
Properties:
Source:
@@ -15940,7 +17480,7 @@
Properties:
-module:models/TermQueryModel +module:models/TermQuery @@ -15989,7 +17529,7 @@
Properties:
Source:
@@ -16050,7 +17590,117 @@
Properties:
-module:models/TextQueryModel +module:models/TextQuery + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(static) TrustedSystemAuthRequest

+ + + + +
+

The TrustedSystemAuthRequest model constructor.

+
+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeDescription
+ + +module:models/TrustedSystemAuthRequest @@ -16099,7 +17749,7 @@
Properties:
Source:
@@ -16160,7 +17810,7 @@
Properties:
-module:models/VariantModel +module:models/Variant @@ -16209,7 +17859,7 @@
Properties:
Source:
@@ -16270,7 +17920,7 @@
Properties:
-module:models/VariationAttributeModel +module:models/VariationAttribute @@ -16319,7 +17969,7 @@
Properties:
Source:
@@ -16380,7 +18030,7 @@
Properties:
-module:models/VariationAttributeValueModel +module:models/VariationAttributeValue @@ -16429,7 +18079,7 @@
Properties:
Source:
@@ -16490,7 +18140,7 @@
Properties:
-module:models/VariationGroupModel +module:models/VariationGroup @@ -16539,7 +18189,7 @@
Properties:
Source:
@@ -16573,7 +18223,7 @@
Properties:

diff --git a/docs/module-models_ApproachingDiscount.html b/docs/module-models_ApproachingDiscount.html new file mode 100644 index 0000000..a585fbb --- /dev/null +++ b/docs/module-models_ApproachingDiscount.html @@ -0,0 +1,866 @@ + + + + + JSDoc: Class: module:models/ApproachingDiscount + + + + + + + + + + +
+ +

Class: module:models/ApproachingDiscount

+ + + + + + +
+ +
+ +

module:models/ApproachingDiscount()

+ + +
+ +
+
+ + + + + + +

new module:models/ApproachingDiscount()

+ + + + + + +
+

Constructs a new ApproachingDiscount. +Document representing a note to an object.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) condition_threshold :Number

+ + + + +
+

The total amount needed to receive the discount.

+
+ + + +
Type:
+
    +
  • + +Number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) discount :module:models/Discount

+ + + + +
+

The discount the customer can receive if eligible.

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) merchandise_total :Number

+ + + + +
+

The amount the customer basket contributes towards the purchase condition.

+
+ + + +
Type:
+
    +
  • + +Number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + +
+

The link to details of the promotion associated with this discount.

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) shipment_id :String

+ + + + +
+

The unique id of the shipment the discount relates to.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) shipping_methods :Array.<module:models/ShippingMethod>

+ + + + +
+

The shipping methods the promotion relates to.

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) type :String

+ + + + +
+

The type of the approaching discount ("order" or "shipping").

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/ApproachingDiscount}

+ + + + + + +
+

Constructs a ApproachingDiscount from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/ApproachingDiscount + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated ApproachingDiscount instance.

+
+ + + +
+
+ Type +
+
+ +module:models/ApproachingDiscount + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_ApproachingDiscountResult.html b/docs/module-models_ApproachingDiscountResult.html new file mode 100644 index 0000000..8db48a0 --- /dev/null +++ b/docs/module-models_ApproachingDiscountResult.html @@ -0,0 +1,434 @@ + + + + + JSDoc: Class: module:models/ApproachingDiscountResult + + + + + + + + + + +
+ +

Class: module:models/ApproachingDiscountResult

+ + + + + + +
+ +
+ +

module:models/ApproachingDiscountResult()

+ + +
+ +
+
+ + + + + + +

new module:models/ApproachingDiscountResult()

+ + + + + + +
+

Constructs a new ApproachingDiscountResult. +A result of a approaching discount request.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) approaching_discounts :Array.<module:models/ApproachingDiscount>

+ + + + +
+

Lists approaching discounts.

+
+ + + +
Type:
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/ApproachingDiscountResult}

+ + + + + + +
+

Constructs a ApproachingDiscountResult from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/ApproachingDiscountResult + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated ApproachingDiscountResult instance.

+
+ + + +
+
+ Type +
+
+ +module:models/ApproachingDiscountResult + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_AuthRequest.html b/docs/module-models_AuthRequest.html index a70e6f6..6c56ea8 100644 --- a/docs/module-models_AuthRequest.html +++ b/docs/module-models_AuthRequest.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -193,6 +193,326 @@

Members

+

(readonly) TypeEnum :String

+ + + + +
+

Allowed values for the type property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) credentials

+ + + + +
+

value: "credentials"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) guest

+ + + + +
+

value: "guest"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) refresh

+ + + + +
+

value: "refresh"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) session

+ + + + +
+

value: "session"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) type :module:models/AuthRequest.TypeEnum

@@ -247,7 +567,7 @@
Type:
Source:
@@ -400,7 +720,7 @@
Parameters:
Source:
@@ -468,7 +788,7 @@
Returns:

diff --git a/docs/module-models_Basket.html b/docs/module-models_Basket.html index 5944c94..248d51d 100644 --- a/docs/module-models_Basket.html +++ b/docs/module-models_Basket.html @@ -94,7 +94,7 @@

n
Source:
@@ -144,15 +144,13 @@

Members

-

(inner) adjusted_merchandize_total_tax :Number

+

(readonly) ChannelTypeEnum :String

-

The products tax after discounts applying in purchase currency. Adjusted merchandize prices -represent the sum of product prices before services such as shipping have been added, but after -adjustment from promotions have been added.

+

Allowed values for the channel_type property.

@@ -161,7 +159,7 @@
Type:
link + + +String + + + +

The link to the product reference.

@@ -143,7 +166,7 @@
Parameters:
Source:
@@ -247,7 +270,7 @@
Type:
Source:
@@ -319,7 +342,7 @@
Type:
Source:
@@ -472,7 +495,7 @@
Parameters:
Source:
@@ -540,7 +563,7 @@
Returns:

diff --git a/docs/module-models_ProductResult.html b/docs/module-models_ProductResult.html index 16b02e7..404443c 100644 --- a/docs/module-models_ProductResult.html +++ b/docs/module-models_ProductResult.html @@ -94,7 +94,7 @@

<
Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -495,7 +495,7 @@
Parameters:
Source:
@@ -563,7 +563,7 @@
Returns:

diff --git a/docs/module-models_ProductSearchHit.html b/docs/module-models_ProductSearchHit.html index 9285f6e..4091092 100644 --- a/docs/module-models_ProductSearchHit.html +++ b/docs/module-models_ProductSearchHit.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,79 @@
Type:
Source:
+ + + + + + + + + + + + + + + + +

(inner) hit_type :String

+ + + + +
+

The type information for the search hit.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -270,7 +342,7 @@
Type:
Source:
@@ -342,7 +414,7 @@
Type:
Source:
@@ -414,7 +486,7 @@
Type:
Source:
@@ -486,7 +558,7 @@
Type:
Source:
@@ -558,7 +630,7 @@
Type:
Source:
@@ -630,7 +702,7 @@
Type:
Source:
@@ -702,7 +774,7 @@
Type:
Source:
@@ -774,7 +846,7 @@
Type:
Source:
@@ -846,7 +918,7 @@
Type:
Source:
@@ -918,7 +990,7 @@
Type:
Source:
@@ -990,7 +1062,7 @@
Type:
Source:
@@ -1062,7 +1134,7 @@
Type:
Source:
@@ -1215,7 +1287,7 @@
Parameters:
Source:
@@ -1283,7 +1355,7 @@
Returns:

diff --git a/docs/module-models_ProductSearchRefinement.html b/docs/module-models_ProductSearchRefinement.html index 79e7f1f..54bccd9 100644 --- a/docs/module-models_ProductSearchRefinement.html +++ b/docs/module-models_ProductSearchRefinement.html @@ -102,10 +102,7 @@
Parameters:
-

The id of the search refinement attribute. In the case of an attribute -refinement, this is the attribute id. Custom attributes are marked by the -prefix "c_" (for example, "c_refinementColor"). In the case of a category refinement, -the id must be "cgid". In the case of a price refinement, the id must be "price".

The id of the search refinement attribute. In the case of an attribute refinement, this is the attribute id. Custom attributes are marked by the prefix "c_" (for example, "c_refinementColor"). In the case of a category refinement, the id must be "cgid". In the case of a price refinement, the id must be "price".

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/PromotionLink + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated PromotionLink instance.

+
+ + + +
+
+ Type +
+
+ +module:models/PromotionLink + + +
+
+ + + + + + + + + + + + + +

+ +
+ + + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_PromotionResult.html b/docs/module-models_PromotionResult.html index a80755d..6ecf629 100644 --- a/docs/module-models_PromotionResult.html +++ b/docs/module-models_PromotionResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -495,7 +495,7 @@
Parameters:
Source:
@@ -563,7 +563,7 @@
Returns:

diff --git a/docs/module-models_PublicProductList.html b/docs/module-models_PublicProductList.html index 61861e5..5d9d0b6 100644 --- a/docs/module-models_PublicProductList.html +++ b/docs/module-models_PublicProductList.html @@ -93,7 +93,7 @@

Source:
@@ -143,6 +143,78 @@

Members

+

(readonly) TypeEnum :String

+ + + + +
+

Allowed values for the type property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) co_registrant :module:models/ProductListRegistrant

@@ -197,7 +269,7 @@
Type:
Source:
@@ -269,7 +341,193 @@
Type:
Source:
+ + + + + + + + + + + + + + + + +

(inner, constant) custom_1

+ + + + +
+

value: "custom_1"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) custom_2

+ + + + +
+

value: "custom_2"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) custom_3

+ + + + +
+

value: "custom_3"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -341,7 +599,7 @@
Type:
Source:
@@ -413,7 +671,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) gift_registry

+ + + + +
+

value: "gift_registry"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -485,7 +805,7 @@
Type:
Source:
@@ -557,7 +877,7 @@
Type:
Source:
@@ -629,7 +949,7 @@
Type:
Source:
@@ -701,7 +1021,7 @@
Type:
Source:
@@ -773,7 +1093,7 @@
Type:
Source:
@@ -845,7 +1165,7 @@
Type:
Source:
@@ -917,7 +1237,7 @@
Type:
Source:
@@ -989,7 +1309,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) shopping_list

+ + + + +
+

value: "shopping_list"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -1061,7 +1443,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) wish_list

+ + + + +
+

value: "wish_list"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -1214,7 +1658,7 @@
Parameters:
Source:
@@ -1282,7 +1726,7 @@
Returns:

diff --git a/docs/module-models_PublicProductListItem.html b/docs/module-models_PublicProductListItem.html index c655f28..aa7ef58 100644 --- a/docs/module-models_PublicProductListItem.html +++ b/docs/module-models_PublicProductListItem.html @@ -94,7 +94,7 @@

Source:
@@ -144,6 +144,140 @@

Members

+

(readonly) TypeEnum :String

+ + + + +
+

Allowed values for the type property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) gift_certificate

+ + + + +
+

value: "gift_certificate"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) id :String

@@ -198,7 +332,7 @@
Type:
Source:
@@ -270,7 +404,7 @@
Type:
Source:
@@ -342,7 +476,69 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) product

+ + + + +
+

value: "product"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -414,7 +610,7 @@
Type:
Source:
@@ -486,7 +682,7 @@
Type:
Source:
@@ -639,7 +835,7 @@
Parameters:
Source:
@@ -707,7 +903,7 @@
Returns:

diff --git a/docs/module-models_PublicProductListItemResult.html b/docs/module-models_PublicProductListItemResult.html index 9dcb809..338416c 100644 --- a/docs/module-models_PublicProductListItemResult.html +++ b/docs/module-models_PublicProductListItemResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -495,7 +495,7 @@
Parameters:
Source:
@@ -563,7 +563,7 @@
Returns:

diff --git a/docs/module-models_PublicProductListLink.html b/docs/module-models_PublicProductListLink.html index 3656f0f..f241bb6 100644 --- a/docs/module-models_PublicProductListLink.html +++ b/docs/module-models_PublicProductListLink.html @@ -94,7 +94,7 @@

+ + + + + + + + +

(inner, constant) gift_registry

+ + + + +
+

value: "gift_registry"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -270,7 +590,7 @@
Type:
Source:
@@ -342,7 +662,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) shopping_list

+ + + + +
+

value: "shopping_list"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -414,7 +796,7 @@
Type:
Source:
@@ -486,7 +868,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) wish_list

+ + + + +
+

value: "wish_list"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -639,7 +1083,7 @@
Parameters:
Source:
@@ -707,7 +1151,7 @@
Returns:

diff --git a/docs/module-models_PublicProductListResult.html b/docs/module-models_PublicProductListResult.html index 47bed98..e819a7c 100644 --- a/docs/module-models_PublicProductListResult.html +++ b/docs/module-models_PublicProductListResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -495,7 +495,7 @@
Parameters:
Source:
@@ -563,7 +563,7 @@
Returns:

diff --git a/docs/module-models_Query.html b/docs/module-models_Query.html index 0776e19..4f032b4 100644 --- a/docs/module-models_Query.html +++ b/docs/module-models_Query.html @@ -566,7 +566,7 @@
Returns:

diff --git a/docs/module-models_QueryFilter.html b/docs/module-models_QueryFilter.html index e37b4c3..5bbe69d 100644 --- a/docs/module-models_QueryFilter.html +++ b/docs/module-models_QueryFilter.html @@ -102,7 +102,7 @@
Parameters:
-

The query, which should be used as a filter.

+

The query to use as a filter.

@@ -143,7 +143,7 @@
Parameters:
Source:
@@ -199,7 +199,7 @@

(inner) query -

The query, which should be used as a filter.

+

The query to use as a filter.

@@ -247,7 +247,7 @@
Type:
Source:
@@ -400,7 +400,7 @@
Parameters:
Source:
@@ -468,7 +468,7 @@
Returns:

diff --git a/docs/module-models_Range2Filter.html b/docs/module-models_Range2Filter.html index 7ab3806..40ab487 100644 --- a/docs/module-models_Range2Filter.html +++ b/docs/module-models_Range2Filter.html @@ -102,7 +102,7 @@
Parameters:
-

The field name of the field that start the range 1.

+

The field name of the field that starts the first range.

@@ -125,7 +125,7 @@
Parameters:
-

The field name of the field that end the range 1.

+

The field name of the field that ends the first range.

@@ -166,7 +166,7 @@
Parameters:
Source:
@@ -216,13 +216,209 @@

Members

+

(readonly) FilterModeEnum :String

+ + + + +
+

Allowed values for the filter_mode property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) contained

+ + + + +
+

value: "contained"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) containing

+ + + + +
+

value: "containing"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) filter_mode :module:models/Range2Filter.FilterModeEnum

-

compare mode: overlap, containing, contained (default to "overlap"). It is optional.

+

Compare mode: overlap, containing, or contained. If not specified, the default is overlap.

@@ -270,7 +466,7 @@
Type:
Source:
@@ -294,7 +490,7 @@

(inner) fr
-

The field name of the field that start the range 1.

+

The field name of the field that starts the first range.

@@ -342,7 +538,7 @@

Type:
Source:
@@ -366,7 +562,7 @@

(inner) -

A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive).

+

Indicates whether the lower bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.

@@ -414,7 +610,7 @@
Type:
Source:
@@ -438,7 +634,7 @@

(inner) fr
-

The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound.

+

The lower bound of the second range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.

@@ -486,7 +682,69 @@

Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) overlap

+ + + + +
+

value: "overlap"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -510,7 +768,7 @@

(inner) to_f
-

The field name of the field that end the range 1.

+

The field name of the field that ends the first range.

@@ -558,7 +816,7 @@

Type:
Source:
@@ -582,7 +840,7 @@

(inner)
-

A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive).

+

Indicates whether the upper bound of the second range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.

@@ -630,7 +888,7 @@

Type:
Source:
@@ -654,7 +912,7 @@

(inner) to_v
-

The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound.

+

The upper bound of the second range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.

@@ -702,7 +960,7 @@

Type:
Source:
@@ -855,7 +1113,7 @@
Parameters:
Source:
@@ -923,7 +1181,7 @@
Returns:

diff --git a/docs/module-models_RangeFilter.html b/docs/module-models_RangeFilter.html index 4dc1764..48d6f4b 100644 --- a/docs/module-models_RangeFilter.html +++ b/docs/module-models_RangeFilter.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -247,7 +247,7 @@
Type:
Source:
@@ -271,7 +271,7 @@

(inner) from -

The configured lower bound of the filter range. The lower bound is optional. If not given, the range is open ended with respect to the lower bound.

+

The lower bound of the filter range. If not specified, the range is open-ended with respect to the lower bound. You can't leave both the lower and upper bounds open-ended.

@@ -319,7 +319,7 @@
Type:
Source:
@@ -343,7 +343,7 @@

(inner) -

A flag indicating whether the lower bound of the range is inclusive (or exclusive). The default is true (which means that the given lower bound is inclusive).

+

Indicates whether the lower bound of the range is inclusive. If not specified, the default is true. Set to false to make the lower bound exclusive.

@@ -391,7 +391,7 @@
Type:
Source:
@@ -415,7 +415,7 @@

(inner) to -

The configured upper bound of the filter range. The upper bound is optional. If not given, the range is open ended with respect to the upper bound.

+

The upper bound of the filter range. If not specified, the range is open-ended with respect to the upper bound. You can't leave both the upper and lower bounds open-ended.

@@ -463,7 +463,7 @@
Type:
Source:
@@ -487,7 +487,7 @@

(inner)
-

A flag indicating whether the upper bound of the range is inclusive (or exclusive). The default is true (which means that the given upper bound is inclusive).

+

Indicates whether the upper bound of the range is inclusive. If not specified, the default is true. Set to false to made the upper bound exclusive.

@@ -535,7 +535,7 @@

Type:
Source:
@@ -688,7 +688,7 @@
Parameters:
Source:
@@ -756,7 +756,7 @@
Returns:

diff --git a/docs/module-models_Recommendation.html b/docs/module-models_Recommendation.html index 2382c46..9ff8160 100644 --- a/docs/module-models_Recommendation.html +++ b/docs/module-models_Recommendation.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -630,7 +630,7 @@
Type:
Source:
@@ -702,7 +702,7 @@
Type:
Source:
@@ -855,7 +855,7 @@
Parameters:
Source:
@@ -923,7 +923,7 @@
Returns:

diff --git a/docs/module-models_RecommendationType.html b/docs/module-models_RecommendationType.html index 24a9f5d..8aa8327 100644 --- a/docs/module-models_RecommendationType.html +++ b/docs/module-models_RecommendationType.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -423,7 +423,7 @@
Parameters:
Source:
@@ -491,7 +491,7 @@
Returns:

diff --git a/docs/module-models_ResetPasswordRequest.html b/docs/module-models_ResetPasswordRequest.html new file mode 100644 index 0000000..b47ae71 --- /dev/null +++ b/docs/module-models_ResetPasswordRequest.html @@ -0,0 +1,626 @@ + + + + + JSDoc: Class: module:models/ResetPasswordRequest + + + + + + + + + + +
+ +

Class: module:models/ResetPasswordRequest

+ + + + + + +
+ +
+ +

module:models/ResetPasswordRequest(newPassword)

+ + +
+ +
+
+ + + + + + +

new module:models/ResetPasswordRequest(newPassword)

+ + + + + + +
+

Constructs a new ResetPasswordRequest.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
newPassword + + +String + + + +

The new password for the customer.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) login :String

+ + + + +
+

The login id of the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) new_password :String

+ + + + +
+

The new password for the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) reset_token :String

+ + + + +
+

The password reset token for the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/ResetPasswordRequest}

+ + + + + + +
+

Constructs a ResetPasswordRequest from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/ResetPasswordRequest + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated ResetPasswordRequest instance.

+
+ + + +
+
+ Type +
+
+ +module:models/ResetPasswordRequest + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_ResetPasswordTokenRequest.html b/docs/module-models_ResetPasswordTokenRequest.html new file mode 100644 index 0000000..ac9350c --- /dev/null +++ b/docs/module-models_ResetPasswordTokenRequest.html @@ -0,0 +1,433 @@ + + + + + JSDoc: Class: module:models/ResetPasswordTokenRequest + + + + + + + + + + +
+ +

Class: module:models/ResetPasswordTokenRequest

+ + + + + + +
+ +
+ +

module:models/ResetPasswordTokenRequest()

+ + +
+ +
+
+ + + + + + +

new module:models/ResetPasswordTokenRequest()

+ + + + + + +
+

Constructs a new ResetPasswordTokenRequest.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) login :String

+ + + + +
+

The login id of the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/ResetPasswordTokenRequest}

+ + + + + + +
+

Constructs a ResetPasswordTokenRequest from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/ResetPasswordTokenRequest + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated ResetPasswordTokenRequest instance.

+
+ + + +
+
+ Type +
+
+ +module:models/ResetPasswordTokenRequest + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_ResetPasswordTokenResult.html b/docs/module-models_ResetPasswordTokenResult.html new file mode 100644 index 0000000..6c7f390 --- /dev/null +++ b/docs/module-models_ResetPasswordTokenResult.html @@ -0,0 +1,649 @@ + + + + + JSDoc: Class: module:models/ResetPasswordTokenResult + + + + + + + + + + +
+ +

Class: module:models/ResetPasswordTokenResult

+ + + + + + +
+ +
+ +

module:models/ResetPasswordTokenResult()

+ + +
+ +
+
+ + + + + + +

new module:models/ResetPasswordTokenResult()

+ + + + + + +
+

Constructs a new ResetPasswordTokenResult.

+
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) email :String

+ + + + +
+

The email address of the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) expires_in_minutes :Number

+ + + + +
+

The password reset token expire time in minutes.

+
+ + + +
Type:
+
    +
  • + +Number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) login :String

+ + + + +
+

The login id of the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) reset_token :String

+ + + + +
+

The password reset token for the customer.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/ResetPasswordTokenResult}

+ + + + + + +
+

Constructs a ResetPasswordTokenResult from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/ResetPasswordTokenResult + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated ResetPasswordTokenResult instance.

+
+ + + +
+
+ Type +
+
+ +module:models/ResetPasswordTokenResult + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_ResultPage.html b/docs/module-models_ResultPage.html index 0409e67..05523bb 100644 --- a/docs/module-models_ResultPage.html +++ b/docs/module-models_ResultPage.html @@ -94,7 +94,7 @@

Source:
@@ -150,7 +150,7 @@

(inner) count -

Returns the count of search hits to include in the page.

+

The number of returned documents.

@@ -198,7 +198,79 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner) db_start_record_ :Number

+ + + + +
+

The zero-based index of the record that we want to start with, used to optimize special handling

+
+ + + +
Type:
+
    +
  • + +Number + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -222,7 +294,7 @@

(inner) start -

Returns the zero-based index of the first search hit in the page.

+

The zero-based index of the first search hit to include in the result.

@@ -270,7 +342,7 @@
Type:
Source:
@@ -423,7 +495,7 @@
Parameters:
Source:
@@ -491,7 +563,7 @@
Returns:

diff --git a/docs/module-models_Shipment.html b/docs/module-models_Shipment.html index bea760a..fb48eb9 100644 --- a/docs/module-models_Shipment.html +++ b/docs/module-models_Shipment.html @@ -94,7 +94,7 @@

Source:
@@ -144,16 +144,85 @@

Members

+

(readonly) ShippingStatusEnum :String

+ + + + +
+

Allowed values for the shipping_status property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) adjusted_merchandize_total_tax :Number

-

The products tax after discounts applying in purchase currency. Adjusted merchandize prices -represent the sum of product prices before services such as shipping have been added, but after -adjustment from promotions have been added. Note that order level adjustments are considered -if Discount Taxation preference is set to "Tax Products and Shipping Only Based on Adjusted Price".

+

The products tax after discounts applying in purchase currency. Adjusted merchandize prices represent the sum of product prices before services such as shipping have been added, but after adjustment from promotions have been added. Note that order level adjustments are considered if Discount Taxation preference is set to "Tax Products and Shipping Only Based on Adjusted Price".

@@ -201,7 +270,7 @@
Type:
Source:
@@ -273,7 +342,219 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner) c_fromStoreId :String

+ + + + +
+

Used to map the shipment to a brick and mortar store.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) c_shipmentType :String

+ + + + + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) c_storePickupMessage :String

+ + + + +
+

This is text used by the end user when sending a message to the brick and mortar store about the shipment. This is reflected in the order export.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -345,7 +626,7 @@
Type:
Source:
@@ -417,7 +698,7 @@
Type:
Source:
@@ -441,8 +722,7 @@

(inner
-

The products total tax in purchase currency. Merchandize total prices represent the sum of -product prices before services such as shipping or adjustment from promotions have been added.

+

The products total tax in purchase currency. Merchandize total prices represent the sum of product prices before services such as shipping or adjustment from promotions have been added.

@@ -490,7 +770,69 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) not_shipped

+ + + + +
+

value: "not_shipped"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -514,8 +856,7 @@

(inner) -

The total price of all product items after all product discounts. Depending on taxation -policy the returned price is net or gross.

+

The total price of all product items after all product discounts. Depending on taxation policy the returned price is net or gross.

@@ -563,7 +904,7 @@
Type:
Source:
@@ -587,8 +928,7 @@

(inner) -

The total price of all product items after all product and order discounts. Depending on -taxation policy the returned price is net or gross.

+

The total price of all product items after all product and order discounts. Depending on taxation policy the returned price is net or gross.

@@ -636,7 +976,7 @@

Type:
Source:
@@ -708,7 +1048,7 @@
Type:
Source:
@@ -780,7 +1120,7 @@
Type:
Source:
@@ -804,8 +1144,7 @@

(inner) -

The total price of the shipment, including products, shipping and tax. Note that order -level adjustments are not considered.

+

The total price of the shipment, including products, shipping and tax. Note that order level adjustments are not considered.

@@ -853,7 +1192,69 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) shipped

+ + + + +
+

value: "shipped"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -925,7 +1326,7 @@
Type:
Source:
@@ -997,7 +1398,7 @@
Type:
Source:
@@ -1069,7 +1470,7 @@
Type:
Source:
@@ -1093,8 +1494,7 @@

(inner) -

The total shipping price of the shipment after all shipping discounts. Excludes tax if -taxation policy is net. Includes tax if taxation policy is gross.

+

The total shipping price of the shipment after all shipping discounts. Excludes tax if taxation policy is net. Includes tax if taxation policy is gross.

@@ -1142,7 +1542,7 @@
Type:
Source:
@@ -1166,8 +1566,7 @@

(inner) <
-

The tax of all shipping line items of the line item container before shipping adjustments -have been applied.

+

The tax of all shipping line items of the line item container before shipping adjustments have been applied.

@@ -1215,7 +1614,7 @@
Type:
Source:
@@ -1239,9 +1638,7 @@

(inner) tax
-

The total tax amount of the shipment. Note that order level adjustments are -considered if Discount Taxation preference is set to "Tax Products and Shipping Only -Based on Adjusted Price".

+

The total tax amount of the shipment. Note that order level adjustments are considered if Discount Taxation preference is set to "Tax Products and Shipping Only Based on Adjusted Price".

@@ -1289,7 +1686,7 @@

Type:
Source:
@@ -1361,7 +1758,7 @@
Type:
Source:
@@ -1514,7 +1911,7 @@
Parameters:
Source:
@@ -1582,7 +1979,7 @@
Returns:

diff --git a/docs/module-models_ShippingItem.html b/docs/module-models_ShippingItem.html index 7d49711..bf78018 100644 --- a/docs/module-models_ShippingItem.html +++ b/docs/module-models_ShippingItem.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -222,9 +222,7 @@

(inner) ba
-

The base price for the line item, which is the price of the unit before applying -adjustments, in the purchase currency. The base price may be net or gross of -tax depending on the configured taxation policy.

+

The base price for the line item, which is the price of the unit before applying adjustments, in the purchase currency. The base price may be net or gross of tax depending on the configured taxation policy.

@@ -272,7 +270,7 @@

Type:
Source:
@@ -296,8 +294,7 @@

(inner) item_
-

The item identifier. Use this to identify an item when updating the item -quantity or creating a custom price adjustment for an item.

+

The item identifier. Use this to identify an item when updating the item quantity or creating a custom price adjustment for an item.

@@ -345,7 +342,7 @@

Type:
Source:
@@ -417,7 +414,7 @@
Type:
Source:
@@ -441,9 +438,7 @@

(inner) price -

The price of the line item before applying any adjustments. If the line item is -based on net pricing then the net price is returned. If the line item is -based on gross pricing then the gross price is returned.

+

The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned.

@@ -491,7 +486,7 @@
Type:
Source:
@@ -563,7 +558,7 @@
Type:
Source:
@@ -587,9 +582,7 @@

(i
-

The price of the product line item after applying all product-level adjustments. -For net pricing the adjusted net price is returned. For gross pricing, -the adjusted gross price is returned.

+

The price of the product line item after applying all product-level adjustments. For net pricing the adjusted net price is returned. For gross pricing, the adjusted gross price is returned.

@@ -637,7 +630,7 @@
Type:
Source:
@@ -709,7 +702,7 @@
Type:
Source:
@@ -781,7 +774,7 @@
Type:
Source:
@@ -853,7 +846,7 @@
Type:
Source:
@@ -925,7 +918,7 @@
Type:
Source:
@@ -997,7 +990,7 @@
Type:
Source:
@@ -1150,7 +1143,7 @@
Parameters:
Source:
@@ -1218,7 +1211,7 @@
Returns:

diff --git a/docs/module-models_ShippingMethod.html b/docs/module-models_ShippingMethod.html index 8ade1bb..d07f0f3 100644 --- a/docs/module-models_ShippingMethod.html +++ b/docs/module-models_ShippingMethod.html @@ -166,7 +166,7 @@
Parameters:
Source:
@@ -216,6 +216,74 @@

Members

+

(inner) c_storePickupEnabled :Boolean

+ + + + + + +
Type:
+
    +
  • + +Boolean + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) description :String

@@ -270,7 +338,7 @@
Type:
Source:
@@ -342,7 +410,7 @@
Type:
Source:
@@ -414,7 +482,7 @@
Type:
Source:
@@ -486,7 +554,7 @@
Type:
Source:
@@ -558,7 +626,7 @@
Type:
Source:
@@ -630,7 +698,7 @@
Type:
Source:
@@ -783,7 +851,7 @@
Parameters:
Source:
@@ -851,7 +919,7 @@
Returns:

diff --git a/docs/module-models_ShippingMethodResult.html b/docs/module-models_ShippingMethodResult.html index 1b9cd0e..8147984 100644 --- a/docs/module-models_ShippingMethodResult.html +++ b/docs/module-models_ShippingMethodResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -423,7 +423,7 @@
Parameters:
Source:
@@ -491,7 +491,7 @@
Returns:

diff --git a/docs/module-models_ShippingPromotion.html b/docs/module-models_ShippingPromotion.html index 4100ada..adc8b4b 100644 --- a/docs/module-models_ShippingPromotion.html +++ b/docs/module-models_ShippingPromotion.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -567,7 +567,7 @@
Parameters:
Source:
@@ -635,7 +635,7 @@
Returns:

diff --git a/docs/module-models_SimpleLink.html b/docs/module-models_SimpleLink.html index 6ea1702..7b6678d 100644 --- a/docs/module-models_SimpleLink.html +++ b/docs/module-models_SimpleLink.html @@ -94,7 +94,7 @@

+ + + + + + + + +

(inner, constant) offline

+ + + + +
+

value: "offline"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) online

+ + + + +
+

value: "online"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -1206,7 +1402,7 @@
Type:
Source:
@@ -1278,7 +1474,7 @@
Type:
Source:
@@ -1350,7 +1546,7 @@
Type:
Source:
@@ -1503,7 +1699,7 @@
Parameters:
Source:
@@ -1571,7 +1767,7 @@
Returns:

diff --git a/docs/module-models_Sort.html b/docs/module-models_Sort.html index 9df66af..78794fb 100644 --- a/docs/module-models_Sort.html +++ b/docs/module-models_Sort.html @@ -28,7 +28,7 @@

Class: module:models/Sort

-

module:models/Sort()

+

module:models/Sort(field)

@@ -41,7 +41,7 @@

module:mode -

new module:models/Sort()

+

new module:models/Sort(field)

@@ -61,6 +61,55 @@

new +

Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
field + + +String + + + +

The name of the field to sort on.

+ + @@ -94,7 +143,7 @@

new
Source:
@@ -144,6 +193,202 @@

Members

+

(readonly) SortOrderEnum :String

+ + + + +
+

Allowed values for the sort_order property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) asc

+ + + + +
+

value: "asc"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) desc

+ + + + +
+

value: "desc"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) field :String

@@ -198,7 +443,7 @@
Type:
Source:
@@ -270,7 +515,7 @@
Type:
Source:
@@ -423,7 +668,7 @@
Parameters:
Source:
@@ -491,7 +736,7 @@
Returns:

diff --git a/docs/module-models_Status.html b/docs/module-models_Status.html index 773d89b..9d2052b 100644 --- a/docs/module-models_Status.html +++ b/docs/module-models_Status.html @@ -94,7 +94,7 @@

n
Source:
@@ -198,7 +198,7 @@

Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -495,7 +495,7 @@
Parameters:
Source:
@@ -563,7 +563,7 @@
Returns:

diff --git a/docs/module-models_Store.html b/docs/module-models_Store.html index 491da6b..a71a540 100644 --- a/docs/module-models_Store.html +++ b/docs/module-models_Store.html @@ -143,7 +143,7 @@
Parameters:
Source:
@@ -193,6 +193,78 @@

Members

+

(readonly) CountryCodeEnum :String

+ + + + +
+

Allowed values for the country_code property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) address1 :String

@@ -247,7 +319,7 @@
Type:
Source:
@@ -319,7 +391,281 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner) c_countryCodeValue :String

+ + + + +
+

Country Code Value - for the form values

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) c_inventoryListId :String

+ + + + +
+

Store Inventory List ID

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) c_TestAttribute :Array.<String>

+ + + + + + +
Type:
+
    +
  • + +Array.<String> + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) CA

+ + + + +
+

value: "CA"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -391,7 +737,7 @@
Type:
Source:
@@ -463,7 +809,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) DE

+ + + + +
+

value: "DE"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -535,7 +943,7 @@
Type:
Source:
@@ -607,7 +1015,7 @@
Type:
Source:
@@ -679,7 +1087,7 @@
Type:
Source:
@@ -751,7 +1159,7 @@
Type:
Source:
@@ -823,7 +1231,7 @@
Type:
Source:
@@ -895,7 +1303,7 @@
Type:
Source:
@@ -967,7 +1375,7 @@
Type:
Source:
@@ -1039,7 +1447,7 @@
Type:
Source:
@@ -1111,7 +1519,7 @@
Type:
Source:
@@ -1183,7 +1591,7 @@
Type:
Source:
@@ -1255,7 +1663,7 @@
Type:
Source:
@@ -1327,7 +1735,7 @@
Type:
Source:
@@ -1399,7 +1807,7 @@
Type:
Source:
@@ -1471,7 +1879,7 @@
Type:
Source:
@@ -1543,7 +1951,7 @@
Type:
Source:
@@ -1615,7 +2023,7 @@
Type:
Source:
@@ -1687,7 +2095,69 @@
Type:
Source:
+ + + + + + + +
+ + + + + + + + +

(inner, constant) US

+ + + + +
+

value: "US"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -1840,7 +2310,7 @@
Parameters:
Source:
@@ -1908,7 +2378,7 @@
Returns:

diff --git a/docs/module-models_StoreResult.html b/docs/module-models_StoreResult.html index a4a26fb..f2f7ace 100644 --- a/docs/module-models_StoreResult.html +++ b/docs/module-models_StoreResult.html @@ -94,7 +94,7 @@

Source:
@@ -150,7 +150,7 @@

(inner) count -

The number of returned documents.

+

The number of search results in the current page.

@@ -198,7 +198,7 @@
Type:
Source:
@@ -221,10 +221,6 @@

(inner) data -

The array of store documents.

- -
Type:
@@ -270,7 +266,7 @@
Type:
Source:
@@ -342,7 +338,7 @@
Type:
Source:
@@ -414,7 +410,7 @@
Type:
Source:
@@ -438,7 +434,7 @@

(inner) start -

The zero-based index of the first search hit to include in the result.

+

The zero-based index of the first search result to include in the document.

@@ -486,7 +482,7 @@
Type:
Source:
@@ -510,7 +506,7 @@

(inner) total -

The total number of documents.

+

The total number of search results.

@@ -558,7 +554,7 @@
Type:
Source:
@@ -711,7 +707,7 @@
Parameters:
Source:
@@ -779,7 +775,7 @@
Returns:

diff --git a/docs/module-models_SuggestedCategory.html b/docs/module-models_SuggestedCategory.html index 9ef42ed..4edad9f 100644 --- a/docs/module-models_SuggestedCategory.html +++ b/docs/module-models_SuggestedCategory.html @@ -93,7 +93,7 @@

Source:
@@ -197,7 +197,7 @@
Type:
Source:
@@ -269,7 +269,7 @@
Type:
Source:
@@ -341,7 +341,7 @@
Type:
Source:
@@ -413,7 +413,7 @@
Type:
Source:
@@ -566,7 +566,7 @@
Parameters:
Source:
@@ -634,7 +634,7 @@
Returns:

diff --git a/docs/module-models_SuggestedContent.html b/docs/module-models_SuggestedContent.html index a895f2f..8755156 100644 --- a/docs/module-models_SuggestedContent.html +++ b/docs/module-models_SuggestedContent.html @@ -93,7 +93,7 @@

Source:
@@ -197,7 +197,7 @@
Type:
Source:
@@ -269,7 +269,7 @@
Type:
Source:
@@ -341,7 +341,7 @@
Type:
Source:
@@ -494,7 +494,7 @@
Parameters:
Source:
@@ -562,7 +562,7 @@
Returns:

diff --git a/docs/module-models_SuggestedPhrase.html b/docs/module-models_SuggestedPhrase.html index b4d4743..929cd11 100644 --- a/docs/module-models_SuggestedPhrase.html +++ b/docs/module-models_SuggestedPhrase.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -423,7 +423,7 @@
Parameters:
Source:
@@ -491,7 +491,7 @@
Returns:

diff --git a/docs/module-models_SuggestedProduct.html b/docs/module-models_SuggestedProduct.html index 3f961f9..ea25699 100644 --- a/docs/module-models_SuggestedProduct.html +++ b/docs/module-models_SuggestedProduct.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -366,8 +366,7 @@

(inner) price -

The sales price of the product. In the case of complex products like a master or a set, -this is the minimum price of related child products.

+

The sales price of the product. In the case of complex products like a master or a set, this is the minimum price of related child products.

@@ -415,7 +414,7 @@
Type:
Source:
@@ -487,7 +486,7 @@
Type:
Source:
@@ -559,7 +558,7 @@
Type:
Source:
@@ -712,7 +711,7 @@
Parameters:
Source:
@@ -780,7 +779,7 @@
Returns:

diff --git a/docs/module-models_SuggestedTerm.html b/docs/module-models_SuggestedTerm.html index a5556c7..122120b 100644 --- a/docs/module-models_SuggestedTerm.html +++ b/docs/module-models_SuggestedTerm.html @@ -94,7 +94,7 @@

<
Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -567,7 +567,7 @@
Parameters:
Source:
@@ -635,7 +635,7 @@
Returns:

diff --git a/docs/module-models_SuggestedTerms.html b/docs/module-models_SuggestedTerms.html index 6ac7096..0b278e9 100644 --- a/docs/module-models_SuggestedTerms.html +++ b/docs/module-models_SuggestedTerms.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -423,7 +423,7 @@
Parameters:
Source:
@@ -491,7 +491,7 @@
Returns:

diff --git a/docs/module-models_Suggestion.html b/docs/module-models_Suggestion.html index 890fa03..bd63af5 100644 --- a/docs/module-models_Suggestion.html +++ b/docs/module-models_Suggestion.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -630,7 +630,7 @@
Type:
Source:
@@ -783,7 +783,7 @@
Parameters:
Source:
@@ -851,7 +851,7 @@
Returns:

diff --git a/docs/module-models_SuggestionResult.html b/docs/module-models_SuggestionResult.html index 32e56f3..fadce07 100644 --- a/docs/module-models_SuggestionResult.html +++ b/docs/module-models_SuggestionResult.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -711,7 +711,7 @@
Parameters:
Source:
@@ -779,7 +779,7 @@
Returns:

diff --git a/docs/module-models_TermFilter.html b/docs/module-models_TermFilter.html index f2397cd..175f9b6 100644 --- a/docs/module-models_TermFilter.html +++ b/docs/module-models_TermFilter.html @@ -125,8 +125,7 @@
Parameters:
-

The operator to compare -the field's values with the given ones.

+

The operator to compare the field's values with the given ones.

@@ -167,7 +166,7 @@
Parameters:
Source:
@@ -217,6 +216,78 @@

Members

+

(readonly) OperatorEnum :String

+ + + + +
+

Allowed values for the operator property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) field :String

@@ -271,7 +342,503 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) greater

+ + + + +
+

value: "greater"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is

+ + + + +
+

value: "is"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is_not_null

+ + + + +
+

value: "is_not_null"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is_null

+ + + + +
+

value: "is_null"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) less

+ + + + +
+

value: "less"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) neq

+ + + + +
+

value: "neq"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) not_in

+ + + + +
+

value: "not_in"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) one_of

+ + + + +
+

value: "one_of"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -343,7 +910,7 @@
Type:
Source:
@@ -415,7 +982,7 @@
Type:
Source:
@@ -568,7 +1135,7 @@
Parameters:
Source:
@@ -636,7 +1203,7 @@
Returns:

diff --git a/docs/module-models_TermQuery.html b/docs/module-models_TermQuery.html index 1b74758..8aebc60 100644 --- a/docs/module-models_TermQuery.html +++ b/docs/module-models_TermQuery.html @@ -50,11 +50,7 @@

Constructs a new TermQuery. -A term query matches one (or more) value(s) against one (or more) document -field(s). A document is considered a hit if one of the values matches (exactly) -with at least one of the given fields. The operator &quot;is&quot; can only -take one value, while &quot;one_of&quot; can take multiple. If multiple -fields are specified, they are combined using the OR operator.

+A term query matches one (or more) value(s) against one (or more) document field(s). A document is considered a hit if one of the values matches (exactly) with at least one of the given fields. The operator &quot;is&quot; can only take one value, while &quot;one_of&quot; can take multiple values. If multiple fields are specified, they are combined using the OR operator. The

@@ -170,7 +166,7 @@
Parameters:
Source:
@@ -220,6 +216,78 @@

Members

+

(readonly) OperatorEnum :String

+ + + + +
+

Allowed values for the operator property.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + +

(inner) fields :Array.<String>

@@ -274,7 +342,503 @@
Type:
Source:
+ + + + + + + +

+ + + + + + + + +

(inner, constant) greater

+ + + + +
+

value: "greater"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is

+ + + + +
+

value: "is"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is_not_null

+ + + + +
+

value: "is_not_null"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) is_null

+ + + + +
+

value: "is_null"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) less

+ + + + +
+

value: "less"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) neq

+ + + + +
+

value: "neq"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) not_in

+ + + + +
+

value: "not_in"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner, constant) one_of

+ + + + +
+

value: "one_of"

+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
@@ -346,7 +910,7 @@
Type:
Source:
@@ -418,7 +982,7 @@
Type:
Source:
@@ -571,7 +1135,7 @@
Parameters:
Source:
@@ -639,7 +1203,7 @@
Returns:

diff --git a/docs/module-models_TextQuery.html b/docs/module-models_TextQuery.html index eb8ebc9..6f4ea4e 100644 --- a/docs/module-models_TextQuery.html +++ b/docs/module-models_TextQuery.html @@ -50,11 +50,7 @@

Constructs a new TextQuery. -A text query is used to match some text (i.e. a search phrase possibly consisting of -multiple terms) against one or multiple fields. In case multiple fields are provided, -the phrase conceptually forms a logical OR over the fields. In this case, the terms -of the phrase basically have to match within the text, that would result in -concatenating all given fields.

+A text query is used to match some text (i.e. a search phrase possibly consisting of multiple terms) against one or multiple fields. In case multiple fields are provided, the phrase conceptually forms a logical OR over the fields. In this case, the terms of the phrase basically have to match within the text, that would result in concatenating all given fields.

@@ -170,7 +166,7 @@
Parameters:
Source:
@@ -274,7 +270,7 @@
Type:
Source:
@@ -346,7 +342,7 @@
Type:
Source:
@@ -499,7 +495,7 @@
Parameters:
Source:
@@ -567,7 +563,7 @@
Returns:

diff --git a/docs/module-models_TrustedSystemAuthRequest.html b/docs/module-models_TrustedSystemAuthRequest.html new file mode 100644 index 0000000..92dbe9f --- /dev/null +++ b/docs/module-models_TrustedSystemAuthRequest.html @@ -0,0 +1,577 @@ + + + + + JSDoc: Class: module:models/TrustedSystemAuthRequest + + + + + + + + + + +
+ +

Class: module:models/TrustedSystemAuthRequest

+ + + + + + +
+ +
+ +

module:models/TrustedSystemAuthRequest(clientId, login)

+ + +
+ +
+
+ + + + + + +

new module:models/TrustedSystemAuthRequest(clientId, login)

+ + + + + + +
+

Constructs a new TrustedSystemAuthRequest.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
clientId + + +String + + + +

The client id of the shopping application to be encoded in the customer JWT. This is not the same as the OAuth Client ID used to authenticate the API call. The OAuth Client ID is the trusted/private one; this is the untrusted/public one.

login + + +String + + + +

The customer's login.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + +

Members

+ + + +

(inner) client_id :String

+ + + + +
+

The client id of the shopping application to be encoded in the customer JWT. This is not the same as the OAuth Client ID used to authenticate the API call. The OAuth Client ID is the trusted/private one; this is the untrusted/public one.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + +

(inner) login :String

+ + + + +
+

The customer's login.

+
+ + + +
Type:
+
    +
  • + +String + + +
  • +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + +

Methods

+ + + + + + + +

(static) constructFromObject(data, obj) → {module:models/TrustedSystemAuthRequest}

+ + + + + + +
+

Constructs a TrustedSystemAuthRequest from a plain JavaScript object, optionally creating a new instance. +Copies all relevant properties from data to obj if supplied or a new instance if not.

+
+ + + + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
data + + +Object + + + +

The plain JavaScript object bearing properties of interest.

obj + + +module:models/TrustedSystemAuthRequest + + + +

Optional instance to populate.

+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ + + + + + + +
+ + + + + + + + + + + + + + + +
Returns:
+ + +
+

The populated TrustedSystemAuthRequest instance.

+
+ + + +
+
+ Type +
+
+ +module:models/TrustedSystemAuthRequest + + +
+
+ + + + + + + + + + + + + +
+ +
+ + + + +
+ + + +
+ + + + + + + \ No newline at end of file diff --git a/docs/module-models_Variant.html b/docs/module-models_Variant.html index 91bd68b..e0de77d 100644 --- a/docs/module-models_Variant.html +++ b/docs/module-models_Variant.html @@ -166,7 +166,7 @@
Parameters:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -558,7 +558,7 @@
Type:
Source:
@@ -711,7 +711,7 @@
Parameters:
Source:
@@ -779,7 +779,7 @@
Returns:

diff --git a/docs/module-models_VariationAttribute.html b/docs/module-models_VariationAttribute.html index 6adb2bc..f317b2b 100644 --- a/docs/module-models_VariationAttribute.html +++ b/docs/module-models_VariationAttribute.html @@ -49,7 +49,8 @@

-

Constructs a new VariationAttribute.

+

Constructs a new VariationAttribute. +Document representing a variation attribute.

@@ -101,7 +102,7 @@
Parameters:
- +

The id of the variation attribute.

@@ -142,7 +143,7 @@
Parameters:
Source:
@@ -197,6 +198,10 @@

(inner) id +

The id of the variation attribute.

+ +
Type:
@@ -242,7 +247,7 @@
Type:
Source:
@@ -265,6 +270,10 @@

(inner) name +

The localized display name of the variation attribute.

+ +
Type:
@@ -310,7 +319,7 @@
Type:
Source:
@@ -333,6 +342,10 @@

(inner) values +
+

The sorted array of variation values. This array can be empty.

+
+

Type:
@@ -378,7 +391,7 @@
Type:
Source:
@@ -531,7 +544,7 @@
Parameters:
Source:
@@ -599,7 +612,7 @@
Returns:

diff --git a/docs/module-models_VariationAttributeValue.html b/docs/module-models_VariationAttributeValue.html index cdaf031..3a1e95c 100644 --- a/docs/module-models_VariationAttributeValue.html +++ b/docs/module-models_VariationAttributeValue.html @@ -49,7 +49,8 @@

-

Constructs a new VariationAttributeValue.

+

Constructs a new VariationAttributeValue. +Document representing a variation attribute value.

@@ -101,7 +102,7 @@
Parameters:
- +

The actual variation value.

@@ -142,7 +143,7 @@
Parameters:
Source:
@@ -197,6 +198,10 @@

(inner) d +
+

The localized description of the variation value.

+
+

Type:
@@ -242,7 +247,7 @@
Type:
Source:
@@ -265,6 +270,10 @@

(inner) image +

The first product image for the configured viewtype and this variation value.

+ +
Type:
@@ -310,7 +319,7 @@
Type:
Source:
@@ -333,6 +342,10 @@

(inner) +
+

The first product image for the configured viewtype and this variation value. (typically the swatch image)

+
+

Type:
@@ -378,7 +391,7 @@
Type:
Source:
@@ -401,6 +414,10 @@

(inner) name +

The localized display name of the variation value.

+ +
Type:
@@ -446,7 +463,7 @@
Type:
Source:
@@ -469,6 +486,10 @@

(inner) ord +
+

A flag indicating whether at least one variant with this variation attribute value is available to sell.

+
+

Type:
@@ -514,7 +535,7 @@
Type:
Source:
@@ -537,6 +558,10 @@

(inner) value +

The actual variation value.

+ +
Type:
@@ -582,7 +607,7 @@
Type:
Source:
@@ -735,7 +760,7 @@
Parameters:
Source:
@@ -803,7 +828,7 @@
Returns:

diff --git a/docs/module-models_VariationGroup.html b/docs/module-models_VariationGroup.html index 70b9317..56095e2 100644 --- a/docs/module-models_VariationGroup.html +++ b/docs/module-models_VariationGroup.html @@ -94,7 +94,7 @@

Source:
@@ -198,7 +198,7 @@
Type:
Source:
@@ -270,7 +270,7 @@
Type:
Source:
@@ -342,7 +342,7 @@
Type:
Source:
@@ -414,7 +414,7 @@
Type:
Source:
@@ -486,7 +486,7 @@
Type:
Source:
@@ -639,7 +639,7 @@
Parameters:
Source:
@@ -707,7 +707,7 @@
Returns:

diff --git a/src/ApiClient.js b/src/ApiClient.js index bc9939f..e5ce428 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -25,7 +25,7 @@ import Fault from './models/Fault' */ const defaultConfig = { - basePath: 'https://localhost/s/siteId/dw/shop/v17_8', + basePath: 'https://localhost/s/siteId/dw/shop/v20_4', cache: true, defaultHeaders: {}, enableCookies: false, @@ -63,7 +63,7 @@ export default class ApiClient { /** * The base URL against which to resolve every API call's (relative) path. * @type {String} - * @default https://localhost/s/siteId/dw/shop/v17_8 + * @default https://localhost/s/siteId/dw/shop/v20_4 */ this.basePath = basePath.replace(/\/+$/, '') From dab41a3ba6abb30c2cd89ea1af36aea03f385782 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:25:11 -0700 Subject: [PATCH 10/21] 0.1.13-0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb160d1..0240fac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.12", + "version": "0.1.13-0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 60e3243..5075916 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.12", + "version": "0.1.13-0", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From b778cfecb017fb401ede8fb832a678104df9f362 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:25:21 -0700 Subject: [PATCH 11/21] 0.1.13 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0240fac..3393457 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13-0", + "version": "0.1.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5075916..0b61378 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13-0", + "version": "0.1.13", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From c8a88a5e8c0eac5d1da419f185b925a286809637 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:26:02 -0700 Subject: [PATCH 12/21] 0.1.14-0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3393457..58a623c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13", + "version": "0.1.14-0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0b61378..dd1274b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13", + "version": "0.1.14-0", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From f6864bd290ad7a54b3de8df35224ac57945ebf9b Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:26:27 -0700 Subject: [PATCH 13/21] Revert "0.1.14-0" This reverts commit c8a88a5e8c0eac5d1da419f185b925a286809637. --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 58a623c..3393457 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.14-0", + "version": "0.1.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index dd1274b..0b61378 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.14-0", + "version": "0.1.13", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From fe3f8eec5c616d1a804bc917136483d23c1febce Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:26:36 -0700 Subject: [PATCH 14/21] Revert "0.1.13" This reverts commit b778cfecb017fb401ede8fb832a678104df9f362. --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3393457..0240fac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13", + "version": "0.1.13-0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0b61378..5075916 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13", + "version": "0.1.13-0", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From 1c80fd36185f2cb3685cf8315c922041c59b406e Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:35:14 -0700 Subject: [PATCH 15/21] Re-apply refinements fix https://github.com/mobify/commercecloud-ocapi-client/pull/29 --- src/api/ContentSearchApi.js | 4 +++- src/api/ProductSearchApi.js | 24 ++++++++++++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/api/ContentSearchApi.js b/src/api/ContentSearchApi.js index 40868c4..f92642d 100644 --- a/src/api/ContentSearchApi.js +++ b/src/api/ContentSearchApi.js @@ -59,7 +59,6 @@ export default class ContentSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: this.apiClient.buildCollectionParam(opts.sort, 'csv'), start: opts.start, count: opts.count, @@ -75,6 +74,9 @@ export default class ContentSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ContentSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/content_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, diff --git a/src/api/ProductSearchApi.js b/src/api/ProductSearchApi.js index 1606e6b..f45b97a 100644 --- a/src/api/ProductSearchApi.js +++ b/src/api/ProductSearchApi.js @@ -61,7 +61,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -79,6 +78,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -127,7 +129,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -143,6 +144,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search/availability', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -189,7 +193,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -205,6 +208,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search/images', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -252,7 +258,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -269,6 +274,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search/prices', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -316,7 +324,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -332,6 +339,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search/represented_products', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -378,7 +388,6 @@ export default class ProductSearchApi { } const queryParams = { q: opts.q, - refine: this.apiClient.buildCollectionParam(opts.refine, 'csv'), sort: opts.sort, start: opts.start, count: opts.count, @@ -394,6 +403,9 @@ export default class ProductSearchApi { const accepts = ['application/json', 'text/xml', 'application/xml'] const returnType = ProductSearchResult + // Update queryParams with parsed refinements + Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) + return this.apiClient.callApi( '/product_search/variations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, From 46fe951c1177607a848abb4506aa19e7c97bc0a0 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 13:36:43 -0700 Subject: [PATCH 16/21] bump version to 0.1.13 release candidate 0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5075916..6157b25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13-0", + "version": "0.1.13-release-candidate.0", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE", From a405bab8ef8c5d1c56acee5788800749f34c2e60 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 14:00:21 -0700 Subject: [PATCH 17/21] Lint fix --- src/api/ProductSearchApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/ProductSearchApi.js b/src/api/ProductSearchApi.js index f45b97a..81ccbd1 100644 --- a/src/api/ProductSearchApi.js +++ b/src/api/ProductSearchApi.js @@ -405,7 +405,7 @@ export default class ProductSearchApi { // Update queryParams with parsed refinements Object.assign(queryParams, this.apiClient.buildRefineParams(opts.refine)) - + return this.apiClient.callApi( '/product_search/variations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, From 57a12a9ece873e9a2f09b275556f9ab83215da77 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 14:01:49 -0700 Subject: [PATCH 18/21] Update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee7a20b..0aeb5ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## To Be Released +- Regenerate client using version 20.4 of the OCAPI swagger definition. [#37](https://github.com/mobify/commercecloud-ocapi-client/pull/37) + ## v0.1.12 (January 15, 2020) - Fix refine option processing to include refine_1 ... refine_n alternatives From 6ef93be6681d0cf2ededa2fe5011de2587870e49 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 14:06:44 -0700 Subject: [PATCH 19/21] Update index.js --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 75536ac..4b3e4d5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,7 @@ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ +/* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */ +/* * * * * * * * * * * * * * * * * * * * * * * * * * * */ + /** * Shop API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) From 78a008d34e99b18c25fe6ed08e8648638d1daf7e Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 14:23:49 -0700 Subject: [PATCH 20/21] innocuous change to trigger build --- src/models/ApproachingDiscount.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/models/ApproachingDiscount.js b/src/models/ApproachingDiscount.js index bbfda27..de5d6d3 100644 --- a/src/models/ApproachingDiscount.js +++ b/src/models/ApproachingDiscount.js @@ -22,9 +22,6 @@ import PromotionLink from './PromotionLink' import ShippingMethod from './ShippingMethod' - - - /** * The ApproachingDiscount model module. * @module models/ApproachingDiscount From 75b775cdaeccee9ddbdade66f1ef711dd8cb45d1 Mon Sep 17 00:00:00 2001 From: Ben Chypak Date: Tue, 21 Jul 2020 15:53:50 -0700 Subject: [PATCH 21/21] Revert version, update changelog heading --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aeb5ff..604bed8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## To Be Released +## To be released - Regenerate client using version 20.4 of the OCAPI swagger definition. [#37](https://github.com/mobify/commercecloud-ocapi-client/pull/37) ## v0.1.12 (January 15, 2020) diff --git a/package.json b/package.json index 6157b25..60e3243 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commercecloud-ocapi-client", - "version": "0.1.13-release-candidate.0", + "version": "0.1.12", "description": "An ES6 JavaScript Client for Salesforce Open Commerce API", "repository": "https://github.com/mobify/commercecloud-ocapi-client", "license": "SEE LICENSE IN LICENSE",