@seekora-ai/admin-api 1.2.4 → 1.2.6

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/dist/api.js CHANGED
@@ -26,12 +26,12 @@ exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exp
26
26
  exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AdminAnalyticsOrgKpiGetTagsMatchModeEnum = exports.AdminAnalyticsOrgKpiGetGranularityEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AdminPagesApi = exports.AdminPagesApiFactory = exports.AdminPagesApiFp = exports.AdminPagesApiAxiosParamCreator = exports.AdminNotificationsApi = exports.AdminNotificationsApiFactory = exports.AdminNotificationsApiFp = exports.AdminNotificationsApiAxiosParamCreator = exports.AdminNotificationTemplatesApi = exports.AdminNotificationTemplatesApiFactory = exports.AdminNotificationTemplatesApiFp = exports.AdminNotificationTemplatesApiAxiosParamCreator = exports.AdminAnalyticsApi = exports.AdminAnalyticsApiFactory = exports.AdminAnalyticsApiFp = exports.AdminAnalyticsApiAxiosParamCreator = exports.AnalyticsActivityLogsGetActionEnum = exports.ActivityLogsApi = exports.ActivityLogsApiFactory = exports.ActivityLogsApiFp = exports.ActivityLogsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = void 0;
27
27
  exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsRecommendationsApi = exports.AnalyticsRecommendationsApiFactory = exports.AnalyticsRecommendationsApiFp = exports.AnalyticsRecommendationsApiAxiosParamCreator = exports.AnalyticsFunnelsApi = exports.AnalyticsFunnelsApiFactory = exports.AnalyticsFunnelsApiFp = exports.AnalyticsFunnelsApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AnalyticsCohortsApi = exports.AnalyticsCohortsApiFactory = exports.AnalyticsCohortsApiFp = exports.AnalyticsCohortsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = void 0;
28
28
  exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.BackofficePaymentLinksApi = exports.BackofficePaymentLinksApiFactory = exports.BackofficePaymentLinksApiFp = exports.BackofficePaymentLinksApiAxiosParamCreator = exports.BackofficeCustomPlansApi = exports.BackofficeCustomPlansApiFactory = exports.BackofficeCustomPlansApiFp = exports.BackofficeCustomPlansApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsV3SearchApi = exports.AnalyticsV3SearchApiFactory = exports.AnalyticsV3SearchApiFp = exports.AnalyticsV3SearchApiAxiosParamCreator = exports.AnalyticsV3RecommendationsApi = exports.AnalyticsV3RecommendationsApiFactory = exports.AnalyticsV3RecommendationsApiFp = exports.AnalyticsV3RecommendationsApiAxiosParamCreator = exports.AnalyticsV3JourneyApi = exports.AnalyticsV3JourneyApiFactory = exports.AnalyticsV3JourneyApiFp = exports.AnalyticsV3JourneyApiAxiosParamCreator = exports.AnalyticsV3FunnelApi = exports.AnalyticsV3FunnelApiFactory = exports.AnalyticsV3FunnelApiFp = exports.AnalyticsV3FunnelApiAxiosParamCreator = exports.AnalyticsV3ConversionsApi = exports.AnalyticsV3ConversionsApiFactory = exports.AnalyticsV3ConversionsApiFp = exports.AnalyticsV3ConversionsApiAxiosParamCreator = exports.AnalyticsV3ClicksApi = exports.AnalyticsV3ClicksApiFactory = exports.AnalyticsV3ClicksApiFp = exports.AnalyticsV3ClicksApiAxiosParamCreator = exports.AnalyticsRulesApi = exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = void 0;
29
- exports.CustomEventsApiFactory = exports.CustomEventsApiFp = exports.CustomEventsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConsentApi = exports.ConsentApiFactory = exports.ConsentApiFp = exports.ConsentApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.BillingUserPaymentsApi = exports.BillingUserPaymentsApiFactory = exports.BillingUserPaymentsApiFp = exports.BillingUserPaymentsApiAxiosParamCreator = exports.AdminBillingGraphsUsageBreakdownGetGranularityEnum = exports.AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum = exports.AdminBillingGraphsSearchRequestsGetGranularityEnum = exports.AdminBillingGraphsCreditsConsumedGetGranularityEnum = exports.BillingDashboardGraphsApi = exports.BillingDashboardGraphsApiFactory = exports.BillingDashboardGraphsApiFp = exports.BillingDashboardGraphsApiAxiosParamCreator = exports.AdminBillingUsageDetailsGetGranularityEnum = exports.AdminBillingPaymentTransactionsGetSortOrderEnum = exports.AdminBillingPaymentTransactionsGetSortByEnum = exports.AdminBillingOrdersGetSortOrderEnum = exports.AdminBillingOrdersGetSortByEnum = exports.AdminBillingInvoicesGetSortOrderEnum = exports.AdminBillingInvoicesGetSortByEnum = exports.AdminBillingCreditTransactionsGetSortOrderEnum = exports.AdminBillingCreditTransactionsGetSortByEnum = exports.AdminBillingCreditPurchasesGetSortOrderEnum = exports.AdminBillingCreditPurchasesGetSortByEnum = exports.AdminBillingCreditLedgerGetSortOrderEnum = exports.AdminBillingCreditLedgerGetSortByEnum = exports.BillingDashboardApi = void 0;
30
- exports.GDPRApiAxiosParamCreator = exports.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.ExperimentsApi = exports.ExperimentsApiFactory = exports.ExperimentsApiFp = exports.ExperimentsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentationApi = exports.DocumentationApiFactory = exports.DocumentationApiFp = exports.DocumentationApiAxiosParamCreator = exports.DefaultMenuManagementApi = exports.DefaultMenuManagementApiFactory = exports.DefaultMenuManagementApiFp = exports.DefaultMenuManagementApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DataQualityApi = exports.DataQualityApiFactory = exports.DataQualityApiFp = exports.DataQualityApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CustomEventsAnalyticsApi = exports.CustomEventsAnalyticsApiFactory = exports.CustomEventsAnalyticsApiFp = exports.CustomEventsAnalyticsApiAxiosParamCreator = exports.CustomEventsApi = void 0;
31
- exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.MenuManagementApi = exports.MenuManagementApiFactory = exports.MenuManagementApiFp = exports.MenuManagementApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.JourneyBuilderApi = exports.JourneyBuilderApiFactory = exports.JourneyBuilderApiFp = exports.JourneyBuilderApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.GDPRApi = exports.GDPRApiFactory = exports.GDPRApiFp = void 0;
32
- exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = void 0;
33
- exports.StoreManagementApi = exports.StoreManagementApiFactory = exports.StoreManagementApiFp = exports.StoreManagementApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = void 0;
34
- exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.UserProfilesApi = exports.UserProfilesApiFactory = exports.UserProfilesApiFp = exports.UserProfilesApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.SubscriptionPaymentsApi = exports.SubscriptionPaymentsApiFactory = exports.SubscriptionPaymentsApiFp = exports.SubscriptionPaymentsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = void 0;
29
+ exports.CustomEventsApiFp = exports.CustomEventsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConsentApi = exports.ConsentApiFactory = exports.ConsentApiFp = exports.ConsentApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.BillingUserPaymentsApi = exports.BillingUserPaymentsApiFactory = exports.BillingUserPaymentsApiFp = exports.BillingUserPaymentsApiAxiosParamCreator = exports.AdminBillingGraphsUsageBreakdownGetGranularityEnum = exports.AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum = exports.AdminBillingGraphsSearchRequestsGetGranularityEnum = exports.AdminBillingGraphsCreditsConsumedGetGranularityEnum = exports.BillingDashboardGraphsApi = exports.BillingDashboardGraphsApiFactory = exports.BillingDashboardGraphsApiFp = exports.BillingDashboardGraphsApiAxiosParamCreator = exports.AdminBillingUsageDetailsGetGranularityEnum = exports.AdminBillingPaymentTransactionsGetSortOrderEnum = exports.AdminBillingPaymentTransactionsGetSortByEnum = exports.AdminBillingOrdersGetSortOrderEnum = exports.AdminBillingOrdersGetSortByEnum = exports.AdminBillingInvoicesGetInvoiceTypeEnum = exports.AdminBillingInvoicesGetSortOrderEnum = exports.AdminBillingInvoicesGetSortByEnum = exports.AdminBillingCreditTransactionsGetSortOrderEnum = exports.AdminBillingCreditTransactionsGetSortByEnum = exports.AdminBillingCreditPurchasesGetSortOrderEnum = exports.AdminBillingCreditPurchasesGetSortByEnum = exports.AdminBillingCreditLedgerGetSortOrderEnum = exports.AdminBillingCreditLedgerGetSortByEnum = exports.BillingDashboardApi = void 0;
30
+ exports.FiltersApi = exports.FiltersApiFactory = exports.FiltersApiFp = exports.FiltersApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.ExperimentsApi = exports.ExperimentsApiFactory = exports.ExperimentsApiFp = exports.ExperimentsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentationApi = exports.DocumentationApiFactory = exports.DocumentationApiFp = exports.DocumentationApiAxiosParamCreator = exports.DefaultMenuManagementApi = exports.DefaultMenuManagementApiFactory = exports.DefaultMenuManagementApiFp = exports.DefaultMenuManagementApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DataQualityApi = exports.DataQualityApiFactory = exports.DataQualityApiFp = exports.DataQualityApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CustomEventsAnalyticsApi = exports.CustomEventsAnalyticsApiFactory = exports.CustomEventsAnalyticsApiFp = exports.CustomEventsAnalyticsApiAxiosParamCreator = exports.CustomEventsApi = exports.CustomEventsApiFactory = void 0;
31
+ exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.MenuManagementApi = exports.MenuManagementApiFactory = exports.MenuManagementApiFp = exports.MenuManagementApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.JourneyBuilderApi = exports.JourneyBuilderApiFactory = exports.JourneyBuilderApiFp = exports.JourneyBuilderApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.GDPRApi = exports.GDPRApiFactory = exports.GDPRApiFp = exports.GDPRApiAxiosParamCreator = void 0;
32
+ exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = void 0;
33
+ exports.StoreManagementApiFactory = exports.StoreManagementApiFp = exports.StoreManagementApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = void 0;
34
+ exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.UserProfilesApi = exports.UserProfilesApiFactory = exports.UserProfilesApiFp = exports.UserProfilesApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.SubscriptionPaymentsApi = exports.SubscriptionPaymentsApiFactory = exports.SubscriptionPaymentsApiFp = exports.SubscriptionPaymentsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreManagementApi = void 0;
35
35
  const axios_1 = require("axios");
