@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.
Files changed (139) 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/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/BillingApi.d.ts +45 -0
  8. package/dist/esm/apis/BillingApi.js +118 -0
  9. package/dist/esm/apis/DNSApi.d.ts +8 -8
  10. package/dist/esm/apis/DNSApi.js +8 -8
  11. package/dist/esm/apis/index.d.ts +1 -0
  12. package/dist/esm/apis/index.js +1 -0
  13. package/dist/esm/models/AddDnsRecordRequestContent.d.ts +22 -3
  14. package/dist/esm/models/AddDnsRecordRequestContent.js +8 -3
  15. package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  16. package/dist/esm/models/DeleteDnsRecordRequestContent.js +8 -3
  17. package/dist/esm/models/DnsBackend.d.ts +28 -0
  18. package/dist/esm/models/DnsBackend.js +46 -0
  19. package/dist/esm/models/DnsRecordMutationRecord.d.ts +3 -2
  20. package/dist/esm/models/DnsZoneInfo.d.ts +7 -0
  21. package/dist/esm/models/DnsZoneInfo.js +3 -0
  22. package/dist/esm/models/EditDnsRecordRequestContent.d.ts +22 -3
  23. package/dist/esm/models/EditDnsRecordRequestContent.js +8 -3
  24. package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  25. package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +3 -0
  26. package/dist/esm/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  27. package/dist/esm/models/GetInvoiceDetailsRequestContent.js +43 -0
  28. package/dist/esm/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  29. package/dist/esm/models/GetInvoiceDetailsResponseContent.js +49 -0
  30. package/dist/esm/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  31. package/dist/esm/models/GetInvoiceDetailsResponseData.js +47 -0
  32. package/dist/esm/models/InvoiceDetails.d.ts +143 -0
  33. package/dist/esm/models/InvoiceDetails.js +112 -0
  34. package/dist/esm/models/InvoiceIssuedTo.d.ts +69 -0
  35. package/dist/esm/models/InvoiceIssuedTo.js +66 -0
  36. package/dist/esm/models/InvoiceIssuedToTax.d.ts +44 -0
  37. package/dist/esm/models/InvoiceIssuedToTax.js +51 -0
  38. package/dist/esm/models/InvoiceItem.d.ts +56 -0
  39. package/dist/esm/models/InvoiceItem.js +59 -0
  40. package/dist/esm/models/InvoiceSummary.d.ts +98 -0
  41. package/dist/esm/models/InvoiceSummary.js +83 -0
  42. package/dist/esm/models/InvoiceTransaction.d.ts +74 -0
  43. package/dist/esm/models/InvoiceTransaction.js +57 -0
  44. package/dist/esm/models/ListInvoicesResponseContent.d.ts +40 -0
  45. package/dist/esm/models/ListInvoicesResponseContent.js +49 -0
  46. package/dist/esm/models/ListInvoicesResponseData.d.ts +39 -0
  47. package/dist/esm/models/ListInvoicesResponseData.js +48 -0
  48. package/dist/esm/models/SelcomMetadata.d.ts +56 -0
  49. package/dist/esm/models/SelcomMetadata.js +59 -0
  50. package/dist/esm/models/index.d.ts +13 -0
  51. package/dist/esm/models/index.js +13 -0
  52. package/dist/esm/retryablePaths.js +2 -0
  53. package/dist/models/AddDnsRecordRequestContent.d.ts +22 -3
  54. package/dist/models/AddDnsRecordRequestContent.js +8 -3
  55. package/dist/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  56. package/dist/models/DeleteDnsRecordRequestContent.js +8 -3
  57. package/dist/models/DnsBackend.d.ts +28 -0
  58. package/dist/models/DnsBackend.js +54 -0
  59. package/dist/models/DnsRecordMutationRecord.d.ts +3 -2
  60. package/dist/models/DnsZoneInfo.d.ts +7 -0
  61. package/dist/models/DnsZoneInfo.js +3 -0
  62. package/dist/models/EditDnsRecordRequestContent.d.ts +22 -3
  63. package/dist/models/EditDnsRecordRequestContent.js +8 -3
  64. package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  65. package/dist/models/GetDnsZoneDetailsRequestContent.js +3 -0
  66. package/dist/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  67. package/dist/models/GetInvoiceDetailsRequestContent.js +50 -0
  68. package/dist/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  69. package/dist/models/GetInvoiceDetailsResponseContent.js +56 -0
  70. package/dist/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  71. package/dist/models/GetInvoiceDetailsResponseData.js +54 -0
  72. package/dist/models/InvoiceDetails.d.ts +143 -0
  73. package/dist/models/InvoiceDetails.js +119 -0
  74. package/dist/models/InvoiceIssuedTo.d.ts +69 -0
  75. package/dist/models/InvoiceIssuedTo.js +73 -0
  76. package/dist/models/InvoiceIssuedToTax.d.ts +44 -0
  77. package/dist/models/InvoiceIssuedToTax.js +58 -0
  78. package/dist/models/InvoiceItem.d.ts +56 -0
  79. package/dist/models/InvoiceItem.js +66 -0
  80. package/dist/models/InvoiceSummary.d.ts +98 -0
  81. package/dist/models/InvoiceSummary.js +90 -0
  82. package/dist/models/InvoiceTransaction.d.ts +74 -0
  83. package/dist/models/InvoiceTransaction.js +64 -0
  84. package/dist/models/ListInvoicesResponseContent.d.ts +40 -0
  85. package/dist/models/ListInvoicesResponseContent.js +56 -0
  86. package/dist/models/ListInvoicesResponseData.d.ts +39 -0
  87. package/dist/models/ListInvoicesResponseData.js +55 -0
  88. package/dist/models/SelcomMetadata.d.ts +56 -0
  89. package/dist/models/SelcomMetadata.js +66 -0
  90. package/dist/models/index.d.ts +13 -0
  91. package/dist/models/index.js +13 -0
  92. package/dist/retryablePaths.js +2 -0
  93. package/dist.zip +0 -0
  94. package/docs/AddDnsRecordRequestContent.md +6 -0
  95. package/docs/BillingApi.md +159 -0
  96. package/docs/DNSApi.md +4 -4
  97. package/docs/DeleteDnsRecordRequestContent.md +6 -0
  98. package/docs/DnsBackend.md +33 -0
  99. package/docs/DnsRecordMutationRecord.md +1 -1
  100. package/docs/DnsZoneInfo.md +2 -0
  101. package/docs/EditDnsRecordRequestContent.md +6 -0
  102. package/docs/GetDnsZoneDetailsRequestContent.md +2 -0
  103. package/docs/GetInvoiceDetailsRequestContent.md +34 -0
  104. package/docs/GetInvoiceDetailsResponseContent.md +36 -0
  105. package/docs/GetInvoiceDetailsResponseData.md +37 -0
  106. package/docs/InvoiceDetails.md +71 -0
  107. package/docs/InvoiceIssuedTo.md +47 -0
  108. package/docs/InvoiceIssuedToTax.md +39 -0
  109. package/docs/InvoiceItem.md +43 -0
  110. package/docs/InvoiceSummary.md +57 -0
  111. package/docs/InvoiceTransaction.md +49 -0
  112. package/docs/ListInvoicesResponseContent.md +36 -0
  113. package/docs/ListInvoicesResponseData.md +37 -0
  114. package/docs/SelcomMetadata.md +43 -0
  115. package/package.json +1 -1
  116. package/src/apis/BillingApi.ts +164 -0
  117. package/src/apis/DNSApi.ts +8 -8
  118. package/src/apis/index.ts +1 -0
  119. package/src/models/AddDnsRecordRequestContent.ts +37 -5
  120. package/src/models/DeleteDnsRecordRequestContent.ts +37 -5
  121. package/src/models/DnsBackend.ts +56 -0
  122. package/src/models/DnsRecordMutationRecord.ts +3 -2
  123. package/src/models/DnsZoneInfo.ts +17 -0
  124. package/src/models/EditDnsRecordRequestContent.ts +37 -5
  125. package/src/models/GetDnsZoneDetailsRequestContent.ts +18 -0
  126. package/src/models/GetInvoiceDetailsRequestContent.ts +66 -0
  127. package/src/models/GetInvoiceDetailsResponseContent.ts +92 -0
  128. package/src/models/GetInvoiceDetailsResponseData.ts +89 -0
  129. package/src/models/InvoiceDetails.ts +247 -0
  130. package/src/models/InvoiceIssuedTo.ts +127 -0
  131. package/src/models/InvoiceIssuedToTax.ts +84 -0
  132. package/src/models/InvoiceItem.ts +102 -0
  133. package/src/models/InvoiceSummary.ts +163 -0
  134. package/src/models/InvoiceTransaction.ts +122 -0
  135. package/src/models/ListInvoicesResponseContent.ts +92 -0
  136. package/src/models/ListInvoicesResponseData.ts +83 -0
  137. package/src/models/SelcomMetadata.ts +102 -0
  138. package/src/models/index.ts +13 -0
  139. package/src/retryablePaths.ts +2 -0
