@seekora-ai/admin-api 1.2.4 → 1.2.5

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)
@@ -14790,6 +14860,45 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
14790
14860
  options: localVarRequestOptions,
14791
14861
  };
14792
14862
  }),
14863
+ /**
14864
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
14865
+ * @summary Export credit notes for GSTR-1
14866
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
14867
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
14868
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
14869
+ * @param {*} [options] Override http request option.
14870
+ * @throws {RequiredError}
14871
+ */
14872
+ 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 = {}) {
14873
+ const localVarPath = `/admin/billing/credit-notes/export`;
14874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14875
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14876
+ let baseOptions;
14877
+ if (configuration) {
14878
+ baseOptions = configuration.baseOptions;
14879
+ }
14880
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
14881
+ const localVarHeaderParameter = {};
14882
+ const localVarQueryParameter = {};
14883
+ // authentication BearerAuth required
14884
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
14885
+ if (startDate !== undefined) {
14886
+ localVarQueryParameter['start_date'] = startDate;
14887
+ }
14888
+ if (endDate !== undefined) {
14889
+ localVarQueryParameter['end_date'] = endDate;
14890
+ }
14891
+ if (fiscalYear !== undefined) {
14892
+ localVarQueryParameter['fiscal_year'] = fiscalYear;
14893
+ }
14894
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14895
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14896
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14897
+ return {
14898
+ url: (0, common_1.toPathString)(localVarUrlObj),
14899
+ options: localVarRequestOptions,
14900
+ };
14901
+ }),
14793
14902
  /**
14794
14903
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
14795
14904
  * @summary Get credit purchases
@@ -15018,10 +15127,11 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15018
15127
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
15019
15128
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
15020
15129
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
15130
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
15021
15131
  * @param {*} [options] Override http request option.
15022
15132
  * @throws {RequiredError}
15023
15133
  */
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 = {}) {
15134
+ 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
15135
  const localVarPath = `/admin/billing/invoices`;
15026
15136
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15027
15137
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -15064,6 +15174,9 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15064
15174
  if (sortOrder !== undefined) {
15065
15175
  localVarQueryParameter['sort_order'] = sortOrder;
15066
15176
  }
15177
+ if (invoiceType !== undefined) {
15178
+ localVarQueryParameter['invoice_type'] = invoiceType;
15179
+ }
15067
15180
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15068
15181
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15069
15182
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -15232,6 +15345,37 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
15232
15345
  options: localVarRequestOptions,
15233
15346
  };
15234
15347
  }),
15348
+ /**
15349
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
15350
+ * @summary Void a credit note
15351
+ * @param {string} id Invoice ID (UUID)
15352
+ * @param {*} [options] Override http request option.
15353
+ * @throws {RequiredError}
15354
+ */
15355
+ adminBillingInvoicesIdVoidPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
15356
+ // verify required parameter 'id' is not null or undefined
15357
+ (0, common_1.assertParamExists)('adminBillingInvoicesIdVoidPost', 'id', id);
15358
+ const localVarPath = `/admin/billing/invoices/{id}/void`
15359
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15361
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15362
+ let baseOptions;
15363
+ if (configuration) {
15364
+ baseOptions = configuration.baseOptions;
15365
+ }
15366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
15367
+ const localVarHeaderParameter = {};
15368
+ const localVarQueryParameter = {};
15369
+ // authentication BearerAuth required
15370
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
15371
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
15372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15373
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15374
+ return {
15375
+ url: (0, common_1.toPathString)(localVarUrlObj),
15376
+ options: localVarRequestOptions,
15377
+ };
15378
+ }),
15235
15379
  /**
15236
15380
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
15237
15381
  * @summary Pay a pending invoice
@@ -16141,6 +16285,24 @@ const BillingDashboardApiFp = function (configuration) {
16141
16285
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16142
16286
  });
16143
16287
  },
16288
+ /**
16289
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
16290
+ * @summary Export credit notes for GSTR-1
16291
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
16292
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
16293
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
16294
+ * @param {*} [options] Override http request option.
16295
+ * @throws {RequiredError}
16296
+ */
16297
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
16298
+ return __awaiter(this, void 0, void 0, function* () {
16299
+ var _a, _b, _c;
16300
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options);
16301
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16302
+ 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;
16303
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16304
+ });
16305
+ },
16144
16306
  /**
16145
16307
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
16146
16308
  * @summary Get credit purchases
@@ -16249,13 +16411,14 @@ const BillingDashboardApiFp = function (configuration) {
16249
16411
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
16250
16412
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
16251
16413
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
16414
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
16252
16415
  * @param {*} [options] Override http request option.
16253
16416
  * @throws {RequiredError}
16254
16417
  */
