@seekora-ai/admin-api 1.2.3 → 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
  */
@@ -18294,10 +18528,10 @@ const BillingUserPaymentsApiAxiosParamCreator = function (configuration) {
18294
18528
  * @param {*} [options] Override http request option.
18295
18529
  * @throws {RequiredError}
18296
18530
  */
18297
- apiBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest_1, ...args_1) => __awaiter(this, [billingServiceRetryPaymentRequest_1, ...args_1], void 0, function* (billingServiceRetryPaymentRequest, options = {}) {
18531
+ adminBillingPaymentsRetryPost: (billingServiceRetryPaymentRequest_1, ...args_1) => __awaiter(this, [billingServiceRetryPaymentRequest_1, ...args_1], void 0, function* (billingServiceRetryPaymentRequest, options = {}) {
18298
18532
  // verify required parameter 'billingServiceRetryPaymentRequest' is not null or undefined
18299
- (0, common_1.assertParamExists)('apiBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest);
18300
- const localVarPath = `/api/billing/payments/retry`;
18533
+ (0, common_1.assertParamExists)('adminBillingPaymentsRetryPost', 'billingServiceRetryPaymentRequest', billingServiceRetryPaymentRequest);
18534
+ const localVarPath = `/admin/billing/payments/retry`;
18301
18535
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18302
18536
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18303
18537
  let baseOptions;
@@ -18326,10 +18560,10 @@ const BillingUserPaymentsApiAxiosParamCreator = function (configuration) {
18326
18560
  * @param {*} [options] Override http request option.
18327
18561
  * @throws {RequiredError}
18328
18562
  */
18329
- apiBillingSubscriptionsIdPaymentStatusGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
18563
+ adminBillingSubscriptionsIdPaymentStatusGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
18330
18564
  // verify required parameter 'id' is not null or undefined
18331
- (0, common_1.assertParamExists)('apiBillingSubscriptionsIdPaymentStatusGet', 'id', id);
18332
- const localVarPath = `/api/billing/subscriptions/{id}/payment-status`
18565
+ (0, common_1.assertParamExists)('adminBillingSubscriptionsIdPaymentStatusGet', 'id', id);
18566
+ const localVarPath = `/admin/billing/subscriptions/{id}/payment-status`
18333
18567
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18334
18568
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18335
18569
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -18367,12 +18601,12 @@ const BillingUserPaymentsApiFp = function (configuration) {
18367
18601
  * @param {*} [options] Override http request option.
18368
18602
  * @throws {RequiredError}
18369
18603
  */
18370
- apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18604
+ adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18371
18605
  return __awaiter(this, void 0, void 0, function* () {
18372
18606
  var _a, _b, _c;
18373
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
18607
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options);
18374
18608
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18375
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.apiBillingPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18609
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.adminBillingPaymentsRetryPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18376
18610
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18377
18611
  });
18378
18612
  },
@@ -18383,12 +18617,12 @@ const BillingUserPaymentsApiFp = function (configuration) {
18383
18617
  * @param {*} [options] Override http request option.
18384
18618
  * @throws {RequiredError}
18385
18619
  */
18386
- apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
18620
+ adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
18387
18621
  return __awaiter(this, void 0, void 0, function* () {
18388
18622
  var _a, _b, _c;
18389
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiBillingSubscriptionsIdPaymentStatusGet(id, options);
18623
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSubscriptionsIdPaymentStatusGet(id, options);
18390
18624
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18391
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.apiBillingSubscriptionsIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18625
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingUserPaymentsApi.adminBillingSubscriptionsIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18392
18626
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18393
18627
  });
18394
18628
  },
@@ -18409,8 +18643,8 @@ const BillingUserPaymentsApiFactory = function (configuration, basePath, axios)
18409
18643
  * @param {*} [options] Override http request option.
18410
18644
  * @throws {RequiredError}
18411
18645
  */
18412
- apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18413
- return localVarFp.apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
18646
+ adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18647
+ return localVarFp.adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(axios, basePath));
18414
18648
  },
18415
18649
  /**
18416
18650
  * Gets the current payment status, dunning state, and retry options for a subscription
@@ -18419,8 +18653,8 @@ const BillingUserPaymentsApiFactory = function (configuration, basePath, axios)
18419
18653
  * @param {*} [options] Override http request option.
18420
18654
  * @throws {RequiredError}
18421
18655
  */
18422
- apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
18423
- return localVarFp.apiBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
18656
+ adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
18657
+ return localVarFp.adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(axios, basePath));
18424
18658
  },
18425
18659
  };
18426
18660
  };
@@ -18440,8 +18674,8 @@ class BillingUserPaymentsApi extends base_1.BaseAPI {
18440
18674
  * @throws {RequiredError}
18441
18675
  * @memberof BillingUserPaymentsApi
18442
18676
  */
18443
- apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18444
- return (0, exports.BillingUserPaymentsApiFp)(this.configuration).apiBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
18677
+ adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options) {
18678
+ return (0, exports.BillingUserPaymentsApiFp)(this.configuration).adminBillingPaymentsRetryPost(billingServiceRetryPaymentRequest, options).then((request) => request(this.axios, this.basePath));
18445
18679
  }
