@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/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.49.3
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 the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. 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.
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.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.3
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.
@@ -10268,7 +10271,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration) {
10268
10271
  };
10269
10272
  }),
10270
10273
  /**
10271
- * 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.
10274
+ * 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.
10272
10275
  * @summary Upload and attach a product image
10273
10276
  * @param {string} storeId The ID of the store the product belongs to.
10274
10277
  * @param {string} productId The ID of the product to attach the image to.
@@ -10419,7 +10422,7 @@ export const EcommerceProductsApiFp = function (configuration) {
10419
10422
  });
10420
10423
  },
10421
10424
  /**
10422
- * 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.
10425
+ * 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.
10423
10426
  * @summary Upload and attach a product image
10424
10427
  * @param {string} storeId The ID of the store the product belongs to.
10425
10428
  * @param {string} productId The ID of the product to attach the image to.
@@ -10516,7 +10519,7 @@ export const EcommerceProductsApiFactory = function (configuration, basePath, ax
10516
10519
  return localVarFp.updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(axios, basePath));
10517
10520
  },
10518
10521
  /**
10519
- * 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.
10522
+ * 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.
10520
10523
  * @summary Upload and attach a product image
10521
10524
  * @param {string} storeId The ID of the store the product belongs to.
10522
10525
  * @param {string} productId The ID of the product to attach the image to.
@@ -10614,7 +10617,7 @@ export class EcommerceProductsApi extends BaseAPI {
10614
10617
  return EcommerceProductsApiFp(this.configuration).updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(this.axios, this.basePath));
10615
10618
  }
10616
10619
  /**
10617
- * 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.
10620
+ * 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.
10618
10621
  * @summary Upload and attach a product image
10619
10622
  * @param {string} storeId The ID of the store the product belongs to.
10620
10623
  * @param {string} productId The ID of the product to attach the image to.
@@ -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.3
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.3
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.3
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.3
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.3
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.3
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.3" }, (_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.3
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.3
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.3
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.3
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