@@ -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
+ * A single invoice line item
14
+ * @export
15
+ * @interface InvoiceItem
16
+ */
17
+ export interface InvoiceItem {
18
+ /**
19
+ * Line item identifier
20
+ * @type {number}
21
+ * @memberof InvoiceItem
22
+ */
23
+ id: number;
24
+ /**
25
+ * Line item type (e.g. Hosting)
26
+ * @type {string}
27
+ * @memberof InvoiceItem
28
+ */
29
+ type: string;
30
+ /**
31
+ * Line item description
32
+ * @type {string}
33
+ * @memberof InvoiceItem
34
+ */
35
+ description: string;
36
+ /**
37
+ * Line item amount as a decimal string
38
+ * @type {string}
39
+ * @memberof InvoiceItem
40
+ */
41
+ amount: string;
42
+ /**
43
+ * Whether the line item is taxed (1 = taxed, 0 = not taxed)
44
+ * @type {number}
45
+ * @memberof InvoiceItem
46
+ */
47
+ taxed: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the InvoiceItem interface.
51
+ */
52
+ export declare function instanceOfInvoiceItem(value: object): value is InvoiceItem;
53
+ export declare function InvoiceItemFromJSON(json: any): InvoiceItem;
54
+ export declare function InvoiceItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItem;
55
+ export declare function InvoiceItemToJSON(json: any): InvoiceItem;
56
+ export declare function InvoiceItemToJSONTyped(value?: InvoiceItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfInvoiceItem = instanceOfInvoiceItem;
17
+ exports.InvoiceItemFromJSON = InvoiceItemFromJSON;
18
+ exports.InvoiceItemFromJSONTyped = InvoiceItemFromJSONTyped;
19
+ exports.InvoiceItemToJSON = InvoiceItemToJSON;
20
+ exports.InvoiceItemToJSONTyped = InvoiceItemToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InvoiceItem interface.
23
+ */
24
+ function instanceOfInvoiceItem(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('description' in value) || value['description'] === undefined)
30
+ return false;
31
+ if (!('amount' in value) || value['amount'] === undefined)
32
+ return false;
33
+ if (!('taxed' in value) || value['taxed'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function InvoiceItemFromJSON(json) {
38
+ return InvoiceItemFromJSONTyped(json, false);
39
+ }
40
+ function InvoiceItemFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'type': json['type'],
47
+ 'description': json['description'],
48
+ 'amount': json['amount'],
49
+ 'taxed': json['taxed'],
50
+ };
51
+ }
52
+ function InvoiceItemToJSON(json) {
53
+ return InvoiceItemToJSONTyped(json, false);
54
+ }
55
+ function InvoiceItemToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'type': value['type'],
62
+ 'description': value['description'],
63
+ 'amount': value['amount'],
64
+ 'taxed': value['taxed'],
65
+ };
66
+ }
@@ -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,90 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfInvoiceSummary = instanceOfInvoiceSummary;
17
+ exports.InvoiceSummaryFromJSON = InvoiceSummaryFromJSON;
18
+ exports.InvoiceSummaryFromJSONTyped = InvoiceSummaryFromJSONTyped;
19
+ exports.InvoiceSummaryToJSON = InvoiceSummaryToJSON;
20
+ exports.InvoiceSummaryToJSONTyped = InvoiceSummaryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InvoiceSummary interface.
23
+ */
24
+ function instanceOfInvoiceSummary(value) {
25
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined)
26
+ return false;
27
+ if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
28
+ return false;
29
+ if (!('date' in value) || value['date'] === undefined)
30
+ return false;
31
+ if (!('dueDate' in value) || value['dueDate'] === undefined)
32
+ return false;
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('tax' in value) || value['tax'] === undefined)
36
+ return false;
37
+ if (!('taxRate' in value) || value['taxRate'] === undefined)
38
+ return false;
39
+ if (!('total' in value) || value['total'] === undefined)
40
+ return false;
41
+ if (!('subtotal' in value) || value['subtotal'] === undefined)
42
+ return false;
43
+ if (!('grandTotal' in value) || value['grandTotal'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function InvoiceSummaryFromJSON(json) {
48
+ return InvoiceSummaryFromJSONTyped(json, false);
49
+ }
50
+ function InvoiceSummaryFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'invoiceId': json['invoice_id'],
56
+ 'invoiceNumber': json['invoice_number'],
57
+ 'date': json['date'],
58
+ 'dueDate': json['due_date'],
59
+ 'status': json['status'],
60
+ 'tax': json['tax'],
61
+ 'tax2': json['tax2'] == null ? undefined : json['tax2'],
62
+ 'taxRate': json['tax_rate'],
63
+ 'taxRate2': json['tax_rate2'] == null ? undefined : json['tax_rate2'],
64
+ 'total': json['total'],
65
+ 'subtotal': json['subtotal'],
66
+ 'grandTotal': json['grand_total'],
67
+ };
68
+ }
69
+ function InvoiceSummaryToJSON(json) {
70
+ return InvoiceSummaryToJSONTyped(json, false);
71
+ }
72
+ function InvoiceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'invoice_id': value['invoiceId'],
78
+ 'invoice_number': value['invoiceNumber'],
79
+ 'date': value['date'],
80
+ 'due_date': value['dueDate'],
81
+ 'status': value['status'],
82
+ 'tax': value['tax'],
83
+ 'tax2': value['tax2'],
84
+ 'tax_rate': value['taxRate'],
85
+ 'tax_rate2': value['taxRate2'],
86
+ 'total': value['total'],
87
+ 'subtotal': value['subtotal'],
88
+ 'grand_total': value['grandTotal'],
89
+ };
90
+ }
@@ -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,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfInvoiceTransaction = instanceOfInvoiceTransaction;
17
+ exports.InvoiceTransactionFromJSON = InvoiceTransactionFromJSON;
18
+ exports.InvoiceTransactionFromJSONTyped = InvoiceTransactionFromJSONTyped;
19
+ exports.InvoiceTransactionToJSON = InvoiceTransactionToJSON;
20
+ exports.InvoiceTransactionToJSONTyped = InvoiceTransactionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InvoiceTransaction interface.
23
+ */
24
+ function instanceOfInvoiceTransaction(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function InvoiceTransactionFromJSON(json) {
30
+ return InvoiceTransactionFromJSONTyped(json, false);
31
+ }
32
+ function InvoiceTransactionFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'id': json['id'],
38
+ 'gateway': json['gateway'] == null ? undefined : json['gateway'],
39
+ 'date': json['date'] == null ? undefined : json['date'],
40
+ 'description': json['description'] == null ? undefined : json['description'],
41
+ 'amountIn': json['amount_in'] == null ? undefined : json['amount_in'],
42
+ 'fees': json['fees'] == null ? undefined : json['fees'],
43
+ 'amountOut': json['amount_out'] == null ? undefined : json['amount_out'],
44
+ 'transId': json['trans_id'] == null ? undefined : json['trans_id'],
45
+ };
46
+ }
47
+ function InvoiceTransactionToJSON(json) {
48
+ return InvoiceTransactionToJSONTyped(json, false);
49
+ }
50
+ function InvoiceTransactionToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'id': value['id'],
56
+ 'gateway': value['gateway'],
57
+ 'date': value['date'],
58
+ 'description': value['description'],
59
+ 'amount_in': value['amountIn'],
60
+ 'fees': value['fees'],
61
+ 'amount_out': value['amountOut'],
62
+ 'trans_id': value['transId'],
63
+ };
64
+ }
@@ -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,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListInvoicesResponseContent = instanceOfListInvoicesResponseContent;
17
+ exports.ListInvoicesResponseContentFromJSON = ListInvoicesResponseContentFromJSON;
18
+ exports.ListInvoicesResponseContentFromJSONTyped = ListInvoicesResponseContentFromJSONTyped;
19
+ exports.ListInvoicesResponseContentToJSON = ListInvoicesResponseContentToJSON;
20
+ exports.ListInvoicesResponseContentToJSONTyped = ListInvoicesResponseContentToJSONTyped;
21
+ const ListInvoicesResponseData_js_1 = require("./ListInvoicesResponseData.js");
22
+ const OperationStatus_js_1 = require("./OperationStatus.js");
23
+ /**
24
+ * Check if a given object implements the ListInvoicesResponseContent interface.
25
+ */
26
+ function instanceOfListInvoicesResponseContent(value) {
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('data' in value) || value['data'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ListInvoicesResponseContentFromJSON(json) {
34
+ return ListInvoicesResponseContentFromJSONTyped(json, false);
35
+ }
36
+ function ListInvoicesResponseContentFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'status': (0, OperationStatus_js_1.OperationStatusFromJSON)(json['status']),
42
+ 'data': (0, ListInvoicesResponseData_js_1.ListInvoicesResponseDataFromJSON)(json['data']),
43
+ };
44
+ }
45
+ function ListInvoicesResponseContentToJSON(json) {
46
+ return ListInvoicesResponseContentToJSONTyped(json, false);
47
+ }
48
+ function ListInvoicesResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'status': (0, OperationStatus_js_1.OperationStatusToJSON)(value['status']),
54
+ 'data': (0, ListInvoicesResponseData_js_1.ListInvoicesResponseDataToJSON)(value['data']),
55
+ };
56
+ }
@@ -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,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfListInvoicesResponseData = instanceOfListInvoicesResponseData;
17
+ exports.ListInvoicesResponseDataFromJSON = ListInvoicesResponseDataFromJSON;
18
+ exports.ListInvoicesResponseDataFromJSONTyped = ListInvoicesResponseDataFromJSONTyped;
19
+ exports.ListInvoicesResponseDataToJSON = ListInvoicesResponseDataToJSON;
20
+ exports.ListInvoicesResponseDataToJSONTyped = ListInvoicesResponseDataToJSONTyped;
21
+ const InvoiceSummary_js_1 = require("./InvoiceSummary.js");
22
+ /**
23
+ * Check if a given object implements the ListInvoicesResponseData interface.
24
+ */
25
+ function instanceOfListInvoicesResponseData(value) {
26
+ if (!('invoices' in value) || value['invoices'] === undefined)
27
+ return false;
28
+ if (!('totalCount' in value) || value['totalCount'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ListInvoicesResponseDataFromJSON(json) {
33
+ return ListInvoicesResponseDataFromJSONTyped(json, false);
34
+ }
35
+ function ListInvoicesResponseDataFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'invoices': (json['invoices'].map(InvoiceSummary_js_1.InvoiceSummaryFromJSON)),
41
+ 'totalCount': json['total_count'],
42
+ };
43
+ }
44
+ function ListInvoicesResponseDataToJSON(json) {
45
+ return ListInvoicesResponseDataToJSONTyped(json, false);
46
+ }
47
+ function ListInvoicesResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'invoices': (value['invoices'].map(InvoiceSummary_js_1.InvoiceSummaryToJSON)),
53
+ 'total_count': value['totalCount'],
54
+ };
55
+ }