@wix/auto_sdk_ecom_checkout 1.0.12 → 1.0.14
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/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
- package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +14 -14
- package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -503
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +66 -495
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +38 -0
- package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
- package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +14 -14
- package/build/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -503
- package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +66 -495
- package/build/es/src/ecom-v1-checkout-checkout.universal.js +38 -0
- package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +18 -18
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -570
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +76 -566
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js +38 -0
- package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
- package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +18 -18
- package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
- package/build/internal/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -570
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +76 -566
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js +38 -0
- package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
1
2
|
export interface Checkout {
|
|
2
3
|
/**
|
|
3
4
|
* Checkout ID.
|
|
@@ -3518,556 +3519,6 @@ export declare enum WebhookIdentityType {
|
|
|
3518
3519
|
WIX_USER = "WIX_USER",
|
|
3519
3520
|
APP = "APP"
|
|
3520
3521
|
}
|
|
3521
|
-
interface CatalogReferenceNonNullableFields {
|
|
3522
|
-
catalogItemId: string;
|
|
3523
|
-
appId: string;
|
|
3524
|
-
}
|
|
3525
|
-
interface ProductNameNonNullableFields {
|
|
3526
|
-
original: string;
|
|
3527
|
-
}
|
|
3528
|
-
interface MultiCurrencyPriceNonNullableFields {
|
|
3529
|
-
amount: string;
|
|
3530
|
-
convertedAmount: string;
|
|
3531
|
-
formattedAmount: string;
|
|
3532
|
-
formattedConvertedAmount: string;
|
|
3533
|
-
}
|
|
3534
|
-
interface TaxRateBreakdownNonNullableFields {
|
|
3535
|
-
name: string;
|
|
3536
|
-
rate: string;
|
|
3537
|
-
tax?: MultiCurrencyPriceNonNullableFields;
|
|
3538
|
-
exemptAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3539
|
-
exemptionIds: number[];
|
|
3540
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3541
|
-
}
|
|
3542
|
-
interface TaxBreakdownNonNullableFields {
|
|
3543
|
-
nonTaxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3544
|
-
taxAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3545
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3546
|
-
jurisdictionType: JurisdictionType;
|
|
3547
|
-
}
|
|
3548
|
-
interface ItemTaxFullDetailsNonNullableFields {
|
|
3549
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3550
|
-
taxRate: string;
|
|
3551
|
-
totalTax?: MultiCurrencyPriceNonNullableFields;
|
|
3552
|
-
rateBreakdown: TaxRateBreakdownNonNullableFields[];
|
|
3553
|
-
exemptAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3554
|
-
taxBreakdown: TaxBreakdownNonNullableFields[];
|
|
3555
|
-
}
|
|
3556
|
-
interface PlainTextValueNonNullableFields {
|
|
3557
|
-
original: string;
|
|
3558
|
-
}
|
|
3559
|
-
interface ColorNonNullableFields {
|
|
3560
|
-
original: string;
|
|
3561
|
-
}
|
|
3562
|
-
interface DescriptionLineNameNonNullableFields {
|
|
3563
|
-
original: string;
|
|
3564
|
-
}
|
|
3565
|
-
interface DescriptionLineNonNullableFields {
|
|
3566
|
-
plainText?: PlainTextValueNonNullableFields;
|
|
3567
|
-
colorInfo?: ColorNonNullableFields;
|
|
3568
|
-
plainTextValue?: PlainTextValueNonNullableFields;
|
|
3569
|
-
color: string;
|
|
3570
|
-
name?: DescriptionLineNameNonNullableFields;
|
|
3571
|
-
lineType: DescriptionLineType;
|
|
3572
|
-
}
|
|
3573
|
-
interface ItemAvailabilityInfoNonNullableFields {
|
|
3574
|
-
status: ItemAvailabilityStatus;
|
|
3575
|
-
}
|
|
3576
|
-
interface PhysicalPropertiesNonNullableFields {
|
|
3577
|
-
shippable: boolean;
|
|
3578
|
-
}
|
|
3579
|
-
interface GroupNonNullableFields {
|
|
3580
|
-
name: string;
|
|
3581
|
-
}
|
|
3582
|
-
interface ScopeNonNullableFields {
|
|
3583
|
-
namespace: string;
|
|
3584
|
-
group?: GroupNonNullableFields;
|
|
3585
|
-
}
|
|
3586
|
-
interface ItemTypeNonNullableFields {
|
|
3587
|
-
preset: ItemTypeItemType;
|
|
3588
|
-
custom: string;
|
|
3589
|
-
}
|
|
3590
|
-
interface FreeTrialPeriodNonNullableFields {
|
|
3591
|
-
frequency: SubscriptionFrequency;
|
|
3592
|
-
interval: number;
|
|
3593
|
-
}
|
|
3594
|
-
interface SubscriptionSettingsNonNullableFields {
|
|
3595
|
-
frequency: SubscriptionFrequency;
|
|
3596
|
-
autoRenewal: boolean;
|
|
3597
|
-
/** @internal */
|
|
3598
|
-
enableCustomerCancellation: boolean;
|
|
3599
|
-
/** @internal */
|
|
3600
|
-
freeTrialPeriod?: FreeTrialPeriodNonNullableFields;
|
|
3601
|
-
}
|
|
3602
|
-
interface TitleNonNullableFields {
|
|
3603
|
-
original: string;
|
|
3604
|
-
}
|
|
3605
|
-
interface DescriptionNonNullableFields {
|
|
3606
|
-
original: string;
|
|
3607
|
-
}
|
|
3608
|
-
interface SubscriptionOptionInfoNonNullableFields {
|
|
3609
|
-
subscriptionSettings?: SubscriptionSettingsNonNullableFields;
|
|
3610
|
-
title?: TitleNonNullableFields;
|
|
3611
|
-
description?: DescriptionNonNullableFields;
|
|
3612
|
-
}
|
|
3613
|
-
interface SecuredMediaNonNullableFields {
|
|
3614
|
-
_id: string;
|
|
3615
|
-
fileName: string;
|
|
3616
|
-
fileType: FileType;
|
|
3617
|
-
}
|
|
3618
|
-
interface PriceDescriptionNonNullableFields {
|
|
3619
|
-
original: string;
|
|
3620
|
-
}
|
|
3621
|
-
interface PaymentOptionNonNullableFields {
|
|
3622
|
-
value: PaymentOptionType;
|
|
3623
|
-
}
|
|
3624
|
-
interface CatalogOverrideFieldsNonNullableFields {
|
|
3625
|
-
productName?: ProductNameNonNullableFields;
|
|
3626
|
-
descriptionLines: DescriptionLineNonNullableFields[];
|
|
3627
|
-
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
3628
|
-
image: string;
|
|
3629
|
-
paymentOption?: PaymentOptionNonNullableFields;
|
|
3630
|
-
}
|
|
3631
|
-
interface TaxableAddressNonNullableFields {
|
|
3632
|
-
addressType: TaxableAddressType;
|
|
3633
|
-
}
|
|
3634
|
-
interface PolicyNonNullableFields {
|
|
3635
|
-
content: string;
|
|
3636
|
-
}
|
|
3637
|
-
interface TranslatableStringNonNullableFields {
|
|
3638
|
-
original: string;
|
|
3639
|
-
}
|
|
3640
|
-
interface ItemModifierNonNullableFields {
|
|
3641
|
-
_id: string;
|
|
3642
|
-
label?: TranslatableStringNonNullableFields;
|
|
3643
|
-
details?: TranslatableStringNonNullableFields;
|
|
3644
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3645
|
-
}
|
|
3646
|
-
interface ModifierGroupNonNullableFields {
|
|
3647
|
-
_id: string;
|
|
3648
|
-
name?: TranslatableStringNonNullableFields;
|
|
3649
|
-
modifiers: ItemModifierNonNullableFields[];
|
|
3650
|
-
}
|
|
3651
|
-
interface LineItemNonNullableFields {
|
|
3652
|
-
quantity: number;
|
|
3653
|
-
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3654
|
-
productName?: ProductNameNonNullableFields;
|
|
3655
|
-
url: string;
|
|
3656
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3657
|
-
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
3658
|
-
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
3659
|
-
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
3660
|
-
totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3661
|
-
totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3662
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3663
|
-
discount?: MultiCurrencyPriceNonNullableFields;
|
|
3664
|
-
descriptionLines: DescriptionLineNonNullableFields[];
|
|
3665
|
-
media: string;
|
|
3666
|
-
availability?: ItemAvailabilityInfoNonNullableFields;
|
|
3667
|
-
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
3668
|
-
/** @internal */
|
|
3669
|
-
couponScopes: ScopeNonNullableFields[];
|
|
3670
|
-
itemType?: ItemTypeNonNullableFields;
|
|
3671
|
-
subscriptionOptionInfo?: SubscriptionOptionInfoNonNullableFields;
|
|
3672
|
-
digitalFile?: SecuredMediaNonNullableFields;
|
|
3673
|
-
paymentOption: PaymentOptionType;
|
|
3674
|
-
priceDescription?: PriceDescriptionNonNullableFields;
|
|
3675
|
-
depositAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3676
|
-
customLineItem: boolean;
|
|
3677
|
-
catalogOverrideFields?: CatalogOverrideFieldsNonNullableFields;
|
|
3678
|
-
/** @internal */
|
|
3679
|
-
priceUndetermined: boolean;
|
|
3680
|
-
/** @internal */
|
|
3681
|
-
fixedQuantity: boolean;
|
|
3682
|
-
savePaymentMethod: boolean;
|
|
3683
|
-
/** @internal */
|
|
3684
|
-
taxableAddress?: TaxableAddressNonNullableFields;
|
|
3685
|
-
/** @internal */
|
|
3686
|
-
policies: PolicyNonNullableFields[];
|
|
3687
|
-
/** @internal */
|
|
3688
|
-
membersOnly: boolean;
|
|
3689
|
-
/** @internal */
|
|
3690
|
-
modifierGroups: ModifierGroupNonNullableFields[];
|
|
3691
|
-
/** @internal */
|
|
3692
|
-
modifiersTotalPrice?: MultiCurrencyPriceNonNullableFields;
|
|
3693
|
-
}
|
|
3694
|
-
interface StreetAddressNonNullableFields {
|
|
3695
|
-
number: string;
|
|
3696
|
-
name: string;
|
|
3697
|
-
apt: string;
|
|
3698
|
-
}
|
|
3699
|
-
interface ApiAddressNonNullableFields {
|
|
3700
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
3701
|
-
}
|
|
3702
|
-
interface CommonVatIdNonNullableFields {
|
|
3703
|
-
_id: string;
|
|
3704
|
-
type: CommonVatType;
|
|
3705
|
-
}
|
|
3706
|
-
interface FullAddressContactDetailsNonNullableFields {
|
|
3707
|
-
vatId?: CommonVatIdNonNullableFields;
|
|
3708
|
-
}
|
|
3709
|
-
interface AddressWithContactNonNullableFields {
|
|
3710
|
-
address?: ApiAddressNonNullableFields;
|
|
3711
|
-
contactDetails?: FullAddressContactDetailsNonNullableFields;
|
|
3712
|
-
}
|
|
3713
|
-
interface PickupDetailsNonNullableFields {
|
|
3714
|
-
address?: ApiAddressNonNullableFields;
|
|
3715
|
-
businessLocation: boolean;
|
|
3716
|
-
pickupMethod: PickupMethod;
|
|
3717
|
-
}
|
|
3718
|
-
interface DeliveryLogisticsNonNullableFields {
|
|
3719
|
-
pickupDetails?: PickupDetailsNonNullableFields;
|
|
3720
|
-
}
|
|
3721
|
-
interface SelectedCarrierServiceOptionPricesNonNullableFields {
|
|
3722
|
-
totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3723
|
-
totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3724
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3725
|
-
totalDiscount?: MultiCurrencyPriceNonNullableFields;
|
|
3726
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3727
|
-
}
|
|
3728
|
-
interface SelectedCarrierServiceOptionOtherChargeNonNullableFields {
|
|
3729
|
-
type: ChargeType;
|
|
3730
|
-
cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
|
|
3731
|
-
}
|
|
3732
|
-
interface CarrierNonNullableFields {
|
|
3733
|
-
code: string;
|
|
3734
|
-
}
|
|
3735
|
-
interface ApplicableLineItemsNonNullableFields {
|
|
3736
|
-
lineItemIds: string[];
|
|
3737
|
-
}
|
|
3738
|
-
interface DeliveryAllocationNonNullableFields {
|
|
3739
|
-
deliveryCarrier?: CarrierNonNullableFields;
|
|
3740
|
-
applicableLineItems?: ApplicableLineItemsNonNullableFields;
|
|
3741
|
-
}
|
|
3742
|
-
interface SelectedCarrierServiceOptionNonNullableFields {
|
|
3743
|
-
code: string;
|
|
3744
|
-
title: string;
|
|
3745
|
-
logistics?: DeliveryLogisticsNonNullableFields;
|
|
3746
|
-
cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
|
|
3747
|
-
requestedShippingOption: boolean;
|
|
3748
|
-
otherCharges: SelectedCarrierServiceOptionOtherChargeNonNullableFields[];
|
|
3749
|
-
deliveryAllocations: DeliveryAllocationNonNullableFields[];
|
|
3750
|
-
}
|
|
3751
|
-
interface ShippingRegionNonNullableFields {
|
|
3752
|
-
_id: string;
|
|
3753
|
-
name: string;
|
|
3754
|
-
}
|
|
3755
|
-
interface OtherChargeNonNullableFields {
|
|
3756
|
-
type: ChargeType;
|
|
3757
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3758
|
-
}
|
|
3759
|
-
interface ShippingPriceNonNullableFields {
|
|
3760
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3761
|
-
otherCharges: OtherChargeNonNullableFields[];
|
|
3762
|
-
}
|
|
3763
|
-
interface ShippingOptionNonNullableFields {
|
|
3764
|
-
code: string;
|
|
3765
|
-
title: string;
|
|
3766
|
-
logistics?: DeliveryLogisticsNonNullableFields;
|
|
3767
|
-
cost?: ShippingPriceNonNullableFields;
|
|
3768
|
-
deliveryAllocations: DeliveryAllocationNonNullableFields[];
|
|
3769
|
-
}
|
|
3770
|
-
interface CarrierServiceOptionNonNullableFields {
|
|
3771
|
-
carrierId: string;
|
|
3772
|
-
shippingOptions: ShippingOptionNonNullableFields[];
|
|
3773
|
-
}
|
|
3774
|
-
interface ShippingInfoNonNullableFields {
|
|
3775
|
-
shippingDestination?: AddressWithContactNonNullableFields;
|
|
3776
|
-
selectedCarrierServiceOption?: SelectedCarrierServiceOptionNonNullableFields;
|
|
3777
|
-
region?: ShippingRegionNonNullableFields;
|
|
3778
|
-
carrierServiceOptions: CarrierServiceOptionNonNullableFields[];
|
|
3779
|
-
}
|
|
3780
|
-
interface BuyerInfoNonNullableFields {
|
|
3781
|
-
visitorId: string;
|
|
3782
|
-
memberId: string;
|
|
3783
|
-
openAccess: boolean;
|
|
3784
|
-
}
|
|
3785
|
-
interface PriceSummaryNonNullableFields {
|
|
3786
|
-
subtotal?: MultiCurrencyPriceNonNullableFields;
|
|
3787
|
-
shipping?: MultiCurrencyPriceNonNullableFields;
|
|
3788
|
-
tax?: MultiCurrencyPriceNonNullableFields;
|
|
3789
|
-
discount?: MultiCurrencyPriceNonNullableFields;
|
|
3790
|
-
total?: MultiCurrencyPriceNonNullableFields;
|
|
3791
|
-
additionalFees?: MultiCurrencyPriceNonNullableFields;
|
|
3792
|
-
}
|
|
3793
|
-
interface ApplicationErrorNonNullableFields {
|
|
3794
|
-
code: string;
|
|
3795
|
-
description: string;
|
|
3796
|
-
}
|
|
3797
|
-
interface FieldViolationNonNullableFields {
|
|
3798
|
-
field: string;
|
|
3799
|
-
description: string;
|
|
3800
|
-
violatedRule: RuleType;
|
|
3801
|
-
}
|
|
3802
|
-
interface ValidationErrorNonNullableFields {
|
|
3803
|
-
fieldViolations: FieldViolationNonNullableFields[];
|
|
3804
|
-
}
|
|
3805
|
-
interface DetailsNonNullableFields {
|
|
3806
|
-
applicationError?: ApplicationErrorNonNullableFields;
|
|
3807
|
-
validationError?: ValidationErrorNonNullableFields;
|
|
3808
|
-
}
|
|
3809
|
-
interface CarrierErrorNonNullableFields {
|
|
3810
|
-
carrierId: string;
|
|
3811
|
-
error?: DetailsNonNullableFields;
|
|
3812
|
-
}
|
|
3813
|
-
interface CarrierErrorsNonNullableFields {
|
|
3814
|
-
errors: CarrierErrorNonNullableFields[];
|
|
3815
|
-
}
|
|
3816
|
-
interface CalculationErrorsNonNullableFields {
|
|
3817
|
-
generalShippingCalculationError?: DetailsNonNullableFields;
|
|
3818
|
-
carrierErrors?: CarrierErrorsNonNullableFields;
|
|
3819
|
-
taxCalculationError?: DetailsNonNullableFields;
|
|
3820
|
-
couponCalculationError?: DetailsNonNullableFields;
|
|
3821
|
-
giftCardCalculationError?: DetailsNonNullableFields;
|
|
3822
|
-
orderValidationErrors: ApplicationErrorNonNullableFields[];
|
|
3823
|
-
membershipError?: DetailsNonNullableFields;
|
|
3824
|
-
discountsCalculationError?: DetailsNonNullableFields;
|
|
3825
|
-
}
|
|
3826
|
-
interface GiftCardNonNullableFields {
|
|
3827
|
-
_id: string;
|
|
3828
|
-
obfuscatedCode: string;
|
|
3829
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3830
|
-
appId: string;
|
|
3831
|
-
}
|
|
3832
|
-
interface CouponNonNullableFields {
|
|
3833
|
-
_id: string;
|
|
3834
|
-
code: string;
|
|
3835
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3836
|
-
name: string;
|
|
3837
|
-
couponType: string;
|
|
3838
|
-
}
|
|
3839
|
-
interface MerchantDiscountNonNullableFields {
|
|
3840
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3841
|
-
}
|
|
3842
|
-
interface DiscountRuleNameNonNullableFields {
|
|
3843
|
-
original: string;
|
|
3844
|
-
}
|
|
3845
|
-
interface DiscountRuleNonNullableFields {
|
|
3846
|
-
_id: string;
|
|
3847
|
-
name?: DiscountRuleNameNonNullableFields;
|
|
3848
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3849
|
-
}
|
|
3850
|
-
interface LineItemDiscountNonNullableFields {
|
|
3851
|
-
_id: string;
|
|
3852
|
-
totalDiscountAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3853
|
-
}
|
|
3854
|
-
interface AppliedDiscountNonNullableFields {
|
|
3855
|
-
coupon?: CouponNonNullableFields;
|
|
3856
|
-
merchantDiscount?: MerchantDiscountNonNullableFields;
|
|
3857
|
-
discountRule?: DiscountRuleNonNullableFields;
|
|
3858
|
-
discountType: DiscountType;
|
|
3859
|
-
lineItemIds: string[];
|
|
3860
|
-
lineItemDiscounts: LineItemDiscountNonNullableFields[];
|
|
3861
|
-
}
|
|
3862
|
-
interface CustomFieldNonNullableFields {
|
|
3863
|
-
title: string;
|
|
3864
|
-
}
|
|
3865
|
-
interface AutoTaxFallbackCalculationDetailsNonNullableFields {
|
|
3866
|
-
fallbackReason: FallbackReason;
|
|
3867
|
-
error?: ApplicationErrorNonNullableFields;
|
|
3868
|
-
}
|
|
3869
|
-
interface TaxCalculationDetailsNonNullableFields {
|
|
3870
|
-
manualRateReason: ManualCalculationReason;
|
|
3871
|
-
autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetailsNonNullableFields;
|
|
3872
|
-
rateType: RateType;
|
|
3873
|
-
}
|
|
3874
|
-
interface AggregatedTaxBreakdownNonNullableFields {
|
|
3875
|
-
taxName: string;
|
|
3876
|
-
taxType: string;
|
|
3877
|
-
jurisdiction: string;
|
|
3878
|
-
jurisdictionTypeEnum: JurisdictionType;
|
|
3879
|
-
rate: string;
|
|
3880
|
-
aggregatedTaxAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3881
|
-
aggregatedTaxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3882
|
-
}
|
|
3883
|
-
interface TaxSummaryNonNullableFields {
|
|
3884
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3885
|
-
totalTax?: MultiCurrencyPriceNonNullableFields;
|
|
3886
|
-
manualTaxRate: string;
|
|
3887
|
-
calculationDetails?: TaxCalculationDetailsNonNullableFields;
|
|
3888
|
-
totalExempt?: MultiCurrencyPriceNonNullableFields;
|
|
3889
|
-
aggregatedTaxBreakdown: AggregatedTaxBreakdownNonNullableFields[];
|
|
3890
|
-
}
|
|
3891
|
-
interface CreatedByNonNullableFields {
|
|
3892
|
-
userId: string;
|
|
3893
|
-
memberId: string;
|
|
3894
|
-
visitorId: string;
|
|
3895
|
-
appId: string;
|
|
3896
|
-
}
|
|
3897
|
-
interface MembershipNameNonNullableFields {
|
|
3898
|
-
original: string;
|
|
3899
|
-
}
|
|
3900
|
-
interface MembershipPaymentCreditsNonNullableFields {
|
|
3901
|
-
total: number;
|
|
3902
|
-
remaining: number;
|
|
3903
|
-
}
|
|
3904
|
-
interface MembershipNonNullableFields {
|
|
3905
|
-
_id: string;
|
|
3906
|
-
appId: string;
|
|
3907
|
-
name?: MembershipNameNonNullableFields;
|
|
3908
|
-
lineItemIds: string[];
|
|
3909
|
-
credits?: MembershipPaymentCreditsNonNullableFields;
|
|
3910
|
-
}
|
|
3911
|
-
interface InvalidMembershipNonNullableFields {
|
|
3912
|
-
membership?: MembershipNonNullableFields;
|
|
3913
|
-
reason: string;
|
|
3914
|
-
}
|
|
3915
|
-
interface SelectedMembershipNonNullableFields {
|
|
3916
|
-
_id: string;
|
|
3917
|
-
appId: string;
|
|
3918
|
-
lineItemIds: string[];
|
|
3919
|
-
}
|
|
3920
|
-
interface SelectedMembershipsNonNullableFields {
|
|
3921
|
-
memberships: SelectedMembershipNonNullableFields[];
|
|
3922
|
-
}
|
|
3923
|
-
interface MembershipOptionsNonNullableFields {
|
|
3924
|
-
eligibleMemberships: MembershipNonNullableFields[];
|
|
3925
|
-
invalidMemberships: InvalidMembershipNonNullableFields[];
|
|
3926
|
-
selectedMemberships?: SelectedMembershipsNonNullableFields;
|
|
3927
|
-
}
|
|
3928
|
-
interface AdditionalFeeNonNullableFields {
|
|
3929
|
-
name: string;
|
|
3930
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3931
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3932
|
-
priceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3933
|
-
priceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3934
|
-
lineItemIds: string[];
|
|
3935
|
-
source: AdditionalFeeSource;
|
|
3936
|
-
}
|
|
3937
|
-
interface ConversionInfoNonNullableFields {
|
|
3938
|
-
siteCurrency: string;
|
|
3939
|
-
conversionRate: string;
|
|
3940
|
-
}
|
|
3941
|
-
interface OtherNonNullableFields {
|
|
3942
|
-
name: NameInOther;
|
|
3943
|
-
}
|
|
3944
|
-
interface TargetLineItemNonNullableFields {
|
|
3945
|
-
name: NameInLineItem;
|
|
3946
|
-
/** @internal */
|
|
3947
|
-
suggestedFix: SuggestedFix;
|
|
3948
|
-
}
|
|
3949
|
-
interface TargetNonNullableFields {
|
|
3950
|
-
other?: OtherNonNullableFields;
|
|
3951
|
-
lineItem?: TargetLineItemNonNullableFields;
|
|
3952
|
-
}
|
|
3953
|
-
interface ViolationNonNullableFields {
|
|
3954
|
-
severity: Severity;
|
|
3955
|
-
target?: TargetNonNullableFields;
|
|
3956
|
-
}
|
|
3957
|
-
interface CustomSettingsNonNullableFields {
|
|
3958
|
-
lockGiftCard: boolean;
|
|
3959
|
-
lockCouponCode: boolean;
|
|
3960
|
-
disabledPolicyAgreementCheckbox: boolean;
|
|
3961
|
-
disabledManualPayment: boolean;
|
|
3962
|
-
}
|
|
3963
|
-
interface CustomContentReferenceNonNullableFields {
|
|
3964
|
-
appId: string;
|
|
3965
|
-
componentId: string;
|
|
3966
|
-
}
|
|
3967
|
-
interface ExternalReferenceNonNullableFields {
|
|
3968
|
-
appId: string;
|
|
3969
|
-
}
|
|
3970
|
-
interface ChargeNonNullableFields {
|
|
3971
|
-
cycleFrom: number;
|
|
3972
|
-
priceSummary?: PriceSummaryNonNullableFields;
|
|
3973
|
-
}
|
|
3974
|
-
interface SubscriptionChargesNonNullableFields {
|
|
3975
|
-
lineItemIds: string[];
|
|
3976
|
-
charges: ChargeNonNullableFields[];
|
|
3977
|
-
}
|
|
3978
|
-
export interface CheckoutNonNullableFields {
|
|
3979
|
-
lineItems: LineItemNonNullableFields[];
|
|
3980
|
-
billingInfo?: AddressWithContactNonNullableFields;
|
|
3981
|
-
shippingInfo?: ShippingInfoNonNullableFields;
|
|
3982
|
-
buyerInfo?: BuyerInfoNonNullableFields;
|
|
3983
|
-
conversionCurrency: string;
|
|
3984
|
-
priceSummary?: PriceSummaryNonNullableFields;
|
|
3985
|
-
calculationErrors?: CalculationErrorsNonNullableFields;
|
|
3986
|
-
giftCard?: GiftCardNonNullableFields;
|
|
3987
|
-
appliedDiscounts: AppliedDiscountNonNullableFields[];
|
|
3988
|
-
customFields: CustomFieldNonNullableFields[];
|
|
3989
|
-
weightUnit: WeightUnit;
|
|
3990
|
-
taxSummary?: TaxSummaryNonNullableFields;
|
|
3991
|
-
currency: string;
|
|
3992
|
-
channelType: ChannelType;
|
|
3993
|
-
siteLanguage: string;
|
|
3994
|
-
buyerLanguage: string;
|
|
3995
|
-
completed: boolean;
|
|
3996
|
-
taxIncludedInPrice: boolean;
|
|
3997
|
-
createdBy?: CreatedByNonNullableFields;
|
|
3998
|
-
payNow?: PriceSummaryNonNullableFields;
|
|
3999
|
-
payLater?: PriceSummaryNonNullableFields;
|
|
4000
|
-
membershipOptions?: MembershipOptionsNonNullableFields;
|
|
4001
|
-
additionalFees: AdditionalFeeNonNullableFields[];
|
|
4002
|
-
conversionInfo?: ConversionInfoNonNullableFields;
|
|
4003
|
-
payNowTotalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
|
|
4004
|
-
violations: ViolationNonNullableFields[];
|
|
4005
|
-
totalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
|
|
4006
|
-
customSettings?: CustomSettingsNonNullableFields;
|
|
4007
|
-
customContentReference?: CustomContentReferenceNonNullableFields;
|
|
4008
|
-
externalReference?: ExternalReferenceNonNullableFields;
|
|
4009
|
-
/** @internal */
|
|
4010
|
-
payAfterFreeTrial?: PriceSummaryNonNullableFields;
|
|
4011
|
-
/** @internal */
|
|
4012
|
-
paymentRequired: boolean;
|
|
4013
|
-
/** @internal */
|
|
4014
|
-
subscriptionCharges: SubscriptionChargesNonNullableFields[];
|
|
4015
|
-
}
|
|
4016
|
-
export interface CreateCheckoutResponseNonNullableFields {
|
|
4017
|
-
checkout?: CheckoutNonNullableFields;
|
|
4018
|
-
}
|
|
4019
|
-
export interface GetCheckoutResponseNonNullableFields {
|
|
4020
|
-
checkout?: CheckoutNonNullableFields;
|
|
4021
|
-
}
|
|
4022
|
-
export interface GetCheckoutByCartIdResponseNonNullableFields {
|
|
4023
|
-
checkout?: CheckoutNonNullableFields;
|
|
4024
|
-
}
|
|
4025
|
-
export interface GetWixCheckoutURLResponseNonNullableFields {
|
|
4026
|
-
checkoutUrl: string;
|
|
4027
|
-
}
|
|
4028
|
-
export interface GetCheckoutURLResponseNonNullableFields {
|
|
4029
|
-
checkoutUrl: string;
|
|
4030
|
-
}
|
|
4031
|
-
export interface UpdateCheckoutResponseNonNullableFields {
|
|
4032
|
-
checkout?: CheckoutNonNullableFields;
|
|
4033
|
-
}
|
|
4034
|
-
export interface RemoveCouponResponseNonNullableFields {
|
|
4035
|
-
checkout?: CheckoutNonNullableFields;
|
|
4036
|
-
}
|
|
4037
|
-
export interface RemoveGiftCardResponseNonNullableFields {
|
|
4038
|
-
checkout?: CheckoutNonNullableFields;
|
|
4039
|
-
}
|
|
4040
|
-
export interface RemoveOverrideCheckoutUrlResponseNonNullableFields {
|
|
4041
|
-
checkout?: CheckoutNonNullableFields;
|
|
4042
|
-
}
|
|
4043
|
-
export interface AddToCheckoutResponseNonNullableFields {
|
|
4044
|
-
checkout?: CheckoutNonNullableFields;
|
|
4045
|
-
}
|
|
4046
|
-
export interface RemoveLineItemsResponseNonNullableFields {
|
|
4047
|
-
checkout?: CheckoutNonNullableFields;
|
|
4048
|
-
}
|
|
4049
|
-
export interface CreateOrderResponseNonNullableFields {
|
|
4050
|
-
orderId: string;
|
|
4051
|
-
subscriptionId: string;
|
|
4052
|
-
}
|
|
4053
|
-
export interface CreateOrderAndChargeResponseNonNullableFields {
|
|
4054
|
-
orderId: string;
|
|
4055
|
-
subscriptionId: string;
|
|
4056
|
-
}
|
|
4057
|
-
interface HeadersEntryNonNullableFields {
|
|
4058
|
-
key: string;
|
|
4059
|
-
value: string;
|
|
4060
|
-
}
|
|
4061
|
-
export interface RawHttpResponseNonNullableFields {
|
|
4062
|
-
body: Uint8Array;
|
|
4063
|
-
headers: HeadersEntryNonNullableFields[];
|
|
4064
|
-
}
|
|
4065
|
-
export interface UpdateLineItemsQuantityResponseNonNullableFields {
|
|
4066
|
-
checkout?: CheckoutNonNullableFields;
|
|
4067
|
-
}
|
|
4068
|
-
export interface GetCheckoutPaymentSettingsResponseNonNullableFields {
|
|
4069
|
-
blockedPaymentOptions: GetCheckoutPaymentSettingsResponsePaymentOption[];
|
|
4070
|
-
}
|
|
4071
3522
|
export interface BaseEventMetadata {
|
|
4072
3523
|
/**
|
|
4073
3524
|
* App instance ID.
|
|
@@ -4139,6 +3590,8 @@ export interface CheckoutCompletedEnvelope {
|
|
|
4139
3590
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4140
3591
|
* @permissionScope Manage eCommerce - all permissions
|
|
4141
3592
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3593
|
+
* @permissionScope Picasso private app mega scope
|
|
3594
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4142
3595
|
* @permissionScope Manage Orders
|
|
4143
3596
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4144
3597
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -4166,6 +3619,8 @@ export interface CheckoutCreatedEnvelope {
|
|
|
4166
3619
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4167
3620
|
* @permissionScope Manage eCommerce - all permissions
|
|
4168
3621
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3622
|
+
* @permissionScope Picasso private app mega scope
|
|
3623
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4169
3624
|
* @permissionScope Manage Orders
|
|
4170
3625
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4171
3626
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -4193,6 +3648,8 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
4193
3648
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4194
3649
|
* @permissionScope Manage eCommerce - all permissions
|
|
4195
3650
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3651
|
+
* @permissionScope Picasso private app mega scope
|
|
3652
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4196
3653
|
* @permissionScope Manage Orders
|
|
4197
3654
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4198
3655
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -4202,6 +3659,7 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
4202
3659
|
* @slug updated
|
|
4203
3660
|
*/
|
|
4204
3661
|
export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>): void;
|
|
3662
|
+
type CheckoutNonNullablePaths = `lineItems` | `lineItems.${number}.quantity` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.productName.original` | `lineItems.${number}.price.amount` | `lineItems.${number}.price.convertedAmount` | `lineItems.${number}.price.formattedAmount` | `lineItems.${number}.price.formattedConvertedAmount` | `lineItems.${number}.taxDetails.taxRate` | `lineItems.${number}.taxDetails.rateBreakdown` | `lineItems.${number}.taxDetails.rateBreakdown.${number}.name` | `lineItems.${number}.taxDetails.rateBreakdown.${number}.rate` | `lineItems.${number}.descriptionLines` | `lineItems.${number}.descriptionLines.${number}.plainText.original` | `lineItems.${number}.descriptionLines.${number}.colorInfo.original` | `lineItems.${number}.descriptionLines.${number}.name.original` | `lineItems.${number}.availability.status` | `lineItems.${number}.physicalProperties.shippable` | `lineItems.${number}.itemType.preset` | `lineItems.${number}.itemType.custom` | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency` | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal` | `lineItems.${number}.subscriptionOptionInfo.title.original` | `lineItems.${number}.subscriptionOptionInfo.description.original` | `lineItems.${number}.paymentOption` | `lineItems.${number}.priceDescription.original` | `lineItems.${number}.customLineItem` | `lineItems.${number}.catalogOverrideFields.descriptionLines` | `lineItems.${number}.catalogOverrideFields.paymentOption.value` | `lineItems.${number}.savePaymentMethod` | `billingInfo.address.streetAddress.number` | `billingInfo.address.streetAddress.name` | `billingInfo.contactDetails.vatId._id` | `billingInfo.contactDetails.vatId.type` | `shippingInfo.shippingDestination.address.streetAddress.number` | `shippingInfo.shippingDestination.address.streetAddress.name` | `shippingInfo.shippingDestination.contactDetails.vatId._id` | `shippingInfo.shippingDestination.contactDetails.vatId.type` | `shippingInfo.selectedCarrierServiceOption.code` | `shippingInfo.selectedCarrierServiceOption.title` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation` | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.amount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.convertedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.formattedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.totalPriceAfterTax.formattedConvertedAmount` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.taxRate` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown.${number}.name` | `shippingInfo.selectedCarrierServiceOption.cost.taxDetails.rateBreakdown.${number}.rate` | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption` | `shippingInfo.selectedCarrierServiceOption.otherCharges` | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type` | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations` | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code` | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.applicableLineItems.lineItemIds` | `shippingInfo.region._id` | `shippingInfo.region.name` | `shippingInfo.carrierServiceOptions` | `shippingInfo.carrierServiceOptions.${number}.carrierId` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions.${number}.code` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions.${number}.title` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions.${number}.cost.otherCharges` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions.${number}.cost.otherCharges.${number}.type` | `shippingInfo.carrierServiceOptions.${number}.shippingOptions.${number}.deliveryAllocations` | `buyerInfo.visitorId` | `buyerInfo.memberId` | `conversionCurrency` | `priceSummary.subtotal.amount` | `priceSummary.subtotal.convertedAmount` | `priceSummary.subtotal.formattedAmount` | `priceSummary.subtotal.formattedConvertedAmount` | `calculationErrors.generalShippingCalculationError.applicationError.code` | `calculationErrors.generalShippingCalculationError.applicationError.description` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `calculationErrors.carrierErrors.errors` | `calculationErrors.carrierErrors.errors.${number}.carrierId` | `calculationErrors.orderValidationErrors` | `giftCard._id` | `giftCard.obfuscatedCode` | `giftCard.amount.amount` | `giftCard.amount.convertedAmount` | `giftCard.amount.formattedAmount` | `giftCard.amount.formattedConvertedAmount` | `giftCard.appId` | `appliedDiscounts` | `appliedDiscounts.${number}.coupon._id` | `appliedDiscounts.${number}.coupon.code` | `appliedDiscounts.${number}.coupon.amount.amount` | `appliedDiscounts.${number}.coupon.amount.convertedAmount` | `appliedDiscounts.${number}.coupon.amount.formattedAmount` | `appliedDiscounts.${number}.coupon.amount.formattedConvertedAmount` | `appliedDiscounts.${number}.coupon.name` | `appliedDiscounts.${number}.discountRule._id` | `appliedDiscounts.${number}.discountRule.name.original` | `appliedDiscounts.${number}.discountType` | `appliedDiscounts.${number}.lineItemIds` | `customFields` | `customFields.${number}.title` | `weightUnit` | `taxSummary.taxableAmount.amount` | `taxSummary.taxableAmount.convertedAmount` | `taxSummary.taxableAmount.formattedAmount` | `taxSummary.taxableAmount.formattedConvertedAmount` | `taxSummary.calculationDetails.manualRateReason` | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason` | `taxSummary.calculationDetails.autoTaxFallbackDetails.error.code` | `taxSummary.calculationDetails.autoTaxFallbackDetails.error.description` | `taxSummary.calculationDetails.rateType` | `currency` | `channelType` | `siteLanguage` | `buyerLanguage` | `completed` | `taxIncludedInPrice` | `createdBy.userId` | `createdBy.memberId` | `createdBy.visitorId` | `createdBy.appId` | `payNow.subtotal.amount` | `payNow.subtotal.convertedAmount` | `payNow.subtotal.formattedAmount` | `payNow.subtotal.formattedConvertedAmount` | `payLater.subtotal.amount` | `payLater.subtotal.convertedAmount` | `payLater.subtotal.formattedAmount` | `payLater.subtotal.formattedConvertedAmount` | `membershipOptions.eligibleMemberships` | `membershipOptions.eligibleMemberships.${number}._id` | `membershipOptions.eligibleMemberships.${number}.appId` | `membershipOptions.eligibleMemberships.${number}.name.original` | `membershipOptions.eligibleMemberships.${number}.lineItemIds` | `membershipOptions.eligibleMemberships.${number}.credits.total` | `membershipOptions.eligibleMemberships.${number}.credits.remaining` | `membershipOptions.invalidMemberships` | `membershipOptions.invalidMemberships.${number}.reason` | `membershipOptions.selectedMemberships.memberships` | `membershipOptions.selectedMemberships.memberships.${number}._id` | `membershipOptions.selectedMemberships.memberships.${number}.appId` | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds` | `additionalFees` | `additionalFees.${number}.name` | `additionalFees.${number}.price.amount` | `additionalFees.${number}.price.convertedAmount` | `additionalFees.${number}.price.formattedAmount` | `additionalFees.${number}.price.formattedConvertedAmount` | `additionalFees.${number}.taxDetails.taxRate` | `additionalFees.${number}.taxDetails.rateBreakdown` | `additionalFees.${number}.taxDetails.rateBreakdown.${number}.name` | `additionalFees.${number}.taxDetails.rateBreakdown.${number}.rate` | `additionalFees.${number}.lineItemIds` | `additionalFees.${number}.source` | `violations` | `violations.${number}.severity` | `violations.${number}.target.other.name` | `violations.${number}.target.lineItem.name` | `customSettings.lockGiftCard` | `customSettings.lockCouponCode` | `customSettings.disabledPolicyAgreementCheckbox` | `customSettings.disabledManualPayment` | `customContentReference.appId` | `customContentReference.componentId`;
|
|
4205
3663
|
/**
|
|
4206
3664
|
* Creates a checkout.
|
|
4207
3665
|
*
|
|
@@ -4238,6 +3696,8 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
4238
3696
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4239
3697
|
* @permissionScope Manage eCommerce - all permissions
|
|
4240
3698
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3699
|
+
* @permissionScope Picasso private app mega scope
|
|
3700
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4241
3701
|
* @permissionScope Manage Orders
|
|
4242
3702
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4243
3703
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4248,12 +3708,14 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
4248
3708
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4249
3709
|
* @permissionScope Manage eCommerce - all permissions
|
|
4250
3710
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3711
|
+
* @permissionScope Picasso private app mega scope
|
|
3712
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4251
3713
|
* @applicableIdentity APP
|
|
4252
3714
|
* @applicableIdentity VISITOR
|
|
4253
3715
|
* @returns Fulfilled - the newly created checkout.
|
|
4254
3716
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout
|
|
4255
3717
|
*/
|
|
4256
|
-
export declare function createCheckout(options?: CreateCheckoutOptions): Promise<Checkout
|
|
3718
|
+
export declare function createCheckout(options?: NonNullablePaths<CreateCheckoutOptions, `channelType` | `checkoutInfo.customFields.${number}.value` | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id` | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId` | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds` | `customLineItems.${number}.descriptionLines` | `customLineItems.${number}.descriptionLines.${number}.name` | `customLineItems.${number}.itemType` | `customLineItems.${number}.price` | `customLineItems.${number}.productName` | `customLineItems.${number}.quantity` | `lineItems.${number}.catalogReference` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.quantity`>): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
|
|
4257
3719
|
export interface CreateCheckoutOptions {
|
|
4258
3720
|
/** Checkout information. */
|
|
4259
3721
|
checkoutInfo?: Checkout;
|
|
@@ -4311,6 +3773,8 @@ export interface CreateCheckoutOptions {
|
|
|
4311
3773
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4312
3774
|
* @permissionScope Manage eCommerce - all permissions
|
|
4313
3775
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3776
|
+
* @permissionScope Picasso private app mega scope
|
|
3777
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4314
3778
|
* @permissionScope Manage Orders
|
|
4315
3779
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4316
3780
|
* @applicableIdentity APP
|
|
@@ -4318,7 +3782,7 @@ export interface CreateCheckoutOptions {
|
|
|
4318
3782
|
* @returns Fulfilled - the requested checkout.
|
|
4319
3783
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout
|
|
4320
3784
|
*/
|
|
4321
|
-
export declare function getCheckout(_id: string): Promise<Checkout
|
|
3785
|
+
export declare function getCheckout(_id: string): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
|
|
4322
3786
|
/**
|
|
4323
3787
|
* Retrieves the checkout associated with a specified cart.
|
|
4324
3788
|
* @param _id - Cart ID.
|
|
@@ -4337,13 +3801,17 @@ export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNon
|
|
|
4337
3801
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4338
3802
|
* @permissionScope Manage eCommerce - all permissions
|
|
4339
3803
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3804
|
+
* @permissionScope Picasso private app mega scope
|
|
3805
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4340
3806
|
* @permissionScope Manage Orders
|
|
4341
3807
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4342
3808
|
* @applicableIdentity APP
|
|
4343
3809
|
* @applicableIdentity VISITOR
|
|
4344
3810
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId
|
|
4345
3811
|
*/
|
|
4346
|
-
export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByCartIdResponse
|
|
3812
|
+
export declare function getCheckoutByCartId(_id: string): Promise<NonNullablePaths<GetCheckoutByCartIdResponse, {
|
|
3813
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
3814
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4347
3815
|
/**
|
|
4348
3816
|
* Deprecated and will be removed soon, use GetCheckoutURL
|
|
4349
3817
|
* @param _id - Checkout ID.
|
|
@@ -4363,13 +3831,15 @@ export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByC
|
|
|
4363
3831
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4364
3832
|
* @permissionScope Manage eCommerce - all permissions
|
|
4365
3833
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3834
|
+
* @permissionScope Picasso private app mega scope
|
|
3835
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4366
3836
|
* @permissionScope Manage Orders
|
|
4367
3837
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4368
3838
|
* @applicableIdentity APP
|
|
4369
3839
|
* @applicableIdentity VISITOR
|
|
4370
3840
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL
|
|
4371
3841
|
*/
|
|
4372
|
-
export declare function getWixCheckoutUrl(_id: string): Promise<GetWixCheckoutURLResponse
|
|
3842
|
+
export declare function getWixCheckoutUrl(_id: string): Promise<NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`>>;
|
|
4373
3843
|
/**
|
|
4374
3844
|
* Retrieves the checkout page URL of a specified checkout.
|
|
4375
3845
|
*
|
|
@@ -4391,13 +3861,15 @@ export declare function getWixCheckoutUrl(_id: string): Promise<GetWixCheckoutUR
|
|
|
4391
3861
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4392
3862
|
* @permissionScope Manage eCommerce - all permissions
|
|
4393
3863
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3864
|
+
* @permissionScope Picasso private app mega scope
|
|
3865
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4394
3866
|
* @permissionScope Manage Orders
|
|
4395
3867
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4396
3868
|
* @applicableIdentity APP
|
|
4397
3869
|
* @applicableIdentity VISITOR
|
|
4398
3870
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL
|
|
4399
3871
|
*/
|
|
4400
|
-
export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLResponse
|
|
3872
|
+
export declare function getCheckoutUrl(_id: string): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`>>;
|
|
4401
3873
|
/**
|
|
4402
3874
|
* Updates a checkout.
|
|
4403
3875
|
*
|
|
@@ -4433,6 +3905,8 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
4433
3905
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4434
3906
|
* @permissionScope Manage eCommerce - all permissions
|
|
4435
3907
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3908
|
+
* @permissionScope Picasso private app mega scope
|
|
3909
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4436
3910
|
* @permissionScope Manage Orders
|
|
4437
3911
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4438
3912
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4443,12 +3917,14 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
4443
3917
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4444
3918
|
* @permissionScope Manage eCommerce - all permissions
|
|
4445
3919
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3920
|
+
* @permissionScope Picasso private app mega scope
|
|
3921
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4446
3922
|
* @applicableIdentity APP
|
|
4447
3923
|
* @applicableIdentity VISITOR
|
|
4448
3924
|
* @returns Updated checkout.
|
|
4449
3925
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout
|
|
4450
3926
|
*/
|
|
4451
|
-
export declare function updateCheckout(_id: string
|
|
3927
|
+
export declare function updateCheckout(_id: string, checkout: NonNullablePaths<UpdateCheckout, `customFields.${number}.value` | `membershipOptions.selectedMemberships.memberships.${number}._id` | `membershipOptions.selectedMemberships.memberships.${number}.appId` | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`>, options?: NonNullablePaths<UpdateCheckoutOptions, `customLineItems.${number}.descriptionLines` | `customLineItems.${number}.descriptionLines.${number}.name` | `customLineItems.${number}.itemType` | `customLineItems.${number}.productName` | `customLineItems.${number}.quantity` | `lineItems.${number}.catalogReference` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.quantity`>): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
|
|
4452
3928
|
export interface UpdateCheckout {
|
|
4453
3929
|
/**
|
|
4454
3930
|
* Checkout ID.
|
|
@@ -4700,13 +4176,17 @@ export interface UpdateCheckoutOptions {
|
|
|
4700
4176
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4701
4177
|
* @permissionScope Manage eCommerce - all permissions
|
|
4702
4178
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4179
|
+
* @permissionScope Picasso private app mega scope
|
|
4180
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4703
4181
|
* @permissionScope Manage Orders
|
|
4704
4182
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4705
4183
|
* @applicableIdentity APP
|
|
4706
4184
|
* @applicableIdentity VISITOR
|
|
4707
4185
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon
|
|
4708
4186
|
*/
|
|
4709
|
-
export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
|
|
4187
|
+
export declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCouponResponse, {
|
|
4188
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4189
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4710
4190
|
/**
|
|
4711
4191
|
* Removes the gift card from a specified checkout.
|
|
4712
4192
|
*
|
|
@@ -4724,13 +4204,17 @@ export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
|
|
|
4724
4204
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4725
4205
|
* @permissionScope Manage eCommerce - all permissions
|
|
4726
4206
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4207
|
+
* @permissionScope Picasso private app mega scope
|
|
4208
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4727
4209
|
* @permissionScope Manage Orders
|
|
4728
4210
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4729
4211
|
* @applicableIdentity APP
|
|
4730
4212
|
* @applicableIdentity VISITOR
|
|
4731
4213
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard
|
|
4732
4214
|
*/
|
|
4733
|
-
export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardResponse
|
|
4215
|
+
export declare function removeGiftCard(_id: string): Promise<NonNullablePaths<RemoveGiftCardResponse, {
|
|
4216
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4217
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4734
4218
|
/**
|
|
4735
4219
|
* Removes the `overrideCheckoutUrl` from a specified checkout.
|
|
4736
4220
|
*
|
|
@@ -4746,13 +4230,17 @@ export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardRespo
|
|
|
4746
4230
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4747
4231
|
* @permissionScope Manage eCommerce - all permissions
|
|
4748
4232
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4233
|
+
* @permissionScope Picasso private app mega scope
|
|
4234
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4749
4235
|
* @permissionScope Manage Orders
|
|
4750
4236
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4751
4237
|
* @applicableIdentity APP
|
|
4752
4238
|
* @applicableIdentity VISITOR
|
|
4753
4239
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl
|
|
4754
4240
|
*/
|
|
4755
|
-
export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOverrideCheckoutUrlResponse
|
|
4241
|
+
export declare function removeOverrideCheckoutUrl(_id: string): Promise<NonNullablePaths<RemoveOverrideCheckoutUrlResponse, {
|
|
4242
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4243
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4756
4244
|
/**
|
|
4757
4245
|
* Adds catalog line items and/or custom line items to a checkout.
|
|
4758
4246
|
*
|
|
@@ -4780,6 +4268,8 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
4780
4268
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4781
4269
|
* @permissionScope Manage eCommerce - all permissions
|
|
4782
4270
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4271
|
+
* @permissionScope Picasso private app mega scope
|
|
4272
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4783
4273
|
* @permissionScope Manage Orders
|
|
4784
4274
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4785
4275
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4790,11 +4280,15 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
4790
4280
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4791
4281
|
* @permissionScope Manage eCommerce - all permissions
|
|
4792
4282
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4283
|
+
* @permissionScope Picasso private app mega scope
|
|
4284
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4793
4285
|
* @applicableIdentity APP
|
|
4794
4286
|
* @applicableIdentity VISITOR
|
|
4795
4287
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout
|
|
4796
4288
|
*/
|
|
4797
|
-
export declare function addToCheckout(_id: string, options?: AddToCheckoutOptions): Promise<AddToCheckoutResponse
|
|
4289
|
+
export declare function addToCheckout(_id: string, options?: NonNullablePaths<AddToCheckoutOptions, `customLineItems.${number}.descriptionLines` | `customLineItems.${number}.descriptionLines.${number}.name` | `customLineItems.${number}.itemType` | `customLineItems.${number}.productName` | `customLineItems.${number}.quantity` | `lineItems.${number}.catalogReference` | `lineItems.${number}.catalogReference.appId` | `lineItems.${number}.catalogReference.catalogItemId` | `lineItems.${number}.quantity`>): Promise<NonNullablePaths<AddToCheckoutResponse, {
|
|
4290
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4291
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4798
4292
|
export interface AddToCheckoutOptions {
|
|
4799
4293
|
/**
|
|
4800
4294
|
* Catalog line items.
|
|
@@ -4828,13 +4322,17 @@ export interface AddToCheckoutOptions {
|
|
|
4828
4322
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4829
4323
|
* @permissionScope Manage eCommerce - all permissions
|
|
4830
4324
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4325
|
+
* @permissionScope Picasso private app mega scope
|
|
4326
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4831
4327
|
* @permissionScope Manage Orders
|
|
4832
4328
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4833
4329
|
* @applicableIdentity APP
|
|
4834
4330
|
* @applicableIdentity VISITOR
|
|
4835
4331
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems
|
|
4836
4332
|
*/
|
|
4837
|
-
export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<RemoveLineItemsResponse
|
|
4333
|
+
export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsResponse, {
|
|
4334
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4335
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4838
4336
|
/**
|
|
4839
4337
|
* Creates an order from a specified checkout.
|
|
4840
4338
|
*
|
|
@@ -4859,13 +4357,15 @@ export declare function removeLineItems(_id: string, lineItemIds: string[]): Pro
|
|
|
4859
4357
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4860
4358
|
* @permissionScope Manage eCommerce - all permissions
|
|
4861
4359
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4360
|
+
* @permissionScope Picasso private app mega scope
|
|
4361
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4862
4362
|
* @permissionScope Manage Orders
|
|
4863
4363
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4864
4364
|
* @applicableIdentity APP
|
|
4865
4365
|
* @applicableIdentity VISITOR
|
|
4866
4366
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder
|
|
4867
4367
|
*/
|
|
4868
|
-
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<CreateOrderResponse
|
|
4368
|
+
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`>>;
|
|
4869
4369
|
export interface CreateOrderOptions {
|
|
4870
4370
|
/** Whether the payment method should be saved on the order. */
|
|
4871
4371
|
savePaymentMethod?: boolean;
|
|
@@ -4885,13 +4385,15 @@ export interface CreateOrderOptions {
|
|
|
4885
4385
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4886
4386
|
* @permissionScope Manage eCommerce - all permissions
|
|
4887
4387
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4388
|
+
* @permissionScope Picasso private app mega scope
|
|
4389
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4888
4390
|
* @permissionScope Manage Orders
|
|
4889
4391
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4890
4392
|
* @applicableIdentity APP
|
|
4891
4393
|
* @applicableIdentity VISITOR
|
|
4892
4394
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge
|
|
4893
4395
|
*/
|
|
4894
|
-
export declare function createOrderAndCharge(_id: string, options?: CreateOrderAndChargeOptions): Promise<CreateOrderAndChargeResponse
|
|
4396
|
+
export declare function createOrderAndCharge(_id: string, options?: CreateOrderAndChargeOptions): Promise<NonNullablePaths<CreateOrderAndChargeResponse, `orderId` | `subscriptionId`>>;
|
|
4895
4397
|
export interface CreateOrderAndChargeOptions {
|
|
4896
4398
|
/** Payment token. */
|
|
4897
4399
|
paymentToken?: string | null;
|
|
@@ -4913,13 +4415,15 @@ export interface CreateOrderAndChargeOptions {
|
|
|
4913
4415
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4914
4416
|
* @permissionScope Manage eCommerce - all permissions
|
|
4915
4417
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4418
|
+
* @permissionScope Picasso private app mega scope
|
|
4419
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4916
4420
|
* @permissionScope Manage Orders
|
|
4917
4421
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4918
4422
|
* @applicableIdentity APP
|
|
4919
4423
|
* @applicableIdentity VISITOR
|
|
4920
4424
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl
|
|
4921
4425
|
*/
|
|
4922
|
-
export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string): Promise<RawHttpResponse
|
|
4426
|
+
export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
|
|
4923
4427
|
/**
|
|
4924
4428
|
* Marks a checkout as completed - `checkout.complete` boolean is set to `true`.
|
|
4925
4429
|
*
|
|
@@ -4935,6 +4439,8 @@ export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string):
|
|
|
4935
4439
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4936
4440
|
* @permissionScope Manage eCommerce - all permissions
|
|
4937
4441
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4442
|
+
* @permissionScope Picasso private app mega scope
|
|
4443
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4938
4444
|
* @permissionScope Manage Orders
|
|
4939
4445
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4940
4446
|
* @applicableIdentity APP
|
|
@@ -4966,13 +4472,17 @@ export declare function markCheckoutAsCompleted(_id: string): Promise<void>;
|
|
|
4966
4472
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4967
4473
|
* @permissionScope Manage eCommerce - all permissions
|
|
4968
4474
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4475
|
+
* @permissionScope Picasso private app mega scope
|
|
4476
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4969
4477
|
* @permissionScope Manage Orders
|
|
4970
4478
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4971
4479
|
* @applicableIdentity APP
|
|
4972
4480
|
* @applicableIdentity VISITOR
|
|
4973
4481
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity
|
|
4974
4482
|
*/
|
|
4975
|
-
export declare function updateLineItemsQuantity(_id: string, lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse
|
|
4483
|
+
export declare function updateLineItemsQuantity(_id: string, lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`>[]): Promise<NonNullablePaths<UpdateLineItemsQuantityResponse, {
|
|
4484
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4485
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4976
4486
|
/** @param _id - Checkout ID.
|
|
4977
4487
|
* @internal
|
|
4978
4488
|
* @documentationMaturity preview
|
|
@@ -4980,5 +4490,5 @@ export declare function updateLineItemsQuantity(_id: string, lineItems: LineItem
|
|
|
4980
4490
|
* @permissionId ECOM.READ_PAYMENT_SETTINGS
|
|
4981
4491
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings
|
|
4982
4492
|
*/
|
|
4983
|
-
export declare function getCheckoutPaymentSettings(_id: string): Promise<GetCheckoutPaymentSettingsResponse
|
|
4493
|
+
export declare function getCheckoutPaymentSettings(_id: string): Promise<NonNullablePaths<GetCheckoutPaymentSettingsResponse, `blockedPaymentOptions`>>;
|
|
4984
4494
|
export {};
|