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.