@wix/auto_sdk_ecom_checkout 1.0.42 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +17 -7
- package/build/cjs/index.js.map +1 -1
- package/build/{internal/cjs/ecom-v1-checkout-checkout.universal-o9jU9uir.d.ts → cjs/index.typings.d.ts} +648 -129
- package/build/cjs/index.typings.js +2389 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +17 -7
- package/build/es/index.mjs.map +1 -1
- package/build/{internal/es/ecom-v1-checkout-checkout.universal-o9jU9uir.d.mts → es/index.typings.d.mts} +648 -129
- package/build/es/index.typings.mjs +2318 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +20 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/{cjs/ecom-v1-checkout-checkout.universal-BWJwZODy.d.ts → internal/cjs/index.typings.d.ts} +812 -1
- package/build/internal/cjs/index.typings.js +2389 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +20 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/{es/ecom-v1-checkout-checkout.universal-BWJwZODy.d.mts → internal/es/index.typings.d.mts} +812 -1
- package/build/internal/es/index.typings.mjs +2318 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateCheckoutRequest as CreateCheckoutRequest$1, CreateCheckoutResponse as CreateCheckoutResponse$1, GetCheckoutRequest as GetCheckoutRequest$1, GetCheckoutResponse as GetCheckoutResponse$1, GetCheckoutByCartIdRequest as GetCheckoutByCartIdRequest$1, GetCheckoutByCartIdResponse as GetCheckoutByCartIdResponse$1, GetWixCheckoutURLRequest as GetWixCheckoutURLRequest$1, GetWixCheckoutURLResponse as GetWixCheckoutURLResponse$1, GetCheckoutURLRequest as GetCheckoutURLRequest$1, GetCheckoutURLResponse as GetCheckoutURLResponse$1, UpdateCheckoutRequest as UpdateCheckoutRequest$1, UpdateCheckoutResponse as UpdateCheckoutResponse$1, RemoveCouponRequest as RemoveCouponRequest$1, RemoveCouponResponse as RemoveCouponResponse$1, RemoveGiftCardRequest as RemoveGiftCardRequest$1, RemoveGiftCardResponse as RemoveGiftCardResponse$1, RemoveOverrideCheckoutUrlRequest as RemoveOverrideCheckoutUrlRequest$1, RemoveOverrideCheckoutUrlResponse as RemoveOverrideCheckoutUrlResponse$1, AddToCheckoutRequest as AddToCheckoutRequest$1, AddToCheckoutResponse as AddToCheckoutResponse$1, RemoveLineItemsRequest as RemoveLineItemsRequest$1, RemoveLineItemsResponse as RemoveLineItemsResponse$1, CreateOrderRequest as CreateOrderRequest$1, CreateOrderResponse as CreateOrderResponse$1, CreateOrderAndChargeRequest as CreateOrderAndChargeRequest$1, CreateOrderAndChargeResponse as CreateOrderAndChargeResponse$1, MarkCheckoutAsCompletedAndRedirectToUrlRequest as MarkCheckoutAsCompletedAndRedirectToUrlRequest$1, RawHttpResponse as RawHttpResponse$1, MarkCheckoutAsCompletedRequest as MarkCheckoutAsCompletedRequest$1, MarkCheckoutAsCompletedResponse as MarkCheckoutAsCompletedResponse$1, UpdateLineItemsQuantityRequest as UpdateLineItemsQuantityRequest$1, UpdateLineItemsQuantityResponse as UpdateLineItemsQuantityResponse$1, GetCheckoutPaymentSettingsRequest as GetCheckoutPaymentSettingsRequest$1, GetCheckoutPaymentSettingsResponse as GetCheckoutPaymentSettingsResponse$1 } from './index.typings.js';
|
|
2
|
+
import '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
interface Checkout {
|
|
4
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { CreateCheckoutOptions, Checkout, CreateCheckoutApplicationErrors, GetCheckoutByCartIdResponse, GetWixCheckoutURLResponse, GetCheckoutURLResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateCheckoutApplicationErrors, RemoveCouponResponse, RemoveGiftCardResponse, RemoveOverrideCheckoutUrlResponse, AddToCheckoutOptions, AddToCheckoutResponse, AddToCheckoutApplicationErrors, RemoveLineItemsResponse, CreateOrderOptions, CreateOrderResponse, CreateOrderApplicationErrors, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderAndChargeApplicationErrors, RawHttpResponse, MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, GetCheckoutPaymentSettingsResponse, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope } from './index.typings.mjs';
|
|
3
|
+
export { ActionEvent, AddToCheckoutRequest, AdditionalFee, AdditionalFeeSource, Address, AddressAddressLine1OptionsOneOf, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApiAddress, ApplicableLineItems, ApplicationError, AppliedCoupon, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BillingInfo, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelInfo, ChannelInfoChannelType, ChannelType, Charge, ChargeDetails, ChargeType, CheckoutMarkedAsCompleted, Color, CommonVatId, CommonVatType, ConversionInfo, Coupon, CreateCheckoutRequest, CreateCheckoutResponse, CreateOrderAndChargeRequest, CreateOrderAndChargeResponseIdOneOf, CreateOrderRequest, CreateOrderResponseIdOneOf, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CustomTextFieldSelection, DeleteCheckoutRequest, DeleteCheckoutResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountDiscountType, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, DoublePaymentErrorData, DoublePaymentErrorDataIdOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, FullName, GetCheckoutByCartIdRequest, GetCheckoutPaymentSettingsRequest, GetCheckoutPaymentSettingsResponsePaymentOption, GetCheckoutRequest, GetCheckoutResponse, GetCheckoutURLRequest, GetCheckoutWithAllExtendedFieldsRequest, GetCheckoutWithAllExtendedFieldsResponse, GetWixCheckoutURLRequest, GiftCard, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, IdentityType, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemType, ManualCalculationReason, MarkCheckoutAsCompletedAndRedirectToUrlRequest, MarkCheckoutAsCompletedRequest, MarkCheckoutAsCompletedResponse, MediaItem, MediaItemType, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInOther, OptionSelection, Other, OtherCharge, PaymentErrorResponseData, PaymentOption, PaymentOptionType, PhysicalProperties, PickupAddress, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductDetails, ProductName, RateType, RedeemErrorData, Region, RemoveCouponRequest, RemoveGiftCardRequest, RemoveLineItemsRequest, RemoveOverrideCheckoutUrlRequest, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, ShipmentDetails, ShippingCalculationErrorData, ShippingCalculationErrorDataShippingCalculationErrorOneOf, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, StoreSettings, Street, StreetAddress, Subscription, SubscriptionCharges, SubscriptionCreated, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, Totals, TranslatableString, UpdateCheckoutRequest, UpdateCheckoutResponse, UpdateLineItemsQuantityRequest, UpdatedCheckoutMessage, V1BuyerInfo, V1CustomField, V1ItemModifier, V1LineItem, V1ModifierGroup, V1PickupDetails, V1ShippingInfo, V1ShippingInfoDetailsOneOf, V1SubscriptionOptionInfo, V1SubscriptionSettings, ValidationError, VatId, VatType, Violation, ViolationsList, WebhookIdentityType, WeightUnit } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
|
|
6
6
|
interface CreateCheckoutSignature {
|
|
@@ -13,7 +13,9 @@ interface CreateCheckoutSignature {
|
|
|
13
13
|
* @param - Checkout creation options.
|
|
14
14
|
* @returns Newly created checkout.
|
|
15
15
|
*/
|
|
16
|
-
(options?: CreateCheckoutOptions | undefined): Promise<Checkout
|
|
16
|
+
(options?: CreateCheckoutOptions | undefined): Promise<Checkout & {
|
|
17
|
+
__applicationErrorsType?: CreateCheckoutApplicationErrors | undefined;
|
|
18
|
+
}>;
|
|
17
19
|
}
|
|
18
20
|
declare function getCheckout$1(httpClient: HttpClient): GetCheckoutSignature;
|
|
19
21
|
interface GetCheckoutSignature {
|
|
@@ -74,7 +76,9 @@ interface UpdateCheckoutSignature {
|
|
|
74
76
|
* @param - Checkout update options.
|
|
75
77
|
* @returns Updated checkout.
|
|
76
78
|
*/
|
|
77
|
-
(_id: string, checkout: UpdateCheckout, options?: UpdateCheckoutOptions | undefined): Promise<Checkout
|
|
79
|
+
(_id: string, checkout: UpdateCheckout, options?: UpdateCheckoutOptions | undefined): Promise<Checkout & {
|
|
80
|
+
__applicationErrorsType?: UpdateCheckoutApplicationErrors | undefined;
|
|
81
|
+
}>;
|
|
78
82
|
}
|
|
79
83
|
declare function removeCoupon$1(httpClient: HttpClient): RemoveCouponSignature;
|
|
80
84
|
interface RemoveCouponSignature {
|
|
@@ -115,7 +119,9 @@ interface AddToCheckoutSignature {
|
|
|
115
119
|
* @param - Checkout ID.
|
|
116
120
|
* @param - Items to be added to checkout.
|
|
117
121
|
*/
|
|
118
|
-
(_id: string, options?: AddToCheckoutOptions | undefined): Promise<AddToCheckoutResponse
|
|
122
|
+
(_id: string, options?: AddToCheckoutOptions | undefined): Promise<AddToCheckoutResponse & {
|
|
123
|
+
__applicationErrorsType?: AddToCheckoutApplicationErrors | undefined;
|
|
124
|
+
}>;
|
|
119
125
|
}
|
|
120
126
|
declare function removeLineItems$1(httpClient: HttpClient): RemoveLineItemsSignature;
|
|
121
127
|
interface RemoveLineItemsSignature {
|
|
@@ -145,7 +151,9 @@ interface CreateOrderSignature {
|
|
|
145
151
|
* @param - Checkout ID.
|
|
146
152
|
* @param - Additional order creation options.
|
|
147
153
|
*/
|
|
148
|
-
(_id: string, options?: CreateOrderOptions | undefined): Promise<CreateOrderResponse
|
|
154
|
+
(_id: string, options?: CreateOrderOptions | undefined): Promise<CreateOrderResponse & {
|
|
155
|
+
__applicationErrorsType?: CreateOrderApplicationErrors | undefined;
|
|
156
|
+
}>;
|
|
149
157
|
}
|
|
150
158
|
/** @internal */
|
|
151
159
|
declare function createOrderAndCharge$1(httpClient: HttpClient): CreateOrderAndChargeSignature;
|
|
@@ -154,7 +162,9 @@ interface CreateOrderAndChargeSignature {
|
|
|
154
162
|
* Deprecated (use createOrder instead)
|
|
155
163
|
* @param - Checkout ID.
|
|
156
164
|
*/
|
|
157
|
-
(_id: string, options?: CreateOrderAndChargeOptions | undefined): Promise<CreateOrderAndChargeResponse
|
|
165
|
+
(_id: string, options?: CreateOrderAndChargeOptions | undefined): Promise<CreateOrderAndChargeResponse & {
|
|
166
|
+
__applicationErrorsType?: CreateOrderAndChargeApplicationErrors | undefined;
|
|
167
|
+
}>;
|
|
158
168
|
}
|
|
159
169
|
declare function markCheckoutAsCompletedAndRedirectToUrl$1(httpClient: HttpClient): MarkCheckoutAsCompletedAndRedirectToUrlSignature;
|
|
160
170
|
interface MarkCheckoutAsCompletedAndRedirectToUrlSignature {
|
|
@@ -162,7 +172,9 @@ interface MarkCheckoutAsCompletedAndRedirectToUrlSignature {
|
|
|
162
172
|
* Marks a checkout as completed and redirects to a specified URL.
|
|
163
173
|
* @param - Server-signed JWT token with required information to complete checkout
|
|
164
174
|
*/
|
|
165
|
-
(token: string): Promise<RawHttpResponse
|
|
175
|
+
(token: string): Promise<RawHttpResponse & {
|
|
176
|
+
__applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors | undefined;
|
|
177
|
+
}>;
|
|
166
178
|
}
|
|
167
179
|
declare function markCheckoutAsCompleted$1(httpClient: HttpClient): MarkCheckoutAsCompletedSignature;
|
|
168
180
|
interface MarkCheckoutAsCompletedSignature {
|