@wix/auto_sdk_ecom_draft-orders 1.0.55 → 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 +12 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +217 -11
- package/build/cjs/index.typings.js +12 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +717 -9
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +12 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +217 -11
- package/build/es/index.typings.mjs +12 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +717 -9
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +12 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +156 -96
- package/build/internal/cjs/index.typings.js +12 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +717 -9
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +12 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +156 -96
- package/build/internal/es/index.typings.mjs +12 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +717 -9
- package/package.json +2 -2
|
@@ -2756,6 +2756,53 @@ interface Activity extends ActivityContentOneOf {
|
|
|
2756
2756
|
merchantComment?: MerchantComment;
|
|
2757
2757
|
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
2758
2758
|
orderRefunded?: OrderRefunded;
|
|
2759
|
+
/** Details of changes made by the Draft Orders API. */
|
|
2760
|
+
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
2761
|
+
/** Details of the payment method saved for order */
|
|
2762
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
2763
|
+
/** Details of an authorized payment created. */
|
|
2764
|
+
authorizedPaymentCreated?: AuthorizedPaymentCreated;
|
|
2765
|
+
/** Details of an authorized payment captured. */
|
|
2766
|
+
authorizedPaymentCaptured?: AuthorizedPaymentCaptured;
|
|
2767
|
+
/** Details of an authorized payment voided. */
|
|
2768
|
+
authorizedPaymentVoided?: AuthorizedPaymentVoided;
|
|
2769
|
+
/**
|
|
2770
|
+
* Details of an initiated refund process.
|
|
2771
|
+
*
|
|
2772
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2773
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2774
|
+
*/
|
|
2775
|
+
refundInitiated?: RefundInitiated;
|
|
2776
|
+
/**
|
|
2777
|
+
* Details of a refunded payment.
|
|
2778
|
+
*
|
|
2779
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2780
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2781
|
+
*/
|
|
2782
|
+
paymentRefunded?: PaymentRefunded;
|
|
2783
|
+
/**
|
|
2784
|
+
* Details of a failed payment refund.
|
|
2785
|
+
*
|
|
2786
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2787
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2788
|
+
*/
|
|
2789
|
+
paymentRefundFailed?: PaymentRefundFailed;
|
|
2790
|
+
/** Details of refund to store credit. */
|
|
2791
|
+
refundedAsStoreCredit?: RefundedAsStoreCredit;
|
|
2792
|
+
/** Details of a pending payment. */
|
|
2793
|
+
paymentPending?: PaymentPending;
|
|
2794
|
+
/** Details of a canceled payment. */
|
|
2795
|
+
paymentCanceled?: PaymentCanceled;
|
|
2796
|
+
/** Details of a declined payment. */
|
|
2797
|
+
paymentDeclined?: PaymentDeclined;
|
|
2798
|
+
/** Receipt was added for associated payment. */
|
|
2799
|
+
receiptCreated?: ReceiptCreated;
|
|
2800
|
+
/** Receipt sent to customer. */
|
|
2801
|
+
receiptSent?: ReceiptSent;
|
|
2802
|
+
/** Order received a chargeback for one of its' payments. */
|
|
2803
|
+
chargebackCreated?: ChargebackCreated;
|
|
2804
|
+
/** Chargeback reversed for one of the order's payments. */
|
|
2805
|
+
chargebackReversed?: ChargebackReversed;
|
|
2759
2806
|
/**
|
|
2760
2807
|
* Activity ID.
|
|
2761
2808
|
* @format GUID
|
|
@@ -2784,6 +2831,53 @@ interface ActivityContentOneOf {
|
|
|
2784
2831
|
merchantComment?: MerchantComment;
|
|
2785
2832
|
/** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */
|
|
2786
2833
|
orderRefunded?: OrderRefunded;
|
|
2834
|
+
/** Details of changes made by the Draft Orders API. */
|
|
2835
|
+
draftOrderChangesApplied?: DraftOrderChangesApplied;
|
|
2836
|
+
/** Details of the payment method saved for order */
|
|
2837
|
+
savedPaymentMethod?: SavedPaymentMethod;
|
|
2838
|
+
/** Details of an authorized payment created. */
|
|
2839
|
+
authorizedPaymentCreated?: AuthorizedPaymentCreated;
|
|
2840
|
+
/** Details of an authorized payment captured. */
|
|
2841
|
+
authorizedPaymentCaptured?: AuthorizedPaymentCaptured;
|
|
2842
|
+
/** Details of an authorized payment voided. */
|
|
2843
|
+
authorizedPaymentVoided?: AuthorizedPaymentVoided;
|
|
2844
|
+
/**
|
|
2845
|
+
* Details of an initiated refund process.
|
|
2846
|
+
*
|
|
2847
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2848
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2849
|
+
*/
|
|
2850
|
+
refundInitiated?: RefundInitiated;
|
|
2851
|
+
/**
|
|
2852
|
+
* Details of a refunded payment.
|
|
2853
|
+
*
|
|
2854
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2855
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2856
|
+
*/
|
|
2857
|
+
paymentRefunded?: PaymentRefunded;
|
|
2858
|
+
/**
|
|
2859
|
+
* Details of a failed payment refund.
|
|
2860
|
+
*
|
|
2861
|
+
* > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.
|
|
2862
|
+
* > In these cases, the `refundId` will be identical across the activities.
|
|
2863
|
+
*/
|
|
2864
|
+
paymentRefundFailed?: PaymentRefundFailed;
|
|
2865
|
+
/** Details of refund to store credit. */
|
|
2866
|
+
refundedAsStoreCredit?: RefundedAsStoreCredit;
|
|
2867
|
+
/** Details of a pending payment. */
|
|
2868
|
+
paymentPending?: PaymentPending;
|
|
2869
|
+
/** Details of a canceled payment. */
|
|
2870
|
+
paymentCanceled?: PaymentCanceled;
|
|
2871
|
+
/** Details of a declined payment. */
|
|
2872
|
+
paymentDeclined?: PaymentDeclined;
|
|
2873
|
+
/** Receipt was added for associated payment. */
|
|
2874
|
+
receiptCreated?: ReceiptCreated;
|
|
2875
|
+
/** Receipt sent to customer. */
|
|
2876
|
+
receiptSent?: ReceiptSent;
|
|
2877
|
+
/** Order received a chargeback for one of its' payments. */
|
|
2878
|
+
chargebackCreated?: ChargebackCreated;
|
|
2879
|
+
/** Chargeback reversed for one of the order's payments. */
|
|
2880
|
+
chargebackReversed?: ChargebackReversed;
|
|
2787
2881
|
}
|
|
2788
2882
|
interface CustomActivity {
|
|
2789
2883
|
/**
|
|
@@ -3355,44 +3449,139 @@ interface ChargebackReversed {
|
|
|
3355
3449
|
paymentDetails?: RegularPayment;
|
|
3356
3450
|
}
|
|
3357
3451
|
declare enum ActivityType {
|
|
3452
|
+
/** Order was refunded, either partially or fully. */
|
|
3358
3453
|
ORDER_REFUNDED = "ORDER_REFUNDED",
|
|
3454
|
+
/** New order was created and placed. */
|
|
3359
3455
|
ORDER_PLACED = "ORDER_PLACED",
|
|
3456
|
+
/** Order payment was completed and confirmed. */
|
|
3360
3457
|
ORDER_PAID = "ORDER_PAID",
|
|
3458
|
+
/** Order items were marked as fulfilled (shipped or ready for pickup). */
|
|
3361
3459
|
ORDER_FULFILLED = "ORDER_FULFILLED",
|
|
3460
|
+
/** Order fulfillment status was changed to not fulfilled. */
|
|
3362
3461
|
ORDER_NOT_FULFILLED = "ORDER_NOT_FULFILLED",
|
|
3462
|
+
/** Order was canceled by merchant or customer. */
|
|
3363
3463
|
ORDER_CANCELED = "ORDER_CANCELED",
|
|
3464
|
+
/** Download link was sent for digital items in the order. */
|
|
3364
3465
|
DOWNLOAD_LINK_SENT = "DOWNLOAD_LINK_SENT",
|
|
3466
|
+
/** Shipping tracking number was added to the order. */
|
|
3365
3467
|
TRACKING_NUMBER_ADDED = "TRACKING_NUMBER_ADDED",
|
|
3468
|
+
/** Existing shipping tracking number was modified. */
|
|
3366
3469
|
TRACKING_NUMBER_EDITED = "TRACKING_NUMBER_EDITED",
|
|
3470
|
+
/** Tracking link for shipment was added to the order. */
|
|
3367
3471
|
TRACKING_LINK_ADDED = "TRACKING_LINK_ADDED",
|
|
3472
|
+
/** Email confirming shipment was sent to the customer. */
|
|
3368
3473
|
SHIPPING_CONFIRMATION_EMAIL_SENT = "SHIPPING_CONFIRMATION_EMAIL_SENT",
|
|
3474
|
+
/** Invoice document was added to the order. */
|
|
3369
3475
|
INVOICE_ADDED = "INVOICE_ADDED",
|
|
3476
|
+
/** Invoice was removed from the order. */
|
|
3370
3477
|
INVOICE_REMOVED = "INVOICE_REMOVED",
|
|
3478
|
+
/** Invoice was sent to the customer via email. */
|
|
3371
3479
|
INVOICE_SENT = "INVOICE_SENT",
|
|
3480
|
+
/** Notification email was sent to the order fulfiller. */
|
|
3372
3481
|
FULFILLER_EMAIL_SENT = "FULFILLER_EMAIL_SENT",
|
|
3482
|
+
/** Order's shipping address was modified. */
|
|
3373
3483
|
SHIPPING_ADDRESS_EDITED = "SHIPPING_ADDRESS_EDITED",
|
|
3484
|
+
/** Order's contact email address was changed. */
|
|
3374
3485
|
EMAIL_EDITED = "EMAIL_EDITED",
|
|
3486
|
+
/** Email notification for pickup readiness was sent. */
|
|
3375
3487
|
PICKUP_READY_EMAIL_SENT = "PICKUP_READY_EMAIL_SENT",
|
|
3488
|
+
/** Custom activity created by a third-party application. */
|
|
3376
3489
|
CUSTOM_ACTIVITY = "CUSTOM_ACTIVITY",
|
|
3490
|
+
/** Comment added to the order by a merchant. */
|
|
3377
3491
|
MERCHANT_COMMENT = "MERCHANT_COMMENT",
|
|
3492
|
+
/** Order was created as a result of an exchange. */
|
|
3378
3493
|
ORDER_CREATED_FROM_EXCHANGE = "ORDER_CREATED_FROM_EXCHANGE",
|
|
3494
|
+
/** New exchange order was created from this order. */
|
|
3379
3495
|
NEW_EXCHANGE_ORDER_CREATED = "NEW_EXCHANGE_ORDER_CREATED",
|
|
3496
|
+
/** Partial payment was received for the order. */
|
|
3380
3497
|
ORDER_PARTIALLY_PAID = "ORDER_PARTIALLY_PAID",
|
|
3498
|
+
/** Changes were applied to a draft order. */
|
|
3381
3499
|
DRAFT_ORDER_CHANGES_APPLIED = "DRAFT_ORDER_CHANGES_APPLIED",
|
|
3500
|
+
/** Payment method was saved for future use. */
|
|
3382
3501
|
SAVED_PAYMENT_METHOD = "SAVED_PAYMENT_METHOD",
|
|
3383
|
-
/**
|
|
3502
|
+
/**
|
|
3503
|
+
* Payment was authorized but not yet captured.
|
|
3504
|
+
* @documentationMaturity preview
|
|
3505
|
+
*/
|
|
3506
|
+
AUTHORIZED_PAYMENT_CREATED = "AUTHORIZED_PAYMENT_CREATED",
|
|
3507
|
+
/**
|
|
3508
|
+
* Previously authorized payment was captured.
|
|
3509
|
+
* @documentationMaturity preview
|
|
3510
|
+
*/
|
|
3511
|
+
AUTHORIZED_PAYMENT_CAPTURED = "AUTHORIZED_PAYMENT_CAPTURED",
|
|
3512
|
+
/**
|
|
3513
|
+
* Previously authorized payment was voided.
|
|
3514
|
+
* @documentationMaturity preview
|
|
3515
|
+
*/
|
|
3516
|
+
AUTHORIZED_PAYMENT_VOIDED = "AUTHORIZED_PAYMENT_VOIDED",
|
|
3517
|
+
/**
|
|
3518
|
+
* Refund process was initiated.
|
|
3519
|
+
* @documentationMaturity preview
|
|
3520
|
+
*/
|
|
3521
|
+
REFUND_INITIATED = "REFUND_INITIATED",
|
|
3522
|
+
/**
|
|
3523
|
+
* Payment was successfully refunded.
|
|
3524
|
+
* @documentationMaturity preview
|
|
3525
|
+
*/
|
|
3526
|
+
PAYMENT_REFUNDED = "PAYMENT_REFUNDED",
|
|
3527
|
+
/**
|
|
3528
|
+
* Attempt to refund payment failed.
|
|
3529
|
+
* @documentationMaturity preview
|
|
3530
|
+
*/
|
|
3531
|
+
PAYMENT_REFUND_FAILED = "PAYMENT_REFUND_FAILED",
|
|
3532
|
+
/**
|
|
3533
|
+
* Refund was issued as store credit.
|
|
3534
|
+
* @documentationMaturity preview
|
|
3535
|
+
*/
|
|
3536
|
+
REFUNDED_AS_STORE_CREDIT = "REFUNDED_AS_STORE_CREDIT",
|
|
3537
|
+
/**
|
|
3538
|
+
* Payment is awaiting processing or confirmation.
|
|
3539
|
+
* @documentationMaturity preview
|
|
3540
|
+
*/
|
|
3384
3541
|
PAYMENT_PENDING = "PAYMENT_PENDING",
|
|
3385
|
-
/**
|
|
3542
|
+
/**
|
|
3543
|
+
* Payment was canceled before completion.
|
|
3544
|
+
* @documentationMaturity preview
|
|
3545
|
+
*/
|
|
3386
3546
|
PAYMENT_CANCELED = "PAYMENT_CANCELED",
|
|
3387
|
-
/**
|
|
3547
|
+
/**
|
|
3548
|
+
* Payment was declined by payment provider.
|
|
3549
|
+
* @documentationMaturity preview
|
|
3550
|
+
*/
|
|
3388
3551
|
PAYMENT_DECLINED = "PAYMENT_DECLINED",
|
|
3389
|
-
/**
|
|
3552
|
+
/**
|
|
3553
|
+
* Order is awaiting approval or processing.
|
|
3554
|
+
* @documentationMaturity preview
|
|
3555
|
+
*/
|
|
3390
3556
|
ORDER_PENDING = "ORDER_PENDING",
|
|
3391
|
-
/**
|
|
3392
|
-
|
|
3557
|
+
/**
|
|
3558
|
+
* Order was rejected by merchant.
|
|
3559
|
+
* @documentationMaturity preview
|
|
3560
|
+
*/
|
|
3561
|
+
ORDER_REJECTED = "ORDER_REJECTED",
|
|
3562
|
+
/**
|
|
3563
|
+
* Receipt was generated for a payment.
|
|
3564
|
+
* @documentationMaturity preview
|
|
3565
|
+
*/
|
|
3566
|
+
RECEIPT_CREATED = "RECEIPT_CREATED",
|
|
3567
|
+
/**
|
|
3568
|
+
* Receipt was sent to the customer.
|
|
3569
|
+
* @documentationMaturity preview
|
|
3570
|
+
*/
|
|
3571
|
+
RECEIPT_SENT = "RECEIPT_SENT",
|
|
3572
|
+
/**
|
|
3573
|
+
* Chargeback was created for one of the order's payments.
|
|
3574
|
+
* @documentationMaturity preview
|
|
3575
|
+
*/
|
|
3576
|
+
CHARGEBACK_CREATED = "CHARGEBACK_CREATED",
|
|
3577
|
+
/**
|
|
3578
|
+
* Chargeback was resolved in merchant's favor.
|
|
3579
|
+
* @documentationMaturity preview
|
|
3580
|
+
*/
|
|
3581
|
+
CHARGEBACK_REVERSED = "CHARGEBACK_REVERSED"
|
|
3393
3582
|
}
|
|
3394
3583
|
/** @enumType */
|
|
3395
|
-
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';
|
|
3584
|
+
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';
|
|
3396
3585
|
declare enum AttributionSource {
|
|
3397
3586
|
UNSPECIFIED = "UNSPECIFIED",
|
|
3398
3587
|
FACEBOOK_ADS = "FACEBOOK_ADS"
|
|
@@ -3492,10 +3681,12 @@ declare enum ChannelType {
|
|
|
3492
3681
|
/** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */
|
|
3493
3682
|
TIKTOK = "TIKTOK",
|
|
3494
3683
|
/** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */
|
|
3495
|
-
FAIRE_COM = "FAIRE_COM"
|
|
3684
|
+
FAIRE_COM = "FAIRE_COM",
|
|
3685
|
+
/** PayPal Agentic Checkout sales channel. */
|
|
3686
|
+
PAYPAL_AGENTIC_CHECKOUT = "PAYPAL_AGENTIC_CHECKOUT"
|
|
3496
3687
|
}
|
|
3497
3688
|
/** @enumType */
|
|
3498
|
-
type ChannelTypeWithLiterals = ChannelType | 'UNSPECIFIED' | 'WEB' | 'POS' | 'EBAY' | 'AMAZON' | 'OTHER_PLATFORM' | 'WIX_APP_STORE' | 'WIX_INVOICES' | 'BACKOFFICE_MERCHANT' | 'WISH' | 'CLASS_PASS' | 'GLOBAL_E' | 'FACEBOOK' | 'ETSY' | 'TIKTOK' | 'FAIRE_COM';
|
|
3689
|
+
type ChannelTypeWithLiterals = ChannelType | 'UNSPECIFIED' | 'WEB' | 'POS' | 'EBAY' | 'AMAZON' | 'OTHER_PLATFORM' | 'WIX_APP_STORE' | 'WIX_INVOICES' | 'BACKOFFICE_MERCHANT' | 'WISH' | 'CLASS_PASS' | 'GLOBAL_E' | 'FACEBOOK' | 'ETSY' | 'TIKTOK' | 'FAIRE_COM' | 'PAYPAL_AGENTIC_CHECKOUT';
|
|
3499
3690
|
interface CustomField {
|
|
3500
3691
|
/** Custom field value. */
|
|
3501
3692
|
value?: any;
|
|
@@ -3535,11 +3726,26 @@ interface V1BalanceSummary {
|
|
|
3535
3726
|
* @readonly
|
|
3536
3727
|
*/
|
|
3537
3728
|
authorized?: Price;
|
|
3729
|
+
/**
|
|
3730
|
+
* Sum of all pending refund transactions.
|
|
3731
|
+
* @readonly
|
|
3732
|
+
*/
|
|
3733
|
+
pendingRefund?: Price;
|
|
3538
3734
|
/**
|
|
3539
3735
|
* Sum of all pending transactions.
|
|
3540
3736
|
* @readonly
|
|
3541
3737
|
*/
|
|
3542
3738
|
pending?: Price;
|
|
3739
|
+
/**
|
|
3740
|
+
* Sum of all transaction chargebacks.
|
|
3741
|
+
* @readonly
|
|
3742
|
+
*/
|
|
3743
|
+
chargeback?: Price;
|
|
3744
|
+
/**
|
|
3745
|
+
* Sum of all chargeback reversals.
|
|
3746
|
+
* @readonly
|
|
3747
|
+
*/
|
|
3748
|
+
chargebackReversal?: Price;
|
|
3543
3749
|
}
|
|
3544
3750
|
interface FulfillmentStatusesAggregate {
|
|
3545
3751
|
/** Unique string values based on Fulfillment entities statuses */
|
|
@@ -4609,7 +4815,7 @@ declare function getOrderDraftabilityStatus(orderId: string): Promise<NonNullabl
|
|
|
4609
4815
|
* @applicableIdentity APP
|
|
4610
4816
|
* @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CommitDraftOrder
|
|
4611
4817
|
*/
|
|
4612
|
-
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> & {
|
|
4818
|
+
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> & {
|
|
4613
4819
|
__applicationErrorsType?: CommitDraftOrderApplicationErrors;
|
|
4614
4820
|
}>;
|
|
4615
4821
|
interface CommitDraftOrderOptions {
|
|
@@ -4637,7 +4843,7 @@ interface CommitDraftOrderOptions {
|
|
|
4637
4843
|
* @applicableIdentity APP
|
|
4638
4844
|
* @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateOrderFromDraft
|
|
4639
4845
|
*/
|
|
4640
|
-
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> & {
|
|
4846
|
+
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> & {
|
|
4641
4847
|
__applicationErrorsType?: CreateOrderFromDraftApplicationErrors;
|
|
4642
4848
|
}>;
|
|
4643
4849
|
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) => {
|
|
@@ -3289,6 +3300,7 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
|
3289
3300
|
ChannelType2["ETSY"] = "ETSY";
|
|
3290
3301
|
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
3291
3302
|
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
3303
|
+
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
3292
3304
|
return ChannelType2;
|
|
3293
3305
|
})(ChannelType || {});
|
|
3294
3306
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|