@wix/auto_sdk_ecom_subscription-contracts 1.0.54 → 1.0.56

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.
@@ -965,6 +965,8 @@ interface Address {
965
965
  * @maxLength 100
966
966
  */
967
967
  addressLine2?: string | null;
968
+ /** Geocode object containing latitude and longitude coordinates. */
969
+ location?: AddressLocation;
968
970
  /**
969
971
  * Country's full name.
970
972
  * @readonly
@@ -1677,6 +1679,97 @@ interface ActionEvent {
1677
1679
  }
1678
1680
  interface Empty {
1679
1681
  }
1682
+ interface BulkCreateSubscriptionContractsRequest {
1683
+ /**
1684
+ * List of SubscriptionContracts to create.
1685
+ * @minSize 1
1686
+ * @maxSize 100
1687
+ */
1688
+ subscriptionContracts?: SubscriptionContract[];
1689
+ /**
1690
+ * Whether to return the full subscription contract entities in the response.
1691
+ *
1692
+ * Default: `false`
1693
+ */
1694
+ returnEntity?: boolean;
1695
+ }
1696
+ interface BulkCreateSubscriptionContractsResponse {
1697
+ /**
1698
+ * Results of the contract created operation.
1699
+ * @minSize 1
1700
+ * @maxSize 100
1701
+ */
1702
+ results?: BulkSubscriptionContractResult[];
1703
+ /** Bulk action metadata. */
1704
+ bulkActionMetadata?: BulkActionMetadata;
1705
+ }
1706
+ interface BulkSubscriptionContractResult {
1707
+ /** Metadata about a single update operation. */
1708
+ itemMetadata?: ItemMetadata;
1709
+ /**
1710
+ * Created subscription contract.
1711
+ *
1712
+ * Only present if `returnEntity` was `true`.
1713
+ */
1714
+ item?: SubscriptionContract;
1715
+ }
1716
+ interface ItemMetadata {
1717
+ /**
1718
+ * Item ID. Provided only whenever possible. For example, `itemId` can't be provided when item creation has failed.
1719
+ * @format GUID
1720
+ */
1721
+ _id?: string | null;
1722
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1723
+ originalIndex?: number;
1724
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
1725
+ success?: boolean;
1726
+ /** Details about the error in case of failure. */
1727
+ error?: ApplicationError;
1728
+ }
1729
+ interface ApplicationError {
1730
+ /** Error code. */
1731
+ code?: string;
1732
+ /** Description of the error. */
1733
+ description?: string;
1734
+ /** Data related to the error. */
1735
+ data?: Record<string, any> | null;
1736
+ }
1737
+ interface BulkActionMetadata {
1738
+ /** Number of items that were successfully processed. */
1739
+ totalSuccesses?: number;
1740
+ /** Number of items that couldn't be processed. */
1741
+ totalFailures?: number;
1742
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1743
+ undetailedFailures?: number;
1744
+ }
1745
+ interface BulkUpdateSubscriptionContractsRequest {
1746
+ /**
1747
+ * List of SubscriptionContracts to update.
1748
+ * @minSize 1
1749
+ * @maxSize 100
1750
+ */
1751
+ subscriptionContracts?: MaskedSubscriptionContract[];
1752
+ /**
1753
+ * Whether to return the full subscription contract entities in the response.
1754
+ *
1755
+ * Default: `false`
1756
+ */
1757
+ returnEntity?: boolean;
1758
+ }
1759
+ interface MaskedSubscriptionContract {
1760
+ /** Subscription contract to be updated. */
1761
+ subscriptionContract?: SubscriptionContract;
1762
+ }
1763
+ interface BulkUpdateSubscriptionContractsResponse {
1764
+ /**
1765
+ * Results of the contract updated operation.
1766
+ * @minSize 1
1767
+ * @maxSize 100
1768
+ */
1769
+ results?: BulkSubscriptionContractResult[];
1770
+ /** Metadata about the bulk operation. */
1771
+ bulkActionMetadata?: BulkActionMetadata;
1772
+ }
1680
1773
  interface MessageEnvelope {
1681
1774
  /**
1682
1775
  * App instance ID.
@@ -1955,4 +2048,4 @@ interface SubscriptionContractsQueryBuilder {
1955
2048
  find: () => Promise<SubscriptionContractsQueryResult>;
1956
2049
  }
1957
2050
 
1958
- export { type ActionEvent, type AdditionalFee, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, type Color, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemModifier, type ItemTaxFullDetails, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts };
2051
+ export { type ActionEvent, type AdditionalFee, type Address, type AddressLocation, type AddressWithContact, AdjustmentType, type AdjustmentTypeWithLiterals, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type BaseEventMetadata, type BillingAdjustment, type BillingAdjustmentPriceSummary, type BulkActionMetadata, type BulkCreateSubscriptionContractsRequest, type BulkCreateSubscriptionContractsResponse, type BulkSubscriptionContractResult, type BulkUpdateSubscriptionContractsRequest, type BulkUpdateSubscriptionContractsResponse, type BuyerInfo, type BuyerInfoIdOneOf, type CatalogReference, type ChannelInfo, ChannelType, type ChannelTypeWithLiterals, type Color, type Coupon, type CreateSubscriptionContractRequest, type CreateSubscriptionContractResponse, type CurrencyConversionDetails, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomField, type DeliveryLogistics, type DeliveryLogisticsAddressOneOf, type DeliveryTimeSlot, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type DigitalFile, DiscountReason, type DiscountReasonWithLiterals, type DiscountRule, type DiscountRuleName, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type FocalPoint, type FreeTrialPeriod, type FullAddressContactDetails, type GetSubscriptionContractRequest, type GetSubscriptionContractResponse, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ItemModifier, type ItemTaxFullDetails, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LineItemDiscount, type LineItemTaxBreakdown, type LineItemTaxInfo, type Location, type LocationAndQuantity, type MaskedSubscriptionContract, type MerchantDiscount, type MerchantDiscountMerchantDiscountReasonOneOf, type MessageEnvelope, type ModifierGroup, type OrderLineItem, type OrderTaxBreakdown, type OrderTaxInfo, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PhysicalProperties, type PickupAddress, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlainTextValue, type Price, type PriceDescription, type PriceSummary, type ProductName, type QuerySubscriptionContractsRequest, type QuerySubscriptionContractsResponse, type RestoreInfo, type ShippingInformation, type ShippingPrice, type ShippingRegion, SortOrder, type SortOrderWithLiterals, type Sorting, type StreetAddress, type SubscriptionContract, type SubscriptionContractCreatedEnvelope, type SubscriptionContractDeletedEnvelope, type SubscriptionContractUpdatedEnvelope, type SubscriptionContractsQueryBuilder, type SubscriptionContractsQueryResult, type SubscriptionDescription, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionInfo, type SubscriptionSettings, type SubscriptionTitle, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type TranslatableString, type UpdateSubscriptionContractRequest, type UpdateSubscriptionContractResponse, type V1FreeTrialPeriod, type V1SubscriptionDescription, type V1SubscriptionSettings, type V1SubscriptionTitle, V2SubscriptionFrequency, type V2SubscriptionFrequencyWithLiterals, type VatId, VatType, type VatTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, getSubscriptionContract, onSubscriptionContractCreated, onSubscriptionContractDeleted, onSubscriptionContractUpdated, querySubscriptionContracts };