@wix/auto_sdk_ecom_checkout 1.0.13 → 1.0.15

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.
Files changed (33) hide show
  1. package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
  2. package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
  3. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
  4. package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +14 -14
  5. package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
  6. package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -503
  7. package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +28 -495
  8. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
  9. package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
  10. package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
  11. package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
  12. package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +14 -14
  13. package/build/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
  14. package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -503
  15. package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +28 -495
  16. package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
  17. package/build/internal/cjs/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
  18. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
  19. package/build/internal/cjs/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
  20. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.d.ts +18 -18
  21. package/build/internal/cjs/src/ecom-v1-checkout-checkout.public.js.map +1 -1
  22. package/build/internal/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -570
  23. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +38 -566
  24. package/build/internal/cjs/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
  25. package/build/internal/es/src/ecom-v1-checkout-checkout.context.d.ts +1 -1
  26. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.d.ts +16 -16
  27. package/build/internal/es/src/ecom-v1-checkout-checkout.meta.js.map +1 -1
  28. package/build/internal/es/src/ecom-v1-checkout-checkout.public.d.ts +18 -18
  29. package/build/internal/es/src/ecom-v1-checkout-checkout.public.js.map +1 -1
  30. package/build/internal/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -570
  31. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.d.ts +38 -566
  32. package/build/internal/es/src/ecom-v1-checkout-checkout.universal.js.map +1 -1
  33. 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.
@@ -2662,6 +2663,12 @@ export interface CreateOrderAndChargeResponse extends CreateOrderAndChargeRespon
2662
2663
  * + If the total price is not 0, but the payment is covered by alternative payment methods, such as a gift card.
2663
2664
  */
2664
2665
  paymentGatewayOrderId?: string | null;
2666
+ /**
2667
+ * Whether an order was successfully created from this checkout and the payment transaction was completed
2668
+ * @internal
2669
+ * @readonly
2670
+ */
2671
+ checkoutCompleted?: boolean;
2665
2672
  }
2666
2673
  /** @oneof */
