@epcc-sdk/sdks-shopper 0.0.31 → 0.0.33
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 +32 -10
- package/dist/client/@tanstack/react-query.gen.cjs +43 -64
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +67 -96
- package/dist/client/@tanstack/react-query.gen.d.ts +67 -96
- package/dist/client/@tanstack/react-query.gen.mjs +41 -61
- 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 +44 -34
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +26 -32
- package/dist/client/sdk.gen.d.ts +26 -32
- package/dist/client/sdk.gen.mjs +41 -30
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +3 -94
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +2 -9
- package/dist/client/transformers.gen.d.ts +2 -9
- package/dist/client/transformers.gen.mjs +3 -87
- package/dist/client/transformers.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +252 -245
- package/dist/client/types.gen.d.ts +252 -245
- package/dist/index.cjs +0 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -4
- package/dist/index.d.ts +2 -4
- package/dist/index.mjs +0 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react-query.cjs +23 -0
- package/dist/react-query.cjs.map +1 -0
- package/dist/react-query.d.cts +4 -0
- package/dist/react-query.d.ts +4 -0
- package/dist/react-query.mjs +2 -0
- package/dist/react-query.mjs.map +1 -0
- package/package.json +11 -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, ResponseData, CartResponse, ResponsePageLinks, ResponseMetaCarts, ResponseError, CreateACartData, DeleteACartData, GetCartData, CartInclude, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, CartsResponse, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CartsRelationshipsCustomersData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartsItemsTaxesObject, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsResponse, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, OrderResponse, GetCustomerOrdersData, ResponseMetaOrders, OrderItemResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, TransactionResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData,
|
|
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, ResponseData, CartResponse, ResponsePageLinks, ResponseMetaCarts, ResponseError, CreateACartData, DeleteACartData, GetCartData, CartInclude, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, CartsResponse, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CartsRelationshipsCustomersData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartsItemsTaxesObject, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsResponse, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, OrderResponse, GetCustomerOrdersData, ResponseMetaOrders, OrderItemResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, TransactionResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData, 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, 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
|
|
|
@@ -2256,18 +2256,6 @@ declare const getATransaction: <ThrowOnError extends boolean = false>(options: O
|
|
|
2256
2256
|
declare const cancelATransaction: <ThrowOnError extends boolean = false>(options: Options<CancelATransactionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2257
2257
|
data?: TransactionResponse;
|
|
2258
2258
|
}, ResponseError, ThrowOnError>;
|
|
2259
|
-
/**
|
|
2260
|
-
* Get product
|
|
2261
|
-
*/
|
|
2262
|
-
declare const getSubscriptionProduct: <ThrowOnError extends boolean = false>(options: Options<GetSubscriptionProductData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2263
|
-
data?: Product2;
|
|
2264
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2265
|
-
/**
|
|
2266
|
-
* Get plan
|
|
2267
|
-
*/
|
|
2268
|
-
declare const getPlan: <ThrowOnError extends boolean = false>(options: Options<GetPlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2269
|
-
data?: Plan;
|
|
2270
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2271
2259
|
/**
|
|
2272
2260
|
* List offerings
|
|
2273
2261
|
* Retrieves a list of all subscription offerings.
|
|
@@ -2280,8 +2268,8 @@ declare const getPlan: <ThrowOnError extends boolean = false>(options: Options<G
|
|
|
2280
2268
|
*
|
|
2281
2269
|
* | Operator | Attribute | Description |
|
|
2282
2270
|
* | --- | --- | --- |
|
|
2283
|
-
* | `eq` | `external_ref`, `
|
|
2284
|
-
* | `in` | `
|
|
2271
|
+
* | `eq` | `external_ref`, `plans.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2272
|
+
* | `in` | `plans.external_ref` | In. Checks if the values are included in the specified string. If they are, the condition is true. |
|
|
2285
2273
|
*
|
|
2286
2274
|
*/
|
|
2287
2275
|
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2297,10 +2285,10 @@ declare const getOffering: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2297
2285
|
included?: OfferingIncludes;
|
|
2298
2286
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2299
2287
|
/**
|
|
2300
|
-
* List an offering's
|
|
2288
|
+
* List an offering's pricing options
|
|
2301
2289
|
*/
|
|
2302
|
-
declare const
|
|
2303
|
-
data?: Array<
|
|
2290
|
+
declare const listOfferingPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2291
|
+
data?: Array<OfferingPricingOption>;
|
|
2304
2292
|
links?: Links2;
|
|
2305
2293
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2306
2294
|
/**
|
|
@@ -2311,12 +2299,18 @@ declare const listOfferingFeatures: <ThrowOnError extends boolean = false>(optio
|
|
|
2311
2299
|
links?: Links2;
|
|
2312
2300
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2313
2301
|
/**
|
|
2314
|
-
* List an offering's
|
|
2302
|
+
* List an offering's plans
|
|
2315
2303
|
*/
|
|
2316
|
-
declare const
|
|
2317
|
-
data?: Array<
|
|
2304
|
+
declare const listOfferingPlans: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPlansData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2305
|
+
data?: Array<OfferingPlan>;
|
|
2318
2306
|
links?: Links2;
|
|
2319
2307
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2308
|
+
/**
|
|
2309
|
+
* List the pricing options available to a plan in an offering
|
|
2310
|
+
*/
|
|
2311
|
+
declare const listOfferingPlanPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPlanPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2312
|
+
data?: Array<RelationshipData>;
|
|
2313
|
+
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2320
2314
|
/**
|
|
2321
2315
|
* List subscriptions
|
|
2322
2316
|
* Retrieves a list of all subscriptions.
|
|
@@ -2337,9 +2331,9 @@ declare const listOfferingProducts: <ThrowOnError extends boolean = false>(optio
|
|
|
2337
2331
|
*
|
|
2338
2332
|
* | Resource | Required | Description |
|
|
2339
2333
|
* | --- | --- | --- |
|
|
2340
|
-
* | `
|
|
2341
|
-
* | `products` | Optional | Retrieves all products associated with a subscription. |
|
|
2334
|
+
* | `pricing_options, plans` | Optional | Retrieves all pricing options and plans associated with a subscription. |
|
|
2342
2335
|
* | `plans` | Optional | Retrieves all plans associated with a subscription. |
|
|
2336
|
+
* | `pricing_options` | Optional | Retrieves all pricing options associated with a subscription. |
|
|
2343
2337
|
*
|
|
2344
2338
|
* See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
|
|
2345
2339
|
*
|
|
@@ -2356,20 +2350,20 @@ declare const getSubscription: <ThrowOnError extends boolean = false>(options: O
|
|
|
2356
2350
|
data?: Subscription;
|
|
2357
2351
|
included?: SubscriptionIncludes;
|
|
2358
2352
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2359
|
-
/**
|
|
2360
|
-
* List subscription products
|
|
2361
|
-
* Retrieves a list of products associated with the specified subscription.
|
|
2362
|
-
*/
|
|
2363
|
-
declare const listSubscriptionProducts: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionProductsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2364
|
-
data?: Array<OfferingProduct>;
|
|
2365
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2366
2353
|
/**
|
|
2367
2354
|
* List subscription plans
|
|
2368
|
-
* Retrieves a list of plans associated with the specified subscription. Using this endpoint you can see the
|
|
2355
|
+
* Retrieves a list of plans associated with the specified subscription. Using this endpoint you can see the plan that is currently active in a subscription. If `active_plan` is `true`, a plan is active in a subscription. If `active_plan` is null, the pricing option is not active.
|
|
2369
2356
|
*/
|
|
2370
2357
|
declare const listSubscriptionPlans: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionPlansData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2371
2358
|
data?: Array<OfferingPlan>;
|
|
2372
2359
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2360
|
+
/**
|
|
2361
|
+
* List subscription pricing options
|
|
2362
|
+
* Retrieves a list of pricing options associated with the specified subscription. Using this endpoint you can see the pricing options that are currently active in a subscription. If `active_pricing_option` is `true`, a pricing option is active in a subscription. If `active_pricing_option` is null, the pricing option is not active.
|
|
2363
|
+
*/
|
|
2364
|
+
declare const listSubscriptionPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2365
|
+
data?: Array<OfferingPricingOption>;
|
|
2366
|
+
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2373
2367
|
/**
|
|
2374
2368
|
* List subscription states
|
|
2375
2369
|
*/
|
|
@@ -2736,4 +2730,4 @@ declare const getAFile: <ThrowOnError extends boolean = false>(options: Options<
|
|
|
2736
2730
|
data?: File;
|
|
2737
2731
|
}, FilesErrorResponse, ThrowOnError>;
|
|
2738
2732
|
|
|
2739
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, 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, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions,
|
|
2733
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, 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, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, 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, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule };
|
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, ResponseData, CartResponse, ResponsePageLinks, ResponseMetaCarts, ResponseError, CreateACartData, DeleteACartData, GetCartData, CartInclude, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, CartsResponse, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CartsRelationshipsCustomersData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartsItemsTaxesObject, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsResponse, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, OrderResponse, GetCustomerOrdersData, ResponseMetaOrders, OrderItemResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, TransactionResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData,
|
|
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, ResponseData, CartResponse, ResponsePageLinks, ResponseMetaCarts, ResponseError, CreateACartData, DeleteACartData, GetCartData, CartInclude, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, CartsResponse, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CartsRelationshipsCustomersData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartsItemsTaxesObject, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsResponse, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, OrderResponse, GetCustomerOrdersData, ResponseMetaOrders, OrderItemResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, TransactionResponse, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData, 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, 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
|
|
|
@@ -2256,18 +2256,6 @@ declare const getATransaction: <ThrowOnError extends boolean = false>(options: O
|
|
|
2256
2256
|
declare const cancelATransaction: <ThrowOnError extends boolean = false>(options: Options<CancelATransactionData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2257
2257
|
data?: TransactionResponse;
|
|
2258
2258
|
}, ResponseError, ThrowOnError>;
|
|
2259
|
-
/**
|
|
2260
|
-
* Get product
|
|
2261
|
-
*/
|
|
2262
|
-
declare const getSubscriptionProduct: <ThrowOnError extends boolean = false>(options: Options<GetSubscriptionProductData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2263
|
-
data?: Product2;
|
|
2264
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2265
|
-
/**
|
|
2266
|
-
* Get plan
|
|
2267
|
-
*/
|
|
2268
|
-
declare const getPlan: <ThrowOnError extends boolean = false>(options: Options<GetPlanData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2269
|
-
data?: Plan;
|
|
2270
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2271
2259
|
/**
|
|
2272
2260
|
* List offerings
|
|
2273
2261
|
* Retrieves a list of all subscription offerings.
|
|
@@ -2280,8 +2268,8 @@ declare const getPlan: <ThrowOnError extends boolean = false>(options: Options<G
|
|
|
2280
2268
|
*
|
|
2281
2269
|
* | Operator | Attribute | Description |
|
|
2282
2270
|
* | --- | --- | --- |
|
|
2283
|
-
* | `eq` | `external_ref`, `
|
|
2284
|
-
* | `in` | `
|
|
2271
|
+
* | `eq` | `external_ref`, `plans.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2272
|
+
* | `in` | `plans.external_ref` | In. Checks if the values are included in the specified string. If they are, the condition is true. |
|
|
2285
2273
|
*
|
|
2286
2274
|
*/
|
|
2287
2275
|
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2297,10 +2285,10 @@ declare const getOffering: <ThrowOnError extends boolean = false>(options: Optio
|
|
|
2297
2285
|
included?: OfferingIncludes;
|
|
2298
2286
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2299
2287
|
/**
|
|
2300
|
-
* List an offering's
|
|
2288
|
+
* List an offering's pricing options
|
|
2301
2289
|
*/
|
|
2302
|
-
declare const
|
|
2303
|
-
data?: Array<
|
|
2290
|
+
declare const listOfferingPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2291
|
+
data?: Array<OfferingPricingOption>;
|
|
2304
2292
|
links?: Links2;
|
|
2305
2293
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2306
2294
|
/**
|
|
@@ -2311,12 +2299,18 @@ declare const listOfferingFeatures: <ThrowOnError extends boolean = false>(optio
|
|
|
2311
2299
|
links?: Links2;
|
|
2312
2300
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2313
2301
|
/**
|
|
2314
|
-
* List an offering's
|
|
2302
|
+
* List an offering's plans
|
|
2315
2303
|
*/
|
|
2316
|
-
declare const
|
|
2317
|
-
data?: Array<
|
|
2304
|
+
declare const listOfferingPlans: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPlansData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2305
|
+
data?: Array<OfferingPlan>;
|
|
2318
2306
|
links?: Links2;
|
|
2319
2307
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2308
|
+
/**
|
|
2309
|
+
* List the pricing options available to a plan in an offering
|
|
2310
|
+
*/
|
|
2311
|
+
declare const listOfferingPlanPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPlanPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2312
|
+
data?: Array<RelationshipData>;
|
|
2313
|
+
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2320
2314
|
/**
|
|
2321
2315
|
* List subscriptions
|
|
2322
2316
|
* Retrieves a list of all subscriptions.
|
|
@@ -2337,9 +2331,9 @@ declare const listOfferingProducts: <ThrowOnError extends boolean = false>(optio
|
|
|
2337
2331
|
*
|
|
2338
2332
|
* | Resource | Required | Description |
|
|
2339
2333
|
* | --- | --- | --- |
|
|
2340
|
-
* | `
|
|
2341
|
-
* | `products` | Optional | Retrieves all products associated with a subscription. |
|
|
2334
|
+
* | `pricing_options, plans` | Optional | Retrieves all pricing options and plans associated with a subscription. |
|
|
2342
2335
|
* | `plans` | Optional | Retrieves all plans associated with a subscription. |
|
|
2336
|
+
* | `pricing_options` | Optional | Retrieves all pricing options associated with a subscription. |
|
|
2343
2337
|
*
|
|
2344
2338
|
* See [Characteristics of Include Parameter](/guides/Getting-Started/includes#characteristics-of-include-parameter).
|
|
2345
2339
|
*
|
|
@@ -2356,20 +2350,20 @@ declare const getSubscription: <ThrowOnError extends boolean = false>(options: O
|
|
|
2356
2350
|
data?: Subscription;
|
|
2357
2351
|
included?: SubscriptionIncludes;
|
|
2358
2352
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2359
|
-
/**
|
|
2360
|
-
* List subscription products
|
|
2361
|
-
* Retrieves a list of products associated with the specified subscription.
|
|
2362
|
-
*/
|
|
2363
|
-
declare const listSubscriptionProducts: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionProductsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2364
|
-
data?: Array<OfferingProduct>;
|
|
2365
|
-
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2366
2353
|
/**
|
|
2367
2354
|
* List subscription plans
|
|
2368
|
-
* Retrieves a list of plans associated with the specified subscription. Using this endpoint you can see the
|
|
2355
|
+
* Retrieves a list of plans associated with the specified subscription. Using this endpoint you can see the plan that is currently active in a subscription. If `active_plan` is `true`, a plan is active in a subscription. If `active_plan` is null, the pricing option is not active.
|
|
2369
2356
|
*/
|
|
2370
2357
|
declare const listSubscriptionPlans: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionPlansData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2371
2358
|
data?: Array<OfferingPlan>;
|
|
2372
2359
|
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2360
|
+
/**
|
|
2361
|
+
* List subscription pricing options
|
|
2362
|
+
* Retrieves a list of pricing options associated with the specified subscription. Using this endpoint you can see the pricing options that are currently active in a subscription. If `active_pricing_option` is `true`, a pricing option is active in a subscription. If `active_pricing_option` is null, the pricing option is not active.
|
|
2363
|
+
*/
|
|
2364
|
+
declare const listSubscriptionPricingOptions: <ThrowOnError extends boolean = false>(options: Options<ListSubscriptionPricingOptionsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2365
|
+
data?: Array<OfferingPricingOption>;
|
|
2366
|
+
}, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2373
2367
|
/**
|
|
2374
2368
|
* List subscription states
|
|
2375
2369
|
*/
|
|
@@ -2736,4 +2730,4 @@ declare const getAFile: <ThrowOnError extends boolean = false>(options: Options<
|
|
|
2736
2730
|
data?: File;
|
|
2737
2731
|
}, FilesErrorResponse, ThrowOnError>;
|
|
2738
2732
|
|
|
2739
|
-
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, 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, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions,
|
|
2733
|
+
export { addCustomDiscountToCartItem, addTaxItemToCart, anonymizeOrders, bulkAddCustomDiscountsToCart, bulkAddTaxItemsToCart, bulkDeleteCustomDiscountsFromCart, bulkDeleteTaxItemsFromCart, bulkUpdateItemsInCart, cancelATransaction, captureATransaction, checkoutApi, client, configureByContextProduct, confirmPayment, createACart, createAccountCartAssociation, createAnAccessToken, createCartPaymentIntent, createCatalog, createCustomerCartAssociation, createOneTimePasswordTokenRequest, createRule, deleteACart, deleteACartItem, deleteAPromotionViaPromotionCode, deleteATaxItem, deleteAccountCartAssociation, deleteAllCartItems, deleteCatalogById, deleteCustomDiscountFromCart, deleteCustomDiscountFromCartItem, deleteCustomerCartAssociation, deleteReleaseById, deleteReleases, deleteRuleById, deleteV2AccountAddress, 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, getCart, getCartItems, getCarts, getCatalogById, getCatalogs, getChildNodes, getChildProducts, getComponentProductIds, getCustomerOrders, getFeature, getHierarchy, getHierarchyChildNodes, getHierarchyNodes, getInvoice, getNode, getOffering, getOrderItems, getOrderTransactions, getProduct, getProductsForHierarchy, getProductsForNode, getReleaseById, getReleases, getRuleById, getRules, 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, putV2AccountAddress, putV2AccountsAccountId, refundATransaction, updateACart, updateACartItem, updateATaxItem, updateAnOrder, updateCatalog, updateCustomDiscountForCart, updateCustomDiscountForCartItem, updatePasswordProfileInfo, updateRule };
|
package/dist/client/sdk.gen.mjs
CHANGED
|
@@ -1244,7 +1244,7 @@ const cancelATransaction = (options) => {
|
|
|
1244
1244
|
url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel"
|
|
1245
1245
|
});
|
|
1246
1246
|
};
|
|
1247
|
-
const
|
|
1247
|
+
const listOfferings = (options) => {
|
|
1248
1248
|
return (options?.client ?? client).get({
|
|
1249
1249
|
...options,
|
|
1250
1250
|
security: [
|
|
@@ -1253,10 +1253,16 @@ const getSubscriptionProduct = (options) => {
|
|
|
1253
1253
|
type: "http"
|
|
1254
1254
|
}
|
|
1255
1255
|
],
|
|
1256
|
-
|
|
1256
|
+
querySerializer: {
|
|
1257
|
+
array: {
|
|
1258
|
+
explode: false,
|
|
1259
|
+
style: "form"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
url: "/v2/subscriptions/offerings"
|
|
1257
1263
|
});
|
|
1258
1264
|
};
|
|
1259
|
-
const
|
|
1265
|
+
const getOffering = (options) => {
|
|
1260
1266
|
return (options?.client ?? client).get({
|
|
1261
1267
|
...options,
|
|
1262
1268
|
security: [
|
|
@@ -1265,10 +1271,16 @@ const getPlan = (options) => {
|
|
|
1265
1271
|
type: "http"
|
|
1266
1272
|
}
|
|
1267
1273
|
],
|
|
1268
|
-
|
|
1274
|
+
querySerializer: {
|
|
1275
|
+
array: {
|
|
1276
|
+
explode: false,
|
|
1277
|
+
style: "form"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
url: "/v2/subscriptions/offerings/{offering_uuid}"
|
|
1269
1281
|
});
|
|
1270
1282
|
};
|
|
1271
|
-
const
|
|
1283
|
+
const listOfferingPricingOptions = (options) => {
|
|
1272
1284
|
return (options?.client ?? client).get({
|
|
1273
1285
|
...options,
|
|
1274
1286
|
security: [
|
|
@@ -1277,10 +1289,10 @@ const listOfferings = (options) => {
|
|
|
1277
1289
|
type: "http"
|
|
1278
1290
|
}
|
|
1279
1291
|
],
|
|
1280
|
-
url: "/v2/subscriptions/offerings"
|
|
1292
|
+
url: "/v2/subscriptions/offerings/{offering_uuid}/pricing-options"
|
|
1281
1293
|
});
|
|
1282
1294
|
};
|
|
1283
|
-
const
|
|
1295
|
+
const listOfferingFeatures = (options) => {
|
|
1284
1296
|
return (options?.client ?? client).get({
|
|
1285
1297
|
...options,
|
|
1286
1298
|
security: [
|
|
@@ -1289,7 +1301,7 @@ const getOffering = (options) => {
|
|
|
1289
1301
|
type: "http"
|
|
1290
1302
|
}
|
|
1291
1303
|
],
|
|
1292
|
-
url: "/v2/subscriptions/offerings/{offering_uuid}"
|
|
1304
|
+
url: "/v2/subscriptions/offerings/{offering_uuid}/features"
|
|
1293
1305
|
});
|
|
1294
1306
|
};
|
|
1295
1307
|
const listOfferingPlans = (options) => {
|
|
@@ -1304,19 +1316,7 @@ const listOfferingPlans = (options) => {
|
|
|
1304
1316
|
url: "/v2/subscriptions/offerings/{offering_uuid}/plans"
|
|
1305
1317
|
});
|
|
1306
1318
|
};
|
|
1307
|
-
const
|
|
1308
|
-
return (options?.client ?? client).get({
|
|
1309
|
-
...options,
|
|
1310
|
-
security: [
|
|
1311
|
-
{
|
|
1312
|
-
scheme: "bearer",
|
|
1313
|
-
type: "http"
|
|
1314
|
-
}
|
|
1315
|
-
],
|
|
1316
|
-
url: "/v2/subscriptions/offerings/{offering_uuid}/features"
|
|
1317
|
-
});
|
|
1318
|
-
};
|
|
1319
|
-
const listOfferingProducts = (options) => {
|
|
1319
|
+
const listOfferingPlanPricingOptions = (options) => {
|
|
1320
1320
|
return (options?.client ?? client).get({
|
|
1321
1321
|
...options,
|
|
1322
1322
|
security: [
|
|
@@ -1325,7 +1325,7 @@ const listOfferingProducts = (options) => {
|
|
|
1325
1325
|
type: "http"
|
|
1326
1326
|
}
|
|
1327
1327
|
],
|
|
1328
|
-
url: "/v2/subscriptions/offerings/{offering_uuid}/
|
|
1328
|
+
url: "/v2/subscriptions/offerings/{offering_uuid}/plans/{plan_uuid}/relationships/pricing_options"
|
|
1329
1329
|
});
|
|
1330
1330
|
};
|
|
1331
1331
|
const listSubscriptions = (options) => {
|
|
@@ -1337,6 +1337,12 @@ const listSubscriptions = (options) => {
|
|
|
1337
1337
|
type: "http"
|
|
1338
1338
|
}
|
|
1339
1339
|
],
|
|
1340
|
+
querySerializer: {
|
|
1341
|
+
array: {
|
|
1342
|
+
explode: false,
|
|
1343
|
+
style: "form"
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1340
1346
|
url: "/v2/subscriptions/subscriptions"
|
|
1341
1347
|
});
|
|
1342
1348
|
};
|
|
@@ -1349,10 +1355,16 @@ const getSubscription = (options) => {
|
|
|
1349
1355
|
type: "http"
|
|
1350
1356
|
}
|
|
1351
1357
|
],
|
|
1358
|
+
querySerializer: {
|
|
1359
|
+
array: {
|
|
1360
|
+
explode: false,
|
|
1361
|
+
style: "form"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1352
1364
|
url: "/v2/subscriptions/subscriptions/{subscription_uuid}"
|
|
1353
1365
|
});
|
|
1354
1366
|
};
|
|
1355
|
-
const
|
|
1367
|
+
const listSubscriptionPlans = (options) => {
|
|
1356
1368
|
return (options?.client ?? client).get({
|
|
1357
1369
|
...options,
|
|
1358
1370
|
security: [
|
|
@@ -1361,10 +1373,10 @@ const listSubscriptionProducts = (options) => {
|
|
|
1361
1373
|
type: "http"
|
|
1362
1374
|
}
|
|
1363
1375
|
],
|
|
1364
|
-
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/
|
|
1376
|
+
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/plans"
|
|
1365
1377
|
});
|
|
1366
1378
|
};
|
|
1367
|
-
const
|
|
1379
|
+
const listSubscriptionPricingOptions = (options) => {
|
|
1368
1380
|
return (options?.client ?? client).get({
|
|
1369
1381
|
...options,
|
|
1370
1382
|
security: [
|
|
@@ -1373,7 +1385,7 @@ const listSubscriptionPlans = (options) => {
|
|
|
1373
1385
|
type: "http"
|
|
1374
1386
|
}
|
|
1375
1387
|
],
|
|
1376
|
-
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/
|
|
1388
|
+
url: "/v2/subscriptions/subscriptions/{subscription_uuid}/pricing-options"
|
|
1377
1389
|
});
|
|
1378
1390
|
};
|
|
1379
1391
|
const listSubscriptionStates = (options) => {
|
|
@@ -1855,7 +1867,6 @@ export {
|
|
|
1855
1867
|
getOffering,
|
|
1856
1868
|
getOrderItems,
|
|
1857
1869
|
getOrderTransactions,
|
|
1858
|
-
getPlan,
|
|
1859
1870
|
getProduct,
|
|
1860
1871
|
getProductsForHierarchy,
|
|
1861
1872
|
getProductsForNode,
|
|
@@ -1867,7 +1878,6 @@ export {
|
|
|
1867
1878
|
getSubscription,
|
|
1868
1879
|
getSubscriptionInvoice,
|
|
1869
1880
|
getSubscriptionInvoicePayment,
|
|
1870
|
-
getSubscriptionProduct,
|
|
1871
1881
|
getSubscriptionState,
|
|
1872
1882
|
getV2AccountAddress,
|
|
1873
1883
|
getV2AccountAddresses,
|
|
@@ -1879,13 +1889,14 @@ export {
|
|
|
1879
1889
|
listInvoices,
|
|
1880
1890
|
listLocations,
|
|
1881
1891
|
listOfferingFeatures,
|
|
1892
|
+
listOfferingPlanPricingOptions,
|
|
1882
1893
|
listOfferingPlans,
|
|
1883
|
-
|
|
1894
|
+
listOfferingPricingOptions,
|
|
1884
1895
|
listOfferings,
|
|
1885
1896
|
listSubscriptionInvoicePayments,
|
|
1886
1897
|
listSubscriptionInvoices,
|
|
1887
1898
|
listSubscriptionPlans,
|
|
1888
|
-
|
|
1899
|
+
listSubscriptionPricingOptions,
|
|
1889
1900
|
listSubscriptionStates,
|
|
1890
1901
|
listSubscriptions,
|
|
1891
1902
|
manageCarts,
|