@wix/auto_sdk_ecom_orders 1.0.145 → 1.0.147
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/{ecom-v1-order-orders.universal-BlFIYeAo.d.ts → ecom-v1-order-orders.universal-CoyGOJOi.d.ts} +68 -68
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +19 -16
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +19 -16
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +68 -68
- package/build/cjs/meta.js +19 -16
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{ecom-v1-order-orders.universal-BlFIYeAo.d.mts → ecom-v1-order-orders.universal-CoyGOJOi.d.mts} +68 -68
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +19 -16
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +19 -16
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +68 -68
- package/build/es/meta.mjs +19 -16
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{ecom-v1-order-orders.universal-zh_hrpdy.d.ts → ecom-v1-order-orders.universal-DDISw1y8.d.ts} +80 -69
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +19 -16
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +19 -16
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +68 -68
- package/build/internal/cjs/meta.js +19 -16
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{ecom-v1-order-orders.universal-zh_hrpdy.d.mts → ecom-v1-order-orders.universal-DDISw1y8.d.mts} +80 -69
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +19 -16
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +19 -16
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +68 -68
- package/build/internal/es/meta.mjs +19 -16
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cI as ImportOrderRequest$1, cJ as ImportOrderResponse$1, cK as SetOrderNumberCounterRequest$1, cL as SetOrderNumberCounterResponse$1, cM as BulkDeleteImportedOrdersRequest$1, cN as BulkDeleteImportedOrdersResponse$1, dF as PreparePaymentCollectionRequest$1, b as PreparePaymentCollectionResponse$1, dJ as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, dK as RecordManuallyCollectedPaymentRequest$1, dL as RecordManuallyCollectedPaymentResponse$1, dM as MarkOrderAsPaidRequest$1, dN as MarkOrderAsPaidResponse$1, dO as BulkMarkOrdersAsPaidRequest$1, dP as BulkMarkOrdersAsPaidResponse$1, dU as GetRefundabilityStatusRequest$1, dV as GetRefundabilityStatusResponse$1, dY as CreatePaymentGatewayOrderRequest$1, d_ as CreatePaymentGatewayOrderResponse$1, d$ as ChargeMembershipsRequest$1, e3 as ChargeMembershipsResponse$1, e4 as TriggerRefundRequest$1, e9 as TriggerRefundResponse$1, eB as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, eC as CaptureAuthorizedPaymentsRequest$1, C as CaptureAuthorizedPaymentsResponse$1, eW as GetOrderRequest$1, eX as GetOrderResponse$1, f7 as SearchOrdersRequest$1, S as SearchOrdersResponse$1, fb as CreateOrderRequest$1, fe as CreateOrderResponse$1, ff as UpdateOrderRequest$1, fg as UpdateOrderResponse$1, fh as BulkUpdateOrdersRequest$1, l as BulkUpdateOrdersResponse$1, fZ as UpdateOrderLineItemRequest$1, f_ as UpdateOrderLineItemResponse$1, gp as AddActivityRequest$1, gs as AddActivityResponse$1, gt as AddActivitiesRequest$1, m as AddActivitiesResponse$1, gu as UpdateActivityRequest$1, gv as UpdateActivityResponse$1, gw as DeleteActivityRequest$1, gx as DeleteActivityResponse$1, gD as CancelOrderRequest$1, o as CancelOrderResponse$1, gF as UpdateOrderStatusRequest$1, gG as UpdateOrderStatusResponse$1, h4 as AggregateOrdersRequest$1, h5 as AggregateOrdersResponse$1, h9 as BulkUpdateOrderTagsRequest$1, r as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-CoyGOJOi.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Order {
|
|
@@ -2730,6 +2730,21 @@ interface AdditionalFee {
|
|
|
2730
2730
|
*/
|
|
2731
2731
|
lineItemIds?: string[];
|
|
2732
2732
|
}
|
|
2733
|
+
declare enum AdditionalFeeSource {
|
|
2734
|
+
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
2735
|
+
/** The additional fee was added by an additional fee service plugin. */
|
|
2736
|
+
SERVICE_PLUGIN = "SERVICE_PLUGIN",
|
|
2737
|
+
/** The additional fee was added to the item by a catalog or custom line item. */
|
|
2738
|
+
ITEM = "ITEM",
|
|
2739
|
+
/** The additional fee was added manually on request. */
|
|
2740
|
+
MANUAL = "MANUAL",
|
|
2741
|
+
/** The additional fee was added by the shipping provider. */
|
|
2742
|
+
SHIPPING = "SHIPPING",
|
|
2743
|
+
/** The additional fee was added by the Wix eCommerce platform. */
|
|
2744
|
+
PLATFORM = "PLATFORM"
|
|
2745
|
+
}
|
|
2746
|
+
/** @enumType */
|
|
2747
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
|
|
2733
2748
|
interface FulfillmentStatusesAggregate {
|
|
2734
2749
|
/** Unique string values based on Fulfillment entities statuses */
|
|
2735
2750
|
statuses?: string[] | null;
|
|
@@ -2900,6 +2915,56 @@ interface FormIdentifier {
|
|
|
2900
2915
|
/** @maxLength 100 */
|
|
2901
2916
|
namespace?: string;
|
|
2902
2917
|
}
|
|
2918
|
+
interface PlatformFeeSummary {
|
|
2919
|
+
/** Total sum of all platform fees. */
|
|
2920
|
+
total?: Price;
|
|
2921
|
+
/** Total amount of platform fees with `PASS_ON` charge type. */
|
|
2922
|
+
totalPassOn?: Price;
|
|
2923
|
+
/** Total amount of platform fees with `ABSORBED` charge type. */
|
|
2924
|
+
totalAbsorbed?: Price;
|
|
2925
|
+
/**
|
|
2926
|
+
* Specific information about each platform fee.
|
|
2927
|
+
* @maxSize 300
|
|
2928
|
+
*/
|
|
2929
|
+
fees?: PlatformFee[];
|
|
2930
|
+
}
|
|
2931
|
+
interface PlatformFee {
|
|
2932
|
+
/** Platform fee name. */
|
|
2933
|
+
name?: TranslatableString;
|
|
2934
|
+
/** Platform fee amount. */
|
|
2935
|
+
amount?: Price;
|
|
2936
|
+
/**
|
|
2937
|
+
* ID of the line item the platform fee applies to.
|
|
2938
|
+
* @format GUID
|
|
2939
|
+
*/
|
|
2940
|
+
lineItemId?: string;
|
|
2941
|
+
/** Platform fee charge type. */
|
|
2942
|
+
chargeType?: ChargeTypeWithLiterals;
|
|
2943
|
+
/**
|
|
2944
|
+
* Percentage rate charged as platform fee.
|
|
2945
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
2946
|
+
* @format DECIMAL_VALUE
|
|
2947
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
2948
|
+
*/
|
|
2949
|
+
percentageRate?: string;
|
|
2950
|
+
}
|
|
2951
|
+
declare enum ChargeType {
|
|
2952
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
2953
|
+
/**
|
|
2954
|
+
* Platform fee passed on to buyer.
|
|
2955
|
+
*
|
|
2956
|
+
* This type increases the order total, and is visible to the buyer and merchant as an additional fee.
|
|
2957
|
+
*/
|
|
2958
|
+
PASS_ON = "PASS_ON",
|
|
2959
|
+
/**
|
|
2960
|
+
* Platform fee absorbed by merchant.
|
|
2961
|
+
*
|
|
2962
|
+
* This type does not increase the order total, and is only visible to the merchant.
|
|
2963
|
+
*/
|
|
2964
|
+
ABSORBED = "ABSORBED"
|
|
2965
|
+
}
|
|
2966
|
+
/** @enumType */
|
|
2967
|
+
type ChargeTypeWithLiterals = ChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
2903
2968
|
/** Triggered when the order status changes to approved */
|
|
2904
2969
|
interface OrderApproved {
|
|
2905
2970
|
/** The order that was updated */
|
|
@@ -3127,71 +3192,6 @@ declare enum WebhookIdentityType {
|
|
|
3127
3192
|
}
|
|
3128
3193
|
/** @enumType */
|
|
3129
3194
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
3130
|
-
declare enum AdditionalFeeSource {
|
|
3131
|
-
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
3132
|
-
/** The additional fee was added by an additional fee service plugin. */
|
|
3133
|
-
SERVICE_PLUGIN = "SERVICE_PLUGIN",
|
|
3134
|
-
/** The additional fee was added to the item by a catalog or custom line item. */
|
|
3135
|
-
ITEM = "ITEM",
|
|
3136
|
-
/** The additional fee was added manually on request. */
|
|
3137
|
-
MANUAL = "MANUAL",
|
|
3138
|
-
/** The additional fee was added by the shipping provider. */
|
|
3139
|
-
SHIPPING = "SHIPPING",
|
|
3140
|
-
/** The additional fee was added by the Wix eCommerce platform. */
|
|
3141
|
-
PLATFORM = "PLATFORM"
|
|
3142
|
-
}
|
|
3143
|
-
/** @enumType */
|
|
3144
|
-
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM';
|
|
3145
|
-
interface PlatformFeeSummary {
|
|
3146
|
-
/** Total sum of all platform fees. */
|
|
3147
|
-
total?: Price;
|
|
3148
|
-
/** Total amount of platform fees with `PASS_ON` charge type. */
|
|
3149
|
-
totalPassOn?: Price;
|
|
3150
|
-
/** Total amount of platform fees with `ABSORBED` charge type. */
|
|
3151
|
-
totalAbsorbed?: Price;
|
|
3152
|
-
/**
|
|
3153
|
-
* Specific information about each platform fee.
|
|
3154
|
-
* @maxSize 300
|
|
3155
|
-
*/
|
|
3156
|
-
fees?: PlatformFee[];
|
|
3157
|
-
}
|
|
3158
|
-
interface PlatformFee {
|
|
3159
|
-
/** Platform fee name. */
|
|
3160
|
-
name?: TranslatableString;
|
|
3161
|
-
/** Platform fee amount. */
|
|
3162
|
-
amount?: Price;
|
|
3163
|
-
/**
|
|
3164
|
-
* ID of the line item the platform fee applies to.
|
|
3165
|
-
* @format GUID
|
|
3166
|
-
*/
|
|
3167
|
-
lineItemId?: string;
|
|
3168
|
-
/** Platform fee charge type. */
|
|
3169
|
-
chargeType?: ChargeTypeWithLiterals;
|
|
3170
|
-
/**
|
|
3171
|
-
* Percentage rate charged as platform fee.
|
|
3172
|
-
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
3173
|
-
* @format DECIMAL_VALUE
|
|
3174
|
-
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
3175
|
-
*/
|
|
3176
|
-
percentageRate?: string;
|
|
3177
|
-
}
|
|
3178
|
-
declare enum ChargeType {
|
|
3179
|
-
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
3180
|
-
/**
|
|
3181
|
-
* Platform fee passed on to buyer.
|
|
3182
|
-
*
|
|
3183
|
-
* This type increases the order total, and is visible to the buyer and merchant as an additional fee.
|
|
3184
|
-
*/
|
|
3185
|
-
PASS_ON = "PASS_ON",
|
|
3186
|
-
/**
|
|
3187
|
-
* Platform fee absorbed by merchant.
|
|
3188
|
-
*
|
|
3189
|
-
* This type does not increase the order total, and is only visible to the merchant.
|
|
3190
|
-
*/
|
|
3191
|
-
ABSORBED = "ABSORBED"
|
|
3192
|
-
}
|
|
3193
|
-
/** @enumType */
|
|
3194
|
-
type ChargeTypeWithLiterals = ChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
3195
3195
|
interface SendBuyerConfirmationEmailRequest {
|
|
3196
3196
|
/** @format GUID */
|
|
3197
3197
|
orderId?: string;
|
|
@@ -3994,7 +3994,7 @@ interface PaymentPaymentDetailsOneOf {
|
|
|
3994
3994
|
interface PaymentReceiptInfoOneOf {
|
|
3995
3995
|
}
|
|
3996
3996
|
interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
3997
|
-
/**
|
|
3997
|
+
/** Credit card details. */
|
|
3998
3998
|
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
3999
3999
|
/**
|
|
4000
4000
|
* Wix Payments order ID.
|
|
@@ -4037,7 +4037,7 @@ interface RegularPaymentDetails extends RegularPaymentDetailsPaymentMethodDetail
|
|
|
4037
4037
|
}
|
|
4038
4038
|
/** @oneof */
|
|
4039
4039
|
interface RegularPaymentDetailsPaymentMethodDetailsOneOf {
|
|
4040
|
-
/**
|
|
4040
|
+
/** Credit card details. */
|
|
4041
4041
|
creditCardDetails?: CreditCardPaymentMethodDetails;
|
|
4042
4042
|
}
|
|
4043
4043
|
declare enum TransactionStatus {
|
package/build/es/meta.mjs
CHANGED
|
@@ -499,7 +499,10 @@ function chargeMemberships(payload) {
|
|
|
499
499
|
const serializedData = transformPaths(payload, [
|
|
500
500
|
{
|
|
501
501
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
502
|
-
paths: [
|
|
502
|
+
paths: [
|
|
503
|
+
{ path: "membershipCharges.serviceProperties.scheduledDate" },
|
|
504
|
+
{ path: "membershipCharges.serviceProperties.endDate" }
|
|
505
|
+
]
|
|
503
506
|
}
|
|
504
507
|
]);
|
|
505
508
|
const metadata = {
|
|
@@ -1878,6 +1881,15 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
1878
1881
|
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
1879
1882
|
return ChannelType2;
|
|
1880
1883
|
})(ChannelType || {});
|
|
1884
|
+
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1885
|
+
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1886
|
+
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
1887
|
+
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
1888
|
+
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
1889
|
+
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
1890
|
+
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
1891
|
+
return AdditionalFeeSource2;
|
|
1892
|
+
})(AdditionalFeeSource || {});
|
|
1881
1893
|
var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
|
|
1882
1894
|
OrderActionType2["EDIT"] = "EDIT";
|
|
1883
1895
|
OrderActionType2["UPDATE"] = "UPDATE";
|
|
@@ -1896,6 +1908,12 @@ var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
|
|
|
1896
1908
|
OrderActionType2["MODIFY_INVENTORY"] = "MODIFY_INVENTORY";
|
|
1897
1909
|
return OrderActionType2;
|
|
1898
1910
|
})(OrderActionType || {});
|
|
1911
|
+
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
1912
|
+
ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
|
|
1913
|
+
ChargeType2["PASS_ON"] = "PASS_ON";
|
|
1914
|
+
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
1915
|
+
return ChargeType2;
|
|
1916
|
+
})(ChargeType || {});
|
|
1899
1917
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1900
1918
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1901
1919
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1904,21 +1922,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1904
1922
|
WebhookIdentityType2["APP"] = "APP";
|
|
1905
1923
|
return WebhookIdentityType2;
|
|
1906
1924
|
})(WebhookIdentityType || {});
|
|
1907
|
-
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1908
|
-
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1909
|
-
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
1910
|
-
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
1911
|
-
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
1912
|
-
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
1913
|
-
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
1914
|
-
return AdditionalFeeSource2;
|
|
1915
|
-
})(AdditionalFeeSource || {});
|
|
1916
|
-
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
1917
|
-
ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
|
|
1918
|
-
ChargeType2["PASS_ON"] = "PASS_ON";
|
|
1919
|
-
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
1920
|
-
return ChargeType2;
|
|
1921
|
-
})(ChargeType || {});
|
|
1922
1925
|
var PreviewEmailType = /* @__PURE__ */ ((PreviewEmailType2) => {
|
|
1923
1926
|
PreviewEmailType2["ORDER_PLACED"] = "ORDER_PLACED";
|
|
1924
1927
|
PreviewEmailType2["DOWNLOAD_LINKS"] = "DOWNLOAD_LINKS";
|