@hostinger/sdk 1.49.4 → 1.50.1

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/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -2157,6 +2157,41 @@ export declare const BillingV1OrderOrderResourceStatusEnum: {
2157
2157
  readonly FraudRefund: "fraud_refund";
2158
2158
  };
2159
2159
  export type BillingV1OrderOrderResourceStatusEnum = typeof BillingV1OrderOrderResourceStatusEnum[keyof typeof BillingV1OrderOrderResourceStatusEnum];
2160
+ /**
2161
+ *
2162
+ * @export
2163
+ * @interface BillingV1OrderPaymentProcessingResource
2164
+ */
2165
+ export interface BillingV1OrderPaymentProcessingResource {
2166
+ /**
2167
+ * Order ID
2168
+ * @type {number}
2169
+ * @memberof BillingV1OrderPaymentProcessingResource
2170
+ */
2171
+ 'id': number;
2172
+ /**
2173
+ * Subscription ID, use it to find the product once the order completes
2174
+ * @type {string}
2175
+ * @memberof BillingV1OrderPaymentProcessingResource
2176
+ */
2177
+ 'subscription_id': string | null;
2178
+ /**
2179
+ *
2180
+ * @type {string}
2181
+ * @memberof BillingV1OrderPaymentProcessingResource
2182
+ */
2183
+ 'status': BillingV1OrderPaymentProcessingResourceStatusEnum;
2184
+ /**
2185
+ * Explanation of what happens next
2186
+ * @type {string}
2187
+ * @memberof BillingV1OrderPaymentProcessingResource
2188
+ */
2189
+ 'message': string;
2190
+ }
2191
+ export declare const BillingV1OrderPaymentProcessingResourceStatusEnum: {
2192
+ readonly PaymentInitiated: "payment_initiated";
2193
+ };
2194
+ export type BillingV1OrderPaymentProcessingResourceStatusEnum = typeof BillingV1OrderPaymentProcessingResourceStatusEnum[keyof typeof BillingV1OrderPaymentProcessingResourceStatusEnum];
2160
2195
  /**
2161
2196
  *
2162
2197
  * @export
@@ -3752,6 +3787,12 @@ export interface DomainsV1WHOISProfileResource {
3752
3787
  * @memberof DomainsV1WHOISProfileResource
3753
3788
  */
3754
3789
  'entity_type': DomainsV1WHOISProfileResourceEntityTypeEnum;
3790
+ /**
3791
+ * Whether the profile is pre-selected when registering new domains of its TLD
3792
+ * @type {boolean}
3793
+ * @memberof DomainsV1WHOISProfileResource
3794
+ */
3795
+ 'is_default': boolean;
3755
3796
  /**
3756
3797
  * WHOIS profile details
3757
3798
  * @type {object}
@@ -17862,7 +17903,7 @@ export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1Catego
17862
17903
  */
17863
17904
  export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
17864
17905
  /**
17865
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17906
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17866
17907
  * @summary Create purchase order
17867
17908
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
17868
17909
  * @param {*} [options] Override http request option.
@@ -17876,7 +17917,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
17876
17917
  */
17877
17918
  export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
17878
17919
  /**
17879
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17920
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17880
17921
  * @summary Create purchase order
17881
17922
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
17882
17923
  * @param {*} [options] Override http request option.
@@ -17890,7 +17931,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
17890
17931
  */
17891
17932
  export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
17892
17933
  /**
17893
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17934
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17894
17935
  * @summary Create purchase order
17895
17936
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
17896
17937
  * @param {*} [options] Override http request option.
@@ -17906,7 +17947,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
17906
17947
  */
