@hostinger/sdk 1.49.4 → 1.50.0

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.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.0
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.0
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.0
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.0
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.0
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.0
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.0
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.0" }, (_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.0
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.0
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.0
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.0
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 | - |
@@ -238,7 +238,7 @@ This endpoint does not have any parameters.
238
238
  # **purchaseNewVirtualMachineV1**
239
239
  > BillingV1OrderVirtualMachineOrderResource purchaseNewVirtualMachineV1(vPSV1VirtualMachinePurchaseRequest)
240
240
 
241
- 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.
241
+ 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.
242
242
 
243
243
  ### Example
244
244
 
@@ -284,6 +284,7 @@ const { status, data } = await apiInstance.purchaseNewVirtualMachineV1(
284
284
  | Status code | Description | Response headers |
285
285
  |-------------|-------------|------------------|
286
286
  |**200** | Success response | - |
287
+ |**202** | Payment is being processed, the order will complete asynchronously | - |
287
288
  |**422** | Validation error response | - |
288
289
  |**401** | Unauthenticated response | - |
289
290
  |**500** | Error response | - |
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.4
6
+ * API Version: 1.50.0
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.49.4",
3
+ "version": "1.50.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {