@wix/auto_sdk_ecom_orders 1.0.72 → 1.0.74
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-C73TYoI7.d.ts → ecom-v1-order-orders.universal-DEsVhQRb.d.ts} +650 -428
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +18 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +18 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +83 -78
- package/build/es/{ecom-v1-order-orders.universal-C73TYoI7.d.mts → ecom-v1-order-orders.universal-DEsVhQRb.d.mts} +650 -428
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +17 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +17 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +83 -78
- package/build/internal/cjs/{ecom-v1-order-orders.universal-KCtJReRk.d.ts → ecom-v1-order-orders.universal-CemYMxWp.d.ts} +610 -388
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +18 -8
- 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 +18 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +83 -78
- package/build/internal/es/{ecom-v1-order-orders.universal-KCtJReRk.d.mts → ecom-v1-order-orders.universal-CemYMxWp.d.mts} +610 -388
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +17 -8
- 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 +17 -8
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +83 -78
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dg as PreparePaymentCollectionRequest$1, b as PreparePaymentCollectionResponse$1, dk as GetPaymentCollectabilityStatusRequest$1, G as GetPaymentCollectabilityStatusResponse$1, dl as RecordManuallyCollectedPaymentRequest$1, dm as RecordManuallyCollectedPaymentResponse$1, dn as MarkOrderAsPaidRequest$1, dp as MarkOrderAsPaidResponse$1, dq as BulkMarkOrdersAsPaidRequest$1, dr as BulkMarkOrdersAsPaidResponse$1, dw as GetRefundabilityStatusRequest$1, dx as GetRefundabilityStatusResponse$1, dA as CreatePaymentGatewayOrderRequest$1, dC as CreatePaymentGatewayOrderResponse$1, dD as ChargeMembershipsRequest$1, dH as ChargeMembershipsResponse$1, dI as TriggerRefundRequest$1, dN as TriggerRefundResponse$1, ed as VoidAuthorizedPaymentsRequest$1, V as VoidAuthorizedPaymentsResponse$1, ee as CaptureAuthorizedPaymentsRequest$1, C as CaptureAuthorizedPaymentsResponse$1, eB as GetOrderRequest$1, eC as GetOrderResponse$1, eO as SearchOrdersRequest$1, S as SearchOrdersResponse$1, eS as CreateOrderRequest$1, eV as CreateOrderResponse$1, eW as UpdateOrderRequest$1, eX as UpdateOrderResponse$1, eY as BulkUpdateOrdersRequest$1, l as BulkUpdateOrdersResponse$1, eZ as CommitDeltasRequest$1, fd as CommitDeltasResponse$1, fE as UpdateOrderLineItemRequest$1, fF as UpdateOrderLineItemResponse$1, g4 as AddActivityRequest$1, g7 as AddActivityResponse$1, ga as UpdateActivityRequest$1, gb as UpdateActivityResponse$1, gc as DeleteActivityRequest$1, gd as DeleteActivityResponse$1, gj as CancelOrderRequest$1, n as CancelOrderResponse$1, gl as UpdateOrderStatusRequest$1, gm as UpdateOrderStatusResponse$1, gM as AggregateOrdersRequest$1, gN as AggregateOrdersResponse$1, gR as BulkUpdateOrderTagsRequest$1, q as BulkUpdateOrderTagsResponse$1 } from './ecom-v1-order-orders.universal-DEsVhQRb.mjs';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Order {
|
|
@@ -482,10 +482,15 @@ declare enum PaymentOptionType {
|
|
|
482
482
|
/** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */
|
|
483
483
|
DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
|
|
484
484
|
/** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
|
|
485
|
-
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
|
|
485
|
+
MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE",
|
|
486
|
+
/**
|
|
487
|
+
* Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.
|
|
488
|
+
* @documentationMaturity preview
|
|
489
|
+
*/
|
|
490
|
+
MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"
|
|
486
491
|
}
|
|
487
492
|
/** @enumType */
|
|
488
|
-
type PaymentOptionTypeWithLiterals = PaymentOptionType | 'FULL_PAYMENT_ONLINE' | 'FULL_PAYMENT_OFFLINE' | 'MEMBERSHIP' | 'DEPOSIT_ONLINE' | 'MEMBERSHIP_OFFLINE';
|
|
493
|
+
type PaymentOptionTypeWithLiterals = PaymentOptionType | 'FULL_PAYMENT_ONLINE' | 'FULL_PAYMENT_OFFLINE' | 'MEMBERSHIP' | 'DEPOSIT_ONLINE' | 'MEMBERSHIP_OFFLINE' | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';
|
|
489
494
|
interface ItemTaxFullDetails {
|
|
490
495
|
/** Taxable amount of this line item. */
|
|
491
496
|
taxableAmount?: Price;
|
|
@@ -1692,6 +1697,81 @@ interface Location {
|
|
|
1692
1697
|
*/
|
|
1693
1698
|
name?: string;
|
|
1694
1699
|
}
|
|
1700
|
+
/** Business model of a refund request */
|
|
1701
|
+
interface RefundDetails {
|
|
1702
|
+
/**
|
|
1703
|
+
* Order line item IDs and quantities that were refunded.
|
|
1704
|
+
* @maxSize 300
|
|
1705
|
+
*/
|
|
1706
|
+
items?: RefundItem[];
|
|
1707
|
+
/** Whether the shipping fee was also refunded. */
|
|
1708
|
+
shippingIncluded?: boolean;
|
|
1709
|
+
/**
|
|
1710
|
+
* Reason for the refund, provided by customer (optional).
|
|
1711
|
+
* @maxLength 200
|
|
1712
|
+
*/
|
|
1713
|
+
reason?: string | null;
|
|
1714
|
+
/**
|
|
1715
|
+
* Line items that were refunded.
|
|
1716
|
+
* @maxSize 300
|
|
1717
|
+
*/
|
|
1718
|
+
lineItems?: LineItemRefund[];
|
|
1719
|
+
/**
|
|
1720
|
+
* Additional fees that were refunded.
|
|
1721
|
+
* @maxSize 100
|
|
1722
|
+
*/
|
|
1723
|
+
additionalFees?: AdditionalFeeRefund[];
|
|
1724
|
+
/** Shipping amount that was refunded. */
|
|
1725
|
+
shipping?: ShippingRefund;
|
|
1726
|
+
}
|
|
1727
|
+
interface RefundItem {
|
|
1728
|
+
/**
|
|
1729
|
+
* Line item ID the refunded line item.
|
|
1730
|
+
* @format GUID
|
|
1731
|
+
*/
|
|
1732
|
+
lineItemId?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Line item quantity refunded.
|
|
1735
|
+
* @min 1
|
|
1736
|
+
* @max 100000
|
|
1737
|
+
*/
|
|
1738
|
+
quantity?: number;
|
|
1739
|
+
}
|
|
1740
|
+
interface LineItemRefund {
|
|
1741
|
+
/**
|
|
1742
|
+
* Line item ID.
|
|
1743
|
+
* @format GUID
|
|
1744
|
+
* @immutable
|
|
1745
|
+
*/
|
|
1746
|
+
lineItemId?: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* Refund quantity.
|
|
1749
|
+
* @min 1
|
|
1750
|
+
* @max 100000
|
|
1751
|
+
* @immutable
|
|
1752
|
+
*/
|
|
1753
|
+
quantity?: number;
|
|
1754
|
+
}
|
|
1755
|
+
interface AdditionalFeeRefund {
|
|
1756
|
+
/**
|
|
1757
|
+
* Additional fee ID.
|
|
1758
|
+
* @format GUID
|
|
1759
|
+
* @immutable
|
|
1760
|
+
*/
|
|
1761
|
+
additionalFeeId?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Refund amount.
|
|
1764
|
+
* @immutable
|
|
1765
|
+
*/
|
|
1766
|
+
amount?: Price;
|
|
1767
|
+
}
|
|
1768
|
+
interface ShippingRefund {
|
|
1769
|
+
/**
|
|
1770
|
+
* Refund amount.
|
|
1771
|
+
* @immutable
|
|
1772
|
+
*/
|
|
1773
|
+
amount?: Price;
|
|
1774
|
+
}
|
|
1695
1775
|
interface PreparePaymentCollectionRequest {
|
|
1696
1776
|
/**
|
|
1697
1777
|
* Ecom order ID.
|
|
@@ -2073,81 +2153,6 @@ interface PaymentRefund {
|
|
|
2073
2153
|
*/
|
|
2074
2154
|
externalRefund?: boolean;
|
|
2075
2155
|
}
|
|
2076
|
-
/** Business model of a refund request */
|
|
2077
|
-
interface RefundDetails {
|
|
2078
|
-
/**
|
|
2079
|
-
* Order line item IDs and quantities that were refunded.
|
|
2080
|
-
* @maxSize 300
|
|
2081
|
-
*/
|
|
2082
|
-
items?: RefundItem[];
|
|
2083
|
-
/** Whether the shipping fee was also refunded. */
|
|
2084
|
-
shippingIncluded?: boolean;
|
|
2085
|
-
/**
|
|
2086
|
-
* Reason for the refund, provided by customer (optional).
|
|
2087
|
-
* @maxLength 200
|
|
2088
|
-
*/
|
|
2089
|
-
reason?: string | null;
|
|
2090
|
-
/**
|
|
2091
|
-
* Line items that were refunded.
|
|
2092
|
-
* @maxSize 300
|
|
2093
|
-
*/
|
|
2094
|
-
lineItems?: LineItemRefund[];
|
|
2095
|
-
/**
|
|
2096
|
-
* Additional fees that were refunded.
|
|
2097
|
-
* @maxSize 100
|
|
2098
|
-
*/
|
|
2099
|
-
additionalFees?: AdditionalFeeRefund[];
|
|
2100
|
-
/** Shipping amount that was refunded. */
|
|
2101
|
-
shipping?: ShippingRefund;
|
|
2102
|
-
}
|
|
2103
|
-
interface RefundItem {
|
|
2104
|
-
/**
|
|
2105
|
-
* Line item ID the refunded line item.
|
|
2106
|
-
* @format GUID
|
|
2107
|
-
*/
|
|
2108
|
-
lineItemId?: string;
|
|
2109
|
-
/**
|
|
2110
|
-
* Line item quantity refunded.
|
|
2111
|
-
* @min 1
|
|
2112
|
-
* @max 100000
|
|
2113
|
-
*/
|
|
2114
|
-
quantity?: number;
|
|
2115
|
-
}
|
|
2116
|
-
interface LineItemRefund {
|
|
2117
|
-
/**
|
|
2118
|
-
* Line item ID.
|
|
2119
|
-
* @format GUID
|
|
2120
|
-
* @immutable
|
|
2121
|
-
*/
|
|
2122
|
-
lineItemId?: string;
|
|
2123
|
-
/**
|
|
2124
|
-
* Refund quantity.
|
|
2125
|
-
* @min 1
|
|
2126
|
-
* @max 100000
|
|
2127
|
-
* @immutable
|
|
2128
|
-
*/
|
|
2129
|
-
quantity?: number;
|
|
2130
|
-
}
|
|
2131
|
-
interface AdditionalFeeRefund {
|
|
2132
|
-
/**
|
|
2133
|
-
* Additional fee ID.
|
|
2134
|
-
* @format GUID
|
|
2135
|
-
* @immutable
|
|
2136
|
-
*/
|
|
2137
|
-
additionalFeeId?: string;
|
|
2138
|
-
/**
|
|
2139
|
-
* Refund amount.
|
|
2140
|
-
* @immutable
|
|
2141
|
-
*/
|
|
2142
|
-
amount?: Price;
|
|
2143
|
-
}
|
|
2144
|
-
interface ShippingRefund {
|
|
2145
|
-
/**
|
|
2146
|
-
* Refund amount.
|
|
2147
|
-
* @immutable
|
|
2148
|
-
*/
|
|
2149
|
-
amount?: Price;
|
|
2150
|
-
}
|
|
2151
2156
|
interface RefundSideEffects {
|
|
2152
2157
|
/** Inventory restock details as part of this refund. */
|
|
2153
2158
|
restockInfo?: RestockInfo;
|