@plentymarkets/shop-api 0.112.0 → 0.114.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__tests__/__fixtures__/CategoryEntry.d.ts +4 -0
- package/lib/__tests__/__fixtures__/CategoryEntry.d.ts.map +1 -0
- package/lib/api/doHandleAllowPaymentApplePay/index.d.ts +1 -2
- package/lib/api/doHandleAllowPaymentApplePay/index.d.ts.map +1 -1
- package/lib/api/doHandlePayPalPaymentFundingSources/index.d.ts +18 -0
- package/lib/api/doHandlePayPalPaymentFundingSources/index.d.ts.map +1 -0
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/paypalModule/doCapturePayPalOrderV2/index.d.ts +18 -0
- package/lib/api/paypalModule/doCapturePayPalOrderV2/index.d.ts.map +1 -0
- package/lib/api/paypalModule/doCreatePayPalOrder/index.d.ts +18 -0
- package/lib/api/paypalModule/doCreatePayPalOrder/index.d.ts.map +1 -0
- package/lib/api/paypalModule/doCreatePlentyPaymentFromPayPalOrder/index.d.ts +18 -0
- package/lib/api/paypalModule/doCreatePlentyPaymentFromPayPalOrder/index.d.ts.map +1 -0
- package/lib/api/paypalModule/getPayPalFraudId/index.d.ts +18 -0
- package/lib/api/paypalModule/getPayPalFraudId/index.d.ts.map +1 -0
- package/lib/api/paypalModule/getPayPalOrder/index.d.ts +18 -0
- package/lib/api/paypalModule/getPayPalOrder/index.d.ts.map +1 -0
- package/lib/api/paypalModule/index.d.ts +6 -0
- package/lib/api/paypalModule/index.d.ts.map +1 -0
- package/lib/getters/__tests__/unit/barcodeGetters.unit.spec.d.ts +2 -0
- package/lib/getters/__tests__/unit/barcodeGetters.unit.spec.d.ts.map +1 -0
- package/lib/getters/__tests__/unit/categoryEntryGetters.unit.spec.d.ts +2 -0
- package/lib/getters/__tests__/unit/categoryEntryGetters.unit.spec.d.ts.map +1 -0
- package/lib/getters/barcodeGetters.d.ts +19 -0
- package/lib/getters/barcodeGetters.d.ts.map +1 -0
- package/lib/getters/categoryEntryGetters.d.ts +35 -0
- package/lib/getters/categoryEntryGetters.d.ts.map +1 -0
- package/lib/getters/index.d.ts +2 -0
- package/lib/getters/index.d.ts.map +1 -1
- package/lib/getters/productGetters.d.ts +3 -1
- package/lib/getters/productGetters.d.ts.map +1 -1
- package/lib/index.cjs.js +283 -37
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +275 -37
- package/lib/index.es.js.map +1 -1
- package/lib/types/api/paypal.d.ts +35 -2
- package/lib/types/api/paypal.d.ts.map +1 -1
- package/lib/types/api/product.d.ts +11 -0
- package/lib/types/api/product.d.ts.map +1 -1
- package/package.json +2 -2
- package/server/__tests__/__fixtures__/CategoryEntry.d.ts +4 -0
- package/server/__tests__/__fixtures__/CategoryEntry.d.ts.map +1 -0
- package/server/api/doHandleAllowPaymentApplePay/index.d.ts +1 -2
- package/server/api/doHandleAllowPaymentApplePay/index.d.ts.map +1 -1
- package/server/api/doHandlePayPalPaymentFundingSources/index.d.ts +18 -0
- package/server/api/doHandlePayPalPaymentFundingSources/index.d.ts.map +1 -0
- package/server/api/index.d.ts +2 -0
- package/server/api/index.d.ts.map +1 -1
- package/server/api/paypalModule/doCapturePayPalOrderV2/index.d.ts +18 -0
- package/server/api/paypalModule/doCapturePayPalOrderV2/index.d.ts.map +1 -0
- package/server/api/paypalModule/doCreatePayPalOrder/index.d.ts +18 -0
- package/server/api/paypalModule/doCreatePayPalOrder/index.d.ts.map +1 -0
- package/server/api/paypalModule/doCreatePlentyPaymentFromPayPalOrder/index.d.ts +18 -0
- package/server/api/paypalModule/doCreatePlentyPaymentFromPayPalOrder/index.d.ts.map +1 -0
- package/server/api/paypalModule/getPayPalFraudId/index.d.ts +18 -0
- package/server/api/paypalModule/getPayPalFraudId/index.d.ts.map +1 -0
- package/server/api/paypalModule/getPayPalOrder/index.d.ts +18 -0
- package/server/api/paypalModule/getPayPalOrder/index.d.ts.map +1 -0
- package/server/api/paypalModule/index.d.ts +6 -0
- package/server/api/paypalModule/index.d.ts.map +1 -0
- package/server/getters/__tests__/unit/barcodeGetters.unit.spec.d.ts +2 -0
- package/server/getters/__tests__/unit/barcodeGetters.unit.spec.d.ts.map +1 -0
- package/server/getters/__tests__/unit/categoryEntryGetters.unit.spec.d.ts +2 -0
- package/server/getters/__tests__/unit/categoryEntryGetters.unit.spec.d.ts.map +1 -0
- package/server/getters/barcodeGetters.d.ts +19 -0
- package/server/getters/barcodeGetters.d.ts.map +1 -0
- package/server/getters/categoryEntryGetters.d.ts +35 -0
- package/server/getters/categoryEntryGetters.d.ts.map +1 -0
- package/server/getters/index.d.ts +2 -0
- package/server/getters/index.d.ts.map +1 -1
- package/server/getters/productGetters.d.ts +3 -1
- package/server/getters/productGetters.d.ts.map +1 -1
- package/server/index.js +147 -1
- package/server/index.js.map +1 -1
- package/server/types/api/paypal.d.ts +35 -2
- package/server/types/api/paypal.d.ts.map +1 -1
- package/server/types/api/product.d.ts +11 -0
- package/server/types/api/product.d.ts.map +1 -1
package/lib/index.es.js
CHANGED
@@ -2415,7 +2415,7 @@ const setCategoryTemplate = async (context, params) => {
|
|
2415
2415
|
* const { data, error } = await useAsyncData(() => sdk.plentysystems.getRobots());
|
2416
2416
|
* ```
|
2417
2417
|
*/
|
2418
|
-
const getRobots$
|
2418
|
+
const getRobots$2 = async (context) => {
|
2419
2419
|
const url = new URL('/rest/storefront/seo/robots', context.config.api.url);
|
2420
2420
|
const { data: response } = await context.client.get(url.href);
|
2421
2421
|
return { data: response.data };
|
@@ -2895,6 +2895,146 @@ const getPackstations = async (context, params) => {
|
|
2895
2895
|
};
|
2896
2896
|
};
|
2897
2897
|
|
2898
|
+
/**
|
2899
|
+
* Method doHandlePayPalPaymentFundingSources - Used to update the availability for PayPal APMs.
|
2900
|
+
*
|
2901
|
+
* @remarks
|
2902
|
+
* * Calls /rest/payment/payPal/smart_payment/handle_founding_sources
|
2903
|
+
* * Used to update the availability for PayPal APMs.
|
2904
|
+
*
|
2905
|
+
* @example
|
2906
|
+
* ``` ts
|
2907
|
+
* const { data } = await useSdk().plentysystems.doHandlePayPalPaymentFoundingSources({
|
2908
|
+
* availableFoundingSources: Object.fromEntries(availableFoundingSources),
|
2909
|
+
* });
|
2910
|
+
* ```
|
2911
|
+
* @param params PayPalAllowApplePayRequest
|
2912
|
+
*/
|
2913
|
+
const doHandlePayPalPaymentFundingSources = async (context, params) => {
|
2914
|
+
const url = new URL('/rest/payment/payPal/smart_payment/handle_founding_sources', context.config.api.url);
|
2915
|
+
const { data } = await context.client.post(url.href, params);
|
2916
|
+
return { data: data };
|
2917
|
+
};
|
2918
|
+
|
2919
|
+
/**
|
2920
|
+
* Method doCreatePayPalOrder - Used to create a PayPal order.
|
2921
|
+
*
|
2922
|
+
* @remarks
|
2923
|
+
* * Calls /rest/paypal/create/{type}
|
2924
|
+
* * Method should be used to create a PayPal order.
|
2925
|
+
*
|
2926
|
+
* @returns
|
2927
|
+
*
|
2928
|
+
* @example
|
2929
|
+
* ``` ts
|
2930
|
+
* const { data } = await useSdk().plentysystems.doCreatePayPalOrder({ type: 'basket' });
|
2931
|
+
* ```
|
2932
|
+
*/
|
2933
|
+
const doCreatePayPalOrder = async (context, params) => {
|
2934
|
+
let path = '/rest/paypal/create';
|
2935
|
+
if (params.type === 'basket') {
|
2936
|
+
path += '/basket';
|
2937
|
+
}
|
2938
|
+
else if (params.type === 'express') {
|
2939
|
+
path += '/express';
|
2940
|
+
}
|
2941
|
+
else if (params.type === 'order') {
|
2942
|
+
if (params.plentyOrderId) {
|
2943
|
+
path += '/order/' + params.plentyOrderId;
|
2944
|
+
}
|
2945
|
+
else {
|
2946
|
+
throw new Error('plentyOrderId is required for type "order"');
|
2947
|
+
}
|
2948
|
+
}
|
2949
|
+
const url = new URL(path, context.config.api.url);
|
2950
|
+
const { data: response } = await context.client.post(url.href, {
|
2951
|
+
additionalInformation: params.additionalInformation,
|
2952
|
+
});
|
2953
|
+
return { data: response?.result };
|
2954
|
+
};
|
2955
|
+
|
2956
|
+
/**
|
2957
|
+
* Method doCreatePlentyPaymentFromPayPalOrder - Used to create a plenty payment from a PayPal order.
|
2958
|
+
*
|
2959
|
+
* @remarks
|
2960
|
+
* * Calls /rest/paypal/map/payment/:plentyOrderId
|
2961
|
+
* * Method should be used to create a plenty payment from a PayPal order.
|
2962
|
+
*
|
2963
|
+
* @returns
|
2964
|
+
*
|
2965
|
+
* @example
|
2966
|
+
* ``` ts
|
2967
|
+
* const { data } = await useSdk().plentysystems.doCreatePlentyPaymentFromPayPalOrder({ plentyOrderId: 1234 });
|
2968
|
+
* ```
|
2969
|
+
*/
|
2970
|
+
const doCreatePlentyPaymentFromPayPalOrder = async (context, params) => {
|
2971
|
+
const url = new URL('/rest/paypal/map/payment/' + params.payPalOrderId, context.config.api.url);
|
2972
|
+
const { data: response } = await context.client.post(url.href, {
|
2973
|
+
orderId: params.plentyOrderId,
|
2974
|
+
});
|
2975
|
+
return { data: response };
|
2976
|
+
};
|
2977
|
+
|
2978
|
+
/**
|
2979
|
+
* Method getPayPalOrder - Used to get a PayPal order.
|
2980
|
+
*
|
2981
|
+
* @remarks
|
2982
|
+
* * Calls /rest/paypal/order/get/:paypalOrderId
|
2983
|
+
* * Method should be used to get a PayPal order.
|
2984
|
+
*
|
2985
|
+
* @returns
|
2986
|
+
*
|
2987
|
+
* @example
|
2988
|
+
* ``` ts
|
2989
|
+
* const { data } = await useSdk().plentysystems.getPayPalOrder({ paypalOrderId: 'paypal-123' });
|
2990
|
+
* ```
|
2991
|
+
*/
|
2992
|
+
const getPayPalOrder = async (context, params) => {
|
2993
|
+
const url = new URL('/rest/paypal/get/order/' + params.paypalOrderId, context.config.api.url);
|
2994
|
+
const { data: response } = await context.client.get(url.href);
|
2995
|
+
return { data: response };
|
2996
|
+
};
|
2997
|
+
|
2998
|
+
/**
|
2999
|
+
* Method doCapturePayPalOrderV2 - Used to get a capture a PayPal order.
|
3000
|
+
*
|
3001
|
+
* @remarks
|
3002
|
+
* * Calls /rest/paypal/capture/order/:paypalOrderId
|
3003
|
+
* * Method should be used to capture a PayPal order.
|
3004
|
+
*
|
3005
|
+
* @returns
|
3006
|
+
*
|
3007
|
+
* @example
|
3008
|
+
* ``` ts
|
3009
|
+
* const { data } = await useSdk().plentysystems.doCapturePayPalOrderV2({ paypalOrderId: 'paypal-123' });
|
3010
|
+
* ```
|
3011
|
+
*/
|
3012
|
+
const doCapturePayPalOrderV2 = async (context, params) => {
|
3013
|
+
const url = new URL('/rest/paypal/capture/order/' + params.paypalOrderId, context.config.api.url);
|
3014
|
+
const { data: response } = await context.client.post(url.href);
|
3015
|
+
return { data: response };
|
3016
|
+
};
|
3017
|
+
|
3018
|
+
/**
|
3019
|
+
* Method getPayPalFraudId - Used to get the PayPal fraud id.
|
3020
|
+
*
|
3021
|
+
* @remarks
|
3022
|
+
* * Calls /rest/paypal/fraud_id
|
3023
|
+
* * Method should be used to get the PayPal fraud id.
|
3024
|
+
*
|
3025
|
+
* @returns
|
3026
|
+
*
|
3027
|
+
* @example
|
3028
|
+
* ``` ts
|
3029
|
+
* const { data } = await useSdk().plentysystems.getPayPalOrder({ paypalOrderId: 'paypal-123' });
|
3030
|
+
* ```
|
3031
|
+
*/
|
3032
|
+
const getPayPalFraudId = async (context) => {
|
3033
|
+
const url = new URL('/rest/paypal/fraud_id', context.config.api.url);
|
3034
|
+
const { data: response } = await context.client.get(url.href);
|
3035
|
+
return { data: response };
|
3036
|
+
};
|
3037
|
+
|
2898
3038
|
const getAdditionalInformation = (params) => {
|
2899
3039
|
return {
|
2900
3040
|
orderContactWish: params?.orderContactWish ?? null,
|
@@ -2942,7 +3082,7 @@ function getTree(categories) {
|
|
2942
3082
|
}
|
2943
3083
|
return tree;
|
2944
3084
|
}
|
2945
|
-
function getId$
|
3085
|
+
function getId$9(categoryTreeItem) {
|
2946
3086
|
return categoryTreeItem.id;
|
2947
3087
|
}
|
2948
3088
|
function getTreeItem(category) {
|
@@ -3023,7 +3163,7 @@ function generateBreadcrumbFromCategory(tree, categoryId) {
|
|
3023
3163
|
const category = findCategoryBySlugs(tree, path.slice(0, i + 1));
|
3024
3164
|
if (category) {
|
3025
3165
|
breadcrumbs.push({
|
3026
|
-
name: getName$
|
3166
|
+
name: getName$5(category),
|
3027
3167
|
link: generateCategoryLink(tree, category),
|
3028
3168
|
});
|
3029
3169
|
}
|
@@ -3036,7 +3176,7 @@ function getCategoryDetails$1(details) {
|
|
3036
3176
|
function getCount(category) {
|
3037
3177
|
return category ? Number(category?.itemCount?.[0]?.count) || 0 : 0;
|
3038
3178
|
}
|
3039
|
-
function getName$
|
3179
|
+
function getName$5(category) {
|
3040
3180
|
const details = getCategoryDetails$1(category.details);
|
3041
3181
|
return details ? details.name : '';
|
3042
3182
|
}
|
@@ -3061,7 +3201,7 @@ function getMappedBreadcrumbs(categories, categoryId, prefix = '') {
|
|
3061
3201
|
});
|
3062
3202
|
}
|
3063
3203
|
const categoryTreeGetters = {
|
3064
|
-
getId: getId$
|
3204
|
+
getId: getId$9,
|
3065
3205
|
getTree,
|
3066
3206
|
getTreeItem,
|
3067
3207
|
findCategoryBySlug,
|
@@ -3072,7 +3212,7 @@ const categoryTreeGetters = {
|
|
3072
3212
|
generateBreadcrumbFromCategory,
|
3073
3213
|
getCategoryDetails: getCategoryDetails$1,
|
3074
3214
|
getCount,
|
3075
|
-
getName: getName$
|
3215
|
+
getName: getName$5,
|
3076
3216
|
getSlug: getSlug$1,
|
3077
3217
|
getItems: getItems$4,
|
3078
3218
|
getMappedBreadcrumbs,
|
@@ -3487,7 +3627,7 @@ const productPriceGetters = {
|
|
3487
3627
|
|
3488
3628
|
const NO_SELECTION_ID = -1;
|
3489
3629
|
const ITEM_TYPE_SET$1 = 'set';
|
3490
|
-
function getName$
|
3630
|
+
function getName$4(product) {
|
3491
3631
|
return product?.texts?.name1 ?? '';
|
3492
3632
|
}
|
3493
3633
|
function getSlug(product) {
|
@@ -3621,7 +3761,7 @@ function getCategoryIds(product) {
|
|
3621
3761
|
'',
|
3622
3762
|
]);
|
3623
3763
|
}
|
3624
|
-
function getId$
|
3764
|
+
function getId$8(product) {
|
3625
3765
|
return product?.variation?.id.toString() ?? '';
|
3626
3766
|
}
|
3627
3767
|
function getItemId$1(product) {
|
@@ -3705,9 +3845,12 @@ function getAvailabilityBackgroundColor(product) {
|
|
3705
3845
|
function getAvailabilityTextColor(product) {
|
3706
3846
|
return AvailabilityTextColor[getAvailabilityId(product)];
|
3707
3847
|
}
|
3708
|
-
function getParentCategoryId(product) {
|
3848
|
+
function getParentCategoryId$1(product) {
|
3709
3849
|
return product.defaultCategories?.[0]?.parentCategoryId ?? 0;
|
3710
3850
|
}
|
3851
|
+
function getBarcodes(product) {
|
3852
|
+
return product.barcodes ?? [];
|
3853
|
+
}
|
3711
3854
|
function getManufacturer(product) {
|
3712
3855
|
const manufacturerData = product.item.manufacturer;
|
3713
3856
|
return Array.isArray(manufacturerData) ? manufacturerData[0] : manufacturerData;
|
@@ -3715,7 +3858,7 @@ function getManufacturer(product) {
|
|
3715
3858
|
const productGetters = {
|
3716
3859
|
getUnitContent,
|
3717
3860
|
getUnitName,
|
3718
|
-
getName: getName$
|
3861
|
+
getName: getName$4,
|
3719
3862
|
getMinimumOrderQuantity,
|
3720
3863
|
getSlug,
|
3721
3864
|
getUrlPath,
|
@@ -3737,7 +3880,7 @@ const productGetters = {
|
|
3737
3880
|
getShortDescription,
|
3738
3881
|
getTechnicalData,
|
3739
3882
|
getCategoryIds,
|
3740
|
-
getId: getId$
|
3883
|
+
getId: getId$8,
|
3741
3884
|
getTotalReviews: getTotalReviews$1,
|
3742
3885
|
getAverageRating: getAverageRating$1,
|
3743
3886
|
getItemId: getItemId$1,
|
@@ -3778,8 +3921,9 @@ const productGetters = {
|
|
3778
3921
|
getAgenciesAvailabilityCLass,
|
3779
3922
|
getMetaDescription: getMetaDescription$1,
|
3780
3923
|
getMetaKeywords: getMetaKeywords$1,
|
3781
|
-
getParentCategoryId,
|
3924
|
+
getParentCategoryId: getParentCategoryId$1,
|
3782
3925
|
getManufacturer,
|
3926
|
+
getBarcodes,
|
3783
3927
|
};
|
3784
3928
|
|
3785
3929
|
function getItems$3(cart) {
|
@@ -4035,7 +4179,70 @@ const cartGetters = {
|
|
4035
4179
|
getMaxDeliveryDays,
|
4036
4180
|
};
|
4037
4181
|
|
4038
|
-
function
|
4182
|
+
function getChildCount(categoryEntry) {
|
4183
|
+
return categoryEntry.childCount ?? 0;
|
4184
|
+
}
|
4185
|
+
function getChildren(categoryEntry) {
|
4186
|
+
return categoryEntry.children || [];
|
4187
|
+
}
|
4188
|
+
function getClients(categoryEntry) {
|
4189
|
+
return categoryEntry.clients || [];
|
4190
|
+
}
|
4191
|
+
function getDetails(categoryEntry) {
|
4192
|
+
return categoryEntry.details || [];
|
4193
|
+
}
|
4194
|
+
function getId$7(categoryEntry) {
|
4195
|
+
return categoryEntry.id ?? 0;
|
4196
|
+
}
|
4197
|
+
function getItemCount(categoryEntry) {
|
4198
|
+
return categoryEntry.itemCount ?? [];
|
4199
|
+
}
|
4200
|
+
function getLevel(categoryEntry) {
|
4201
|
+
return categoryEntry.level ?? 0;
|
4202
|
+
}
|
4203
|
+
function getLinklist(categoryEntry) {
|
4204
|
+
return categoryEntry.linklist || '';
|
4205
|
+
}
|
4206
|
+
function getParentCategoryId(categoryEntry) {
|
4207
|
+
return categoryEntry.parentCategoryId ?? 0;
|
4208
|
+
}
|
4209
|
+
function getRight(categoryEntry) {
|
4210
|
+
return categoryEntry.right || '';
|
4211
|
+
}
|
4212
|
+
function getSitemap(categoryEntry) {
|
4213
|
+
return categoryEntry.sitemap || '';
|
4214
|
+
}
|
4215
|
+
function getType$3(categoryEntry) {
|
4216
|
+
return categoryEntry.type || '';
|
4217
|
+
}
|
4218
|
+
function getRobots$1(categoryEntry) {
|
4219
|
+
return categoryEntry.robots || '';
|
4220
|
+
}
|
4221
|
+
function isLinkedToWebstore(categoryEntry) {
|
4222
|
+
return categoryEntry.isLinkedToWebstore ?? false;
|
4223
|
+
}
|
4224
|
+
function hasChildren(categoryEntry) {
|
4225
|
+
return categoryEntry.hasChildren ?? false;
|
4226
|
+
}
|
4227
|
+
const categoryEntryGetters = {
|
4228
|
+
getChildCount,
|
4229
|
+
getChildren,
|
4230
|
+
getClients,
|
4231
|
+
getDetails,
|
4232
|
+
getId: getId$7,
|
4233
|
+
getItemCount,
|
4234
|
+
getLevel,
|
4235
|
+
getLinklist,
|
4236
|
+
getParentCategoryId,
|
4237
|
+
getRight,
|
4238
|
+
getSitemap,
|
4239
|
+
getType: getType$3,
|
4240
|
+
getRobots: getRobots$1,
|
4241
|
+
isLinkedToWebstore,
|
4242
|
+
hasChildren
|
4243
|
+
};
|
4244
|
+
|
4245
|
+
function getId$6(category) {
|
4039
4246
|
return category.id ?? 0;
|
4040
4247
|
}
|
4041
4248
|
function getParentId(category) {
|
@@ -4072,7 +4279,7 @@ function getCategoryRobots(category) {
|
|
4072
4279
|
return category.robots || '';
|
4073
4280
|
}
|
4074
4281
|
const categoryGetters = {
|
4075
|
-
getId: getId$
|
4282
|
+
getId: getId$6,
|
4076
4283
|
getParentId,
|
4077
4284
|
getCategoryName,
|
4078
4285
|
getCategoryDetails,
|
@@ -4126,10 +4333,10 @@ function getSortOptions(params) {
|
|
4126
4333
|
function getProducts(searchData) {
|
4127
4334
|
return searchData?.data?.products ?? [];
|
4128
4335
|
}
|
4129
|
-
function getName$
|
4336
|
+
function getName$3(filterGroup) {
|
4130
4337
|
return filterGroup?.name ?? '';
|
4131
4338
|
}
|
4132
|
-
function getType$
|
4339
|
+
function getType$2(filterGroup) {
|
4133
4340
|
return filterGroup?.type ?? '';
|
4134
4341
|
}
|
4135
4342
|
function getFilters(filterGroup) {
|
@@ -4168,8 +4375,8 @@ function getPagination$2(params) {
|
|
4168
4375
|
}
|
4169
4376
|
const facetGetters = {
|
4170
4377
|
getAll,
|
4171
|
-
getName: getName$
|
4172
|
-
getType: getType$
|
4378
|
+
getName: getName$3,
|
4379
|
+
getType: getType$2,
|
4173
4380
|
getFilterName,
|
4174
4381
|
getFilterCount,
|
4175
4382
|
getCssClass,
|
@@ -4213,7 +4420,7 @@ function getShippingDate(order, locale = '') {
|
|
4213
4420
|
function getById(orders, id) {
|
4214
4421
|
return orders.find((order) => order?.order?.id.toString() === id) ?? null;
|
4215
4422
|
}
|
4216
|
-
function getId$
|
4423
|
+
function getId$5(order) {
|
4217
4424
|
return order?.order?.id?.toString() || '';
|
4218
4425
|
}
|
4219
4426
|
function getOrderEmail(order) {
|
@@ -4647,7 +4854,7 @@ const orderGetters = {
|
|
4647
4854
|
getById,
|
4648
4855
|
getDate: getDate$1,
|
4649
4856
|
getFormattedPrice: getFormattedPrice$2,
|
4650
|
-
getId: getId$
|
4857
|
+
getId: getId$5,
|
4651
4858
|
getItemName: getItemName$2,
|
4652
4859
|
getItemShortDescription,
|
4653
4860
|
getItemPrice: getItemPrice$2,
|
@@ -4734,14 +4941,14 @@ const orderGetters = {
|
|
4734
4941
|
getShippingCostNet,
|
4735
4942
|
};
|
4736
4943
|
|
4737
|
-
function getType(document) {
|
4944
|
+
function getType$1(document) {
|
4738
4945
|
return document?.type ?? '';
|
4739
4946
|
}
|
4740
4947
|
function getNumberWithPrefix(document) {
|
4741
4948
|
return document?.numberWithPrefix ?? '';
|
4742
4949
|
}
|
4743
4950
|
const orderDocumentGetters = {
|
4744
|
-
getType,
|
4951
|
+
getType: getType$1,
|
4745
4952
|
getNumberWithPrefix,
|
4746
4953
|
};
|
4747
4954
|
|
@@ -4751,7 +4958,7 @@ function getDate(returnItem) {
|
|
4751
4958
|
}
|
4752
4959
|
return '';
|
4753
4960
|
}
|
4754
|
-
function getId$
|
4961
|
+
function getId$4(returnItem) {
|
4755
4962
|
return returnItem.order?.id.toString() || '';
|
4756
4963
|
}
|
4757
4964
|
function getStatus(returnItem) {
|
@@ -4828,7 +5035,7 @@ function getDefaultReturnReasonId(data) {
|
|
4828
5035
|
}
|
4829
5036
|
const returnGetters = {
|
4830
5037
|
getDate,
|
4831
|
-
getId: getId$
|
5038
|
+
getId: getId$4,
|
4832
5039
|
getStatus,
|
4833
5040
|
getPrice,
|
4834
5041
|
getItems: getItems$1,
|
@@ -5188,7 +5395,7 @@ filters) {
|
|
5188
5395
|
function getItemSku(item) {
|
5189
5396
|
return '';
|
5190
5397
|
}
|
5191
|
-
function getId$
|
5398
|
+
function getId$3(product) {
|
5192
5399
|
return product?.variation?.id.toString() ?? '';
|
5193
5400
|
}
|
5194
5401
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
@@ -5228,7 +5435,7 @@ const wishlistGetters = {
|
|
5228
5435
|
getItemSku,
|
5229
5436
|
getTotalItems,
|
5230
5437
|
getFormattedPrice,
|
5231
|
-
getId: getId$
|
5438
|
+
getId: getId$3,
|
5232
5439
|
canDirectlyAddToCart,
|
5233
5440
|
getCanDirectlyAddToCart,
|
5234
5441
|
};
|
@@ -5275,10 +5482,10 @@ const shippingProviderGetters = {
|
|
5275
5482
|
getShippingProfileId,
|
5276
5483
|
};
|
5277
5484
|
|
5278
|
-
function getId$
|
5485
|
+
function getId$2(paymentMethod) {
|
5279
5486
|
return paymentMethod?.id.toString() ?? '0';
|
5280
5487
|
}
|
5281
|
-
function getName$
|
5488
|
+
function getName$2(paymentMethod) {
|
5282
5489
|
return paymentMethod?.name ?? '';
|
5283
5490
|
}
|
5284
5491
|
function getIcon(paymentMethod) {
|
@@ -5308,8 +5515,8 @@ function getPaymentMethodById(paymentMethods, id) {
|
|
5308
5515
|
return paymentMethods.find((method) => method.id === id) ?? null;
|
5309
5516
|
}
|
5310
5517
|
const paymentProviderGetters = {
|
5311
|
-
getId: getId$
|
5312
|
-
getName: getName$
|
5518
|
+
getId: getId$2,
|
5519
|
+
getName: getName$2,
|
5313
5520
|
getIcon,
|
5314
5521
|
getMethodOfPaymentId,
|
5315
5522
|
getPaymentKey,
|
@@ -5413,7 +5620,7 @@ function getCompanyName(address) {
|
|
5413
5620
|
function getVatNumber(address) {
|
5414
5621
|
return address.vatNumber ?? '';
|
5415
5622
|
}
|
5416
|
-
function getId(address) {
|
5623
|
+
function getId$1(address) {
|
5417
5624
|
return address?.id?.toString() ?? '';
|
5418
5625
|
}
|
5419
5626
|
function getApartmentNumber(address) {
|
@@ -5464,7 +5671,7 @@ const userAddressGetters = {
|
|
5464
5671
|
getProvince,
|
5465
5672
|
getCompanyName,
|
5466
5673
|
getVatNumber,
|
5467
|
-
getId,
|
5674
|
+
getId: getId$1,
|
5468
5675
|
getApartmentNumber,
|
5469
5676
|
isDefault,
|
5470
5677
|
getAddressWithoutId,
|
@@ -5516,7 +5723,7 @@ const legalGetters = {
|
|
5516
5723
|
getHtml,
|
5517
5724
|
};
|
5518
5725
|
|
5519
|
-
function getName(company) {
|
5726
|
+
function getName$1(company) {
|
5520
5727
|
return company.name ?? '';
|
5521
5728
|
}
|
5522
5729
|
function getStreet(company) {
|
@@ -5529,7 +5736,7 @@ function getEmail(company) {
|
|
5529
5736
|
return company.email ?? '';
|
5530
5737
|
}
|
5531
5738
|
const companyGetters = {
|
5532
|
-
getName,
|
5739
|
+
getName: getName$1,
|
5533
5740
|
getStreet,
|
5534
5741
|
getCity,
|
5535
5742
|
getEmail,
|
@@ -5610,14 +5817,14 @@ const heroesGetters = {
|
|
5610
5817
|
getClassName,
|
5611
5818
|
};
|
5612
5819
|
|
5613
|
-
function getCode(locale) {
|
5820
|
+
function getCode$1(locale) {
|
5614
5821
|
return locale ? locale.code : 'en';
|
5615
5822
|
}
|
5616
5823
|
function getLabel(locale) {
|
5617
5824
|
return locale ? locale.label : 'en';
|
5618
5825
|
}
|
5619
5826
|
const localesGetters = {
|
5620
|
-
getCode,
|
5827
|
+
getCode: getCode$1,
|
5621
5828
|
getLabel,
|
5622
5829
|
};
|
5623
5830
|
|
@@ -6022,5 +6229,36 @@ const robotGetters = {
|
|
6022
6229
|
getRobotsAccessibilityDeclarationResult,
|
6023
6230
|
};
|
6024
6231
|
|
6025
|
-
|
6232
|
+
function getId(barcode) {
|
6233
|
+
return barcode?.id || 0;
|
6234
|
+
}
|
6235
|
+
function getName(barcode) {
|
6236
|
+
return barcode?.name || '';
|
6237
|
+
}
|
6238
|
+
function getType(barcode) {
|
6239
|
+
return barcode?.type || '';
|
6240
|
+
}
|
6241
|
+
function getCode(barcode) {
|
6242
|
+
return barcode?.code || '';
|
6243
|
+
}
|
6244
|
+
function getCreatedAt(barcode) {
|
6245
|
+
return barcode?.createdAt || '';
|
6246
|
+
}
|
6247
|
+
function getUpdatedAt(barcode) {
|
6248
|
+
return barcode?.updatedAt || '';
|
6249
|
+
}
|
6250
|
+
function getReferrers(barcode) {
|
6251
|
+
return barcode?.referrers ?? [];
|
6252
|
+
}
|
6253
|
+
const barcodeGetters = {
|
6254
|
+
getId,
|
6255
|
+
getName,
|
6256
|
+
getType,
|
6257
|
+
getCode,
|
6258
|
+
getCreatedAt,
|
6259
|
+
getUpdatedAt,
|
6260
|
+
getReferrers,
|
6261
|
+
};
|
6262
|
+
|
6263
|
+
export { AddressOptionType, AddressType, ApiError, additionalInformationGetters, bannerGetters, barcodeGetters, cartGetters, categoryEntryGetters, categoryGetters, categoryTreeGetters, companyGetters, cookieBarGetters, countryGetters, deleteAddress, deleteAllCartItems, deleteCart, deleteCartItem, deleteCategory, deleteCoupon, deleteNewsletterSubscription, deleteReview, deleteWishlistItem, doAcceptOffer, doAddCartItem, doAddCartItems, doAddCategory, doAddCoupon, doAddWishlistItem, doAdditionalInformation, doApplyConfiguration, doApprovePayPalTransaction, doAttachMolliePaymentToOrder, doAttachPaymentToOrder, doCaptureMolliePayment, doCapturePayPalOrder, doCapturePayPalOrderV2, doChangeUserPassword, doCreateMolliePaymentFromBasket, doCreateMolliePaymentFromOrder, doCreatePayPalCreditCardTransaction, doCreatePayPalOrder, doCreatePayPalTransaction, doCreatePlentyPaymentFromMolliePayment, doCreatePlentyPaymentFromPayPalOrder, doCustomerContactMail, doEmailConfirmation, doExecutePayment, doHandleAllowPaymentApplePay, doHandleAllowPaymentGooglePay, doHandlePayPalPaymentFundingSources, doLogin, doLoginAsGuest, doLogoutUser, doMakeOrderReturn, doMigrateGuestOrderToCustomer, doOrderAgainInformation, doPatchMolliePayment, doPlaceOrder, doPreparePayment, doRegisterUser, doRejectOffer, doReview, doSaveAddress, doSaveBlocks, doSavePreferredDeliveryServices, doSubscribeNewsletter, doUploadOrderPropertyFile, facetGetters, forgotPasswordGetters, getActiveShippingCountries, getAddresses$1 as getAddresses, getAggregatedCountries, getAuthenticatedReview, getBlocks, getCart, getCategoriesSearch, getCategoryById, getCategoryTemplate, getCategoryTree, getExecutePayPalOrder, getFacet, getInit, getLegalTexts, getMolliePayment, getMolliePaymentAndUpdateStatus, getMollieSettings, getOffer, getOrder, getOrderDocument, getOrderPropertyFile, getOrders$1 as getOrders, getPackstations, getPayPalDataClientToken, getPayPalFraudId, getPayPalMerchantAndClientIds, getPayPalOrder, getPayPalOrderDetails, getPaymentProviders, getPreferredDeliveryLocationShippingProfiles, getPreferredDeliveryServices$1 as getPreferredDeliveryServices, getPreferredDeliveryShippingProfiles, getProduct, getReturnReasons$1 as getReturnReasons, getReturns, getReview, getReviewAverage, getRobots$2 as getRobots, getSearch, getSession, getShippingProvider$1 as getShippingProvider, getWishlist, heroesGetters, legalGetters, localesGetters, manufacturerGetters, offerGetters, orderDocumentGetters, orderGetters, paginationGetters, paymentProviderGetters, paypalGetters, productAttributeGetters, productBundleGetters, productGetters, productImageGetters, productPriceGetters, productPropertyGetters, productSeoSettingsGetters, returnGetters, reviewGetters, robotGetters, setCartItemQuantity, setCategorySettings, setCategoryTemplate, setCheckoutAddress, setConfiguration, setMobilePaymentProviderList, setPaymentProvider, setReview, setShippingProvider, shippingProviderGetters, tagGetters, userAddressGetters, userGetters, wishlistGetters };
|
6026
6264
|
//# sourceMappingURL=index.es.js.map
|
package/lib/index.es.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export type PayPalOrderStatus = {
|
2
|
-
statusCode
|
2
|
+
statusCode?: number;
|
3
3
|
result: {
|
4
4
|
id: string;
|
5
5
|
intent: string;
|
@@ -152,7 +152,8 @@ export interface PayPalCreateOrder {
|
|
152
152
|
id: string;
|
153
153
|
links: PayPalLink[];
|
154
154
|
status: string;
|
155
|
-
referenceId
|
155
|
+
referenceId?: string;
|
156
|
+
isAutocaptured?: boolean;
|
156
157
|
}
|
157
158
|
export interface PayPalCreateTransactionParams {
|
158
159
|
fundingSource: string;
|
@@ -228,4 +229,36 @@ export type PayPalAllowGooglePayResponse = {
|
|
228
229
|
export type PayPalAllowApplePayRequest = {
|
229
230
|
canMakePayments: boolean;
|
230
231
|
};
|
232
|
+
export type PayPalAllowAPMsRequest = {
|
233
|
+
availableFoundingSources: {
|
234
|
+
[key: string]: boolean;
|
235
|
+
};
|
236
|
+
};
|
237
|
+
export interface PayPalAdditionalInformationParams {
|
238
|
+
birthdate?: string;
|
239
|
+
phoneNumber?: string;
|
240
|
+
phoneCountryCode?: string;
|
241
|
+
}
|
242
|
+
export type PayPalCreateOrderRequest = {
|
243
|
+
type: 'basket' | 'order' | 'express';
|
244
|
+
plentyOrderId?: number;
|
245
|
+
additionalInformation?: PayPalAdditionalInformationParams;
|
246
|
+
};
|
247
|
+
export type PayPalCreatePlentyPaymentRequest = {
|
248
|
+
payPalOrderId: string;
|
249
|
+
plentyOrderId: number;
|
250
|
+
};
|
251
|
+
export type PayPalCreatePlentyPaymentResponse = {
|
252
|
+
createdPaymentIds: number[];
|
253
|
+
assigned: {
|
254
|
+
orderId: number;
|
255
|
+
paymentIds: number[];
|
256
|
+
};
|
257
|
+
};
|
258
|
+
export type PayPalGetOrderRequest = {
|
259
|
+
paypalOrderId: string;
|
260
|
+
};
|
261
|
+
export type PayPalFraudId = {
|
262
|
+
fraudId: string;
|
263
|
+
};
|
231
264
|
//# sourceMappingURL=paypal.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"paypal.d.ts","sourceRoot":"","sources":["../../../src/types/api/paypal.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"paypal.d.ts","sourceRoot":"","sources":["../../../src/types/api/paypal.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,cAAc,EAAE;YACd,MAAM,EAAE;gBACN,aAAa,EAAE,MAAM,CAAC;gBACtB,UAAU,EAAE,MAAM,CAAC;gBACnB,cAAc,EAAE,MAAM,CAAC;gBACvB,IAAI,EAAE;oBACJ,UAAU,EAAE,MAAM,CAAC;oBACnB,OAAO,EAAE,MAAM,CAAC;iBACjB,CAAC;gBACF,OAAO,EAAE;oBACP,YAAY,EAAE,MAAM,CAAC;iBACtB,CAAC;aACH,CAAC;SACH,CAAC;QACF,cAAc,EAAE;YACd,YAAY,EAAE,MAAM,CAAC;YACrB,MAAM,EAAE;gBACN,aAAa,EAAE,MAAM,CAAC;gBACtB,KAAK,EAAE,MAAM,CAAC;gBACd,SAAS,EAAE;oBACT,UAAU,EAAE;wBACV,aAAa,EAAE,MAAM,CAAC;wBACtB,KAAK,EAAE,MAAM,CAAC;qBACf,CAAC;oBACF,QAAQ,EAAE;wBACR,aAAa,EAAE,MAAM,CAAC;wBACtB,KAAK,EAAE,MAAM,CAAC;qBAC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