18446
18680
  /**
18447
18681
  * Gets the current payment status, dunning state, and retry options for a subscription
@@ -18451,8 +18685,8 @@ class BillingUserPaymentsApi extends base_1.BaseAPI {
18451
18685
  * @throws {RequiredError}
18452
18686
  * @memberof BillingUserPaymentsApi
18453
18687
  */
18454
- apiBillingSubscriptionsIdPaymentStatusGet(id, options) {
18455
- return (0, exports.BillingUserPaymentsApiFp)(this.configuration).apiBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
18688
+ adminBillingSubscriptionsIdPaymentStatusGet(id, options) {
18689
+ return (0, exports.BillingUserPaymentsApiFp)(this.configuration).adminBillingSubscriptionsIdPaymentStatusGet(id, options).then((request) => request(this.axios, this.basePath));
18456
18690
  }
18457
18691
  }
18458
18692
  exports.BillingUserPaymentsApi = BillingUserPaymentsApi;
@@ -35900,6 +36134,37 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
35900
36134
  options: localVarRequestOptions,
35901
36135
  };
35902
36136
  }),
36137
+ /**
36138
+ * Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
36139
+ * @summary Get order retry payment info
36140
+ * @param {string} id Order UUID
36141
+ * @param {*} [options] Override http request option.
36142
+ * @throws {RequiredError}
36143
+ */
36144
+ adminPaymentGatewayOrdersIdRetryInfoGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
36145
+ // verify required parameter 'id' is not null or undefined
36146
+ (0, common_1.assertParamExists)('adminPaymentGatewayOrdersIdRetryInfoGet', 'id', id);
36147
+ const localVarPath = `/admin/payment-gateway/orders/{id}/retry-info`
36148
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
36149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36150
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
36151
+ let baseOptions;
36152
+ if (configuration) {
36153
+ baseOptions = configuration.baseOptions;
36154
+ }
36155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
36156
+ const localVarHeaderParameter = {};
36157
+ const localVarQueryParameter = {};
36158
+ // authentication BearerAuth required
36159
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
36160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
36161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
36163
+ return {
36164
+ url: (0, common_1.toPathString)(localVarUrlObj),
36165
+ options: localVarRequestOptions,
36166
+ };
36167
+ }),
35903
36168
  /**
35904
36169
  * Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
35905
36170
  * @summary Get payment status for polling (frontend)
@@ -36246,6 +36511,22 @@ const PaymentGatewayApiFp = function (configuration) {
36246
36511
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36247
36512
  });
36248
36513
  },
36514
+ /**
36515
+ * Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
36516
+ * @summary Get order retry payment info
36517
+ * @param {string} id Order UUID
36518
+ * @param {*} [options] Override http request option.
36519
+ * @throws {RequiredError}
36520
+ */
36521
+ adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
36522
+ return __awaiter(this, void 0, void 0, function* () {
36523
+ var _a, _b, _c;
36524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayOrdersIdRetryInfoGet(id, options);
36525
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36526
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayOrdersIdRetryInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36527
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36528
+ });
36529
+ },
36249
36530
  /**
36250
36531
  * Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
36251
36532
  * @summary Get payment status for polling (frontend)
@@ -36445,6 +36726,16 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
36445
36726
  adminPaymentGatewayOrdersIdGet(id, options) {
36446
36727
  return localVarFp.adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(axios, basePath));
36447
36728
  },
36729
+ /**
36730
+ * Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
36731
+ * @summary Get order retry payment info
36732
+ * @param {string} id Order UUID
36733
+ * @param {*} [options] Override http request option.
36734
+ * @throws {RequiredError}
36735
+ */
36736
+ adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
36737
+ return localVarFp.adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(axios, basePath));
36738
+ },
36448
36739
  /**
36449
36740
  * Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
36450
36741
  * @summary Get payment status for polling (frontend)
@@ -36601,6 +36892,17 @@ class PaymentGatewayApi extends base_1.BaseAPI {
36601
36892
  adminPaymentGatewayOrdersIdGet(id, options) {
36602
36893
  return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayOrdersIdGet(id, options).then((request) => request(this.axios, this.basePath));
36603
36894
  }
36895
+ /**
36896
+ * Returns the existing gateway order details needed to open the payment gateway UI for retry, without creating a new order.
36897
+ * @summary Get order retry payment info
36898
+ * @param {string} id Order UUID
36899
+ * @param {*} [options] Override http request option.
36900
+ * @throws {RequiredError}
36901
+ * @memberof PaymentGatewayApi
36902
+ */
36903
+ adminPaymentGatewayOrdersIdRetryInfoGet(id, options) {
36904
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayOrdersIdRetryInfoGet(id, options).then((request) => request(this.axios, this.basePath));
36905
+ }
36604
36906
  /**
36605
36907
  * Returns payment status in a frontend-friendly format (\"success\", \"pending\", or \"error\") for polling. This endpoint is designed to be polled by the frontend to check payment status. It returns retry intervals and fulfillment information.
36606
36908
  * @summary Get payment status for polling (frontend)
@@ -50554,6 +50856,156 @@ const SubscriptionsApiAxiosParamCreator = function (configuration) {
50554
50856
  options: localVarRequestOptions,
50555
50857
  };
50556
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
+ }),
50891
+ /**
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.
50893
+ * @summary Preview plan change details
50894
+ * @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
50895
+ * @param {*} [options] Override http request option.
50896
+ * @throws {RequiredError}
50897
+ */
50898
+ adminSubscriptionsPlanChangePreviewPost: (subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1) => __awaiter(this, [subscriptionRoutePlanChangePreviewHTTPRequest_1, ...args_1], void 0, function* (subscriptionRoutePlanChangePreviewHTTPRequest, options = {}) {
50899
+ // verify required parameter 'subscriptionRoutePlanChangePreviewHTTPRequest' is not null or undefined
50900
+ (0, common_1.assertParamExists)('adminSubscriptionsPlanChangePreviewPost', 'subscriptionRoutePlanChangePreviewHTTPRequest', subscriptionRoutePlanChangePreviewHTTPRequest);
50901
+ const localVarPath = `/admin/subscriptions/plan-change/preview`;
50902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50903
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50904
+ let baseOptions;
50905
+ if (configuration) {
50906
+ baseOptions = configuration.baseOptions;
50907
+ }
50908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
50909
+ const localVarHeaderParameter = {};
50910
+ const localVarQueryParameter = {};
50911
+ // authentication BearerAuth required
50912
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
50913
+ localVarHeaderParameter['Content-Type'] = 'application/json';
50914
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
50915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
50916
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
50917
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(subscriptionRoutePlanChangePreviewHTTPRequest, localVarRequestOptions, configuration);
50918
+ return {
50919
+ url: (0, common_1.toPathString)(localVarUrlObj),
50920
+ options: localVarRequestOptions,
50921
+ };
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
+ }),
50557
51009
  /**
50558
51010
  * Updates Subscription information by ID.
50559
51011
  * @summary Update an existing Subscription
@@ -50757,6 +51209,84 @@ const SubscriptionsApiFp = function (configuration) {
50757
51209
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50758
51210
  });
50759
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
+ },
51228
+ /**
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.
51230
+ * @summary Preview plan change details
51231
+ * @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
51232
+ * @param {*} [options] Override http request option.
51233
+ * @throws {RequiredError}
51234
+ */
51235
+ adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
51236
+ return __awaiter(this, void 0, void 0, function* () {
51237
+ var _a, _b, _c;
51238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options);
51239
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
51240
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionsApi.adminSubscriptionsPlanChangePreviewPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
51241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
51242
+ });
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
+ },
50760
51290
  /**
50761
51291
  * Updates Subscription information by ID.
50762
51292
  * @summary Update an existing Subscription
@@ -50868,6 +51398,54 @@ const SubscriptionsApiFactory = function (configuration, basePath, axios) {
50868
51398
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
50869
51399
  return localVarFp.adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(axios, basePath));
50870
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
+ },
51411
+ /**
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.
51413
+ * @summary Preview plan change details
51414
+ * @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
51415
+ * @param {*} [options] Override http request option.
51416
+ * @throws {RequiredError}
51417
+ */
51418
+ adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
51419
+ return localVarFp.adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(axios, basePath));
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
+ },
50871
51449
  /**
50872
51450
  * Updates Subscription information by ID.
50873
51451
  * @summary Update an existing Subscription
@@ -50951,6 +51529,59 @@ class SubscriptionsApi extends base_1.BaseAPI {
50951
51529
  adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options) {
50952
51530
  return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsCancelProcessPost(subscriptionRouteCancelProcessRequest, options).then((request) => request(this.axios, this.basePath));
50953
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
+ }
51543
+ /**
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.
51545
+ * @summary Preview plan change details
51546
+ * @param {SubscriptionRoutePlanChangePreviewHTTPRequest} subscriptionRoutePlanChangePreviewHTTPRequest Plan change preview request
51547
+ * @param {*} [options] Override http request option.
51548
+ * @throws {RequiredError}
51549
+ * @memberof SubscriptionsApi
51550
+ */
51551
+ adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options) {
51552
+ return (0, exports.SubscriptionsApiFp)(this.configuration).adminSubscriptionsPlanChangePreviewPost(subscriptionRoutePlanChangePreviewHTTPRequest, options).then((request) => request(this.axios, this.basePath));
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
+ }
50954
51585
  /**
50955
51586
  * Updates Subscription information by ID.
50956
51587
  * @summary Update an existing Subscription