16255
- adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options) {
16418
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
16256
16419
  return __awaiter(this, void 0, void 0, function* () {
16257
16420
  var _a, _b, _c;
16258
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, options);
16421
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options);
16259
16422
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16260
16423
  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
16424
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16342,6 +16505,22 @@ const BillingDashboardApiFp = function (configuration) {
16342
16505
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16343
16506
  });
16344
16507
  },
16508
+ /**
16509
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
16510
+ * @summary Void a credit note
16511
+ * @param {string} id Invoice ID (UUID)
16512
+ * @param {*} [options] Override http request option.
16513
+ * @throws {RequiredError}
16514
+ */
16515
+ adminBillingInvoicesIdVoidPost(id, options) {
16516
+ return __awaiter(this, void 0, void 0, function* () {
16517
+ var _a, _b, _c;
16518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdVoidPost(id, options);
16519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16520
+ 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;
16521
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16522
+ });
16523
+ },
16345
16524
  /**
16346
16525
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
16347
16526
  * @summary Pay a pending invoice
@@ -16803,6 +16982,18 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16803
16982
  adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
16804
16983
  return localVarFp.adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options).then((request) => request(axios, basePath));
16805
16984
  },
16985
+ /**
16986
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
16987
+ * @summary Export credit notes for GSTR-1
16988
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
16989
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
16990
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
16991
+ * @param {*} [options] Override http request option.
16992
+ * @throws {RequiredError}
16993
+ */
16994
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
16995
+ return localVarFp.adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(axios, basePath));
16996
+ },
16806
16997
  /**
16807
16998
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
16808
16999
  * @summary Get credit purchases
@@ -16881,11 +17072,12 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16881
17072
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
16882
17073
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
16883
17074
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
17075
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
16884
17076
  * @param {*} [options] Override http request option.
16885
17077
  * @throws {RequiredError}
16886
17078
  */
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));
17079
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
17080
+ return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options).then((request) => request(axios, basePath));
16889
17081
  },
