@wix/auto_sdk_ecom_subscription-contracts 1.0.149 → 1.0.151
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 +9 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +25 -13
- package/build/cjs/index.typings.js +9 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -5
- package/build/cjs/meta.js +9 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +8 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +25 -13
- package/build/es/index.typings.mjs +8 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -5
- package/build/es/meta.mjs +8 -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 +114 -13
- package/build/internal/cjs/meta.d.ts +106 -5
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +114 -13
- package/build/internal/es/meta.d.mts +106 -5
- package/package.json +2 -2
|
@@ -1709,6 +1709,7 @@ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
|
1709
1709
|
merchantDiscount?: MerchantDiscount;
|
|
1710
1710
|
/** Automatic discount applied by the system based on configured discount rules. */
|
|
1711
1711
|
discountRule?: DiscountRule;
|
|
1712
|
+
/** Discount type. */
|
|
1712
1713
|
discountType?: DiscountTypeWithLiterals;
|
|
1713
1714
|
/**
|
|
1714
1715
|
* __Deprecated.__ Use `lineItemDiscounts` instead.
|
|
@@ -1756,16 +1757,24 @@ declare enum DiscountType {
|
|
|
1756
1757
|
/** @enumType */
|
|
1757
1758
|
type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
|
|
1758
1759
|
/** Coupon */
|
|
1759
|
-
interface Coupon {
|
|
1760
|
+
interface Coupon extends CouponDiscountValueOneOf {
|
|
1760
1761
|
/** Coupon ID. */
|
|
1761
1762
|
_id?: string;
|
|
1762
1763
|
/** Coupon code. */
|
|
1763
1764
|
code?: string;
|
|
1764
1765
|
/** Coupon name. */
|
|
1765
1766
|
name?: string;
|
|
1766
|
-
/**
|
|
1767
|
+
/** Total amount the coupon took off. */
|
|
1767
1768
|
amount?: Price;
|
|
1768
1769
|
}
|
|
1770
|
+
/** @oneof */
|
|
1771
|
+
interface CouponDiscountValueOneOf {
|
|
1772
|
+
}
|
|
1773
|
+
/** How a coupon's or discount rule's discount value is expressed. */
|
|
1774
|
+
declare enum DiscountValueType {
|
|
1775
|
+
}
|
|
1776
|
+
/** @enumType */
|
|
1777
|
+
type DiscountValueTypeWithLiterals = DiscountValueType;
|
|
1769
1778
|
/** Discount applied manually by the merchant through the dashboard. */
|
|
1770
1779
|
interface MerchantDiscount extends MerchantDiscountMerchantDiscountReasonOneOf {
|
|
1771
1780
|
/** Predefined discount reason. */
|
|
@@ -1799,7 +1808,7 @@ declare enum DiscountReason {
|
|
|
1799
1808
|
}
|
|
1800
1809
|
/** @enumType */
|
|
1801
1810
|
type DiscountReasonWithLiterals = DiscountReason | 'UNSPECIFIED' | 'EXCHANGED_ITEMS' | 'BILLING_ADJUSTMENT';
|
|
1802
|
-
interface DiscountRule {
|
|
1811
|
+
interface DiscountRule extends DiscountRuleDiscountValueOneOf {
|
|
1803
1812
|
/**
|
|
1804
1813
|
* Discount rule ID
|
|
1805
1814
|
* @format GUID
|
|
@@ -1807,9 +1816,12 @@ interface DiscountRule {
|
|
|
1807
1816
|
_id?: string;
|
|
1808
1817
|
/** Discount rule name */
|
|
1809
1818
|
name?: DiscountRuleName;
|
|
1810
|
-
/**
|
|
1819
|
+
/** Total amount the discount rule took off. */
|
|
1811
1820
|
amount?: Price;
|
|
1812
1821
|
}
|
|
1822
|
+
/** @oneof */
|
|
1823
|
+
interface DiscountRuleDiscountValueOneOf {
|
|
1824
|
+
}
|
|
1813
1825
|
interface DiscountRuleName {
|
|
1814
1826
|
/**
|
|
1815
1827
|
* Original discount rule name (in site's default language).
|
|
@@ -3085,10 +3097,10 @@ interface SubscriptionContractCommittedEnvelope {
|
|
|
3085
3097
|
* The event holds the updated contract and every change that was applied.
|
|
3086
3098
|
* @permissionScope Manage Stores - all permissions
|
|
3087
3099
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3100
|
+
* @permissionScope Read subscription contracts
|
|
3101
|
+
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACT-READ
|
|
3088
3102
|
* @permissionScope Read eCommerce - all read permissions
|
|
3089
3103
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
3090
|
-
* @permissionScope Manage subscription contracts
|
|
3091
|
-
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACTS
|
|
3092
3104
|
* @permissionScope Manage Restaurants - all permissions
|
|
3093
3105
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3094
3106
|
* @permissionScope Manage eCommerce - all permissions
|
|
@@ -3108,10 +3120,10 @@ interface SubscriptionContractCreatedEnvelope {
|
|
|
3108
3120
|
* Triggered when a subscription contract is created. Subscription contracts are created at checkout, 1 for each group of subscription items that are billed together, so 1 checkout can trigger this event more than once.
|
|
3109
3121
|
* @permissionScope Manage Stores - all permissions
|
|
3110
3122
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3123
|
+
* @permissionScope Read subscription contracts
|
|
3124
|
+
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACT-READ
|
|
3111
3125
|
* @permissionScope Read eCommerce - all read permissions
|
|
3112
3126
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
3113
|
-
* @permissionScope Manage subscription contracts
|
|
3114
|
-
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACTS
|
|
3115
3127
|
* @permissionScope Manage Restaurants - all permissions
|
|
3116
3128
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3117
3129
|
* @permissionScope Manage eCommerce - all permissions
|
|
@@ -3131,10 +3143,10 @@ interface SubscriptionContractDeletedEnvelope {
|
|
|
3131
3143
|
* Doesn't fire when the subscription ends, because the subscription contract isn't deleted then. Also doesn't fire when the site is permanently deleted, even though its subscription contracts are deleted with it.
|
|
3132
3144
|
* @permissionScope Manage Stores - all permissions
|
|
3133
3145
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3146
|
+
* @permissionScope Read subscription contracts
|
|
3147
|
+
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACT-READ
|
|
3134
3148
|
* @permissionScope Read eCommerce - all read permissions
|
|
3135
3149
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
3136
|
-
* @permissionScope Manage subscription contracts
|
|
3137
|
-
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACTS
|
|
3138
3150
|
* @permissionScope Manage Restaurants - all permissions
|
|
3139
3151
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3140
3152
|
* @permissionScope Manage eCommerce - all permissions
|
|
@@ -3158,10 +3170,10 @@ interface SubscriptionContractUpdatedEnvelope {
|
|
|
3158
3170
|
* Also fires right after a subscription contract is created, while billing for the subscription is set up. These updates can leave every documented field unchanged.
|
|
3159
3171
|
* @permissionScope Manage Stores - all permissions
|
|
3160
3172
|
* @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
|
|
3173
|
+
* @permissionScope Read subscription contracts
|
|
3174
|
+
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACT-READ
|
|
3161
3175
|
* @permissionScope Read eCommerce - all read permissions
|
|
3162
3176
|
* @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
|
|
3163
|
-
* @permissionScope Manage subscription contracts
|
|
3164
|
-
* @permissionScopeId SCOPE.ECOM.SUBSCRIPTION-CONTRACTS
|
|
3165
3177
|
* @permissionScope Manage Restaurants - all permissions
|
|
3166
3178
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
3167
3179
|
* @permissionScope Manage eCommerce - all permissions
|
|
@@ -3354,4 +3366,4 @@ declare const utils: {
|
|
|
3354
3366
|
query: _wix_sdk_types.QueryHelpers<SubscriptionContract, SubscriptionContractQuerySpec, SubscriptionContractQuery>;
|
|
3355
3367
|
};
|
|
3356
3368
|
|
|
3357
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeSummary, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, BaseRateSource, type BaseRateSourceWithLiterals, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type CatalogReferenceOptionsBeforeChange, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeChangeDetailsOneOf, ContractChangeType, type ContractChangeTypeWithLiterals, type ContractTarget, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CrossBorderCalculation, CrossBorderNotApplicableReason, type CrossBorderNotApplicableReasonWithLiterals, type CrossBorderPriceAdjustment, CrossBorderRepricingMode, type CrossBorderRepricingModeWithLiterals, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CyclePriceOverride, type DecimalQuantity, type DecimalQuantityUnitOneOf, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryProfileIdBeforeChange, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DescriptionLinesBeforeChange, type DigitalFile, type DigitalFileBeforeChange, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, type DiscountSummary, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FulfillerIdBeforeChange, type FullAddressContactDetails, type GetSubscriptionContractApplicationErrors, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImageBeforeChange, type InventoryAppIdBeforeChange, type ItemChangedDetails, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeBeforeChange, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemCyclePriceOverrides, type LineItemDelta, type LineItemDeltaDeltaDetailsOneOf, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemSummary, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MaskedSubscriptionContract, MeasurementUnit, type MeasurementUnitWithLiterals, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type ModifierGroupsBeforeChange, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PhysicalPropertiesBeforeChange, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceDescriptionBeforeChange, type PriceSummary, type PriceUndeterminedBeforeChange, type ProductName, type ProductNameBeforeChange, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, RepriceStatus, type RepriceStatusWithLiterals, type RestockLocation, type RestoreInfo, type RootCatalogItemIdBeforeChange, type ServiceProperties, type ShippingGroupIdBeforeChange, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractChargeUpcoming, type SubscriptionContractCommittedEnvelope, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxInfoBeforeChange, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1CyclePriceOverride, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCommitted, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
|
|
3369
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, ActionInitiator, type ActionInitiatorWithLiterals, type ActivityAuthor, type ActivityAuthorValueOneOf, ActivityType, type ActivityTypeWithLiterals, type AdditionalFee, type AdditionalFeeDelta, type AdditionalFeeDeltaDeltaDetailsOneOf, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeSummary, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDelta, type AppliedDiscountDeltaDeltaDetailsOneOf, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, BaseRateSource, type BaseRateSourceWithLiterals, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BillingSettings, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type CatalogReferenceOptionsBeforeChange, ChangeType, type ChangeTypeWithLiterals, type ChangesAppliedActivity, type ChangesAppliedActivityTargetOneOf, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, ChargeType, type ChargeTypeWithLiterals, type Color, type CommitSubscriptionContractChangesRequest, type CommitSubscriptionContractChangesResponse, type CommonQueryWithEntityContext, type ContractChange, type ContractChangeChangeDetailsOneOf, ContractChangeType, type ContractChangeTypeWithLiterals, type ContractTarget, type Coupon, type CouponDiscountValueOneOf, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CrossBorderCalculation, CrossBorderNotApplicableReason, type CrossBorderNotApplicableReasonWithLiterals, type CrossBorderPriceAdjustment, CrossBorderRepricingMode, type CrossBorderRepricingModeWithLiterals, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type CyclePriceOverride, type DecimalQuantity, type DecimalQuantityUnitOneOf, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryProfileIdBeforeChange, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DescriptionLinesBeforeChange, type DigitalFile, type DigitalFileBeforeChange, type Dimensions, DimensionsUnit, type DimensionsUnitWithLiterals, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleDiscountValueOneOf, type DiscountRuleName, type DiscountSummary, DiscountType, type DiscountTypeWithLiterals, DiscountValueType, type DiscountValueTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FulfillerIdBeforeChange, type FullAddressContactDetails, type GetSubscriptionContractApplicationErrors, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ImageBeforeChange, type InventoryAppIdBeforeChange, type ItemChangedDetails, type ItemCombination, type ItemCombinationLineItem, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, type ItemTypeBeforeChange, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemChanges, type LineItemCyclePriceOverrides, type LineItemDelta, type LineItemDeltaDeltaDetailsOneOf, type LineItemDiscount, type LineItemQuantityChange, LineItemQuantityChangeType, type LineItemQuantityChangeTypeWithLiterals, type LineItemSummary, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MaskedSubscriptionContract, MeasurementUnit, type MeasurementUnitWithLiterals, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type ModifierGroupsBeforeChange, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PhysicalPropertiesBeforeChange, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type PlatformFee, type PlatformFeeSummary, type Price, type PriceDescription, type PriceDescriptionBeforeChange, type PriceSummary, type PriceUndeterminedBeforeChange, type ProductName, type ProductNameBeforeChange, ProductPeriodAlignment, type ProductPeriodAlignmentWithLiterals, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, RepriceStatus, type RepriceStatusWithLiterals, type RestockLocation, type RestoreInfo, type RootCatalogItemIdBeforeChange, type ServiceProperties, type ShippingGroupIdBeforeChange, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, SpecificItemsCouponBehavior, type SpecificItemsCouponBehaviorWithLiterals, type StreetAddress, type SubscriptionCommitSettings, type SubscriptionContract, type SubscriptionContractActivity, type SubscriptionContractActivityContentOneOf, type SubscriptionContractActivityTargetOneOf, type SubscriptionContractCanceled, type SubscriptionContractChangesCommitted, type SubscriptionContractChargeUpcoming, type SubscriptionContractCommittedEnvelope, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractDiffs, type SubscriptionContractExpired, type SubscriptionContractQuery, type SubscriptionContractQuerySpec, type SubscriptionContractSettings, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, SubscriptionSettingsProductPeriodAlignment, type SubscriptionSettingsProductPeriodAlignmentWithLiterals, type SubscriptionTitle, type TaxInfoBeforeChange, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TotalPriceChange, type TranslatableString, type TranslatedValue, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1BillingSettings, type V1CyclePriceOverride, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCommitted, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts, typedQuerySubscriptionContracts, utils };
|
|
@@ -35,6 +35,7 @@ __export(index_typings_exports, {
|
|
|
35
35
|
DimensionsUnit: () => DimensionsUnit,
|
|
36
36
|
DiscountReason: () => DiscountReason,
|
|
37
37
|
DiscountType: () => DiscountType,
|
|
38
|
+
DiscountValueType: () => DiscountValueType,
|
|
38
39
|
ItemTypePreset: () => ItemTypePreset,
|
|
39
40
|
JurisdictionType: () => JurisdictionType,
|
|
40
41
|
LineItemQuantityChangeType: () => LineItemQuantityChangeType,
|
|
@@ -510,6 +511,13 @@ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
|
510
511
|
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
511
512
|
return DiscountType2;
|
|
512
513
|
})(DiscountType || {});
|
|
514
|
+
var DiscountValueType = /* @__PURE__ */ ((DiscountValueType2) => {
|
|
515
|
+
DiscountValueType2["PERCENTAGE"] = "PERCENTAGE";
|
|
516
|
+
DiscountValueType2["FIXED_AMOUNT"] = "FIXED_AMOUNT";
|
|
517
|
+
DiscountValueType2["FIXED_PRICE"] = "FIXED_PRICE";
|
|
518
|
+
DiscountValueType2["QUANTITY_BASED"] = "QUANTITY_BASED";
|
|
519
|
+
return DiscountValueType2;
|
|
520
|
+
})(DiscountValueType || {});
|
|
513
521
|
var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
514
522
|
DiscountReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
515
523
|
DiscountReason2["EXCHANGED_ITEMS"] = "EXCHANGED_ITEMS";
|
|
@@ -756,6 +764,7 @@ var utils = {
|
|
|
756
764
|
DimensionsUnit,
|
|
757
765
|
DiscountReason,
|
|
758
766
|
DiscountType,
|
|
767
|
+
DiscountValueType,
|
|
759
768
|
ItemTypePreset,
|
|
760
769
|
JurisdictionType,
|
|
761
770
|
LineItemQuantityChangeType,
|