36
36
  // Some imports not used depending on template conditions
37
37
  // @ts-ignore
@@ -101,7 +101,8 @@ exports.DataTypesCreateCustomWordListRequestTypeEnum = {
101
101
  exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = {
102
102
  Generic: 'generic',
103
103
  Subscription: 'subscription',
104
- CreditTopup: 'credit_topup'
104
+ CreditTopup: 'credit_topup',
105
+ PlanChange: 'plan_change'
105
106
  };
106
107
  exports.DataTypesCreatePluralDeclensionRequestTypeEnum = {
107
108
  Custom: 'custom',
@@ -2238,6 +2239,38 @@ const AdminNotificationsApiAxiosParamCreator = function (configuration) {
2238
2239
  options: localVarRequestOptions,
2239
2240
  };
2240
2241
  }),
2242
+ /**
2243
+ * Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
2244
+ * @summary Send org-wide notification (Admin)
2245
+ * @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
2246
+ * @param {*} [options] Override http request option.
2247
+ * @throws {RequiredError}
2248
+ */
2249
+ v1AdminNotificationsSendOrgPost: (dataTypesSendOrgNotificationRequest_1, ...args_1) => __awaiter(this, [dataTypesSendOrgNotificationRequest_1, ...args_1], void 0, function* (dataTypesSendOrgNotificationRequest, options = {}) {
2250
+ // verify required parameter 'dataTypesSendOrgNotificationRequest' is not null or undefined
2251
+ (0, common_1.assertParamExists)('v1AdminNotificationsSendOrgPost', 'dataTypesSendOrgNotificationRequest', dataTypesSendOrgNotificationRequest);
2252
+ const localVarPath = `/v1/admin/notifications/send-org`;
2253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2254
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2255
+ let baseOptions;
2256
+ if (configuration) {
2257
+ baseOptions = configuration.baseOptions;
2258
+ }
2259
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2260
+ const localVarHeaderParameter = {};
2261
+ const localVarQueryParameter = {};
2262
+ // authentication BearerAuth required
2263
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2265
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2268
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesSendOrgNotificationRequest, localVarRequestOptions, configuration);
2269
+ return {
2270
+ url: (0, common_1.toPathString)(localVarUrlObj),
2271
+ options: localVarRequestOptions,
2272
+ };
2273
+ }),
2241
2274
  /**
2242
2275
  * Sends a notification to specified users (requires admin privileges)
2243
2276
  * @summary Send notification (Admin)
@@ -2496,6 +2529,22 @@ const AdminNotificationsApiFp = function (configuration) {
2496
2529
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2497
2530
  });
2498
2531
  },
2532
+ /**
2533
+ * Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
2534
+ * @summary Send org-wide notification (Admin)
2535
+ * @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
2536
+ * @param {*} [options] Override http request option.
2537
+ * @throws {RequiredError}
2538
+ */
2539
+ v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
2540
+ return __awaiter(this, void 0, void 0, function* () {
2541
+ var _a, _b, _c;
2542
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options);
2543
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2544
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminNotificationsApi.v1AdminNotificationsSendOrgPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2545
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2546
+ });
2547
+ },
2499
2548
  /**
2500
2549
  * Sends a notification to specified users (requires admin privileges)
2501
2550
  * @summary Send notification (Admin)
@@ -2641,6 +2690,16 @@ const AdminNotificationsApiFactory = function (configuration, basePath, axios) {
2641
2690
  v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options) {
2642
2691
  return localVarFp.v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(axios, basePath));
2643
2692
  },
2693
+ /**
2694
+ * Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
2695
+ * @summary Send org-wide notification (Admin)
2696
+ * @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
2701
+ return localVarFp.v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(axios, basePath));
2702
+ },
2644
2703
  /**
2645
2704
  * Sends a notification to specified users (requires admin privileges)
2646
2705
  * @summary Send notification (Admin)
@@ -2769,6 +2828,17 @@ class AdminNotificationsApi extends base_1.BaseAPI {
2769
2828
  v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options) {
2770
2829
  return (0, exports.AdminNotificationsApiFp)(this.configuration).v1AdminNotificationsSendBulkPost(dataTypesNotificationBatch, options).then((request) => request(this.axios, this.basePath));
2771
2830
  }
2831
+ /**
2832
+ * Sends a notification to all active members of the caller\'s organization. The caller must be an org owner or admin. Scope \"all\" includes every member; \"owners_admins\" targets owners and admins only.
2833
+ * @summary Send org-wide notification (Admin)
2834
+ * @param {DataTypesSendOrgNotificationRequest} dataTypesSendOrgNotificationRequest Org notification details
2835
+ * @param {*} [options] Override http request option.
2836
+ * @throws {RequiredError}
2837
+ * @memberof AdminNotificationsApi
2838
+ */
2839
+ v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options) {
2840
+ return (0, exports.AdminNotificationsApiFp)(this.configuration).v1AdminNotificationsSendOrgPost(dataTypesSendOrgNotificationRequest, options).then((request) => request(this.axios, this.basePath));
2841
+ }
2772
2842
  /**
2773
2843
  * Sends a notification to specified users (requires admin privileges)
2774
2844
  * @summary Send notification (Admin)
@@ -14495,6 +14565,61 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
14495
14565
  options: localVarRequestOptions,
14496
14566
  };
14497
14567
  }),
14568
+ /**
14569
+ * Returns paginated alert trigger history with optional filters
14570
+ * @summary Get alert trigger history
14571
+ * @param {string} [storeId] Filter by store xStoreID
14572
+ * @param {string} [from] Start date (YYYY-MM-DD)
14573
+ * @param {string} [to] End date (YYYY-MM-DD)
14574
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
14575
+ * @param {string} [status] Filter by status (resolved, unresolved)
14576
+ * @param {number} [page] Page number
14577
+ * @param {number} [perPage] Items per page
14578
+ * @param {*} [options] Override http request option.
14579
+ * @throws {RequiredError}
14580
+ */
14581
+ adminBillingAlertHistoryGet: (storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1) => __awaiter(this, [storeId_1, from_1, to_1, alertType_1, status_1, page_1, perPage_1, ...args_1], void 0, function* (storeId, from, to, alertType, status, page, perPage, options = {}) {
14582
+ const localVarPath = `/admin/billing/alert-history`;
14583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14584
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14585
+ let baseOptions;
14586
+ if (configuration) {
14587
+ baseOptions = configuration.baseOptions;
14588
+ }
14589
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14590
+ const localVarHeaderParameter = {};
14591
+ const localVarQueryParameter = {};
14592
+ // authentication BearerAuth required
14593
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
14594
+ if (storeId !== undefined) {
14595
+ localVarQueryParameter['store_id'] = storeId;
14596
+ }
14597
+ if (from !== undefined) {
14598
+ localVarQueryParameter['from'] = from;
14599
+ }
14600
+ if (to !== undefined) {
14601
+ localVarQueryParameter['to'] = to;
14602
+ }
14603
+ if (alertType !== undefined) {
14604
+ localVarQueryParameter['alert_type'] = alertType;
14605
+ }
14606
+ if (status !== undefined) {
14607
+ localVarQueryParameter['status'] = status;
14608
+ }
14609
+ if (page !== undefined) {
14610
+ localVarQueryParameter['page'] = page;
14611
+ }
14612
+ if (perPage !== undefined) {
14613
+ localVarQueryParameter['per_page'] = perPage;
14614
+ }
14615
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14616
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14617
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14618
+ return {
14619
+ url: (0, common_1.toPathString)(localVarUrlObj),
14620
+ options: localVarRequestOptions,
14621
+ };
14622
+ }),
14498
14623
  /**
14499
14624
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
14500
14625
  * @summary Get billing alerts
@@ -14790,6 +14915,45 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
14790
14915
  options: localVarRequestOptions,
14791
14916
  };
14792
14917
  }),
14918
+ /**
14919
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
14920
+ * @summary Export credit notes for GSTR-1
14921
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
14922
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
14923
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
14924
+ * @param {*} [options] Override http request option.
14925
+ * @throws {RequiredError}
14926
+ */
14927
+ adminBillingCreditNotesExportGet: (startDate_1, endDate_1, fiscalYear_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, fiscalYear_1, ...args_1], void 0, function* (startDate, endDate, fiscalYear, options = {}) {
14928
+ const localVarPath = `/admin/billing/credit-notes/export`;
14929
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14930
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14931
+ let baseOptions;
14932
+ if (configuration) {
14933
+ baseOptions = configuration.baseOptions;
14934
+ }
14935
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14936
+ const localVarHeaderParameter = {};
14937
+ const localVarQueryParameter = {};
14938
+ // authentication BearerAuth required
14939
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
14940
+ if (startDate !== undefined) {
14941
+ localVarQueryParameter['start_date'] = startDate;
14942
+ }
14943
+ if (endDate !== undefined) {
14944
+ localVarQueryParameter['end_date'] = endDate;
14945
+ }
14946
+ if (fiscalYear !== undefined) {
14947
+ localVarQueryParameter['fiscal_year'] = fiscalYear;
14948
+ }
14949
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14950
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14951
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14952
+ return {
14953
+ url: (0, common_1.toPathString)(localVarUrlObj),
14954
+ options: localVarRequestOptions,
14955
+ };
14956
+ }),
14793
14957
  /**
14794
14958
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
14795
14959
  * @summary Get credit purchases
@@ -15018,10 +15182,11 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15018
15182
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
15019
15183
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
15020
15184
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
15185
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
15021
15186
  * @param {*} [options] Override http request option.
15022
15187
  * @throws {RequiredError}
15023
15188
  */
