@wix/auto_sdk_ecom_draft-orders 1.0.56 → 1.0.57
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 +2 -2
- package/build/cjs/index.js +11 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +213 -9
- package/build/cjs/index.typings.js +11 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +713 -7
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +11 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +213 -9
- package/build/es/index.typings.mjs +11 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +713 -7
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +11 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +152 -94
- package/build/internal/cjs/index.typings.js +11 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +713 -7
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +11 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +152 -94
- package/build/internal/es/index.typings.mjs +11 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +713 -7
- package/package.json +2 -2
|
@@ -2810,69 +2810,52 @@ interface Activity extends ActivityContentOneOf {
|
|
|
2810
2810
|
merchantComment?: MerchantComment;
|
|
2811
2811
|
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
2812
2812
|
orderRefunded?: OrderRefunded;
|
|
2813
|
+
/** Details of changes made by the Draft Orders API. */
|
|
2814
|
+
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
2815
|
+
/** Details of the payment method saved for order */
|
|
2816
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
2817
|
+
/** Details of an authorized payment created. */
|
|
2818
|
+
authorizedPaymentCreated?: AuthorizedPaymentCreated;
|
|
2819
|
+
/** Details of an authorized payment captured. */
|
|
2820
|
+
authorizedPaymentCaptured?: AuthorizedPaymentCaptured;
|
|
2821
|
+
/** Details of an authorized payment voided. */
|
|
2822
|
+
authorizedPaymentVoided?: AuthorizedPaymentVoided;
|
|
2813
2823
|
/**
|
|
2814
2824
|
* Details of an initiated refund process.
|
|
2815
2825
|
*
|
|
2816
|
-
* > **Note:** A single `
|
|
2817
|
-
* > In these cases, the `
|
|
2818
|
-
* @internal
|
|
2826
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2827
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2819
2828
|
*/
|
|
2820
2829
|
refundInitiated?: RefundInitiated;
|
|
2821
2830
|
/**
|
|
2822
2831
|
* Details of a refunded payment.
|
|
2823
2832
|
*
|
|
2824
|
-
* > **Note:** A single `
|
|
2825
|
-
* > In these cases, the `
|
|
2826
|
-
* @internal
|
|
2833
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2834
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2827
2835
|
*/
|
|
2828
2836
|
paymentRefunded?: PaymentRefunded;
|
|
2829
2837
|
/**
|
|
2830
2838
|
* Details of a failed payment refund.
|
|
2831
2839
|
*
|
|
2832
|
-
* > **Note:** A single `
|
|
2833
|
-
* > In these cases, the `
|
|
2834
|
-
* @internal
|
|
2840
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2841
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2835
2842
|
*/
|
|
2836
2843
|
paymentRefundFailed?: PaymentRefundFailed;
|
|
2837
|
-
/**
|
|
2838
|
-
* Details of refund to store credit.
|
|
2839
|
-
* @internal
|
|
2840
|
-
*/
|
|
2844
|
+
/** Details of refund to store credit. */
|
|
2841
2845
|
refundedAsStoreCredit?: RefundedAsStoreCredit;
|
|
2842
|
-
/**
|
|
2843
|
-
* Details of a pending payment
|
|
2844
|
-
* @internal
|
|
2845
|
-
*/
|
|
2846
|
+
/** Details of a pending payment. */
|
|
2846
2847
|
paymentPending?: PaymentPending;
|
|
2847
|
-
/**
|
|
2848
|
-
* Details of a canceled payment
|
|
2849
|
-
* @internal
|
|
2850
|
-
*/
|
|
2848
|
+
/** Details of a canceled payment. */
|
|
2851
2849
|
paymentCanceled?: PaymentCanceled;
|
|
2852
|
-
/**
|
|
2853
|
-
* Details of a declined payment
|
|
2854
|
-
* @internal
|
|
2855
|
-
*/
|
|
2850
|
+
/** Details of a declined payment. */
|
|
2856
2851
|
paymentDeclined?: PaymentDeclined;
|
|
2857
|
-
/**
|
|
2858
|
-
* Receipt was added for associated payment
|
|
2859
|
-
* @internal
|
|
2860
|
-
*/
|
|
2852
|
+
/** Receipt was added for associated payment. */
|
|
2861
2853
|
receiptCreated?: ReceiptCreated;
|
|
2862
|
-
/**
|
|
2863
|
-
* Receipt sent to customer
|
|
2864
|
-
* @internal
|
|
2865
|
-
*/
|
|
2854
|
+
/** Receipt sent to customer. */
|
|
2866
2855
|
receiptSent?: ReceiptSent;
|
|
2867
|
-
/**
|
|
2868
|
-
* Order received a chargeback for one of its' payments.
|
|
2869
|
-
* @internal
|
|
2870
|
-
*/
|
|
2856
|
+
/** Order received a chargeback for one of its' payments. */
|
|
2871
2857
|
chargebackCreated?: ChargebackCreated;
|
|
2872
|
-
/**
|
|
2873
|
-
* Chargeback reversed for one of the order's payments.
|
|
2874
|
-
* @internal
|
|
2875
|
-
*/
|
|
2858
|
+
/** Chargeback reversed for one of the order's payments. */
|
|
2876
2859
|
chargebackReversed?: ChargebackReversed;
|
|
2877
2860
|
/**
|
|
2878
2861
|
* Activity ID.
|
|
@@ -2902,69 +2885,52 @@ interface ActivityContentOneOf {
|
|
|
2902
2885
|
merchantComment?: MerchantComment;
|
|
2903
2886
|
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
2904
2887
|
orderRefunded?: OrderRefunded;
|
|
2888
|
+
/** Details of changes made by the Draft Orders API. */
|
|
2889
|
+
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
2890
|
+
/** Details of the payment method saved for order */
|
|
2891
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
2892
|
+
/** Details of an authorized payment created. */
|
|
2893
|
+
authorizedPaymentCreated?: AuthorizedPaymentCreated;
|
|
2894
|
+
/** Details of an authorized payment captured. */
|
|
2895
|
+
authorizedPaymentCaptured?: AuthorizedPaymentCaptured;
|
|
2896
|
+
/** Details of an authorized payment voided. */
|
|
2897
|
+
authorizedPaymentVoided?: AuthorizedPaymentVoided;
|
|
2905
2898
|
/**
|
|
2906
2899
|
* Details of an initiated refund process.
|
|
2907
2900
|
*
|
|
2908
|
-
* > **Note:** A single `
|
|
2909
|
-
* > In these cases, the `
|
|
2910
|
-
* @internal
|
|
2901
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2902
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2911
2903
|
*/
|
|
2912
2904
|
refundInitiated?: RefundInitiated;
|
|
2913
2905
|
/**
|
|
2914
2906
|
* Details of a refunded payment.
|
|
2915
2907
|
*
|
|
2916
|
-
* > **Note:** A single `
|
|
2917
|
-
* > In these cases, the `
|
|
2918
|
-
* @internal
|
|
2908
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2909
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2919
2910
|
*/
|
|
2920
2911
|
paymentRefunded?: PaymentRefunded;
|
|
2921
2912
|
/**
|
|
2922
2913
|
* Details of a failed payment refund.
|
|
2923
2914
|
*
|
|
2924
|
-
* > **Note:** A single `
|
|
2925
|
-
* > In these cases, the `
|
|
2926
|
-
* @internal
|
|
2915
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2916
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2927
2917
|
*/
|
|
2928
2918
|
paymentRefundFailed?: PaymentRefundFailed;
|
|
2929
|
-
/**
|
|
2930
|
-
* Details of refund to store credit.
|
|
2931
|
-
* @internal
|
|
2932
|
-
*/
|
|
2919
|
+
/** Details of refund to store credit. */
|
|
2933
2920
|
refundedAsStoreCredit?: RefundedAsStoreCredit;
|
|
2934
|
-
/**
|
|
2935
|
-
* Details of a pending payment
|
|
2936
|
-
* @internal
|
|
2937
|
-
*/
|
|
2921
|
+
/** Details of a pending payment. */
|
|
2938
2922
|
paymentPending?: PaymentPending;
|
|
2939
|
-
/**
|
|
2940
|
-
* Details of a canceled payment
|
|
2941
|
-
* @internal
|
|
2942
|
-
*/
|
|
2923
|
+
/** Details of a canceled payment. */
|
|
2943
2924
|
paymentCanceled?: PaymentCanceled;
|
|
2944
|
-
/**
|
|
2945
|
-
* Details of a declined payment
|
|
2946
|
-
* @internal
|
|
2947
|
-
*/
|
|
2925
|
+
/** Details of a declined payment. */
|
|
2948
2926
|
paymentDeclined?: PaymentDeclined;
|
|
2949
|
-
/**
|
|
2950
|
-
* Receipt was added for associated payment
|
|
2951
|
-
* @internal
|
|
2952
|
-
*/
|
|
2927
|
+
/** Receipt was added for associated payment. */
|
|
2953
2928
|
receiptCreated?: ReceiptCreated;
|
|
2954
|
-
/**
|
|
2955
|
-
* Receipt sent to customer
|
|
2956
|
-
* @internal
|
|
2957
|
-
*/
|
|
2929
|
+
/** Receipt sent to customer. */
|
|
2958
2930
|
receiptSent?: ReceiptSent;
|
|
2959
|
-
/**
|
|
2960
|
-
* Order received a chargeback for one of its' payments.
|
|
2961
|
-
* @internal
|
|
2962
|
-
*/
|
|
2931
|
+
/** Order received a chargeback for one of its' payments. */
|
|
2963
2932
|
chargebackCreated?: ChargebackCreated;
|
|
2964
|
-
/**
|
|
2965
|
-
* Chargeback reversed for one of the order's payments.
|
|
2966
|
-
* @internal
|
|
2967
|
-
*/
|
|
2933
|
+
/** Chargeback reversed for one of the order's payments. */
|
|
2968
2934
|
chargebackReversed?: ChargebackReversed;
|
|
2969
2935
|
}
|
|
2970
2936
|
interface CustomActivity {
|
|
@@ -3537,44 +3503,139 @@ interface ChargebackReversed {
|
|
|
3537
3503
|
paymentDetails?: RegularPayment;
|
|
3538
3504
|
}
|
|
3539
3505
|
declare enum ActivityType {
|
|
3506
|
+
/** Order was refunded, either partially or fully. */
|
|
3540
3507
|
ORDER_REFUNDED = "ORDER_REFUNDED",
|
|
3508
|
+
/** New order was created and placed. */
|
|
3541
3509
|
ORDER_PLACED = "ORDER_PLACED",
|
|
3510
|
+
/** Order payment was completed and confirmed. */
|
|
3542
3511
|
ORDER_PAID = "ORDER_PAID",
|
|
3512
|
+
/** Order items were marked as fulfilled (shipped or ready for pickup). */
|
|
3543
3513
|
ORDER_FULFILLED = "ORDER_FULFILLED",
|
|
3514
|
+
/** Order fulfillment status was changed to not fulfilled. */
|
|
3544
3515
|
ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
|
|
3516
|
+
/** Order was canceled by merchant or customer. */
|
|
3545
3517
|
ORDER_CANCELED = "ORDER_CANCELED",
|
|
3518
|
+
/** Download link was sent for digital items in the order. */
|
|
3546
3519
|
DOWNLOAD_LINK_SENT = "DOWNLOAD_LINK_SENT",
|
|
3520
|
+
/** Shipping tracking number was added to the order. */
|
|
3547
3521
|
TRACKING_NUMBER_ADDED = "TRACKING_NUMBER_ADDED",
|
|
3522
|
+
/** Existing shipping tracking number was modified. */
|
|
3548
3523
|
TRACKING_NUMBER_EDITED = "TRACKING_NUMBER_EDITED",
|
|
3524
|
+
/** Tracking link for shipment was added to the order. */
|
|
3549
3525
|
TRACKING_LINK_ADDED = "TRACKING_LINK_ADDED",
|
|
3526
|
+
/** Email confirming shipment was sent to the customer. */
|
|
3550
3527
|
SHIPPING_CONFIRMATION_EMAIL_SENT = "SHIPPING_CONFIRMATION_EMAIL_SENT",
|
|
3528
|
+
/** Invoice document was added to the order. */
|
|
3551
3529
|
INVOICE_ADDED = "INVOICE_ADDED",
|
|
3530
|
+
/** Invoice was removed from the order. */
|
|
3552
3531
|
INVOICE_REMOVED = "INVOICE_REMOVED",
|
|
3532
|
+
/** Invoice was sent to the customer via email. */
|
|
3553
3533
|
INVOICE_SENT = "INVOICE_SENT",
|
|
3534
|
+
/** Notification email was sent to the order fulfiller. */
|
|
3554
3535
|
FULFILLER_EMAIL_SENT = "FULFILLER_EMAIL_SENT",
|
|
3536
|
+
/** Order's shipping address was modified. */
|
|
3555
3537
|
SHIPPING_ADDRESS_EDITED = "SHIPPING_ADDRESS_EDITED",
|
|
3538
|
+
/** Order's contact email address was changed. */
|
|
3556
3539
|
EMAIL_EDITED = "EMAIL_EDITED",
|
|
3540
|
+
/** Email notification for pickup readiness was sent. */
|
|
3557
3541
|
PICKUP_READY_EMAIL_SENT = "PICKUP_READY_EMAIL_SENT",
|
|
3542
|
+
/** Custom activity created by a third-party application. */
|
|
3558
3543
|
CUSTOM_ACTIVITY = "CUSTOM_ACTIVITY",
|
|
3544
|
+
/** Comment added to the order by a merchant. */
|
|
3559
3545
|
MERCHANT_COMMENT = "MERCHANT_COMMENT",
|
|
3546
|
+
/** Order was created as a result of an exchange. */
|
|
3560
3547
|
ORDER_CREATED_FROM_EXCHANGE = "ORDER_CREATED_FROM_EXCHANGE",
|
|
3548
|
+
/** New exchange order was created from this order. */
|
|
3561
3549
|
NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
|
|
3550
|
+
/** Partial payment was received for the order. */
|
|
3562
3551
|
ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
|
|
3552
|
+
/** Changes were applied to a draft order. */
|
|
3563
3553
|
DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED",
|
|
3554
|
+
/** Payment method was saved for future use. */
|
|
3564
3555
|
SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD",
|
|
3565
|
-
/**
|
|
3556
|
+
/**
|
|
3557
|
+
* Payment was authorized but not yet captured.
|
|
3558
|
+
* @documentationMaturity preview
|
|
3559
|
+
*/
|
|
3560
|
+
AUTHORIZED_PAYMENT_CREATED = "AUTHORIZED_PAYMENT_CREATED",
|
|
3561
|
+
/**
|
|
3562
|
+
* Previously authorized payment was captured.
|
|
3563
|
+
* @documentationMaturity preview
|
|
3564
|
+
*/
|
|
3565
|
+
AUTHORIZED_PAYMENT_CAPTURED = "AUTHORIZED_PAYMENT_CAPTURED",
|
|
3566
|
+
/**
|
|
3567
|
+
* Previously authorized payment was voided.
|
|
3568
|
+
* @documentationMaturity preview
|
|
3569
|
+
*/
|
|
3570
|
+
AUTHORIZED_PAYMENT_VOIDED = "AUTHORIZED_PAYMENT_VOIDED",
|
|
3571
|
+
/**
|
|
3572
|
+
* Refund process was initiated.
|
|
3573
|
+
* @documentationMaturity preview
|
|
3574
|
+
*/
|
|
3575
|
+
REFUND_INITIATED = "REFUND_INITIATED",
|
|
3576
|
+
/**
|
|
3577
|
+
* Payment was successfully refunded.
|
|
3578
|
+
* @documentationMaturity preview
|
|
3579
|
+
*/
|
|
3580
|
+
PAYMENT_REFUNDED = "PAYMENT_REFUNDED",
|
|
3581
|
+
/**
|
|
3582
|
+
* Attempt to refund payment failed.
|
|
3583
|
+
* @documentationMaturity preview
|
|
3584
|
+
*/
|
|
3585
|
+
PAYMENT_REFUND_FAILED = "PAYMENT_REFUND_FAILED",
|
|
3586
|
+
/**
|
|
3587
|
+
* Refund was issued as store credit.
|
|
3588
|
+
* @documentationMaturity preview
|
|
3589
|
+
*/
|
|
3590
|
+
REFUNDED_AS_STORE_CREDIT = "REFUNDED_AS_STORE_CREDIT",
|
|
3591
|
+
/**
|
|
3592
|
+
* Payment is awaiting processing or confirmation.
|
|
3593
|
+
* @documentationMaturity preview
|
|
3594
|
+
*/
|
|
3566
3595
|
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
3567
|
-
/**
|
|
3596
|
+
/**
|
|
3597
|
+
* Payment was canceled before completion.
|
|
3598
|
+
* @documentationMaturity preview
|
|
3599
|
+
*/
|
|
3568
3600
|
PAYMENT_CANCELED = "PAYMENT_CANCELED",
|
|
3569
|
-
/**
|
|
3601
|
+
/**
|
|
3602
|
+
* Payment was declined by payment provider.
|
|
3603
|
+
* @documentationMaturity preview
|
|
3604
|
+
*/
|
|
3570
3605
|
PAYMENT_DECLINED = "PAYMENT_DECLINED",
|
|
3571
|
-
/**
|
|
3606
|
+
/**
|
|
3607
|
+
* Order is awaiting approval or processing.
|
|
3608
|
+
* @documentationMaturity preview
|
|
3609
|
+
*/
|
|
3572
3610
|
ORDER_PENDING = "ORDER_PENDING",
|
|
3573
|
-
/**
|
|
3574
|
-
|
|
3611
|
+
/**
|
|
3612
|
+
* Order was rejected by merchant.
|
|
3613
|
+
* @documentationMaturity preview
|
|
3614
|
+
*/
|
|
3615
|
+
ORDER_REJECTED = "ORDER_REJECTED",
|
|
3616
|
+
/**
|
|
3617
|
+
* Receipt was generated for a payment.
|
|
3618
|
+
* @documentationMaturity preview
|
|
3619
|
+
*/
|
|
3620
|
+
RECEIPT_CREATED = "RECEIPT_CREATED",
|
|
3621
|
+
/**
|
|
3622
|
+
* Receipt was sent to the customer.
|
|
3623
|
+
* @documentationMaturity preview
|
|
3624
|
+
*/
|
|
3625
|
+
RECEIPT_SENT = "RECEIPT_SENT",
|
|
3626
|
+
/**
|
|
3627
|
+
* Chargeback was created for one of the order's payments.
|
|
3628
|
+
* @documentationMaturity preview
|
|
3629
|
+
*/
|
|
3630
|
+
CHARGEBACK_CREATED = "CHARGEBACK_CREATED",
|
|
3631
|
+
/**
|
|
3632
|
+
* Chargeback was resolved in merchant's favor.
|
|
3633
|
+
* @documentationMaturity preview
|
|
3634
|
+
*/
|
|
3635
|
+
CHARGEBACK_REVERSED = "CHARGEBACK_REVERSED"
|
|
3575
3636
|
}
|
|
3576
3637
|
/** @enumType */
|
|
3577
|
-
type ActivityTypeWithLiterals = ActivityType | 'ORDER_REFUNDED' | 'ORDER_PLACED' | 'ORDER_PAID' | 'ORDER_FULFILLED' | 'ORDER_NOT_FULFILLED' | 'ORDER_CANCELED' | 'DOWNLOAD_LINK_SENT' | 'TRACKING_NUMBER_ADDED' | 'TRACKING_NUMBER_EDITED' | 'TRACKING_LINK_ADDED' | 'SHIPPING_CONFIRMATION_EMAIL_SENT' | 'INVOICE_ADDED' | 'INVOICE_REMOVED' | 'INVOICE_SENT' | 'FULFILLER_EMAIL_SENT' | 'SHIPPING_ADDRESS_EDITED' | 'EMAIL_EDITED' | 'PICKUP_READY_EMAIL_SENT' | 'CUSTOM_ACTIVITY' | 'MERCHANT_COMMENT' | 'ORDER_CREATED_FROM_EXCHANGE' | 'NEW_EXCHANGE_ORDER_CREATED' | 'ORDER_PARTIALLY_PAID' | 'DRAFT_ORDER_CHANGES_APPLIED' | 'SAVED_PAYMENT_METHOD' | 'PAYMENT_PENDING' | 'PAYMENT_CANCELED' | 'PAYMENT_DECLINED' | 'ORDER_PENDING' | 'ORDER_REJECTED';
|
|
3638
|
+
type ActivityTypeWithLiterals = ActivityType | 'ORDER_REFUNDED' | 'ORDER_PLACED' | 'ORDER_PAID' | 'ORDER_FULFILLED' | 'ORDER_NOT_FULFILLED' | 'ORDER_CANCELED' | 'DOWNLOAD_LINK_SENT' | 'TRACKING_NUMBER_ADDED' | 'TRACKING_NUMBER_EDITED' | 'TRACKING_LINK_ADDED' | 'SHIPPING_CONFIRMATION_EMAIL_SENT' | 'INVOICE_ADDED' | 'INVOICE_REMOVED' | 'INVOICE_SENT' | 'FULFILLER_EMAIL_SENT' | 'SHIPPING_ADDRESS_EDITED' | 'EMAIL_EDITED' | 'PICKUP_READY_EMAIL_SENT' | 'CUSTOM_ACTIVITY' | 'MERCHANT_COMMENT' | 'ORDER_CREATED_FROM_EXCHANGE' | 'NEW_EXCHANGE_ORDER_CREATED' | 'ORDER_PARTIALLY_PAID' | 'DRAFT_ORDER_CHANGES_APPLIED' | 'SAVED_PAYMENT_METHOD' | 'AUTHORIZED_PAYMENT_CREATED' | 'AUTHORIZED_PAYMENT_CAPTURED' | 'AUTHORIZED_PAYMENT_VOIDED' | 'REFUND_INITIATED' | 'PAYMENT_REFUNDED' | 'PAYMENT_REFUND_FAILED' | 'REFUNDED_AS_STORE_CREDIT' | 'PAYMENT_PENDING' | 'PAYMENT_CANCELED' | 'PAYMENT_DECLINED' | 'ORDER_PENDING' | 'ORDER_REJECTED' | 'RECEIPT_CREATED' | 'RECEIPT_SENT' | 'CHARGEBACK_CREATED' | 'CHARGEBACK_REVERSED';
|
|
3578
3639
|
declare enum AttributionSource {
|
|
3579
3640
|
UNSPECIFIED = "UNSPECIFIED",
|
|
3580
3641
|
FACEBOOK_ADS = "FACEBOOK_ADS"
|
|
@@ -3721,7 +3782,6 @@ interface V1BalanceSummary {
|
|
|
3721
3782
|
authorized?: Price;
|
|
3722
3783
|
/**
|
|
3723
3784
|
* Sum of all pending refund transactions.
|
|
3724
|
-
* @internal
|
|
3725
3785
|
* @readonly
|
|
3726
3786
|
*/
|
|
3727
3787
|
pendingRefund?: Price;
|
|
@@ -3732,13 +3792,11 @@ interface V1BalanceSummary {
|
|
|
3732
3792
|
pending?: Price;
|
|
3733
3793
|
/**
|
|
3734
3794
|
* Sum of all transaction chargebacks.
|
|
3735
|
-
* @internal
|
|
3736
3795
|
* @readonly
|
|
3737
3796
|
*/
|
|
3738
3797
|
chargeback?: Price;
|
|
3739
3798
|
/**
|
|
3740
3799
|
* Sum of all chargeback reversals.
|
|
3741
|
-
* @internal
|
|
3742
3800
|
* @readonly
|
|
3743
3801
|
*/
|
|
3744
3802
|
chargebackReversal?: Price;
|
|
@@ -4811,7 +4869,7 @@ declare function getOrderDraftabilityStatus(orderId: string): Promise<NonNullabl
|
|
|
4811
4869
|
* @applicableIdentity APP
|
|
4812
4870
|
* @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CommitDraftOrder
|
|
4813
4871
|
*/
|
|
4814
|
-
declare function commitDraftOrder(draftOrderId: string, options?: CommitDraftOrderOptions): Promise<NonNullablePaths<CommitDraftOrderResponse, `committedDraftOrder.lineItems` | `committedDraftOrder.lineItems.${number}.added` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `committedDraftOrder.lineItems.${number}.removed` | `committedDraftOrder.lineItems.${number}.lineItem._id` | `committedDraftOrder.lineItems.${number}.lineItem.productName.original` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `committedDraftOrder.lineItems.${number}.lineItem.quantity` | `committedDraftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.preset` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.custom` | `committedDraftOrder.lineItems.${number}.lineItem.paymentOption` | `committedDraftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `committedDraftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `committedDraftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `committedDraftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `committedDraftOrder.shippingInfo.added` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `committedDraftOrder.shippingInfo.removed` | `committedDraftOrder.buyerInfo.visitorId` | `committedDraftOrder.buyerInfo.memberId` | `committedDraftOrder.additionalFees` | `committedDraftOrder.additionalFees.${number}.additionalFee.name` | `committedDraftOrder.additionalFees.${number}.additionalFee._id` | `committedDraftOrder.additionalFees.${number}.taxDetails.taxable` | `committedDraftOrder.additionalFees.${number}.source` | `committedDraftOrder.additionalFees.${number}.applied` | `committedDraftOrder.discounts` | `committedDraftOrder.discounts.${number}.discount.coupon._id` | `committedDraftOrder.discounts.${number}.discount.coupon.code` | `committedDraftOrder.discounts.${number}.discount.coupon.name` | `committedDraftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `committedDraftOrder.discounts.${number}.discount.discountRule._id` | `committedDraftOrder.discounts.${number}.discount.discountType` | `committedDraftOrder.discounts.${number}.source` | `committedDraftOrder.discounts.${number}.applied` | `committedDraftOrder.createdBy.userId` | `committedDraftOrder.createdBy.appId` | `committedDraftOrder.status` | `committedDraftOrder.weightUnit` | `committedDraftOrder.balanceSummary.balance.amount` | `committedDraftOrder.balanceSummary.balance.formattedAmount` | `committedDraftOrder.commitSettings.updateInventory` | `committedDraftOrder.commitSettings.updateInventory.${number}.lineItemId` | `committedDraftOrder.recipientInfo.added` | `committedDraftOrder.recipientInfo.removed` | `committedDraftOrder.taxInfo.taxBreakdown` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxName` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.rate` | `committedDraftOrder.buyerDetails.added` | `committedDraftOrder.buyerDetails.removed` | `committedDraftOrder.billingDetails.added` | `committedDraftOrder.billingDetails.removed` | `committedDraftOrder.businessLocationDetails.added` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `committedDraftOrder.businessLocationDetails.removed` | `orderAfterCommit.number` | `orderAfterCommit.lineItems` | `orderAfterCommit.lineItems.${number}._id` | `orderAfterCommit.lineItems.${number}.productName.original` | `orderAfterCommit.lineItems.${number}.catalogReference.catalogItemId` | `orderAfterCommit.lineItems.${number}.catalogReference.appId` | `orderAfterCommit.lineItems.${number}.quantity` | `orderAfterCommit.lineItems.${number}.totalDiscount.amount` | `orderAfterCommit.lineItems.${number}.totalDiscount.formattedAmount` | `orderAfterCommit.lineItems.${number}.physicalProperties.shippable` | `orderAfterCommit.lineItems.${number}.itemType.preset` | `orderAfterCommit.lineItems.${number}.itemType.custom` | `orderAfterCommit.lineItems.${number}.paymentOption` | `orderAfterCommit.lineItems.${number}.taxDetails.taxRate` | `orderAfterCommit.lineItems.${number}.taxInfo.taxIncludedInPrice` | `orderAfterCommit.lineItems.${number}.digitalFile.fileId` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.cycleNumber` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `orderAfterCommit.lineItems.${number}.priceDescription.original` | `orderAfterCommit.lineItems.${number}.taxableAddress.addressType` | `orderAfterCommit.buyerInfo.visitorId` | `orderAfterCommit.buyerInfo.memberId` | `orderAfterCommit.paymentStatus` | `orderAfterCommit.fulfillmentStatus` | `orderAfterCommit.weightUnit` | `orderAfterCommit.taxIncludedInPrices` | `orderAfterCommit.billingInfo.address.streetAddress.number` | `orderAfterCommit.billingInfo.address.streetAddress.name` | `orderAfterCommit.billingInfo.contactDetails.vatId._id` | `orderAfterCommit.billingInfo.contactDetails.vatId.type` | `orderAfterCommit.shippingInfo.title` | `orderAfterCommit.shippingInfo.logistics.pickupDetails.pickupMethod` | `orderAfterCommit.status` | `orderAfterCommit.taxInfo.taxBreakdown` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxName` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxType` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdiction` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdictionType` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.rate` | `orderAfterCommit.appliedDiscounts` | `orderAfterCommit.appliedDiscounts.${number}.coupon._id` | `orderAfterCommit.appliedDiscounts.${number}.coupon.code` | `orderAfterCommit.appliedDiscounts.${number}.coupon.name` | `orderAfterCommit.appliedDiscounts.${number}.merchantDiscount.discountReason` | `orderAfterCommit.appliedDiscounts.${number}.discountRule._id` | `orderAfterCommit.appliedDiscounts.${number}.discountRule.name.original` | `orderAfterCommit.appliedDiscounts.${number}.discountType` | `orderAfterCommit.activities` | `orderAfterCommit.activities.${number}.customActivity.appId` | `orderAfterCommit.activities.${number}.customActivity.type` | `orderAfterCommit.activities.${number}.merchantComment.message` | `orderAfterCommit.activities.${number}.orderRefunded.manual` | `orderAfterCommit.activities.${number}.orderRefunded.reason` | `orderAfterCommit.activities.${number}.type` | `orderAfterCommit.attributionSource` | `orderAfterCommit.createdBy.userId` | `orderAfterCommit.createdBy.memberId` | `orderAfterCommit.createdBy.visitorId` | `orderAfterCommit.createdBy.appId` | `orderAfterCommit.channelInfo.type` | `orderAfterCommit.customFields` | `orderAfterCommit.customFields.${number}.title` | `orderAfterCommit.balanceSummary.balance.amount` | `orderAfterCommit.balanceSummary.balance.formattedAmount` | `orderAfterCommit.additionalFees` | `orderAfterCommit.additionalFees.${number}.name` | `orderAfterCommit.additionalFees.${number}._id` | `orderAfterCommit.tags.privateTags.tagIds` | `orderAfterCommit.businessLocation._id` | `orderAfterCommit.businessLocation.name`, 10> & {
|
|
4872
|
+
declare function commitDraftOrder(draftOrderId: string, options?: CommitDraftOrderOptions): Promise<NonNullablePaths<CommitDraftOrderResponse, `committedDraftOrder.lineItems` | `committedDraftOrder.lineItems.${number}.added` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `committedDraftOrder.lineItems.${number}.removed` | `committedDraftOrder.lineItems.${number}.lineItem._id` | `committedDraftOrder.lineItems.${number}.lineItem.productName.original` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `committedDraftOrder.lineItems.${number}.lineItem.quantity` | `committedDraftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.preset` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.custom` | `committedDraftOrder.lineItems.${number}.lineItem.paymentOption` | `committedDraftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `committedDraftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `committedDraftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `committedDraftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `committedDraftOrder.shippingInfo.added` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `committedDraftOrder.shippingInfo.removed` | `committedDraftOrder.buyerInfo.visitorId` | `committedDraftOrder.buyerInfo.memberId` | `committedDraftOrder.additionalFees` | `committedDraftOrder.additionalFees.${number}.additionalFee.name` | `committedDraftOrder.additionalFees.${number}.additionalFee._id` | `committedDraftOrder.additionalFees.${number}.taxDetails.taxable` | `committedDraftOrder.additionalFees.${number}.source` | `committedDraftOrder.additionalFees.${number}.applied` | `committedDraftOrder.discounts` | `committedDraftOrder.discounts.${number}.discount.coupon._id` | `committedDraftOrder.discounts.${number}.discount.coupon.code` | `committedDraftOrder.discounts.${number}.discount.coupon.name` | `committedDraftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `committedDraftOrder.discounts.${number}.discount.discountRule._id` | `committedDraftOrder.discounts.${number}.discount.discountType` | `committedDraftOrder.discounts.${number}.source` | `committedDraftOrder.discounts.${number}.applied` | `committedDraftOrder.createdBy.userId` | `committedDraftOrder.createdBy.appId` | `committedDraftOrder.status` | `committedDraftOrder.weightUnit` | `committedDraftOrder.balanceSummary.balance.amount` | `committedDraftOrder.balanceSummary.balance.formattedAmount` | `committedDraftOrder.commitSettings.updateInventory` | `committedDraftOrder.commitSettings.updateInventory.${number}.lineItemId` | `committedDraftOrder.recipientInfo.added` | `committedDraftOrder.recipientInfo.removed` | `committedDraftOrder.taxInfo.taxBreakdown` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxName` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.rate` | `committedDraftOrder.buyerDetails.added` | `committedDraftOrder.buyerDetails.removed` | `committedDraftOrder.billingDetails.added` | `committedDraftOrder.billingDetails.removed` | `committedDraftOrder.businessLocationDetails.added` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `committedDraftOrder.businessLocationDetails.removed` | `orderAfterCommit.number` | `orderAfterCommit.lineItems` | `orderAfterCommit.lineItems.${number}._id` | `orderAfterCommit.lineItems.${number}.productName.original` | `orderAfterCommit.lineItems.${number}.catalogReference.catalogItemId` | `orderAfterCommit.lineItems.${number}.catalogReference.appId` | `orderAfterCommit.lineItems.${number}.quantity` | `orderAfterCommit.lineItems.${number}.totalDiscount.amount` | `orderAfterCommit.lineItems.${number}.totalDiscount.formattedAmount` | `orderAfterCommit.lineItems.${number}.physicalProperties.shippable` | `orderAfterCommit.lineItems.${number}.itemType.preset` | `orderAfterCommit.lineItems.${number}.itemType.custom` | `orderAfterCommit.lineItems.${number}.paymentOption` | `orderAfterCommit.lineItems.${number}.taxDetails.taxRate` | `orderAfterCommit.lineItems.${number}.taxInfo.taxIncludedInPrice` | `orderAfterCommit.lineItems.${number}.digitalFile.fileId` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.cycleNumber` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `orderAfterCommit.lineItems.${number}.priceDescription.original` | `orderAfterCommit.lineItems.${number}.taxableAddress.addressType` | `orderAfterCommit.buyerInfo.visitorId` | `orderAfterCommit.buyerInfo.memberId` | `orderAfterCommit.paymentStatus` | `orderAfterCommit.fulfillmentStatus` | `orderAfterCommit.weightUnit` | `orderAfterCommit.taxIncludedInPrices` | `orderAfterCommit.billingInfo.address.streetAddress.number` | `orderAfterCommit.billingInfo.address.streetAddress.name` | `orderAfterCommit.billingInfo.contactDetails.vatId._id` | `orderAfterCommit.billingInfo.contactDetails.vatId.type` | `orderAfterCommit.shippingInfo.title` | `orderAfterCommit.shippingInfo.logistics.pickupDetails.pickupMethod` | `orderAfterCommit.status` | `orderAfterCommit.taxInfo.taxBreakdown` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxName` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxType` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdiction` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdictionType` | `orderAfterCommit.taxInfo.taxBreakdown.${number}.rate` | `orderAfterCommit.appliedDiscounts` | `orderAfterCommit.appliedDiscounts.${number}.coupon._id` | `orderAfterCommit.appliedDiscounts.${number}.coupon.code` | `orderAfterCommit.appliedDiscounts.${number}.coupon.name` | `orderAfterCommit.appliedDiscounts.${number}.merchantDiscount.discountReason` | `orderAfterCommit.appliedDiscounts.${number}.discountRule._id` | `orderAfterCommit.appliedDiscounts.${number}.discountRule.name.original` | `orderAfterCommit.appliedDiscounts.${number}.discountType` | `orderAfterCommit.activities` | `orderAfterCommit.activities.${number}.customActivity.appId` | `orderAfterCommit.activities.${number}.customActivity.type` | `orderAfterCommit.activities.${number}.merchantComment.message` | `orderAfterCommit.activities.${number}.orderRefunded.manual` | `orderAfterCommit.activities.${number}.orderRefunded.reason` | `orderAfterCommit.activities.${number}.draftOrderChangesApplied.draftOrderId` | `orderAfterCommit.activities.${number}.savedPaymentMethod.name` | `orderAfterCommit.activities.${number}.authorizedPaymentCreated.paymentId` | `orderAfterCommit.activities.${number}.authorizedPaymentCaptured.paymentId` | `orderAfterCommit.activities.${number}.authorizedPaymentVoided.paymentId` | `orderAfterCommit.activities.${number}.refundInitiated.refundId` | `orderAfterCommit.activities.${number}.paymentRefunded.refundId` | `orderAfterCommit.activities.${number}.paymentRefundFailed.refundId` | `orderAfterCommit.activities.${number}.paymentPending.paymentId` | `orderAfterCommit.activities.${number}.paymentCanceled.paymentId` | `orderAfterCommit.activities.${number}.paymentDeclined.paymentId` | `orderAfterCommit.activities.${number}.receiptCreated.wixReceipt.receiptId` | `orderAfterCommit.activities.${number}.receiptCreated.paymentId` | `orderAfterCommit.activities.${number}.receiptSent.paymentId` | `orderAfterCommit.activities.${number}.chargebackCreated.paymentId` | `orderAfterCommit.activities.${number}.chargebackCreated.chargebackId` | `orderAfterCommit.activities.${number}.chargebackReversed.paymentId` | `orderAfterCommit.activities.${number}.chargebackReversed.chargebackId` | `orderAfterCommit.activities.${number}.type` | `orderAfterCommit.attributionSource` | `orderAfterCommit.createdBy.userId` | `orderAfterCommit.createdBy.memberId` | `orderAfterCommit.createdBy.visitorId` | `orderAfterCommit.createdBy.appId` | `orderAfterCommit.channelInfo.type` | `orderAfterCommit.customFields` | `orderAfterCommit.customFields.${number}.title` | `orderAfterCommit.balanceSummary.balance.amount` | `orderAfterCommit.balanceSummary.balance.formattedAmount` | `orderAfterCommit.additionalFees` | `orderAfterCommit.additionalFees.${number}.name` | `orderAfterCommit.additionalFees.${number}._id` | `orderAfterCommit.tags.privateTags.tagIds` | `orderAfterCommit.businessLocation._id` | `orderAfterCommit.businessLocation.name`, 10> & {
|
|
4815
4873
|
__applicationErrorsType?: CommitDraftOrderApplicationErrors;
|
|
4816
4874
|
}>;
|
|
4817
4875
|
interface CommitDraftOrderOptions {
|
|
@@ -4839,7 +4897,7 @@ interface CommitDraftOrderOptions {
|
|
|
4839
4897
|
* @applicableIdentity APP
|
|
4840
4898
|
* @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateOrderFromDraft
|
|
4841
4899
|
*/
|
|
4842
|
-
declare function createOrderFromDraft(draftOrderId: string, options?: CreateOrderFromDraftOptions): Promise<NonNullablePaths<CreateOrderFromDraftResponse, `committedDraftOrder.lineItems` | `committedDraftOrder.lineItems.${number}.added` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `committedDraftOrder.lineItems.${number}.removed` | `committedDraftOrder.lineItems.${number}.lineItem._id` | `committedDraftOrder.lineItems.${number}.lineItem.productName.original` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `committedDraftOrder.lineItems.${number}.lineItem.quantity` | `committedDraftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.preset` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.custom` | `committedDraftOrder.lineItems.${number}.lineItem.paymentOption` | `committedDraftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `committedDraftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `committedDraftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `committedDraftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `committedDraftOrder.shippingInfo.added` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `committedDraftOrder.shippingInfo.removed` | `committedDraftOrder.buyerInfo.visitorId` | `committedDraftOrder.buyerInfo.memberId` | `committedDraftOrder.additionalFees` | `committedDraftOrder.additionalFees.${number}.additionalFee.name` | `committedDraftOrder.additionalFees.${number}.additionalFee._id` | `committedDraftOrder.additionalFees.${number}.taxDetails.taxable` | `committedDraftOrder.additionalFees.${number}.source` | `committedDraftOrder.additionalFees.${number}.applied` | `committedDraftOrder.discounts` | `committedDraftOrder.discounts.${number}.discount.coupon._id` | `committedDraftOrder.discounts.${number}.discount.coupon.code` | `committedDraftOrder.discounts.${number}.discount.coupon.name` | `committedDraftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `committedDraftOrder.discounts.${number}.discount.discountRule._id` | `committedDraftOrder.discounts.${number}.discount.discountType` | `committedDraftOrder.discounts.${number}.source` | `committedDraftOrder.discounts.${number}.applied` | `committedDraftOrder.createdBy.userId` | `committedDraftOrder.createdBy.appId` | `committedDraftOrder.status` | `committedDraftOrder.weightUnit` | `committedDraftOrder.balanceSummary.balance.amount` | `committedDraftOrder.balanceSummary.balance.formattedAmount` | `committedDraftOrder.commitSettings.updateInventory` | `committedDraftOrder.commitSettings.updateInventory.${number}.lineItemId` | `committedDraftOrder.recipientInfo.added` | `committedDraftOrder.recipientInfo.removed` | `committedDraftOrder.taxInfo.taxBreakdown` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxName` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.rate` | `committedDraftOrder.buyerDetails.added` | `committedDraftOrder.buyerDetails.removed` | `committedDraftOrder.billingDetails.added` | `committedDraftOrder.billingDetails.removed` | `committedDraftOrder.businessLocationDetails.added` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `committedDraftOrder.businessLocationDetails.removed` | `createdOrder.number` | `createdOrder.lineItems` | `createdOrder.lineItems.${number}._id` | `createdOrder.lineItems.${number}.productName.original` | `createdOrder.lineItems.${number}.catalogReference.catalogItemId` | `createdOrder.lineItems.${number}.catalogReference.appId` | `createdOrder.lineItems.${number}.quantity` | `createdOrder.lineItems.${number}.totalDiscount.amount` | `createdOrder.lineItems.${number}.totalDiscount.formattedAmount` | `createdOrder.lineItems.${number}.physicalProperties.shippable` | `createdOrder.lineItems.${number}.itemType.preset` | `createdOrder.lineItems.${number}.itemType.custom` | `createdOrder.lineItems.${number}.paymentOption` | `createdOrder.lineItems.${number}.taxDetails.taxRate` | `createdOrder.lineItems.${number}.taxInfo.taxIncludedInPrice` | `createdOrder.lineItems.${number}.digitalFile.fileId` | `createdOrder.lineItems.${number}.subscriptionInfo.cycleNumber` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `createdOrder.lineItems.${number}.priceDescription.original` | `createdOrder.lineItems.${number}.taxableAddress.addressType` | `createdOrder.buyerInfo.visitorId` | `createdOrder.buyerInfo.memberId` | `createdOrder.paymentStatus` | `createdOrder.fulfillmentStatus` | `createdOrder.weightUnit` | `createdOrder.taxIncludedInPrices` | `createdOrder.billingInfo.address.streetAddress.number` | `createdOrder.billingInfo.address.streetAddress.name` | `createdOrder.billingInfo.contactDetails.vatId._id` | `createdOrder.billingInfo.contactDetails.vatId.type` | `createdOrder.shippingInfo.title` | `createdOrder.shippingInfo.logistics.pickupDetails.pickupMethod` | `createdOrder.status` | `createdOrder.taxInfo.taxBreakdown` | `createdOrder.taxInfo.taxBreakdown.${number}.taxName` | `createdOrder.taxInfo.taxBreakdown.${number}.taxType` | `createdOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `createdOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `createdOrder.taxInfo.taxBreakdown.${number}.rate` | `createdOrder.appliedDiscounts` | `createdOrder.appliedDiscounts.${number}.coupon._id` | `createdOrder.appliedDiscounts.${number}.coupon.code` | `createdOrder.appliedDiscounts.${number}.coupon.name` | `createdOrder.appliedDiscounts.${number}.merchantDiscount.discountReason` | `createdOrder.appliedDiscounts.${number}.discountRule._id` | `createdOrder.appliedDiscounts.${number}.discountRule.name.original` | `createdOrder.appliedDiscounts.${number}.discountType` | `createdOrder.activities` | `createdOrder.activities.${number}.customActivity.appId` | `createdOrder.activities.${number}.customActivity.type` | `createdOrder.activities.${number}.merchantComment.message` | `createdOrder.activities.${number}.orderRefunded.manual` | `createdOrder.activities.${number}.orderRefunded.reason` | `createdOrder.activities.${number}.type` | `createdOrder.attributionSource` | `createdOrder.createdBy.userId` | `createdOrder.createdBy.memberId` | `createdOrder.createdBy.visitorId` | `createdOrder.createdBy.appId` | `createdOrder.channelInfo.type` | `createdOrder.customFields` | `createdOrder.customFields.${number}.title` | `createdOrder.balanceSummary.balance.amount` | `createdOrder.balanceSummary.balance.formattedAmount` | `createdOrder.additionalFees` | `createdOrder.additionalFees.${number}.name` | `createdOrder.additionalFees.${number}._id` | `createdOrder.tags.privateTags.tagIds` | `createdOrder.businessLocation._id` | `createdOrder.businessLocation.name`, 10> & {
|
|
4900
|
+
declare function createOrderFromDraft(draftOrderId: string, options?: CreateOrderFromDraftOptions): Promise<NonNullablePaths<CreateOrderFromDraftResponse, `committedDraftOrder.lineItems` | `committedDraftOrder.lineItems.${number}.added` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.amount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount` | `committedDraftOrder.lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original` | `committedDraftOrder.lineItems.${number}.removed` | `committedDraftOrder.lineItems.${number}.lineItem._id` | `committedDraftOrder.lineItems.${number}.lineItem.productName.original` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.catalogItemId` | `committedDraftOrder.lineItems.${number}.lineItem.catalogReference.appId` | `committedDraftOrder.lineItems.${number}.lineItem.quantity` | `committedDraftOrder.lineItems.${number}.lineItem.physicalProperties.shippable` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.preset` | `committedDraftOrder.lineItems.${number}.lineItem.itemType.custom` | `committedDraftOrder.lineItems.${number}.lineItem.paymentOption` | `committedDraftOrder.lineItems.${number}.lineItem.taxDetails.taxRate` | `committedDraftOrder.lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice` | `committedDraftOrder.lineItems.${number}.lineItem.digitalFile.fileId` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.cycleNumber` | `committedDraftOrder.lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle` | `committedDraftOrder.lineItems.${number}.lineItem.taxableAddress.addressType` | `committedDraftOrder.shippingInfo.added` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.title` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type` | `committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod` | `committedDraftOrder.shippingInfo.removed` | `committedDraftOrder.buyerInfo.visitorId` | `committedDraftOrder.buyerInfo.memberId` | `committedDraftOrder.additionalFees` | `committedDraftOrder.additionalFees.${number}.additionalFee.name` | `committedDraftOrder.additionalFees.${number}.additionalFee._id` | `committedDraftOrder.additionalFees.${number}.taxDetails.taxable` | `committedDraftOrder.additionalFees.${number}.source` | `committedDraftOrder.additionalFees.${number}.applied` | `committedDraftOrder.discounts` | `committedDraftOrder.discounts.${number}.discount.coupon._id` | `committedDraftOrder.discounts.${number}.discount.coupon.code` | `committedDraftOrder.discounts.${number}.discount.coupon.name` | `committedDraftOrder.discounts.${number}.discount.merchantDiscount.discountReason` | `committedDraftOrder.discounts.${number}.discount.discountRule._id` | `committedDraftOrder.discounts.${number}.discount.discountType` | `committedDraftOrder.discounts.${number}.source` | `committedDraftOrder.discounts.${number}.applied` | `committedDraftOrder.createdBy.userId` | `committedDraftOrder.createdBy.appId` | `committedDraftOrder.status` | `committedDraftOrder.weightUnit` | `committedDraftOrder.balanceSummary.balance.amount` | `committedDraftOrder.balanceSummary.balance.formattedAmount` | `committedDraftOrder.commitSettings.updateInventory` | `committedDraftOrder.commitSettings.updateInventory.${number}.lineItemId` | `committedDraftOrder.recipientInfo.added` | `committedDraftOrder.recipientInfo.removed` | `committedDraftOrder.taxInfo.taxBreakdown` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxName` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.taxType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `committedDraftOrder.taxInfo.taxBreakdown.${number}.rate` | `committedDraftOrder.buyerDetails.added` | `committedDraftOrder.buyerDetails.removed` | `committedDraftOrder.billingDetails.added` | `committedDraftOrder.billingDetails.removed` | `committedDraftOrder.businessLocationDetails.added` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange._id` | `committedDraftOrder.businessLocationDetails.changedDetails.businessLocationBeforeChange.name` | `committedDraftOrder.businessLocationDetails.removed` | `createdOrder.number` | `createdOrder.lineItems` | `createdOrder.lineItems.${number}._id` | `createdOrder.lineItems.${number}.productName.original` | `createdOrder.lineItems.${number}.catalogReference.catalogItemId` | `createdOrder.lineItems.${number}.catalogReference.appId` | `createdOrder.lineItems.${number}.quantity` | `createdOrder.lineItems.${number}.totalDiscount.amount` | `createdOrder.lineItems.${number}.totalDiscount.formattedAmount` | `createdOrder.lineItems.${number}.physicalProperties.shippable` | `createdOrder.lineItems.${number}.itemType.preset` | `createdOrder.lineItems.${number}.itemType.custom` | `createdOrder.lineItems.${number}.paymentOption` | `createdOrder.lineItems.${number}.taxDetails.taxRate` | `createdOrder.lineItems.${number}.taxInfo.taxIncludedInPrice` | `createdOrder.lineItems.${number}.digitalFile.fileId` | `createdOrder.lineItems.${number}.subscriptionInfo.cycleNumber` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionOptionTitle` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal` | `createdOrder.lineItems.${number}.subscriptionInfo.subscriptionSettings.enableCustomerCancellation` | `createdOrder.lineItems.${number}.priceDescription.original` | `createdOrder.lineItems.${number}.taxableAddress.addressType` | `createdOrder.buyerInfo.visitorId` | `createdOrder.buyerInfo.memberId` | `createdOrder.paymentStatus` | `createdOrder.fulfillmentStatus` | `createdOrder.weightUnit` | `createdOrder.taxIncludedInPrices` | `createdOrder.billingInfo.address.streetAddress.number` | `createdOrder.billingInfo.address.streetAddress.name` | `createdOrder.billingInfo.contactDetails.vatId._id` | `createdOrder.billingInfo.contactDetails.vatId.type` | `createdOrder.shippingInfo.title` | `createdOrder.shippingInfo.logistics.pickupDetails.pickupMethod` | `createdOrder.status` | `createdOrder.taxInfo.taxBreakdown` | `createdOrder.taxInfo.taxBreakdown.${number}.taxName` | `createdOrder.taxInfo.taxBreakdown.${number}.taxType` | `createdOrder.taxInfo.taxBreakdown.${number}.jurisdiction` | `createdOrder.taxInfo.taxBreakdown.${number}.jurisdictionType` | `createdOrder.taxInfo.taxBreakdown.${number}.rate` | `createdOrder.appliedDiscounts` | `createdOrder.appliedDiscounts.${number}.coupon._id` | `createdOrder.appliedDiscounts.${number}.coupon.code` | `createdOrder.appliedDiscounts.${number}.coupon.name` | `createdOrder.appliedDiscounts.${number}.merchantDiscount.discountReason` | `createdOrder.appliedDiscounts.${number}.discountRule._id` | `createdOrder.appliedDiscounts.${number}.discountRule.name.original` | `createdOrder.appliedDiscounts.${number}.discountType` | `createdOrder.activities` | `createdOrder.activities.${number}.customActivity.appId` | `createdOrder.activities.${number}.customActivity.type` | `createdOrder.activities.${number}.merchantComment.message` | `createdOrder.activities.${number}.orderRefunded.manual` | `createdOrder.activities.${number}.orderRefunded.reason` | `createdOrder.activities.${number}.draftOrderChangesApplied.draftOrderId` | `createdOrder.activities.${number}.savedPaymentMethod.name` | `createdOrder.activities.${number}.authorizedPaymentCreated.paymentId` | `createdOrder.activities.${number}.authorizedPaymentCaptured.paymentId` | `createdOrder.activities.${number}.authorizedPaymentVoided.paymentId` | `createdOrder.activities.${number}.refundInitiated.refundId` | `createdOrder.activities.${number}.paymentRefunded.refundId` | `createdOrder.activities.${number}.paymentRefundFailed.refundId` | `createdOrder.activities.${number}.paymentPending.paymentId` | `createdOrder.activities.${number}.paymentCanceled.paymentId` | `createdOrder.activities.${number}.paymentDeclined.paymentId` | `createdOrder.activities.${number}.receiptCreated.wixReceipt.receiptId` | `createdOrder.activities.${number}.receiptCreated.paymentId` | `createdOrder.activities.${number}.receiptSent.paymentId` | `createdOrder.activities.${number}.chargebackCreated.paymentId` | `createdOrder.activities.${number}.chargebackCreated.chargebackId` | `createdOrder.activities.${number}.chargebackReversed.paymentId` | `createdOrder.activities.${number}.chargebackReversed.chargebackId` | `createdOrder.activities.${number}.type` | `createdOrder.attributionSource` | `createdOrder.createdBy.userId` | `createdOrder.createdBy.memberId` | `createdOrder.createdBy.visitorId` | `createdOrder.createdBy.appId` | `createdOrder.channelInfo.type` | `createdOrder.customFields` | `createdOrder.customFields.${number}.title` | `createdOrder.balanceSummary.balance.amount` | `createdOrder.balanceSummary.balance.formattedAmount` | `createdOrder.additionalFees` | `createdOrder.additionalFees.${number}.name` | `createdOrder.additionalFees.${number}._id` | `createdOrder.tags.privateTags.tagIds` | `createdOrder.businessLocation._id` | `createdOrder.businessLocation.name`, 10> & {
|
|
4843
4901
|
__applicationErrorsType?: CreateOrderFromDraftApplicationErrors;
|
|
4844
4902
|
}>;
|
|
4845
4903
|
interface CreateOrderFromDraftOptions {
|
|
@@ -3260,11 +3260,22 @@ var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
|
3260
3260
|
ActivityType2["ORDER_PARTIALLY_PAID"] = "ORDER_PARTIALLY_PAID";
|
|
3261
3261
|
ActivityType2["DRAFT_ORDER_CHANGES_APPLIED"] = "DRAFT_ORDER_CHANGES_APPLIED";
|
|
3262
3262
|
ActivityType2["SAVED_PAYMENT_METHOD"] = "SAVED_PAYMENT_METHOD";
|
|
3263
|
+
ActivityType2["AUTHORIZED_PAYMENT_CREATED"] = "AUTHORIZED_PAYMENT_CREATED";
|
|
3264
|
+
ActivityType2["AUTHORIZED_PAYMENT_CAPTURED"] = "AUTHORIZED_PAYMENT_CAPTURED";
|
|
3265
|
+
ActivityType2["AUTHORIZED_PAYMENT_VOIDED"] = "AUTHORIZED_PAYMENT_VOIDED";
|
|
3266
|
+
ActivityType2["REFUND_INITIATED"] = "REFUND_INITIATED";
|
|
3267
|
+
ActivityType2["PAYMENT_REFUNDED"] = "PAYMENT_REFUNDED";
|
|
3268
|
+
ActivityType2["PAYMENT_REFUND_FAILED"] = "PAYMENT_REFUND_FAILED";
|
|
3269
|
+
ActivityType2["REFUNDED_AS_STORE_CREDIT"] = "REFUNDED_AS_STORE_CREDIT";
|
|
3263
3270
|
ActivityType2["PAYMENT_PENDING"] = "PAYMENT_PENDING";
|
|
3264
3271
|
ActivityType2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
3265
3272
|
ActivityType2["PAYMENT_DECLINED"] = "PAYMENT_DECLINED";
|
|
3266
3273
|
ActivityType2["ORDER_PENDING"] = "ORDER_PENDING";
|
|
3267
3274
|
ActivityType2["ORDER_REJECTED"] = "ORDER_REJECTED";
|
|
3275
|
+
ActivityType2["RECEIPT_CREATED"] = "RECEIPT_CREATED";
|
|
3276
|
+
ActivityType2["RECEIPT_SENT"] = "RECEIPT_SENT";
|
|
3277
|
+
ActivityType2["CHARGEBACK_CREATED"] = "CHARGEBACK_CREATED";
|
|
3278
|
+
ActivityType2["CHARGEBACK_REVERSED"] = "CHARGEBACK_REVERSED";
|
|
3268
3279
|
return ActivityType2;
|
|
3269
3280
|
})(ActivityType || {});
|
|
3270
3281
|
var AttributionSource = /* @__PURE__ */ ((AttributionSource2) => {
|