17907
17948
  export declare class BillingOrdersApi extends BaseAPI {
17908
17949
  /**
17909
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17950
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
17910
17951
  * @summary Create purchase order
17911
17952
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
17912
17953
  * @param {*} [options] Override http request option.
@@ -18065,7 +18106,7 @@ export declare const BillingSubscriptionsApiAxiosParamCreator: (configuration?:
18065
18106
  */
18066
18107
  getSubscriptionListV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18067
18108
  /**
18068
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
18109
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
18069
18110
  * @summary Renew subscription
18070
18111
  * @param {string} subscriptionId Subscription ID
18071
18112
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -18103,7 +18144,7 @@ export declare const BillingSubscriptionsApiFp: (configuration?: Configuration)
18103
18144
  */
18104
18145
  getSubscriptionListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1SubscriptionSubscriptionResource>>>;
18105
18146
  /**
18106
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
18147
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
18107
18148
  * @summary Renew subscription
18108
18149
  * @param {string} subscriptionId Subscription ID
18109
18150
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -18141,7 +18182,7 @@ export declare const BillingSubscriptionsApiFactory: (configuration?: Configurat
18141
18182
  */
18142
18183
  getSubscriptionListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1SubscriptionSubscriptionResource>>;
18143
18184
  /**
18144
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
18185
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
18145
18186
  * @summary Renew subscription
18146
18187
  * @param {string} subscriptionId Subscription ID
18147
18188
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -18184,7 +18225,7 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
18184
18225
  */
18185
18226
  getSubscriptionListV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource[], any, {}, any>>;
18186
18227
  /**
18187
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
18228
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
18188
18229
  * @summary Renew subscription
18189
18230
  * @param {string} subscriptionId Subscription ID
18190
18231
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -19251,7 +19292,7 @@ export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Conf
19251
19292
  */
19252
19293
  getDomainRenewalInformationV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19253
19294
  /**
19254
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19295
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19255
19296
  * @summary Purchase new domain
19256
19297
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
19257
19298
  * @param {*} [options] Override http request option.
@@ -19345,7 +19386,7 @@ export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
19345
19386
  */
19346
19387
  getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioRenewalRenewalInformationResource>>;
19347
19388
  /**
19348
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19389
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19349
19390
  * @summary Purchase new domain
19350
19391
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
19351
19392
  * @param {*} [options] Override http request option.
@@ -19439,7 +19480,7 @@ export declare const DomainsPortfolioApiFactory: (configuration?: Configuration,
19439
19480
  */
19440
19481
  getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioRenewalRenewalInformationResource>;
19441
19482
  /**
19442
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19483
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19443
19484
  * @summary Purchase new domain
19444
19485
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
19445
19486
  * @param {*} [options] Override http request option.
@@ -19544,7 +19585,7 @@ export declare class DomainsPortfolioApi extends BaseAPI {
19544
19585
  */
19545
19586
  getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1PortfolioRenewalRenewalInformationResource, any, {}, any>>;
19546
19587
  /**
19547
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19588
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
19548
19589
  * @summary Purchase new domain
19549
19590
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
19550
19591
  * @param {*} [options] Override http request option.
@@ -30609,7 +30650,7 @@ export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Con
30609
30650
  */
30610
30651
  getVirtualMachinesV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30611
30652
  /**
30612
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
30653
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
30613
30654
  * @summary Purchase new virtual machine
30614
30655
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
30615
30656
  * @param {*} [options] Override http request option.
@@ -30743,7 +30784,7 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
30743
30784
  */
30744
30785
  getVirtualMachinesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1VirtualMachineVirtualMachineResource>>>;
30745
30786
  /**
30746
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
30787
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
30747
30788
  * @summary Purchase new virtual machine
30748
30789
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
30749
30790
  * @param {*} [options] Override http request option.
@@ -30877,7 +30918,7 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
30877
30918
  */
30878
30919
  getVirtualMachinesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1VirtualMachineVirtualMachineResource>>;
30879
30920
  /**
30880
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
30921
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
30881
30922
  * @summary Purchase new virtual machine
30882
30923
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
30883
30924
  * @param {*} [options] Override http request option.
@@ -31017,7 +31058,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
31017
31058
  */
31018
31059
  getVirtualMachinesV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1VirtualMachineVirtualMachineResource[], any, {}, any>>;
31019
31060
  /**
31020
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
31061
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
31021
31062
  * @summary Purchase new virtual machine
31022
31063
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
31023
31064
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -87,6 +87,9 @@ export const BillingV1OrderOrderResourceStatusEnum = {
87
87
  PaymentInitiated: 'payment_initiated',
88
88
  FraudRefund: 'fraud_refund'
89
89
  };
90
+ export const BillingV1OrderPaymentProcessingResourceStatusEnum = {
91
+ PaymentInitiated: 'payment_initiated'
92
+ };
90
93
  export const BillingV1SubscriptionCancelRequestReasonCodeEnum = {
91
94
  Other: 'other'
92
95
  };
@@ -4385,7 +4388,7 @@ export const GetCatalogItemListV1CategoryEnum = {
4385
4388
  export const BillingOrdersApiAxiosParamCreator = function (configuration) {
4386
4389
  return {
4387
4390
  /**
4388
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4391
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4389
4392
  * @summary Create purchase order
4390
4393
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
4391
4394
  * @param {*} [options] Override http request option.
@@ -4427,7 +4430,7 @@ export const BillingOrdersApiFp = function (configuration) {
4427
4430
  const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration);
4428
4431
  return {
4429
4432
  /**
4430
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4433
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4431
4434
  * @summary Create purchase order
4432
4435
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
4433
4436
  * @param {*} [options] Override http request option.
@@ -4451,7 +4454,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
4451
4454
  const localVarFp = BillingOrdersApiFp(configuration);
4452
4455
  return {
4453
4456
  /**
4454
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4457
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4455
4458
  * @summary Create purchase order
4456
4459
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
4457
4460
  * @param {*} [options] Override http request option.
@@ -4470,7 +4473,7 @@ export const BillingOrdersApiFactory = function (configuration, basePath, axios)
4470
4473
  */
4471
4474
  export class BillingOrdersApi extends BaseAPI {
4472
4475
  /**
4473
- * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4476
+ * Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
4474
4477
  * @summary Create purchase order
4475
4478
  * @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
4476
4479
  * @param {*} [options] Override http request option.
@@ -4811,7 +4814,7 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration)
4811
4814
  };
4812
4815
  }),
4813
4816
  /**
4814
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
4817
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
4815
4818
  * @summary Renew subscription
4816
4819
  * @param {string} subscriptionId Subscription ID
4817
4820
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -4899,7 +4902,7 @@ export const BillingSubscriptionsApiFp = function (configuration) {
4899
4902
  });
4900
4903
  },
4901
4904
  /**
4902
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
4905
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
4903
4906
  * @summary Renew subscription
4904
4907
  * @param {string} subscriptionId Subscription ID
4905
4908
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -4953,7 +4956,7 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
4953
4956
  return localVarFp.getSubscriptionListV1(options).then((request) => request(axios, basePath));
4954
4957
  },
4955
4958
  /**
4956
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
4959
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
4957
4960
  * @summary Renew subscription
4958
4961
  * @param {string} subscriptionId Subscription ID
4959
4962
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -5005,7 +5008,7 @@ export class BillingSubscriptionsApi extends BaseAPI {
5005
5008
  return BillingSubscriptionsApiFp(this.configuration).getSubscriptionListV1(options).then((request) => request(this.axios, this.basePath));
5006
5009
  }
5007
5010
  /**
5008
- * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
5011
+ * Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
5009
5012
  * @summary Renew subscription
5010
5013
  * @param {string} subscriptionId Subscription ID
5011
5014
  * @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
@@ -7213,7 +7216,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
7213
7216
  };
7214
7217
  }),
7215
7218
  /**
7216
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7219
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7217
7220
  * @summary Purchase new domain
7218
7221
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
7219
7222
  * @param {*} [options] Override http request option.
@@ -7426,7 +7429,7 @@ export const DomainsPortfolioApiFp = function (configuration) {
7426
7429
  });
7427
7430
  },
7428
7431
  /**
7429
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7432
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7430
7433
  * @summary Purchase new domain
7431
7434
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
7432
7435
  * @param {*} [options] Override http request option.
@@ -7555,7 +7558,7 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
7555
7558
  return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
7556
7559
  },
7557
7560
  /**
7558
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7561
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7559
7562
  * @summary Purchase new domain
7560
7563
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
7561
7564
  * @param {*} [options] Override http request option.
@@ -7683,7 +7686,7 @@ export class DomainsPortfolioApi extends BaseAPI {
7683
7686
  return DomainsPortfolioApiFp(this.configuration).getDomainRenewalInformationV1(domain, options).then((request) => request(this.axios, this.basePath));
7684
7687
  }
7685
7688
  /**
7686
- * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7689
+ * Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
7687
7690
  * @summary Purchase new domain
7688
7691
  * @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
7689
7692
  * @param {*} [options] Override http request option.
@@ -28841,7 +28844,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
28841
28844
  };
28842
28845
  }),
28843
28846
  /**
28844
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
28847
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
28845
28848
  * @summary Purchase new virtual machine
28846
28849
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
28847
28850
  * @param {*} [options] Override http request option.
@@ -29295,7 +29298,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
29295
29298
  });
29296
29299
  },
29297
29300
  /**
29298
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
29301
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
29299
29302
  * @summary Purchase new virtual machine
29300
29303
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
29301
29304
  * @param {*} [options] Override http request option.
@@ -29517,7 +29520,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
29517
29520
  return localVarFp.getVirtualMachinesV1(options).then((request) => request(axios, basePath));
29518
29521
  },
29519
29522
  /**
29520
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
29523
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
29521
29524
  * @summary Purchase new virtual machine
29522
29525
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
29523
29526
  * @param {*} [options] Override http request option.
@@ -29688,7 +29691,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
29688
29691
  return VPSVirtualMachineApiFp(this.configuration).getVirtualMachinesV1(options).then((request) => request(this.axios, this.basePath));
29689
29692
  }
29690
29693
  /**
29691
- * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to create new VPS instances.
29694
+ * Purchase and setup a new virtual machine. If virtual machine setup fails for any reason, login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the virtual machine was not set up. Login to [hPanel](https://hpanel.hostinger.com/) and complete the setup manually. Use this endpoint to create new VPS instances.
29692
29695
  * @summary Purchase new virtual machine
29693
29696
  * @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
29694
29697
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.49.4" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.50.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.4
4
+ * API Version: 1.50.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.49.4
7
+ * API Version: 1.50.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -9,7 +9,7 @@ All URIs are relative to *https://developers.hostinger.com*
9
9
  # **createPurchaseOrderV1**
10
10
  > BillingV1OrderOrderResource createPurchaseOrderV1(billingV1OrderPurchaseRequest)
11
11
 
12
- Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
12
+ Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the order will complete asynchronously once the payment is confirmed. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
13
13
 
14
14
  ### Example
15
15
 
@@ -55,6 +55,7 @@ const { status, data } = await apiInstance.createPurchaseOrderV1(
55
55
  | Status code | Description | Response headers |
56
56
  |-------------|-------------|------------------|
57
57
  |**200** | Success response | - |
58
+ |**202** | Payment is being processed, the order will complete asynchronously | - |
58
59
  |**422** | Validation error response | - |
59
60
  |**401** | Unauthenticated response | - |
60
61
  |**500** | Error response | - |
@@ -164,7 +164,7 @@ This endpoint does not have any parameters.
164
164
  # **renewSubscriptionV1**
165
165
  > BillingV1OrderOrderResource renewSubscriptionV1()
166
166
 
167
- Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
167
+ Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the renewal will complete asynchronously once the payment is confirmed. Use this endpoint to renew any subscription available in your account.
168
168
 
169
169
  ### Example
170
170
 
@@ -213,6 +213,7 @@ const { status, data } = await apiInstance.renewSubscriptionV1(
213
213
  | Status code | Description | Response headers |
214
214
  |-------------|-------------|------------------|
215
215
  |**200** | Success response | - |
216
+ |**202** | Payment is being processed, the order will complete asynchronously | - |
216
217
  |**422** | Validation error response | - |
217
218
  |**401** | Unauthenticated response | - |
218
219
  |**500** | Error response | - |
@@ -0,0 +1,26 @@
1
+ # BillingV1OrderPaymentProcessingResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | Order ID | [optional] [default to undefined]
9
+ **subscription_id** | **string** | Subscription ID, use it to find the product once the order completes | [optional] [default to undefined]
10
+ **status** | **string** | | [optional] [default to undefined]
11
+ **message** | **string** | Explanation of what happens next | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { BillingV1OrderPaymentProcessingResource } from '@hostinger/sdk';
17
+
18
+ const instance: BillingV1OrderPaymentProcessingResource = {
19
+ id,
20
+ subscription_id,
21
+ status,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -491,7 +491,7 @@ const { status, data } = await apiInstance.getDomainRenewalInformationV1(
491
491
  # **purchaseNewDomainV1**
492
492
  > BillingV1OrderOrderResource purchaseNewDomainV1(domainsV1PortfolioPurchaseRequest)
493
493
 
494
- Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
494
+ Purchase and register a new domain name. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no payment method is provided, your default payment method will be used automatically. If the response is `202 Accepted`, the payment is still being processed and the domain was **not** registered. Once the order completes, register the domain from [hPanel](https://hpanel.hostinger.com/). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before completing purchase. Use this endpoint to register new domains for users.
495
495
 
496
496
  ### Example
497
497
 
@@ -537,6 +537,7 @@ const { status, data } = await apiInstance.purchaseNewDomainV1(
537
537
  | Status code | Description | Response headers |
538
538
  |-------------|-------------|------------------|
539
539
  |**200** | Success response | - |
540
+ |**202** | Payment is being processed, the order will complete asynchronously | - |
540
541
  |**422** | Validation error response | - |
541
542
  |**401** | Unauthenticated response | - |
542
543
  |**500** | Error response | - |