15024
- adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options = {}) {
15189
+ adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, invoiceType_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, search_1, page_1, pageSize_1, limit_1, sortBy_1, sortOrder_1, invoiceType_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options = {}) {
15025
15190
  const localVarPath = `/admin/billing/invoices`;
15026
15191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15027
15192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -15064,6 +15229,9 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15064
15229
  if (sortOrder !== undefined) {
15065
15230
  localVarQueryParameter['sort_order'] = sortOrder;
15066
15231
  }
15232
+ if (invoiceType !== undefined) {
15233
+ localVarQueryParameter['invoice_type'] = invoiceType;
15234
+ }
15067
15235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15068
15236
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15069
15237
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -15232,6 +15400,37 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15232
15400
  options: localVarRequestOptions,
15233
15401
  };
15234
15402
  }),
15403
+ /**
15404
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
15405
+ * @summary Void a credit note
15406
+ * @param {string} id Invoice ID (UUID)
15407
+ * @param {*} [options] Override http request option.
15408
+ * @throws {RequiredError}
15409
+ */
15410
+ adminBillingInvoicesIdVoidPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
15411
+ // verify required parameter 'id' is not null or undefined
15412
+ (0, common_1.assertParamExists)('adminBillingInvoicesIdVoidPost', 'id', id);
15413
+ const localVarPath = `/admin/billing/invoices/{id}/void`
15414
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15416
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15417
+ let baseOptions;
15418
+ if (configuration) {
15419
+ baseOptions = configuration.baseOptions;
15420
+ }
15421
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15422
+ const localVarHeaderParameter = {};
15423
+ const localVarQueryParameter = {};
15424
+ // authentication BearerAuth required
15425
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15428
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15429
+ return {
15430
+ url: (0, common_1.toPathString)(localVarUrlObj),
15431
+ options: localVarRequestOptions,
15432
+ };
15433
+ }),
15235
15434
  /**
15236
15435
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
15237
15436
  * @summary Pay a pending invoice
@@ -15796,6 +15995,241 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15796
15995
  options: localVarRequestOptions,
15797
15996
  };
15798
15997
  }),
15998
+ /**
15999
+ * Returns paginated list of per-store credit quotas for the organization
16000
+ * @summary List store credit quotas
16001
+ * @param {number} [page] Page number
16002
+ * @param {number} [perPage] Items per page
16003
+ * @param {string} [search] Search by store name
16004
+ * @param {*} [options] Override http request option.
16005
+ * @throws {RequiredError}
16006
+ */
16007
+ adminBillingStoreQuotasGet: (page_1, perPage_1, search_1, ...args_1) => __awaiter(this, [page_1, perPage_1, search_1, ...args_1], void 0, function* (page, perPage, search, options = {}) {
16008
+ const localVarPath = `/admin/billing/store-quotas`;
16009
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16010
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16011
+ let baseOptions;
16012
+ if (configuration) {
16013
+ baseOptions = configuration.baseOptions;
16014
+ }
16015
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16016
+ const localVarHeaderParameter = {};
16017
+ const localVarQueryParameter = {};
16018
+ // authentication BearerAuth required
16019
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16020
+ if (page !== undefined) {
16021
+ localVarQueryParameter['page'] = page;
16022
+ }
16023
+ if (perPage !== undefined) {
16024
+ localVarQueryParameter['per_page'] = perPage;
16025
+ }
16026
+ if (search !== undefined) {
16027
+ localVarQueryParameter['search'] = search;
16028
+ }
16029
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16032
+ return {
16033
+ url: (0, common_1.toPathString)(localVarUrlObj),
16034
+ options: localVarRequestOptions,
16035
+ };
16036
+ }),
16037
+ /**
16038
+ * Creates a per-store credit quota with configurable window and enforcement
16039
+ * @summary Create store credit quota
16040
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
16041
+ * @param {*} [options] Override http request option.
16042
+ * @throws {RequiredError}
16043
+ */
16044
+ adminBillingStoreQuotasPost: (dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (dataTypesStoreQuotaRequest, options = {}) {
16045
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
16046
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasPost', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
16047
+ const localVarPath = `/admin/billing/store-quotas`;
16048
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16049
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16050
+ let baseOptions;
16051
+ if (configuration) {
16052
+ baseOptions = configuration.baseOptions;
16053
+ }
16054
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16055
+ const localVarHeaderParameter = {};
16056
+ const localVarQueryParameter = {};
16057
+ // authentication BearerAuth required
16058
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16059
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16060
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16063
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
16064
+ return {
16065
+ url: (0, common_1.toPathString)(localVarUrlObj),
16066
+ options: localVarRequestOptions,
16067
+ };
16068
+ }),
16069
+ /**
16070
+ * Deletes a per-store credit quota by UUID
16071
+ * @summary Delete store credit quota
16072
+ * @param {string} quotaUuid Quota UUID
16073
+ * @param {*} [options] Override http request option.
16074
+ * @throws {RequiredError}
16075
+ */
16076
+ adminBillingStoreQuotasQuotaUuidDelete: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
16077
+ // verify required parameter 'quotaUuid' is not null or undefined
16078
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidDelete', 'quotaUuid', quotaUuid);
16079
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16080
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16082
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16083
+ let baseOptions;
16084
+ if (configuration) {
16085
+ baseOptions = configuration.baseOptions;
16086
+ }
16087
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
16088
+ const localVarHeaderParameter = {};
16089
+ const localVarQueryParameter = {};
16090
+ // authentication BearerAuth required
16091
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16092
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16094
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16095
+ return {
16096
+ url: (0, common_1.toPathString)(localVarUrlObj),
16097
+ options: localVarRequestOptions,
16098
+ };
16099
+ }),
16100
+ /**
16101
+ * Returns a single store credit quota by UUID
16102
+ * @summary Get store credit quota
16103
+ * @param {string} quotaUuid Quota UUID
16104
+ * @param {*} [options] Override http request option.
16105
+ * @throws {RequiredError}
16106
+ */
16107
+ adminBillingStoreQuotasQuotaUuidGet: (quotaUuid_1, ...args_1) => __awaiter(this, [quotaUuid_1, ...args_1], void 0, function* (quotaUuid, options = {}) {
16108
+ // verify required parameter 'quotaUuid' is not null or undefined
16109
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidGet', 'quotaUuid', quotaUuid);
16110
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16111
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16113
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16114
+ let baseOptions;
16115
+ if (configuration) {
16116
+ baseOptions = configuration.baseOptions;
16117
+ }
16118
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16119
+ const localVarHeaderParameter = {};
16120
+ const localVarQueryParameter = {};
16121
+ // authentication BearerAuth required
16122
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16123
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16125
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16126
+ return {
16127
+ url: (0, common_1.toPathString)(localVarUrlObj),
16128
+ options: localVarRequestOptions,
16129
+ };
16130
+ }),
16131
+ /**
16132
+ * Updates an existing per-store credit quota
16133
+ * @summary Update store credit quota
16134
+ * @param {string} quotaUuid Quota UUID
16135
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
16136
+ * @param {*} [options] Override http request option.
16137
+ * @throws {RequiredError}
16138
+ */
16139
+ adminBillingStoreQuotasQuotaUuidPut: (quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1) => __awaiter(this, [quotaUuid_1, dataTypesStoreQuotaRequest_1, ...args_1], void 0, function* (quotaUuid, dataTypesStoreQuotaRequest, options = {}) {
16140
+ // verify required parameter 'quotaUuid' is not null or undefined
16141
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidPut', 'quotaUuid', quotaUuid);
16142
+ // verify required parameter 'dataTypesStoreQuotaRequest' is not null or undefined
16143
+ (0, common_1.assertParamExists)('adminBillingStoreQuotasQuotaUuidPut', 'dataTypesStoreQuotaRequest', dataTypesStoreQuotaRequest);
16144
+ const localVarPath = `/admin/billing/store-quotas/{quotaUuid}`
16145
+ .replace(`{${"quotaUuid"}}`, encodeURIComponent(String(quotaUuid)));
16146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16147
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16148
+ let baseOptions;
16149
+ if (configuration) {
16150
+ baseOptions = configuration.baseOptions;
16151
+ }
16152
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
16153
+ const localVarHeaderParameter = {};
16154
+ const localVarQueryParameter = {};
16155
+ // authentication BearerAuth required
16156
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16157
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16161
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreQuotaRequest, localVarRequestOptions, configuration);
16162
+ return {
16163
+ url: (0, common_1.toPathString)(localVarUrlObj),
16164
+ options: localVarRequestOptions,
16165
+ };
16166
+ }),
16167
+ /**
16168
+ * Returns paginated usage summary for all stores in the organization
16169
+ * @summary Get all stores usage summary
16170
+ * @param {number} [page] Page number
16171
+ * @param {number} [perPage] Items per page
16172
+ * @param {*} [options] Override http request option.
16173
+ * @throws {RequiredError}
16174
+ */
16175
+ adminBillingStoreUsageGet: (page_1, perPage_1, ...args_1) => __awaiter(this, [page_1, perPage_1, ...args_1], void 0, function* (page, perPage, options = {}) {
16176
+ const localVarPath = `/admin/billing/store-usage`;
16177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16179
+ let baseOptions;
16180
+ if (configuration) {
16181
+ baseOptions = configuration.baseOptions;
16182
+ }
16183
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16184
+ const localVarHeaderParameter = {};
16185
+ const localVarQueryParameter = {};
16186
+ // authentication BearerAuth required
16187
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16188
+ if (page !== undefined) {
16189
+ localVarQueryParameter['page'] = page;
16190
+ }
16191
+ if (perPage !== undefined) {
16192
+ localVarQueryParameter['per_page'] = perPage;
16193
+ }
16194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16197
+ return {
16198
+ url: (0, common_1.toPathString)(localVarUrlObj),
16199
+ options: localVarRequestOptions,
16200
+ };
16201
+ }),
16202
+ /**
16203
+ * Returns detailed usage breakdown for a single store
16204
+ * @summary Get single store usage detail
16205
+ * @param {string} xStoreId Store external ID
16206
+ * @param {*} [options] Override http request option.
16207
+ * @throws {RequiredError}
16208
+ */
16209
+ adminBillingStoreUsageXStoreIdGet: (xStoreId_1, ...args_1) => __awaiter(this, [xStoreId_1, ...args_1], void 0, function* (xStoreId, options = {}) {
16210
+ // verify required parameter 'xStoreId' is not null or undefined
16211
+ (0, common_1.assertParamExists)('adminBillingStoreUsageXStoreIdGet', 'xStoreId', xStoreId);
16212
+ const localVarPath = `/admin/billing/store-usage/{xStoreId}`
16213
+ .replace(`{${"xStoreId"}}`, encodeURIComponent(String(xStoreId)));
16214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16215
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16216
+ let baseOptions;
16217
+ if (configuration) {
16218
+ baseOptions = configuration.baseOptions;
16219
+ }
16220
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16221
+ const localVarHeaderParameter = {};
16222
+ const localVarQueryParameter = {};
16223
+ // authentication BearerAuth required
16224
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
16225
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16227
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16228
+ return {
16229
+ url: (0, common_1.toPathString)(localVarUrlObj),
16230
+ options: localVarRequestOptions,
16231
+ };
16232
+ }),
15799
16233
  /**
15800
16234
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
15801
16235
  * @summary Get usage details with granularity and pagination
@@ -16010,6 +16444,28 @@ const BillingDashboardApiFp = function (configuration) {
16010
16444
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16011
16445
  });
16012
16446
  },
16447
+ /**
16448
+ * Returns paginated alert trigger history with optional filters
16449
+ * @summary Get alert trigger history
16450
+ * @param {string} [storeId] Filter by store xStoreID
16451
+ * @param {string} [from] Start date (YYYY-MM-DD)
16452
+ * @param {string} [to] End date (YYYY-MM-DD)
16453
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
16454
+ * @param {string} [status] Filter by status (resolved, unresolved)
16455
+ * @param {number} [page] Page number
16456
+ * @param {number} [perPage] Items per page
16457
+ * @param {*} [options] Override http request option.
16458
+ * @throws {RequiredError}
16459
+ */
16460
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
16461
+ return __awaiter(this, void 0, void 0, function* () {
16462
+ var _a, _b, _c;
16463
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options);
16464
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16465
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16466
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16467
+ });
16468
+ },
16013
16469
  /**
16014
16470
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
16015
16471
  * @summary Get billing alerts
@@ -16141,6 +16597,24 @@ const BillingDashboardApiFp = function (configuration) {
16141
16597
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16142
16598
  });
16143
16599
  },
16600
+ /**
16601
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
16602
+ * @summary Export credit notes for GSTR-1
16603
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
16604
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
16605
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
16606
+ * @param {*} [options] Override http request option.
16607
+ * @throws {RequiredError}
16608
+ */
16609
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
16610
+ return __awaiter(this, void 0, void 0, function* () {
16611
+ var _a, _b, _c;
16612
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options);
16613
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16614
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditNotesExportGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16615
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16616
+ });
16617
+ },
16144
16618
  /**
16145
16619
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
16146
16620
  * @summary Get credit purchases
@@ -16249,13 +16723,14 @@ const BillingDashboardApiFp = function (configuration) {
16249
16723
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
16250
16724
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
16251
16725
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
16726
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
16252
16727
  * @param {*} [options] Override http request option.
16253
16728
  * @throws {RequiredError}
16254
16729
  */
