@wix/auto_sdk_ecom_cart-v-2 1.0.0 → 1.0.1
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/build/cjs/index.d.ts +134 -147
- package/build/cjs/index.js +83 -90
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +71 -78
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +110 -127
- package/build/cjs/meta.js +50 -50
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +134 -147
- package/build/es/index.mjs +82 -88
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +70 -76
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +110 -127
- package/build/es/meta.mjs +49 -49
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +34 -32
- package/build/internal/cjs/index.js +83 -90
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +171 -182
- package/build/internal/cjs/index.typings.js +71 -78
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +110 -127
- package/build/internal/cjs/meta.js +50 -50
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +34 -32
- package/build/internal/es/index.mjs +82 -88
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +171 -182
- package/build/internal/es/index.typings.mjs +70 -76
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +110 -127
- package/build/internal/es/meta.mjs +49 -49
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -460,15 +460,15 @@ function getCheckoutUrl(payload) {
|
|
|
460
460
|
}
|
|
461
461
|
return __getCheckoutUrl;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
464
|
-
function
|
|
463
|
+
function placeOrder(payload) {
|
|
464
|
+
function __placeOrder({ host }) {
|
|
465
465
|
const metadata = {
|
|
466
466
|
entityFqdn: "wix.ecom.v2.cart",
|
|
467
467
|
method: "POST",
|
|
468
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
468
|
+
methodFqn: "wix.ecom.cart.v2.CartService.PlaceOrder",
|
|
469
469
|
packageName: PACKAGE_NAME,
|
|
470
470
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
471
|
-
protoPath: "/v2/carts/{cartId}/
|
|
471
|
+
protoPath: "/v2/carts/{cartId}/place-order",
|
|
472
472
|
data: payload,
|
|
473
473
|
host
|
|
474
474
|
}),
|
|
@@ -476,7 +476,7 @@ function completeCheckout(payload) {
|
|
|
476
476
|
};
|
|
477
477
|
return metadata;
|
|
478
478
|
}
|
|
479
|
-
return
|
|
479
|
+
return __placeOrder;
|
|
480
480
|
}
|
|
481
481
|
function addLineItems(payload) {
|
|
482
482
|
function __addLineItems({ host }) {
|
|
@@ -602,15 +602,15 @@ function removeLineItems(payload) {
|
|
|
602
602
|
}
|
|
603
603
|
return __removeLineItems;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
function
|
|
605
|
+
function updateLineItems(payload) {
|
|
606
|
+
function __updateLineItems({ host }) {
|
|
607
607
|
const metadata = {
|
|
608
608
|
entityFqdn: "wix.ecom.v2.cart",
|
|
609
609
|
method: "POST",
|
|
610
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
610
|
+
methodFqn: "wix.ecom.cart.v2.CartService.UpdateLineItems",
|
|
611
611
|
packageName: PACKAGE_NAME,
|
|
612
612
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
613
|
-
protoPath: "/v2/carts/{cartId}/
|
|
613
|
+
protoPath: "/v2/carts/{cartId}/update-line-items",
|
|
614
614
|
data: payload,
|
|
615
615
|
host
|
|
616
616
|
}),
|
|
@@ -650,17 +650,17 @@ function addDiscount(payload) {
|
|
|
650
650
|
};
|
|
651
651
|
return metadata;
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return __updateLineItems;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
function
|
|
655
|
+
function addDiscount(payload) {
|
|
656
|
+
function __addDiscount({ host }) {
|
|
657
657
|
const metadata = {
|
|
658
658
|
entityFqdn: "wix.ecom.v2.cart",
|
|
659
659
|
method: "POST",
|
|
660
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
660
|
+
methodFqn: "wix.ecom.cart.v2.CartService.AddDiscount",
|
|
661
661
|
packageName: PACKAGE_NAME,
|
|
662
662
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
663
|
-
protoPath: "/v2/carts/{cartId}/
|
|
663
|
+
protoPath: "/v2/carts/{cartId}/add-discount",
|
|
664
664
|
data: payload,
|
|
665
665
|
host
|
|
666
666
|
}),
|
|
@@ -700,17 +700,17 @@ function removeDiscount(payload) {
|
|
|
700
700
|
};
|
|
701
701
|
return metadata;
|
|
702
702
|
}
|
|
703
|
-
return
|
|
703
|
+
return __addDiscount;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
function
|
|
705
|
+
function removeDiscount(payload) {
|
|
706
|
+
function __removeDiscount({ host }) {
|
|
707
707
|
const metadata = {
|
|
708
708
|
entityFqdn: "wix.ecom.v2.cart",
|
|
709
709
|
method: "POST",
|
|
710
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
710
|
+
methodFqn: "wix.ecom.cart.v2.CartService.RemoveDiscount",
|
|
711
711
|
packageName: PACKAGE_NAME,
|
|
712
712
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
713
|
-
protoPath: "/v2/carts/{cartId}/
|
|
713
|
+
protoPath: "/v2/carts/{cartId}/remove-discount",
|
|
714
714
|
data: payload,
|
|
715
715
|
host
|
|
716
716
|
}),
|
|
@@ -750,17 +750,17 @@ function addGiftCard(payload) {
|
|
|
750
750
|
};
|
|
751
751
|
return metadata;
|
|
752
752
|
}
|
|
753
|
-
return
|
|
753
|
+
return __removeDiscount;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
function
|
|
755
|
+
function addGiftCard(payload) {
|
|
756
|
+
function __addGiftCard({ host }) {
|
|
757
757
|
const metadata = {
|
|
758
758
|
entityFqdn: "wix.ecom.v2.cart",
|
|
759
759
|
method: "POST",
|
|
760
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
760
|
+
methodFqn: "wix.ecom.cart.v2.CartService.AddGiftCard",
|
|
761
761
|
packageName: PACKAGE_NAME,
|
|
762
762
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
763
|
-
protoPath: "/v2/carts/{cartId}/
|
|
763
|
+
protoPath: "/v2/carts/{cartId}/add-gift-card",
|
|
764
764
|
data: payload,
|
|
765
765
|
host
|
|
766
766
|
}),
|
|
@@ -800,17 +800,17 @@ function removeGiftCard(payload) {
|
|
|
800
800
|
};
|
|
801
801
|
return metadata;
|
|
802
802
|
}
|
|
803
|
-
return
|
|
803
|
+
return __addGiftCard;
|
|
804
804
|
}
|
|
805
|
-
function
|
|
806
|
-
function
|
|
805
|
+
function removeGiftCard(payload) {
|
|
806
|
+
function __removeGiftCard({ host }) {
|
|
807
807
|
const metadata = {
|
|
808
808
|
entityFqdn: "wix.ecom.v2.cart",
|
|
809
809
|
method: "POST",
|
|
810
|
-
methodFqn: "wix.ecom.cart.v2.CartService.
|
|
810
|
+
methodFqn: "wix.ecom.cart.v2.CartService.RemoveGiftCard",
|
|
811
811
|
packageName: PACKAGE_NAME,
|
|
812
812
|
url: resolveWixEcomCartV2CartServiceUrl({
|
|
813
|
-
protoPath: "/v2/carts/{cartId}/
|
|
813
|
+
protoPath: "/v2/carts/{cartId}/remove-gift-card",
|
|
814
814
|
data: payload,
|
|
815
815
|
host
|
|
816
816
|
}),
|
|
@@ -850,7 +850,7 @@ function updateLineItems(payload) {
|
|
|
850
850
|
};
|
|
851
851
|
return metadata;
|
|
852
852
|
}
|
|
853
|
-
return
|
|
853
|
+
return __removeGiftCard;
|
|
854
854
|
}
|
|
855
855
|
function markCartAsCompleted(payload) {
|
|
856
856
|
function __markCartAsCompleted({ host }) {
|
|
@@ -1054,9 +1054,9 @@ function getCheckoutUrl2() {
|
|
|
1054
1054
|
__originalResponseType: null
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function placeOrder2() {
|
|
1058
1058
|
const payload = { cartId: ":cartId" };
|
|
1059
|
-
const getRequestOptions =
|
|
1059
|
+
const getRequestOptions = placeOrder(payload);
|
|
1060
1060
|
const getUrl = (context) => {
|
|
1061
1061
|
const { url } = getRequestOptions(context);
|
|
1062
1062
|
return url;
|
|
@@ -1064,7 +1064,7 @@ function completeCheckout2() {
|
|
|
1064
1064
|
return {
|
|
1065
1065
|
getUrl,
|
|
1066
1066
|
httpMethod: "POST",
|
|
1067
|
-
path: "/v2/carts/{cartId}/
|
|
1067
|
+
path: "/v2/carts/{cartId}/place-order",
|
|
1068
1068
|
pathParams: { cartId: "cartId" },
|
|
1069
1069
|
__requestType: null,
|
|
1070
1070
|
__originalRequestType: null,
|
|
@@ -1108,9 +1108,9 @@ function removeLineItems2() {
|
|
|
1108
1108
|
__originalResponseType: null
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function updateLineItems2() {
|
|
1112
1112
|
const payload = { cartId: ":cartId" };
|
|
1113
|
-
const getRequestOptions =
|
|
1113
|
+
const getRequestOptions = updateLineItems(payload);
|
|
1114
1114
|
const getUrl = (context) => {
|
|
1115
1115
|
const { url } = getRequestOptions(context);
|
|
1116
1116
|
return url;
|
|
@@ -1118,7 +1118,7 @@ function addDiscount2() {
|
|
|
1118
1118
|
return {
|
|
1119
1119
|
getUrl,
|
|
1120
1120
|
httpMethod: "POST",
|
|
1121
|
-
path: "/v2/carts/{cartId}/
|
|
1121
|
+
path: "/v2/carts/{cartId}/update-line-items",
|
|
1122
1122
|
pathParams: { cartId: "cartId" },
|
|
1123
1123
|
__requestType: null,
|
|
1124
1124
|
__originalRequestType: null,
|
|
@@ -1126,9 +1126,9 @@ function addDiscount2() {
|
|
|
1126
1126
|
__originalResponseType: null
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function addDiscount2() {
|
|
1130
1130
|
const payload = { cartId: ":cartId" };
|
|
1131
|
-
const getRequestOptions =
|
|
1131
|
+
const getRequestOptions = addDiscount(payload);
|
|
1132
1132
|
const getUrl = (context) => {
|
|
1133
1133
|
const { url } = getRequestOptions(context);
|
|
1134
1134
|
return url;
|
|
@@ -1136,7 +1136,7 @@ function removeDiscount2() {
|
|
|
1136
1136
|
return {
|
|
1137
1137
|
getUrl,
|
|
1138
1138
|
httpMethod: "POST",
|
|
1139
|
-
path: "/v2/carts/{cartId}/
|
|
1139
|
+
path: "/v2/carts/{cartId}/add-discount",
|
|
1140
1140
|
pathParams: { cartId: "cartId" },
|
|
1141
1141
|
__requestType: null,
|
|
1142
1142
|
__originalRequestType: null,
|
|
@@ -1144,9 +1144,9 @@ function removeDiscount2() {
|
|
|
1144
1144
|
__originalResponseType: null
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function removeDiscount2() {
|
|
1148
1148
|
const payload = { cartId: ":cartId" };
|
|
1149
|
-
const getRequestOptions =
|
|
1149
|
+
const getRequestOptions = removeDiscount(payload);
|
|
1150
1150
|
const getUrl = (context) => {
|
|
1151
1151
|
const { url } = getRequestOptions(context);
|
|
1152
1152
|
return url;
|
|
@@ -1154,7 +1154,7 @@ function addGiftCard2() {
|
|
|
1154
1154
|
return {
|
|
1155
1155
|
getUrl,
|
|
1156
1156
|
httpMethod: "POST",
|
|
1157
|
-
path: "/v2/carts/{cartId}/
|
|
1157
|
+
path: "/v2/carts/{cartId}/remove-discount",
|
|
1158
1158
|
pathParams: { cartId: "cartId" },
|
|
1159
1159
|
__requestType: null,
|
|
1160
1160
|
__originalRequestType: null,
|
|
@@ -1162,9 +1162,9 @@ function addGiftCard2() {
|
|
|
1162
1162
|
__originalResponseType: null
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function addGiftCard2() {
|
|
1166
1166
|
const payload = { cartId: ":cartId" };
|
|
1167
|
-
const getRequestOptions =
|
|
1167
|
+
const getRequestOptions = addGiftCard(payload);
|
|
1168
1168
|
const getUrl = (context) => {
|
|
1169
1169
|
const { url } = getRequestOptions(context);
|
|
1170
1170
|
return url;
|
|
@@ -1172,7 +1172,7 @@ function removeGiftCard2() {
|
|
|
1172
1172
|
return {
|
|
1173
1173
|
getUrl,
|
|
1174
1174
|
httpMethod: "POST",
|
|
1175
|
-
path: "/v2/carts/{cartId}/
|
|
1175
|
+
path: "/v2/carts/{cartId}/add-gift-card",
|
|
1176
1176
|
pathParams: { cartId: "cartId" },
|
|
1177
1177
|
__requestType: null,
|
|
1178
1178
|
__originalRequestType: null,
|
|
@@ -1180,9 +1180,9 @@ function removeGiftCard2() {
|
|
|
1180
1180
|
__originalResponseType: null
|
|
1181
1181
|
};
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function removeGiftCard2() {
|
|
1184
1184
|
const payload = { cartId: ":cartId" };
|
|
1185
|
-
const getRequestOptions =
|
|
1185
|
+
const getRequestOptions = removeGiftCard(payload);
|
|
1186
1186
|
const getUrl = (context) => {
|
|
1187
1187
|
const { url } = getRequestOptions(context);
|
|
1188
1188
|
return url;
|
|
@@ -1190,7 +1190,7 @@ function updateLineItems2() {
|
|
|
1190
1190
|
return {
|
|
1191
1191
|
getUrl,
|
|
1192
1192
|
httpMethod: "POST",
|
|
1193
|
-
path: "/v2/carts/{cartId}/
|
|
1193
|
+
path: "/v2/carts/{cartId}/remove-gift-card",
|
|
1194
1194
|
pathParams: { cartId: "cartId" },
|
|
1195
1195
|
__requestType: null,
|
|
1196
1196
|
__originalRequestType: null,
|
|
@@ -1239,13 +1239,13 @@ export {
|
|
|
1239
1239
|
addGiftCard2 as addGiftCard,
|
|
1240
1240
|
addLineItems2 as addLineItems,
|
|
1241
1241
|
calculateCart2 as calculateCart,
|
|
1242
|
-
completeCheckout2 as completeCheckout,
|
|
1243
1242
|
createCart2 as createCart,
|
|
1244
1243
|
deleteCart2 as deleteCart,
|
|
1245
1244
|
getCart2 as getCart,
|
|
1246
1245
|
getCheckoutUrl2 as getCheckoutUrl,
|
|
1247
1246
|
handleAsyncCheckoutCompletion2 as handleAsyncCheckoutCompletion,
|
|
1248
1247
|
markCartAsCompleted2 as markCartAsCompleted,
|
|
1248
|
+
placeOrder2 as placeOrder,
|
|
1249
1249
|
refreshCart2 as refreshCart,
|
|
1250
1250
|
removeDiscount2 as removeDiscount,
|
|
1251
1251
|
removeGiftCard2 as removeGiftCard,
|