hostinger-api-sdk 0.0.15 → 0.0.17
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/CODEOWNERS +1 -1
- package/README.md +2 -2
- package/api.ts +145 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +67 -1
- package/dist/api.js +137 -1
- 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 +67 -1
- package/dist/esm/api.js +137 -1
- 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/BillingSubscriptionsApi.md +108 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/CODEOWNERS
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
* @hostinger/
|
|
1
|
+
* @hostinger/platform-team
|
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@0.0.
|
|
1
|
+
## hostinger-api-sdk@0.0.17
|
|
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-api-sdk@0.0.
|
|
8
|
+
npm install hostinger-api-sdk@0.0.17 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -3603,6 +3603,82 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration?
|
|
|
3603
3603
|
options: localVarRequestOptions,
|
|
3604
3604
|
};
|
|
3605
3605
|
},
|
|
3606
|
+
/**
|
|
3607
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3608
|
+
* @summary Disable auto-renewal
|
|
3609
|
+
* @param {string} subscriptionId Subscription ID
|
|
3610
|
+
* @param {*} [options] Override http request option.
|
|
3611
|
+
* @throws {RequiredError}
|
|
3612
|
+
*/
|
|
3613
|
+
disableAutoRenewalV1: async (subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3614
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3615
|
+
assertParamExists('disableAutoRenewalV1', 'subscriptionId', subscriptionId)
|
|
3616
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
|
|
3617
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3620
|
+
let baseOptions;
|
|
3621
|
+
if (configuration) {
|
|
3622
|
+
baseOptions = configuration.baseOptions;
|
|
3623
|
+
}
|
|
3624
|
+
|
|
3625
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3626
|
+
const localVarHeaderParameter = {} as any;
|
|
3627
|
+
const localVarQueryParameter = {} as any;
|
|
3628
|
+
|
|
3629
|
+
// authentication apiToken required
|
|
3630
|
+
// http bearer authentication required
|
|
3631
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3632
|
+
|
|
3633
|
+
|
|
3634
|
+
|
|
3635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3637
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3638
|
+
|
|
3639
|
+
return {
|
|
3640
|
+
url: toPathString(localVarUrlObj),
|
|
3641
|
+
options: localVarRequestOptions,
|
|
3642
|
+
};
|
|
3643
|
+
},
|
|
3644
|
+
/**
|
|
3645
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3646
|
+
* @summary Enable auto-renewal
|
|
3647
|
+
* @param {string} subscriptionId Subscription ID
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
*/
|
|
3651
|
+
enableAutoRenewalV1: async (subscriptionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3652
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
3653
|
+
assertParamExists('enableAutoRenewalV1', 'subscriptionId', subscriptionId)
|
|
3654
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
|
|
3655
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
3656
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3658
|
+
let baseOptions;
|
|
3659
|
+
if (configuration) {
|
|
3660
|
+
baseOptions = configuration.baseOptions;
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
3664
|
+
const localVarHeaderParameter = {} as any;
|
|
3665
|
+
const localVarQueryParameter = {} as any;
|
|
3666
|
+
|
|
3667
|
+
// authentication apiToken required
|
|
3668
|
+
// http bearer authentication required
|
|
3669
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
|
|
3673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3675
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3676
|
+
|
|
3677
|
+
return {
|
|
3678
|
+
url: toPathString(localVarUrlObj),
|
|
3679
|
+
options: localVarRequestOptions,
|
|
3680
|
+
};
|
|
3681
|
+
},
|
|
3606
3682
|
/**
|
|
3607
3683
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3608
3684
|
* @summary Get subscription list
|
|
@@ -3660,6 +3736,30 @@ export const BillingSubscriptionsApiFp = function(configuration?: Configuration)
|
|
|
3660
3736
|
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.cancelSubscriptionV1']?.[0]?.url;
|
|
3661
3737
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3662
3738
|
},
|
|
3739
|
+
/**
|
|
3740
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3741
|
+
* @summary Disable auto-renewal
|
|
3742
|
+
* @param {string} subscriptionId Subscription ID
|
|
3743
|
+
* @param {*} [options] Override http request option.
|
|
3744
|
+
* @throws {RequiredError}
|
|
3745
|
+
*/
|
|
3746
|
+
async disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>> {
|
|
3747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
|
|
3748
|
+
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']?.[0]?.url;
|
|
3749
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3750
|
+
},
|
|
3751
|
+
/**
|
|
3752
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3753
|
+
* @summary Enable auto-renewal
|
|
3754
|
+
* @param {string} subscriptionId Subscription ID
|
|
3755
|
+
* @param {*} [options] Override http request option.
|
|
3756
|
+
* @throws {RequiredError}
|
|
3757
|
+
*/
|
|
3758
|
+
async enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>> {
|
|
3759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
|
|
3760
|
+
const localVarOperationServerBasePath = operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']?.[0]?.url;
|
|
3761
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3762
|
+
},
|
|
3663
3763
|
/**
|
|
3664
3764
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3665
3765
|
* @summary Get subscription list
|
|
@@ -3692,6 +3792,26 @@ export const BillingSubscriptionsApiFactory = function (configuration?: Configur
|
|
|
3692
3792
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
3693
3793
|
return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
|
|
3694
3794
|
},
|
|
3795
|
+
/**
|
|
3796
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3797
|
+
* @summary Disable auto-renewal
|
|
3798
|
+
* @param {string} subscriptionId Subscription ID
|
|
3799
|
+
* @param {*} [options] Override http request option.
|
|
3800
|
+
* @throws {RequiredError}
|
|
3801
|
+
*/
|
|
3802
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource> {
|
|
3803
|
+
return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
3804
|
+
},
|
|
3805
|
+
/**
|
|
3806
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3807
|
+
* @summary Enable auto-renewal
|
|
3808
|
+
* @param {string} subscriptionId Subscription ID
|
|
3809
|
+
* @param {*} [options] Override http request option.
|
|
3810
|
+
* @throws {RequiredError}
|
|
3811
|
+
*/
|
|
3812
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource> {
|
|
3813
|
+
return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
3814
|
+
},
|
|
3695
3815
|
/**
|
|
3696
3816
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3697
3817
|
* @summary Get subscription list
|
|
@@ -3724,6 +3844,30 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
3724
3844
|
return BillingSubscriptionsApiFp(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3725
3845
|
}
|
|
3726
3846
|
|
|
3847
|
+
/**
|
|
3848
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3849
|
+
* @summary Disable auto-renewal
|
|
3850
|
+
* @param {string} subscriptionId Subscription ID
|
|
3851
|
+
* @param {*} [options] Override http request option.
|
|
3852
|
+
* @throws {RequiredError}
|
|
3853
|
+
* @memberof BillingSubscriptionsApi
|
|
3854
|
+
*/
|
|
3855
|
+
public disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig) {
|
|
3856
|
+
return BillingSubscriptionsApiFp(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
3857
|
+
}
|
|
3858
|
+
|
|
3859
|
+
/**
|
|
3860
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3861
|
+
* @summary Enable auto-renewal
|
|
3862
|
+
* @param {string} subscriptionId Subscription ID
|
|
3863
|
+
* @param {*} [options] Override http request option.
|
|
3864
|
+
* @throws {RequiredError}
|
|
3865
|
+
* @memberof BillingSubscriptionsApi
|
|
3866
|
+
*/
|
|
3867
|
+
public enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig) {
|
|
3868
|
+
return BillingSubscriptionsApiFp(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
3869
|
+
}
|
|
3870
|
+
|
|
3727
3871
|
/**
|
|
3728
3872
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3729
3873
|
* @summary Get subscription list
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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/0.0.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/0.0.17",
|
|
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: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -3247,6 +3247,22 @@ export declare const BillingSubscriptionsApiAxiosParamCreator: (configuration?:
|
|
|
3247
3247
|
* @throws {RequiredError}
|
|
3248
3248
|
*/
|
|
3249
3249
|
cancelSubscriptionV1: (subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3250
|
+
/**
|
|
3251
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3252
|
+
* @summary Disable auto-renewal
|
|
3253
|
+
* @param {string} subscriptionId Subscription ID
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
disableAutoRenewalV1: (subscriptionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3260
|
+
* @summary Enable auto-renewal
|
|
3261
|
+
* @param {string} subscriptionId Subscription ID
|
|
3262
|
+
* @param {*} [options] Override http request option.
|
|
3263
|
+
* @throws {RequiredError}
|
|
3264
|
+
*/
|
|
3265
|
+
enableAutoRenewalV1: (subscriptionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3250
3266
|
/**
|
|
3251
3267
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3252
3268
|
* @summary Get subscription list
|
|
@@ -3269,6 +3285,22 @@ export declare const BillingSubscriptionsApiFp: (configuration?: Configuration)
|
|
|
3269
3285
|
* @throws {RequiredError}
|
|
3270
3286
|
*/
|
|
3271
3287
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
3288
|
+
/**
|
|
3289
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3290
|
+
* @summary Disable auto-renewal
|
|
3291
|
+
* @param {string} subscriptionId Subscription ID
|
|
3292
|
+
* @param {*} [options] Override http request option.
|
|
3293
|
+
* @throws {RequiredError}
|
|
3294
|
+
*/
|
|
3295
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>>;
|
|
3296
|
+
/**
|
|
3297
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3298
|
+
* @summary Enable auto-renewal
|
|
3299
|
+
* @param {string} subscriptionId Subscription ID
|
|
3300
|
+
* @param {*} [options] Override http request option.
|
|
3301
|
+
* @throws {RequiredError}
|
|
3302
|
+
*/
|
|
3303
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>>;
|
|
3272
3304
|
/**
|
|
3273
3305
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3274
3306
|
* @summary Get subscription list
|
|
@@ -3291,6 +3323,22 @@ export declare const BillingSubscriptionsApiFactory: (configuration?: Configurat
|
|
|
3291
3323
|
* @throws {RequiredError}
|
|
3292
3324
|
*/
|
|
3293
3325
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3328
|
+
* @summary Disable auto-renewal
|
|
3329
|
+
* @param {string} subscriptionId Subscription ID
|
|
3330
|
+
* @param {*} [options] Override http request option.
|
|
3331
|
+
* @throws {RequiredError}
|
|
3332
|
+
*/
|
|
3333
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource>;
|
|
3334
|
+
/**
|
|
3335
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3336
|
+
* @summary Enable auto-renewal
|
|
3337
|
+
* @param {string} subscriptionId Subscription ID
|
|
3338
|
+
* @param {*} [options] Override http request option.
|
|
3339
|
+
* @throws {RequiredError}
|
|
3340
|
+
*/
|
|
3341
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource>;
|
|
3294
3342
|
/**
|
|
3295
3343
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3296
3344
|
* @summary Get subscription list
|
|
@@ -3316,6 +3364,24 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
|
|
|
3316
3364
|
* @memberof BillingSubscriptionsApi
|
|
3317
3365
|
*/
|
|
3318
3366
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3369
|
+
* @summary Disable auto-renewal
|
|
3370
|
+
* @param {string} subscriptionId Subscription ID
|
|
3371
|
+
* @param {*} [options] Override http request option.
|
|
3372
|
+
* @throws {RequiredError}
|
|
3373
|
+
* @memberof BillingSubscriptionsApi
|
|
3374
|
+
*/
|
|
3375
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource, any, {}>>;
|
|
3376
|
+
/**
|
|
3377
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3378
|
+
* @summary Enable auto-renewal
|
|
3379
|
+
* @param {string} subscriptionId Subscription ID
|
|
3380
|
+
* @param {*} [options] Override http request option.
|
|
3381
|
+
* @throws {RequiredError}
|
|
3382
|
+
* @memberof BillingSubscriptionsApi
|
|
3383
|
+
*/
|
|
3384
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource, any, {}>>;
|
|
3319
3385
|
/**
|
|
3320
3386
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3321
3387
|
* @summary Get subscription list
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.1.
|
|
7
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -756,6 +756,70 @@ const BillingSubscriptionsApiAxiosParamCreator = function (configuration) {
|
|
|
756
756
|
options: localVarRequestOptions,
|
|
757
757
|
};
|
|
758
758
|
}),
|
|
759
|
+
/**
|
|
760
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
761
|
+
* @summary Disable auto-renewal
|
|
762
|
+
* @param {string} subscriptionId Subscription ID
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
disableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
767
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
768
|
+
(0, common_1.assertParamExists)('disableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
769
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
|
|
770
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
772
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
773
|
+
let baseOptions;
|
|
774
|
+
if (configuration) {
|
|
775
|
+
baseOptions = configuration.baseOptions;
|
|
776
|
+
}
|
|
777
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
778
|
+
const localVarHeaderParameter = {};
|
|
779
|
+
const localVarQueryParameter = {};
|
|
780
|
+
// authentication apiToken required
|
|
781
|
+
// http bearer authentication required
|
|
782
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
783
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
785
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
786
|
+
return {
|
|
787
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
788
|
+
options: localVarRequestOptions,
|
|
789
|
+
};
|
|
790
|
+
}),
|
|
791
|
+
/**
|
|
792
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
793
|
+
* @summary Enable auto-renewal
|
|
794
|
+
* @param {string} subscriptionId Subscription ID
|
|
795
|
+
* @param {*} [options] Override http request option.
|
|
796
|
+
* @throws {RequiredError}
|
|
797
|
+
*/
|
|
798
|
+
enableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
799
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
800
|
+
(0, common_1.assertParamExists)('enableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
801
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
|
|
802
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
804
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
805
|
+
let baseOptions;
|
|
806
|
+
if (configuration) {
|
|
807
|
+
baseOptions = configuration.baseOptions;
|
|
808
|
+
}
|
|
809
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
810
|
+
const localVarHeaderParameter = {};
|
|
811
|
+
const localVarQueryParameter = {};
|
|
812
|
+
// authentication apiToken required
|
|
813
|
+
// http bearer authentication required
|
|
814
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
815
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
817
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
818
|
+
return {
|
|
819
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
820
|
+
options: localVarRequestOptions,
|
|
821
|
+
};
|
|
822
|
+
}),
|
|
759
823
|
/**
|
|
760
824
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
761
825
|
* @summary Get subscription list
|
|
@@ -810,6 +874,36 @@ const BillingSubscriptionsApiFp = function (configuration) {
|
|
|
810
874
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
811
875
|
});
|
|
812
876
|
},
|
|
877
|
+
/**
|
|
878
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
879
|
+
* @summary Disable auto-renewal
|
|
880
|
+
* @param {string} subscriptionId Subscription ID
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
886
|
+
var _a, _b;
|
|
887
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
|
|
888
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
889
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
890
|
+
});
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
894
|
+
* @summary Enable auto-renewal
|
|
895
|
+
* @param {string} subscriptionId Subscription ID
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
901
|
+
var _a, _b;
|
|
902
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
|
|
903
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
904
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
905
|
+
});
|
|
906
|
+
},
|
|
813
907
|
/**
|
|
814
908
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
815
909
|
* @summary Get subscription list
|
|
@@ -845,6 +939,26 @@ const BillingSubscriptionsApiFactory = function (configuration, basePath, axios)
|
|
|
845
939
|
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
846
940
|
return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
|
|
847
941
|
},
|
|
942
|
+
/**
|
|
943
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
944
|
+
* @summary Disable auto-renewal
|
|
945
|
+
* @param {string} subscriptionId Subscription ID
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
950
|
+
return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
951
|
+
},
|
|
952
|
+
/**
|
|
953
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
954
|
+
* @summary Enable auto-renewal
|
|
955
|
+
* @param {string} subscriptionId Subscription ID
|
|
956
|
+
* @param {*} [options] Override http request option.
|
|
957
|
+
* @throws {RequiredError}
|
|
958
|
+
*/
|
|
959
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
960
|
+
return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
961
|
+
},
|
|
848
962
|
/**
|
|
849
963
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
850
964
|
* @summary Get subscription list
|
|
@@ -876,6 +990,28 @@ class BillingSubscriptionsApi extends base_1.BaseAPI {
|
|
|
876
990
|
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
877
991
|
return (0, exports.BillingSubscriptionsApiFp)(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
878
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
995
|
+
* @summary Disable auto-renewal
|
|
996
|
+
* @param {string} subscriptionId Subscription ID
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
* @memberof BillingSubscriptionsApi
|
|
1000
|
+
*/
|
|
1001
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
1002
|
+
return (0, exports.BillingSubscriptionsApiFp)(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
1006
|
+
* @summary Enable auto-renewal
|
|
1007
|
+
* @param {string} subscriptionId Subscription ID
|
|
1008
|
+
* @param {*} [options] Override http request option.
|
|
1009
|
+
* @throws {RequiredError}
|
|
1010
|
+
* @memberof BillingSubscriptionsApi
|
|
1011
|
+
*/
|
|
1012
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
1013
|
+
return (0, exports.BillingSubscriptionsApiFp)(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
1014
|
+
}
|
|
879
1015
|
/**
|
|
880
1016
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
881
1017
|
* @summary Get subscription list
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.1.
|
|
7
|
+
* API Version: 0.1.16
|
|
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
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.1.
|
|
7
|
+
* API Version: 0.1.16
|
|
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
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.1.
|
|
7
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.17" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -3247,6 +3247,22 @@ export declare const BillingSubscriptionsApiAxiosParamCreator: (configuration?:
|
|
|
3247
3247
|
* @throws {RequiredError}
|
|
3248
3248
|
*/
|
|
3249
3249
|
cancelSubscriptionV1: (subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3250
|
+
/**
|
|
3251
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3252
|
+
* @summary Disable auto-renewal
|
|
3253
|
+
* @param {string} subscriptionId Subscription ID
|
|
3254
|
+
* @param {*} [options] Override http request option.
|
|
3255
|
+
* @throws {RequiredError}
|
|
3256
|
+
*/
|
|
3257
|
+
disableAutoRenewalV1: (subscriptionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3258
|
+
/**
|
|
3259
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3260
|
+
* @summary Enable auto-renewal
|
|
3261
|
+
* @param {string} subscriptionId Subscription ID
|
|
3262
|
+
* @param {*} [options] Override http request option.
|
|
3263
|
+
* @throws {RequiredError}
|
|
3264
|
+
*/
|
|
3265
|
+
enableAutoRenewalV1: (subscriptionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3250
3266
|
/**
|
|
3251
3267
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3252
3268
|
* @summary Get subscription list
|
|
@@ -3269,6 +3285,22 @@ export declare const BillingSubscriptionsApiFp: (configuration?: Configuration)
|
|
|
3269
3285
|
* @throws {RequiredError}
|
|
3270
3286
|
*/
|
|
3271
3287
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
3288
|
+
/**
|
|
3289
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3290
|
+
* @summary Disable auto-renewal
|
|
3291
|
+
* @param {string} subscriptionId Subscription ID
|
|
3292
|
+
* @param {*} [options] Override http request option.
|
|
3293
|
+
* @throws {RequiredError}
|
|
3294
|
+
*/
|
|
3295
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>>;
|
|
3296
|
+
/**
|
|
3297
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3298
|
+
* @summary Enable auto-renewal
|
|
3299
|
+
* @param {string} subscriptionId Subscription ID
|
|
3300
|
+
* @param {*} [options] Override http request option.
|
|
3301
|
+
* @throws {RequiredError}
|
|
3302
|
+
*/
|
|
3303
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillingV1SubscriptionSubscriptionResource>>;
|
|
3272
3304
|
/**
|
|
3273
3305
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3274
3306
|
* @summary Get subscription list
|
|
@@ -3291,6 +3323,22 @@ export declare const BillingSubscriptionsApiFactory: (configuration?: Configurat
|
|
|
3291
3323
|
* @throws {RequiredError}
|
|
3292
3324
|
*/
|
|
3293
3325
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
3326
|
+
/**
|
|
3327
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3328
|
+
* @summary Disable auto-renewal
|
|
3329
|
+
* @param {string} subscriptionId Subscription ID
|
|
3330
|
+
* @param {*} [options] Override http request option.
|
|
3331
|
+
* @throws {RequiredError}
|
|
3332
|
+
*/
|
|
3333
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource>;
|
|
3334
|
+
/**
|
|
3335
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3336
|
+
* @summary Enable auto-renewal
|
|
3337
|
+
* @param {string} subscriptionId Subscription ID
|
|
3338
|
+
* @param {*} [options] Override http request option.
|
|
3339
|
+
* @throws {RequiredError}
|
|
3340
|
+
*/
|
|
3341
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): AxiosPromise<BillingV1SubscriptionSubscriptionResource>;
|
|
3294
3342
|
/**
|
|
3295
3343
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3296
3344
|
* @summary Get subscription list
|
|
@@ -3316,6 +3364,24 @@ export declare class BillingSubscriptionsApi extends BaseAPI {
|
|
|
3316
3364
|
* @memberof BillingSubscriptionsApi
|
|
3317
3365
|
*/
|
|
3318
3366
|
cancelSubscriptionV1(subscriptionId: string, billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
3367
|
+
/**
|
|
3368
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
3369
|
+
* @summary Disable auto-renewal
|
|
3370
|
+
* @param {string} subscriptionId Subscription ID
|
|
3371
|
+
* @param {*} [options] Override http request option.
|
|
3372
|
+
* @throws {RequiredError}
|
|
3373
|
+
* @memberof BillingSubscriptionsApi
|
|
3374
|
+
*/
|
|
3375
|
+
disableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource, any, {}>>;
|
|
3376
|
+
/**
|
|
3377
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
3378
|
+
* @summary Enable auto-renewal
|
|
3379
|
+
* @param {string} subscriptionId Subscription ID
|
|
3380
|
+
* @param {*} [options] Override http request option.
|
|
3381
|
+
* @throws {RequiredError}
|
|
3382
|
+
* @memberof BillingSubscriptionsApi
|
|
3383
|
+
*/
|
|
3384
|
+
enableAutoRenewalV1(subscriptionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BillingV1SubscriptionSubscriptionResource, any, {}>>;
|
|
3319
3385
|
/**
|
|
3320
3386
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
3321
3387
|
* @summary Get subscription list
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -739,6 +739,70 @@ export const BillingSubscriptionsApiAxiosParamCreator = function (configuration)
|
|
|
739
739
|
options: localVarRequestOptions,
|
|
740
740
|
};
|
|
741
741
|
}),
|
|
742
|
+
/**
|
|
743
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
744
|
+
* @summary Disable auto-renewal
|
|
745
|
+
* @param {string} subscriptionId Subscription ID
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
disableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
750
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
751
|
+
assertParamExists('disableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
752
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable`
|
|
753
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
756
|
+
let baseOptions;
|
|
757
|
+
if (configuration) {
|
|
758
|
+
baseOptions = configuration.baseOptions;
|
|
759
|
+
}
|
|
760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
761
|
+
const localVarHeaderParameter = {};
|
|
762
|
+
const localVarQueryParameter = {};
|
|
763
|
+
// authentication apiToken required
|
|
764
|
+
// http bearer authentication required
|
|
765
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
768
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
769
|
+
return {
|
|
770
|
+
url: toPathString(localVarUrlObj),
|
|
771
|
+
options: localVarRequestOptions,
|
|
772
|
+
};
|
|
773
|
+
}),
|
|
774
|
+
/**
|
|
775
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
776
|
+
* @summary Enable auto-renewal
|
|
777
|
+
* @param {string} subscriptionId Subscription ID
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
enableAutoRenewalV1: (subscriptionId_1, ...args_1) => __awaiter(this, [subscriptionId_1, ...args_1], void 0, function* (subscriptionId, options = {}) {
|
|
782
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
783
|
+
assertParamExists('enableAutoRenewalV1', 'subscriptionId', subscriptionId);
|
|
784
|
+
const localVarPath = `/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable`
|
|
785
|
+
.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(subscriptionId)));
|
|
786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
787
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
788
|
+
let baseOptions;
|
|
789
|
+
if (configuration) {
|
|
790
|
+
baseOptions = configuration.baseOptions;
|
|
791
|
+
}
|
|
792
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
793
|
+
const localVarHeaderParameter = {};
|
|
794
|
+
const localVarQueryParameter = {};
|
|
795
|
+
// authentication apiToken required
|
|
796
|
+
// http bearer authentication required
|
|
797
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
798
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
801
|
+
return {
|
|
802
|
+
url: toPathString(localVarUrlObj),
|
|
803
|
+
options: localVarRequestOptions,
|
|
804
|
+
};
|
|
805
|
+
}),
|
|
742
806
|
/**
|
|
743
807
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
744
808
|
* @summary Get subscription list
|
|
@@ -792,6 +856,36 @@ export const BillingSubscriptionsApiFp = function (configuration) {
|
|
|
792
856
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
857
|
});
|
|
794
858
|
},
|
|
859
|
+
/**
|
|
860
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
861
|
+
* @summary Disable auto-renewal
|
|
862
|
+
* @param {string} subscriptionId Subscription ID
|
|
863
|
+
* @param {*} [options] Override http request option.
|
|
864
|
+
* @throws {RequiredError}
|
|
865
|
+
*/
|
|
866
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
+
var _a, _b;
|
|
869
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableAutoRenewalV1(subscriptionId, options);
|
|
870
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.disableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
871
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
872
|
+
});
|
|
873
|
+
},
|
|
874
|
+
/**
|
|
875
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
876
|
+
* @summary Enable auto-renewal
|
|
877
|
+
* @param {string} subscriptionId Subscription ID
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
var _a, _b;
|
|
884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableAutoRenewalV1(subscriptionId, options);
|
|
885
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['BillingSubscriptionsApi.enableAutoRenewalV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
886
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
887
|
+
});
|
|
888
|
+
},
|
|
795
889
|
/**
|
|
796
890
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
797
891
|
* @summary Get subscription list
|
|
@@ -826,6 +920,26 @@ export const BillingSubscriptionsApiFactory = function (configuration, basePath,
|
|
|
826
920
|
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
827
921
|
return localVarFp.cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(axios, basePath));
|
|
828
922
|
},
|
|
923
|
+
/**
|
|
924
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
925
|
+
* @summary Disable auto-renewal
|
|
926
|
+
* @param {string} subscriptionId Subscription ID
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
931
|
+
return localVarFp.disableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
932
|
+
},
|
|
933
|
+
/**
|
|
934
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
935
|
+
* @summary Enable auto-renewal
|
|
936
|
+
* @param {string} subscriptionId Subscription ID
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
941
|
+
return localVarFp.enableAutoRenewalV1(subscriptionId, options).then((request) => request(axios, basePath));
|
|
942
|
+
},
|
|
829
943
|
/**
|
|
830
944
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
831
945
|
* @summary Get subscription list
|
|
@@ -856,6 +970,28 @@ export class BillingSubscriptionsApi extends BaseAPI {
|
|
|
856
970
|
cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options) {
|
|
857
971
|
return BillingSubscriptionsApiFp(this.configuration).cancelSubscriptionV1(subscriptionId, billingV1SubscriptionCancelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
858
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
* Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
975
|
+
* @summary Disable auto-renewal
|
|
976
|
+
* @param {string} subscriptionId Subscription ID
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
* @memberof BillingSubscriptionsApi
|
|
980
|
+
*/
|
|
981
|
+
disableAutoRenewalV1(subscriptionId, options) {
|
|
982
|
+
return BillingSubscriptionsApiFp(this.configuration).disableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
986
|
+
* @summary Enable auto-renewal
|
|
987
|
+
* @param {string} subscriptionId Subscription ID
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
* @memberof BillingSubscriptionsApi
|
|
991
|
+
*/
|
|
992
|
+
enableAutoRenewalV1(subscriptionId, options) {
|
|
993
|
+
return BillingSubscriptionsApiFp(this.configuration).enableAutoRenewalV1(subscriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
994
|
+
}
|
|
859
995
|
/**
|
|
860
996
|
* Retrieve a list of all subscriptions associated with your account. Use this endpoint to monitor active services and billing status.
|
|
861
997
|
* @summary Get subscription list
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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/0.0.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.17" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
4
|
+
* API Version: 0.1.16
|
|
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: 0.1.
|
|
7
|
+
* API Version: 0.1.16
|
|
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
|
|
@@ -5,6 +5,8 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**cancelSubscriptionV1**](#cancelsubscriptionv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId} | Cancel subscription|
|
|
8
|
+
|[**disableAutoRenewalV1**](#disableautorenewalv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable | Disable auto-renewal|
|
|
9
|
+
|[**enableAutoRenewalV1**](#enableautorenewalv1) | **PATCH** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable | Enable auto-renewal|
|
|
8
10
|
|[**getSubscriptionListV1**](#getsubscriptionlistv1) | **GET** /api/billing/v1/subscriptions | Get subscription list|
|
|
9
11
|
|
|
10
12
|
# **cancelSubscriptionV1**
|
|
@@ -65,6 +67,112 @@ const { status, data } = await apiInstance.cancelSubscriptionV1(
|
|
|
65
67
|
|
|
66
68
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
69
|
|
|
70
|
+
# **disableAutoRenewalV1**
|
|
71
|
+
> BillingV1SubscriptionSubscriptionResource disableAutoRenewalV1()
|
|
72
|
+
|
|
73
|
+
Disable auto-renewal for a subscription. Use this endpoint when disable auto-renewal for a subscription.
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
import {
|
|
79
|
+
BillingSubscriptionsApi,
|
|
80
|
+
Configuration
|
|
81
|
+
} from 'hostinger-api-sdk';
|
|
82
|
+
|
|
83
|
+
const configuration = new Configuration();
|
|
84
|
+
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
85
|
+
|
|
86
|
+
let subscriptionId: string; //Subscription ID (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.disableAutoRenewalV1(
|
|
89
|
+
subscriptionId
|
|
90
|
+
);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Parameters
|
|
94
|
+
|
|
95
|
+
|Name | Type | Description | Notes|
|
|
96
|
+
|------------- | ------------- | ------------- | -------------|
|
|
97
|
+
| **subscriptionId** | [**string**] | Subscription ID | defaults to undefined|
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
**BillingV1SubscriptionSubscriptionResource**
|
|
103
|
+
|
|
104
|
+
### Authorization
|
|
105
|
+
|
|
106
|
+
[apiToken](../README.md#apiToken)
|
|
107
|
+
|
|
108
|
+
### HTTP request headers
|
|
109
|
+
|
|
110
|
+
- **Content-Type**: Not defined
|
|
111
|
+
- **Accept**: application/json
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### HTTP response details
|
|
115
|
+
| Status code | Description | Response headers |
|
|
116
|
+
|-------------|-------------|------------------|
|
|
117
|
+
|**200** | Success response | - |
|
|
118
|
+
|**401** | Unauthenticated response | - |
|
|
119
|
+
|**500** | Error response | - |
|
|
120
|
+
|
|
121
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
122
|
+
|
|
123
|
+
# **enableAutoRenewalV1**
|
|
124
|
+
> BillingV1SubscriptionSubscriptionResource enableAutoRenewalV1()
|
|
125
|
+
|
|
126
|
+
Enable auto-renewal for a subscription. Use this endpoint when enable auto-renewal for a subscription.
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
BillingSubscriptionsApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from 'hostinger-api-sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let subscriptionId: string; //Subscription ID (default to undefined)
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.enableAutoRenewalV1(
|
|
142
|
+
subscriptionId
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **subscriptionId** | [**string**] | Subscription ID | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**BillingV1SubscriptionSubscriptionResource**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[apiToken](../README.md#apiToken)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | Success response | - |
|
|
171
|
+
|**401** | Unauthenticated response | - |
|
|
172
|
+
|**500** | Error response | - |
|
|
173
|
+
|
|
174
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
175
|
+
|
|
68
176
|
# **getSubscriptionListV1**
|
|
69
177
|
> Array<BillingV1SubscriptionSubscriptionResource> getSubscriptionListV1()
|
|
70
178
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.1.
|
|
6
|
+
* API Version: 0.1.16
|
|
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
|