16255
- adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
16730
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
16256
16731
  return __awaiter(this, void 0, void 0, function* () {
16257
16732
  var _a, _b, _c;
16258
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
16733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options);
16259
16734
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16260
16735
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16261
16736
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16342,6 +16817,22 @@ const BillingDashboardApiFp = function (configuration) {
16342
16817
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16343
16818
  });
16344
16819
  },
16820
+ /**
16821
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
16822
+ * @summary Void a credit note
16823
+ * @param {string} id Invoice ID (UUID)
16824
+ * @param {*} [options] Override http request option.
16825
+ * @throws {RequiredError}
16826
+ */
16827
+ adminBillingInvoicesIdVoidPost(id, options) {
16828
+ return __awaiter(this, void 0, void 0, function* () {
16829
+ var _a, _b, _c;
16830
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdVoidPost(id, options);
16831
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16832
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesIdVoidPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16833
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16834
+ });
16835
+ },
16345
16836
  /**
16346
16837
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
16347
16838
  * @summary Pay a pending invoice
@@ -16607,6 +17098,122 @@ const BillingDashboardApiFp = function (configuration) {
16607
17098
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16608
17099
  });
16609
17100
  },
17101
+ /**
17102
+ * Returns paginated list of per-store credit quotas for the organization
17103
+ * @summary List store credit quotas
17104
+ * @param {number} [page] Page number
17105
+ * @param {number} [perPage] Items per page
17106
+ * @param {string} [search] Search by store name
17107
+ * @param {*} [options] Override http request option.
17108
+ * @throws {RequiredError}
17109
+ */
17110
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17111
+ return __awaiter(this, void 0, void 0, function* () {
17112
+ var _a, _b, _c;
17113
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasGet(page, perPage, search, options);
17114
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17115
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17116
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17117
+ });
17118
+ },
17119
+ /**
17120
+ * Creates a per-store credit quota with configurable window and enforcement
17121
+ * @summary Create store credit quota
17122
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17123
+ * @param {*} [options] Override http request option.
17124
+ * @throws {RequiredError}
17125
+ */
17126
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17127
+ return __awaiter(this, void 0, void 0, function* () {
17128
+ var _a, _b, _c;
17129
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options);
17130
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17131
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17132
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17133
+ });
17134
+ },
17135
+ /**
17136
+ * Deletes a per-store credit quota by UUID
17137
+ * @summary Delete store credit quota
17138
+ * @param {string} quotaUuid Quota UUID
17139
+ * @param {*} [options] Override http request option.
17140
+ * @throws {RequiredError}
17141
+ */
17142
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17143
+ return __awaiter(this, void 0, void 0, function* () {
17144
+ var _a, _b, _c;
17145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options);
17146
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17147
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17148
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17149
+ });
17150
+ },
17151
+ /**
17152
+ * Returns a single store credit quota by UUID
17153
+ * @summary Get store credit quota
17154
+ * @param {string} quotaUuid Quota UUID
17155
+ * @param {*} [options] Override http request option.
17156
+ * @throws {RequiredError}
17157
+ */
17158
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17159
+ return __awaiter(this, void 0, void 0, function* () {
17160
+ var _a, _b, _c;
17161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options);
17162
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17163
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17164
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17165
+ });
17166
+ },
17167
+ /**
17168
+ * Updates an existing per-store credit quota
17169
+ * @summary Update store credit quota
17170
+ * @param {string} quotaUuid Quota UUID
17171
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17172
+ * @param {*} [options] Override http request option.
17173
+ * @throws {RequiredError}
17174
+ */
17175
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17176
+ return __awaiter(this, void 0, void 0, function* () {
17177
+ var _a, _b, _c;
17178
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options);
17179
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17180
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreQuotasQuotaUuidPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17182
+ });
17183
+ },
17184
+ /**
17185
+ * Returns paginated usage summary for all stores in the organization
17186
+ * @summary Get all stores usage summary
17187
+ * @param {number} [page] Page number
17188
+ * @param {number} [perPage] Items per page
17189
+ * @param {*} [options] Override http request option.
17190
+ * @throws {RequiredError}
17191
+ */
17192
+ adminBillingStoreUsageGet(page, perPage, options) {
17193
+ return __awaiter(this, void 0, void 0, function* () {
17194
+ var _a, _b, _c;
17195
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageGet(page, perPage, options);
17196
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17197
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17198
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17199
+ });
17200
+ },
17201
+ /**
17202
+ * Returns detailed usage breakdown for a single store
17203
+ * @summary Get single store usage detail
17204
+ * @param {string} xStoreId Store external ID
17205
+ * @param {*} [options] Override http request option.
17206
+ * @throws {RequiredError}
17207
+ */
17208
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17209
+ return __awaiter(this, void 0, void 0, function* () {
17210
+ var _a, _b, _c;
17211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingStoreUsageXStoreIdGet(xStoreId, options);
17212
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17213
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingStoreUsageXStoreIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17214
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17215
+ });
17216
+ },
16610
17217
  /**
16611
17218
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
16612
17219
  * @summary Get usage details with granularity and pagination
@@ -16714,6 +17321,22 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16714
17321
  adminBillingActivePlanGet(options) {
16715
17322
  return localVarFp.adminBillingActivePlanGet(options).then((request) => request(axios, basePath));
16716
17323
  },
17324
+ /**
17325
+ * Returns paginated alert trigger history with optional filters
17326
+ * @summary Get alert trigger history
17327
+ * @param {string} [storeId] Filter by store xStoreID
17328
+ * @param {string} [from] Start date (YYYY-MM-DD)
17329
+ * @param {string} [to] End date (YYYY-MM-DD)
17330
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17331
+ * @param {string} [status] Filter by status (resolved, unresolved)
17332
+ * @param {number} [page] Page number
17333
+ * @param {number} [perPage] Items per page
17334
+ * @param {*} [options] Override http request option.
17335
+ * @throws {RequiredError}
17336
+ */
17337
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17338
+ return localVarFp.adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(axios, basePath));
17339
+ },
16717
17340
  /**
16718
17341
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
16719
17342
  * @summary Get billing alerts
@@ -16803,6 +17426,18 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16803
17426
  adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
16804
17427
  return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
16805
17428
  },
17429
+ /**
17430
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
17431
+ * @summary Export credit notes for GSTR-1
17432
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
17433
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
17434
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
17435
+ * @param {*} [options] Override http request option.
17436
+ * @throws {RequiredError}
17437
+ */
17438
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
17439
+ return localVarFp.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(axios, basePath));
17440
+ },
16806
17441
  /**
16807
17442
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
16808
17443
  * @summary Get credit purchases
@@ -16881,11 +17516,12 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16881
17516
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
16882
17517
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
16883
17518
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
17519
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
16884
17520
  * @param {*} [options] Override http request option.
16885
17521
  * @throws {RequiredError}
16886
17522
  */
