hostinger-api-sdk 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +386 -148
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +319 -143
- package/dist/api.js +139 -41
- 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 +319 -143
- package/dist/esm/api.js +136 -38
- 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/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingCatalogApi.md +0 -54
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingPaymentMethodsApi.md +0 -162
- package/docs/BillingSubscriptionsApi.md +0 -113
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
- package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
- package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
- package/docs/BillingV1OrderOrderResource.md +0 -36
- package/docs/BillingV1OrderStoreRequest.md +0 -24
- package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
- package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
- package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
- package/docs/CommonSchemaErrorResponseSchema.md +0 -22
- package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
- package/docs/CommonSuccessEmptyResource.md +0 -20
- package/docs/DNSSnapshotApi.md +0 -175
- package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
- package/docs/DNSV1ZoneDestroyRequest.md +0 -20
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
- package/docs/DNSV1ZoneNameRecordResource.md +0 -22
- package/docs/DNSV1ZoneRecordResource.md +0 -26
- package/docs/DNSV1ZoneResetRequest.md +0 -24
- package/docs/DNSV1ZoneUpdateRequest.md +0 -22
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
- package/docs/DNSZoneApi.md +0 -297
- package/docs/DomainsAvailabilityApi.md +0 -63
- package/docs/DomainsForwardingApi.md +0 -171
- package/docs/DomainsPortfolioApi.md +0 -439
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
- package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
- package/docs/DomainsV1DomainDomainResource.md +0 -30
- package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
- package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
- package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
- package/docs/DomainsV1WHOISProfileResource.md +0 -34
- package/docs/DomainsV1WHOISStoreRequest.md +0 -28
- package/docs/DomainsWHOISApi.md +0 -279
- package/docs/VPSActionsApi.md +0 -121
- package/docs/VPSBackupsApi.md +0 -178
- package/docs/VPSDataCentersApi.md +0 -54
- package/docs/VPSFirewallApi.md +0 -577
- package/docs/VPSGetActionListV1200Response.md +0 -22
- package/docs/VPSGetBackupListV1200Response.md +0 -22
- package/docs/VPSGetFirewallListV1200Response.md +0 -22
- package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
- package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
- package/docs/VPSMalwareScannerApi.md +0 -172
- package/docs/VPSOSTemplatesApi.md +0 -108
- package/docs/VPSPTRRecordsApi.md +0 -115
- package/docs/VPSPostInstallScriptsApi.md +0 -284
- package/docs/VPSPublicKeysApi.md +0 -230
- package/docs/VPSRecoveryApi.md +0 -120
- package/docs/VPSSnapshotsApi.md +0 -223
- package/docs/VPSV1ActionActionResource.md +0 -28
- package/docs/VPSV1BackupBackupResource.md +0 -24
- package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
- package/docs/VPSV1FirewallFirewallResource.md +0 -30
- package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
- package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
- package/docs/VPSV1FirewallStoreRequest.md +0 -20
- package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
- package/docs/VPSV1MalwareMetricsResource.md +0 -30
- package/docs/VPSV1MetricsMetricsCollection.md +0 -30
- package/docs/VPSV1MetricsMetricsResource.md +0 -22
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
- package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
- package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
- package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
- package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
- package/docs/VPSV1TemplateTemplateResource.md +0 -26
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
- package/docs/VPSVirtualMachineApi.md +0 -796
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# BillingCatalogApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getCatalogItemListV1**](#getcatalogitemlistv1) | **GET** /api/billing/v1/catalog | Get catalog item list|
|
|
8
|
-
|
|
9
|
-
# **getCatalogItemListV1**
|
|
10
|
-
> Array<BillingV1CatalogCatalogItemResource> getCatalogItemListV1()
|
|
11
|
-
|
|
12
|
-
This endpoint retrieves a list of catalog items available for order. Prices in catalog items is displayed as cents (without floating point), e.g: float `17.99` is displayed as integer `1799`.
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
BillingCatalogApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from 'hostinger-api-sdk';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new BillingCatalogApi(configuration);
|
|
24
|
-
|
|
25
|
-
const { status, data } = await apiInstance.getCatalogItemListV1();
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Parameters
|
|
29
|
-
This endpoint does not have any parameters.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Return type
|
|
33
|
-
|
|
34
|
-
**Array<BillingV1CatalogCatalogItemResource>**
|
|
35
|
-
|
|
36
|
-
### Authorization
|
|
37
|
-
|
|
38
|
-
[apiToken](../README.md#apiToken)
|
|
39
|
-
|
|
40
|
-
### HTTP request headers
|
|
41
|
-
|
|
42
|
-
- **Content-Type**: Not defined
|
|
43
|
-
- **Accept**: application/json
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### HTTP response details
|
|
47
|
-
| Status code | Description | Response headers |
|
|
48
|
-
|-------------|-------------|------------------|
|
|
49
|
-
|**200** | Success response | - |
|
|
50
|
-
|**401** | Unauthenticated | - |
|
|
51
|
-
|**500** | Error response | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|
package/docs/BillingOrdersApi.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# BillingOrdersApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createNewServiceOrderV1**](#createnewserviceorderv1) | **POST** /api/billing/v1/orders | Create new service order|
|
|
8
|
-
|
|
9
|
-
# **createNewServiceOrderV1**
|
|
10
|
-
> BillingV1OrderOrderResource createNewServiceOrderV1(billingV1OrderStoreRequest)
|
|
11
|
-
|
|
12
|
-
This endpoint creates a new service order. To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity. Coupons also can be provided during order creation. Orders created using this endpoint will be set for automatic renewal. Some `credit_card` payments might need additional verification, rendering purchase unprocessed. We recommend use other payment methods than `credit_card` if you encounter this issue.
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
BillingOrdersApi,
|
|
19
|
-
Configuration,
|
|
20
|
-
BillingV1OrderStoreRequest
|
|
21
|
-
} from 'hostinger-api-sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new BillingOrdersApi(configuration);
|
|
25
|
-
|
|
26
|
-
let billingV1OrderStoreRequest: BillingV1OrderStoreRequest; //
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.createNewServiceOrderV1(
|
|
29
|
-
billingV1OrderStoreRequest
|
|
30
|
-
);
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Parameters
|
|
34
|
-
|
|
35
|
-
|Name | Type | Description | Notes|
|
|
36
|
-
|------------- | ------------- | ------------- | -------------|
|
|
37
|
-
| **billingV1OrderStoreRequest** | **BillingV1OrderStoreRequest**| | |
|
|
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 | - |
|
|
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
|
-
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
# BillingPaymentMethodsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**deletePaymentMethodV1**](#deletepaymentmethodv1) | **DELETE** /api/billing/v1/payment-methods/{paymentMethodId} | Delete payment method|
|
|
8
|
-
|[**getPaymentMethodListV1**](#getpaymentmethodlistv1) | **GET** /api/billing/v1/payment-methods | Get payment method list|
|
|
9
|
-
|[**setDefaultPaymentMethodV1**](#setdefaultpaymentmethodv1) | **POST** /api/billing/v1/payment-methods/{paymentMethodId} | Set default payment method|
|
|
10
|
-
|
|
11
|
-
# **deletePaymentMethodV1**
|
|
12
|
-
> CommonSuccessEmptyResource deletePaymentMethodV1()
|
|
13
|
-
|
|
14
|
-
This endpoint deletes a payment method from your account.
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
BillingPaymentMethodsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from 'hostinger-api-sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new BillingPaymentMethodsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let paymentMethodId: number; //Payment method ID (default to undefined)
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.deletePaymentMethodV1(
|
|
30
|
-
paymentMethodId
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **paymentMethodId** | [**number**] | Payment method ID | defaults to undefined|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**CommonSuccessEmptyResource**
|
|
44
|
-
|
|
45
|
-
### Authorization
|
|
46
|
-
|
|
47
|
-
[apiToken](../README.md#apiToken)
|
|
48
|
-
|
|
49
|
-
### HTTP request headers
|
|
50
|
-
|
|
51
|
-
- **Content-Type**: Not defined
|
|
52
|
-
- **Accept**: application/json
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### HTTP response details
|
|
56
|
-
| Status code | Description | Response headers |
|
|
57
|
-
|-------------|-------------|------------------|
|
|
58
|
-
|**200** | Success empty response | - |
|
|
59
|
-
|**401** | Unauthenticated | - |
|
|
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
|
-
|
|
64
|
-
# **getPaymentMethodListV1**
|
|
65
|
-
> Array<BillingV1PaymentMethodPaymentMethodResource> getPaymentMethodListV1()
|
|
66
|
-
|
|
67
|
-
This endpoint retrieves a list of available payment methods that can be used for placing new orders. If you want to add new payment method, please use [hPanel](https://hpanel.hostinger.com/billing/payment-methods).
|
|
68
|
-
|
|
69
|
-
### Example
|
|
70
|
-
|
|
71
|
-
```typescript
|
|
72
|
-
import {
|
|
73
|
-
BillingPaymentMethodsApi,
|
|
74
|
-
Configuration
|
|
75
|
-
} from 'hostinger-api-sdk';
|
|
76
|
-
|
|
77
|
-
const configuration = new Configuration();
|
|
78
|
-
const apiInstance = new BillingPaymentMethodsApi(configuration);
|
|
79
|
-
|
|
80
|
-
const { status, data } = await apiInstance.getPaymentMethodListV1();
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Parameters
|
|
84
|
-
This endpoint does not have any parameters.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Return type
|
|
88
|
-
|
|
89
|
-
**Array<BillingV1PaymentMethodPaymentMethodResource>**
|
|
90
|
-
|
|
91
|
-
### Authorization
|
|
92
|
-
|
|
93
|
-
[apiToken](../README.md#apiToken)
|
|
94
|
-
|
|
95
|
-
### HTTP request headers
|
|
96
|
-
|
|
97
|
-
- **Content-Type**: Not defined
|
|
98
|
-
- **Accept**: application/json
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### HTTP response details
|
|
102
|
-
| Status code | Description | Response headers |
|
|
103
|
-
|-------------|-------------|------------------|
|
|
104
|
-
|**200** | Success response | - |
|
|
105
|
-
|**401** | Unauthenticated | - |
|
|
106
|
-
|**500** | Error response | - |
|
|
107
|
-
|
|
108
|
-
[[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)
|
|
109
|
-
|
|
110
|
-
# **setDefaultPaymentMethodV1**
|
|
111
|
-
> CommonSuccessEmptyResource setDefaultPaymentMethodV1()
|
|
112
|
-
|
|
113
|
-
This endpoint sets default payment method for your account.
|
|
114
|
-
|
|
115
|
-
### Example
|
|
116
|
-
|
|
117
|
-
```typescript
|
|
118
|
-
import {
|
|
119
|
-
BillingPaymentMethodsApi,
|
|
120
|
-
Configuration
|
|
121
|
-
} from 'hostinger-api-sdk';
|
|
122
|
-
|
|
123
|
-
const configuration = new Configuration();
|
|
124
|
-
const apiInstance = new BillingPaymentMethodsApi(configuration);
|
|
125
|
-
|
|
126
|
-
let paymentMethodId: number; //Payment method ID (default to undefined)
|
|
127
|
-
|
|
128
|
-
const { status, data } = await apiInstance.setDefaultPaymentMethodV1(
|
|
129
|
-
paymentMethodId
|
|
130
|
-
);
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Parameters
|
|
134
|
-
|
|
135
|
-
|Name | Type | Description | Notes|
|
|
136
|
-
|------------- | ------------- | ------------- | -------------|
|
|
137
|
-
| **paymentMethodId** | [**number**] | Payment method ID | defaults to undefined|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
### Return type
|
|
141
|
-
|
|
142
|
-
**CommonSuccessEmptyResource**
|
|
143
|
-
|
|
144
|
-
### Authorization
|
|
145
|
-
|
|
146
|
-
[apiToken](../README.md#apiToken)
|
|
147
|
-
|
|
148
|
-
### HTTP request headers
|
|
149
|
-
|
|
150
|
-
- **Content-Type**: Not defined
|
|
151
|
-
- **Accept**: application/json
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
### HTTP response details
|
|
155
|
-
| Status code | Description | Response headers |
|
|
156
|
-
|-------------|-------------|------------------|
|
|
157
|
-
|**200** | Success empty response | - |
|
|
158
|
-
|**401** | Unauthenticated | - |
|
|
159
|
-
|**500** | Error response | - |
|
|
160
|
-
|
|
161
|
-
[[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
|
-
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# BillingSubscriptionsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelSubscriptionV1**](#cancelsubscriptionv1) | **DELETE** /api/billing/v1/subscriptions/{subscriptionId} | Cancel subscription|
|
|
8
|
-
|[**getSubscriptionListV1**](#getsubscriptionlistv1) | **GET** /api/billing/v1/subscriptions | Get subscription list|
|
|
9
|
-
|
|
10
|
-
# **cancelSubscriptionV1**
|
|
11
|
-
> CommonSuccessEmptyResource cancelSubscriptionV1(billingV1SubscriptionCancelRequest)
|
|
12
|
-
|
|
13
|
-
This endpoint cancels a subscription and stops any further billing.
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
BillingSubscriptionsApi,
|
|
20
|
-
Configuration,
|
|
21
|
-
BillingV1SubscriptionCancelRequest
|
|
22
|
-
} from 'hostinger-api-sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let subscriptionId: string; //Subscription ID (default to undefined)
|
|
28
|
-
let billingV1SubscriptionCancelRequest: BillingV1SubscriptionCancelRequest; //
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.cancelSubscriptionV1(
|
|
31
|
-
subscriptionId,
|
|
32
|
-
billingV1SubscriptionCancelRequest
|
|
33
|
-
);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
|Name | Type | Description | Notes|
|
|
39
|
-
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **billingV1SubscriptionCancelRequest** | **BillingV1SubscriptionCancelRequest**| | |
|
|
41
|
-
| **subscriptionId** | [**string**] | Subscription ID | defaults to undefined|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Return type
|
|
45
|
-
|
|
46
|
-
**CommonSuccessEmptyResource**
|
|
47
|
-
|
|
48
|
-
### Authorization
|
|
49
|
-
|
|
50
|
-
[apiToken](../README.md#apiToken)
|
|
51
|
-
|
|
52
|
-
### HTTP request headers
|
|
53
|
-
|
|
54
|
-
- **Content-Type**: application/json
|
|
55
|
-
- **Accept**: application/json
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### HTTP response details
|
|
59
|
-
| Status code | Description | Response headers |
|
|
60
|
-
|-------------|-------------|------------------|
|
|
61
|
-
|**200** | Success empty response | - |
|
|
62
|
-
|**422** | Validation error response | - |
|
|
63
|
-
|**401** | Unauthenticated | - |
|
|
64
|
-
|**500** | Error response | - |
|
|
65
|
-
|
|
66
|
-
[[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
|
-
|
|
68
|
-
# **getSubscriptionListV1**
|
|
69
|
-
> Array<BillingV1SubscriptionSubscriptionResource> getSubscriptionListV1()
|
|
70
|
-
|
|
71
|
-
This endpoint retrieves a list of all subscriptions associated with your account.
|
|
72
|
-
|
|
73
|
-
### Example
|
|
74
|
-
|
|
75
|
-
```typescript
|
|
76
|
-
import {
|
|
77
|
-
BillingSubscriptionsApi,
|
|
78
|
-
Configuration
|
|
79
|
-
} from 'hostinger-api-sdk';
|
|
80
|
-
|
|
81
|
-
const configuration = new Configuration();
|
|
82
|
-
const apiInstance = new BillingSubscriptionsApi(configuration);
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.getSubscriptionListV1();
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Parameters
|
|
88
|
-
This endpoint does not have any parameters.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### Return type
|
|
92
|
-
|
|
93
|
-
**Array<BillingV1SubscriptionSubscriptionResource>**
|
|
94
|
-
|
|
95
|
-
### Authorization
|
|
96
|
-
|
|
97
|
-
[apiToken](../README.md#apiToken)
|
|
98
|
-
|
|
99
|
-
### HTTP request headers
|
|
100
|
-
|
|
101
|
-
- **Content-Type**: Not defined
|
|
102
|
-
- **Accept**: application/json
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### HTTP response details
|
|
106
|
-
| Status code | Description | Response headers |
|
|
107
|
-
|-------------|-------------|------------------|
|
|
108
|
-
|**200** | Success response | - |
|
|
109
|
-
|**401** | Unauthenticated | - |
|
|
110
|
-
|**500** | Error response | - |
|
|
111
|
-
|
|
112
|
-
[[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)
|
|
113
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# BillingV1CatalogCatalogItemPriceResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | Price item ID | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | Price item name | [optional] [default to undefined]
|
|
10
|
-
**currency** | **string** | Currency code | [optional] [default to undefined]
|
|
11
|
-
**price** | **number** | Price in cents | [optional] [default to undefined]
|
|
12
|
-
**first_period_price** | **number** | First period price in cents | [optional] [default to undefined]
|
|
13
|
-
**period** | **number** | Period | [optional] [default to undefined]
|
|
14
|
-
**period_unit** | **string** | Period unit | [optional] [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { BillingV1CatalogCatalogItemPriceResource } from 'hostinger-api-sdk';
|
|
20
|
-
|
|
21
|
-
const instance: BillingV1CatalogCatalogItemPriceResource = {
|
|
22
|
-
id,
|
|
23
|
-
name,
|
|
24
|
-
currency,
|
|
25
|
-
price,
|
|
26
|
-
first_period_price,
|
|
27
|
-
period,
|
|
28
|
-
period_unit,
|
|
29
|
-
};
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# BillingV1CatalogCatalogItemResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | Catalog item ID | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**category** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**prices** | [**Array<BillingV1CatalogCatalogItemPriceResource>**](BillingV1CatalogCatalogItemPriceResource.md) | Array of [`Billing.V1.Catalog.CatalogItemPriceResource`](#model/billingv1catalogcatalogitempriceresource) | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { BillingV1CatalogCatalogItemResource } from 'hostinger-api-sdk';
|
|
17
|
-
|
|
18
|
-
const instance: BillingV1CatalogCatalogItemResource = {
|
|
19
|
-
id,
|
|
20
|
-
name,
|
|
21
|
-
category,
|
|
22
|
-
prices,
|
|
23
|
-
};
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# BillingV1OrderOrderBillingAddressResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**first_name** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**last_name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**company** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**address_1** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**address_2** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**city** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**state** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**zip** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**country** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**phone** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**email** | **string** | | [optional] [default to undefined]
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import { BillingV1OrderOrderBillingAddressResource } from 'hostinger-api-sdk';
|
|
24
|
-
|
|
25
|
-
const instance: BillingV1OrderOrderBillingAddressResource = {
|
|
26
|
-
first_name,
|
|
27
|
-
last_name,
|
|
28
|
-
company,
|
|
29
|
-
address_1,
|
|
30
|
-
address_2,
|
|
31
|
-
city,
|
|
32
|
-
state,
|
|
33
|
-
zip,
|
|
34
|
-
country,
|
|
35
|
-
phone,
|
|
36
|
-
email,
|
|
37
|
-
};
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# BillingV1OrderOrderResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **number** | Order ID | [optional] [default to undefined]
|
|
9
|
-
**subscription_id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
10
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**currency** | **string** | Currency code | [optional] [default to undefined]
|
|
12
|
-
**subtotal** | **number** | Subtotal price (exc. VAT) in cents | [optional] [default to undefined]
|
|
13
|
-
**total** | **number** | Total price (inc. VAT) in cents | [optional] [default to undefined]
|
|
14
|
-
**billing_address** | [**BillingV1OrderOrderBillingAddressResource**](BillingV1OrderOrderBillingAddressResource.md) | | [optional] [default to undefined]
|
|
15
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**updated_at** | **string** | | [optional] [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { BillingV1OrderOrderResource } from 'hostinger-api-sdk';
|
|
22
|
-
|
|
23
|
-
const instance: BillingV1OrderOrderResource = {
|
|
24
|
-
id,
|
|
25
|
-
subscription_id,
|
|
26
|
-
status,
|
|
27
|
-
currency,
|
|
28
|
-
subtotal,
|
|
29
|
-
total,
|
|
30
|
-
billing_address,
|
|
31
|
-
created_at,
|
|
32
|
-
updated_at,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# BillingV1OrderStoreRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**payment_method_id** | **number** | Payment method ID | [default to undefined]
|
|
9
|
-
**items** | [**Array<BillingV1OrderStoreRequestItemsInner>**](BillingV1OrderStoreRequestItemsInner.md) | | [default to undefined]
|
|
10
|
-
**coupons** | **Array<any>** | Discount coupon codes | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { BillingV1OrderStoreRequest } from 'hostinger-api-sdk';
|
|
16
|
-
|
|
17
|
-
const instance: BillingV1OrderStoreRequest = {
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# BillingV1OrderStoreRequestItemsInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**item_id** | **string** | Price Item ID | [default to undefined]
|
|
9
|
-
**quantity** | **number** | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { BillingV1OrderStoreRequestItemsInner } from 'hostinger-api-sdk';
|
|
15
|
-
|
|
16
|
-
const instance: BillingV1OrderStoreRequestItemsInner = {
|
|
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)
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# BillingV1PaymentMethodPaymentMethodResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **number** | Payment method ID | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**identifier** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**payment_method** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**is_default** | **boolean** | | [optional] [default to undefined]
|
|
13
|
-
**is_expired** | **boolean** | | [optional] [default to undefined]
|
|
14
|
-
**is_suspended** | **boolean** | | [optional] [default to undefined]
|
|
15
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**expires_at** | **string** | | [optional] [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { BillingV1PaymentMethodPaymentMethodResource } from 'hostinger-api-sdk';
|
|
22
|
-
|
|
23
|
-
const instance: BillingV1PaymentMethodPaymentMethodResource = {
|
|
24
|
-
id,
|
|
25
|
-
name,
|
|
26
|
-
identifier,
|
|
27
|
-
payment_method,
|
|
28
|
-
is_default,
|
|
29
|
-
is_expired,
|
|
30
|
-
is_suspended,
|
|
31
|
-
created_at,
|
|
32
|
-
expires_at,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# BillingV1SubscriptionCancelRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**reason_code** | **string** | Cancellation reason code | [optional] [default to undefined]
|
|
9
|
-
**cancel_option** | **string** | Cancellation option | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { BillingV1SubscriptionCancelRequest } from 'hostinger-api-sdk';
|
|
15
|
-
|
|
16
|
-
const instance: BillingV1SubscriptionCancelRequest = {
|
|
17
|
-
reason_code,
|
|
18
|
-
cancel_option,
|
|
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)
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# BillingV1SubscriptionSubscriptionResource
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**billing_period** | **number** | | [optional] [default to undefined]
|
|
12
|
-
**billing_period_unit** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**currency_code** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**total_price** | **number** | Total price in cents | [optional] [default to undefined]
|
|
15
|
-
**renewal_price** | **number** | Renewal price in cents | [optional] [default to undefined]
|
|
16
|
-
**is_auto_renewed** | **boolean** | | [optional] [default to undefined]
|
|
17
|
-
**created_at** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**expires_at** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**next_billing_at** | **string** | | [optional] [default to undefined]
|
|
20
|
-
|
|
21
|
-
## Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { BillingV1SubscriptionSubscriptionResource } from 'hostinger-api-sdk';
|
|
25
|
-
|
|
26
|
-
const instance: BillingV1SubscriptionSubscriptionResource = {
|
|
27
|
-
id,
|
|
28
|
-
name,
|
|
29
|
-
status,
|
|
30
|
-
billing_period,
|
|
31
|
-
billing_period_unit,
|
|
32
|
-
currency_code,
|
|
33
|
-
total_price,
|
|
34
|
-
renewal_price,
|
|
35
|
-
is_auto_renewed,
|
|
36
|
-
created_at,
|
|
37
|
-
expires_at,
|
|
38
|
-
next_billing_at,
|
|
39
|
-
};
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|