@epcc-sdk/sdks-shopper 0.0.34 → 0.0.36
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/README.md +2 -0
- package/dist/client/@tanstack/react-query.gen.cjs +34 -0
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +24 -2
- package/dist/client/@tanstack/react-query.gen.d.ts +24 -2
- package/dist/client/@tanstack/react-query.gen.mjs +32 -0
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.cjs +18 -0
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +16 -2
- package/dist/client/sdk.gen.d.ts +16 -2
- package/dist/client/sdk.gen.mjs +17 -0
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +37 -2
- package/dist/client/types.gen.d.ts +37 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react-query.d.cts +1 -1
- package/dist/react-query.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, GetCartsError, CreateACartData, CartEntityResponse, CreateACartError, DeleteACartData, ResponseErrorResponse, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, CartResponse, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, OrderResponse, PaymentSetupData, TransactionEntityResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData } from './types.gen.cjs';
|
|
1
|
+
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, GetCartsError, CreateACartData, CartEntityResponse, CreateACartError, DeleteACartData, ResponseErrorResponse, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, CartResponse, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, OrderResponse, PaymentSetupData, TransactionEntityResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData } from './types.gen.cjs';
|
|
2
2
|
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
3
3
|
import { Options } from '@hey-api/client-fetch';
|
|
4
4
|
|
|
@@ -2394,6 +2394,20 @@ declare const listSubscriptionPricingOptions: <ThrowOnError extends boolean = fa
|
|
|
2394
2394
|
declare const listSubscriptionStates: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionStatesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2395
2395
|
data?: Array<SubscriptionState>;
|
|
2396
2396
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Create a subscription state
|
|
2399
|
+
* The subscription lifecycle is the states that a subscription can go through when a customer subscribes to a service or a plan.
|
|
2400
|
+
*
|
|
2401
|
+
* A subscription can have the following states:
|
|
2402
|
+
*
|
|
2403
|
+
* - `pending`
|
|
2404
|
+
* - `canceled`
|
|
2405
|
+
* - `paused`
|
|
2406
|
+
* - `resumed`
|
|
2407
|
+
* For more information, see [Managing the Subscription Lifecycle](/docs/api/subscriptions/subscriptions#managing-the-subscription-lifecycle).
|
|
2408
|
+
*
|
|
2409
|
+
*/
|
|
2410
|
+
declare const createSubscriptionState: <ThrowOnError extends boolean = false>(options: Options<CreateSubscriptionStateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2397
2411
|
/**
|
|
2398
2412
|
* Get subscription state
|
|
2399
2413
|
*/
|
|
@@ -2754,4 +2768,4 @@ declare const getAFile: <ThrowOnError extends boolean = false>(options: Options<
|
|
|
2754
2768
|
data?: File;
|
|
2755
2769
|
}, FilesErrorResponse, ThrowOnError>;
|
|
2756
2770
|
|
|
2757
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createOrderShippingGroup, createRule, createShippingGroup, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACart, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAllRelatedProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextAllRelatedProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderShippingGroups, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getShippingGroupById, getShippingGroups, getShippingGroupsById, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlanPricingOptions, listOfferingPlans, listOfferingPricingOptions, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionPricingOptions, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putShippingGroupById, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule, updateShippingGroup };
|
|
2771
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createOrderShippingGroup, createRule, createShippingGroup, createSubscriptionState, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACart, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAllRelatedProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextAllRelatedProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderShippingGroups, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getShippingGroupById, getShippingGroups, getShippingGroupsById, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlanPricingOptions, listOfferingPlans, listOfferingPricingOptions, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionPricingOptions, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putShippingGroupById, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule, updateShippingGroup };
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, GetCartsError, CreateACartData, CartEntityResponse, CreateACartError, DeleteACartData, ResponseErrorResponse, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, CartResponse, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, OrderResponse, PaymentSetupData, TransactionEntityResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData } from './types.gen.js';
|
|
1
|
+
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, GetCartsError, CreateACartData, CartEntityResponse, CreateACartError, DeleteACartData, ResponseErrorResponse, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, CartResponse, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, OrderResponse, PaymentSetupData, TransactionEntityResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData } from './types.gen.js';
|
|
2
2
|
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
3
3
|
import { Options } from '@hey-api/client-fetch';
|
|
4
4
|
|
|
@@ -2394,6 +2394,20 @@ declare const listSubscriptionPricingOptions: <ThrowOnError extends boolean = fa
|
|
|
2394
2394
|
declare const listSubscriptionStates: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionStatesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2395
2395
|
data?: Array<SubscriptionState>;
|
|
2396
2396
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Create a subscription state
|
|
2399
|
+
* The subscription lifecycle is the states that a subscription can go through when a customer subscribes to a service or a plan.
|
|
2400
|
+
*
|
|
2401
|
+
* A subscription can have the following states:
|
|
2402
|
+
*
|
|
2403
|
+
* - `pending`
|
|
2404
|
+
* - `canceled`
|
|
2405
|
+
* - `paused`
|
|
2406
|
+
* - `resumed`
|
|
2407
|
+
* For more information, see [Managing the Subscription Lifecycle](/docs/api/subscriptions/subscriptions#managing-the-subscription-lifecycle).
|
|
2408
|
+
*
|
|
2409
|
+
*/
|
|
2410
|
+
declare const createSubscriptionState: <ThrowOnError extends boolean = false>(options: Options<CreateSubscriptionStateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2397
2411
|
/**
|
|
2398
2412
|
* Get subscription state
|
|
2399
2413
|
*/
|
|
@@ -2754,4 +2768,4 @@ declare const getAFile: <ThrowOnError extends boolean = false>(options: Options<
|
|
|
2754
2768
|
data?: File;
|
|
2755
2769
|
}, FilesErrorResponse, ThrowOnError>;
|
|
2756
2770
|
|
|
2757
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createOrderShippingGroup, createRule, createShippingGroup, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACart, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAllRelatedProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextAllRelatedProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderShippingGroups, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getShippingGroupById, getShippingGroups, getShippingGroupsById, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlanPricingOptions, listOfferingPlans, listOfferingPricingOptions, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionPricingOptions, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putShippingGroupById, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule, updateShippingGroup };
|
|
2771
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmOrder, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createOrderShippingGroup, createRule, createShippingGroup, createSubscriptionState, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCartShippingGroup, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, getACart, getACurrency, getAFile, getATransaction, getAllCurrencies, getAllFiles, getAllHierarchies, getAllNodes, getAllProducts, getAllRelatedProducts, getAnOrder, getByContextAllHierarchies, getByContextAllNodes, getByContextAllProducts, getByContextAllRelatedProducts, getByContextChildNodes, getByContextChildProducts, getByContextComponentProductIds, getByContextHierarchy, getByContextHierarchyChildNodes, getByContextHierarchyNodes, getByContextNode, getByContextProduct, getByContextProductsForHierarchy, getByContextProductsForNode, getByContextRelease, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderShippingGroups, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, getShippingGroupById, getShippingGroups, getShippingGroupsById, getStock, getSubscription, getSubscriptionInvoice, getSubscriptionInvoicePayment, getSubscriptionState, getV2AccountAddress, getV2AccountAddresses, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2Accounts, getV2AccountsAccountId, getV2AccountsAccountIdAccountMemberships, listInvoices, listLocations, listOfferingFeatures, listOfferingPlanPricingOptions, listOfferingPlans, listOfferingPricingOptions, listOfferings, listSubscriptionInvoicePayments, listSubscriptionInvoices, listSubscriptionPlans, listSubscriptionPricingOptions, listSubscriptionStates, listSubscriptions, manageCarts, paymentSetup, postV2AccountAddress, postV2AccountMembersTokens, postV2Accounts, publishRelease, putShippingGroupById, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCartPaymentIntent, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule, updateShippingGroup };
|
package/dist/client/sdk.gen.mjs
CHANGED
|
@@ -1552,6 +1552,22 @@ const listSubscriptionStates = (options) => {
|
|
|
1552
1552
|
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
|
|
1553
1553
|
});
|
|
1554
1554
|
};
|
|
1555
|
+
const createSubscriptionState = (options) => {
|
|
1556
|
+
return (options?.client ?? client).post({
|
|
1557
|
+
...options,
|
|
1558
|
+
headers: {
|
|
1559
|
+
"Content-Type": "application/json",
|
|
1560
|
+
...options?.headers
|
|
1561
|
+
},
|
|
1562
|
+
security: [
|
|
1563
|
+
{
|
|
1564
|
+
scheme: "bearer",
|
|
1565
|
+
type: "http"
|
|
1566
|
+
}
|
|
1567
|
+
],
|
|
1568
|
+
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/states"
|
|
1569
|
+
});
|
|
1570
|
+
};
|
|
1555
1571
|
const getSubscriptionState = (options) => {
|
|
1556
1572
|
return (options?.client ?? client).get({
|
|
1557
1573
|
...options,
|
|
@@ -1965,6 +1981,7 @@ export {
|
|
|
1965
1981
|
createOrderShippingGroup,
|
|
1966
1982
|
createRule,
|
|
1967
1983
|
createShippingGroup,
|
|
1984
|
+
createSubscriptionState,
|
|
1968
1985
|
deleteACart,
|
|
1969
1986
|
deleteACartItem,
|
|
1970
1987
|
deleteAPromotionViaPromotionCode,
|