@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.
|
|
@@ -3347,489 +3348,6 @@ export declare enum WebhookIdentityType {
|
|
|
3347
3348
|
WIX_USER = "WIX_USER",
|
|
3348
3349
|
APP = "APP"
|
|
3349
3350
|
}
|
|
3350
|
-
interface CatalogReferenceNonNullableFields {
|
|
3351
|
-
catalogItemId: string;
|
|
3352
|
-
appId: string;
|
|
3353
|
-
}
|
|
3354
|
-
interface ProductNameNonNullableFields {
|
|
3355
|
-
original: string;
|
|
3356
|
-
}
|
|
3357
|
-
interface MultiCurrencyPriceNonNullableFields {
|
|
3358
|
-
amount: string;
|
|
3359
|
-
convertedAmount: string;
|
|
3360
|
-
formattedAmount: string;
|
|
3361
|
-
formattedConvertedAmount: string;
|
|
3362
|
-
}
|
|
3363
|
-
interface TaxRateBreakdownNonNullableFields {
|
|
3364
|
-
name: string;
|
|
3365
|
-
rate: string;
|
|
3366
|
-
tax?: MultiCurrencyPriceNonNullableFields;
|
|
3367
|
-
exemptAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3368
|
-
exemptionIds: number[];
|
|
3369
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3370
|
-
}
|
|
3371
|
-
interface TaxBreakdownNonNullableFields {
|
|
3372
|
-
nonTaxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3373
|
-
taxAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3374
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3375
|
-
jurisdictionType: JurisdictionType;
|
|
3376
|
-
}
|
|
3377
|
-
interface ItemTaxFullDetailsNonNullableFields {
|
|
3378
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3379
|
-
taxRate: string;
|
|
3380
|
-
totalTax?: MultiCurrencyPriceNonNullableFields;
|
|
3381
|
-
rateBreakdown: TaxRateBreakdownNonNullableFields[];
|
|
3382
|
-
exemptAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3383
|
-
taxBreakdown: TaxBreakdownNonNullableFields[];
|
|
3384
|
-
}
|
|
3385
|
-
interface PlainTextValueNonNullableFields {
|
|
3386
|
-
original: string;
|
|
3387
|
-
}
|
|
3388
|
-
interface ColorNonNullableFields {
|
|
3389
|
-
original: string;
|
|
3390
|
-
}
|
|
3391
|
-
interface DescriptionLineNameNonNullableFields {
|
|
3392
|
-
original: string;
|
|
3393
|
-
}
|
|
3394
|
-
interface DescriptionLineNonNullableFields {
|
|
3395
|
-
plainText?: PlainTextValueNonNullableFields;
|
|
3396
|
-
colorInfo?: ColorNonNullableFields;
|
|
3397
|
-
plainTextValue?: PlainTextValueNonNullableFields;
|
|
3398
|
-
color: string;
|
|
3399
|
-
name?: DescriptionLineNameNonNullableFields;
|
|
3400
|
-
lineType: DescriptionLineType;
|
|
3401
|
-
}
|
|
3402
|
-
interface ItemAvailabilityInfoNonNullableFields {
|
|
3403
|
-
status: ItemAvailabilityStatus;
|
|
3404
|
-
}
|
|
3405
|
-
interface PhysicalPropertiesNonNullableFields {
|
|
3406
|
-
shippable: boolean;
|
|
3407
|
-
}
|
|
3408
|
-
interface ItemTypeNonNullableFields {
|
|
3409
|
-
preset: ItemTypeItemType;
|
|
3410
|
-
custom: string;
|
|
3411
|
-
}
|
|
3412
|
-
interface SubscriptionSettingsNonNullableFields {
|
|
3413
|
-
frequency: SubscriptionFrequency;
|
|
3414
|
-
autoRenewal: boolean;
|
|
3415
|
-
}
|
|
3416
|
-
interface TitleNonNullableFields {
|
|
3417
|
-
original: string;
|
|
3418
|
-
}
|
|
3419
|
-
interface DescriptionNonNullableFields {
|
|
3420
|
-
original: string;
|
|
3421
|
-
}
|
|
3422
|
-
interface SubscriptionOptionInfoNonNullableFields {
|
|
3423
|
-
subscriptionSettings?: SubscriptionSettingsNonNullableFields;
|
|
3424
|
-
title?: TitleNonNullableFields;
|
|
3425
|
-
description?: DescriptionNonNullableFields;
|
|
3426
|
-
}
|
|
3427
|
-
interface SecuredMediaNonNullableFields {
|
|
3428
|
-
_id: string;
|
|
3429
|
-
fileName: string;
|
|
3430
|
-
fileType: FileType;
|
|
3431
|
-
}
|
|
3432
|
-
interface PriceDescriptionNonNullableFields {
|
|
3433
|
-
original: string;
|
|
3434
|
-
}
|
|
3435
|
-
interface PaymentOptionNonNullableFields {
|
|
3436
|
-
value: PaymentOptionType;
|
|
3437
|
-
}
|
|
3438
|
-
interface CatalogOverrideFieldsNonNullableFields {
|
|
3439
|
-
productName?: ProductNameNonNullableFields;
|
|
3440
|
-
descriptionLines: DescriptionLineNonNullableFields[];
|
|
3441
|
-
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
3442
|
-
image: string;
|
|
3443
|
-
paymentOption?: PaymentOptionNonNullableFields;
|
|
3444
|
-
}
|
|
3445
|
-
interface LineItemNonNullableFields {
|
|
3446
|
-
quantity: number;
|
|
3447
|
-
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3448
|
-
productName?: ProductNameNonNullableFields;
|
|
3449
|
-
url: string;
|
|
3450
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3451
|
-
lineItemPrice?: MultiCurrencyPriceNonNullableFields;
|
|
3452
|
-
fullPrice?: MultiCurrencyPriceNonNullableFields;
|
|
3453
|
-
priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
|
|
3454
|
-
totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3455
|
-
totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3456
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3457
|
-
discount?: MultiCurrencyPriceNonNullableFields;
|
|
3458
|
-
descriptionLines: DescriptionLineNonNullableFields[];
|
|
3459
|
-
media: string;
|
|
3460
|
-
availability?: ItemAvailabilityInfoNonNullableFields;
|
|
3461
|
-
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
3462
|
-
itemType?: ItemTypeNonNullableFields;
|
|
3463
|
-
subscriptionOptionInfo?: SubscriptionOptionInfoNonNullableFields;
|
|
3464
|
-
digitalFile?: SecuredMediaNonNullableFields;
|
|
3465
|
-
paymentOption: PaymentOptionType;
|
|
3466
|
-
priceDescription?: PriceDescriptionNonNullableFields;
|
|
3467
|
-
depositAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3468
|
-
customLineItem: boolean;
|
|
3469
|
-
catalogOverrideFields?: CatalogOverrideFieldsNonNullableFields;
|
|
3470
|
-
savePaymentMethod: boolean;
|
|
3471
|
-
}
|
|
3472
|
-
interface StreetAddressNonNullableFields {
|
|
3473
|
-
number: string;
|
|
3474
|
-
name: string;
|
|
3475
|
-
apt: string;
|
|
3476
|
-
}
|
|
3477
|
-
interface ApiAddressNonNullableFields {
|
|
3478
|
-
streetAddress?: StreetAddressNonNullableFields;
|
|
3479
|
-
}
|
|
3480
|
-
interface CommonVatIdNonNullableFields {
|
|
3481
|
-
_id: string;
|
|
3482
|
-
type: CommonVatType;
|
|
3483
|
-
}
|
|
3484
|
-
interface FullAddressContactDetailsNonNullableFields {
|
|
3485
|
-
vatId?: CommonVatIdNonNullableFields;
|
|
3486
|
-
}
|
|
3487
|
-
interface AddressWithContactNonNullableFields {
|
|
3488
|
-
address?: ApiAddressNonNullableFields;
|
|
3489
|
-
contactDetails?: FullAddressContactDetailsNonNullableFields;
|
|
3490
|
-
}
|
|
3491
|
-
interface PickupDetailsNonNullableFields {
|
|
3492
|
-
address?: ApiAddressNonNullableFields;
|
|
3493
|
-
businessLocation: boolean;
|
|
3494
|
-
pickupMethod: PickupMethod;
|
|
3495
|
-
}
|
|
3496
|
-
interface DeliveryLogisticsNonNullableFields {
|
|
3497
|
-
pickupDetails?: PickupDetailsNonNullableFields;
|
|
3498
|
-
}
|
|
3499
|
-
interface SelectedCarrierServiceOptionPricesNonNullableFields {
|
|
3500
|
-
totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3501
|
-
totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3502
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3503
|
-
totalDiscount?: MultiCurrencyPriceNonNullableFields;
|
|
3504
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3505
|
-
}
|
|
3506
|
-
interface SelectedCarrierServiceOptionOtherChargeNonNullableFields {
|
|
3507
|
-
type: ChargeType;
|
|
3508
|
-
cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
|
|
3509
|
-
}
|
|
3510
|
-
interface CarrierNonNullableFields {
|
|
3511
|
-
code: string;
|
|
3512
|
-
}
|
|
3513
|
-
interface ApplicableLineItemsNonNullableFields {
|
|
3514
|
-
lineItemIds: string[];
|
|
3515
|
-
}
|
|
3516
|
-
interface DeliveryAllocationNonNullableFields {
|
|
3517
|
-
deliveryCarrier?: CarrierNonNullableFields;
|
|
3518
|
-
applicableLineItems?: ApplicableLineItemsNonNullableFields;
|
|
3519
|
-
}
|
|
3520
|
-
interface SelectedCarrierServiceOptionNonNullableFields {
|
|
3521
|
-
code: string;
|
|
3522
|
-
title: string;
|
|
3523
|
-
logistics?: DeliveryLogisticsNonNullableFields;
|
|
3524
|
-
cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
|
|
3525
|
-
requestedShippingOption: boolean;
|
|
3526
|
-
otherCharges: SelectedCarrierServiceOptionOtherChargeNonNullableFields[];
|
|
3527
|
-
deliveryAllocations: DeliveryAllocationNonNullableFields[];
|
|
3528
|
-
}
|
|
3529
|
-
interface ShippingRegionNonNullableFields {
|
|
3530
|
-
_id: string;
|
|
3531
|
-
name: string;
|
|
3532
|
-
}
|
|
3533
|
-
interface OtherChargeNonNullableFields {
|
|
3534
|
-
type: ChargeType;
|
|
3535
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3536
|
-
}
|
|
3537
|
-
interface ShippingPriceNonNullableFields {
|
|
3538
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3539
|
-
otherCharges: OtherChargeNonNullableFields[];
|
|
3540
|
-
}
|
|
3541
|
-
interface ShippingOptionNonNullableFields {
|
|
3542
|
-
code: string;
|
|
3543
|
-
title: string;
|
|
3544
|
-
logistics?: DeliveryLogisticsNonNullableFields;
|
|
3545
|
-
cost?: ShippingPriceNonNullableFields;
|
|
3546
|
-
deliveryAllocations: DeliveryAllocationNonNullableFields[];
|
|
3547
|
-
}
|
|
3548
|
-
interface CarrierServiceOptionNonNullableFields {
|
|
3549
|
-
carrierId: string;
|
|
3550
|
-
shippingOptions: ShippingOptionNonNullableFields[];
|
|
3551
|
-
}
|
|
3552
|
-
interface ShippingInfoNonNullableFields {
|
|
3553
|
-
shippingDestination?: AddressWithContactNonNullableFields;
|
|
3554
|
-
selectedCarrierServiceOption?: SelectedCarrierServiceOptionNonNullableFields;
|
|
3555
|
-
region?: ShippingRegionNonNullableFields;
|
|
3556
|
-
carrierServiceOptions: CarrierServiceOptionNonNullableFields[];
|
|
3557
|
-
}
|
|
3558
|
-
interface BuyerInfoNonNullableFields {
|
|
3559
|
-
visitorId: string;
|
|
3560
|
-
memberId: string;
|
|
3561
|
-
openAccess: boolean;
|
|
3562
|
-
}
|
|
3563
|
-
interface PriceSummaryNonNullableFields {
|
|
3564
|
-
subtotal?: MultiCurrencyPriceNonNullableFields;
|
|
3565
|
-
shipping?: MultiCurrencyPriceNonNullableFields;
|
|
3566
|
-
tax?: MultiCurrencyPriceNonNullableFields;
|
|
3567
|
-
discount?: MultiCurrencyPriceNonNullableFields;
|
|
3568
|
-
total?: MultiCurrencyPriceNonNullableFields;
|
|
3569
|
-
additionalFees?: MultiCurrencyPriceNonNullableFields;
|
|
3570
|
-
}
|
|
3571
|
-
interface ApplicationErrorNonNullableFields {
|
|
3572
|
-
code: string;
|
|
3573
|
-
description: string;
|
|
3574
|
-
}
|
|
3575
|
-
interface FieldViolationNonNullableFields {
|
|
3576
|
-
field: string;
|
|
3577
|
-
description: string;
|
|
3578
|
-
violatedRule: RuleType;
|
|
3579
|
-
}
|
|
3580
|
-
interface ValidationErrorNonNullableFields {
|
|
3581
|
-
fieldViolations: FieldViolationNonNullableFields[];
|
|
3582
|
-
}
|
|
3583
|
-
interface DetailsNonNullableFields {
|
|
3584
|
-
applicationError?: ApplicationErrorNonNullableFields;
|
|
3585
|
-
validationError?: ValidationErrorNonNullableFields;
|
|
3586
|
-
}
|
|
3587
|
-
interface CarrierErrorNonNullableFields {
|
|
3588
|
-
carrierId: string;
|
|
3589
|
-
error?: DetailsNonNullableFields;
|
|
3590
|
-
}
|
|
3591
|
-
interface CarrierErrorsNonNullableFields {
|
|
3592
|
-
errors: CarrierErrorNonNullableFields[];
|
|
3593
|
-
}
|
|
3594
|
-
interface CalculationErrorsNonNullableFields {
|
|
3595
|
-
generalShippingCalculationError?: DetailsNonNullableFields;
|
|
3596
|
-
carrierErrors?: CarrierErrorsNonNullableFields;
|
|
3597
|
-
taxCalculationError?: DetailsNonNullableFields;
|
|
3598
|
-
couponCalculationError?: DetailsNonNullableFields;
|
|
3599
|
-
giftCardCalculationError?: DetailsNonNullableFields;
|
|
3600
|
-
orderValidationErrors: ApplicationErrorNonNullableFields[];
|
|
3601
|
-
membershipError?: DetailsNonNullableFields;
|
|
3602
|
-
discountsCalculationError?: DetailsNonNullableFields;
|
|
3603
|
-
}
|
|
3604
|
-
interface GiftCardNonNullableFields {
|
|
3605
|
-
_id: string;
|
|
3606
|
-
obfuscatedCode: string;
|
|
3607
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3608
|
-
appId: string;
|
|
3609
|
-
}
|
|
3610
|
-
interface CouponNonNullableFields {
|
|
3611
|
-
_id: string;
|
|
3612
|
-
code: string;
|
|
3613
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3614
|
-
name: string;
|
|
3615
|
-
couponType: string;
|
|
3616
|
-
}
|
|
3617
|
-
interface MerchantDiscountNonNullableFields {
|
|
3618
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3619
|
-
}
|
|
3620
|
-
interface DiscountRuleNameNonNullableFields {
|
|
3621
|
-
original: string;
|
|
3622
|
-
}
|
|
3623
|
-
interface DiscountRuleNonNullableFields {
|
|
3624
|
-
_id: string;
|
|
3625
|
-
name?: DiscountRuleNameNonNullableFields;
|
|
3626
|
-
amount?: MultiCurrencyPriceNonNullableFields;
|
|
3627
|
-
}
|
|
3628
|
-
interface LineItemDiscountNonNullableFields {
|
|
3629
|
-
_id: string;
|
|
3630
|
-
totalDiscountAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3631
|
-
}
|
|
3632
|
-
interface AppliedDiscountNonNullableFields {
|
|
3633
|
-
coupon?: CouponNonNullableFields;
|
|
3634
|
-
merchantDiscount?: MerchantDiscountNonNullableFields;
|
|
3635
|
-
discountRule?: DiscountRuleNonNullableFields;
|
|
3636
|
-
discountType: DiscountType;
|
|
3637
|
-
lineItemIds: string[];
|
|
3638
|
-
lineItemDiscounts: LineItemDiscountNonNullableFields[];
|
|
3639
|
-
}
|
|
3640
|
-
interface CustomFieldNonNullableFields {
|
|
3641
|
-
title: string;
|
|
3642
|
-
}
|
|
3643
|
-
interface AutoTaxFallbackCalculationDetailsNonNullableFields {
|
|
3644
|
-
fallbackReason: FallbackReason;
|
|
3645
|
-
error?: ApplicationErrorNonNullableFields;
|
|
3646
|
-
}
|
|
3647
|
-
interface TaxCalculationDetailsNonNullableFields {
|
|
3648
|
-
manualRateReason: ManualCalculationReason;
|
|
3649
|
-
autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetailsNonNullableFields;
|
|
3650
|
-
rateType: RateType;
|
|
3651
|
-
}
|
|
3652
|
-
interface AggregatedTaxBreakdownNonNullableFields {
|
|
3653
|
-
taxName: string;
|
|
3654
|
-
taxType: string;
|
|
3655
|
-
jurisdiction: string;
|
|
3656
|
-
jurisdictionTypeEnum: JurisdictionType;
|
|
3657
|
-
rate: string;
|
|
3658
|
-
aggregatedTaxAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3659
|
-
aggregatedTaxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3660
|
-
}
|
|
3661
|
-
interface TaxSummaryNonNullableFields {
|
|
3662
|
-
taxableAmount?: MultiCurrencyPriceNonNullableFields;
|
|
3663
|
-
totalTax?: MultiCurrencyPriceNonNullableFields;
|
|
3664
|
-
manualTaxRate: string;
|
|
3665
|
-
calculationDetails?: TaxCalculationDetailsNonNullableFields;
|
|
3666
|
-
totalExempt?: MultiCurrencyPriceNonNullableFields;
|
|
3667
|
-
aggregatedTaxBreakdown: AggregatedTaxBreakdownNonNullableFields[];
|
|
3668
|
-
}
|
|
3669
|
-
interface CreatedByNonNullableFields {
|
|
3670
|
-
userId: string;
|
|
3671
|
-
memberId: string;
|
|
3672
|
-
visitorId: string;
|
|
3673
|
-
appId: string;
|
|
3674
|
-
}
|
|
3675
|
-
interface MembershipNameNonNullableFields {
|
|
3676
|
-
original: string;
|
|
3677
|
-
}
|
|
3678
|
-
interface MembershipPaymentCreditsNonNullableFields {
|
|
3679
|
-
total: number;
|
|
3680
|
-
remaining: number;
|
|
3681
|
-
}
|
|
3682
|
-
interface MembershipNonNullableFields {
|
|
3683
|
-
_id: string;
|
|
3684
|
-
appId: string;
|
|
3685
|
-
name?: MembershipNameNonNullableFields;
|
|
3686
|
-
lineItemIds: string[];
|
|
3687
|
-
credits?: MembershipPaymentCreditsNonNullableFields;
|
|
3688
|
-
}
|
|
3689
|
-
interface InvalidMembershipNonNullableFields {
|
|
3690
|
-
membership?: MembershipNonNullableFields;
|
|
3691
|
-
reason: string;
|
|
3692
|
-
}
|
|
3693
|
-
interface SelectedMembershipNonNullableFields {
|
|
3694
|
-
_id: string;
|
|
3695
|
-
appId: string;
|
|
3696
|
-
lineItemIds: string[];
|
|
3697
|
-
}
|
|
3698
|
-
interface SelectedMembershipsNonNullableFields {
|
|
3699
|
-
memberships: SelectedMembershipNonNullableFields[];
|
|
3700
|
-
}
|
|
3701
|
-
interface MembershipOptionsNonNullableFields {
|
|
3702
|
-
eligibleMemberships: MembershipNonNullableFields[];
|
|
3703
|
-
invalidMemberships: InvalidMembershipNonNullableFields[];
|
|
3704
|
-
selectedMemberships?: SelectedMembershipsNonNullableFields;
|
|
3705
|
-
}
|
|
3706
|
-
interface AdditionalFeeNonNullableFields {
|
|
3707
|
-
name: string;
|
|
3708
|
-
price?: MultiCurrencyPriceNonNullableFields;
|
|
3709
|
-
taxDetails?: ItemTaxFullDetailsNonNullableFields;
|
|
3710
|
-
priceBeforeTax?: MultiCurrencyPriceNonNullableFields;
|
|
3711
|
-
priceAfterTax?: MultiCurrencyPriceNonNullableFields;
|
|
3712
|
-
lineItemIds: string[];
|
|
3713
|
-
source: AdditionalFeeSource;
|
|
3714
|
-
}
|
|
3715
|
-
interface ConversionInfoNonNullableFields {
|
|
3716
|
-
siteCurrency: string;
|
|
3717
|
-
conversionRate: string;
|
|
3718
|
-
}
|
|
3719
|
-
interface OtherNonNullableFields {
|
|
3720
|
-
name: NameInOther;
|
|
3721
|
-
}
|
|
3722
|
-
interface TargetLineItemNonNullableFields {
|
|
3723
|
-
name: NameInLineItem;
|
|
3724
|
-
}
|
|
3725
|
-
interface TargetNonNullableFields {
|
|
3726
|
-
other?: OtherNonNullableFields;
|
|
3727
|
-
lineItem?: TargetLineItemNonNullableFields;
|
|
3728
|
-
}
|
|
3729
|
-
interface ViolationNonNullableFields {
|
|
3730
|
-
severity: Severity;
|
|
3731
|
-
target?: TargetNonNullableFields;
|
|
3732
|
-
}
|
|
3733
|
-
interface CustomSettingsNonNullableFields {
|
|
3734
|
-
lockGiftCard: boolean;
|
|
3735
|
-
lockCouponCode: boolean;
|
|
3736
|
-
disabledPolicyAgreementCheckbox: boolean;
|
|
3737
|
-
disabledManualPayment: boolean;
|
|
3738
|
-
}
|
|
3739
|
-
interface CustomContentReferenceNonNullableFields {
|
|
3740
|
-
appId: string;
|
|
3741
|
-
componentId: string;
|
|
3742
|
-
}
|
|
3743
|
-
interface ExternalReferenceNonNullableFields {
|
|
3744
|
-
appId: string;
|
|
3745
|
-
}
|
|
3746
|
-
export interface CheckoutNonNullableFields {
|
|
3747
|
-
lineItems: LineItemNonNullableFields[];
|
|
3748
|
-
billingInfo?: AddressWithContactNonNullableFields;
|
|
3749
|
-
shippingInfo?: ShippingInfoNonNullableFields;
|
|
3750
|
-
buyerInfo?: BuyerInfoNonNullableFields;
|
|
3751
|
-
conversionCurrency: string;
|
|
3752
|
-
priceSummary?: PriceSummaryNonNullableFields;
|
|
3753
|
-
calculationErrors?: CalculationErrorsNonNullableFields;
|
|
3754
|
-
giftCard?: GiftCardNonNullableFields;
|
|
3755
|
-
appliedDiscounts: AppliedDiscountNonNullableFields[];
|
|
3756
|
-
customFields: CustomFieldNonNullableFields[];
|
|
3757
|
-
weightUnit: WeightUnit;
|
|
3758
|
-
taxSummary?: TaxSummaryNonNullableFields;
|
|
3759
|
-
currency: string;
|
|
3760
|
-
channelType: ChannelType;
|
|
3761
|
-
siteLanguage: string;
|
|
3762
|
-
buyerLanguage: string;
|
|
3763
|
-
completed: boolean;
|
|
3764
|
-
taxIncludedInPrice: boolean;
|
|
3765
|
-
createdBy?: CreatedByNonNullableFields;
|
|
3766
|
-
payNow?: PriceSummaryNonNullableFields;
|
|
3767
|
-
payLater?: PriceSummaryNonNullableFields;
|
|
3768
|
-
membershipOptions?: MembershipOptionsNonNullableFields;
|
|
3769
|
-
additionalFees: AdditionalFeeNonNullableFields[];
|
|
3770
|
-
conversionInfo?: ConversionInfoNonNullableFields;
|
|
3771
|
-
payNowTotalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
|
|
3772
|
-
violations: ViolationNonNullableFields[];
|
|
3773
|
-
totalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
|
|
3774
|
-
customSettings?: CustomSettingsNonNullableFields;
|
|
3775
|
-
customContentReference?: CustomContentReferenceNonNullableFields;
|
|
3776
|
-
externalReference?: ExternalReferenceNonNullableFields;
|
|
3777
|
-
}
|
|
3778
|
-
export interface CreateCheckoutResponseNonNullableFields {
|
|
3779
|
-
checkout?: CheckoutNonNullableFields;
|
|
3780
|
-
}
|
|
3781
|
-
export interface GetCheckoutResponseNonNullableFields {
|
|
3782
|
-
checkout?: CheckoutNonNullableFields;
|
|
3783
|
-
}
|
|
3784
|
-
export interface GetCheckoutByCartIdResponseNonNullableFields {
|
|
3785
|
-
checkout?: CheckoutNonNullableFields;
|
|
3786
|
-
}
|
|
3787
|
-
export interface GetWixCheckoutURLResponseNonNullableFields {
|
|
3788
|
-
checkoutUrl: string;
|
|
3789
|
-
}
|
|
3790
|
-
export interface GetCheckoutURLResponseNonNullableFields {
|
|
3791
|
-
checkoutUrl: string;
|
|
3792
|
-
}
|
|
3793
|
-
export interface UpdateCheckoutResponseNonNullableFields {
|
|
3794
|
-
checkout?: CheckoutNonNullableFields;
|
|
3795
|
-
}
|
|
3796
|
-
export interface RemoveCouponResponseNonNullableFields {
|
|
3797
|
-
checkout?: CheckoutNonNullableFields;
|
|
3798
|
-
}
|
|
3799
|
-
export interface RemoveGiftCardResponseNonNullableFields {
|
|
3800
|
-
checkout?: CheckoutNonNullableFields;
|
|
3801
|
-
}
|
|
3802
|
-
export interface RemoveOverrideCheckoutUrlResponseNonNullableFields {
|
|
3803
|
-
checkout?: CheckoutNonNullableFields;
|
|
3804
|
-
}
|
|
3805
|
-
export interface AddToCheckoutResponseNonNullableFields {
|
|
3806
|
-
checkout?: CheckoutNonNullableFields;
|
|
3807
|
-
}
|
|
3808
|
-
export interface RemoveLineItemsResponseNonNullableFields {
|
|
3809
|
-
checkout?: CheckoutNonNullableFields;
|
|
3810
|
-
}
|
|
3811
|
-
export interface CreateOrderResponseNonNullableFields {
|
|
3812
|
-
orderId: string;
|
|
3813
|
-
subscriptionId: string;
|
|
3814
|
-
}
|
|
3815
|
-
export interface CreateOrderAndChargeResponseNonNullableFields {
|
|
3816
|
-
orderId: string;
|
|
3817
|
-
subscriptionId: string;
|
|
3818
|
-
}
|
|
3819
|
-
interface HeadersEntryNonNullableFields {
|
|
3820
|
-
key: string;
|
|
3821
|
-
value: string;
|
|
3822
|
-
}
|
|
3823
|
-
export interface RawHttpResponseNonNullableFields {
|
|
3824
|
-
body: Uint8Array;
|
|
3825
|
-
headers: HeadersEntryNonNullableFields[];
|
|
3826
|
-
}
|
|
3827
|
-
export interface UpdateLineItemsQuantityResponseNonNullableFields {
|
|
3828
|
-
checkout?: CheckoutNonNullableFields;
|
|
3829
|
-
}
|
|
3830
|
-
export interface GetCheckoutPaymentSettingsResponseNonNullableFields {
|
|
3831
|
-
blockedPaymentOptions: GetCheckoutPaymentSettingsResponsePaymentOption[];
|
|
3832
|
-
}
|
|
3833
3351
|
export interface BaseEventMetadata {
|
|
3834
3352
|
/**
|
|
3835
3353
|
* App instance ID.
|
|
@@ -3901,6 +3419,8 @@ export interface CheckoutCompletedEnvelope {
|
|
|
3901
3419
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3902
3420
|
* @permissionScope Manage eCommerce - all permissions
|
|
3903
3421
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3422
|
+
* @permissionScope Picasso private app mega scope
|
|
3423
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3904
3424
|
* @permissionScope Manage Orders
|
|
3905
3425
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
3906
3426
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -3928,6 +3448,8 @@ export interface CheckoutCreatedEnvelope {
|
|
|
3928
3448
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3929
3449
|
* @permissionScope Manage eCommerce - all permissions
|
|
3930
3450
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3451
|
+
* @permissionScope Picasso private app mega scope
|
|
3452
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3931
3453
|
* @permissionScope Manage Orders
|
|
3932
3454
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
3933
3455
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -3955,6 +3477,8 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
3955
3477
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3956
3478
|
* @permissionScope Manage eCommerce - all permissions
|
|
3957
3479
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3480
|
+
* @permissionScope Picasso private app mega scope
|
|
3481
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3958
3482
|
* @permissionScope Manage Orders
|
|
3959
3483
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
3960
3484
|
* @permissionId ECOM.READ_CHECKOUTS
|
|
@@ -3964,6 +3488,7 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
3964
3488
|
* @slug updated
|
|
3965
3489
|
*/
|
|
3966
3490
|
export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>): void;
|
|
3491
|
+
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`;
|
|
3967
3492
|
/**
|
|
3968
3493
|
* Creates a checkout.
|
|
3969
3494
|
*
|
|
@@ -4000,6 +3525,8 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
4000
3525
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4001
3526
|
* @permissionScope Manage eCommerce - all permissions
|
|
4002
3527
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3528
|
+
* @permissionScope Picasso private app mega scope
|
|
3529
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4003
3530
|
* @permissionScope Manage Orders
|
|
4004
3531
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4005
3532
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4010,12 +3537,14 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
4010
3537
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4011
3538
|
* @permissionScope Manage eCommerce - all permissions
|
|
4012
3539
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3540
|
+
* @permissionScope Picasso private app mega scope
|
|
3541
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4013
3542
|
* @applicableIdentity APP
|
|
4014
3543
|
* @applicableIdentity VISITOR
|
|
4015
3544
|
* @returns Fulfilled - the newly created checkout.
|
|
4016
3545
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout
|
|
4017
3546
|
*/
|
|
4018
|
-
export declare function createCheckout(options?: CreateCheckoutOptions): Promise<Checkout
|
|
3547
|
+
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>>;
|
|
4019
3548
|
export interface CreateCheckoutOptions {
|
|
4020
3549
|
/** Checkout information. */
|
|
4021
3550
|
checkoutInfo?: Checkout;
|
|
@@ -4073,6 +3602,8 @@ export interface CreateCheckoutOptions {
|
|
|
4073
3602
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4074
3603
|
* @permissionScope Manage eCommerce - all permissions
|
|
4075
3604
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3605
|
+
* @permissionScope Picasso private app mega scope
|
|
3606
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4076
3607
|
* @permissionScope Manage Orders
|
|
4077
3608
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4078
3609
|
* @applicableIdentity APP
|
|
@@ -4080,7 +3611,7 @@ export interface CreateCheckoutOptions {
|
|
|
4080
3611
|
* @returns Fulfilled - the requested checkout.
|
|
4081
3612
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout
|
|
4082
3613
|
*/
|
|
4083
|
-
export declare function getCheckout(_id: string): Promise<Checkout
|
|
3614
|
+
export declare function getCheckout(_id: string): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
|
|
4084
3615
|
/**
|
|
4085
3616
|
* Retrieves the checkout associated with a specified cart.
|
|
4086
3617
|
* @param _id - Cart ID.
|
|
@@ -4099,13 +3630,17 @@ export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNon
|
|
|
4099
3630
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4100
3631
|
* @permissionScope Manage eCommerce - all permissions
|
|
4101
3632
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3633
|
+
* @permissionScope Picasso private app mega scope
|
|
3634
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4102
3635
|
* @permissionScope Manage Orders
|
|
4103
3636
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4104
3637
|
* @applicableIdentity APP
|
|
4105
3638
|
* @applicableIdentity VISITOR
|
|
4106
3639
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId
|
|
4107
3640
|
*/
|
|
4108
|
-
export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByCartIdResponse
|
|
3641
|
+
export declare function getCheckoutByCartId(_id: string): Promise<NonNullablePaths<GetCheckoutByCartIdResponse, {
|
|
3642
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
3643
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4109
3644
|
/**
|
|
4110
3645
|
* Retrieves the checkout page URL of a specified checkout.
|
|
4111
3646
|
*
|
|
@@ -4127,13 +3662,15 @@ export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByC
|
|
|
4127
3662
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4128
3663
|
* @permissionScope Manage eCommerce - all permissions
|
|
4129
3664
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3665
|
+
* @permissionScope Picasso private app mega scope
|
|
3666
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4130
3667
|
* @permissionScope Manage Orders
|
|
4131
3668
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4132
3669
|
* @applicableIdentity APP
|
|
4133
3670
|
* @applicableIdentity VISITOR
|
|
4134
3671
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL
|
|
4135
3672
|
*/
|
|
4136
|
-
export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLResponse
|
|
3673
|
+
export declare function getCheckoutUrl(_id: string): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`>>;
|
|
4137
3674
|
/**
|
|
4138
3675
|
* Updates a checkout.
|
|
4139
3676
|
*
|
|
@@ -4169,6 +3706,8 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
4169
3706
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4170
3707
|
* @permissionScope Manage eCommerce - all permissions
|
|
4171
3708
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3709
|
+
* @permissionScope Picasso private app mega scope
|
|
3710
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4172
3711
|
* @permissionScope Manage Orders
|
|
4173
3712
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4174
3713
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4179,12 +3718,14 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
4179
3718
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4180
3719
|
* @permissionScope Manage eCommerce - all permissions
|
|
4181
3720
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3721
|
+
* @permissionScope Picasso private app mega scope
|
|
3722
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4182
3723
|
* @applicableIdentity APP
|
|
4183
3724
|
* @applicableIdentity VISITOR
|
|
4184
3725
|
* @returns Updated checkout.
|
|
4185
3726
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout
|
|
4186
3727
|
*/
|
|
4187
|
-
export declare function updateCheckout(_id: string
|
|
3728
|
+
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>>;
|
|
4188
3729
|
export interface UpdateCheckout {
|
|
4189
3730
|
/**
|
|
4190
3731
|
* Checkout ID.
|
|
@@ -4404,13 +3945,17 @@ export interface UpdateCheckoutOptions {
|
|
|
4404
3945
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4405
3946
|
* @permissionScope Manage eCommerce - all permissions
|
|
4406
3947
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3948
|
+
* @permissionScope Picasso private app mega scope
|
|
3949
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4407
3950
|
* @permissionScope Manage Orders
|
|
4408
3951
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4409
3952
|
* @applicableIdentity APP
|
|
4410
3953
|
* @applicableIdentity VISITOR
|
|
4411
3954
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon
|
|
4412
3955
|
*/
|
|
4413
|
-
export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
|
|
3956
|
+
export declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCouponResponse, {
|
|
3957
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
3958
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4414
3959
|
/**
|
|
4415
3960
|
* Removes the gift card from a specified checkout.
|
|
4416
3961
|
*
|
|
@@ -4428,13 +3973,17 @@ export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
|
|
|
4428
3973
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4429
3974
|
* @permissionScope Manage eCommerce - all permissions
|
|
4430
3975
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
3976
|
+
* @permissionScope Picasso private app mega scope
|
|
3977
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4431
3978
|
* @permissionScope Manage Orders
|
|
4432
3979
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4433
3980
|
* @applicableIdentity APP
|
|
4434
3981
|
* @applicableIdentity VISITOR
|
|
4435
3982
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard
|
|
4436
3983
|
*/
|
|
4437
|
-
export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardResponse
|
|
3984
|
+
export declare function removeGiftCard(_id: string): Promise<NonNullablePaths<RemoveGiftCardResponse, {
|
|
3985
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
3986
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4438
3987
|
/**
|
|
4439
3988
|
* Removes the `overrideCheckoutUrl` from a specified checkout.
|
|
4440
3989
|
*
|
|
@@ -4450,13 +3999,17 @@ export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardRespo
|
|
|
4450
3999
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4451
4000
|
* @permissionScope Manage eCommerce - all permissions
|
|
4452
4001
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4002
|
+
* @permissionScope Picasso private app mega scope
|
|
4003
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4453
4004
|
* @permissionScope Manage Orders
|
|
4454
4005
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4455
4006
|
* @applicableIdentity APP
|
|
4456
4007
|
* @applicableIdentity VISITOR
|
|
4457
4008
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl
|
|
4458
4009
|
*/
|
|
4459
|
-
export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOverrideCheckoutUrlResponse
|
|
4010
|
+
export declare function removeOverrideCheckoutUrl(_id: string): Promise<NonNullablePaths<RemoveOverrideCheckoutUrlResponse, {
|
|
4011
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4012
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4460
4013
|
/**
|
|
4461
4014
|
* Adds catalog line items and/or custom line items to a checkout.
|
|
4462
4015
|
*
|
|
@@ -4484,6 +4037,8 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
4484
4037
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4485
4038
|
* @permissionScope Manage eCommerce - all permissions
|
|
4486
4039
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4040
|
+
* @permissionScope Picasso private app mega scope
|
|
4041
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4487
4042
|
* @permissionScope Manage Orders
|
|
4488
4043
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4489
4044
|
* @permissionScope Manage Stores - all permissions
|
|
@@ -4494,11 +4049,15 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
4494
4049
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4495
4050
|
* @permissionScope Manage eCommerce - all permissions
|
|
4496
4051
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4052
|
+
* @permissionScope Picasso private app mega scope
|
|
4053
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4497
4054
|
* @applicableIdentity APP
|
|
4498
4055
|
* @applicableIdentity VISITOR
|
|
4499
4056
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout
|
|
4500
4057
|
*/
|
|
4501
|
-
export declare function addToCheckout(_id: string, options?: AddToCheckoutOptions): Promise<AddToCheckoutResponse
|
|
4058
|
+
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, {
|
|
4059
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4060
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4502
4061
|
export interface AddToCheckoutOptions {
|
|
4503
4062
|
/**
|
|
4504
4063
|
* Catalog line items.
|
|
@@ -4532,13 +4091,17 @@ export interface AddToCheckoutOptions {
|
|
|
4532
4091
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4533
4092
|
* @permissionScope Manage eCommerce - all permissions
|
|
4534
4093
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4094
|
+
* @permissionScope Picasso private app mega scope
|
|
4095
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4535
4096
|
* @permissionScope Manage Orders
|
|
4536
4097
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4537
4098
|
* @applicableIdentity APP
|
|
4538
4099
|
* @applicableIdentity VISITOR
|
|
4539
4100
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems
|
|
4540
4101
|
*/
|
|
4541
|
-
export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<RemoveLineItemsResponse
|
|
4102
|
+
export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsResponse, {
|
|
4103
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4104
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4542
4105
|
/**
|
|
4543
4106
|
* Creates an order from a specified checkout.
|
|
4544
4107
|
*
|
|
@@ -4563,13 +4126,15 @@ export declare function removeLineItems(_id: string, lineItemIds: string[]): Pro
|
|
|
4563
4126
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4564
4127
|
* @permissionScope Manage eCommerce - all permissions
|
|
4565
4128
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4129
|
+
* @permissionScope Picasso private app mega scope
|
|
4130
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4566
4131
|
* @permissionScope Manage Orders
|
|
4567
4132
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4568
4133
|
* @applicableIdentity APP
|
|
4569
4134
|
* @applicableIdentity VISITOR
|
|
4570
4135
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder
|
|
4571
4136
|
*/
|
|
4572
|
-
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<CreateOrderResponse
|
|
4137
|
+
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`>>;
|
|
4573
4138
|
export interface CreateOrderOptions {
|
|
4574
4139
|
/** Whether the payment method should be saved on the order. */
|
|
4575
4140
|
savePaymentMethod?: boolean;
|
|
@@ -4599,6 +4164,8 @@ export interface CreateOrderAndChargeOptions {
|
|
|
4599
4164
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4600
4165
|
* @permissionScope Manage eCommerce - all permissions
|
|
4601
4166
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4167
|
+
* @permissionScope Picasso private app mega scope
|
|
4168
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4602
4169
|
* @permissionScope Manage Orders
|
|
4603
4170
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4604
4171
|
* @applicableIdentity APP
|
|
@@ -4630,11 +4197,15 @@ export declare function markCheckoutAsCompleted(_id: string): Promise<void>;
|
|
|
4630
4197
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
4631
4198
|
* @permissionScope Manage eCommerce - all permissions
|
|
4632
4199
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
|
|
4200
|
+
* @permissionScope Picasso private app mega scope
|
|
4201
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
4633
4202
|
* @permissionScope Manage Orders
|
|
4634
4203
|
* @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
|
|
4635
4204
|
* @applicableIdentity APP
|
|
4636
4205
|
* @applicableIdentity VISITOR
|
|
4637
4206
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity
|
|
4638
4207
|
*/
|
|
4639
|
-
export declare function updateLineItemsQuantity(_id: string, lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse
|
|
4208
|
+
export declare function updateLineItemsQuantity(_id: string, lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`>[]): Promise<NonNullablePaths<UpdateLineItemsQuantityResponse, {
|
|
4209
|
+
[P in CheckoutNonNullablePaths]: `checkout.${P}`;
|
|
4210
|
+
}[CheckoutNonNullablePaths]>>;
|
|
4640
4211
|
export {};
|