@wix/auto_sdk_ecom_checkout 1.0.13 → 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 +28 -495
- 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 +28 -495
- 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 +32 -566
- 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 +32 -566
- 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.
|
|
@@ -3970,6 +3488,7 @@ export interface CheckoutUpdatedEnvelope {
|
|
|
3970
3488
|
* @slug updated
|
|
3971
3489
|
*/
|
|
3972
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`;
|
|
3973
3492
|
/**
|
|
3974
3493
|
* Creates a checkout.
|
|
3975
3494
|
*
|
|
@@ -4025,7 +3544,7 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
|
|
|
4025
3544
|
* @returns Fulfilled - the newly created checkout.
|
|
4026
3545
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout
|
|
4027
3546
|
*/
|
|
4028
|
-
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>>;
|
|
4029
3548
|
export interface CreateCheckoutOptions {
|
|
4030
3549
|
/** Checkout information. */
|
|
4031
3550
|
checkoutInfo?: Checkout;
|
|
@@ -4092,7 +3611,7 @@ export interface CreateCheckoutOptions {
|
|
|
4092
3611
|
* @returns Fulfilled - the requested checkout.
|
|
4093
3612
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout
|
|
4094
3613
|
*/
|
|
4095
|
-
export declare function getCheckout(_id: string): Promise<Checkout
|
|
3614
|
+
export declare function getCheckout(_id: string): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
|
|
4096
3615
|
/**
|
|
4097
3616
|
* Retrieves the checkout associated with a specified cart.
|
|
4098
3617
|
* @param _id - Cart ID.
|
|
@@ -4119,7 +3638,9 @@ export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNon
|
|
|
4119
3638
|
* @applicableIdentity VISITOR
|
|
4120
3639
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId
|
|
4121
3640
|
*/
|
|
4122
|
-
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]>>;
|
|
4123
3644
|
/**
|
|
4124
3645
|
* Retrieves the checkout page URL of a specified checkout.
|
|
4125
3646
|
*
|
|
@@ -4149,7 +3670,7 @@ export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByC
|
|
|
4149
3670
|
* @applicableIdentity VISITOR
|
|
4150
3671
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL
|
|
4151
3672
|
*/
|
|
4152
|
-
export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLResponse
|
|
3673
|
+
export declare function getCheckoutUrl(_id: string): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`>>;
|
|
4153
3674
|
/**
|
|
4154
3675
|
* Updates a checkout.
|
|
4155
3676
|
*
|
|
@@ -4204,7 +3725,7 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
|
|
|
4204
3725
|
* @returns Updated checkout.
|
|
4205
3726
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout
|
|
4206
3727
|
*/
|
|
4207
|
-
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>>;
|
|
4208
3729
|
export interface UpdateCheckout {
|
|
4209
3730
|
/**
|
|
4210
3731
|
* Checkout ID.
|
|
@@ -4432,7 +3953,9 @@ export interface UpdateCheckoutOptions {
|
|
|
4432
3953
|
* @applicableIdentity VISITOR
|
|
4433
3954
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon
|
|
4434
3955
|
*/
|
|
4435
|
-
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]>>;
|
|
4436
3959
|
/**
|
|
4437
3960
|
* Removes the gift card from a specified checkout.
|
|
4438
3961
|
*
|
|
@@ -4458,7 +3981,9 @@ export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
|
|
|
4458
3981
|
* @applicableIdentity VISITOR
|
|
4459
3982
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard
|
|
4460
3983
|
*/
|
|
4461
|
-
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]>>;
|
|
4462
3987
|
/**
|
|
4463
3988
|
* Removes the `overrideCheckoutUrl` from a specified checkout.
|
|
4464
3989
|
*
|
|
@@ -4482,7 +4007,9 @@ export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardRespo
|
|
|
4482
4007
|
* @applicableIdentity VISITOR
|
|
4483
4008
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl
|
|
4484
4009
|
*/
|
|
4485
|
-
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]>>;
|
|
4486
4013
|
/**
|
|
4487
4014
|
* Adds catalog line items and/or custom line items to a checkout.
|
|
4488
4015
|
*
|
|
@@ -4528,7 +4055,9 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
|
|
|
4528
4055
|
* @applicableIdentity VISITOR
|
|
4529
4056
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout
|
|
4530
4057
|
*/
|
|
4531
|
-
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]>>;
|
|
4532
4061
|
export interface AddToCheckoutOptions {
|
|
4533
4062
|
/**
|
|
4534
4063
|
* Catalog line items.
|
|
@@ -4570,7 +4099,9 @@ export interface AddToCheckoutOptions {
|
|
|
4570
4099
|
* @applicableIdentity VISITOR
|
|
4571
4100
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems
|
|
4572
4101
|
*/
|
|
4573
|
-
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]>>;
|
|
4574
4105
|
/**
|
|
4575
4106
|
* Creates an order from a specified checkout.
|
|
4576
4107
|
*
|
|
@@ -4603,7 +4134,7 @@ export declare function removeLineItems(_id: string, lineItemIds: string[]): Pro
|
|
|
4603
4134
|
* @applicableIdentity VISITOR
|
|
4604
4135
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder
|
|
4605
4136
|
*/
|
|
4606
|
-
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<CreateOrderResponse
|
|
4137
|
+
export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`>>;
|
|
4607
4138
|
export interface CreateOrderOptions {
|
|
4608
4139
|
/** Whether the payment method should be saved on the order. */
|
|
4609
4140
|
savePaymentMethod?: boolean;
|
|
@@ -4674,5 +4205,7 @@ export declare function markCheckoutAsCompleted(_id: string): Promise<void>;
|
|
|
4674
4205
|
* @applicableIdentity VISITOR
|
|
4675
4206
|
* @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity
|
|
4676
4207
|
*/
|
|
4677
|
-
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]>>;
|
|
4678
4211
|
export {};
|