@hostafrica/ha-sdk-typescript 1.1.3 → 1.1.5

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.
Files changed (194) hide show
  1. package/dist/apis/BillingApi.d.ts +45 -0
  2. package/dist/apis/BillingApi.js +122 -0
  3. package/dist/apis/DNSApi.d.ts +8 -8
  4. package/dist/apis/DNSApi.js +8 -8
  5. package/dist/apis/VPSManagementApi.d.ts +18 -3
  6. package/dist/apis/VPSManagementApi.js +49 -2
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/BillingApi.d.ts +45 -0
  10. package/dist/esm/apis/BillingApi.js +118 -0
  11. package/dist/esm/apis/DNSApi.d.ts +8 -8
  12. package/dist/esm/apis/DNSApi.js +8 -8
  13. package/dist/esm/apis/VPSManagementApi.d.ts +18 -3
  14. package/dist/esm/apis/VPSManagementApi.js +50 -3
  15. package/dist/esm/apis/index.d.ts +1 -0
  16. package/dist/esm/apis/index.js +1 -0
  17. package/dist/esm/models/AddDnsRecordRequestContent.d.ts +22 -3
  18. package/dist/esm/models/AddDnsRecordRequestContent.js +8 -3
  19. package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  20. package/dist/esm/models/DeleteDnsRecordRequestContent.js +8 -3
  21. package/dist/esm/models/DnsBackend.d.ts +28 -0
  22. package/dist/esm/models/DnsBackend.js +46 -0
  23. package/dist/esm/models/DnsRecordMutationRecord.d.ts +3 -2
  24. package/dist/esm/models/DnsZoneInfo.d.ts +7 -0
  25. package/dist/esm/models/DnsZoneInfo.js +3 -0
  26. package/dist/esm/models/EditDnsRecordRequestContent.d.ts +22 -3
  27. package/dist/esm/models/EditDnsRecordRequestContent.js +8 -3
  28. package/dist/esm/models/EncryptedPasswordResponseData.d.ts +45 -0
  29. package/dist/esm/models/EncryptedPasswordResponseData.js +52 -0
  30. package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  31. package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +3 -0
  32. package/dist/esm/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  33. package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
  34. package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  35. package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
  36. package/dist/esm/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  37. package/dist/esm/models/GetInvoiceDetailsRequestContent.js +43 -0
  38. package/dist/esm/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  39. package/dist/esm/models/GetInvoiceDetailsResponseContent.js +49 -0
  40. package/dist/esm/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  41. package/dist/esm/models/GetInvoiceDetailsResponseData.js +47 -0
  42. package/dist/esm/models/InvoiceDetails.d.ts +143 -0
  43. package/dist/esm/models/InvoiceDetails.js +112 -0
  44. package/dist/esm/models/InvoiceIssuedTo.d.ts +69 -0
  45. package/dist/esm/models/InvoiceIssuedTo.js +66 -0
  46. package/dist/esm/models/InvoiceIssuedToTax.d.ts +44 -0
  47. package/dist/esm/models/InvoiceIssuedToTax.js +51 -0
  48. package/dist/esm/models/InvoiceItem.d.ts +56 -0
  49. package/dist/esm/models/InvoiceItem.js +59 -0
  50. package/dist/esm/models/InvoiceSummary.d.ts +98 -0
  51. package/dist/esm/models/InvoiceSummary.js +83 -0
  52. package/dist/esm/models/InvoiceTransaction.d.ts +74 -0
  53. package/dist/esm/models/InvoiceTransaction.js +57 -0
  54. package/dist/esm/models/ListInvoicesResponseContent.d.ts +40 -0
  55. package/dist/esm/models/ListInvoicesResponseContent.js +49 -0
  56. package/dist/esm/models/ListInvoicesResponseData.d.ts +39 -0
  57. package/dist/esm/models/ListInvoicesResponseData.js +48 -0
  58. package/dist/esm/models/NoVncConsoleDetails.d.ts +19 -1
  59. package/dist/esm/models/NoVncConsoleDetails.js +7 -3
  60. package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
  61. package/dist/esm/models/PasswordEncryptionInfo.js +55 -0
  62. package/dist/esm/models/SelcomMetadata.d.ts +56 -0
  63. package/dist/esm/models/SelcomMetadata.js +59 -0
  64. package/dist/esm/models/VpsCredentials.d.ts +1 -1
  65. package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
  66. package/dist/esm/models/VpsDetailsResponse.js +3 -2
  67. package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
  68. package/dist/esm/models/VpsIpAddressDetail.js +51 -0
  69. package/dist/esm/models/VpsVmInfo.d.ts +3 -3
  70. package/dist/esm/models/index.d.ts +18 -0
  71. package/dist/esm/models/index.js +18 -0
  72. package/dist/esm/retryablePaths.js +3 -0
  73. package/dist/models/AddDnsRecordRequestContent.d.ts +22 -3
  74. package/dist/models/AddDnsRecordRequestContent.js +8 -3
  75. package/dist/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  76. package/dist/models/DeleteDnsRecordRequestContent.js +8 -3
  77. package/dist/models/DnsBackend.d.ts +28 -0
  78. package/dist/models/DnsBackend.js +54 -0
  79. package/dist/models/DnsRecordMutationRecord.d.ts +3 -2
  80. package/dist/models/DnsZoneInfo.d.ts +7 -0
  81. package/dist/models/DnsZoneInfo.js +3 -0
  82. package/dist/models/EditDnsRecordRequestContent.d.ts +22 -3
  83. package/dist/models/EditDnsRecordRequestContent.js +8 -3
  84. package/dist/models/EncryptedPasswordResponseData.d.ts +45 -0
  85. package/dist/models/EncryptedPasswordResponseData.js +59 -0
  86. package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  87. package/dist/models/GetDnsZoneDetailsRequestContent.js +3 -0
  88. package/dist/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  89. package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
  90. package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  91. package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
  92. package/dist/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  93. package/dist/models/GetInvoiceDetailsRequestContent.js +50 -0
  94. package/dist/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  95. package/dist/models/GetInvoiceDetailsResponseContent.js +56 -0
  96. package/dist/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  97. package/dist/models/GetInvoiceDetailsResponseData.js +54 -0
  98. package/dist/models/InvoiceDetails.d.ts +143 -0
  99. package/dist/models/InvoiceDetails.js +119 -0
  100. package/dist/models/InvoiceIssuedTo.d.ts +69 -0
  101. package/dist/models/InvoiceIssuedTo.js +73 -0
  102. package/dist/models/InvoiceIssuedToTax.d.ts +44 -0
  103. package/dist/models/InvoiceIssuedToTax.js +58 -0
  104. package/dist/models/InvoiceItem.d.ts +56 -0
  105. package/dist/models/InvoiceItem.js +66 -0
  106. package/dist/models/InvoiceSummary.d.ts +98 -0
  107. package/dist/models/InvoiceSummary.js +90 -0
  108. package/dist/models/InvoiceTransaction.d.ts +74 -0
  109. package/dist/models/InvoiceTransaction.js +64 -0
  110. package/dist/models/ListInvoicesResponseContent.d.ts +40 -0
  111. package/dist/models/ListInvoicesResponseContent.js +56 -0
  112. package/dist/models/ListInvoicesResponseData.d.ts +39 -0
  113. package/dist/models/ListInvoicesResponseData.js +55 -0
  114. package/dist/models/NoVncConsoleDetails.d.ts +19 -1
  115. package/dist/models/NoVncConsoleDetails.js +7 -3
  116. package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
  117. package/dist/models/PasswordEncryptionInfo.js +62 -0
  118. package/dist/models/SelcomMetadata.d.ts +56 -0
  119. package/dist/models/SelcomMetadata.js +66 -0
  120. package/dist/models/VpsCredentials.d.ts +1 -1
  121. package/dist/models/VpsDetailsResponse.d.ts +4 -3
  122. package/dist/models/VpsDetailsResponse.js +3 -2
  123. package/dist/models/VpsIpAddressDetail.d.ts +56 -0
  124. package/dist/models/VpsIpAddressDetail.js +58 -0
  125. package/dist/models/VpsVmInfo.d.ts +3 -3
  126. package/dist/models/index.d.ts +18 -0
  127. package/dist/models/index.js +18 -0
  128. package/dist/retryablePaths.js +3 -0
  129. package/dist.zip +0 -0
  130. package/docs/AddDnsRecordRequestContent.md +6 -0
  131. package/docs/BillingApi.md +159 -0
  132. package/docs/DNSApi.md +4 -4
  133. package/docs/DeleteDnsRecordRequestContent.md +6 -0
  134. package/docs/DnsBackend.md +33 -0
  135. package/docs/DnsRecordMutationRecord.md +1 -1
  136. package/docs/DnsZoneInfo.md +2 -0
  137. package/docs/EditDnsRecordRequestContent.md +6 -0
  138. package/docs/EncryptedPasswordResponseData.md +39 -0
  139. package/docs/GetDnsZoneDetailsRequestContent.md +2 -0
  140. package/docs/GetEncryptedPasswordRequestContent.md +36 -0
  141. package/docs/GetEncryptedPasswordResponseContent.md +36 -0
  142. package/docs/GetInvoiceDetailsRequestContent.md +34 -0
  143. package/docs/GetInvoiceDetailsResponseContent.md +36 -0
  144. package/docs/GetInvoiceDetailsResponseData.md +37 -0
  145. package/docs/InvoiceDetails.md +71 -0
  146. package/docs/InvoiceIssuedTo.md +47 -0
  147. package/docs/InvoiceIssuedToTax.md +39 -0
  148. package/docs/InvoiceItem.md +43 -0
  149. package/docs/InvoiceSummary.md +57 -0
  150. package/docs/InvoiceTransaction.md +49 -0
  151. package/docs/ListInvoicesResponseContent.md +36 -0
  152. package/docs/ListInvoicesResponseData.md +37 -0
  153. package/docs/NoVncConsoleDetails.md +6 -0
  154. package/docs/PasswordEncryptionInfo.md +41 -0
  155. package/docs/SelcomMetadata.md +43 -0
  156. package/docs/VPSManagementApi.md +81 -1
  157. package/docs/VpsDetailsResponse.md +1 -1
  158. package/docs/VpsIpAddressDetail.md +43 -0
  159. package/docs/VpsVmInfo.md +1 -1
  160. package/package.json +1 -1
  161. package/src/apis/BillingApi.ts +164 -0
  162. package/src/apis/DNSApi.ts +8 -8
  163. package/src/apis/VPSManagementApi.ts +67 -2
  164. package/src/apis/index.ts +1 -0
  165. package/src/models/AddDnsRecordRequestContent.ts +37 -5
  166. package/src/models/DeleteDnsRecordRequestContent.ts +37 -5
  167. package/src/models/DnsBackend.ts +56 -0
  168. package/src/models/DnsRecordMutationRecord.ts +3 -2
  169. package/src/models/DnsZoneInfo.ts +17 -0
  170. package/src/models/EditDnsRecordRequestContent.ts +37 -5
  171. package/src/models/EncryptedPasswordResponseData.ts +92 -0
  172. package/src/models/GetDnsZoneDetailsRequestContent.ts +18 -0
  173. package/src/models/GetEncryptedPasswordRequestContent.ts +75 -0
  174. package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
  175. package/src/models/GetInvoiceDetailsRequestContent.ts +66 -0
  176. package/src/models/GetInvoiceDetailsResponseContent.ts +92 -0
  177. package/src/models/GetInvoiceDetailsResponseData.ts +89 -0
  178. package/src/models/InvoiceDetails.ts +247 -0
  179. package/src/models/InvoiceIssuedTo.ts +127 -0
  180. package/src/models/InvoiceIssuedToTax.ts +84 -0
  181. package/src/models/InvoiceItem.ts +102 -0
  182. package/src/models/InvoiceSummary.ts +163 -0
  183. package/src/models/InvoiceTransaction.ts +122 -0
  184. package/src/models/ListInvoicesResponseContent.ts +92 -0
  185. package/src/models/ListInvoicesResponseData.ts +83 -0
  186. package/src/models/NoVncConsoleDetails.ts +26 -3
  187. package/src/models/PasswordEncryptionInfo.ts +93 -0
  188. package/src/models/SelcomMetadata.ts +102 -0
  189. package/src/models/VpsCredentials.ts +1 -1
  190. package/src/models/VpsDetailsResponse.ts +12 -5
  191. package/src/models/VpsIpAddressDetail.ts +98 -0
  192. package/src/models/VpsVmInfo.ts +3 -3
  193. package/src/models/index.ts +18 -0
  194. package/src/retryablePaths.ts +3 -0
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PasswordEncryptionInfoFromJSON, PasswordEncryptionInfoToJSON, } from './PasswordEncryptionInfo.js';
15
+ /**
16
+ * Check if a given object implements the EncryptedPasswordResponseData interface.
17
+ */
18
+ export function instanceOfEncryptedPasswordResponseData(value) {
19
+ if (!('username' in value) || value['username'] === undefined)
20
+ return false;
21
+ if (!('password' in value) || value['password'] === undefined)
22
+ return false;
23
+ if (!('encryption' in value) || value['encryption'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function EncryptedPasswordResponseDataFromJSON(json) {
28
+ return EncryptedPasswordResponseDataFromJSONTyped(json, false);
29
+ }
30
+ export function EncryptedPasswordResponseDataFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'username': json['username'],
36
+ 'password': json['password'],
37
+ 'encryption': PasswordEncryptionInfoFromJSON(json['encryption']),
38
+ };
39
+ }
40
+ export function EncryptedPasswordResponseDataToJSON(json) {
41
+ return EncryptedPasswordResponseDataToJSONTyped(json, false);
42
+ }
43
+ export function EncryptedPasswordResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'username': value['username'],
49
+ 'password': value['password'],
50
+ 'encryption': PasswordEncryptionInfoToJSON(value['encryption']),
51
+ };
52
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DnsBackend } from './DnsBackend.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -21,6 +22,12 @@ export interface GetDnsZoneDetailsRequestContent {
21
22
  * @memberof GetDnsZoneDetailsRequestContent