16890
17082
  /**
16891
17083
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -16938,6 +17130,16 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
16938
17130
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
16939
17131
  return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
16940
17132
  },
17133
+ /**
17134
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
17135
+ * @summary Void a credit note
17136
+ * @param {string} id Invoice ID (UUID)
17137
+ * @param {*} [options] Override http request option.
17138
+ * @throws {RequiredError}
17139
+ */
17140
+ adminBillingInvoicesIdVoidPost(id, options) {
17141
+ return localVarFp.adminBillingInvoicesIdVoidPost(id, options).then((request) => request(axios, basePath));
17142
+ },
16941
17143
  /**
16942
17144
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
16943
17145
  * @summary Pay a pending invoice
@@ -17287,6 +17489,19 @@ class BillingDashboardApi extends base_1.BaseAPI {
17287
17489
  adminBillingCreditLedgerGet(orgId, startDate, endDate, page, pageSize, limit, offset, sortBy, sortOrder, options) {
17288
17490
  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
17491
  }
17492
+ /**
17493
+ * Exports credit notes as a CSV file formatted for GSTR-1 filing. Includes credit note number, original invoice reference, GST breakdown, and SAC code.
17494
+ * @summary Export credit notes for GSTR-1
17495
+ * @param {string} [startDate] Start date (YYYY-MM-DD format)
17496
+ * @param {string} [endDate] End date (YYYY-MM-DD format)
17497
+ * @param {string} [fiscalYear] Fiscal year (e.g., 2526)
17498
+ * @param {*} [options] Override http request option.
17499
+ * @throws {RequiredError}
17500
+ * @memberof BillingDashboardApi
17501
+ */
17502
+ adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options) {
17503
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditNotesExportGet(startDate, endDate, fiscalYear, options).then((request) => request(this.axios, this.basePath));
17504
+ }
17290
17505
  /**
17291
17506
  * Retrieves paginated list of credit purchases with filtering options for the authenticated user\'s organization. Uses page/page_size pagination like analytics APIs.
17292
17507
  * @summary Get credit purchases
@@ -17370,12 +17585,13 @@ class BillingDashboardApi extends base_1.BaseAPI {
17370
17585
  * @param {number} [limit] Number of results per page (default: 20, max: 100) - alternative to page_size
17371
17586
  * @param {AdminBillingInvoicesGetSortByEnum} [sortBy] Field to sort by
17372
17587
  * @param {AdminBillingInvoicesGetSortOrderEnum} [sortOrder] Sort direction
17588
+ * @param {AdminBillingInvoicesGetInvoiceTypeEnum} [invoiceType] Filter by invoice type
17373
17589
  * @param {*} [options] Override http request option.
17374
17590
  * @throws {RequiredError}
17375
17591
  * @memberof BillingDashboardApi
17376
17592
  */
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));
17593
+ adminBillingInvoicesGet(orgId, status, startDate, endDate, search, page, pageSize, limit, sortBy, sortOrder, invoiceType, options) {
17594
+ 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
17595
  }
17380
17596
  /**
17381
17597
  * Deletes an invoice (soft delete by setting status to cancelled)
@@ -17433,6 +17649,17 @@ class BillingDashboardApi extends base_1.BaseAPI {
17433
17649
  adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
17434
17650
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
17435
17651
  }
17652
+ /**
17653
+ * Voids an issued credit note by setting credit_note_status to \'voided\'. Only credit notes with status \'issued\' can be voided.
17654
+ * @summary Void a credit note
17655
+ * @param {string} id Invoice ID (UUID)
17656
+ * @param {*} [options] Override http request option.
17657
+ * @throws {RequiredError}
17658
+ * @memberof BillingDashboardApi
17659
+ */
17660
+ adminBillingInvoicesIdVoidPost(id, options) {
17661
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdVoidPost(id, options).then((request) => request(this.axios, this.basePath));
17662
+ }
17436
17663
  /**
17437
17664
  * Initiates payment for a pending invoice (for subscription orders with failed auto-payments)
17438
17665
  * @summary Pay a pending invoice
@@ -17766,6 +17993,13 @@ exports.AdminBillingInvoicesGetSortOrderEnum = {
17766
17993
  Asc2: 'ASC',
17767
17994
  Desc2: 'DESC'
17768
17995
  };
17996
+ /**
17997
+ * @export
17998
+ */
17999
+ exports.AdminBillingInvoicesGetInvoiceTypeEnum = {
18000
+ TaxInvoice: 'tax_invoice',
18001
+ CreditNote: 'credit_note'
18002
+ };
17769
18003
  /**
17770
18004
  * @export
17771
18005
  */
@@ -50622,6 +50856,38 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
50622
50856
  options: localVarRequestOptions,
50623
50857
  };
50624
50858
  }),