2667
2674
  export interface CreateOrderAndChargeResponseIdOneOf {
@@ -3518,556 +3525,6 @@ export declare enum WebhookIdentityType {
3518
3525
  WIX_USER = "WIX_USER",
3519
3526
  APP = "APP"
3520
3527
  }
3521
- interface CatalogReferenceNonNullableFields {
3522
- catalogItemId: string;
3523
- appId: string;
3524
- }
3525
- interface ProductNameNonNullableFields {
3526
- original: string;
3527
- }
3528
- interface MultiCurrencyPriceNonNullableFields {
3529
- amount: string;
3530
- convertedAmount: string;
3531
- formattedAmount: string;
3532
- formattedConvertedAmount: string;
3533
- }
3534
- interface TaxRateBreakdownNonNullableFields {
3535
- name: string;
3536
- rate: string;
3537
- tax?: MultiCurrencyPriceNonNullableFields;
3538
- exemptAmount?: MultiCurrencyPriceNonNullableFields;
3539
- exemptionIds: number[];
3540
- taxableAmount?: MultiCurrencyPriceNonNullableFields;
3541
- }
3542
- interface TaxBreakdownNonNullableFields {
3543
- nonTaxableAmount?: MultiCurrencyPriceNonNullableFields;
3544
- taxAmount?: MultiCurrencyPriceNonNullableFields;
3545
- taxableAmount?: MultiCurrencyPriceNonNullableFields;
3546
- jurisdictionType: JurisdictionType;
3547
- }
3548
- interface ItemTaxFullDetailsNonNullableFields {
3549
- taxableAmount?: MultiCurrencyPriceNonNullableFields;
3550
- taxRate: string;
3551
- totalTax?: MultiCurrencyPriceNonNullableFields;
3552
- rateBreakdown: TaxRateBreakdownNonNullableFields[];
3553
- exemptAmount?: MultiCurrencyPriceNonNullableFields;
3554
- taxBreakdown: TaxBreakdownNonNullableFields[];
3555
- }
3556
- interface PlainTextValueNonNullableFields {
3557
- original: string;
3558
- }
3559
- interface ColorNonNullableFields {
3560
- original: string;
3561
- }
3562
- interface DescriptionLineNameNonNullableFields {
3563
- original: string;
3564
- }
3565
- interface DescriptionLineNonNullableFields {
3566
- plainText?: PlainTextValueNonNullableFields;
3567
- colorInfo?: ColorNonNullableFields;
3568
- plainTextValue?: PlainTextValueNonNullableFields;
3569
- color: string;
3570
- name?: DescriptionLineNameNonNullableFields;
3571
- lineType: DescriptionLineType;
3572
- }
3573
- interface ItemAvailabilityInfoNonNullableFields {
3574
- status: ItemAvailabilityStatus;
3575
- }
3576
- interface PhysicalPropertiesNonNullableFields {
3577
- shippable: boolean;
3578
- }
3579
- interface GroupNonNullableFields {
3580
- name: string;
3581
- }
3582
- interface ScopeNonNullableFields {
3583
- namespace: string;
3584
- group?: GroupNonNullableFields;
3585
- }
3586
- interface ItemTypeNonNullableFields {
3587
- preset: ItemTypeItemType;
3588
- custom: string;
3589
- }
3590
- interface FreeTrialPeriodNonNullableFields {
3591
- frequency: SubscriptionFrequency;
3592
- interval: number;
3593
- }
3594
- interface SubscriptionSettingsNonNullableFields {
3595
- frequency: SubscriptionFrequency;
3596
- autoRenewal: boolean;
3597
- /** @internal */
3598
- enableCustomerCancellation: boolean;
3599
- /** @internal */
3600
- freeTrialPeriod?: FreeTrialPeriodNonNullableFields;
3601
- }
3602
- interface TitleNonNullableFields {
3603
- original: string;
3604
- }
3605
- interface DescriptionNonNullableFields {
3606
- original: string;
3607
- }
3608
- interface SubscriptionOptionInfoNonNullableFields {
3609
- subscriptionSettings?: SubscriptionSettingsNonNullableFields;
3610
- title?: TitleNonNullableFields;
3611
- description?: DescriptionNonNullableFields;
3612
- }
3613
- interface SecuredMediaNonNullableFields {
3614
- _id: string;
3615
- fileName: string;
3616
- fileType: FileType;
3617
- }
3618
- interface PriceDescriptionNonNullableFields {
3619
- original: string;
3620
- }
3621
- interface PaymentOptionNonNullableFields {
3622
- value: PaymentOptionType;
3623
- }
3624
- interface CatalogOverrideFieldsNonNullableFields {
3625
- productName?: ProductNameNonNullableFields;
3626
- descriptionLines: DescriptionLineNonNullableFields[];
3627
- physicalProperties?: PhysicalPropertiesNonNullableFields;
3628
- image: string;
3629
- paymentOption?: PaymentOptionNonNullableFields;
3630
- }
3631
- interface TaxableAddressNonNullableFields {
3632
- addressType: TaxableAddressType;
3633
- }
3634
- interface PolicyNonNullableFields {
3635
- content: string;
3636
- }
3637
- interface TranslatableStringNonNullableFields {
3638
- original: string;
3639
- }
3640
- interface ItemModifierNonNullableFields {
3641
- _id: string;
3642
- label?: TranslatableStringNonNullableFields;
3643
- details?: TranslatableStringNonNullableFields;
3644
- price?: MultiCurrencyPriceNonNullableFields;
3645
- }
3646
- interface ModifierGroupNonNullableFields {
3647
- _id: string;
3648
- name?: TranslatableStringNonNullableFields;
3649
- modifiers: ItemModifierNonNullableFields[];
3650
- }
3651
- interface LineItemNonNullableFields {
3652
- quantity: number;
3653
- catalogReference?: CatalogReferenceNonNullableFields;
3654
- productName?: ProductNameNonNullableFields;
3655
- url: string;
3656
- price?: MultiCurrencyPriceNonNullableFields;
3657
- lineItemPrice?: MultiCurrencyPriceNonNullableFields;
3658
- fullPrice?: MultiCurrencyPriceNonNullableFields;
3659
- priceBeforeDiscounts?: MultiCurrencyPriceNonNullableFields;
3660
- totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
3661
- totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
3662
- taxDetails?: ItemTaxFullDetailsNonNullableFields;
3663
- discount?: MultiCurrencyPriceNonNullableFields;
3664
- descriptionLines: DescriptionLineNonNullableFields[];
3665
- media: string;
3666
- availability?: ItemAvailabilityInfoNonNullableFields;
3667
- physicalProperties?: PhysicalPropertiesNonNullableFields;
3668
- /** @internal */
3669
- couponScopes: ScopeNonNullableFields[];
3670
- itemType?: ItemTypeNonNullableFields;
3671
- subscriptionOptionInfo?: SubscriptionOptionInfoNonNullableFields;
3672
- digitalFile?: SecuredMediaNonNullableFields;
3673
- paymentOption: PaymentOptionType;
3674
- priceDescription?: PriceDescriptionNonNullableFields;
3675
- depositAmount?: MultiCurrencyPriceNonNullableFields;
3676
- customLineItem: boolean;
3677
- catalogOverrideFields?: CatalogOverrideFieldsNonNullableFields;
3678
- /** @internal */
3679
- priceUndetermined: boolean;
3680
- /** @internal */
3681
- fixedQuantity: boolean;
3682
- savePaymentMethod: boolean;
3683
- /** @internal */
3684
- taxableAddress?: TaxableAddressNonNullableFields;
3685
- /** @internal */
3686
- policies: PolicyNonNullableFields[];
3687
- /** @internal */
3688
- membersOnly: boolean;
3689
- /** @internal */
3690
- modifierGroups: ModifierGroupNonNullableFields[];
3691
- /** @internal */
3692
- modifiersTotalPrice?: MultiCurrencyPriceNonNullableFields;
3693
- }
3694
- interface StreetAddressNonNullableFields {
3695
- number: string;
3696
- name: string;
3697
- apt: string;
3698
- }
3699
- interface ApiAddressNonNullableFields {
3700
- streetAddress?: StreetAddressNonNullableFields;
3701
- }
3702
- interface CommonVatIdNonNullableFields {
3703
- _id: string;
3704
- type: CommonVatType;
3705
- }
3706
- interface FullAddressContactDetailsNonNullableFields {
3707
- vatId?: CommonVatIdNonNullableFields;
3708
- }
3709
- interface AddressWithContactNonNullableFields {
3710
- address?: ApiAddressNonNullableFields;
3711
- contactDetails?: FullAddressContactDetailsNonNullableFields;
3712
- }
3713
- interface PickupDetailsNonNullableFields {
3714
- address?: ApiAddressNonNullableFields;
3715
- businessLocation: boolean;
3716
- pickupMethod: PickupMethod;
3717
- }
3718
- interface DeliveryLogisticsNonNullableFields {
3719
- pickupDetails?: PickupDetailsNonNullableFields;
3720
- }
3721
- interface SelectedCarrierServiceOptionPricesNonNullableFields {
3722
- totalPriceAfterTax?: MultiCurrencyPriceNonNullableFields;
3723
- totalPriceBeforeTax?: MultiCurrencyPriceNonNullableFields;
3724
- taxDetails?: ItemTaxFullDetailsNonNullableFields;
3725
- totalDiscount?: MultiCurrencyPriceNonNullableFields;
3726
- price?: MultiCurrencyPriceNonNullableFields;
3727
- }
3728
- interface SelectedCarrierServiceOptionOtherChargeNonNullableFields {
3729
- type: ChargeType;
3730
- cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
3731
- }
3732
- interface CarrierNonNullableFields {
3733
- code: string;
3734
- }
3735
- interface ApplicableLineItemsNonNullableFields {
3736
- lineItemIds: string[];
3737
- }
3738
- interface DeliveryAllocationNonNullableFields {
3739
- deliveryCarrier?: CarrierNonNullableFields;
3740
- applicableLineItems?: ApplicableLineItemsNonNullableFields;
3741
- }
3742
- interface SelectedCarrierServiceOptionNonNullableFields {
3743
- code: string;
3744
- title: string;
3745
- logistics?: DeliveryLogisticsNonNullableFields;
3746
- cost?: SelectedCarrierServiceOptionPricesNonNullableFields;
3747
- requestedShippingOption: boolean;
3748
- otherCharges: SelectedCarrierServiceOptionOtherChargeNonNullableFields[];
3749
- deliveryAllocations: DeliveryAllocationNonNullableFields[];
3750
- }
3751
- interface ShippingRegionNonNullableFields {
3752
- _id: string;
3753
- name: string;
3754
- }
3755
- interface OtherChargeNonNullableFields {
3756
- type: ChargeType;
3757
- price?: MultiCurrencyPriceNonNullableFields;
3758
- }
3759
- interface ShippingPriceNonNullableFields {
3760
- price?: MultiCurrencyPriceNonNullableFields;
3761
- otherCharges: OtherChargeNonNullableFields[];
3762
- }
3763
- interface ShippingOptionNonNullableFields {
3764
- code: string;
3765
- title: string;
3766
- logistics?: DeliveryLogisticsNonNullableFields;
3767
- cost?: ShippingPriceNonNullableFields;
3768
- deliveryAllocations: DeliveryAllocationNonNullableFields[];
3769
- }
3770
- interface CarrierServiceOptionNonNullableFields {
3771
- carrierId: string;
3772
- shippingOptions: ShippingOptionNonNullableFields[];
3773
- }
3774
- interface ShippingInfoNonNullableFields {
3775
- shippingDestination?: AddressWithContactNonNullableFields;
3776
- selectedCarrierServiceOption?: SelectedCarrierServiceOptionNonNullableFields;
3777
- region?: ShippingRegionNonNullableFields;
3778
- carrierServiceOptions: CarrierServiceOptionNonNullableFields[];
3779
- }
3780
- interface BuyerInfoNonNullableFields {
3781
- visitorId: string;
3782
- memberId: string;
3783
- openAccess: boolean;
3784
- }
3785
- interface PriceSummaryNonNullableFields {
3786
- subtotal?: MultiCurrencyPriceNonNullableFields;
3787
- shipping?: MultiCurrencyPriceNonNullableFields;
3788
- tax?: MultiCurrencyPriceNonNullableFields;
3789
- discount?: MultiCurrencyPriceNonNullableFields;
3790
- total?: MultiCurrencyPriceNonNullableFields;
3791
- additionalFees?: MultiCurrencyPriceNonNullableFields;
3792
- }
3793
- interface ApplicationErrorNonNullableFields {
3794
- code: string;
3795
- description: string;
3796
- }
3797
- interface FieldViolationNonNullableFields {
3798
- field: string;
3799
- description: string;
3800
- violatedRule: RuleType;
3801
- }
3802
- interface ValidationErrorNonNullableFields {
3803
- fieldViolations: FieldViolationNonNullableFields[];
3804
- }
3805
- interface DetailsNonNullableFields {
3806
- applicationError?: ApplicationErrorNonNullableFields;
3807
- validationError?: ValidationErrorNonNullableFields;
3808
- }
3809
- interface CarrierErrorNonNullableFields {
3810
- carrierId: string;
3811
- error?: DetailsNonNullableFields;
3812
- }
3813
- interface CarrierErrorsNonNullableFields {
3814
- errors: CarrierErrorNonNullableFields[];
3815
- }
3816
- interface CalculationErrorsNonNullableFields {
3817
- generalShippingCalculationError?: DetailsNonNullableFields;
3818
- carrierErrors?: CarrierErrorsNonNullableFields;
3819
- taxCalculationError?: DetailsNonNullableFields;
3820
- couponCalculationError?: DetailsNonNullableFields;
3821
- giftCardCalculationError?: DetailsNonNullableFields;
3822
- orderValidationErrors: ApplicationErrorNonNullableFields[];
3823
- membershipError?: DetailsNonNullableFields;
3824
- discountsCalculationError?: DetailsNonNullableFields;
3825
- }
3826
- interface GiftCardNonNullableFields {
3827
- _id: string;
3828
- obfuscatedCode: string;
3829
- amount?: MultiCurrencyPriceNonNullableFields;
3830
- appId: string;
3831
- }
3832
- interface CouponNonNullableFields {
3833
- _id: string;
3834
- code: string;
3835
- amount?: MultiCurrencyPriceNonNullableFields;
3836
- name: string;
3837
- couponType: string;
3838
- }
3839
- interface MerchantDiscountNonNullableFields {
3840
- amount?: MultiCurrencyPriceNonNullableFields;
3841
- }
3842
- interface DiscountRuleNameNonNullableFields {
3843
- original: string;
3844
- }
3845
- interface DiscountRuleNonNullableFields {
3846
- _id: string;
3847
- name?: DiscountRuleNameNonNullableFields;
3848
- amount?: MultiCurrencyPriceNonNullableFields;
3849
- }
3850
- interface LineItemDiscountNonNullableFields {
3851
- _id: string;
3852
- totalDiscountAmount?: MultiCurrencyPriceNonNullableFields;
3853
- }
3854
- interface AppliedDiscountNonNullableFields {
3855
- coupon?: CouponNonNullableFields;
3856
- merchantDiscount?: MerchantDiscountNonNullableFields;
3857
- discountRule?: DiscountRuleNonNullableFields;
3858
- discountType: DiscountType;
3859
- lineItemIds: string[];
3860
- lineItemDiscounts: LineItemDiscountNonNullableFields[];
3861
- }
3862
- interface CustomFieldNonNullableFields {
3863
- title: string;
3864
- }
3865
- interface AutoTaxFallbackCalculationDetailsNonNullableFields {
3866
- fallbackReason: FallbackReason;
3867
- error?: ApplicationErrorNonNullableFields;
3868
- }
3869
- interface TaxCalculationDetailsNonNullableFields {
3870
- manualRateReason: ManualCalculationReason;
3871
- autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetailsNonNullableFields;
3872
- rateType: RateType;
3873
- }
3874
- interface AggregatedTaxBreakdownNonNullableFields {
3875
- taxName: string;
3876
- taxType: string;
3877
- jurisdiction: string;
3878
- jurisdictionTypeEnum: JurisdictionType;
3879
- rate: string;
3880
- aggregatedTaxAmount?: MultiCurrencyPriceNonNullableFields;
3881
- aggregatedTaxableAmount?: MultiCurrencyPriceNonNullableFields;
3882
- }
3883
- interface TaxSummaryNonNullableFields {
3884
- taxableAmount?: MultiCurrencyPriceNonNullableFields;
3885
- totalTax?: MultiCurrencyPriceNonNullableFields;
3886
- manualTaxRate: string;
3887
- calculationDetails?: TaxCalculationDetailsNonNullableFields;
3888
- totalExempt?: MultiCurrencyPriceNonNullableFields;
3889
- aggregatedTaxBreakdown: AggregatedTaxBreakdownNonNullableFields[];
3890
- }
3891
- interface CreatedByNonNullableFields {
3892
- userId: string;
3893
- memberId: string;
3894
- visitorId: string;
3895
- appId: string;
3896
- }
3897
- interface MembershipNameNonNullableFields {
3898
- original: string;
3899
- }
3900
- interface MembershipPaymentCreditsNonNullableFields {
3901
- total: number;
3902
- remaining: number;
3903
- }
3904
- interface MembershipNonNullableFields {
3905
- _id: string;
3906
- appId: string;
3907
- name?: MembershipNameNonNullableFields;
3908
- lineItemIds: string[];
3909
- credits?: MembershipPaymentCreditsNonNullableFields;
3910
- }
3911
- interface InvalidMembershipNonNullableFields {
3912
- membership?: MembershipNonNullableFields;
3913
- reason: string;
3914
- }
3915
- interface SelectedMembershipNonNullableFields {
3916
- _id: string;
3917
- appId: string;
3918
- lineItemIds: string[];
3919
- }
3920
- interface SelectedMembershipsNonNullableFields {
3921
- memberships: SelectedMembershipNonNullableFields[];
3922
- }
3923
- interface MembershipOptionsNonNullableFields {
3924
- eligibleMemberships: MembershipNonNullableFields[];
3925
- invalidMemberships: InvalidMembershipNonNullableFields[];
3926
- selectedMemberships?: SelectedMembershipsNonNullableFields;
3927
- }
3928
- interface AdditionalFeeNonNullableFields {
3929
- name: string;
3930
- price?: MultiCurrencyPriceNonNullableFields;
3931
- taxDetails?: ItemTaxFullDetailsNonNullableFields;
3932
- priceBeforeTax?: MultiCurrencyPriceNonNullableFields;
3933
- priceAfterTax?: MultiCurrencyPriceNonNullableFields;
3934
- lineItemIds: string[];
3935
- source: AdditionalFeeSource;
3936
- }
3937
- interface ConversionInfoNonNullableFields {
3938
- siteCurrency: string;
3939
- conversionRate: string;
3940
- }
3941
- interface OtherNonNullableFields {
3942
- name: NameInOther;
3943
- }
3944
- interface TargetLineItemNonNullableFields {
3945
- name: NameInLineItem;
3946
- /** @internal */
3947
- suggestedFix: SuggestedFix;
3948
- }
3949
- interface TargetNonNullableFields {
3950
- other?: OtherNonNullableFields;
3951
- lineItem?: TargetLineItemNonNullableFields;
3952
- }
3953
- interface ViolationNonNullableFields {
3954
- severity: Severity;
3955
- target?: TargetNonNullableFields;
3956
- }
3957
- interface CustomSettingsNonNullableFields {
3958
- lockGiftCard: boolean;
3959
- lockCouponCode: boolean;
3960
- disabledPolicyAgreementCheckbox: boolean;
3961
- disabledManualPayment: boolean;
3962
- }
3963
- interface CustomContentReferenceNonNullableFields {
3964
- appId: string;
3965
- componentId: string;
3966
- }
3967
- interface ExternalReferenceNonNullableFields {
3968
- appId: string;
3969
- }
3970
- interface ChargeNonNullableFields {
3971
- cycleFrom: number;
3972
- priceSummary?: PriceSummaryNonNullableFields;
3973
- }
3974
- interface SubscriptionChargesNonNullableFields {
3975
- lineItemIds: string[];
3976
- charges: ChargeNonNullableFields[];
3977
- }
3978
- export interface CheckoutNonNullableFields {
3979
- lineItems: LineItemNonNullableFields[];
3980
- billingInfo?: AddressWithContactNonNullableFields;
3981
- shippingInfo?: ShippingInfoNonNullableFields;
3982
- buyerInfo?: BuyerInfoNonNullableFields;
3983
- conversionCurrency: string;
3984
- priceSummary?: PriceSummaryNonNullableFields;
3985
- calculationErrors?: CalculationErrorsNonNullableFields;
3986
- giftCard?: GiftCardNonNullableFields;
3987
- appliedDiscounts: AppliedDiscountNonNullableFields[];
3988
- customFields: CustomFieldNonNullableFields[];
3989
- weightUnit: WeightUnit;
3990
- taxSummary?: TaxSummaryNonNullableFields;
3991
- currency: string;
3992
- channelType: ChannelType;
3993
- siteLanguage: string;
3994
- buyerLanguage: string;
3995
- completed: boolean;
3996
- taxIncludedInPrice: boolean;
3997
- createdBy?: CreatedByNonNullableFields;
3998
- payNow?: PriceSummaryNonNullableFields;
3999
- payLater?: PriceSummaryNonNullableFields;
4000
- membershipOptions?: MembershipOptionsNonNullableFields;
4001
- additionalFees: AdditionalFeeNonNullableFields[];
4002
- conversionInfo?: ConversionInfoNonNullableFields;
4003
- payNowTotalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
4004
- violations: ViolationNonNullableFields[];
4005
- totalAfterGiftCard?: MultiCurrencyPriceNonNullableFields;
4006
- customSettings?: CustomSettingsNonNullableFields;
4007
- customContentReference?: CustomContentReferenceNonNullableFields;
4008
- externalReference?: ExternalReferenceNonNullableFields;
4009
- /** @internal */
4010
- payAfterFreeTrial?: PriceSummaryNonNullableFields;
4011
- /** @internal */
4012
- paymentRequired: boolean;
4013
- /** @internal */
4014
- subscriptionCharges: SubscriptionChargesNonNullableFields[];
4015
- }
4016
- export interface CreateCheckoutResponseNonNullableFields {
4017
- checkout?: CheckoutNonNullableFields;
4018
- }
4019
- export interface GetCheckoutResponseNonNullableFields {
4020
- checkout?: CheckoutNonNullableFields;
4021
- }
4022
- export interface GetCheckoutByCartIdResponseNonNullableFields {
4023
- checkout?: CheckoutNonNullableFields;
4024
- }
4025
- export interface GetWixCheckoutURLResponseNonNullableFields {
4026
- checkoutUrl: string;
4027
- }
4028
- export interface GetCheckoutURLResponseNonNullableFields {
4029
- checkoutUrl: string;
4030
- }
4031
- export interface UpdateCheckoutResponseNonNullableFields {
4032
- checkout?: CheckoutNonNullableFields;
4033
- }
4034
- export interface RemoveCouponResponseNonNullableFields {
4035
- checkout?: CheckoutNonNullableFields;
4036
- }
4037
- export interface RemoveGiftCardResponseNonNullableFields {
4038
- checkout?: CheckoutNonNullableFields;
4039
- }
4040
- export interface RemoveOverrideCheckoutUrlResponseNonNullableFields {
4041
- checkout?: CheckoutNonNullableFields;
4042
- }
4043
- export interface AddToCheckoutResponseNonNullableFields {
4044
- checkout?: CheckoutNonNullableFields;
4045
- }
4046
- export interface RemoveLineItemsResponseNonNullableFields {
4047
- checkout?: CheckoutNonNullableFields;
4048
- }
4049
- export interface CreateOrderResponseNonNullableFields {
4050
- orderId: string;
4051
- subscriptionId: string;
4052
- }
4053
- export interface CreateOrderAndChargeResponseNonNullableFields {
4054
- orderId: string;
4055
- subscriptionId: string;
4056
- }
4057
- interface HeadersEntryNonNullableFields {
4058
- key: string;
4059
- value: string;
4060
- }
4061
- export interface RawHttpResponseNonNullableFields {
4062
- body: Uint8Array;
4063
- headers: HeadersEntryNonNullableFields[];
4064
- }
4065
- export interface UpdateLineItemsQuantityResponseNonNullableFields {
4066
- checkout?: CheckoutNonNullableFields;
4067
- }
4068
- export interface GetCheckoutPaymentSettingsResponseNonNullableFields {
4069
- blockedPaymentOptions: GetCheckoutPaymentSettingsResponsePaymentOption[];
4070
- }
4071
3528
  export interface BaseEventMetadata {
4072
3529
  /**
4073
3530
  * App instance ID.
@@ -4208,6 +3665,7 @@ export interface CheckoutUpdatedEnvelope {
4208
3665
  * @slug updated
4209
3666
  */
4210
3667
  export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>): void;
3668
+ 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`;
4211
3669
  /**
4212
3670
  * Creates a checkout.
4213
3671
  *
@@ -4263,7 +3721,7 @@ export declare function onCheckoutUpdated(handler: (event: CheckoutUpdatedEnvelo
4263
3721
  * @returns Fulfilled - the newly created checkout.
4264
3722
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout
4265
3723
  */
4266
- export declare function createCheckout(options?: CreateCheckoutOptions): Promise<Checkout & CheckoutNonNullableFields>;
3724
+ 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>>;
4267
3725
  export interface CreateCheckoutOptions {
4268
3726
  /** Checkout information. */
4269
3727
  checkoutInfo?: Checkout;
@@ -4330,7 +3788,7 @@ export interface CreateCheckoutOptions {
4330
3788
  * @returns Fulfilled - the requested checkout.
4331
3789
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout
4332
3790
  */
4333
- export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNonNullableFields>;
3791
+ export declare function getCheckout(_id: string): Promise<NonNullablePaths<Checkout, CheckoutNonNullablePaths>>;
4334
3792
  /**
4335
3793
  * Retrieves the checkout associated with a specified cart.
4336
3794
  * @param _id - Cart ID.
@@ -4357,7 +3815,9 @@ export declare function getCheckout(_id: string): Promise<Checkout & CheckoutNon
4357
3815
  * @applicableIdentity VISITOR
4358
3816
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId
4359
3817
  */
4360
- export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByCartIdResponse & GetCheckoutByCartIdResponseNonNullableFields>;
3818
+ export declare function getCheckoutByCartId(_id: string): Promise<NonNullablePaths<GetCheckoutByCartIdResponse, {
3819
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
3820
+ }[CheckoutNonNullablePaths]>>;
4361
3821
  /**
4362
3822
  * Deprecated and will be removed soon, use GetCheckoutURL
4363
3823
  * @param _id - Checkout ID.
@@ -4385,7 +3845,7 @@ export declare function getCheckoutByCartId(_id: string): Promise<GetCheckoutByC
4385
3845
  * @applicableIdentity VISITOR
4386
3846
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL
4387
3847
  */
4388
- export declare function getWixCheckoutUrl(_id: string): Promise<GetWixCheckoutURLResponse & GetWixCheckoutURLResponseNonNullableFields>;
3848
+ export declare function getWixCheckoutUrl(_id: string): Promise<NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`>>;
4389
3849
  /**
4390
3850
  * Retrieves the checkout page URL of a specified checkout.
4391
3851
  *
@@ -4415,7 +3875,7 @@ export declare function getWixCheckoutUrl(_id: string): Promise<GetWixCheckoutUR
4415
3875
  * @applicableIdentity VISITOR
4416
3876
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL
4417
3877
  */
4418
- export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLResponse & GetCheckoutURLResponseNonNullableFields>;
3878
+ export declare function getCheckoutUrl(_id: string): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`>>;
4419
3879
  /**
4420
3880
  * Updates a checkout.
4421
3881
  *
@@ -4470,7 +3930,7 @@ export declare function getCheckoutUrl(_id: string): Promise<GetCheckoutURLRespo
4470
3930
  * @returns Updated checkout.
4471
3931
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout
4472
3932
  */
4473
- export declare function updateCheckout(_id: string | null, checkout: UpdateCheckout, options?: UpdateCheckoutOptions): Promise<Checkout & CheckoutNonNullableFields>;
3933
+ 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>>;
4474
3934
  export interface UpdateCheckout {
4475
3935
  /**
4476
3936
  * Checkout ID.
@@ -4730,7 +4190,9 @@ export interface UpdateCheckoutOptions {
4730
4190
  * @applicableIdentity VISITOR
4731
4191
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon
4732
4192
  */
4733
- export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
4193
+ export declare function removeCoupon(_id: string): Promise<NonNullablePaths<RemoveCouponResponse, {
4194
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4195
+ }[CheckoutNonNullablePaths]>>;
4734
4196
  /**
4735
4197
  * Removes the gift card from a specified checkout.
4736
4198
  *
@@ -4756,7 +4218,9 @@ export declare function removeCoupon(_id: string): Promise<RemoveCouponResponse
4756
4218
  * @applicableIdentity VISITOR
4757
4219
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard
4758
4220
  */
4759
- export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardResponse & RemoveGiftCardResponseNonNullableFields>;
4221
+ export declare function removeGiftCard(_id: string): Promise<NonNullablePaths<RemoveGiftCardResponse, {
4222
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4223
+ }[CheckoutNonNullablePaths]>>;
4760
4224
  /**
4761
4225
  * Removes the `overrideCheckoutUrl` from a specified checkout.
4762
4226
  *
@@ -4780,7 +4244,9 @@ export declare function removeGiftCard(_id: string): Promise<RemoveGiftCardRespo
4780
4244
  * @applicableIdentity VISITOR
4781
4245
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl
4782
4246
  */
4783
- export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOverrideCheckoutUrlResponse & RemoveOverrideCheckoutUrlResponseNonNullableFields>;
4247
+ export declare function removeOverrideCheckoutUrl(_id: string): Promise<NonNullablePaths<RemoveOverrideCheckoutUrlResponse, {
4248
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4249
+ }[CheckoutNonNullablePaths]>>;
4784
4250
  /**
4785
4251
  * Adds catalog line items and/or custom line items to a checkout.
4786
4252
  *
@@ -4826,7 +4292,9 @@ export declare function removeOverrideCheckoutUrl(_id: string): Promise<RemoveOv
4826
4292
  * @applicableIdentity VISITOR
4827
4293
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout
4828
4294
  */
4829
- export declare function addToCheckout(_id: string, options?: AddToCheckoutOptions): Promise<AddToCheckoutResponse & AddToCheckoutResponseNonNullableFields>;
4295
+ 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, {
4296
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4297
+ }[CheckoutNonNullablePaths]>>;
4830
4298
  export interface AddToCheckoutOptions {
4831
4299
  /**
4832
4300
  * Catalog line items.
@@ -4868,7 +4336,9 @@ export interface AddToCheckoutOptions {
4868
4336
  * @applicableIdentity VISITOR
4869
4337
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems
4870
4338
  */
4871
- export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
4339
+ export declare function removeLineItems(_id: string, lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsResponse, {
4340
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4341
+ }[CheckoutNonNullablePaths]>>;
4872
4342
  /**
4873
4343
  * Creates an order from a specified checkout.
4874
4344
  *
@@ -4901,7 +4371,7 @@ export declare function removeLineItems(_id: string, lineItemIds: string[]): Pro
4901
4371
  * @applicableIdentity VISITOR
4902
4372
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder
4903
4373
  */
4904
- export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<CreateOrderResponse & CreateOrderResponseNonNullableFields>;
4374
+ export declare function createOrder(_id: string, options?: CreateOrderOptions): Promise<NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`>>;
4905
4375
  export interface CreateOrderOptions {
4906
4376
  /** Whether the payment method should be saved on the order. */
4907
4377
  savePaymentMethod?: boolean;
@@ -4929,7 +4399,7 @@ export interface CreateOrderOptions {
4929
4399
  * @applicableIdentity VISITOR
4930
4400
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge
4931
4401
  */
4932
- export declare function createOrderAndCharge(_id: string, options?: CreateOrderAndChargeOptions): Promise<CreateOrderAndChargeResponse & CreateOrderAndChargeResponseNonNullableFields>;
4402
+ export declare function createOrderAndCharge(_id: string, options?: CreateOrderAndChargeOptions): Promise<NonNullablePaths<CreateOrderAndChargeResponse, `orderId` | `subscriptionId`>>;
4933
4403
  export interface CreateOrderAndChargeOptions {
4934
4404
  /** Payment token. */
4935
4405
  paymentToken?: string | null;
@@ -4959,7 +4429,7 @@ export interface CreateOrderAndChargeOptions {
4959
4429
  * @applicableIdentity VISITOR
4960
4430
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl
4961
4431
  */
4962
- export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string): Promise<RawHttpResponse & RawHttpResponseNonNullableFields>;
4432
+ export declare function markCheckoutAsCompletedAndRedirectToUrl(token: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`>>;
4963
4433
  /**
4964
4434
  * Marks a checkout as completed - `checkout.complete` boolean is set to `true`.
4965
4435
  *
@@ -5016,7 +4486,9 @@ export declare function markCheckoutAsCompleted(_id: string): Promise<void>;
5016
4486
  * @applicableIdentity VISITOR
5017
4487
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity
5018
4488
  */
5019
- export declare function updateLineItemsQuantity(_id: string, lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
4489
+ export declare function updateLineItemsQuantity(_id: string, lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`>[]): Promise<NonNullablePaths<UpdateLineItemsQuantityResponse, {
4490
+ [P in CheckoutNonNullablePaths]: `checkout.${P}`;
4491
+ }[CheckoutNonNullablePaths]>>;
5020
4492
  /** @param _id - Checkout ID.
5021
4493
  * @internal
5022
4494
  * @documentationMaturity preview
@@ -5024,5 +4496,5 @@ export declare function updateLineItemsQuantity(_id: string, lineItems: LineItem
5024
4496
  * @permissionId ECOM.READ_PAYMENT_SETTINGS
5025
4497
  * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings
5026
4498
  */
5027
- export declare function getCheckoutPaymentSettings(_id: string): Promise<GetCheckoutPaymentSettingsResponse & GetCheckoutPaymentSettingsResponseNonNullableFields>;
4499
+ export declare function getCheckoutPaymentSettings(_id: string): Promise<NonNullablePaths<GetCheckoutPaymentSettingsResponse, `blockedPaymentOptions`>>;
5028
4500
  export {};