hostinger-api-sdk 1.5.1 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-release.yaml +29 -1
- package/README.md +2 -2
- package/api.ts +19008 -8147
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +13441 -6234
- package/dist/api.js +10911 -4155
- 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 +13441 -6234
- package/dist/esm/api.js +10589 -3919
- 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/AgencyHostingCacheApi.md +61 -0
- package/docs/AgencyHostingCronJobsApi.md +183 -0
- package/docs/AgencyHostingDatabasesApi.md +305 -0
- package/docs/AgencyHostingDatacentersApi.md +61 -0
- package/docs/AgencyHostingDomainsApi.md +245 -0
- package/docs/AgencyHostingFilesApi.md +66 -0
- package/docs/AgencyHostingListAgencyPlanDomainsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanOrdersV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md +22 -0
- package/docs/AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md +22 -0
- package/docs/AgencyHostingOrdersApi.md +64 -0
- package/docs/AgencyHostingV1DatacentersCoordinatesResource.md +22 -0
- package/docs/AgencyHostingV1DatacentersDatacenterResource.md +28 -0
- package/docs/AgencyHostingV1DomainsChangeDomainRequest.md +20 -0
- package/docs/AgencyHostingV1DomainsDomainResource.md +24 -0
- package/docs/AgencyHostingV1DomainsLinkDomainRequest.md +20 -0
- package/docs/AgencyHostingV1FilesImportArchiveRequest.md +21 -0
- package/docs/AgencyHostingV1FilesUploadUrlResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDatacenterResource.md +22 -0
- package/docs/AgencyHostingV1OrdersOrderResource.md +30 -0
- package/docs/AgencyHostingV1OrdersPlanResource.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequest.md +35 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestClone.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomain.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestDeriveDomainFromVhost.md +22 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettings.md +21 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestSettingsPhp.md +20 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpress.md +25 -0
- package/docs/AgencyHostingV1SetupsCreateSetupRequestWordpressAdmin.md +24 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupResource.md +20 -0
- package/docs/AgencyHostingV1SetupsWebsiteSetupStatusResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuildAssetsRequest.md +21 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCreateCronJobRequest.md +22 -0
- package/docs/AgencyHostingV1WebsitesCronJobsCronJobResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesCustomSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesCreateDatabaseRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesDatabaseUserResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesDatabasesUsersCreateDatabaseUserRequest.md +24 -0
- package/docs/AgencyHostingV1WebsitesSslCertResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDeletionResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteDomainDetailsResource.md +32 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderPlanResourceParameters.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteOrderResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsitePhpSettingsResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsitePreviewDomainResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteProcessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteRemoteAccessResource.md +24 -0
- package/docs/AgencyHostingV1WebsitesWebsiteResource.md +50 -0
- package/docs/AgencyHostingV1WebsitesWebsiteServerResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSettingsResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSftpDetailsResource.md +26 -0
- package/docs/AgencyHostingV1WebsitesWebsiteSshDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesWebsiteStagingRootResource.md +20 -0
- package/docs/AgencyHostingV1WebsitesWebsiteUserResource.md +22 -0
- package/docs/AgencyHostingV1WebsitesWordPressInstallResource.md +28 -0
- package/docs/AgencyHostingV1WordPressChangeVersionRequest.md +20 -0
- package/docs/AgencyHostingV1WordPressSettingsResource.md +26 -0
- package/docs/AgencyHostingV1WordPressVersionResource.md +20 -0
- package/docs/AgencyHostingWebsiteSetupsApi.md +123 -0
- package/docs/AgencyHostingWebsitesApi.md +228 -0
- package/docs/AgencyHostingWordPressApi.md +174 -0
- package/docs/BillingCatalogApi.md +2 -2
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingSubscriptionsApi.md +59 -0
- package/docs/BillingV1OrderPurchaseRequest.md +24 -0
- package/docs/BillingV1OrderPurchaseRequestItemsInner.md +22 -0
- package/docs/BillingV1SubscriptionRenewalRenewRequest.md +22 -0
- package/docs/DomainsForwardingApi.md +59 -0
- package/docs/DomainsPortfolioApi.md +108 -0
- package/docs/DomainsTransferApi.md +108 -0
- package/docs/DomainsV1ForwardingUpdateRequest.md +22 -0
- package/docs/DomainsV1PortfolioAuthCodeAuthCodeResource.md +20 -0
- package/docs/DomainsV1PortfolioRenewalRenewalInformationResource.md +24 -0
- package/docs/DomainsV1TransferTransferResource.md +26 -0
- package/docs/HostingDatabasesApi.md +63 -63
- package/docs/HostingNodeJSApi.md +122 -0
- package/docs/HostingV1NodeJsPatchResultResource.md +26 -0
- package/docs/HostingV1NodeJsPatchVulnerabilitiesRequest.md +20 -0
- package/docs/HostingV1NodeJsVulnerabilityResource.md +48 -0
- package/docs/HostingV1WebsitesDeleteWebsiteRequest.md +20 -0
- package/docs/HostingWebsitesApi.md +59 -0
- package/docs/MailAPITokensApi.md +185 -0
- package/docs/MailAliasesApi.md +186 -0
- package/docs/MailAutorepliesApi.md +246 -0
- package/docs/MailCatchallsApi.md +239 -0
- package/docs/MailForwardersApi.md +304 -0
- package/docs/MailListAPITokensV1200Response.md +22 -0
- package/docs/MailListAccessLogsV1200Response.md +22 -0
- package/docs/MailListActionLogsV1200Response.md +22 -0
- package/docs/MailListAliasesV1200Response.md +22 -0
- package/docs/MailListAutorepliesV1200Response.md +22 -0
- package/docs/MailListCatchAllsV1200Response.md +22 -0
- package/docs/MailListForwardersV1200Response.md +22 -0
- package/docs/MailListInboundLogsV1200Response.md +22 -0
- package/docs/MailListMailboxActionLogsV1200Response.md +22 -0
- package/docs/MailListMailboxesV1200Response.md +22 -0
- package/docs/MailListOrdersV1200Response.md +22 -0
- package/docs/MailListWebhookDeliveryLogsV1200Response.md +22 -0
- package/docs/MailListWebhooksV1200Response.md +22 -0
- package/docs/MailLogsApi.md +410 -0
- package/docs/MailMailboxesApi.md +253 -0
- package/docs/MailOrdersApi.md +132 -0
- package/docs/MailV1AliasesAliasMailboxResource.md +22 -0
- package/docs/MailV1AliasesAliasResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenCreatedResource.md +30 -0
- package/docs/MailV1ApiTokensApiTokenMailboxResource.md +22 -0
- package/docs/MailV1ApiTokensApiTokenResource.md +32 -0
- package/docs/MailV1ApiTokensApiTokenScopeResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyMailboxResource.md +22 -0
- package/docs/MailV1AutorepliesAutoreplyResource.md +36 -0
- package/docs/MailV1CatchallsCatchallMailboxResource.md +22 -0
- package/docs/MailV1CatchallsCatchallResource.md +32 -0
- package/docs/MailV1ForwardersForwarderMailboxResource.md +22 -0
- package/docs/MailV1ForwardersForwarderResource.md +34 -0
- package/docs/MailV1LogsAccessAccessLogResource.md +54 -0
- package/docs/MailV1LogsActionActionLogResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogRelayEventResource.md +32 -0
- package/docs/MailV1LogsCommonDeliveryLogResource.md +38 -0
- package/docs/MailV1LogsMailboxActionsMailboxActionLogResource.md +30 -0
- package/docs/MailV1MailboxesMailboxCountsResource.md +24 -0
- package/docs/MailV1MailboxesMailboxProtocolsResource.md +26 -0
- package/docs/MailV1MailboxesMailboxResource.md +38 -0
- package/docs/MailV1MailboxesMailboxUsageResource.md +29 -0
- package/docs/MailV1OrdersOrderDomainResource.md +22 -0
- package/docs/MailV1OrdersOrderPlanResource.md +22 -0
- package/docs/MailV1OrdersOrderResource.md +36 -0
- package/docs/MailV1OrdersPlanDomainResource.md +30 -0
- package/docs/MailV1OrdersPlanMailboxResource.md +36 -0
- package/docs/MailV1OrdersPlanResource.md +26 -0
- package/docs/MailV1SchemaChangeMailboxPasswordRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateAliasRequestSchema.md +20 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateApiTokenRequestSchemaScope.md +23 -0
- package/docs/MailV1SchemaCreateForwarderRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateMailboxRequestSchema.md +22 -0
- package/docs/MailV1SchemaCreateWebhookRequestSchema.md +28 -0
- package/docs/MailV1SchemaUpdateForwarderKeepCopyRequestSchema.md +20 -0
- package/docs/MailV1SchemaUpdateWebhookRequestSchema.md +29 -0
- package/docs/MailV1SchemaUpsertAutoreplyRequestSchema.md +28 -0
- package/docs/MailV1WebhooksWebhookCreatedResource.md +38 -0
- package/docs/MailV1WebhooksWebhookDeliveryLogResource.md +32 -0
- package/docs/MailV1WebhooksWebhookMailboxResource.md +22 -0
- package/docs/MailV1WebhooksWebhookResource.md +36 -0
- package/docs/MailV1WebhooksWebhookSecretResource.md +38 -0
- package/docs/MailV1WebhooksWebhookTestResultResource.md +24 -0
- package/docs/MailWebhooksApi.md +488 -0
- package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +26 -0
- package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# AgencyHostingWebsitesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**buildAgencyPlanWebsiteNodeJSAssetsV1**](#buildagencyplanwebsitenodejsassetsv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/build-assets | Build Agency Plan website NodeJS assets|
|
|
8
|
+
|[**deleteAgencyPlanWebsiteV1**](#deleteagencyplanwebsitev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid} | Delete Agency Plan website|
|
|
9
|
+
|[**getAgencyPlanWebsiteDetailsV1**](#getagencyplanwebsitedetailsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get Agency Plan website details|
|
|
10
|
+
|[**listRunningAgencyPlanWebsiteProcessesV1**](#listrunningagencyplanwebsiteprocessesv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List running Agency Plan website processes|
|
|
11
|
+
|
|
12
|
+
# **buildAgencyPlanWebsiteNodeJSAssetsV1**
|
|
13
|
+
> CommonSuccessEmptyResource buildAgencyPlanWebsiteNodeJSAssetsV1(agencyHostingV1WebsitesBuildAssetsRequest)
|
|
14
|
+
|
|
15
|
+
Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AgencyHostingWebsitesApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
AgencyHostingV1WebsitesBuildAssetsRequest
|
|
24
|
+
} from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new AgencyHostingWebsitesApi(configuration);
|
|
28
|
+
|
|
29
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
30
|
+
let agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.buildAgencyPlanWebsiteNodeJSAssetsV1(
|
|
33
|
+
websiteUid,
|
|
34
|
+
agencyHostingV1WebsitesBuildAssetsRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **agencyHostingV1WebsitesBuildAssetsRequest** | **AgencyHostingV1WebsitesBuildAssetsRequest**| | |
|
|
43
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**CommonSuccessEmptyResource**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[apiToken](../README.md#apiToken)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Success empty response | - |
|
|
64
|
+
|**422** | Validation error response | - |
|
|
65
|
+
|**401** | Unauthenticated response | - |
|
|
66
|
+
|**500** | Error response | - |
|
|
67
|
+
|
|
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)
|
|
69
|
+
|
|
70
|
+
# **deleteAgencyPlanWebsiteV1**
|
|
71
|
+
> AgencyHostingV1WebsitesWebsiteDeletionResource deleteAgencyPlanWebsiteV1()
|
|
72
|
+
|
|
73
|
+
Deletes an Agency Plan website and schedules cleanup of its resources. This action is irreversible. Website files, databases, and linked domains are removed.
|
|
74
|
+
|
|
75
|
+
### Example
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
import {
|
|
79
|
+
AgencyHostingWebsitesApi,
|
|
80
|
+
Configuration
|
|
81
|
+
} from 'hostinger-api-sdk';
|
|
82
|
+
|
|
83
|
+
const configuration = new Configuration();
|
|
84
|
+
const apiInstance = new AgencyHostingWebsitesApi(configuration);
|
|
85
|
+
|
|
86
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.deleteAgencyPlanWebsiteV1(
|
|
89
|
+
websiteUid
|
|
90
|
+
);
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Parameters
|
|
94
|
+
|
|
95
|
+
|Name | Type | Description | Notes|
|
|
96
|
+
|------------- | ------------- | ------------- | -------------|
|
|
97
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
**AgencyHostingV1WebsitesWebsiteDeletionResource**
|
|
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
|
+
# **getAgencyPlanWebsiteDetailsV1**
|
|
124
|
+
> AgencyHostingV1WebsitesWebsiteResource getAgencyPlanWebsiteDetailsV1()
|
|
125
|
+
|
|
126
|
+
Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
AgencyHostingWebsitesApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from 'hostinger-api-sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new AgencyHostingWebsitesApi(configuration);
|
|
138
|
+
|
|
139
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.getAgencyPlanWebsiteDetailsV1(
|
|
142
|
+
websiteUid
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**AgencyHostingV1WebsitesWebsiteResource**
|
|
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
|
+
|
|
176
|
+
# **listRunningAgencyPlanWebsiteProcessesV1**
|
|
177
|
+
> Array<AgencyHostingV1WebsitesWebsiteProcessResource> listRunningAgencyPlanWebsiteProcessesV1()
|
|
178
|
+
|
|
179
|
+
Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
180
|
+
|
|
181
|
+
### Example
|
|
182
|
+
|
|
183
|
+
```typescript
|
|
184
|
+
import {
|
|
185
|
+
AgencyHostingWebsitesApi,
|
|
186
|
+
Configuration
|
|
187
|
+
} from 'hostinger-api-sdk';
|
|
188
|
+
|
|
189
|
+
const configuration = new Configuration();
|
|
190
|
+
const apiInstance = new AgencyHostingWebsitesApi(configuration);
|
|
191
|
+
|
|
192
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
193
|
+
|
|
194
|
+
const { status, data } = await apiInstance.listRunningAgencyPlanWebsiteProcessesV1(
|
|
195
|
+
websiteUid
|
|
196
|
+
);
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Parameters
|
|
200
|
+
|
|
201
|
+
|Name | Type | Description | Notes|
|
|
202
|
+
|------------- | ------------- | ------------- | -------------|
|
|
203
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Return type
|
|
207
|
+
|
|
208
|
+
**Array<AgencyHostingV1WebsitesWebsiteProcessResource>**
|
|
209
|
+
|
|
210
|
+
### Authorization
|
|
211
|
+
|
|
212
|
+
[apiToken](../README.md#apiToken)
|
|
213
|
+
|
|
214
|
+
### HTTP request headers
|
|
215
|
+
|
|
216
|
+
- **Content-Type**: Not defined
|
|
217
|
+
- **Accept**: application/json
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### HTTP response details
|
|
221
|
+
| Status code | Description | Response headers |
|
|
222
|
+
|-------------|-------------|------------------|
|
|
223
|
+
|**200** | Success response | - |
|
|
224
|
+
|**401** | Unauthenticated response | - |
|
|
225
|
+
|**500** | Error response | - |
|
|
226
|
+
|
|
227
|
+
[[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)
|
|
228
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# AgencyHostingWordPressApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**changeAgencyPlanWebsiteWordPressCoreVersionV1**](#changeagencyplanwebsitewordpresscoreversionv1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change Agency Plan website WordPress core version|
|
|
8
|
+
|[**getAgencyPlanWebsiteWordPressSettingsV1**](#getagencyplanwebsitewordpresssettingsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get Agency Plan website WordPress settings|
|
|
9
|
+
|[**listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1**](#listavailablewordpressversionsforanagencyplanwebsitev1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions for an Agency Plan website|
|
|
10
|
+
|
|
11
|
+
# **changeAgencyPlanWebsiteWordPressCoreVersionV1**
|
|
12
|
+
> CommonSuccessEmptyResource changeAgencyPlanWebsiteWordPressCoreVersionV1(agencyHostingV1WordPressChangeVersionRequest)
|
|
13
|
+
|
|
14
|
+
Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
AgencyHostingWordPressApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
AgencyHostingV1WordPressChangeVersionRequest
|
|
23
|
+
} from 'hostinger-api-sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new AgencyHostingWordPressApi(configuration);
|
|
27
|
+
|
|
28
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
29
|
+
let agencyHostingV1WordPressChangeVersionRequest: AgencyHostingV1WordPressChangeVersionRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.changeAgencyPlanWebsiteWordPressCoreVersionV1(
|
|
32
|
+
websiteUid,
|
|
33
|
+
agencyHostingV1WordPressChangeVersionRequest
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **agencyHostingV1WordPressChangeVersionRequest** | **AgencyHostingV1WordPressChangeVersionRequest**| | |
|
|
42
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**CommonSuccessEmptyResource**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[apiToken](../README.md#apiToken)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: application/json
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | Success empty response | - |
|
|
63
|
+
|**422** | Validation error response | - |
|
|
64
|
+
|**401** | Unauthenticated response | - |
|
|
65
|
+
|**500** | Error response | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **getAgencyPlanWebsiteWordPressSettingsV1**
|
|
70
|
+
> AgencyHostingV1WordPressSettingsResource getAgencyPlanWebsiteWordPressSettingsV1()
|
|
71
|
+
|
|
72
|
+
Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
AgencyHostingWordPressApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from 'hostinger-api-sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new AgencyHostingWordPressApi(configuration);
|
|
84
|
+
|
|
85
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getAgencyPlanWebsiteWordPressSettingsV1(
|
|
88
|
+
websiteUid
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**AgencyHostingV1WordPressSettingsResource**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[apiToken](../README.md#apiToken)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Success response | - |
|
|
117
|
+
|**401** | Unauthenticated response | - |
|
|
118
|
+
|**500** | Error response | - |
|
|
119
|
+
|
|
120
|
+
[[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)
|
|
121
|
+
|
|
122
|
+
# **listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1**
|
|
123
|
+
> Array<AgencyHostingV1WordPressVersionResource> listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1()
|
|
124
|
+
|
|
125
|
+
Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
126
|
+
|
|
127
|
+
### Example
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
import {
|
|
131
|
+
AgencyHostingWordPressApi,
|
|
132
|
+
Configuration
|
|
133
|
+
} from 'hostinger-api-sdk';
|
|
134
|
+
|
|
135
|
+
const configuration = new Configuration();
|
|
136
|
+
const apiInstance = new AgencyHostingWordPressApi(configuration);
|
|
137
|
+
|
|
138
|
+
let websiteUid: string; //Agency Plan website UID (default to undefined)
|
|
139
|
+
|
|
140
|
+
const { status, data } = await apiInstance.listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1(
|
|
141
|
+
websiteUid
|
|
142
|
+
);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
|Name | Type | Description | Notes|
|
|
148
|
+
|------------- | ------------- | ------------- | -------------|
|
|
149
|
+
| **websiteUid** | [**string**] | Agency Plan website UID | defaults to undefined|
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Return type
|
|
153
|
+
|
|
154
|
+
**Array<AgencyHostingV1WordPressVersionResource>**
|
|
155
|
+
|
|
156
|
+
### Authorization
|
|
157
|
+
|
|
158
|
+
[apiToken](../README.md#apiToken)
|
|
159
|
+
|
|
160
|
+
### HTTP request headers
|
|
161
|
+
|
|
162
|
+
- **Content-Type**: Not defined
|
|
163
|
+
- **Accept**: application/json
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### HTTP response details
|
|
167
|
+
| Status code | Description | Response headers |
|
|
168
|
+
|-------------|-------------|------------------|
|
|
169
|
+
|**200** | Success response | - |
|
|
170
|
+
|**401** | Unauthenticated response | - |
|
|
171
|
+
|**500** | Error response | - |
|
|
172
|
+
|
|
173
|
+
[[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)
|
|
174
|
+
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new BillingCatalogApi(configuration);
|
|
24
24
|
|
|
25
|
-
let category: 'DOMAIN' | 'VPS'; //Filter catalog items by category (optional) (default to undefined)
|
|
25
|
+
let category: 'DOMAIN' | 'VPS' | 'EMAIL'; //Filter catalog items by category (optional) (default to undefined)
|
|
26
26
|
let name: string; //Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain (optional) (default to undefined)
|
|
27
27
|
|
|
28
28
|
const { status, data } = await apiInstance.getCatalogItemListV1(
|
|
@@ -35,7 +35,7 @@ const { status, data } = await apiInstance.getCatalogItemListV1(
|
|
|
35
35
|
|
|
36
36
|
|Name | Type | Description | Notes|
|
|
37
37
|
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **category** | [**'DOMAIN' | 'VPS'**]**Array<'DOMAIN' | 'VPS'>** | Filter catalog items by category | (optional) defaults to undefined|
|
|
38
|
+
| **category** | [**'DOMAIN' | 'VPS' | 'EMAIL'**]**Array<'DOMAIN' | 'VPS' | 'EMAIL'>** | Filter catalog items by category | (optional) defaults to undefined|
|
|
39
39
|
| **name** | [**string**] | Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain | (optional) defaults to undefined|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# BillingOrdersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createPurchaseOrderV1**](#createpurchaseorderv1) | **POST** /api/billing/v1/orders | Create purchase order|
|
|
8
|
+
|
|
9
|
+
# **createPurchaseOrderV1**
|
|
10
|
+
> BillingV1OrderOrderResource createPurchaseOrderV1(billingV1OrderPurchaseRequest)
|
|
11
|
+
|
|
12
|
+
Create a purchase order for any Hostinger product. This unified endpoint places an order for one or more catalog items and works across all Hostinger products, leveraging the existing billing infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look up the `item_id` values available for purchase. If no payment method is provided, your default payment method will be used automatically. This endpoint only places the order. Product-specific provisioning (e.g. VPS setup or domain registration) is not performed here — once the order completes, use the relevant product endpoints or [hPanel](https://hpanel.hostinger.com/) to finalize setup. Use this endpoint to purchase any product available in the catalog.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
BillingOrdersApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
BillingV1OrderPurchaseRequest
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new BillingOrdersApi(configuration);
|
|
25
|
+
|
|
26
|
+
let billingV1OrderPurchaseRequest: BillingV1OrderPurchaseRequest; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.createPurchaseOrderV1(
|
|
29
|
+
billingV1OrderPurchaseRequest
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **billingV1OrderPurchaseRequest** | **BillingV1OrderPurchaseRequest**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**BillingV1OrderOrderResource**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[apiToken](../README.md#apiToken)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Success response | - |
|
|
58
|
+
|**422** | Validation error response | - |
|
|
59
|
+
|**401** | Unauthenticated response | - |
|
|
60
|
+
|**500** | Error response | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
7
7
|
|[**disableAutoRenewalV1**](#disableautorenewalv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable | Disable auto-renewal|
|
|
8
8
|
|[**enableAutoRenewalV1**](#enableautorenewalv1) | **PATCH** /api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable | Enable auto-renewal|
|
|
9
9
|
|[**getSubscriptionListV1**](#getsubscriptionlistv1) | **GET** /api/billing/v1/subscriptions | Get subscription list|
|
|
10
|
+
|[**renewSubscriptionV1**](#renewsubscriptionv1) | **POST** /api/billing/v1/subscriptions/{subscriptionId}/renew | Renew subscription|
|
|
10
11
|
|
|
11
12
|
# **disableAutoRenewalV1**
|
|
12
13
|
> BillingV1SubscriptionSubscriptionResource disableAutoRenewalV1()
|
|
@@ -160,3 +161,61 @@ This endpoint does not have any parameters.
|
|
|
160
161
|
|
|
161
162
|
[[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)
|
|
162
163
|
|
|
164
|
+
# **renewSubscriptionV1**
|
|
165
|
+
> BillingV1OrderOrderResource renewSubscriptionV1()
|
|
166
|
+
|
|
167
|
+
Create a renewal order for an existing Hostinger subscription. This endpoint places a renewal order for a single subscription, leveraging the existing billing infrastructure. Use the [subscriptions endpoint](#tag/billing-subscriptions) to look up the `subscriptionId` values available for renewal. If no payment method is provided, your default payment method will be used automatically. Use this endpoint to renew any subscription available in your account.
|
|
168
|
+
|
|
169
|
+
### Example
|
|
170
|
+
|
|
171
|
+
```typescript
|
|
172
|
+
import {
|
|
173
|
+
BillingSubscriptionsApi,
|
|
174
|
+
Configuration,
|
|
175
|
+
BillingV1SubscriptionRenewalRenewRequest
|
|
176
|
+
} from 'hostinger-api-sdk';
|
|
177
|
+
|
|
178
|
+
const configuration = new Configuration();
|
|
179
|
+
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
180
|
+
|
|
181
|
+
let subscriptionId: string; //Subscription ID (default to undefined)
|
|
182
|
+
let billingV1SubscriptionRenewalRenewRequest: BillingV1SubscriptionRenewalRenewRequest; // (optional)
|
|
183
|
+
|
|
184
|
+
const { status, data } = await apiInstance.renewSubscriptionV1(
|
|
185
|
+
subscriptionId,
|
|
186
|
+
billingV1SubscriptionRenewalRenewRequest
|
|
187
|
+
);
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
|Name | Type | Description | Notes|
|
|
193
|
+
|------------- | ------------- | ------------- | -------------|
|
|
194
|
+
| **billingV1SubscriptionRenewalRenewRequest** | **BillingV1SubscriptionRenewalRenewRequest**| | |
|
|
195
|
+
| **subscriptionId** | [**string**] | Subscription ID | defaults to undefined|
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Return type
|
|
199
|
+
|
|
200
|
+
**BillingV1OrderOrderResource**
|
|
201
|
+
|
|
202
|
+
### Authorization
|
|
203
|
+
|
|
204
|
+
[apiToken](../README.md#apiToken)
|
|
205
|
+
|
|
206
|
+
### HTTP request headers
|
|
207
|
+
|
|
208
|
+
- **Content-Type**: application/json
|
|
209
|
+
- **Accept**: application/json
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
### HTTP response details
|
|
213
|
+
| Status code | Description | Response headers |
|
|
214
|
+
|-------------|-------------|------------------|
|
|
215
|
+
|**200** | Success response | - |
|
|
216
|
+
|**422** | Validation error response | - |
|
|
217
|
+
|**401** | Unauthenticated response | - |
|
|
218
|
+
|**500** | Error response | - |
|
|
219
|
+
|
|
220
|
+
[[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)
|
|
221
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# BillingV1OrderPurchaseRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
|
|
9
|
+
**items** | [**Array<BillingV1OrderPurchaseRequestItemsInner>**](BillingV1OrderPurchaseRequestItemsInner.md) | Catalog price items to purchase | [default to undefined]
|
|
10
|
+
**coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { BillingV1OrderPurchaseRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: BillingV1OrderPurchaseRequest = {
|
|
18
|
+
payment_method_id,
|
|
19
|
+
items,
|
|
20
|
+
coupons,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BillingV1OrderPurchaseRequestItemsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**item_id** | **string** | Catalog price item ID | [default to undefined]
|
|
9
|
+
**quantity** | **number** | Quantity to purchase | [optional] [default to 1]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BillingV1OrderPurchaseRequestItemsInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BillingV1OrderPurchaseRequestItemsInner = {
|
|
17
|
+
item_id,
|
|
18
|
+
quantity,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BillingV1SubscriptionRenewalRenewRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
|
|
9
|
+
**coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BillingV1SubscriptionRenewalRenewRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BillingV1SubscriptionRenewalRenewRequest = {
|
|
17
|
+
payment_method_id,
|
|
18
|
+
coupons,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|