50859
+ /**
50860
+ * 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.
50861
+ * @summary Create an immediate plan change order
50862
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
50863
+ * @param {*} [options] Override http request option.
50864
+ * @throws {RequiredError}
50865
+ */
50866
+ adminSubscriptionsPlanChangeImmediateOrderPost: (subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteImmediatePlanChangeOrderHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options = {}) {
50867
+ // verify required parameter 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest' is not null or undefined
50868
+ (0, common_1.assertParamExists)('adminSubscriptionsPlanChangeImmediateOrderPost', 'subscriptionRouteImmediatePlanChangeOrderHTTPRequest', subscriptionRouteImmediatePlanChangeOrderHTTPRequest);
50869
+ const localVarPath = `/admin/subscriptions/plan-change/immediate/order`;
50870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50871
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50872
+ let baseOptions;
50873
+ if (configuration) {
50874
+ baseOptions = configuration.baseOptions;
50875
+ }
50876
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
50877
+ const localVarHeaderParameter = {};
50878
+ const localVarQueryParameter = {};
50879
+ // authentication BearerAuth required
50880
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
50881
+ localVarHeaderParameter['Content-Type'] = 'application/json';
50882
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
50883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50884
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
50885
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, localVarRequestOptions, configuration);
50886
+ return {
50887
+ url: (0, common_1.toPathString)(localVarUrlObj),
50888
+ options: localVarRequestOptions,
50889
+ };
50890
+ }),
50625
50891
  /**
50626
50892
  * 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
50893
  * @summary Preview plan change details
@@ -50654,6 +50920,92 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
50654
50920
  options: localVarRequestOptions,
50655
50921
  };
50656
50922
  }),
50923
+ /**
50924
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
50925
+ * @summary Cancel a scheduled plan change
50926
+ * @param {*} [options] Override http request option.
50927
+ * @throws {RequiredError}
50928
+ */
50929
+ adminSubscriptionsPlanChangeScheduleDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
50930
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
50931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50932
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50933
+ let baseOptions;
50934
+ if (configuration) {
50935
+ baseOptions = configuration.baseOptions;
50936
+ }
50937
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
50938
+ const localVarHeaderParameter = {};
50939
+ const localVarQueryParameter = {};
50940
+ // authentication BearerAuth required
50941
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
50942
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
50943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50944
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
50945
+ return {
50946
+ url: (0, common_1.toPathString)(localVarUrlObj),
50947
+ options: localVarRequestOptions,
50948
+ };
50949
+ }),
50950
+ /**
50951
+ * Returns the pending scheduled plan change for the organization, or null if none.
50952
+ * @summary Get pending scheduled plan change
50953
+ * @param {*} [options] Override http request option.
50954
+ * @throws {RequiredError}
50955
+ */
50956
+ adminSubscriptionsPlanChangeScheduleGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
50957
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
50958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50959
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50960
+ let baseOptions;
50961
+ if (configuration) {
50962
+ baseOptions = configuration.baseOptions;
50963
+ }
50964
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
50965
+ const localVarHeaderParameter = {};
50966
+ const localVarQueryParameter = {};
50967
+ // authentication BearerAuth required
50968
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
50969
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
50970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50971
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
50972
+ return {
50973
+ url: (0, common_1.toPathString)(localVarUrlObj),
50974
+ options: localVarRequestOptions,
50975
+ };
50976
+ }),
50977
+ /**
50978
+ * 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.
50979
+ * @summary Schedule a plan change at end of billing cycle
50980
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
50981
+ * @param {*} [options] Override http request option.
50982
+ * @throws {RequiredError}
50983
+ */
50984
+ adminSubscriptionsPlanChangeSchedulePost: (subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRouteSchedulePlanChangeHTTPRequest_1, ...args_1], void 0, function* (subscriptionRouteSchedulePlanChangeHTTPRequest, options = {}) {
50985
+ // verify required parameter 'subscriptionRouteSchedulePlanChangeHTTPRequest' is not null or undefined
50986
+ (0, common_1.assertParamExists)('adminSubscriptionsPlanChangeSchedulePost', 'subscriptionRouteSchedulePlanChangeHTTPRequest', subscriptionRouteSchedulePlanChangeHTTPRequest);
50987
+ const localVarPath = `/admin/subscriptions/plan-change/schedule`;
50988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50989
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50990
+ let baseOptions;
50991
+ if (configuration) {
50992
+ baseOptions = configuration.baseOptions;
50993
+ }
50994
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
50995
+ const localVarHeaderParameter = {};
50996
+ const localVarQueryParameter = {};
50997
+ // authentication BearerAuth required
50998
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
50999
+ localVarHeaderParameter['Content-Type'] = 'application/json';
51000
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
51001
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
51002
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
51003
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRouteSchedulePlanChangeHTTPRequest, localVarRequestOptions, configuration);
51004
+ return {
51005
+ url: (0, common_1.toPathString)(localVarUrlObj),
51006
+ options: localVarRequestOptions,
51007
+ };
51008
+ }),
50657
51009
  /**
50658
51010
  * Updates Subscription information by ID.
50659
51011
  * @summary Update an existing Subscription
@@ -50857,6 +51209,22 @@ const SubscriptionsApiFp = function (configuration) {
50857
51209
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50858
51210
  });
50859
51211
  },
51212
+ /**
51213
+ * 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.
51214
+ * @summary Create an immediate plan change order
51215
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
51216
+ * @param {*} [options] Override http request option.
51217
+ * @throws {RequiredError}
51218
+ */
51219
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
51220
+ return __awaiter(this, void 0, void 0, function* () {
51221
+ var _a, _b, _c;
51222
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options);
51223
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51224
+ 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;
51225
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51226
+ });
51227
+ },
50860
51228
  /**
50861
51229
  * 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
51230
  * @summary Preview plan change details
@@ -50873,6 +51241,52 @@ const SubscriptionsApiFp = function (configuration) {
50873
51241
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50874
51242
  });
50875
51243
  },
51244
+ /**
51245
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
51246
+ * @summary Cancel a scheduled plan change
51247
+ * @param {*} [options] Override http request option.
51248
+ * @throws {RequiredError}
51249
+ */
51250
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
51251
+ return __awaiter(this, void 0, void 0, function* () {
51252
+ var _a, _b, _c;
51253
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleDelete(options);
51254
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51255
+ 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;
51256
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51257
+ });
51258
+ },
51259
+ /**
51260
+ * Returns the pending scheduled plan change for the organization, or null if none.
51261
+ * @summary Get pending scheduled plan change
51262
+ * @param {*} [options] Override http request option.
51263
+ * @throws {RequiredError}
51264
+ */
51265
+ adminSubscriptionsPlanChangeScheduleGet(options) {
51266
+ return __awaiter(this, void 0, void 0, function* () {
51267
+ var _a, _b, _c;
51268
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeScheduleGet(options);
51269
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51270
+ 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;
51271
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51272
+ });
51273
+ },
51274
+ /**
51275
+ * 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.
51276
+ * @summary Schedule a plan change at end of billing cycle
51277
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
51278
+ * @param {*} [options] Override http request option.
51279
+ * @throws {RequiredError}
51280
+ */
51281
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
51282
+ return __awaiter(this, void 0, void 0, function* () {
51283
+ var _a, _b, _c;
51284
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options);
51285
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51286
+ 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;
51287
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51288
+ });
51289
+ },
50876
51290
  /**
50877
51291
  * Updates Subscription information by ID.
50878
51292
  * @summary Update an existing Subscription
@@ -50984,6 +51398,16 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
50984
51398
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
50985
51399
  return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
50986
51400
  },
51401
+ /**
51402
+ * 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.
51403
+ * @summary Create an immediate plan change order
51404
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
51405
+ * @param {*} [options] Override http request option.
51406
+ * @throws {RequiredError}
51407
+ */
51408
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
51409
+ return localVarFp.adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(axios, basePath));
51410
+ },
50987
51411
  /**
50988
51412
  * 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
51413
  * @summary Preview plan change details
@@ -50994,6 +51418,34 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
50994
51418
  adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
50995
51419
  return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
50996
51420
  },
51421
+ /**
51422
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
51423
+ * @summary Cancel a scheduled plan change
51424
+ * @param {*} [options] Override http request option.
51425
+ * @throws {RequiredError}
51426
+ */
51427
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
51428
+ return localVarFp.adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(axios, basePath));
51429
+ },
51430
+ /**
51431
+ * Returns the pending scheduled plan change for the organization, or null if none.
51432
+ * @summary Get pending scheduled plan change
51433
+ * @param {*} [options] Override http request option.
51434
+ * @throws {RequiredError}
51435
+ */
51436
+ adminSubscriptionsPlanChangeScheduleGet(options) {
51437
+ return localVarFp.adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(axios, basePath));
51438
+ },
51439
+ /**
51440
+ * 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.
51441
+ * @summary Schedule a plan change at end of billing cycle
51442
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
51443
+ * @param {*} [options] Override http request option.
51444
+ * @throws {RequiredError}
51445
+ */
51446
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
51447
+ return localVarFp.adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(axios, basePath));
51448
+ },
50997
51449
  /**
50998
51450
  * Updates Subscription information by ID.
50999
51451
  * @summary Update an existing Subscription
@@ -51077,6 +51529,17 @@ class SubscriptionsApi extends base_1.BaseAPI {
51077
51529
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
51078
51530
  return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
51079
51531
  }
51532
+ /**
51533
+ * 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.
51534
+ * @summary Create an immediate plan change order
51535
+ * @param {SubscriptionRouteImmediatePlanChangeOrderHTTPRequest} subscriptionRouteImmediatePlanChangeOrderHTTPRequest Immediate plan change order request
51536
+ * @param {*} [options] Override http request option.
51537
+ * @throws {RequiredError}
51538
+ * @memberof SubscriptionsApi
51539
+ */
51540
+ adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options) {
51541
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeImmediateOrderPost(subscriptionRouteImmediatePlanChangeOrderHTTPRequest, options).then((request) => request(this.axios, this.basePath));
51542
+ }
51080
51543
  /**
51081
51544
  * 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
51545
  * @summary Preview plan change details
@@ -51088,6 +51551,37 @@ class SubscriptionsApi extends base_1.BaseAPI {
51088
51551
  adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
51089
51552
  return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
51090
51553
  }
51554
+ /**
51555
+ * Cancels a pending scheduled plan change, reverting the Razorpay subscription to the original plan.
51556
+ * @summary Cancel a scheduled plan change
51557
+ * @param {*} [options] Override http request option.
51558
+ * @throws {RequiredError}
51559
+ * @memberof SubscriptionsApi
51560
+ */
51561
+ adminSubscriptionsPlanChangeScheduleDelete(options) {
51562
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeScheduleDelete(options).then((request) => request(this.axios, this.basePath));
51563
+ }
51564
+ /**
51565
+ * Returns the pending scheduled plan change for the organization, or null if none.
51566
+ * @summary Get pending scheduled plan change
51567
+ * @param {*} [options] Override http request option.
51568
+ * @throws {RequiredError}
51569
+ * @memberof SubscriptionsApi
51570
+ */
51571
+ adminSubscriptionsPlanChangeScheduleGet(options) {
51572
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeScheduleGet(options).then((request) => request(this.axios, this.basePath));
51573
+ }
51574
+ /**
51575
+ * 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.
51576
+ * @summary Schedule a plan change at end of billing cycle
51577
+ * @param {SubscriptionRouteSchedulePlanChangeHTTPRequest} subscriptionRouteSchedulePlanChangeHTTPRequest Schedule plan change request
51578
+ * @param {*} [options] Override http request option.
51579
+ * @throws {RequiredError}
51580
+ * @memberof SubscriptionsApi
51581
+ */
51582
+ adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options) {
51583
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangeSchedulePost(subscriptionRouteSchedulePlanChangeHTTPRequest, options).then((request) => request(this.axios, this.basePath));
51584
+ }
51091
51585
  /**
51092
51586
  * Updates Subscription information by ID.
51093
51587
  * @summary Update an existing Subscription