16887
- adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
16888
- return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(axios, basePath));
17523
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
17524
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(axios, basePath));
16889
17525
  },
16890
17526
  /**
16891
17527
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -16938,6 +17574,16 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16938
17574
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
16939
17575
  return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
16940
17576
  },
17577
+ /**
17578
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
17579
+ * @summary Void a credit note
17580
+ * @param {string} id Invoice ID (UUID)
17581
+ * @param {*} [options] Override http request option.
17582
+ * @throws {RequiredError}
17583
+ */
17584
+ adminBillingInvoicesIdVoidPost(id, options) {
17585
+ return localVarFp.adminBillingInvoicesIdVoidPost(id, options).then((request) => request(axios, basePath));
17586
+ },
16941
17587
  /**
16942
17588
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
16943
17589
  * @summary Pay a pending invoice
@@ -17113,6 +17759,80 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
17113
17759
  adminBillingSavedCardsGet(options) {
17114
17760
  return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
17115
17761
  },
17762
+ /**
17763
+ * Returns paginated list of per-store credit quotas for the organization
17764
+ * @summary List store credit quotas
17765
+ * @param {number} [page] Page number
17766
+ * @param {number} [perPage] Items per page
17767
+ * @param {string} [search] Search by store name
17768
+ * @param {*} [options] Override http request option.
17769
+ * @throws {RequiredError}
17770
+ */
17771
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
17772
+ return localVarFp.adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(axios, basePath));
17773
+ },
17774
+ /**
17775
+ * Creates a per-store credit quota with configurable window and enforcement
17776
+ * @summary Create store credit quota
17777
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
17778
+ * @param {*} [options] Override http request option.
17779
+ * @throws {RequiredError}
17780
+ */
17781
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
17782
+ return localVarFp.adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17783
+ },
17784
+ /**
17785
+ * Deletes a per-store credit quota by UUID
17786
+ * @summary Delete store credit quota
17787
+ * @param {string} quotaUuid Quota UUID
17788
+ * @param {*} [options] Override http request option.
17789
+ * @throws {RequiredError}
17790
+ */
17791
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
17792
+ return localVarFp.adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(axios, basePath));
17793
+ },
17794
+ /**
17795
+ * Returns a single store credit quota by UUID
17796
+ * @summary Get store credit quota
17797
+ * @param {string} quotaUuid Quota UUID
17798
+ * @param {*} [options] Override http request option.
17799
+ * @throws {RequiredError}
17800
+ */
17801
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
17802
+ return localVarFp.adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(axios, basePath));
17803
+ },
17804
+ /**
17805
+ * Updates an existing per-store credit quota
17806
+ * @summary Update store credit quota
17807
+ * @param {string} quotaUuid Quota UUID
17808
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
17809
+ * @param {*} [options] Override http request option.
17810
+ * @throws {RequiredError}
17811
+ */
17812
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
17813
+ return localVarFp.adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(axios, basePath));
17814
+ },
17815
+ /**
17816
+ * Returns paginated usage summary for all stores in the organization
17817
+ * @summary Get all stores usage summary
17818
+ * @param {number} [page] Page number
17819
+ * @param {number} [perPage] Items per page
17820
+ * @param {*} [options] Override http request option.
17821
+ * @throws {RequiredError}
17822
+ */
17823
+ adminBillingStoreUsageGet(page, perPage, options) {
17824
+ return localVarFp.adminBillingStoreUsageGet(page, perPage, options).then((request) => request(axios, basePath));
17825
+ },
17826
+ /**
17827
+ * Returns detailed usage breakdown for a single store
17828
+ * @summary Get single store usage detail
17829
+ * @param {string} xStoreId Store external ID
17830
+ * @param {*} [options] Override http request option.
17831
+ * @throws {RequiredError}
17832
+ */
17833
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
17834
+ return localVarFp.adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(axios, basePath));
17835
+ },
17116
17836
  /**
17117
17837
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17118
17838
  * @summary Get usage details with granularity and pagination
@@ -17191,6 +17911,23 @@ class BillingDashboardApi extends base_1.BaseAPI {
17191
17911
  adminBillingActivePlanGet(options) {
17192
17912
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingActivePlanGet(options).then((request) => request(this.axios, this.basePath));
17193
17913
  }
17914
+ /**
17915
+ * Returns paginated alert trigger history with optional filters
17916
+ * @summary Get alert trigger history
17917
+ * @param {string} [storeId] Filter by store xStoreID
17918
+ * @param {string} [from] Start date (YYYY-MM-DD)
17919
+ * @param {string} [to] End date (YYYY-MM-DD)
17920
+ * @param {string} [alertType] Filter by alert type (store_usage_threshold, store_usage_approaching, quota_hard_block)
17921
+ * @param {string} [status] Filter by status (resolved, unresolved)
17922
+ * @param {number} [page] Page number
17923
+ * @param {number} [perPage] Items per page
17924
+ * @param {*} [options] Override http request option.
17925
+ * @throws {RequiredError}
17926
+ * @memberof BillingDashboardApi
17927
+ */
17928
+ adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options) {
17929
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertHistoryGet(storeId, from, to, alertType, status, page, perPage, options).then((request) => request(this.axios, this.basePath));
17930
+ }
17194
17931
  /**
17195
17932
  * Retrieves paginated billing alerts with store filtering and full-text search across: alert ID, alert name, alert type, threshold values, units, org/store name, created by name, emails, and JSON fields.
17196
17933
  * @summary Get billing alerts
@@ -17287,6 +18024,19 @@ class BillingDashboardApi extends base_1.BaseAPI {
17287
18024
  adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
17288
18025
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
17289
18026
  }
18027
+ /**
18028
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
18029
+ * @summary Export credit notes for GSTR-1
18030
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
18031
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
18032
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
18033
+ * @param {*} [options] Override http request option.
18034
+ * @throws {RequiredError}
18035
+ * @memberof BillingDashboardApi
18036
+ */
18037
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
18038
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(this.axios, this.basePath));
18039
+ }
17290
18040
  /**
17291
18041
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
17292
18042
  * @summary Get credit purchases
@@ -17370,12 +18120,13 @@ class BillingDashboardApi extends base_1.BaseAPI {
17370
18120
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
17371
18121
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
17372
18122
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
18123
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
17373
18124
  * @param {*} [options] Override http request option.
17374
18125
  * @throws {RequiredError}
17375
18126
  * @memberof BillingDashboardApi
17376
18127
  */