22
23
  */
23
24
  domainId: string;
25
+ /**
26
+ *
27
+ * @type {DnsBackend}
28
+ * @memberof GetDnsZoneDetailsRequestContent
29
+ */
30
+ backend?: DnsBackend;
24
31
  }
25
32
  /**
26
33
  * Check if a given object implements the GetDnsZoneDetailsRequestContent interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { DnsBackendFromJSON, DnsBackendToJSON, } from './DnsBackend.js';
14
15
  /**
15
16
  * Check if a given object implements the GetDnsZoneDetailsRequestContent interface.
16
17
  */
@@ -28,6 +29,7 @@ export function GetDnsZoneDetailsRequestContentFromJSONTyped(json, ignoreDiscrim
28
29
  }
29
30
  return {
30
31
  'domainId': json['domain_id'],
32
+ 'backend': json['backend'] == null ? undefined : DnsBackendFromJSON(json['backend']),
31
33
  };
32
34
  }
33
35
  export function GetDnsZoneDetailsRequestContentToJSON(json) {
@@ -39,5 +41,6 @@ export function GetDnsZoneDetailsRequestContentToJSONTyped(value, ignoreDiscrimi
39
41
  }
40
42
  return {
41
43
  'domain_id': value['domainId'],
44
+ 'backend': DnsBackendToJSON(value['backend']),
42
45
  };
43
46
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetEncryptedPasswordRequestContent
16
+ */
17
+ export interface GetEncryptedPasswordRequestContent {
18
+ /**
19
+ * Service ID - must be sent as a string
20
+ * @type {string}
21
+ * @memberof GetEncryptedPasswordRequestContent
22
+ */
23
+ serviceId: string;
24
+ /**
25
+ * PEM-encoded RSA public key only (never the private key). Accepts SPKI (`-----BEGIN PUBLIC KEY-----`) or PKCS#1 (`-----BEGIN RSA PUBLIC KEY-----`). Must be exactly 4096-bit. Used with RSA-OAEP and SHA-256 to encrypt the password.
26
+ * @type {string}
27
+ * @memberof GetEncryptedPasswordRequestContent
28
+ */
29
+ publicKey: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetEncryptedPasswordRequestContent interface.
33
+ */
34
+ export declare function instanceOfGetEncryptedPasswordRequestContent(value: object): value is GetEncryptedPasswordRequestContent;
35
+ export declare function GetEncryptedPasswordRequestContentFromJSON(json: any): GetEncryptedPasswordRequestContent;
36
+ export declare function GetEncryptedPasswordRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordRequestContent;
37
+ export declare function GetEncryptedPasswordRequestContentToJSON(json: any): GetEncryptedPasswordRequestContent;
38
+ export declare function GetEncryptedPasswordRequestContentToJSONTyped(value?: GetEncryptedPasswordRequestContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GetEncryptedPasswordRequestContent interface.
16
+ */
17
+ export function instanceOfGetEncryptedPasswordRequestContent(value) {
18
+ if (!('serviceId' in value) || value['serviceId'] === undefined)
19
+ return false;
20
+ if (!('publicKey' in value) || value['publicKey'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetEncryptedPasswordRequestContentFromJSON(json) {
25
+ return GetEncryptedPasswordRequestContentFromJSONTyped(json, false);
26
+ }
27
+ export function GetEncryptedPasswordRequestContentFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'serviceId': json['service_id'],
33
+ 'publicKey': json['public_key'],
34
+ };
35
+ }
36
+ export function GetEncryptedPasswordRequestContentToJSON(json) {
37
+ return GetEncryptedPasswordRequestContentToJSONTyped(json, false);
38
+ }
39
+ export function GetEncryptedPasswordRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'service_id': value['serviceId'],
45
+ 'public_key': value['publicKey'],
46
+ };
47
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OperationStatus } from './OperationStatus.js';
13
+ import type { EncryptedPasswordResponseData } from './EncryptedPasswordResponseData.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetEncryptedPasswordResponseContent
18
+ */
19
+ export interface GetEncryptedPasswordResponseContent {
20
+ /**
21
+ *
22
+ * @type {OperationStatus}
23
+ * @memberof GetEncryptedPasswordResponseContent
24
+ */
25
+ status: OperationStatus;
26
+ /**
27
+ *
28
+ * @type {EncryptedPasswordResponseData}
29
+ * @memberof GetEncryptedPasswordResponseContent
30
+ */
31
+ data: EncryptedPasswordResponseData;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetEncryptedPasswordResponseContent interface.
35
+ */
36
+ export declare function instanceOfGetEncryptedPasswordResponseContent(value: object): value is GetEncryptedPasswordResponseContent;
37
+ export declare function GetEncryptedPasswordResponseContentFromJSON(json: any): GetEncryptedPasswordResponseContent;
38
+ export declare function GetEncryptedPasswordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordResponseContent;
39
+ export declare function GetEncryptedPasswordResponseContentToJSON(json: any): GetEncryptedPasswordResponseContent;
40
+ export declare function GetEncryptedPasswordResponseContentToJSONTyped(value?: GetEncryptedPasswordResponseContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
15
+ import { EncryptedPasswordResponseDataFromJSON, EncryptedPasswordResponseDataToJSON, } from './EncryptedPasswordResponseData.js';
16
+ /**
17
+ * Check if a given object implements the GetEncryptedPasswordResponseContent interface.
18
+ */
19
+ export function instanceOfGetEncryptedPasswordResponseContent(value) {
20
+ if (!('status' in value) || value['status'] === undefined)
21
+ return false;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function GetEncryptedPasswordResponseContentFromJSON(json) {
27
+ return GetEncryptedPasswordResponseContentFromJSONTyped(json, false);
28
+ }
29
+ export function GetEncryptedPasswordResponseContentFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'status': OperationStatusFromJSON(json['status']),
35
+ 'data': EncryptedPasswordResponseDataFromJSON(json['data']),
36
+ };
37
+ }
38
+ export function GetEncryptedPasswordResponseContentToJSON(json) {
39
+ return GetEncryptedPasswordResponseContentToJSONTyped(json, false);
40
+ }
41
+ export function GetEncryptedPasswordResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'status': OperationStatusToJSON(value['status']),
47
+ 'data': EncryptedPasswordResponseDataToJSON(value['data']),
48
+ };
49
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetInvoiceDetailsRequestContent
16
+ */
17
+ export interface GetInvoiceDetailsRequestContent {
18
+ /**
19
+ * Invoice ID - must be sent as a string
20
+ * @type {string}
21
+ * @memberof GetInvoiceDetailsRequestContent
22
+ */
23
+ invoiceId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetInvoiceDetailsRequestContent interface.
27
+ */
28
+ export declare function instanceOfGetInvoiceDetailsRequestContent(value: object): value is GetInvoiceDetailsRequestContent;
29
+ export declare function GetInvoiceDetailsRequestContentFromJSON(json: any): GetInvoiceDetailsRequestContent;
30
+ export declare function GetInvoiceDetailsRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsRequestContent;
31
+ export declare function GetInvoiceDetailsRequestContentToJSON(json: any): GetInvoiceDetailsRequestContent;
32
+ export declare function GetInvoiceDetailsRequestContentToJSONTyped(value?: GetInvoiceDetailsRequestContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the GetInvoiceDetailsRequestContent interface.
16
+ */
17
+ export function instanceOfGetInvoiceDetailsRequestContent(value) {
18
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function GetInvoiceDetailsRequestContentFromJSON(json) {
23
+ return GetInvoiceDetailsRequestContentFromJSONTyped(json, false);
24
+ }
25
+ export function GetInvoiceDetailsRequestContentFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'invoiceId': json['invoice_id'],
31
+ };
32
+ }
33
+ export function GetInvoiceDetailsRequestContentToJSON(json) {
34
+ return GetInvoiceDetailsRequestContentToJSONTyped(json, false);
35
+ }
36
+ export function GetInvoiceDetailsRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'invoice_id': value['invoiceId'],
42
+ };
43
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OperationStatus } from './OperationStatus.js';
13
+ import type { GetInvoiceDetailsResponseData } from './GetInvoiceDetailsResponseData.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetInvoiceDetailsResponseContent
18
+ */
19
+ export interface GetInvoiceDetailsResponseContent {
20
+ /**
21
+ *
22
+ * @type {OperationStatus}
23
+ * @memberof GetInvoiceDetailsResponseContent
24
+ */
25
+ status: OperationStatus;
26
+ /**
27
+ *
28
+ * @type {GetInvoiceDetailsResponseData}
29
+ * @memberof GetInvoiceDetailsResponseContent
30
+ */
31
+ data: GetInvoiceDetailsResponseData;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetInvoiceDetailsResponseContent interface.
35
+ */
36
+ export declare function instanceOfGetInvoiceDetailsResponseContent(value: object): value is GetInvoiceDetailsResponseContent;
37
+ export declare function GetInvoiceDetailsResponseContentFromJSON(json: any): GetInvoiceDetailsResponseContent;
38
+ export declare function GetInvoiceDetailsResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsResponseContent;
39
+ export declare function GetInvoiceDetailsResponseContentToJSON(json: any): GetInvoiceDetailsResponseContent;
40
+ export declare function GetInvoiceDetailsResponseContentToJSONTyped(value?: GetInvoiceDetailsResponseContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
15
+ import { GetInvoiceDetailsResponseDataFromJSON, GetInvoiceDetailsResponseDataToJSON, } from './GetInvoiceDetailsResponseData.js';
16
+ /**
17
+ * Check if a given object implements the GetInvoiceDetailsResponseContent interface.
18
+ */
19
+ export function instanceOfGetInvoiceDetailsResponseContent(value) {
20
+ if (!('status' in value) || value['status'] === undefined)
21
+ return false;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function GetInvoiceDetailsResponseContentFromJSON(json) {
27
+ return GetInvoiceDetailsResponseContentFromJSONTyped(json, false);
28
+ }
29
+ export function GetInvoiceDetailsResponseContentFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'status': OperationStatusFromJSON(json['status']),
35
+ 'data': GetInvoiceDetailsResponseDataFromJSON(json['data']),
36
+ };
37
+ }
38
+ export function GetInvoiceDetailsResponseContentToJSON(json) {
39
+ return GetInvoiceDetailsResponseContentToJSONTyped(json, false);
40
+ }
41
+ export function GetInvoiceDetailsResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'status': OperationStatusToJSON(value['status']),
47
+ 'data': GetInvoiceDetailsResponseDataToJSON(value['data']),
48
+ };
49
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { InvoiceDetails } from './InvoiceDetails.js';
13
+ import type { SelcomMetadata } from './SelcomMetadata.js';
14
+ /**
15
+ * Top-level data payload for the GetInvoiceDetails response
16
+ * @export
17
+ * @interface GetInvoiceDetailsResponseData
18
+ */
19
+ export interface GetInvoiceDetailsResponseData {
20
+ /**
21
+ *
22
+ * @type {InvoiceDetails}
23
+ * @memberof GetInvoiceDetailsResponseData
24
+ */
25
+ invoice: InvoiceDetails;
26
+ /**
27
+ *
28
+ * @type {SelcomMetadata}
29
+ * @memberof GetInvoiceDetailsResponseData
30
+ */
31
+ selcomMetadata?: SelcomMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetInvoiceDetailsResponseData interface.
35
+ */
36
+ export declare function instanceOfGetInvoiceDetailsResponseData(value: object): value is GetInvoiceDetailsResponseData;
37
+ export declare function GetInvoiceDetailsResponseDataFromJSON(json: any): GetInvoiceDetailsResponseData;
38
+ export declare function GetInvoiceDetailsResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoiceDetailsResponseData;
39
+ export declare function GetInvoiceDetailsResponseDataToJSON(json: any): GetInvoiceDetailsResponseData;
40
+ export declare function GetInvoiceDetailsResponseDataToJSONTyped(value?: GetInvoiceDetailsResponseData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { InvoiceDetailsFromJSON, InvoiceDetailsToJSON, } from './InvoiceDetails.js';
15
+ import { SelcomMetadataFromJSON, SelcomMetadataToJSON, } from './SelcomMetadata.js';
16
+ /**
17
+ * Check if a given object implements the GetInvoiceDetailsResponseData interface.
18
+ */
19
+ export function instanceOfGetInvoiceDetailsResponseData(value) {
20
+ if (!('invoice' in value) || value['invoice'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function GetInvoiceDetailsResponseDataFromJSON(json) {
25
+ return GetInvoiceDetailsResponseDataFromJSONTyped(json, false);
26
+ }
27
+ export function GetInvoiceDetailsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'invoice': InvoiceDetailsFromJSON(json['invoice']),
33
+ 'selcomMetadata': json['selcom_metadata'] == null ? undefined : SelcomMetadataFromJSON(json['selcom_metadata']),
34
+ };
35
+ }
36
+ export function GetInvoiceDetailsResponseDataToJSON(json) {
37
+ return GetInvoiceDetailsResponseDataToJSONTyped(json, false);
38
+ }
39
+ export function GetInvoiceDetailsResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'invoice': InvoiceDetailsToJSON(value['invoice']),
45
+ 'selcom_metadata': SelcomMetadataToJSON(value['selcomMetadata']),
46
+ };
47
+ }
@@ -0,0 +1,143 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { InvoiceItem } from './InvoiceItem.js';
13
+ import type { InvoiceTransaction } from './InvoiceTransaction.js';
14
+ import type { InvoiceIssuedTo } from './InvoiceIssuedTo.js';
15
+ /**
16
+ * Full invoice details
17
+ * @export
18
+ * @interface InvoiceDetails
19
+ */
20
+ export interface InvoiceDetails {
21
+ /**
22
+ * Unique invoice identifier - must be sent as a string
23
+ * @type {string}
24
+ * @memberof InvoiceDetails
25
+ */
26
+ invoiceId: string;
27
+ /**
28
+ * Human-readable invoice number when assigned
29
+ * @type {string}
30
+ * @memberof InvoiceDetails
31
+ */
32
+ invoiceNumber: string;
33
+ /**
34
+ *
35
+ * @type {InvoiceIssuedTo}
36
+ * @memberof InvoiceDetails
37
+ */
38
+ issuedTo: InvoiceIssuedTo;
39
+ /**
40
+ * Invoice issue date (ISO 8601)
41
+ * @type {string}
42
+ * @memberof InvoiceDetails
43
+ */
44
+ date: string;
45
+ /**
46
+ * Invoice due date (ISO 8601)
47
+ * @type {string}
48
+ * @memberof InvoiceDetails
49
+ */
50
+ dueDate: string;
51
+ /**
52
+ * Date the invoice was paid (ISO 8601), if paid
53
+ * @type {string}
54
+ * @memberof InvoiceDetails
55
+ */
56
+ datePaid?: string;
57
+ /**
58
+ * Invoice subtotal excluding tax as a decimal string
59
+ * @type {string}
60
+ * @memberof InvoiceDetails
61
+ */
62
+ subtotal: string;
63
+ /**
64
+ * Credit applied as a decimal string
65
+ * @type {string}
66
+ * @memberof InvoiceDetails
67
+ */
68
+ credit: string;
69
+ /**
70
+ * Primary tax amount as a decimal string
71
+ * @type {string}
72
+ * @memberof InvoiceDetails
73
+ */
74
+ tax: string;
75
+ /**
76
+ * Secondary tax amount as a decimal string. Omitted when a second tax is not configured.
77
+ * @type {string}
78
+ * @memberof InvoiceDetails
79
+ */
80
+ tax2?: string;
81
+ /**
82
+ * Invoice total including tax as a decimal string
83
+ * @type {string}
84
+ * @memberof InvoiceDetails
85
+ */
86
+ total: string;
87
+ /**
88
+ * Primary tax rate as a decimal string
89
+ * @type {string}
90
+ * @memberof InvoiceDetails
91
+ */
92
+ taxRate: string;
93
+ /**
94
+ * Secondary tax rate as a decimal string. Omitted when a second tax is not configured.
95
+ * @type {string}
96
+ * @memberof InvoiceDetails
97
+ */
98
+ taxRate2?: string;
99
+ /**
100
+ * Invoice status (e.g. Paid, Unpaid, Cancelled, Refunded)
101
+ * @type {string}
102
+ * @memberof InvoiceDetails
103
+ */
104
+ status: string;
105
+ /**
106
+ * Payment method identifier
107
+ * @type {string}
108
+ * @memberof InvoiceDetails
109
+ */
110
+ paymentMethod: string;
111
+ /**
112
+ * Amount still due as a decimal string
113
+ * @type {string}
114
+ * @memberof InvoiceDetails
115
+ */
116
+ totalDue: string;
117
+ /**
118
+ * Invoice notes
119
+ * @type {string}
120
+ * @memberof InvoiceDetails
121
+ */
122
+ notes: string;
123
+ /**
124
+ * Invoice line items
125
+ * @type {Array<InvoiceItem>}
126
+ * @memberof InvoiceDetails
127
+ */
128
+ items: Array<InvoiceItem>;
129
+ /**
130
+ * Payment and refund transactions on the invoice
131
+ * @type {Array<InvoiceTransaction>}
132
+ * @memberof InvoiceDetails
133
+ */
134
+ transactions: Array<InvoiceTransaction>;
135
+ }
136
+ /**
137
+ * Check if a given object implements the InvoiceDetails interface.
138
+ */
139
+ export declare function instanceOfInvoiceDetails(value: object): value is InvoiceDetails;
140
+ export declare function InvoiceDetailsFromJSON(json: any): InvoiceDetails;
141
+ export declare function InvoiceDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceDetails;
142
+ export declare function InvoiceDetailsToJSON(json: any): InvoiceDetails;
143
+ export declare function InvoiceDetailsToJSONTyped(value?: InvoiceDetails | null, ignoreDiscriminator?: boolean): any;