@wix/auto_sdk_ecom_checkout-templates 1.0.164 → 1.0.166
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 +1 -1
- package/build/cjs/index.js +30 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +112 -2
- package/build/cjs/index.typings.js +21 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +112 -2
- package/build/cjs/meta.js +21 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +28 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +112 -2
- package/build/es/index.typings.mjs +19 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +112 -2
- package/build/es/meta.mjs +19 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +121 -18
- package/build/internal/cjs/meta.d.ts +121 -18
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +121 -18
- package/build/internal/es/meta.d.mts +121 -18
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { CheckoutTemplate, CreateCheckoutTemplateApplicationErrors, BulkCreateCheckoutTemplatesOptions, BulkCreateCheckoutTemplatesResponse, BulkCreateCheckoutTemplatesApplicationErrors, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateApplicationErrors, RawHttpResponse, CreateAndRedirectToCheckoutApplicationErrors, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CheckoutTemplateQuery, typedQueryCheckoutTemplates } from './index.typings.js';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BillingSettings, BulkActionMetadata, BulkCheckoutTemplateResult, BulkCreateCheckoutTemplatesRequest, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CouponDiscountValueOneOf, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CyclePriceOverride, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BaseRateSource, BaseRateSourceWithLiterals, BillingSettings, BulkActionMetadata, BulkCheckoutTemplateResult, BulkCreateCheckoutTemplatesRequest, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CouponDiscountValueOneOf, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CrossBorderPriceAdjustment, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CyclePriceOverride, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RepriceStatus, RepriceStatusWithLiterals, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
|
|
6
6
|
interface CreateCheckoutTemplateSignature {
|
|
@@ -190,7 +190,6 @@ interface CatalogOverrideFields {
|
|
|
190
190
|
/**
|
|
191
191
|
* Whether the line item quantity is fixed and can't be changed.
|
|
192
192
|
* When not set, falls back to the value from the catalog.
|
|
193
|
-
* @internal
|
|
194
193
|
*/
|
|
195
194
|
fixedQuantity?: boolean | null;
|
|
196
195
|
}
|
|
@@ -327,15 +326,9 @@ interface PhysicalProperties {
|
|
|
327
326
|
sku?: string | null;
|
|
328
327
|
/** Whether this line item is shippable. */
|
|
329
328
|
shippable?: boolean;
|
|
330
|
-
/**
|
|
331
|
-
* Product dimensions (length, width, height of the physical product).
|
|
332
|
-
* @internal
|
|
333
|
-
*/
|
|
329
|
+
/** Product dimensions (length, width, height of the physical product). */
|
|
334
330
|
productDimensions?: Dimensions;
|
|
335
|
-
/**
|
|
336
|
-
* Package dimensions (length, width, height of the shipping package).
|
|
337
|
-
* @internal
|
|
338
|
-
*/
|
|
331
|
+
/** Package dimensions (length, width, height of the shipping package). */
|
|
339
332
|
packageDimensions?: Dimensions;
|
|
340
333
|
}
|
|
341
334
|
interface Dimensions {
|
|
@@ -644,17 +637,17 @@ interface SubscriptionSettings {
|
|
|
644
637
|
*/
|
|
645
638
|
freeTrialPeriod?: FreeTrialPeriod;
|
|
646
639
|
/**
|
|
647
|
-
*
|
|
648
|
-
*
|
|
640
|
+
* Date and time the subscription starts.
|
|
641
|
+
*
|
|
642
|
+
* The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.
|
|
649
643
|
*/
|
|
650
644
|
startDate?: Date | null;
|
|
651
|
-
/**
|
|
652
|
-
* Billing configuration for recurring charges.
|
|
653
|
-
* @internal
|
|
654
|
-
*/
|
|
645
|
+
/** Billing configuration for recurring charges. */
|
|
655
646
|
billingSettings?: BillingSettings;
|
|
656
647
|
/**
|
|
657
|
-
*
|
|
648
|
+
* How the access period of the product, service, or subscription relates to the billing period.
|
|
649
|
+
*
|
|
650
|
+
* Default: `ALIGNED_WITH_BILLING_PERIOD`
|
|
658
651
|
* @internal
|
|
659
652
|
*/
|
|
660
653
|
productPeriodAlignment?: ProductPeriodAlignmentWithLiterals;
|
|
@@ -690,7 +683,9 @@ interface FreeTrialPeriod {
|
|
|
690
683
|
}
|
|
691
684
|
interface BillingSettings {
|
|
692
685
|
/**
|
|
693
|
-
* Day of month
|
|
686
|
+
* Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.
|
|
687
|
+
*
|
|
688
|
+
* Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.
|
|
694
689
|
* @min 1
|
|
695
690
|
* @max 28
|
|
696
691
|
*/
|
|
@@ -1999,7 +1994,104 @@ interface SelectedCarrierServiceOptionPrices {
|
|
|
1999
1994
|
totalDiscount?: MultiCurrencyPrice;
|
|
2000
1995
|
/** Shipping price before discount and before tax. */
|
|
2001
1996
|
price?: MultiCurrencyPrice;
|
|
1997
|
+
/**
|
|
1998
|
+
* Cross-border repricing record of this shipping price on a site whose catalog prices include tax: the catalog cost, the base region's tax removed from it and the rate used.
|
|
1999
|
+
* @internal
|
|
2000
|
+
* @readonly
|
|
2001
|
+
*/
|
|
2002
|
+
crossBorderAdjustment?: CrossBorderPriceAdjustment;
|
|
2002
2003
|
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
|
|
2006
|
+
* the catalog price the merchant entered, the base region's tax removed from it per unit, and the rate used.
|
|
2007
|
+
*
|
|
2008
|
+
* The totals calculator form of `com.wix.ecommerce.platform_common.api.CrossBorderPriceAdjustment`: the same fields under the same numbers,
|
|
2009
|
+
* with the amounts as `MultiCurrencyPrice`. This record describes how the price was reached, not the resulting amount;
|
|
2010
|
+
* the repriced figures are on the line, shipping option or fee that carries it.
|
|
2011
|
+
*/
|
|
2012
|
+
interface CrossBorderPriceAdjustment {
|
|
2013
|
+
/**
|
|
2014
|
+
* ID of the tax region whose tax is built into the catalog prices.
|
|
2015
|
+
* @format GUID
|
|
2016
|
+
* @readonly
|
|
2017
|
+
*/
|
|
2018
|
+
baseTaxRegionId?: string;
|
|
2019
|
+
/**
|
|
2020
|
+
* ID of the tax region resolved for the destination. Absent when no region matched.
|
|
2021
|
+
* @format GUID
|
|
2022
|
+
* @readonly
|
|
2023
|
+
*/
|
|
2024
|
+
destinationTaxRegionId?: string | null;
|
|
2025
|
+
/**
|
|
2026
|
+
* Price per unit as entered by the merchant, with the base region's tax inside it.
|
|
2027
|
+
* @readonly
|
|
2028
|
+
*/
|
|
2029
|
+
catalogPrice?: MultiCurrencyPrice;
|
|
2030
|
+
/**
|
|
2031
|
+
* Base region's tax removed per unit. Zero when `status` is `KEPT`, `SAME_REGION`, `SAME_COUNTRY`, `NOT_APPLICABLE`, `NOT_APPLICABLE_MODIFIERS` or `CONVERTED_CURRENCY_SUBSCRIPTION`, where nothing was removed.
|
|
2032
|
+
* @readonly
|
|
2033
|
+
*/
|
|
2034
|
+
baseTaxAmount?: MultiCurrencyPrice;
|
|
2035
|
+
/**
|
|
2036
|
+
* Outcome of the repricing for this line.
|
|
2037
|
+
* @readonly
|
|
2038
|
+
*/
|
|
2039
|
+
status?: RepriceStatusWithLiterals;
|
|
2040
|
+
/**
|
|
2041
|
+
* Where the base region's rate came from. Meaningful only when a rate was applied, that is when `status` is `APPLIED`, `STRIP_ONLY` or `NO_DESTINATION_REGION`.
|
|
2042
|
+
* @readonly
|
|
2043
|
+
*/
|
|
2044
|
+
baseRateSource?: BaseRateSourceWithLiterals;
|
|
2045
|
+
/**
|
|
2046
|
+
* Base region's rate used to remove the tax, as a decimal numeral between 0 and 1. For example, `"0.22"`. Absent when no rate was applied.
|
|
2047
|
+
* @format DECIMAL_VALUE
|
|
2048
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
2049
|
+
* @readonly
|
|
2050
|
+
*/
|
|
2051
|
+
baseRate?: string | null;
|
|
2052
|
+
/**
|
|
2053
|
+
* When the base region's rate was captured. Set only when `baseRateSource` is `AVALARA_PROBE`.
|
|
2054
|
+
* @readonly
|
|
2055
|
+
*/
|
|
2056
|
+
baseRateCapturedDate?: Date | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* Whether the destination's tax is included in the repriced amount. Reserved for per-region display; not populated.
|
|
2059
|
+
* @readonly
|
|
2060
|
+
*/
|
|
2061
|
+
destinationTaxIncluded?: boolean | null;
|
|
2062
|
+
}
|
|
2063
|
+
/** Outcome of the repricing for one line. */
|
|
2064
|
+
declare enum RepriceStatus {
|
|
2065
|
+
/** Base tax removed and the destination's tax applied. */
|
|
2066
|
+
APPLIED = "APPLIED",
|
|
2067
|
+
/** The caller asked for the line to be left at its price. Nothing was removed. */
|
|
2068
|
+
KEPT = "KEPT",
|
|
2069
|
+
/** Base tax removed and no destination tax applied, as in a tax-exempt calculation. This is the outcome; the mode that asks for it is `CrossBorderRepricingMode.STRIP_ONLY`. */
|
|
2070
|
+
STRIP_ONLY = "STRIP_ONLY",
|
|
2071
|
+
/** The destination is the base region. Nothing was removed. */
|
|
2072
|
+
SAME_REGION = "SAME_REGION",
|
|
2073
|
+
/** The destination is in the base region's country, outside the US and Canada, so the catalog price already carries the destination's tax. Nothing was removed. */
|
|
2074
|
+
SAME_COUNTRY = "SAME_COUNTRY",
|
|
2075
|
+
/** No tax region matched the destination. Base tax removed and no destination tax applied. */
|
|
2076
|
+
NO_DESTINATION_REGION = "NO_DESTINATION_REGION",
|
|
2077
|
+
/** The calculation didn't reprice this line, for example because the feature was off or a pass failed. Nothing was removed. */
|
|
2078
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
2079
|
+
/** The line's modifiers exceed its price at the destination's rate. Nothing was removed. */
|
|
2080
|
+
NOT_APPLICABLE_MODIFIERS = "NOT_APPLICABLE_MODIFIERS",
|
|
2081
|
+
/** A subscription line in a checkout whose currency differs from the site currency. Nothing was removed. */
|
|
2082
|
+
CONVERTED_CURRENCY_SUBSCRIPTION = "CONVERTED_CURRENCY_SUBSCRIPTION"
|
|
2083
|
+
}
|
|
2084
|
+
/** @enumType */
|
|
2085
|
+
type RepriceStatusWithLiterals = RepriceStatus | 'APPLIED' | 'KEPT' | 'STRIP_ONLY' | 'SAME_REGION' | 'SAME_COUNTRY' | 'NO_DESTINATION_REGION' | 'NOT_APPLICABLE' | 'NOT_APPLICABLE_MODIFIERS' | 'CONVERTED_CURRENCY_SUBSCRIPTION';
|
|
2086
|
+
/** Where the base region's rate came from. */
|
|
2087
|
+
declare enum BaseRateSource {
|
|
2088
|
+
/** The manual tax calculator computed the base tax for this calculation. */
|
|
2089
|
+
MANUAL_SPI = "MANUAL_SPI",
|
|
2090
|
+
/** The rate captured from Avalara by the embedded-rate probe. */
|
|
2091
|
+
AVALARA_PROBE = "AVALARA_PROBE"
|
|
2092
|
+
}
|
|
2093
|
+
/** @enumType */
|
|
2094
|
+
type BaseRateSourceWithLiterals = BaseRateSource | 'MANUAL_SPI' | 'AVALARA_PROBE';
|
|
2003
2095
|
interface SelectedCarrierServiceOptionOtherCharge {
|
|
2004
2096
|
/** Type of additional cost. */
|
|
2005
2097
|
type?: ChargeTypeWithLiterals;
|
|
@@ -2220,6 +2312,11 @@ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOne
|
|
|
2220
2312
|
* @internal
|
|
2221
2313
|
*/
|
|
2222
2314
|
giftCardCalculationErrors?: GiftCardCalculationError[];
|
|
2315
|
+
/**
|
|
2316
|
+
* Cross-border repricing error. Set when a repricing pass failed and the calculation fell back to catalog prices.
|
|
2317
|
+
* @internal
|
|
2318
|
+
*/
|
|
2319
|
+
crossBorderRepricingError?: Details;
|
|
2223
2320
|
}
|
|
2224
2321
|
/** @oneof */
|
|
2225
2322
|
interface CalculationErrorsShippingCalculationErrorOneOf {
|
|
@@ -3115,6 +3212,12 @@ interface AdditionalFee {
|
|
|
3115
3212
|
translatedName?: string | null;
|
|
3116
3213
|
/** Address type tax was calculated against for this fee. */
|
|
3117
3214
|
taxableAddress?: TaxableAddress;
|
|
3215
|
+
/**
|
|
3216
|
+
* Cross-border repricing record of this fee on a site whose catalog prices include tax: the fee's catalog price, the base region's tax removed from it and the rate used.
|
|
3217
|
+
* @internal
|
|
3218
|
+
* @readonly
|
|
3219
|
+
*/
|
|
3220
|
+
crossBorderAdjustment?: CrossBorderPriceAdjustment;
|
|
3118
3221
|
}
|
|
3119
3222
|
declare enum AdditionalFeeSource {
|
|
3120
3223
|
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
@@ -4185,4 +4288,4 @@ declare function createAndRedirectToCheckout(checkoutTemplateId: string, siteId:
|
|
|
4185
4288
|
__applicationErrorsType?: CreateAndRedirectToCheckoutApplicationErrors;
|
|
4186
4289
|
}>;
|
|
4187
4290
|
|
|
4188
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, type BillingSettings, type BulkActionMetadata, type BulkCheckoutTemplateResult, type BulkCreateCheckoutTemplatesApplicationErrors, type BulkCreateCheckoutTemplatesOptions, type BulkCreateCheckoutTemplatesRequest, type BulkCreateCheckoutTemplatesResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, type Checkout, type CheckoutCustomization, type CheckoutTemplate, type CheckoutTemplateCreatedEnvelope, type CheckoutTemplateDeletedEnvelope, type CheckoutTemplateQuery, type CheckoutTemplateQuerySpec, type CheckoutTemplateUpdatedEnvelope, type CheckoutTemplateUsed, type CheckoutTemplateUsedEnvelope, type CheckoutTemplatesQueryBuilder, type CheckoutTemplatesQueryResult, type Color, type CommonQueryWithEntityContext, type ConversionInfo, type Coupon, type CouponDiscountValueOneOf, type CreateAndRedirectToCheckoutApplicationErrors, type CreateAndRedirectToCheckoutRequest, type CreateCheckoutFromTemplateApplicationErrors, type CreateCheckoutFromTemplateRequest, type CreateCheckoutFromTemplateResponse, type CreateCheckoutTemplateApplicationErrors, type CreateCheckoutTemplateRequest, type CreateCheckoutTemplateResponse, type CreatedBy, type CreatedByIdOneOf, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomContentReference, type CustomField, type CustomLineItem, type CustomSettings, type CyclePriceOverride, type DeleteCheckoutTemplateRequest, type DeleteCheckoutTemplateResponse, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleDiscountValueOneOf, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, DiscountValueType, type DiscountValueTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCheckoutTemplateRequest, type GetCheckoutTemplateResponse, type GiftCard, type GiftCardCalculationError, type Group, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemDiscount, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QueryCheckoutTemplatesRequest, type QueryCheckoutTemplatesResponse, RateType, type RateTypeWithLiterals, type RawHttpResponse, type Region, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInfo, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCheckoutTemplate, type UpdateCheckoutTemplateApplicationErrors, type UpdateCheckoutTemplateRequest, type UpdateCheckoutTemplateResponse, type V1ItemModifier, type V1LineItem, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, type WebClientCustomization, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, bulkCreateCheckoutTemplates, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, typedQueryCheckoutTemplates, updateCheckoutTemplate, utils };
|
|
4291
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type Address, type AddressLocation, type AddressWithContact, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, BalanceType, type BalanceTypeWithLiterals, type BaseEventMetadata, BaseRateSource, type BaseRateSourceWithLiterals, type BillingSettings, type BulkActionMetadata, type BulkCheckoutTemplateResult, type BulkCreateCheckoutTemplatesApplicationErrors, type BulkCreateCheckoutTemplatesOptions, type BulkCreateCheckoutTemplatesRequest, type BulkCreateCheckoutTemplatesResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, type Checkout, type CheckoutCustomization, type CheckoutTemplate, type CheckoutTemplateCreatedEnvelope, type CheckoutTemplateDeletedEnvelope, type CheckoutTemplateQuery, type CheckoutTemplateQuerySpec, type CheckoutTemplateUpdatedEnvelope, type CheckoutTemplateUsed, type CheckoutTemplateUsedEnvelope, type CheckoutTemplatesQueryBuilder, type CheckoutTemplatesQueryResult, type Color, type CommonQueryWithEntityContext, type ConversionInfo, type Coupon, type CouponDiscountValueOneOf, type CreateAndRedirectToCheckoutApplicationErrors, type CreateAndRedirectToCheckoutRequest, type CreateCheckoutFromTemplateApplicationErrors, type CreateCheckoutFromTemplateRequest, type CreateCheckoutFromTemplateResponse, type CreateCheckoutTemplateApplicationErrors, type CreateCheckoutTemplateRequest, type CreateCheckoutTemplateResponse, type CreatedBy, type CreatedByIdOneOf, type CrossBorderPriceAdjustment, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomContentReference, type CustomField, type CustomLineItem, type CustomSettings, type CyclePriceOverride, type DeleteCheckoutTemplateRequest, type DeleteCheckoutTemplateResponse, type DeliveryAllocation, type DeliveryLogistics, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, type DiscountRule, type DiscountRuleDiscountValueOneOf, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, DiscountValueType, type DiscountValueTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetCheckoutTemplateRequest, type GetCheckoutTemplateResponse, type GiftCard, type GiftCardCalculationError, type Group, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAvailabilityInfo, ItemAvailabilityStatus, type ItemAvailabilityStatusWithLiterals, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItem, type LineItemDiscount, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type Policy, type PriceDescription, type PriceSummary, type ProductName, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QueryCheckoutTemplatesRequest, type QueryCheckoutTemplatesResponse, RateType, type RateTypeWithLiterals, type RawHttpResponse, type Region, RepriceStatus, type RepriceStatusWithLiterals, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMemberships, type ServiceProperties, Severity, type SeverityWithLiterals, type ShippingInfo, type ShippingOption, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, Status, type StatusWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetLineItem, type TargetTargetTypeOneOf, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCheckoutTemplate, type UpdateCheckoutTemplateApplicationErrors, type UpdateCheckoutTemplateRequest, type UpdateCheckoutTemplateResponse, type V1ItemModifier, type V1LineItem, type V1ModifierGroup, type ValidationError, type VatId, VatType, type VatTypeWithLiterals, type Violation, type WebClientCustomization, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, bulkCreateCheckoutTemplates, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, onCheckoutTemplateCreated, onCheckoutTemplateDeleted, onCheckoutTemplateUpdated, onCheckoutTemplateUsed, queryCheckoutTemplates, typedQueryCheckoutTemplates, updateCheckoutTemplate, utils };
|
|
@@ -190,7 +190,6 @@ interface CatalogOverrideFields {
|
|
|
190
190
|
/**
|
|
191
191
|
* Whether the line item quantity is fixed and can't be changed.
|
|
192
192
|
* When not set, falls back to the value from the catalog.
|
|
193
|
-
* @internal
|
|
194
193
|
*/
|
|
195
194
|
fixedQuantity?: boolean | null;
|
|
196
195
|
}
|
|
@@ -327,15 +326,9 @@ interface PhysicalProperties {
|
|
|
327
326
|
sku?: string | null;
|
|
328
327
|
/** Whether this line item is shippable. */
|
|
329
328
|
shippable?: boolean;
|
|
330
|
-
/**
|
|
331
|
-
* Product dimensions (length, width, height of the physical product).
|
|
332
|
-
* @internal
|
|
333
|
-
*/
|
|
329
|
+
/** Product dimensions (length, width, height of the physical product). */
|
|
334
330
|
productDimensions?: Dimensions;
|
|
335
|
-
/**
|
|
336
|
-
* Package dimensions (length, width, height of the shipping package).
|
|
337
|
-
* @internal
|
|
338
|
-
*/
|
|
331
|
+
/** Package dimensions (length, width, height of the shipping package). */
|
|
339
332
|
packageDimensions?: Dimensions;
|
|
340
333
|
}
|
|
341
334
|
interface Dimensions {
|
|
@@ -662,17 +655,17 @@ interface SubscriptionSettings {
|
|
|
662
655
|
*/
|
|
663
656
|
freeTrialPeriod?: FreeTrialPeriod;
|
|
664
657
|
/**
|
|
665
|
-
*
|
|
666
|
-
*
|
|
658
|
+
* Date and time the subscription starts.
|
|
659
|
+
*
|
|
660
|
+
* The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.
|
|
667
661
|
*/
|
|
668
662
|
startDate?: Date | null;
|
|
669
|
-
/**
|
|
670
|
-
* Billing configuration for recurring charges.
|
|
671
|
-
* @internal
|
|
672
|
-
*/
|
|
663
|
+
/** Billing configuration for recurring charges. */
|
|
673
664
|
billingSettings?: BillingSettings;
|
|
674
665
|
/**
|
|
675
|
-
*
|
|
666
|
+
* How the access period of the product, service, or subscription relates to the billing period.
|
|
667
|
+
*
|
|
668
|
+
* Default: `ALIGNED_WITH_BILLING_PERIOD`
|
|
676
669
|
* @internal
|
|
677
670
|
*/
|
|
678
671
|
productPeriodAlignment?: ProductPeriodAlignmentWithLiterals;
|
|
@@ -708,7 +701,9 @@ interface FreeTrialPeriod {
|
|
|
708
701
|
}
|
|
709
702
|
interface BillingSettings {
|
|
710
703
|
/**
|
|
711
|
-
* Day of month
|
|
704
|
+
* Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.
|
|
705
|
+
*
|
|
706
|
+
* Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.
|
|
712
707
|
* @min 1
|
|
713
708
|
* @max 28
|
|
714
709
|
*/
|
|
@@ -2058,7 +2053,104 @@ interface SelectedCarrierServiceOptionPrices {
|
|
|
2058
2053
|
totalDiscount?: MultiCurrencyPrice;
|
|
2059
2054
|
/** Shipping price before discount and before tax. */
|
|
2060
2055
|
price?: MultiCurrencyPrice;
|
|
2056
|
+
/**
|
|
2057
|
+
* Cross-border repricing record of this shipping price on a site whose catalog prices include tax: the catalog cost, the base region's tax removed from it and the rate used.
|
|
2058
|
+
* @internal
|
|
2059
|
+
* @readonly
|
|
2060
|
+
*/
|
|
2061
|
+
crossBorderAdjustment?: CrossBorderPriceAdjustment;
|
|
2061
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Record of the cross-border repricing of a single line item, shipping option or fee on a site whose catalog prices include tax:
|
|
2065
|
+
* the catalog price the merchant entered, the base region's tax removed from it per unit, and the rate used.
|
|
2066
|
+
*
|
|
2067
|
+
* The totals calculator form of `com.wix.ecommerce.platform_common.api.CrossBorderPriceAdjustment`: the same fields under the same numbers,
|
|
2068
|
+
* with the amounts as `MultiCurrencyPrice`. This record describes how the price was reached, not the resulting amount;
|
|
2069
|
+
* the repriced figures are on the line, shipping option or fee that carries it.
|
|
2070
|
+
*/
|
|
2071
|
+
interface CrossBorderPriceAdjustment {
|
|
2072
|
+
/**
|
|
2073
|
+
* ID of the tax region whose tax is built into the catalog prices.
|
|
2074
|
+
* @format GUID
|
|
2075
|
+
* @readonly
|
|
2076
|
+
*/
|
|
2077
|
+
baseTaxRegionId?: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* ID of the tax region resolved for the destination. Absent when no region matched.
|
|
2080
|
+
* @format GUID
|
|
2081
|
+
* @readonly
|
|
2082
|
+
*/
|
|
2083
|
+
destinationTaxRegionId?: string | null;
|
|
2084
|
+
/**
|
|
2085
|
+
* Price per unit as entered by the merchant, with the base region's tax inside it.
|
|
2086
|
+
* @readonly
|
|
2087
|
+
*/
|
|
2088
|
+
catalogPrice?: MultiCurrencyPrice;
|
|
2089
|
+
/**
|
|
2090
|
+
* Base region's tax removed per unit. Zero when `status` is `KEPT`, `SAME_REGION`, `SAME_COUNTRY`, `NOT_APPLICABLE`, `NOT_APPLICABLE_MODIFIERS` or `CONVERTED_CURRENCY_SUBSCRIPTION`, where nothing was removed.
|
|
2091
|
+
* @readonly
|
|
2092
|
+
*/
|
|
2093
|
+
baseTaxAmount?: MultiCurrencyPrice;
|
|
2094
|
+
/**
|
|
2095
|
+
* Outcome of the repricing for this line.
|
|
2096
|
+
* @readonly
|
|
2097
|
+
*/
|
|
2098
|
+
status?: RepriceStatusWithLiterals;
|
|
2099
|
+
/**
|
|
2100
|
+
* Where the base region's rate came from. Meaningful only when a rate was applied, that is when `status` is `APPLIED`, `STRIP_ONLY` or `NO_DESTINATION_REGION`.
|
|
2101
|
+
* @readonly
|
|
2102
|
+
*/
|
|
2103
|
+
baseRateSource?: BaseRateSourceWithLiterals;
|
|
2104
|
+
/**
|
|
2105
|
+
* Base region's rate used to remove the tax, as a decimal numeral between 0 and 1. For example, `"0.22"`. Absent when no rate was applied.
|
|
2106
|
+
* @format DECIMAL_VALUE
|
|
2107
|
+
* @decimalValue options { gte:0, maxScale:6 }
|
|
2108
|
+
* @readonly
|
|
2109
|
+
*/
|
|
2110
|
+
baseRate?: string | null;
|
|
2111
|
+
/**
|
|
2112
|
+
* When the base region's rate was captured. Set only when `baseRateSource` is `AVALARA_PROBE`.
|
|
2113
|
+
* @readonly
|
|
2114
|
+
*/
|
|
2115
|
+
baseRateCapturedDate?: Date | null;
|
|
2116
|
+
/**
|
|
2117
|
+
* Whether the destination's tax is included in the repriced amount. Reserved for per-region display; not populated.
|
|
2118
|
+
* @readonly
|
|
2119
|
+
*/
|
|
2120
|
+
destinationTaxIncluded?: boolean | null;
|
|
2121
|
+
}
|
|
2122
|
+
/** Outcome of the repricing for one line. */
|
|
2123
|
+
declare enum RepriceStatus {
|
|
2124
|
+
/** Base tax removed and the destination's tax applied. */
|
|
2125
|
+
APPLIED = "APPLIED",
|
|
2126
|
+
/** The caller asked for the line to be left at its price. Nothing was removed. */
|
|
2127
|
+
KEPT = "KEPT",
|
|
2128
|
+
/** Base tax removed and no destination tax applied, as in a tax-exempt calculation. This is the outcome; the mode that asks for it is `CrossBorderRepricingMode.STRIP_ONLY`. */
|
|
2129
|
+
STRIP_ONLY = "STRIP_ONLY",
|
|
2130
|
+
/** The destination is the base region. Nothing was removed. */
|
|
2131
|
+
SAME_REGION = "SAME_REGION",
|
|
2132
|
+
/** The destination is in the base region's country, outside the US and Canada, so the catalog price already carries the destination's tax. Nothing was removed. */
|
|
2133
|
+
SAME_COUNTRY = "SAME_COUNTRY",
|
|
2134
|
+
/** No tax region matched the destination. Base tax removed and no destination tax applied. */
|
|
2135
|
+
NO_DESTINATION_REGION = "NO_DESTINATION_REGION",
|
|
2136
|
+
/** The calculation didn't reprice this line, for example because the feature was off or a pass failed. Nothing was removed. */
|
|
2137
|
+
NOT_APPLICABLE = "NOT_APPLICABLE",
|
|
2138
|
+
/** The line's modifiers exceed its price at the destination's rate. Nothing was removed. */
|
|
2139
|
+
NOT_APPLICABLE_MODIFIERS = "NOT_APPLICABLE_MODIFIERS",
|
|
2140
|
+
/** A subscription line in a checkout whose currency differs from the site currency. Nothing was removed. */
|
|
2141
|
+
CONVERTED_CURRENCY_SUBSCRIPTION = "CONVERTED_CURRENCY_SUBSCRIPTION"
|
|
2142
|
+
}
|
|
2143
|
+
/** @enumType */
|
|
2144
|
+
type RepriceStatusWithLiterals = RepriceStatus | 'APPLIED' | 'KEPT' | 'STRIP_ONLY' | 'SAME_REGION' | 'SAME_COUNTRY' | 'NO_DESTINATION_REGION' | 'NOT_APPLICABLE' | 'NOT_APPLICABLE_MODIFIERS' | 'CONVERTED_CURRENCY_SUBSCRIPTION';
|
|
2145
|
+
/** Where the base region's rate came from. */
|
|
2146
|
+
declare enum BaseRateSource {
|
|
2147
|
+
/** The manual tax calculator computed the base tax for this calculation. */
|
|
2148
|
+
MANUAL_SPI = "MANUAL_SPI",
|
|
2149
|
+
/** The rate captured from Avalara by the embedded-rate probe. */
|
|
2150
|
+
AVALARA_PROBE = "AVALARA_PROBE"
|
|
2151
|
+
}
|
|
2152
|
+
/** @enumType */
|
|
2153
|
+
type BaseRateSourceWithLiterals = BaseRateSource | 'MANUAL_SPI' | 'AVALARA_PROBE';
|
|
2062
2154
|
interface SelectedCarrierServiceOptionOtherCharge {
|
|
2063
2155
|
/** Type of additional cost. */
|
|
2064
2156
|
type?: ChargeTypeWithLiterals;
|
|
@@ -2279,6 +2371,11 @@ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOne
|
|
|
2279
2371
|
* @internal
|
|
2280
2372
|
*/
|
|
2281
2373
|
giftCardCalculationErrors?: GiftCardCalculationError[];
|
|
2374
|
+
/**
|
|
2375
|
+
* Cross-border repricing error. Set when a repricing pass failed and the calculation fell back to catalog prices.
|
|
2376
|
+
* @internal
|
|
2377
|
+
*/
|
|
2378
|
+
crossBorderRepricingError?: Details;
|
|
2282
2379
|
}
|
|
2283
2380
|
/** @oneof */
|
|
2284
2381
|
interface CalculationErrorsShippingCalculationErrorOneOf {
|
|
@@ -3174,6 +3271,12 @@ interface AdditionalFee {
|
|
|
3174
3271
|
translatedName?: string | null;
|
|
3175
3272
|
/** Address type tax was calculated against for this fee. */
|
|
3176
3273
|
taxableAddress?: TaxableAddress;
|
|
3274
|
+
/**
|
|
3275
|
+
* Cross-border repricing record of this fee on a site whose catalog prices include tax: the fee's catalog price, the base region's tax removed from it and the rate used.
|
|
3276
|
+
* @internal
|
|
3277
|
+
* @readonly
|
|
3278
|
+
*/
|
|
3279
|
+
crossBorderAdjustment?: CrossBorderPriceAdjustment;
|
|
3177
3280
|
}
|
|
3178
3281
|
declare enum AdditionalFeeSource {
|
|
3179
3282
|
UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
|
|
@@ -3846,4 +3949,4 @@ declare function createAndRedirectToCheckout(): __PublicMethodMetaInfo<'GET', {
|
|
|
3846
3949
|
checkoutTemplateId: string;
|
|
3847
3950
|
}, CreateAndRedirectToCheckoutRequest$1, CreateAndRedirectToCheckoutRequest, RawHttpResponse$1, RawHttpResponse>;
|
|
3848
3951
|
|
|
3849
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeSource as AdditionalFeeSourceOriginal, type AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressWithContact as AddressWithContactOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type ApplicableLineItems as ApplicableLineItemsOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, type BillingSettings as BillingSettingsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckoutTemplateResult as BulkCheckoutTemplateResultOriginal, type BulkCreateCheckoutTemplatesApplicationErrors as BulkCreateCheckoutTemplatesApplicationErrorsOriginal, type BulkCreateCheckoutTemplatesRequest as BulkCreateCheckoutTemplatesRequestOriginal, type BulkCreateCheckoutTemplatesResponse as BulkCreateCheckoutTemplatesResponseOriginal, type BuyerInfoIdOneOf as BuyerInfoIdOneOfOriginal, type BuyerInfo as BuyerInfoOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Carrier as CarrierOriginal, type CarrierServiceOption as CarrierServiceOptionOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, ChargeType as ChargeTypeOriginal, type ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal, type CheckoutCustomization as CheckoutCustomizationOriginal, type Checkout as CheckoutOriginal, type CheckoutTemplate as CheckoutTemplateOriginal, type CheckoutTemplateUsed as CheckoutTemplateUsedOriginal, type Color as ColorOriginal, type CommonImage as CommonImageOriginal, type ConversionInfo as ConversionInfoOriginal, type CouponDiscountValueOneOf as CouponDiscountValueOneOfOriginal, type Coupon as CouponOriginal, type CreateAndRedirectToCheckoutApplicationErrors as CreateAndRedirectToCheckoutApplicationErrorsOriginal, type CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequestOriginal, type CreateCheckoutFromTemplateApplicationErrors as CreateCheckoutFromTemplateApplicationErrorsOriginal, type CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequestOriginal, type CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponseOriginal, type CreateCheckoutTemplateApplicationErrors as CreateCheckoutTemplateApplicationErrorsOriginal, type CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequestOriginal, type CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomLineItem as CustomLineItemOriginal, type CustomSettings as CustomSettingsOriginal, type CyclePriceOverride as CyclePriceOverrideOriginal, type DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequestOriginal, type DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponseOriginal, type DeliveryAllocation as DeliveryAllocationOriginal, type DeliveryLogistics as DeliveryLogisticsOriginal, type DeliveryTimeSlot as DeliveryTimeSlotOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type Dimensions as DimensionsOriginal, DimensionsUnit as DimensionsUnitOriginal, type DimensionsUnitWithLiterals as DimensionsUnitWithLiteralsOriginal, type DiscountRuleDiscountValueOneOf as DiscountRuleDiscountValueOneOfOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, DiscountValueType as DiscountValueTypeOriginal, type DiscountValueTypeWithLiterals as DiscountValueTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, FallbackReason as FallbackReasonOriginal, type FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FocalPoint as FocalPointOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCheckoutTemplateRequest as GetCheckoutTemplateRequestOriginal, type GetCheckoutTemplateResponse as GetCheckoutTemplateResponseOriginal, type GiftCardCalculationError as GiftCardCalculationErrorOriginal, type GiftCard as GiftCardOriginal, type Group as GroupOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidMembership as InvalidMembershipOriginal, type ItemAvailabilityInfo as ItemAvailabilityInfoOriginal, ItemAvailabilityStatus as ItemAvailabilityStatusOriginal, type ItemAvailabilityStatusWithLiterals as ItemAvailabilityStatusWithLiteralsOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemModifier as ItemModifierOriginal, type ItemTaxFullDetails as ItemTaxFullDetailsOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, type ItemType as ItemTypeOriginal, ItemTypePreset as ItemTypePresetOriginal, type ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal, JurisdictionType as JurisdictionTypeOriginal, type JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal, type LineItemDiscount as LineItemDiscountOriginal, type LineItem as LineItemOriginal, ManualCalculationReason as ManualCalculationReasonOriginal, type ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal, type MembershipName as MembershipNameOriginal, type MembershipOptions as MembershipOptionsOriginal, type Membership as MembershipOriginal, type MembershipPaymentCredits as MembershipPaymentCreditsOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type OtherCharge as OtherChargeOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PickupDetails as PickupDetailsOriginal, PickupMethod as PickupMethodOriginal, type PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal, type PlainTextValue as PlainTextValueOriginal, PlatformFeeChargeType as PlatformFeeChargeTypeOriginal, type PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal, type PlatformFee as PlatformFeeOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type ProductName as ProductNameOriginal, ProductPeriodAlignment as ProductPeriodAlignmentOriginal, type ProductPeriodAlignmentWithLiterals as ProductPeriodAlignmentWithLiteralsOriginal, type QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequestOriginal, type QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponseOriginal, RateType as RateTypeOriginal, type RateTypeWithLiterals as RateTypeWithLiteralsOriginal, type RawHttpResponse as RawHttpResponseOriginal, type Region as RegionOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal, type SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal, type SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMemberships as SelectedMembershipsOriginal, type ServiceProperties as ServicePropertiesOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type ShippingInfo as ShippingInfoOriginal, type ShippingOption as ShippingOptionOriginal, type ShippingPrice as ShippingPriceOriginal, type ShippingRegion as ShippingRegionOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type TargetLineItem as TargetLineItemOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal, type TaxCalculationDetails as TaxCalculationDetailsOriginal, type TaxRateBreakdown as TaxRateBreakdownOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UpdateCheckoutTemplateApplicationErrors as UpdateCheckoutTemplateApplicationErrorsOriginal, type UpdateCheckoutTemplateRequest as UpdateCheckoutTemplateRequestOriginal, type UpdateCheckoutTemplateResponse as UpdateCheckoutTemplateResponseOriginal, type V1ItemModifier as V1ItemModifierOriginal, type V1LineItem as V1LineItemOriginal, type V1ModifierGroup as V1ModifierGroupOriginal, type ValidationError as ValidationErrorOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, type WebClientCustomization as WebClientCustomizationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateCheckoutTemplates, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, queryCheckoutTemplates, updateCheckoutTemplate };
|
|
3952
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeSource as AdditionalFeeSourceOriginal, type AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AddressWithContact as AddressWithContactOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type ApplicableLineItems as ApplicableLineItemsOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal, BalanceType as BalanceTypeOriginal, type BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal, BaseRateSource as BaseRateSourceOriginal, type BaseRateSourceWithLiterals as BaseRateSourceWithLiteralsOriginal, type BillingSettings as BillingSettingsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCheckoutTemplateResult as BulkCheckoutTemplateResultOriginal, type BulkCreateCheckoutTemplatesApplicationErrors as BulkCreateCheckoutTemplatesApplicationErrorsOriginal, type BulkCreateCheckoutTemplatesRequest as BulkCreateCheckoutTemplatesRequestOriginal, type BulkCreateCheckoutTemplatesResponse as BulkCreateCheckoutTemplatesResponseOriginal, type BuyerInfoIdOneOf as BuyerInfoIdOneOfOriginal, type BuyerInfo as BuyerInfoOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Carrier as CarrierOriginal, type CarrierServiceOption as CarrierServiceOptionOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, ChargeType as ChargeTypeOriginal, type ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal, type CheckoutCustomization as CheckoutCustomizationOriginal, type Checkout as CheckoutOriginal, type CheckoutTemplate as CheckoutTemplateOriginal, type CheckoutTemplateUsed as CheckoutTemplateUsedOriginal, type Color as ColorOriginal, type CommonImage as CommonImageOriginal, type ConversionInfo as ConversionInfoOriginal, type CouponDiscountValueOneOf as CouponDiscountValueOneOfOriginal, type Coupon as CouponOriginal, type CreateAndRedirectToCheckoutApplicationErrors as CreateAndRedirectToCheckoutApplicationErrorsOriginal, type CreateAndRedirectToCheckoutRequest as CreateAndRedirectToCheckoutRequestOriginal, type CreateCheckoutFromTemplateApplicationErrors as CreateCheckoutFromTemplateApplicationErrorsOriginal, type CreateCheckoutFromTemplateRequest as CreateCheckoutFromTemplateRequestOriginal, type CreateCheckoutFromTemplateResponse as CreateCheckoutFromTemplateResponseOriginal, type CreateCheckoutTemplateApplicationErrors as CreateCheckoutTemplateApplicationErrorsOriginal, type CreateCheckoutTemplateRequest as CreateCheckoutTemplateRequestOriginal, type CreateCheckoutTemplateResponse as CreateCheckoutTemplateResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CrossBorderPriceAdjustment as CrossBorderPriceAdjustmentOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomLineItem as CustomLineItemOriginal, type CustomSettings as CustomSettingsOriginal, type CyclePriceOverride as CyclePriceOverrideOriginal, type DeleteCheckoutTemplateRequest as DeleteCheckoutTemplateRequestOriginal, type DeleteCheckoutTemplateResponse as DeleteCheckoutTemplateResponseOriginal, type DeliveryAllocation as DeliveryAllocationOriginal, type DeliveryLogistics as DeliveryLogisticsOriginal, type DeliveryTimeSlot as DeliveryTimeSlotOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type Dimensions as DimensionsOriginal, DimensionsUnit as DimensionsUnitOriginal, type DimensionsUnitWithLiterals as DimensionsUnitWithLiteralsOriginal, type DiscountRuleDiscountValueOneOf as DiscountRuleDiscountValueOneOfOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, DiscountValueType as DiscountValueTypeOriginal, type DiscountValueTypeWithLiterals as DiscountValueTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, FallbackReason as FallbackReasonOriginal, type FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FocalPoint as FocalPointOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCheckoutTemplateRequest as GetCheckoutTemplateRequestOriginal, type GetCheckoutTemplateResponse as GetCheckoutTemplateResponseOriginal, type GiftCardCalculationError as GiftCardCalculationErrorOriginal, type GiftCard as GiftCardOriginal, type Group as GroupOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidMembership as InvalidMembershipOriginal, type ItemAvailabilityInfo as ItemAvailabilityInfoOriginal, ItemAvailabilityStatus as ItemAvailabilityStatusOriginal, type ItemAvailabilityStatusWithLiterals as ItemAvailabilityStatusWithLiteralsOriginal, type ItemCombinationLineItem as ItemCombinationLineItemOriginal, type ItemCombination as ItemCombinationOriginal, type ItemMetadata as ItemMetadataOriginal, type ItemModifier as ItemModifierOriginal, type ItemTaxFullDetails as ItemTaxFullDetailsOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, type ItemType as ItemTypeOriginal, ItemTypePreset as ItemTypePresetOriginal, type ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal, JurisdictionType as JurisdictionTypeOriginal, type JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal, type LineItemDiscount as LineItemDiscountOriginal, type LineItem as LineItemOriginal, ManualCalculationReason as ManualCalculationReasonOriginal, type ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal, type MembershipName as MembershipNameOriginal, type MembershipOptions as MembershipOptionsOriginal, type Membership as MembershipOriginal, type MembershipPaymentCredits as MembershipPaymentCreditsOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type OtherCharge as OtherChargeOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PickupDetails as PickupDetailsOriginal, PickupMethod as PickupMethodOriginal, type PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal, type PlainTextValue as PlainTextValueOriginal, PlatformFeeChargeType as PlatformFeeChargeTypeOriginal, type PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal, type PlatformFee as PlatformFeeOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type ProductName as ProductNameOriginal, ProductPeriodAlignment as ProductPeriodAlignmentOriginal, type ProductPeriodAlignmentWithLiterals as ProductPeriodAlignmentWithLiteralsOriginal, type QueryCheckoutTemplatesRequest as QueryCheckoutTemplatesRequestOriginal, type QueryCheckoutTemplatesResponse as QueryCheckoutTemplatesResponseOriginal, RateType as RateTypeOriginal, type RateTypeWithLiterals as RateTypeWithLiteralsOriginal, type RawHttpResponse as RawHttpResponseOriginal, type Region as RegionOriginal, RepriceStatus as RepriceStatusOriginal, type RepriceStatusWithLiterals as RepriceStatusWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal, type SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal, type SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMemberships as SelectedMembershipsOriginal, type ServiceProperties as ServicePropertiesOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type ShippingInfo as ShippingInfoOriginal, type ShippingOption as ShippingOptionOriginal, type ShippingPrice as ShippingPriceOriginal, type ShippingRegion as ShippingRegionOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, Status as StatusOriginal, type StatusWithLiterals as StatusWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type TargetLineItem as TargetLineItemOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal, type TaxCalculationDetails as TaxCalculationDetailsOriginal, type TaxRateBreakdown as TaxRateBreakdownOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UpdateCheckoutTemplateApplicationErrors as UpdateCheckoutTemplateApplicationErrorsOriginal, type UpdateCheckoutTemplateRequest as UpdateCheckoutTemplateRequestOriginal, type UpdateCheckoutTemplateResponse as UpdateCheckoutTemplateResponseOriginal, type V1ItemModifier as V1ItemModifierOriginal, type V1LineItem as V1LineItemOriginal, type V1ModifierGroup as V1ModifierGroupOriginal, type ValidationError as ValidationErrorOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, type WebClientCustomization as WebClientCustomizationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateCheckoutTemplates, createAndRedirectToCheckout, createCheckoutFromTemplate, createCheckoutTemplate, deleteCheckoutTemplate, getCheckoutTemplate, queryCheckoutTemplates, updateCheckoutTemplate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { CheckoutTemplate, CreateCheckoutTemplateApplicationErrors, BulkCreateCheckoutTemplatesOptions, BulkCreateCheckoutTemplatesResponse, BulkCreateCheckoutTemplatesApplicationErrors, UpdateCheckoutTemplate, UpdateCheckoutTemplateApplicationErrors, CreateCheckoutFromTemplateResponse, CreateCheckoutFromTemplateApplicationErrors, RawHttpResponse, CreateAndRedirectToCheckoutApplicationErrors, CheckoutTemplateCreatedEnvelope, CheckoutTemplateDeletedEnvelope, CheckoutTemplateUpdatedEnvelope, CheckoutTemplateUsedEnvelope, CheckoutTemplatesQueryBuilder, CheckoutTemplateQuery, typedQueryCheckoutTemplates } from './index.typings.mjs';
|
|
3
|
-
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BillingSettings, BulkActionMetadata, BulkCheckoutTemplateResult, BulkCreateCheckoutTemplatesRequest, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CouponDiscountValueOneOf, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CyclePriceOverride, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AutoTaxFallbackCalculationDetails, BalanceType, BalanceTypeWithLiterals, BaseEventMetadata, BaseRateSource, BaseRateSourceWithLiterals, BillingSettings, BulkActionMetadata, BulkCheckoutTemplateResult, BulkCreateCheckoutTemplatesRequest, BuyerInfo, BuyerInfoIdOneOf, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, ChargeType, ChargeTypeWithLiterals, Checkout, CheckoutCustomization, CheckoutTemplateQuerySpec, CheckoutTemplateUsed, CheckoutTemplatesQueryResult, Color, CommonQueryWithEntityContext, ConversionInfo, Coupon, CouponDiscountValueOneOf, CreateAndRedirectToCheckoutRequest, CreateCheckoutFromTemplateRequest, CreateCheckoutTemplateRequest, CreateCheckoutTemplateResponse, CreatedBy, CreatedByIdOneOf, CrossBorderPriceAdjustment, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomContentReference, CustomField, CustomLineItem, CustomSettings, CyclePriceOverride, DeleteCheckoutTemplateRequest, DeleteCheckoutTemplateResponse, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Dimensions, DimensionsUnit, DimensionsUnitWithLiterals, DiscountRule, DiscountRuleDiscountValueOneOf, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DiscountValueType, DiscountValueTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, ExternalReference, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCheckoutTemplateRequest, GetCheckoutTemplateResponse, GiftCard, GiftCardCalculationError, Group, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemCombination, ItemCombinationLineItem, ItemMetadata, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, PlatformFeeChargeType, PlatformFeeChargeTypeWithLiterals, Policy, PriceDescription, PriceSummary, ProductName, ProductPeriodAlignment, ProductPeriodAlignmentWithLiterals, QueryCheckoutTemplatesRequest, QueryCheckoutTemplatesResponse, RateType, RateTypeWithLiterals, Region, RepriceStatus, RepriceStatusWithLiterals, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, ServiceProperties, Severity, SeverityWithLiterals, ShippingInfo, ShippingOption, ShippingPrice, ShippingRegion, SortOrder, SortOrderWithLiterals, Sorting, Status, StatusWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCheckoutTemplateRequest, UpdateCheckoutTemplateResponse, V1ItemModifier, V1LineItem, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebClientCustomization, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createCheckoutTemplate$1(httpClient: HttpClient): CreateCheckoutTemplateSignature;
|
|
6
6
|
interface CreateCheckoutTemplateSignature {
|