17377
- adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
17378
- return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
18128
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
18129
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(this.axios, this.basePath));
17379
18130
  }
17380
18131
  /**
17381
18132
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -17433,6 +18184,17 @@ class BillingDashboardApi extends base_1.BaseAPI {
17433
18184
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
17434
18185
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
17435
18186
  }
18187
+ /**
18188
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
18189
+ * @summary Void a credit note
18190
+ * @param {string} id Invoice ID (UUID)
18191
+ * @param {*} [options] Override http request option.
18192
+ * @throws {RequiredError}
18193
+ * @memberof BillingDashboardApi
18194
+ */
18195
+ adminBillingInvoicesIdVoidPost(id, options) {
18196
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdVoidPost(id, options).then((request) => request(this.axios, this.basePath));
18197
+ }
17436
18198
  /**
17437
18199
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
17438
18200
  * @summary Pay a pending invoice
@@ -17623,6 +18385,87 @@ class BillingDashboardApi extends base_1.BaseAPI {
17623
18385
  adminBillingSavedCardsGet(options) {
17624
18386
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
17625
18387
  }
18388
+ /**
18389
+ * Returns paginated list of per-store credit quotas for the organization
18390
+ * @summary List store credit quotas
18391
+ * @param {number} [page] Page number
18392
+ * @param {number} [perPage] Items per page
18393
+ * @param {string} [search] Search by store name
18394
+ * @param {*} [options] Override http request option.
18395
+ * @throws {RequiredError}
18396
+ * @memberof BillingDashboardApi
18397
+ */
18398
+ adminBillingStoreQuotasGet(page, perPage, search, options) {
18399
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasGet(page, perPage, search, options).then((request) => request(this.axios, this.basePath));
18400
+ }
18401
+ /**
18402
+ * Creates a per-store credit quota with configurable window and enforcement
18403
+ * @summary Create store credit quota
18404
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Quota configuration
18405
+ * @param {*} [options] Override http request option.
18406
+ * @throws {RequiredError}
18407
+ * @memberof BillingDashboardApi
18408
+ */
18409
+ adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options) {
18410
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasPost(dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18411
+ }
18412
+ /**
18413
+ * Deletes a per-store credit quota by UUID
18414
+ * @summary Delete store credit quota
18415
+ * @param {string} quotaUuid Quota UUID
18416
+ * @param {*} [options] Override http request option.
18417
+ * @throws {RequiredError}
18418
+ * @memberof BillingDashboardApi
18419
+ */
18420
+ adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options) {
18421
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidDelete(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18422
+ }
18423
+ /**
18424
+ * Returns a single store credit quota by UUID
18425
+ * @summary Get store credit quota
18426
+ * @param {string} quotaUuid Quota UUID
18427
+ * @param {*} [options] Override http request option.
18428
+ * @throws {RequiredError}
18429
+ * @memberof BillingDashboardApi
18430
+ */
18431
+ adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options) {
18432
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidGet(quotaUuid, options).then((request) => request(this.axios, this.basePath));
18433
+ }
18434
+ /**
18435
+ * Updates an existing per-store credit quota
18436
+ * @summary Update store credit quota
18437
+ * @param {string} quotaUuid Quota UUID
18438
+ * @param {DataTypesStoreQuotaRequest} dataTypesStoreQuotaRequest Updated quota configuration
18439
+ * @param {*} [options] Override http request option.
18440
+ * @throws {RequiredError}
18441
+ * @memberof BillingDashboardApi
18442
+ */
18443
+ adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options) {
18444
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreQuotasQuotaUuidPut(quotaUuid, dataTypesStoreQuotaRequest, options).then((request) => request(this.axios, this.basePath));
18445
+ }
18446
+ /**
18447
+ * Returns paginated usage summary for all stores in the organization
18448
+ * @summary Get all stores usage summary
18449
+ * @param {number} [page] Page number
18450
+ * @param {number} [perPage] Items per page
18451
+ * @param {*} [options] Override http request option.
18452
+ * @throws {RequiredError}
18453
+ * @memberof BillingDashboardApi
18454
+ */
18455
+ adminBillingStoreUsageGet(page, perPage, options) {
18456
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreUsageGet(page, perPage, options).then((request) => request(this.axios, this.basePath));
18457
+ }
18458
+ /**
18459
+ * Returns detailed usage breakdown for a single store
18460
+ * @summary Get single store usage detail
18461
+ * @param {string} xStoreId Store external ID
18462
+ * @param {*} [options] Override http request option.
18463
+ * @throws {RequiredError}
18464
+ * @memberof BillingDashboardApi
18465
+ */
18466
+ adminBillingStoreUsageXStoreIdGet(xStoreId, options) {
18467
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingStoreUsageXStoreIdGet(xStoreId, options).then((request) => request(this.axios, this.basePath));
18468
+ }
17626
18469
  /**
17627
18470
  * Returns detailed usage information with charts and breakdown, supports time granularity and pagination
17628
18471
  * @summary Get usage details with granularity and pagination
@@ -17766,6 +18609,13 @@ exports.AdminBillingInvoicesGetSortOrderEnum = {
17766
18609
  Asc2: 'ASC',
17767
18610
  Desc2: 'DESC'
17768
18611
  };
18612
+ /**
18613
+ * @export
18614
+ */
18615
+ exports.AdminBillingInvoicesGetInvoiceTypeEnum = {
18616
+ TaxInvoice: 'tax_invoice',
18617
+ CreditNote: 'credit_note'
18618
+ };
17769
18619
  /**
17770
18620
  * @export
17771
18621
  */
@@ -50622,6 +51472,38 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
50622
51472
  options: localVarRequestOptions,
50623
51473
  };
50624
51474
  }),
51475
+ /**
51476
+ * Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
51477
+ * @summary Create an immediate plan change order
51478
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
51479
+ * @param {*} [options] Override http request option.
51480
+ * @throws {RequiredError}
51481
+ */
51482
+ adminSubscriptionsPlanChangeImmediateOrderPost: (subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options = {}) {
51483
+ // verify required parameter 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest' is not null or undefined
51484
+ (0, common_1.assertParamExists)('adminSubscriptionsPlanChangeImmediateOrderPost', 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest', subscriptionRouteImmediatePlanChangeOrderHTTPRequest);
51485
+ const localVarPath = `/admin/subscriptions/plan-change/immediate/order`;
51486
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51487
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51488
+ let baseOptions;
51489
+ if (configuration) {
51490
+ baseOptions = configuration.baseOptions;
51491
+ }
51492
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
51493
+ const localVarHeaderParameter = {};
51494
+ const localVarQueryParameter = {};
51495
+ // authentication BearerAuth required
51496
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
51497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
51498
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51500
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
51501
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, localVarRequestOptions, configuration);
51502
+ return {
51503
+ url: (0, common_1.toPathString)(localVarUrlObj),
51504
+ options: localVarRequestOptions,
51505
+ };
51506
+ }),
50625
51507
  /**
50626
51508
  * Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
50627
51509
  * @summary Preview plan change details
@@ -50654,6 +51536,92 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
50654
51536
  options: localVarRequestOptions,
50655
51537
  };
50656
51538
  }),
51539
+ /**
51540
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
51541
+ * @summary Cancel a scheduled plan change
51542
+ * @param {*} [options] Override http request option.
51543
+ * @throws {RequiredError}
51544
+ */
51545
+ adminSubscriptionsPlanChangeScheduleDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
51546
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
51547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51548
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51549
+ let baseOptions;
51550
+ if (configuration) {
51551
+ baseOptions = configuration.baseOptions;
51552
+ }
51553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
51554
+ const localVarHeaderParameter = {};
51555
+ const localVarQueryParameter = {};
51556
+ // authentication BearerAuth required
51557
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
51558
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51560
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
51561
+ return {
51562
+ url: (0, common_1.toPathString)(localVarUrlObj),
51563
+ options: localVarRequestOptions,
51564
+ };
51565
+ }),
51566
+ /**
51567
+ * Returns the pending scheduled plan change for the organization, or null if none.
51568
+ * @summary Get pending scheduled plan change
51569
+ * @param {*} [options] Override http request option.
51570
+ * @throws {RequiredError}
51571
+ */
51572
+ adminSubscriptionsPlanChangeScheduleGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
51573
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
51574
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51575
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51576
+ let baseOptions;
51577
+ if (configuration) {
51578
+ baseOptions = configuration.baseOptions;
51579
+ }
51580
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
51581
+ const localVarHeaderParameter = {};
51582
+ const localVarQueryParameter = {};
51583
+ // authentication BearerAuth required
51584
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
51585
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51586
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51587
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
51588
+ return {
51589
+ url: (0, common_1.toPathString)(localVarUrlObj),
51590
+ options: localVarRequestOptions,
51591
+ };
51592
+ }),
51593
+ /**
51594
+ * Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
51595
+ * @summary Schedule a plan change at end of billing cycle
51596
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
51597
+ * @param {*} [options] Override http request option.
51598
+ * @throws {RequiredError}
51599
+ */
51600
+ adminSubscriptionsPlanChangeSchedulePost: (subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteSchedulePlanChangeHTTPRequest, options = {}) {
51601
+ // verify required parameter 'subscriptionRouteSchedulePlanChangeHTTPRequest' is not null or undefined
51602
+ (0, common_1.assertParamExists)('adminSubscriptionsPlanChangeSchedulePost', 'subscriptionRouteSchedulePlanChangeHTTPRequest', subscriptionRouteSchedulePlanChangeHTTPRequest);
51603
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
51604
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51605
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51606
+ let baseOptions;
51607
+ if (configuration) {
51608
+ baseOptions = configuration.baseOptions;
51609
+ }
51610
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
51611
+ const localVarHeaderParameter = {};
51612
+ const localVarQueryParameter = {};
51613
+ // authentication BearerAuth required
51614
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
51615
+ localVarHeaderParameter['Content-Type'] = 'application/json';
51616
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51617
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51618
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
51619
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRouteSchedulePlanChangeHTTPRequest, localVarRequestOptions, configuration);
51620
+ return {
51621
+ url: (0, common_1.toPathString)(localVarUrlObj),
51622
+ options: localVarRequestOptions,
51623
+ };
51624
+ }),
50657
51625
  /**
50658
51626
  * Updates Subscription information by ID.
50659
51627
  * @summary Update an existing Subscription
@@ -50857,6 +51825,22 @@ const SubscriptionsApiFp = function (configuration) {
50857
51825
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50858
51826
  });
50859
51827
  },
51828
+ /**
51829
+ * Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
51830
+ * @summary Create an immediate plan change order
51831
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
51832
+ * @param {*} [options] Override http request option.
51833
+ * @throws {RequiredError}
51834
+ */
51835
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
51836
+ return __awaiter(this, void 0, void 0, function* () {
51837
+ var _a, _b, _c;
51838
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options);
51839
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51840
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeImmediateOrderPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
51841
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51842
+ });
51843
+ },
50860
51844
  /**
50861
51845
  * Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
50862
51846
  * @summary Preview plan change details
@@ -50873,6 +51857,52 @@ const SubscriptionsApiFp = function (configuration) {
50873
51857
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50874
51858
  });
50875
51859
  },
51860
+ /**
51861
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
51862
+ * @summary Cancel a scheduled plan change
51863
+ * @param {*} [options] Override http request option.
51864
+ * @throws {RequiredError}
51865
+ */
51866
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
51867
+ return __awaiter(this, void 0, void 0, function* () {
51868
+ var _a, _b, _c;
51869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleDelete(options);
51870
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51871
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
51872
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51873
+ });
51874
+ },
51875
+ /**
51876
+ * Returns the pending scheduled plan change for the organization, or null if none.
51877
+ * @summary Get pending scheduled plan change
51878
+ * @param {*} [options] Override http request option.
51879
+ * @throws {RequiredError}
51880
+ */
51881
+ adminSubscriptionsPlanChangeScheduleGet(options) {
51882
+ return __awaiter(this, void 0, void 0, function* () {
51883
+ var _a, _b, _c;
51884
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleGet(options);
51885
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51886
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeScheduleGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
51887
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51888
+ });
51889
+ },
51890
+ /**
51891
+ * Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
51892
+ * @summary Schedule a plan change at end of billing cycle
51893
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
51894
+ * @param {*} [options] Override http request option.
51895
+ * @throws {RequiredError}
51896
+ */
51897
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
51898
+ return __awaiter(this, void 0, void 0, function* () {
51899
+ var _a, _b, _c;
51900
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options);
51901
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51902
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangeSchedulePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
51903
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51904
+ });
51905
+ },
50876
51906
  /**
50877
51907
  * Updates Subscription information by ID.
50878
51908
  * @summary Update an existing Subscription
@@ -50984,6 +52014,16 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
50984
52014
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
50985
52015
  return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
50986
52016
  },
52017
+ /**
52018
+ * Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
52019
+ * @summary Create an immediate plan change order
52020
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
52021
+ * @param {*} [options] Override http request option.
52022
+ * @throws {RequiredError}
52023
+ */
52024
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
52025
+ return localVarFp.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(axios, basePath));
52026
+ },
50987
52027
  /**
50988
52028
  * Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
50989
52029
  * @summary Preview plan change details
@@ -50994,6 +52034,34 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
50994
52034
  adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
50995
52035
  return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
50996
52036
  },
52037
+ /**
52038
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
52039
+ * @summary Cancel a scheduled plan change
52040
+ * @param {*} [options] Override http request option.
52041
+ * @throws {RequiredError}
52042
+ */
52043
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
52044
+ return localVarFp.adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(axios, basePath));
52045
+ },
52046
+ /**
52047
+ * Returns the pending scheduled plan change for the organization, or null if none.
52048
+ * @summary Get pending scheduled plan change
52049
+ * @param {*} [options] Override http request option.
52050
+ * @throws {RequiredError}
52051
+ */
52052
+ adminSubscriptionsPlanChangeScheduleGet(options) {
52053
+ return localVarFp.adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(axios, basePath));
52054
+ },
52055
+ /**
52056
+ * Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
52057
+ * @summary Schedule a plan change at end of billing cycle
52058
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
52059
+ * @param {*} [options] Override http request option.
52060
+ * @throws {RequiredError}
52061
+ */
52062
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
52063
+ return localVarFp.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(axios, basePath));
52064
+ },
50997
52065
  /**
50998
52066
  * Updates Subscription information by ID.
50999
52067
  * @summary Update an existing Subscription
@@ -51077,6 +52145,17 @@ class SubscriptionsApi extends base_1.BaseAPI {
51077
52145
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
51078
52146
  return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
51079
52147
  }
52148
+ /**
52149
+ * Creates a one-time Razorpay order for the net charge amount (new_plan_price - prorated_refund). Frontend opens Razorpay checkout. On payment.captured, the existing subscription is patched to the new plan.
52150
+ * @summary Create an immediate plan change order
52151
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
52152
+ * @param {*} [options] Override http request option.
52153
+ * @throws {RequiredError}
52154
+ * @memberof SubscriptionsApi
52155
+ */
52156
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
52157
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(this.axios, this.basePath));
52158
+ }
51080
52159
  /**
51081
52160
  * Shows a read-only preview of what happens when changing plans: refund for current plan, credits removed/added, new plan cost. Org ID is automatically extracted from JWT session.
51082
52161
  * @summary Preview plan change details
@@ -51088,6 +52167,37 @@ class SubscriptionsApi extends base_1.BaseAPI {
51088
52167
  adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
51089
52168
  return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
51090
52169
  }
52170
+ /**
52171
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
52172
+ * @summary Cancel a scheduled plan change
52173
+ * @param {*} [options] Override http request option.
52174
+ * @throws {RequiredError}
52175
+ * @memberof SubscriptionsApi
52176
+ */
52177
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
52178
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(this.axios, this.basePath));
52179
+ }
52180
+ /**
52181
+ * Returns the pending scheduled plan change for the organization, or null if none.
52182
+ * @summary Get pending scheduled plan change
52183
+ * @param {*} [options] Override http request option.
52184
+ * @throws {RequiredError}
52185
+ * @memberof SubscriptionsApi
52186
+ */
52187
+ adminSubscriptionsPlanChangeScheduleGet(options) {
52188
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(this.axios, this.basePath));
52189
+ }
52190
+ /**
52191
+ * Creates a one-time Razorpay order for the net charge amount. Payment is collected now; plan activation is deferred to cycle end. Returns 409 if a pending scheduled change already exists. For free switches (proration covers full cost), schedules directly without payment.
52192
+ * @summary Schedule a plan change at end of billing cycle
52193
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
52194
+ * @param {*} [options] Override http request option.
52195
+ * @throws {RequiredError}
52196
+ * @memberof SubscriptionsApi
52197
+ */
52198
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
52199
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(this.axios, this.basePath));
52200
+ }
51091
52201
  /**
51092
52202
  * Updates Subscription information by ID.
51093
52203
  * @summary Update an existing Subscription