@hostinger/sdk 1.49.3 → 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/README.md +2 -2
- package/api.ts +60 -22
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +57 -22
- package/dist/api.js +35 -32
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +57 -22
- package/dist/esm/api.js +24 -21
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingOrdersApi.md +2 -1
- package/docs/BillingSubscriptionsApi.md +2 -1
- package/docs/BillingV1OrderPaymentProcessingResource.md +26 -0
- package/docs/DomainsPortfolioApi.md +2 -1
- package/docs/EcommerceProductsApi.md +3 -1
- package/docs/EcommerceV1ProductUploadProductImageRequest.md +1 -1
- package/docs/VPSVirtualMachineApi.md +2 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.50.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.50.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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
|
|
@@ -2202,6 +2202,44 @@ export const BillingV1OrderOrderResourceStatusEnum = {
|
|
|
2202
2202
|
|
|
2203
2203
|
export type BillingV1OrderOrderResourceStatusEnum = typeof BillingV1OrderOrderResourceStatusEnum[keyof typeof BillingV1OrderOrderResourceStatusEnum];
|
|
2204
2204
|
|
|
2205
|
+
/**
|
|
2206
|
+
*
|
|
2207
|
+
* @export
|
|
2208
|
+
* @interface BillingV1OrderPaymentProcessingResource
|
|
2209
|
+
*/
|
|
2210
|
+
export interface BillingV1OrderPaymentProcessingResource {
|
|
2211
|
+
/**
|
|
2212
|
+
* Order ID
|
|
2213
|
+
* @type {number}
|
|
2214
|
+
* @memberof BillingV1OrderPaymentProcessingResource
|
|
2215
|
+
*/
|
|
2216
|
+
'id': number;
|
|
2217
|
+
/**
|
|
2218
|
+
* Subscription ID, use it to find the product once the order completes
|
|
2219
|
+
* @type {string}
|
|
2220
|
+
* @memberof BillingV1OrderPaymentProcessingResource
|
|
2221
|
+
*/
|
|
2222
|
+
'subscription_id': string | null;
|
|
2223
|
+
/**
|
|
2224
|
+
*
|
|
2225
|
+
* @type {string}
|
|
2226
|
+
* @memberof BillingV1OrderPaymentProcessingResource
|
|
2227
|
+
*/
|
|
2228
|
+
'status': BillingV1OrderPaymentProcessingResourceStatusEnum;
|
|
2229
|
+
/**
|
|
2230
|
+
* Explanation of what happens next
|
|
2231
|
+
* @type {string}
|
|
2232
|
+
* @memberof BillingV1OrderPaymentProcessingResource
|
|
2233
|
+
*/
|
|
2234
|
+
'message': string;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
export const BillingV1OrderPaymentProcessingResourceStatusEnum = {
|
|
2238
|
+
PaymentInitiated: 'payment_initiated'
|
|
2239
|
+
} as const;
|
|
2240
|
+
|
|
2241
|
+
export type BillingV1OrderPaymentProcessingResourceStatusEnum = typeof BillingV1OrderPaymentProcessingResourceStatusEnum[keyof typeof BillingV1OrderPaymentProcessingResourceStatusEnum];
|
|
2242
|
+
|
|
2205
2243
|
/**
|
|
2206
2244
|
*
|
|
2207
2245
|
* @export
|
|
@@ -5450,7 +5488,7 @@ export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1Produc
|
|
|
5450
5488
|
*/
|
|
5451
5489
|
export interface EcommerceV1ProductUploadProductImageRequest {
|
|
5452
5490
|
/**
|
|
5453
|
-
* Publicly reachable URL of
|
|
5491
|
+
* Publicly reachable URL of a raster image (JPEG, PNG, GIF or WebP), maximum 15MB. Fetching the image requires HTTPS on port 443 without embedded credentials. At most one redirect is allowed; its destination must meet the same URL requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name.
|
|
5454
5492
|
* @type {string}
|
|
5455
5493
|
* @memberof EcommerceV1ProductUploadProductImageRequest
|
|
5456
5494
|
*/
|
|
@@ -19993,7 +20031,7 @@ export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1Catego
|
|
|
19993
20031
|
export const BillingOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
19994
20032
|
return {
|
|
19995
20033
|
/**
|
|
19996
|
-
* 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.
|
|
20034
|
+
* 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.
|
|
19997
20035
|
* @summary Create purchase order
|
|
19998
20036
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
19999
20037
|
* @param {*} [options] Override http request option.
|
|
@@ -20043,7 +20081,7 @@ export const BillingOrdersApiFp = function(configuration?: Configuration) {
|
|
|
20043
20081
|
const localVarAxiosParamCreator = BillingOrdersApiAxiosParamCreator(configuration)
|
|
20044
20082
|
return {
|
|
20045
20083
|
/**
|
|
20046
|
-
* 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.
|
|
20084
|
+
* 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.
|
|
20047
20085
|
* @summary Create purchase order
|
|
20048
20086
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
20049
20087
|
* @param {*} [options] Override http request option.
|
|
@@ -20065,7 +20103,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
|
|
|
20065
20103
|
const localVarFp = BillingOrdersApiFp(configuration)
|
|
20066
20104
|
return {
|
|
20067
20105
|
/**
|
|
20068
|
-
* 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.
|
|
20106
|
+
* 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.
|
|
20069
20107
|
* @summary Create purchase order
|
|
20070
20108
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
20071
20109
|
* @param {*} [options] Override http request option.
|
|
@@ -20085,7 +20123,7 @@ export const BillingOrdersApiFactory = function (configuration?: Configuration,
|
|
|
20085
20123
|
*/
|
|
20086
20124
|
export class BillingOrdersApi extends BaseAPI {
|
|
20087
20125
|
/**
|
|
20088
|
-
* 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.
|
|
20126
|
+
* 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.
|
|
20089
20127
|
* @summary Create purchase order
|
|
20090
20128
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
20091
20129
|
* @param {*} [options] Override http request option.
|
|
@@ -20464,7 +20502,7 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration?
|
|
|
20464
20502
|
};
|
|
20465
20503
|
},
|
|
20466
20504
|
/**
|
|
20467
|
-
* 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.
|
|
20505
|
+
* 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.
|
|
20468
20506
|
* @summary Renew subscription
|
|
20469
20507
|
* @param {string} subscriptionId Subscription ID
|
|
20470
20508
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -20551,7 +20589,7 @@ export const BillingSubscriptionsApiFp = function(configuration?: Configuration)
|
|
|
20551
20589
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20552
20590
|
},
|
|
20553
20591
|
/**
|
|
20554
|
-
* 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.
|
|
20592
|
+
* 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.
|
|
20555
20593
|
* @summary Renew subscription
|
|
20556
20594
|
* @param {string} subscriptionId Subscription ID
|
|
20557
20595
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -20603,7 +20641,7 @@ export const BillingSubscriptionsApiFactory = function (configuration?: Configur
|
|
|
20603
20641
|
return localVarFp.getSubscriptionListV1(options).then((request) => request(axios, basePath));
|
|
20604
20642
|
},
|
|
20605
20643
|
/**
|
|
20606
|
-
* 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.
|
|
20644
|
+
* 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.
|
|
20607
20645
|
* @summary Renew subscription
|
|
20608
20646
|
* @param {string} subscriptionId Subscription ID
|
|
20609
20647
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -20659,7 +20697,7 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
20659
20697
|
}
|
|
20660
20698
|
|
|
20661
20699
|
/**
|
|
20662
|
-
* 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.
|
|
20700
|
+
* 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.
|
|
20663
20701
|
* @summary Renew subscription
|
|
20664
20702
|
* @param {string} subscriptionId Subscription ID
|
|
20665
20703
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -23064,7 +23102,7 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration?: Co
|
|
|
23064
23102
|
};
|
|
23065
23103
|
},
|
|
23066
23104
|
/**
|
|
23067
|
-
* 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.
|
|
23105
|
+
* 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.
|
|
23068
23106
|
* @summary Purchase new domain
|
|
23069
23107
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
23070
23108
|
* @param {*} [options] Override http request option.
|
|
@@ -23265,7 +23303,7 @@ export const DomainsPortfolioApiFp = function(configuration?: Configuration) {
|
|
|
23265
23303
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23266
23304
|
},
|
|
23267
23305
|
/**
|
|
23268
|
-
* 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.
|
|
23306
|
+
* 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.
|
|
23269
23307
|
* @summary Purchase new domain
|
|
23270
23308
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
23271
23309
|
* @param {*} [options] Override http request option.
|
|
@@ -23389,7 +23427,7 @@ export const DomainsPortfolioApiFactory = function (configuration?: Configuratio
|
|
|
23389
23427
|
return localVarFp.getDomainRenewalInformationV1(domain, options).then((request) => request(axios, basePath));
|
|
23390
23428
|
},
|
|
23391
23429
|
/**
|
|
23392
|
-
* 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.
|
|
23430
|
+
* 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.
|
|
23393
23431
|
* @summary Purchase new domain
|
|
23394
23432
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
23395
23433
|
* @param {*} [options] Override http request option.
|
|
@@ -23527,7 +23565,7 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
23527
23565
|
}
|
|
23528
23566
|
|
|
23529
23567
|
/**
|
|
23530
|
-
* 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.
|
|
23568
|
+
* 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.
|
|
23531
23569
|
* @summary Purchase new domain
|
|
23532
23570
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
23533
23571
|
* @param {*} [options] Override http request option.
|
|
@@ -26331,7 +26369,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
|
|
|
26331
26369
|
};
|
|
26332
26370
|
},
|
|
26333
26371
|
/**
|
|
26334
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26372
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26335
26373
|
* @summary Upload and attach a product image
|
|
26336
26374
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
26337
26375
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -26472,7 +26510,7 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
|
|
|
26472
26510
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26473
26511
|
},
|
|
26474
26512
|
/**
|
|
26475
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26513
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26476
26514
|
* @summary Upload and attach a product image
|
|
26477
26515
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
26478
26516
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -26567,7 +26605,7 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
|
|
|
26567
26605
|
return localVarFp.updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(axios, basePath));
|
|
26568
26606
|
},
|
|
26569
26607
|
/**
|
|
26570
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26608
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26571
26609
|
* @summary Upload and attach a product image
|
|
26572
26610
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
26573
26611
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -26672,7 +26710,7 @@ export class EcommerceProductsApi extends BaseAPI {
|
|
|
26672
26710
|
}
|
|
26673
26711
|
|
|
26674
26712
|
/**
|
|
26675
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26713
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
26676
26714
|
* @summary Upload and attach a product image
|
|
26677
26715
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
26678
26716
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -46226,7 +46264,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
46226
46264
|
};
|
|
46227
46265
|
},
|
|
46228
46266
|
/**
|
|
46229
|
-
* 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.
|
|
46267
|
+
* 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.
|
|
46230
46268
|
* @summary Purchase new virtual machine
|
|
46231
46269
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
46232
46270
|
* @param {*} [options] Override http request option.
|
|
@@ -46742,7 +46780,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
46742
46780
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
46743
46781
|
},
|
|
46744
46782
|
/**
|
|
46745
|
-
* 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.
|
|
46783
|
+
* 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.
|
|
46746
46784
|
* @summary Purchase new virtual machine
|
|
46747
46785
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
46748
46786
|
* @param {*} [options] Override http request option.
|
|
@@ -46932,7 +46970,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
46932
46970
|
return localVarFp.getVirtualMachinesV1(options).then((request) => request(axios, basePath));
|
|
46933
46971
|
},
|
|
46934
46972
|
/**
|
|
46935
|
-
* 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.
|
|
46973
|
+
* 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.
|
|
46936
46974
|
* @summary Purchase new virtual machine
|
|
46937
46975
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
46938
46976
|
* @param {*} [options] Override http request option.
|
|
@@ -47108,7 +47146,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
|
|
|
47108
47146
|
}
|
|
47109
47147
|
|
|
47110
47148
|
/**
|
|
47111
|
-
* 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.
|
|
47149
|
+
* 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.
|
|
47112
47150
|
* @summary Purchase new virtual machine
|
|
47113
47151
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
47114
47152
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.50.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
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
|
|
@@ -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
|
|
@@ -5337,7 +5372,7 @@ export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1Produc
|
|
|
5337
5372
|
*/
|
|
5338
5373
|
export interface EcommerceV1ProductUploadProductImageRequest {
|
|
5339
5374
|
/**
|
|
5340
|
-
* Publicly reachable URL of
|
|
5375
|
+
* Publicly reachable URL of a raster image (JPEG, PNG, GIF or WebP), maximum 15MB. Fetching the image requires HTTPS on port 443 without embedded credentials. At most one redirect is allowed; its destination must meet the same URL requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name.
|
|
5341
5376
|
* @type {string}
|
|
5342
5377
|
* @memberof EcommerceV1ProductUploadProductImageRequest
|
|
5343
5378
|
*/
|
|
@@ -17862,7 +17897,7 @@ export type GetCatalogItemListV1CategoryEnum = typeof GetCatalogItemListV1Catego
|
|
|
17862
17897
|
*/
|
|
17863
17898
|
export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
17864
17899
|
/**
|
|
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.
|
|
17900
|
+
* 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
17901
|
* @summary Create purchase order
|
|
17867
17902
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
17868
17903
|
* @param {*} [options] Override http request option.
|
|
@@ -17876,7 +17911,7 @@ export declare const BillingOrdersApiAxiosParamCreator: (configuration?: Configu
|
|
|
17876
17911
|
*/
|
|
17877
17912
|
export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
|
|
17878
17913
|
/**
|
|
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.
|
|
17914
|
+
* 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
17915
|
* @summary Create purchase order
|
|
17881
17916
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
17882
17917
|
* @param {*} [options] Override http request option.
|
|
@@ -17890,7 +17925,7 @@ export declare const BillingOrdersApiFp: (configuration?: Configuration) => {
|
|
|
17890
17925
|
*/
|
|
17891
17926
|
export declare const BillingOrdersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
17892
17927
|
/**
|
|
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.
|
|
17928
|
+
* 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
17929
|
* @summary Create purchase order
|
|
17895
17930
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
17896
17931
|
* @param {*} [options] Override http request option.
|
|
@@ -17906,7 +17941,7 @@ export declare const BillingOrdersApiFactory: (configuration?: Configuration, ba
|
|
|
17906
17941
|
*/
|
|
17907
17942
|
export declare class BillingOrdersApi extends BaseAPI {
|
|
17908
17943
|
/**
|
|
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.
|
|
17944
|
+
* 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
17945
|
* @summary Create purchase order
|
|
17911
17946
|
* @param {BillingV1OrderPurchaseRequest} billingV1OrderPurchaseRequest
|
|
17912
17947
|
* @param {*} [options] Override http request option.
|
|
@@ -18065,7 +18100,7 @@ export declare const BillingSubscriptionsApiAxiosParamCreator: (configuration?:
|
|
|
18065
18100
|
*/
|
|
18066
18101
|
getSubscriptionListV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
18067
18102
|
/**
|
|
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.
|
|
18103
|
+
* 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
18104
|
* @summary Renew subscription
|
|
18070
18105
|
* @param {string} subscriptionId Subscription ID
|
|
18071
18106
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -18103,7 +18138,7 @@ export declare const BillingSubscriptionsApiFp: (configuration?: Configuration)
|
|
|
18103
18138
|
*/
|
|
18104
18139
|
getSubscriptionListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BillingV1SubscriptionSubscriptionResource>>>;
|
|
18105
18140
|
/**
|
|
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.
|
|
18141
|
+
* 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
18142
|
* @summary Renew subscription
|
|
18108
18143
|
* @param {string} subscriptionId Subscription ID
|
|
18109
18144
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -18141,7 +18176,7 @@ export declare const BillingSubscriptionsApiFactory: (configuration?: Configurat
|
|
|
18141
18176
|
*/
|
|
18142
18177
|
getSubscriptionListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<BillingV1SubscriptionSubscriptionResource>>;
|
|
18143
18178
|
/**
|
|
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.
|
|
18179
|
+
* 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
18180
|
* @summary Renew subscription
|
|
18146
18181
|
* @param {string} subscriptionId Subscription ID
|
|
18147
18182
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -18184,7 +18219,7 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
|
|
|
18184
18219
|
*/
|
|
18185
18220
|
getSubscriptionListV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource[], any, {}, any>>;
|
|
18186
18221
|
/**
|
|
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.
|
|
18222
|
+
* 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
18223
|
* @summary Renew subscription
|
|
18189
18224
|
* @param {string} subscriptionId Subscription ID
|
|
18190
18225
|
* @param {BillingV1SubscriptionRenewalRenewRequest} [billingV1SubscriptionRenewalRenewRequest]
|
|
@@ -19251,7 +19286,7 @@ export declare const DomainsPortfolioApiAxiosParamCreator: (configuration?: Conf
|
|
|
19251
19286
|
*/
|
|
19252
19287
|
getDomainRenewalInformationV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19253
19288
|
/**
|
|
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.
|
|
19289
|
+
* 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
19290
|
* @summary Purchase new domain
|
|
19256
19291
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
19257
19292
|
* @param {*} [options] Override http request option.
|
|
@@ -19345,7 +19380,7 @@ export declare const DomainsPortfolioApiFp: (configuration?: Configuration) => {
|
|
|
19345
19380
|
*/
|
|
19346
19381
|
getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1PortfolioRenewalRenewalInformationResource>>;
|
|
19347
19382
|
/**
|
|
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.
|
|
19383
|
+
* 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
19384
|
* @summary Purchase new domain
|
|
19350
19385
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
19351
19386
|
* @param {*} [options] Override http request option.
|
|
@@ -19439,7 +19474,7 @@ export declare const DomainsPortfolioApiFactory: (configuration?: Configuration,
|
|
|
19439
19474
|
*/
|
|
19440
19475
|
getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1PortfolioRenewalRenewalInformationResource>;
|
|
19441
19476
|
/**
|
|
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.
|
|
19477
|
+
* 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
19478
|
* @summary Purchase new domain
|
|
19444
19479
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
19445
19480
|
* @param {*} [options] Override http request option.
|
|
@@ -19544,7 +19579,7 @@ export declare class DomainsPortfolioApi extends BaseAPI {
|
|
|
19544
19579
|
*/
|
|
19545
19580
|
getDomainRenewalInformationV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1PortfolioRenewalRenewalInformationResource, any, {}, any>>;
|
|
19546
19581
|
/**
|
|
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.
|
|
19582
|
+
* 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
19583
|
* @summary Purchase new domain
|
|
19549
19584
|
* @param {DomainsV1PortfolioPurchaseRequest} domainsV1PortfolioPurchaseRequest
|
|
19550
19585
|
* @param {*} [options] Override http request option.
|
|
@@ -20857,7 +20892,7 @@ export declare const EcommerceProductsApiAxiosParamCreator: (configuration?: Con
|
|
|
20857
20892
|
*/
|
|
20858
20893
|
updateAProductV1: (storeId: string, productId: string, ecommerceV1ProductUpdateRequest: EcommerceV1ProductUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
20859
20894
|
/**
|
|
20860
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
20895
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
20861
20896
|
* @summary Upload and attach a product image
|
|
20862
20897
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
20863
20898
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -20932,7 +20967,7 @@ export declare const EcommerceProductsApiFp: (configuration?: Configuration) =>
|
|
|
20932
20967
|
*/
|
|
20933
20968
|
updateAProductV1(storeId: string, productId: string, ecommerceV1ProductUpdateRequest: EcommerceV1ProductUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1ProductProductResponseResource>>;
|
|
20934
20969
|
/**
|
|
20935
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
20970
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
20936
20971
|
* @summary Upload and attach a product image
|
|
20937
20972
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
20938
20973
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -21007,7 +21042,7 @@ export declare const EcommerceProductsApiFactory: (configuration?: Configuration
|
|
|
21007
21042
|
*/
|
|
21008
21043
|
updateAProductV1(storeId: string, productId: string, ecommerceV1ProductUpdateRequest: EcommerceV1ProductUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1ProductProductResponseResource>;
|
|
21009
21044
|
/**
|
|
21010
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
21045
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
21011
21046
|
* @summary Upload and attach a product image
|
|
21012
21047
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
21013
21048
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -21090,7 +21125,7 @@ export declare class EcommerceProductsApi extends BaseAPI {
|
|
|
21090
21125
|
*/
|
|
21091
21126
|
updateAProductV1(storeId: string, productId: string, ecommerceV1ProductUpdateRequest: EcommerceV1ProductUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1ProductProductResponseResource, any, {}, any>>;
|
|
21092
21127
|
/**
|
|
21093
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
21128
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
21094
21129
|
* @summary Upload and attach a product image
|
|
21095
21130
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
21096
21131
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -30609,7 +30644,7 @@ export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Con
|
|
|
30609
30644
|
*/
|
|
30610
30645
|
getVirtualMachinesV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30611
30646
|
/**
|
|
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.
|
|
30647
|
+
* 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
30648
|
* @summary Purchase new virtual machine
|
|
30614
30649
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
30615
30650
|
* @param {*} [options] Override http request option.
|
|
@@ -30743,7 +30778,7 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
|
|
|
30743
30778
|
*/
|
|
30744
30779
|
getVirtualMachinesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1VirtualMachineVirtualMachineResource>>>;
|
|
30745
30780
|
/**
|
|
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.
|
|
30781
|
+
* 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
30782
|
* @summary Purchase new virtual machine
|
|
30748
30783
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
30749
30784
|
* @param {*} [options] Override http request option.
|
|
@@ -30877,7 +30912,7 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
|
|
|
30877
30912
|
*/
|
|
30878
30913
|
getVirtualMachinesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1VirtualMachineVirtualMachineResource>>;
|
|
30879
30914
|
/**
|
|
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.
|
|
30915
|
+
* 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
30916
|
* @summary Purchase new virtual machine
|
|
30882
30917
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
30883
30918
|
* @param {*} [options] Override http request option.
|
|
@@ -31017,7 +31052,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
|
31017
31052
|
*/
|
|
31018
31053
|
getVirtualMachinesV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1VirtualMachineVirtualMachineResource[], any, {}, any>>;
|
|
31019
31054
|
/**
|
|
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.
|
|
31055
|
+
* 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
31056
|
* @summary Purchase new virtual machine
|
|
31022
31057
|
* @param {VPSV1VirtualMachinePurchaseRequest} vPSV1VirtualMachinePurchaseRequest
|
|
31023
31058
|
* @param {*} [options] Override http request option.
|