@hostafrica/ha-sdk-typescript 1.1.4 → 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.
- package/dist/apis/BillingApi.d.ts +45 -0
- package/dist/apis/BillingApi.js +122 -0
- package/dist/apis/DNSApi.d.ts +8 -8
- package/dist/apis/DNSApi.js +8 -8
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/BillingApi.d.ts +45 -0
- package/dist/esm/apis/BillingApi.js +118 -0
- package/dist/esm/apis/DNSApi.d.ts +8 -8
- package/dist/esm/apis/DNSApi.js +8 -8
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AddDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/AddDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/DeleteDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/DnsBackend.d.ts +28 -0
- package/dist/esm/models/DnsBackend.js +46 -0
- package/dist/esm/models/DnsRecordMutationRecord.d.ts +3 -2
- package/dist/esm/models/DnsZoneInfo.d.ts +7 -0
- package/dist/esm/models/DnsZoneInfo.js +3 -0
- package/dist/esm/models/EditDnsRecordRequestContent.d.ts +22 -3
- package/dist/esm/models/EditDnsRecordRequestContent.js +8 -3
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
- package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +3 -0
- package/dist/esm/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
- package/dist/esm/models/GetInvoiceDetailsRequestContent.js +43 -0
- package/dist/esm/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
- package/dist/esm/models/GetInvoiceDetailsResponseContent.js +49 -0
- package/dist/esm/models/GetInvoiceDetailsResponseData.d.ts +40 -0
- package/dist/esm/models/GetInvoiceDetailsResponseData.js +47 -0
- package/dist/esm/models/InvoiceDetails.d.ts +143 -0
- package/dist/esm/models/InvoiceDetails.js +112 -0
- package/dist/esm/models/InvoiceIssuedTo.d.ts +69 -0
- package/dist/esm/models/InvoiceIssuedTo.js +66 -0
- package/dist/esm/models/InvoiceIssuedToTax.d.ts +44 -0
- package/dist/esm/models/InvoiceIssuedToTax.js +51 -0
- package/dist/esm/models/InvoiceItem.d.ts +56 -0
- package/dist/esm/models/InvoiceItem.js +59 -0
- package/dist/esm/models/InvoiceSummary.d.ts +98 -0
- package/dist/esm/models/InvoiceSummary.js +83 -0
- package/dist/esm/models/InvoiceTransaction.d.ts +74 -0
- package/dist/esm/models/InvoiceTransaction.js +57 -0
- package/dist/esm/models/ListInvoicesResponseContent.d.ts +40 -0
- package/dist/esm/models/ListInvoicesResponseContent.js +49 -0
- package/dist/esm/models/ListInvoicesResponseData.d.ts +39 -0
- package/dist/esm/models/ListInvoicesResponseData.js +48 -0
- package/dist/esm/models/SelcomMetadata.d.ts +56 -0
- package/dist/esm/models/SelcomMetadata.js +59 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/esm/retryablePaths.js +2 -0
- package/dist/models/AddDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/AddDnsRecordRequestContent.js +8 -3
- package/dist/models/DeleteDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/DeleteDnsRecordRequestContent.js +8 -3
- package/dist/models/DnsBackend.d.ts +28 -0
- package/dist/models/DnsBackend.js +54 -0
- package/dist/models/DnsRecordMutationRecord.d.ts +3 -2
- package/dist/models/DnsZoneInfo.d.ts +7 -0
- package/dist/models/DnsZoneInfo.js +3 -0
- package/dist/models/EditDnsRecordRequestContent.d.ts +22 -3
- package/dist/models/EditDnsRecordRequestContent.js +8 -3
- package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
- package/dist/models/GetDnsZoneDetailsRequestContent.js +3 -0
- package/dist/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
- package/dist/models/GetInvoiceDetailsRequestContent.js +50 -0
- package/dist/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
- package/dist/models/GetInvoiceDetailsResponseContent.js +56 -0
- package/dist/models/GetInvoiceDetailsResponseData.d.ts +40 -0
- package/dist/models/GetInvoiceDetailsResponseData.js +54 -0
- package/dist/models/InvoiceDetails.d.ts +143 -0
- package/dist/models/InvoiceDetails.js +119 -0
- package/dist/models/InvoiceIssuedTo.d.ts +69 -0
- package/dist/models/InvoiceIssuedTo.js +73 -0
- package/dist/models/InvoiceIssuedToTax.d.ts +44 -0
- package/dist/models/InvoiceIssuedToTax.js +58 -0
- package/dist/models/InvoiceItem.d.ts +56 -0
- package/dist/models/InvoiceItem.js +66 -0
- package/dist/models/InvoiceSummary.d.ts +98 -0
- package/dist/models/InvoiceSummary.js +90 -0
- package/dist/models/InvoiceTransaction.d.ts +74 -0
- package/dist/models/InvoiceTransaction.js +64 -0
- package/dist/models/ListInvoicesResponseContent.d.ts +40 -0
- package/dist/models/ListInvoicesResponseContent.js +56 -0
- package/dist/models/ListInvoicesResponseData.d.ts +39 -0
- package/dist/models/ListInvoicesResponseData.js +55 -0
- package/dist/models/SelcomMetadata.d.ts +56 -0
- package/dist/models/SelcomMetadata.js +66 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/retryablePaths.js +2 -0
- package/dist.zip +0 -0
- package/docs/AddDnsRecordRequestContent.md +6 -0
- package/docs/BillingApi.md +159 -0
- package/docs/DNSApi.md +4 -4
- package/docs/DeleteDnsRecordRequestContent.md +6 -0
- package/docs/DnsBackend.md +33 -0
- package/docs/DnsRecordMutationRecord.md +1 -1
- package/docs/DnsZoneInfo.md +2 -0
- package/docs/EditDnsRecordRequestContent.md +6 -0
- package/docs/GetDnsZoneDetailsRequestContent.md +2 -0
- package/docs/GetInvoiceDetailsRequestContent.md +34 -0
- package/docs/GetInvoiceDetailsResponseContent.md +36 -0
- package/docs/GetInvoiceDetailsResponseData.md +37 -0
- package/docs/InvoiceDetails.md +71 -0
- package/docs/InvoiceIssuedTo.md +47 -0
- package/docs/InvoiceIssuedToTax.md +39 -0
- package/docs/InvoiceItem.md +43 -0
- package/docs/InvoiceSummary.md +57 -0
- package/docs/InvoiceTransaction.md +49 -0
- package/docs/ListInvoicesResponseContent.md +36 -0
- package/docs/ListInvoicesResponseData.md +37 -0
- package/docs/SelcomMetadata.md +43 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +164 -0
- package/src/apis/DNSApi.ts +8 -8
- package/src/apis/index.ts +1 -0
- package/src/models/AddDnsRecordRequestContent.ts +37 -5
- package/src/models/DeleteDnsRecordRequestContent.ts +37 -5
- package/src/models/DnsBackend.ts +56 -0
- package/src/models/DnsRecordMutationRecord.ts +3 -2
- package/src/models/DnsZoneInfo.ts +17 -0
- package/src/models/EditDnsRecordRequestContent.ts +37 -5
- package/src/models/GetDnsZoneDetailsRequestContent.ts +18 -0
- package/src/models/GetInvoiceDetailsRequestContent.ts +66 -0
- package/src/models/GetInvoiceDetailsResponseContent.ts +92 -0
- package/src/models/GetInvoiceDetailsResponseData.ts +89 -0
- package/src/models/InvoiceDetails.ts +247 -0
- package/src/models/InvoiceIssuedTo.ts +127 -0
- package/src/models/InvoiceIssuedToTax.ts +84 -0
- package/src/models/InvoiceItem.ts +102 -0
- package/src/models/InvoiceSummary.ts +163 -0
- package/src/models/InvoiceTransaction.ts +122 -0
- package/src/models/ListInvoicesResponseContent.ts +92 -0
- package/src/models/ListInvoicesResponseData.ts +83 -0
- package/src/models/SelcomMetadata.ts +102 -0
- package/src/models/index.ts +13 -0
- package/src/retryablePaths.ts +2 -0
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
* Summary of an invoice in the list-invoices response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvoiceSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Unique invoice identifier - must be sent as a string
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InvoiceSummary
|
|
22
|
+
*/
|
|
23
|
+
invoiceId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable invoice number when assigned
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceSummary
|
|
28
|
+
*/
|
|
29
|
+
invoiceNumber: string;
|
|
30
|
+
/**
|
|
31
|
+
* Invoice issue date (ISO 8601)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceSummary
|
|
34
|
+
*/
|
|
35
|
+
date: string;
|
|
36
|
+
/**
|
|
37
|
+
* Invoice due date (ISO 8601)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceSummary
|
|
40
|
+
*/
|
|
41
|
+
dueDate: string;
|
|
42
|
+
/**
|
|
43
|
+
* Invoice status (e.g. Paid, Unpaid, Cancelled, Refunded)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvoiceSummary
|
|
46
|
+
*/
|
|
47
|
+
status: string;
|
|
48
|
+
/**
|
|
49
|
+
* Primary tax amount as a decimal string
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvoiceSummary
|
|
52
|
+
*/
|
|
53
|
+
tax: string;
|
|
54
|
+
/**
|
|
55
|
+
* Secondary tax amount as a decimal string. Omitted when a second tax is not configured.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvoiceSummary
|
|
58
|
+
*/
|
|
59
|
+
tax2?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Primary tax rate as a decimal string
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof InvoiceSummary
|
|
64
|
+
*/
|
|
65
|
+
taxRate: string;
|
|
66
|
+
/**
|
|
67
|
+
* Secondary tax rate as a decimal string. Omitted when a second tax is not configured.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof InvoiceSummary
|
|
70
|
+
*/
|
|
71
|
+
taxRate2?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Invoice total including tax as a decimal string
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof InvoiceSummary
|
|
76
|
+
*/
|
|
77
|
+
total: string;
|
|
78
|
+
/**
|
|
79
|
+
* Invoice subtotal excluding tax as a decimal string
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof InvoiceSummary
|
|
82
|
+
*/
|
|
83
|
+
subtotal: string;
|
|
84
|
+
/**
|
|
85
|
+
* Grand total as a decimal string
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof InvoiceSummary
|
|
88
|
+
*/
|
|
89
|
+
grandTotal: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the InvoiceSummary interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfInvoiceSummary(value: object): value is InvoiceSummary;
|
|
95
|
+
export declare function InvoiceSummaryFromJSON(json: any): InvoiceSummary;
|
|
96
|
+
export declare function InvoiceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceSummary;
|
|
97
|
+
export declare function InvoiceSummaryToJSON(json: any): InvoiceSummary;
|
|
98
|
+
export declare function InvoiceSummaryToJSONTyped(value?: InvoiceSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 InvoiceSummary interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInvoiceSummary(value) {
|
|
18
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('dueDate' in value) || value['dueDate'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('tax' in value) || value['tax'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('taxRate' in value) || value['taxRate'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('subtotal' in value) || value['subtotal'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('grandTotal' in value) || value['grandTotal'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function InvoiceSummaryFromJSON(json) {
|
|
41
|
+
return InvoiceSummaryFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function InvoiceSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'invoiceId': json['invoice_id'],
|
|
49
|
+
'invoiceNumber': json['invoice_number'],
|
|
50
|
+
'date': json['date'],
|
|
51
|
+
'dueDate': json['due_date'],
|
|
52
|
+
'status': json['status'],
|
|
53
|
+
'tax': json['tax'],
|
|
54
|
+
'tax2': json['tax2'] == null ? undefined : json['tax2'],
|
|
55
|
+
'taxRate': json['tax_rate'],
|
|
56
|
+
'taxRate2': json['tax_rate2'] == null ? undefined : json['tax_rate2'],
|
|
57
|
+
'total': json['total'],
|
|
58
|
+
'subtotal': json['subtotal'],
|
|
59
|
+
'grandTotal': json['grand_total'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function InvoiceSummaryToJSON(json) {
|
|
63
|
+
return InvoiceSummaryToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function InvoiceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'invoice_id': value['invoiceId'],
|
|
71
|
+
'invoice_number': value['invoiceNumber'],
|
|
72
|
+
'date': value['date'],
|
|
73
|
+
'due_date': value['dueDate'],
|
|
74
|
+
'status': value['status'],
|
|
75
|
+
'tax': value['tax'],
|
|
76
|
+
'tax2': value['tax2'],
|
|
77
|
+
'tax_rate': value['taxRate'],
|
|
78
|
+
'tax_rate2': value['taxRate2'],
|
|
79
|
+
'total': value['total'],
|
|
80
|
+
'subtotal': value['subtotal'],
|
|
81
|
+
'grand_total': value['grandTotal'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* A payment or refund transaction recorded against an invoice
|
|
14
|
+
* @export
|
|
15
|
+
* @interface InvoiceTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceTransaction {
|
|
18
|
+
/**
|
|
19
|
+
* Transaction identifier
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof InvoiceTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Payment gateway identifier
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceTransaction
|
|
28
|
+
*/
|
|
29
|
+
gateway?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Transaction date (ISO 8601 or upstream date string)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceTransaction
|
|
34
|
+
*/
|
|
35
|
+
date?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Transaction description
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof InvoiceTransaction
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Amount received as a decimal string
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof InvoiceTransaction
|
|
46
|
+
*/
|
|
47
|
+
amountIn?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Gateway fees as a decimal string
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof InvoiceTransaction
|
|
52
|
+
*/
|
|
53
|
+
fees?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Amount paid out (e.g. refund) as a decimal string
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof InvoiceTransaction
|
|
58
|
+
*/
|
|
59
|
+
amountOut?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Gateway transaction reference
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof InvoiceTransaction
|
|
64
|
+
*/
|
|
65
|
+
transId?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the InvoiceTransaction interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfInvoiceTransaction(value: object): value is InvoiceTransaction;
|
|
71
|
+
export declare function InvoiceTransactionFromJSON(json: any): InvoiceTransaction;
|
|
72
|
+
export declare function InvoiceTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransaction;
|
|
73
|
+
export declare function InvoiceTransactionToJSON(json: any): InvoiceTransaction;
|
|
74
|
+
export declare function InvoiceTransactionToJSONTyped(value?: InvoiceTransaction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 InvoiceTransaction interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfInvoiceTransaction(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function InvoiceTransactionFromJSON(json) {
|
|
23
|
+
return InvoiceTransactionFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function InvoiceTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
'gateway': json['gateway'] == null ? undefined : json['gateway'],
|
|
32
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
33
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
34
|
+
'amountIn': json['amount_in'] == null ? undefined : json['amount_in'],
|
|
35
|
+
'fees': json['fees'] == null ? undefined : json['fees'],
|
|
36
|
+
'amountOut': json['amount_out'] == null ? undefined : json['amount_out'],
|
|
37
|
+
'transId': json['trans_id'] == null ? undefined : json['trans_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function InvoiceTransactionToJSON(json) {
|
|
41
|
+
return InvoiceTransactionToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function InvoiceTransactionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'gateway': value['gateway'],
|
|
50
|
+
'date': value['date'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'amount_in': value['amountIn'],
|
|
53
|
+
'fees': value['fees'],
|
|
54
|
+
'amount_out': value['amountOut'],
|
|
55
|
+
'trans_id': value['transId'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { ListInvoicesResponseData } from './ListInvoicesResponseData.js';
|
|
13
|
+
import type { OperationStatus } from './OperationStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ListInvoicesResponseContent
|
|
18
|
+
*/
|
|
19
|
+
export interface ListInvoicesResponseContent {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {OperationStatus}
|
|
23
|
+
* @memberof ListInvoicesResponseContent
|
|
24
|
+
*/
|
|
25
|
+
status: OperationStatus;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ListInvoicesResponseData}
|
|
29
|
+
* @memberof ListInvoicesResponseContent
|
|
30
|
+
*/
|
|
31
|
+
data: ListInvoicesResponseData;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ListInvoicesResponseContent interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfListInvoicesResponseContent(value: object): value is ListInvoicesResponseContent;
|
|
37
|
+
export declare function ListInvoicesResponseContentFromJSON(json: any): ListInvoicesResponseContent;
|
|
38
|
+
export declare function ListInvoicesResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseContent;
|
|
39
|
+
export declare function ListInvoicesResponseContentToJSON(json: any): ListInvoicesResponseContent;
|
|
40
|
+
export declare function ListInvoicesResponseContentToJSONTyped(value?: ListInvoicesResponseContent | 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 { ListInvoicesResponseDataFromJSON, ListInvoicesResponseDataToJSON, } from './ListInvoicesResponseData.js';
|
|
15
|
+
import { OperationStatusFromJSON, OperationStatusToJSON, } from './OperationStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the ListInvoicesResponseContent interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfListInvoicesResponseContent(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 ListInvoicesResponseContentFromJSON(json) {
|
|
27
|
+
return ListInvoicesResponseContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ListInvoicesResponseContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'status': OperationStatusFromJSON(json['status']),
|
|
35
|
+
'data': ListInvoicesResponseDataFromJSON(json['data']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ListInvoicesResponseContentToJSON(json) {
|
|
39
|
+
return ListInvoicesResponseContentToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ListInvoicesResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'status': OperationStatusToJSON(value['status']),
|
|
47
|
+
'data': ListInvoicesResponseDataToJSON(value['data']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { InvoiceSummary } from './InvoiceSummary.js';
|
|
13
|
+
/**
|
|
14
|
+
* Top-level data payload for the ListInvoices response
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListInvoicesResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface ListInvoicesResponseData {
|
|
19
|
+
/**
|
|
20
|
+
* List of invoices for the authenticated user
|
|
21
|
+
* @type {Array<InvoiceSummary>}
|
|
22
|
+
* @memberof ListInvoicesResponseData
|
|
23
|
+
*/
|
|
24
|
+
invoices: Array<InvoiceSummary>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of invoices returned
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListInvoicesResponseData
|
|
29
|
+
*/
|
|
30
|
+
totalCount: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ListInvoicesResponseData interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfListInvoicesResponseData(value: object): value is ListInvoicesResponseData;
|
|
36
|
+
export declare function ListInvoicesResponseDataFromJSON(json: any): ListInvoicesResponseData;
|
|
37
|
+
export declare function ListInvoicesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseData;
|
|
38
|
+
export declare function ListInvoicesResponseDataToJSON(json: any): ListInvoicesResponseData;
|
|
39
|
+
export declare function ListInvoicesResponseDataToJSONTyped(value?: ListInvoicesResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { InvoiceSummaryFromJSON, InvoiceSummaryToJSON, } from './InvoiceSummary.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ListInvoicesResponseData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfListInvoicesResponseData(value) {
|
|
19
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('totalCount' in value) || value['totalCount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function ListInvoicesResponseDataFromJSON(json) {
|
|
26
|
+
return ListInvoicesResponseDataFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function ListInvoicesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'invoices': (json['invoices'].map(InvoiceSummaryFromJSON)),
|
|
34
|
+
'totalCount': json['total_count'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function ListInvoicesResponseDataToJSON(json) {
|
|
38
|
+
return ListInvoicesResponseDataToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function ListInvoicesResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'invoices': (value['invoices'].map(InvoiceSummaryToJSON)),
|
|
46
|
+
'total_count': value['totalCount'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Selcom alt-gateway payment details included on an invoice when configured
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelcomMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface SelcomMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* Due amount formatted for display (e.g. "TZS 29,000.00"). Non-TZS amounts are converted using the WHMCS currency rate.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelcomMetadata
|
|
22
|
+
*/
|
|
23
|
+
amount: string;
|
|
24
|
+
/**
|
|
25
|
+
* Selcom Pesa account: 5-digit padded client id plus 6-digit padded invoice id
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelcomMetadata
|
|
28
|
+
*/
|
|
29
|
+
pesaAccount: string;
|
|
30
|
+
/**
|
|
31
|
+
* Mobile payment reference: 61107370 plus the same padded client and invoice ids
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SelcomMetadata
|
|
34
|
+
*/
|
|
35
|
+
mobileReference: string;
|
|
36
|
+
/**
|
|
37
|
+
* USSD shortcode for Selcom (always *150*50*1#)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SelcomMetadata
|
|
40
|
+
*/
|
|
41
|
+
ussdCode: string;
|
|
42
|
+
/**
|
|
43
|
+
* WHMCS Selcom alt-gateway instructions HTML with placeholders filled
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SelcomMetadata
|
|
46
|
+
*/
|
|
47
|
+
instructions: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the SelcomMetadata interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfSelcomMetadata(value: object): value is SelcomMetadata;
|
|
53
|
+
export declare function SelcomMetadataFromJSON(json: any): SelcomMetadata;
|
|
54
|
+
export declare function SelcomMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelcomMetadata;
|
|
55
|
+
export declare function SelcomMetadataToJSON(json: any): SelcomMetadata;
|
|
56
|
+
export declare function SelcomMetadataToJSONTyped(value?: SelcomMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 SelcomMetadata interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSelcomMetadata(value) {
|
|
18
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('pesaAccount' in value) || value['pesaAccount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('mobileReference' in value) || value['mobileReference'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('ussdCode' in value) || value['ussdCode'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function SelcomMetadataFromJSON(json) {
|
|
31
|
+
return SelcomMetadataFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function SelcomMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'amount': json['amount'],
|
|
39
|
+
'pesaAccount': json['pesa_account'],
|
|
40
|
+
'mobileReference': json['mobile_reference'],
|
|
41
|
+
'ussdCode': json['ussd_code'],
|
|
42
|
+
'instructions': json['instructions'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function SelcomMetadataToJSON(json) {
|
|
46
|
+
return SelcomMetadataToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function SelcomMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'amount': value['amount'],
|
|
54
|
+
'pesa_account': value['pesaAccount'],
|
|
55
|
+
'mobile_reference': value['mobileReference'],
|
|
56
|
+
'ussd_code': value['ussdCode'],
|
|
57
|
+
'instructions': value['instructions'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -66,6 +66,7 @@ export * from './DeleteSnapshotJobRequestContent.js';
|
|
|
66
66
|
export * from './DeleteSnapshotJobResponseContent.js';
|
|
67
67
|
export * from './DeleteSnapshotRequestContent.js';
|
|
68
68
|
export * from './DeleteSnapshotResponseContent.js';
|
|
69
|
+
export * from './DnsBackend.js';
|
|
69
70
|
export * from './DnsCreateCandidateInfo.js';
|
|
70
71
|
export * from './DnsRecordInfo.js';
|
|
71
72
|
export * from './DnsRecordMutationData.js';
|
|
@@ -117,6 +118,9 @@ export * from './GetDomainRequestContent.js';
|
|
|
117
118
|
export * from './GetDomainResponseContent.js';
|
|
118
119
|
export * from './GetEncryptedPasswordRequestContent.js';
|
|
119
120
|
export * from './GetEncryptedPasswordResponseContent.js';
|
|
121
|
+
export * from './GetInvoiceDetailsRequestContent.js';
|
|
122
|
+
export * from './GetInvoiceDetailsResponseContent.js';
|
|
123
|
+
export * from './GetInvoiceDetailsResponseData.js';
|
|
120
124
|
export * from './GetNoVncConsoleRequestContent.js';
|
|
121
125
|
export * from './GetNoVncConsoleResponseContent.js';
|
|
122
126
|
export * from './GetVpsConfigRequestContent.js';
|
|
@@ -125,6 +129,12 @@ export * from './GetVpsDetailsRequestContent.js';
|
|
|
125
129
|
export * from './GetVpsDetailsResponseContent.js';
|
|
126
130
|
export * from './InternalServiceErrorResponseContent.js';
|
|
127
131
|
export * from './InvalidStateErrorResponseContent.js';
|
|
132
|
+
export * from './InvoiceDetails.js';
|
|
133
|
+
export * from './InvoiceIssuedTo.js';
|
|
134
|
+
export * from './InvoiceIssuedToTax.js';
|
|
135
|
+
export * from './InvoiceItem.js';
|
|
136
|
+
export * from './InvoiceSummary.js';
|
|
137
|
+
export * from './InvoiceTransaction.js';
|
|
128
138
|
export * from './ListBackupSchedulesRequestContent.js';
|
|
129
139
|
export * from './ListBackupSchedulesResponseContent.js';
|
|
130
140
|
export * from './ListBackupsRequestContent.js';
|
|
@@ -142,6 +152,8 @@ export * from './ListDomainsRequiringDataResponseContent.js';
|
|
|
142
152
|
export * from './ListDomainsResponseContent.js';
|
|
143
153
|
export * from './ListFirewallRulesRequestContent.js';
|
|
144
154
|
export * from './ListFirewallRulesResponseContent.js';
|
|
155
|
+
export * from './ListInvoicesResponseContent.js';
|
|
156
|
+
export * from './ListInvoicesResponseData.js';
|
|
145
157
|
export * from './ListIsosRequestContent.js';
|
|
146
158
|
export * from './ListIsosResponseContent.js';
|
|
147
159
|
export * from './ListIsosResponseData.js';
|
|
@@ -203,6 +215,7 @@ export * from './RollbackSnapshotResponseContent.js';
|
|
|
203
215
|
export * from './SaveDomainRequiredDataData.js';
|
|
204
216
|
export * from './SaveDomainRequiredDataRequestContent.js';
|
|
205
217
|
export * from './SaveDomainRequiredDataResponseContent.js';
|
|
218
|
+
export * from './SelcomMetadata.js';
|
|
206
219
|
export * from './ServiceBackupsResponseData.js';
|
|
207
220
|
export * from './ServiceSnapshotsResponseData.js';
|
|
208
221
|
export * from './ServiceUnavailableErrorResponseContent.js';
|