@billionaire-sh/node-sdk 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +254 -2
- package/dist/client.cjs +315 -0
- package/dist/client.d.cts +1190 -0
- package/dist/client.d.mts +1190 -0
- package/dist/client.mjs +313 -0
- package/dist/schemas.cjs +3800 -0
- package/dist/schemas.d.cts +3977 -0
- package/dist/schemas.d.mts +3977 -0
- package/dist/schemas.mjs +3798 -0
- package/package.json +62 -3
|
@@ -0,0 +1,1190 @@
|
|
|
1
|
+
declare class TokenManager {
|
|
2
|
+
private readonly clientId;
|
|
3
|
+
private readonly clientSecret;
|
|
4
|
+
private readonly tokenEndpoint;
|
|
5
|
+
private readonly userEntityId?;
|
|
6
|
+
private accessToken;
|
|
7
|
+
private tokenExpiresAt;
|
|
8
|
+
private refreshPromise;
|
|
9
|
+
private defaultEntityId?;
|
|
10
|
+
constructor(clientId: string, clientSecret: string, tokenEndpoint: string, userEntityId?: string | undefined);
|
|
11
|
+
initialize(): Promise<void>;
|
|
12
|
+
getToken(): Promise<string>;
|
|
13
|
+
getEntityId(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Async counterpart to {@link getEntityId}. Fetches the token if it
|
|
16
|
+
* hasn't been loaded yet (which is what populates `defaultEntityId` via
|
|
17
|
+
* `setDefaultEntityId`), then returns the entity id.
|
|
18
|
+
*
|
|
19
|
+
* Prefer this over `getEntityId()` from request paths — a cold SDK
|
|
20
|
+
* instance will otherwise synchronously throw "No entity ID available"
|
|
21
|
+
* before the token has had a chance to load.
|
|
22
|
+
*/
|
|
23
|
+
getEntityIdAsync(): Promise<string>;
|
|
24
|
+
private refreshToken;
|
|
25
|
+
private setDefaultEntityId;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Per-call cache override. SDK reads default to `cache: 'no-store'` —
|
|
30
|
+
* correct for live-read endpoints where any caching causes stale
|
|
31
|
+
* responses against realtime mutations.
|
|
32
|
+
*
|
|
33
|
+
* Near-static reads that a Next.js app renders into many pages pass
|
|
34
|
+
* Next's own fetch-cache options instead: `{ cache: 'force-cache', next:
|
|
35
|
+
* { revalidate, tags } }`. Next then caches the response, revalidates it
|
|
36
|
+
* on schedule and — unlike `unstable_cache` — locks the cache key while
|
|
37
|
+
* the request runs, so the pages a build renders at the same time share
|
|
38
|
+
* ONE request instead of each sending its own.
|
|
39
|
+
*/
|
|
40
|
+
interface RequestCacheOptions {
|
|
41
|
+
cache?: RequestCache;
|
|
42
|
+
/** Next.js fetch-cache options; ignored outside Next.js. */
|
|
43
|
+
next?: {
|
|
44
|
+
revalidate?: number | false;
|
|
45
|
+
tags?: string[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
declare abstract class BaseResource {
|
|
49
|
+
protected readonly tokenManager: TokenManager;
|
|
50
|
+
protected readonly baseUrl: string;
|
|
51
|
+
protected readonly resourcePath: string;
|
|
52
|
+
constructor(tokenManager: TokenManager, baseUrl: string, resourcePath: string);
|
|
53
|
+
/**
|
|
54
|
+
* What the resource's path hangs below: the robot's entity
|
|
55
|
+
* (`/entities/{entityId}`). A resource of the platform's own API, which
|
|
56
|
+
* acts for the entity that owns the platform, overrides it (KLVR-2229).
|
|
57
|
+
* Read after the token is fetched — the entity id comes with it.
|
|
58
|
+
*/
|
|
59
|
+
protected rootPath(): string;
|
|
60
|
+
protected request<T>(method: 'GET' | 'POST' | 'PATCH' | 'DELETE', path: string, data?: unknown, cacheOptions?: RequestCacheOptions): Promise<T>;
|
|
61
|
+
/**
|
|
62
|
+
* Multipart counterpart to `request`. Skips the JSON Content-Type
|
|
63
|
+
* default — `fetch` sets `multipart/form-data; boundary=…`
|
|
64
|
+
* automatically when the body is a `FormData`. Use for binary uploads.
|
|
65
|
+
*/
|
|
66
|
+
protected requestMultipart<T>(method: 'POST' | 'PATCH' | 'PUT', path: string, formData: FormData): Promise<T>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface components {
|
|
70
|
+
schemas: {
|
|
71
|
+
/** FetchOpenPlatformInvoicesBody */
|
|
72
|
+
FetchOpenPlatformInvoicesBody: {
|
|
73
|
+
filters: {
|
|
74
|
+
/** @description The platform whose invoices are asked for, as it names itself (order3000) */
|
|
75
|
+
platform: string;
|
|
76
|
+
};
|
|
77
|
+
pagination?: {
|
|
78
|
+
/** @default 1 */
|
|
79
|
+
page: number;
|
|
80
|
+
/** @default 10 */
|
|
81
|
+
pageSize: number;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/** FetchOpenPlatformInvoicesResponse */
|
|
85
|
+
FetchOpenPlatformInvoicesResponse: {
|
|
86
|
+
id: string;
|
|
87
|
+
invoiceNumber: string | null;
|
|
88
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
89
|
+
issueDate: string;
|
|
90
|
+
dueDate: string | null;
|
|
91
|
+
currency: string;
|
|
92
|
+
netAmount: number | null;
|
|
93
|
+
taxAmount: number | null;
|
|
94
|
+
amount: number;
|
|
95
|
+
paymentStatementDescriptor: string | null;
|
|
96
|
+
/** @description The payment provider's id of the platform's invoice */
|
|
97
|
+
stripeInvoiceId: string;
|
|
98
|
+
}[];
|
|
99
|
+
/** PlatformChargeCustomer */
|
|
100
|
+
PlatformChargeCustomer: {
|
|
101
|
+
/** @description The platform’s own id of the customer; the answer is keyed by it */
|
|
102
|
+
key: string;
|
|
103
|
+
/** @description The customer’s country, ISO 3166-1 alpha-2 — for a visitor before any customer exists, the country the page is shown for */
|
|
104
|
+
country: string;
|
|
105
|
+
/** @description A consumer pays the listed price, tax contained; a business is shown it net and pays the tax on top */
|
|
106
|
+
isConsumer: boolean;
|
|
107
|
+
};
|
|
108
|
+
/** FetchPlatformChargeTaxesBody */
|
|
109
|
+
FetchPlatformChargeTaxesBody: {
|
|
110
|
+
customers: components["schemas"]["PlatformChargeCustomer"][];
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* PlatformChargeTax
|
|
114
|
+
* @description null where the entity charges this customer no tax
|
|
115
|
+
*/
|
|
116
|
+
PlatformChargeTax: {
|
|
117
|
+
/** @description The rate in per cent, as a decimal string: "19", "8.1" */
|
|
118
|
+
percent: string;
|
|
119
|
+
/** @description True when the price contains the tax (a consumer’s), false when it is added on top (a business’s) */
|
|
120
|
+
isInclusive: boolean;
|
|
121
|
+
/** @description True when the customer owes the tax — a business in another country than the owner: nothing is charged (percent 0) and the invoice says the customer owes it */
|
|
122
|
+
isReverseCharge: boolean;
|
|
123
|
+
/** @description The country whose tax it is, ISO code — for a reverse charge, the customer’s */
|
|
124
|
+
country: string;
|
|
125
|
+
/** @description What an invoice calls the tax */
|
|
126
|
+
displayName: string;
|
|
127
|
+
};
|
|
128
|
+
/** FetchPlatformChargeTaxesResponse */
|
|
129
|
+
FetchPlatformChargeTaxesResponse: {
|
|
130
|
+
taxes: {
|
|
131
|
+
key: string;
|
|
132
|
+
tax: components["schemas"]["PlatformChargeTax"] | null;
|
|
133
|
+
}[];
|
|
134
|
+
};
|
|
135
|
+
/** PlatformInvoiceLine */
|
|
136
|
+
PlatformInvoiceLine: {
|
|
137
|
+
type: components["schemas"]["PlatformInvoiceLineType"];
|
|
138
|
+
/** @description The plan, band or module the line bills; null for a line that is none of them */
|
|
139
|
+
catalogueId: string | null;
|
|
140
|
+
description: string | null;
|
|
141
|
+
quantity: number;
|
|
142
|
+
/** @description Net of tax, in the smallest unit of the currency; negative for a credit of an unused part */
|
|
143
|
+
netAmount: number;
|
|
144
|
+
taxAmount: number;
|
|
145
|
+
/** @description The tax rate in per cent; null for a line without tax */
|
|
146
|
+
taxRatePercent: number | null;
|
|
147
|
+
/**
|
|
148
|
+
* @description The customer owes the line’s tax (reverse charge, KLVR-2230): the line is charged at 0 % and the invoice says who owes it
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
isReverseCharge: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @description The country whose tax the line carries, ISO 3166-1 alpha-2 — for a reverse charge, where the customer owes it; null where it carries none
|
|
154
|
+
* @default null
|
|
155
|
+
*/
|
|
156
|
+
taxCountry: string | null;
|
|
157
|
+
/** Format: date-time */
|
|
158
|
+
periodStart: string;
|
|
159
|
+
/** Format: date-time */
|
|
160
|
+
periodEnd: string;
|
|
161
|
+
isProration: boolean;
|
|
162
|
+
};
|
|
163
|
+
/** FetchPlatformInvoicePreviewBody */
|
|
164
|
+
FetchPlatformInvoicePreviewBody: {
|
|
165
|
+
/** @description ISO 4217, upper case */
|
|
166
|
+
currency: string;
|
|
167
|
+
/**
|
|
168
|
+
* Format: date-time
|
|
169
|
+
* @description When the invoice would be issued: its VAT rates are those of that day
|
|
170
|
+
*/
|
|
171
|
+
issuedAt: string;
|
|
172
|
+
/** @description What the payment provider will charge, in the smallest unit of the currency */
|
|
173
|
+
grossAmount: number;
|
|
174
|
+
lines: components["schemas"]["PlatformInvoiceLine"][];
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* PlatformInvoicePreview
|
|
178
|
+
* @description The invoice; null when none would be issued (the outcome says why)
|
|
179
|
+
*/
|
|
180
|
+
PlatformInvoicePreview: {
|
|
181
|
+
currency: string;
|
|
182
|
+
netAmount: number;
|
|
183
|
+
taxAmount: number;
|
|
184
|
+
grossAmount: number;
|
|
185
|
+
/** @description Each rate taxed once, as the invoice prints it */
|
|
186
|
+
byRate: {
|
|
187
|
+
taxRatePercent: number;
|
|
188
|
+
netAmount: number;
|
|
189
|
+
taxAmount: number;
|
|
190
|
+
}[];
|
|
191
|
+
lines: {
|
|
192
|
+
description: string | null;
|
|
193
|
+
netAmount: number;
|
|
194
|
+
/** @description null where the entity charges no VAT */
|
|
195
|
+
taxRatePercent: number | null;
|
|
196
|
+
taxAmount: number;
|
|
197
|
+
}[];
|
|
198
|
+
};
|
|
199
|
+
/** FetchPlatformInvoicePreviewResponse */
|
|
200
|
+
FetchPlatformInvoicePreviewResponse: {
|
|
201
|
+
outcome: components["schemas"]["ComposePlatformInvoiceOutcome"];
|
|
202
|
+
invoice: components["schemas"]["PlatformInvoicePreview"] | null;
|
|
203
|
+
};
|
|
204
|
+
/** PlatformInvoiceCustomer */
|
|
205
|
+
PlatformInvoiceCustomer: {
|
|
206
|
+
/** @description The platform's own reference of its customer (a tenant's id) */
|
|
207
|
+
reference: string;
|
|
208
|
+
partyType: components["schemas"]["PartyType"];
|
|
209
|
+
/** @description The name the invoice is addressed to, as the platform names its customer — a business's legal name */
|
|
210
|
+
name: string;
|
|
211
|
+
/** Format: email */
|
|
212
|
+
email: string | null;
|
|
213
|
+
vatId: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* @description The customer's tax number — with its VAT ID, what shows a business abroad is one (KLVR-2234)
|
|
216
|
+
* @default null
|
|
217
|
+
*/
|
|
218
|
+
taxNumber: string | null;
|
|
219
|
+
address: {
|
|
220
|
+
street: string;
|
|
221
|
+
building: string | null;
|
|
222
|
+
postcode: string;
|
|
223
|
+
city: string;
|
|
224
|
+
country: components["schemas"]["Country"];
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
/** ProcessPlatformInvoiceBody */
|
|
228
|
+
ProcessPlatformInvoiceBody: {
|
|
229
|
+
/** @description The platform that invoiced, as it names itself (order3000) */
|
|
230
|
+
platform: string;
|
|
231
|
+
/** @description The payment provider's id of the invoice — the key every call is deduplicated on */
|
|
232
|
+
stripeInvoiceId: string;
|
|
233
|
+
stripeInvoiceNumber: string | null;
|
|
234
|
+
platformSubscriptionId: string;
|
|
235
|
+
/** @description ISO 4217, upper case */
|
|
236
|
+
currency: string;
|
|
237
|
+
/** Format: date-time */
|
|
238
|
+
issuedAt: string;
|
|
239
|
+
billingReason: string | null;
|
|
240
|
+
cardLastFour: string | null;
|
|
241
|
+
netAmount: number;
|
|
242
|
+
taxAmount: number;
|
|
243
|
+
grossAmount: number;
|
|
244
|
+
lines: components["schemas"]["PlatformInvoiceLine"][];
|
|
245
|
+
customer: components["schemas"]["PlatformInvoiceCustomer"];
|
|
246
|
+
};
|
|
247
|
+
/** ProcessPlatformInvoiceResponse */
|
|
248
|
+
ProcessPlatformInvoiceResponse: {
|
|
249
|
+
outcome: components["schemas"]["IssuePlatformInvoiceOutcome"];
|
|
250
|
+
/** @description The entity's own invoice for it, once issued */
|
|
251
|
+
invoiceId: string | null;
|
|
252
|
+
};
|
|
253
|
+
/** FetchPlatformInvoiceResponse */
|
|
254
|
+
FetchPlatformInvoiceResponse: {
|
|
255
|
+
id: string;
|
|
256
|
+
invoiceNumber: string | null;
|
|
257
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
258
|
+
issueDate: string;
|
|
259
|
+
dueDate: string | null;
|
|
260
|
+
currency: string;
|
|
261
|
+
netAmount: number | null;
|
|
262
|
+
taxAmount: number | null;
|
|
263
|
+
amount: number;
|
|
264
|
+
paymentStatementDescriptor: string | null;
|
|
265
|
+
};
|
|
266
|
+
/** ProcessPlatformInvoicePaymentBody */
|
|
267
|
+
ProcessPlatformInvoicePaymentBody: {
|
|
268
|
+
stripeInvoiceNumber: string | null;
|
|
269
|
+
platformSubscriptionId: string;
|
|
270
|
+
/** @description ISO 4217, upper case */
|
|
271
|
+
currency: string;
|
|
272
|
+
/** Format: date-time */
|
|
273
|
+
paidAt: string;
|
|
274
|
+
/** @description In the smallest unit of the currency */
|
|
275
|
+
amountPaid: number;
|
|
276
|
+
/** @description What the cardholder's statement shows for the charge, as the payment provider names it (at Stripe the charge's calculated_statement_descriptor). The entity's invoice and the copy its customer received state it, so the customer's statement line settles the invoice by itself. */
|
|
277
|
+
statementDescriptor?: string | null;
|
|
278
|
+
/** @description The payment provider account the customer paid through — at Stripe the platform's account id (acct_…). The payment is recorded on the entity's money account that keeps this account's balance. */
|
|
279
|
+
paymentProviderAccount: string;
|
|
280
|
+
};
|
|
281
|
+
/** ProcessPlatformInvoicePaymentResponse */
|
|
282
|
+
ProcessPlatformInvoicePaymentResponse: {
|
|
283
|
+
payment: components["schemas"]["RecordPlatformInvoicePaymentOutcome"];
|
|
284
|
+
settlement: components["schemas"]["SettlePlatformInvoicePaymentOutcome"];
|
|
285
|
+
};
|
|
286
|
+
/** ProcessPlatformInvoiceVoidBody */
|
|
287
|
+
ProcessPlatformInvoiceVoidBody: {
|
|
288
|
+
/** Format: date-time */
|
|
289
|
+
voidedAt: string;
|
|
290
|
+
};
|
|
291
|
+
/** ProcessPlatformInvoiceVoidResponse */
|
|
292
|
+
ProcessPlatformInvoiceVoidResponse: {
|
|
293
|
+
outcome: components["schemas"]["CancelPlatformInvoiceOutcome"];
|
|
294
|
+
/** @description The entity's own invoice for it, once known */
|
|
295
|
+
invoiceId: string | null;
|
|
296
|
+
};
|
|
297
|
+
/** ProcessPlatformInvoiceCreditBody */
|
|
298
|
+
ProcessPlatformInvoiceCreditBody: {
|
|
299
|
+
/** @description The payment provider's id of the credit note */
|
|
300
|
+
stripeCreditNoteId: string;
|
|
301
|
+
/** Format: date-time */
|
|
302
|
+
creditedAt: string;
|
|
303
|
+
/** @description What the credit note takes back, tax included, in the smallest unit of the invoice currency */
|
|
304
|
+
grossAmount: number;
|
|
305
|
+
};
|
|
306
|
+
/** ProcessPlatformInvoiceCreditResponse */
|
|
307
|
+
ProcessPlatformInvoiceCreditResponse: {
|
|
308
|
+
outcome: components["schemas"]["CancelPlatformInvoiceOutcome"];
|
|
309
|
+
/** @description The entity's own invoice for it, once known */
|
|
310
|
+
invoiceId: string | null;
|
|
311
|
+
};
|
|
312
|
+
/** @enum {string} */
|
|
313
|
+
AccessGrantInitiator: "grantor" | "grantee";
|
|
314
|
+
/** @enum {string} */
|
|
315
|
+
AccessGrantResourceType: "business-card" | "contract" | "property" | "party";
|
|
316
|
+
/** @enum {string} */
|
|
317
|
+
AccessGrantStatus: "pending" | "accepted" | "declined" | "expired" | "withdrawn" | "revoked";
|
|
318
|
+
/** @enum {string} */
|
|
319
|
+
AccountSnapshotStatus: "pending" | "ready" | "closed" | "archived";
|
|
320
|
+
/** @enum {string} */
|
|
321
|
+
AccountSnapshotType: "opening_balance" | "annual_closing" | "quarterly_vat" | "monthly_vat" | "annual_vat" | "semi_annual_vat";
|
|
322
|
+
/** @enum {string} */
|
|
323
|
+
ActorType: "human" | "robot";
|
|
324
|
+
/** @enum {string} */
|
|
325
|
+
AddressType: "physical" | "billing" | "registered" | "tax_office";
|
|
326
|
+
/** @enum {string} */
|
|
327
|
+
AmortizationType: "bullet" | "annuity" | "installment" | "flexible";
|
|
328
|
+
/** @enum {string} */
|
|
329
|
+
AnlageGProblemType: "year_not_closed" | "gewst_not_declared";
|
|
330
|
+
/** @enum {string} */
|
|
331
|
+
AnlageKapReason: "favourable_assessment" | "withholding_review" | "church_tax_not_withheld";
|
|
332
|
+
/** @enum {string} */
|
|
333
|
+
AnlageKindChildRelationship: "biological_or_adopted" | "foster" | "grandchild_or_stepchild";
|
|
334
|
+
/** @enum {string} */
|
|
335
|
+
AnlageKindOtherParentStatus: "named" | "deceased" | "not_determinable";
|
|
336
|
+
/** @enum {string} */
|
|
337
|
+
AnlageVField: "street" | "location" | "totalLivingArea" | "livingAreaNotLet" | "rentIncomeResidential" | "incomeTotal" | "expensesCarried" | "surplus" | "depreciationLinear" | "expensesTotal";
|
|
338
|
+
/** @enum {string} */
|
|
339
|
+
AnnotatableFieldPath: "sender.name" | "documentDate" | "amounts.total" | "invoiceNumber" | "documentType";
|
|
340
|
+
/** @enum {string} */
|
|
341
|
+
AppointmentStatus: "booked" | "cancelled" | "completed" | "no_show";
|
|
342
|
+
/** @enum {string} */
|
|
343
|
+
ArticleStatus: "draft" | "published";
|
|
344
|
+
/** @enum {string} */
|
|
345
|
+
ArtifactType: "loan" | "rental" | "interest" | "principal" | "fee" | "rent" | "deposit" | "disbursement" | "invoice" | "charge";
|
|
346
|
+
/** @enum {string} */
|
|
347
|
+
AssetDepreciationMethod: "linear" | "degressive" | "immediate_gwg" | "pool_sammelposten" | "none";
|
|
348
|
+
/** @enum {string} */
|
|
349
|
+
AssetDepreciationType: "regular" | "special" | "disposal_book_value";
|
|
350
|
+
/** @enum {string} */
|
|
351
|
+
BalanceSheetCategory: "assets" | "liabilities" | "equity" | "provisions" | "revenue" | "expenses";
|
|
352
|
+
/** @enum {string} */
|
|
353
|
+
BalanceSheetStandard: "commercial_with_reconciliation" | "tax" | "unified";
|
|
354
|
+
/** @enum {string} */
|
|
355
|
+
BankStatementDecimalSeparator: "comma" | "period";
|
|
356
|
+
/** @enum {string} */
|
|
357
|
+
BankStatementSource: "csv";
|
|
358
|
+
/** @enum {string} */
|
|
359
|
+
BescheidEinwilligungStatus: "none" | "requested" | "active" | "revoked";
|
|
360
|
+
/** @enum {string} */
|
|
361
|
+
BillingInterval: "month" | "year";
|
|
362
|
+
/** @enum {string} */
|
|
363
|
+
BookingChannel: "reservation" | "order";
|
|
364
|
+
/** @enum {string} */
|
|
365
|
+
BookingPurpose: "accounts_receivable" | "accounts_payable" | "bank" | "cash" | "input_vat" | "output_vat" | "vat_prepayment" | "revenue" | "expense" | "depreciation_expense" | "accumulated_depreciation" | "asset_disposal_gain" | "asset_disposal_loss" | "loan_receivable" | "loan_payable" | "silent_contribution" | "silent_profit_share_expense" | "silent_profit_share_payable" | "interest_income" | "interest_expense" | "retained_earnings" | "private_withdrawals" | "private_contributions" | "own_consumption_goods" | "capital_in_business" | "private_health_insurance_statutory" | "private_health_insurance_private" | "private_care_insurance_statutory" | "private_care_insurance_private" | "private_pension_insurance_basic" | "private_unemployment_insurance" | "private_liability_and_accident_insurance" | "private_church_tax" | "private_donations_charitable" | "private_donations_political_party" | "loss_carried_forward" | "suspense" | "subscribed_capital" | "outstanding_contributions_uncalled" | "called_up_capital_receivable" | "capital_reserve" | "legal_reserve" | "voluntary_reserve" | "land" | "residential_building" | "commercial_building" | "building_savings_balance" | "bank_fee_expense" | "other_operating_expense" | "legal_consulting_expense" | "software_expense" | "energy_expense" | "heating_expense" | "cleaning_expense" | "maintenance_expense" | "insurance_expense" | "property_tax_expense" | "low_value_asset_expense" | "loan_fee_expense" | "loan_fee_income" | "accrued_interest_receivable" | "accrued_interest_payable" | "rental_deposit_receivable" | "rental_deposit_payable" | "other_operating_income" | "cash_discount_granted" | "bad_debt_expense" | "inventory" | "prepaid_expenses" | "deferred_income" | "owner_capital" | "cash_discount_received" | "supplier_credit_receivable";
|
|
366
|
+
/** @enum {string} */
|
|
367
|
+
BrandPalette: "primary" | "secondary";
|
|
368
|
+
/** @enum {string} */
|
|
369
|
+
BusinessEntityType: "sole_prop" | "gmbh" | "ug" | "ag" | "kg" | "ohg" | "gbr" | "eg" | "kgaa" | "gmbh_co_kg" | "sole_prop_ek";
|
|
370
|
+
/** @enum {string} */
|
|
371
|
+
BusinessFoundingType: "new" | "relocation" | "takeover" | "other";
|
|
372
|
+
/** @enum {string} */
|
|
373
|
+
BusinessStage: "startup" | "existing" | "founding";
|
|
374
|
+
/** @enum {string} */
|
|
375
|
+
CancelPlatformInvoiceOutcome: "cancelled" | "already_cancelled" | "no_invoice" | "paid" | "partial_credit";
|
|
376
|
+
/** @enum {string} */
|
|
377
|
+
CashBasisAssetGroup: "land" | "buildings" | "other_real_estate" | "intangibles" | "vehicles" | "office_equipment" | "other_movables" | "pooled_items" | "financial_assets_partial_income" | "financial_assets_other";
|
|
378
|
+
/** @enum {string} */
|
|
379
|
+
CashBasisReconciliationKey: "receivable" | "inventory" | "prepaid" | "payable" | "provision" | "deferred_income" | "tax_and_vat" | "other" | "residual";
|
|
380
|
+
/** @enum {string} */
|
|
381
|
+
CatchUpUstvaStatus: "filed" | "open" | "overdue" | "none";
|
|
382
|
+
/** @enum {string} */
|
|
383
|
+
ChartFamily: "datev" | "kmu" | "de_gaap_ci";
|
|
384
|
+
/** @enum {string} */
|
|
385
|
+
ChartInterchangeTier: "origin" | "correspondence" | "role" | "position" | "resolved";
|
|
386
|
+
/** @enum {string} */
|
|
387
|
+
ChartNumberBlockType: "reserved" | "account_block" | "personal_debtors" | "personal_creditors";
|
|
388
|
+
/** @enum {string} */
|
|
389
|
+
ChartProvider: "datev" | "veb" | "esteuer";
|
|
390
|
+
/** @enum {string} */
|
|
391
|
+
CollateralType: "receivables_assignment" | "ownership_transfer" | "pledge" | "land_charge" | "guarantee" | "other";
|
|
392
|
+
/** @enum {string} */
|
|
393
|
+
CommercialRegisterSection: "HRA" | "HRB" | "PR" | "GnR" | "VR";
|
|
394
|
+
/** @enum {string} */
|
|
395
|
+
ComposePlatformInvoiceOutcome: "composed" | "no_owner" | "other_currency" | "owner_not_ready" | "credit" | "tax_not_stated" | "tax_without_registration" | "tax_code_missing" | "totals_differ";
|
|
396
|
+
/** @enum {string} */
|
|
397
|
+
ConfirmContactEmailChangeOutcome: "completed" | "certificate_required";
|
|
398
|
+
/** @enum {string} */
|
|
399
|
+
ConsolidationEliminationSource: "owner_capital" | "inter_entity_loan";
|
|
400
|
+
/** @enum {string} */
|
|
401
|
+
ConsolidationResidueReason: "owner_capital_drift" | "loan_without_link" | "loan_balances_differ";
|
|
402
|
+
/** @enum {string} */
|
|
403
|
+
ContactEmailAudience: "company" | "person";
|
|
404
|
+
/** @enum {string} */
|
|
405
|
+
ContactEmailType: "primary" | "billing";
|
|
406
|
+
/** @enum {string} */
|
|
407
|
+
ContactEmailVerificationStatus: "pending" | "verified" | "completed" | "superseded";
|
|
408
|
+
/** @enum {string} */
|
|
409
|
+
ContractAssuranceLevel: "ses" | "aes";
|
|
410
|
+
/** @enum {string} */
|
|
411
|
+
ContractClauseKey: "loan_grant" | "interest" | "loan_term" | "early_repayment" | "collateral" | "payment_default" | "termination" | "economic_effect" | "final_provisions" | "leased_property" | "lease_term" | "rent" | "deposit" | "handover" | "keys" | "use_and_subletting" | "house_rules" | "maintenance" | "end_of_lease" | "supersession";
|
|
412
|
+
/** @enum {string} */
|
|
413
|
+
ContractIdentifierPosition: "footer_left" | "footer_split" | "side_right" | "badge_top_right";
|
|
414
|
+
/** @enum {string} */
|
|
415
|
+
ContractPageNumberNumeral: "arabic" | "roman";
|
|
416
|
+
/** @enum {string} */
|
|
417
|
+
ContractPageNumberPosition: "bottom_left" | "bottom_center" | "bottom_right";
|
|
418
|
+
/** @enum {string} */
|
|
419
|
+
ContractPartyRole: "lender" | "borrower" | "landlord" | "renter" | "head_landlord";
|
|
420
|
+
/** @enum {string} */
|
|
421
|
+
ContractScanContentType: "application/pdf" | "image/jpeg" | "image/png";
|
|
422
|
+
/** @enum {string} */
|
|
423
|
+
ContractSignatoryChannel: "electronic" | "paper_upload";
|
|
424
|
+
/** @enum {string} */
|
|
425
|
+
ContractSignatoryChannelPolicy: "electronic" | "paper_upload" | "open";
|
|
426
|
+
/** @enum {string} */
|
|
427
|
+
ContractSignatoryStatus: "pending" | "sent" | "viewed" | "paper_uploaded" | "signed" | "declined" | "revoked" | "expired";
|
|
428
|
+
/** @enum {string} */
|
|
429
|
+
ContractStatus: "draft" | "sent" | "formed" | "active" | "completed" | "terminated" | "cancelled" | "superseded" | "archived";
|
|
430
|
+
/** @enum {string} */
|
|
431
|
+
ContractType: "craft" | "service" | "purchase" | "rental" | "loan";
|
|
432
|
+
/** @enum {string} */
|
|
433
|
+
ContractTypography: "serif" | "sans" | "brand_system" | "brand_accent";
|
|
434
|
+
/** @enum {string} */
|
|
435
|
+
CorporateTaxRateType: "income_tax" | "surcharge";
|
|
436
|
+
/** @enum {string} */
|
|
437
|
+
CorporationEntityType: "gmbh" | "ug" | "ag" | "kgaa";
|
|
438
|
+
/** @enum {string} */
|
|
439
|
+
CorrespondenceCardinality: "one_to_one" | "many_to_one" | "split";
|
|
440
|
+
/** @enum {string} */
|
|
441
|
+
CorrespondenceSource: "datev_2026_charts" | "manual";
|
|
442
|
+
/** @enum {string} */
|
|
443
|
+
Country: "DE" | "AT" | "CH" | "LI" | "FR" | "NL" | "BE" | "LU" | "PL" | "CZ" | "DK" | "IT" | "ES" | "PT" | "IE" | "GB" | "SE" | "FI" | "NO" | "GR" | "HU" | "SK" | "SI" | "HR" | "RO" | "BG" | "EE" | "LV" | "LT" | "MT" | "CY" | "US" | "CA" | "JP" | "CN" | "IN" | "AU" | "NZ" | "SG" | "HK" | "AE" | "BR" | "MX" | "ZA" | "EG" | "MA" | "RU" | "TR" | "IL" | "KR" | "AD" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BF" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CC" | "CD" | "CF" | "CG" | "CI" | "CK" | "CL" | "CM" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "DJ" | "DM" | "DO" | "DZ" | "EC" | "EH" | "ER" | "ET" | "FJ" | "FK" | "FM" | "FO" | "GA" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GS" | "GT" | "GU" | "GW" | "GY" | "HM" | "HN" | "HT" | "ID" | "IM" | "IO" | "IQ" | "IR" | "IS" | "JE" | "JM" | "JO" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LK" | "LR" | "LS" | "LY" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MU" | "MV" | "MW" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NP" | "NR" | "NU" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PM" | "PN" | "PR" | "PS" | "PW" | "PY" | "QA" | "RE" | "RS" | "RW" | "SA" | "SB" | "SC" | "SD" | "SH" | "SJ" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZM" | "ZW";
|
|
444
|
+
/** @enum {string} */
|
|
445
|
+
CreditBalanceUse: "offset" | "refund";
|
|
446
|
+
/** @enum {string} */
|
|
447
|
+
Currency: "EUR" | "CHF";
|
|
448
|
+
/** @enum {string} */
|
|
449
|
+
DatevBusinessPartnerType: "company" | "person" | "unspecified";
|
|
450
|
+
/** @enum {string} */
|
|
451
|
+
DatevExportRefusalReason: "not_a_datev_file" | "unsupported_category" | "empty" | "currency" | "too_large";
|
|
452
|
+
/** @enum {string} */
|
|
453
|
+
DatevFormatCategory: "bookings" | "account_labels" | "business_partners";
|
|
454
|
+
/** @enum {string} */
|
|
455
|
+
DatevLegalFormFamily: "sole_proprietor" | "partnership" | "corporation";
|
|
456
|
+
/** @enum {string} */
|
|
457
|
+
DatevStackType: "EXTF" | "DTVF";
|
|
458
|
+
/** @enum {string} */
|
|
459
|
+
DayCountConvention: "act_360" | "act_365" | "e30_360";
|
|
460
|
+
/** @enum {string} */
|
|
461
|
+
DayOfWeek: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
|
|
462
|
+
/** @enum {string} */
|
|
463
|
+
DealStage: "identified" | "contacted" | "engaged" | "demo" | "offer" | "won" | "lost";
|
|
464
|
+
/** @enum {string} */
|
|
465
|
+
DealValueSource: "pricing" | "manual";
|
|
466
|
+
/** @enum {string} */
|
|
467
|
+
DefectResponsibility: "renter" | "landlord" | "wear_and_tear" | "unknown";
|
|
468
|
+
/** @enum {string} */
|
|
469
|
+
DepositCustodyModel: "held" | "separate_account";
|
|
470
|
+
/** @enum {string} */
|
|
471
|
+
DepreciationRefusalType: "no_expense_account" | "no_position";
|
|
472
|
+
/** @enum {string} */
|
|
473
|
+
DocumentLinkProvenance: "rule" | "model" | "user";
|
|
474
|
+
/** @enum {string} */
|
|
475
|
+
DocumentLinkRelationType: "reminder_for" | "delivery_note_for" | "credit_note_for" | "confirmation_for" | "invoice_for" | "correction_of" | "related_to";
|
|
476
|
+
/** @enum {string} */
|
|
477
|
+
DocumentLinkStatus: "suggested" | "confirmed" | "rejected";
|
|
478
|
+
/** @enum {string} */
|
|
479
|
+
DocumentType: "invoice" | "reminder" | "delivery_note" | "offer" | "order_confirmation" | "credit_note" | "contract" | "official_letter" | "payslip" | "bank_statement" | "enrolment_certificate" | "identity_document" | "trial_balance" | "account_proof" | "profit_statement" | "fixed_asset_register" | "management_report" | "advance_vat_return" | "tax_return" | "tax_assessment" | "datev_export" | "other";
|
|
480
|
+
/** @enum {string} */
|
|
481
|
+
DueFilingUrgency: "overdue" | "due_soon" | "next_up";
|
|
482
|
+
/** @enum {string} */
|
|
483
|
+
DunningDefaultEntryRule: "reminder" | "thirty_day_clause" | "fixed_due_date";
|
|
484
|
+
/** @enum {string} */
|
|
485
|
+
DunningHoldReason: "creditor_collects";
|
|
486
|
+
/** @enum {string} */
|
|
487
|
+
DunningLevel: "friendly_reminder" | "first_notice" | "second_notice" | "final_notice";
|
|
488
|
+
/** @enum {string} */
|
|
489
|
+
DunningLumpSumChoice: "charge" | "waive";
|
|
490
|
+
/** @enum {string} */
|
|
491
|
+
DunningLumpSumRung: "first_notice" | "second_notice" | "final_notice" | "never";
|
|
492
|
+
/** @enum {string} */
|
|
493
|
+
DunningNoticeItemType: "principal" | "side_claim";
|
|
494
|
+
/** @enum {string} */
|
|
495
|
+
DunningNoticeStatus: "proposed" | "sent" | "settled" | "escalated" | "handed_over";
|
|
496
|
+
/** @enum {string} */
|
|
497
|
+
DunningNoticeType: "ladder" | "side_claims_only";
|
|
498
|
+
/** @enum {string} */
|
|
499
|
+
DuplicateCandidateStatus: "suggested" | "confirmed" | "dismissed";
|
|
500
|
+
/** @enum {string} */
|
|
501
|
+
EbilanzOutputFormat: "xml" | "json";
|
|
502
|
+
/** @enum {string} */
|
|
503
|
+
ElsterCertificatePurpose: "person_consent" | "company_consent" | "filing";
|
|
504
|
+
/** @enum {string} */
|
|
505
|
+
ElsterProblemKey: "certificate_password_wrong" | "certificate_password_locked" | "certificate_unreadable" | "certificate_expired" | "certificate_is_test_certificate" | "certificate_registered_with_tax_number" | "certificate_not_permitted_for_procedure" | "certificate_of_another_person" | "consent_not_yours" | "platform_configuration" | "unknown";
|
|
506
|
+
/** @enum {string} */
|
|
507
|
+
EmploymentType: "full_time" | "part_time" | "mini_job";
|
|
508
|
+
/** @enum {string} */
|
|
509
|
+
EntityAssetType: "logomark" | "wordmark" | "combinationmark_horizontal" | "combinationmark_vertical" | "icon";
|
|
510
|
+
/** @enum {string} */
|
|
511
|
+
EntityDecisionReason: "initial" | "elective" | "good_business_reason" | "bookkeeping_duty_notice" | "small_merchant_thresholds_exceeded" | "small_business_opt_out" | "small_business_opt_in" | "founding_period_end" | "threshold_cross" | "threshold_drop" | "permanent_extension" | "became_merchant";
|
|
512
|
+
/** @enum {string} */
|
|
513
|
+
EntityDecisionSource: "entity" | "authority" | "law";
|
|
514
|
+
/** @enum {string} */
|
|
515
|
+
EntityDecisionStatus: "recorded" | "overturned" | "rejected";
|
|
516
|
+
/** @enum {string} */
|
|
517
|
+
EntityDecisionType: "profit_determination_method" | "small_merchant_exemption" | "bookkeeping_duty_notice" | "balance_sheet_standard" | "chart_of_accounts" | "vat_filing_cadence" | "vat_liability" | "vat_taxation_method" | "vat_permanent_extension" | "entity_type" | "declared_size";
|
|
518
|
+
/** @enum {string} */
|
|
519
|
+
EntityDocumentType: "ebilanz_confirmation" | "kst_confirmation" | "gewst_confirmation" | "unternehmensregister_confirmation";
|
|
520
|
+
/** @enum {string} */
|
|
521
|
+
EntityDomainAddressPurpose: "contact";
|
|
522
|
+
/** @enum {string} */
|
|
523
|
+
EntityDomainStatus: "pending" | "verified" | "failed" | "temporary_failure";
|
|
524
|
+
/** @enum {string} */
|
|
525
|
+
EntityRelationshipType: "controlled_by" | "controls" | "sibling" | "taxpayer_unit";
|
|
526
|
+
/** @enum {string} */
|
|
527
|
+
EntityType: "person" | "sole_prop" | "gmbh" | "ug" | "ag" | "kg" | "ohg" | "gbr" | "eg" | "kgaa" | "gmbh_co_kg" | "sole_prop_ek";
|
|
528
|
+
/** @enum {string} */
|
|
529
|
+
EstSchedule: "anlage_n" | "anlage_kap" | "anlage_kind";
|
|
530
|
+
/** @enum {string} */
|
|
531
|
+
EuerLineNature: "income" | "expense" | "expense_reduction" | "memo" | "withdrawal" | "deposit";
|
|
532
|
+
/** @enum {string} */
|
|
533
|
+
ExternalFilingDeclaredBy: "former_advisor" | "owner";
|
|
534
|
+
/** @enum {string} */
|
|
535
|
+
FilingCadence: "monthly" | "quarterly" | "semi_annual" | "annual";
|
|
536
|
+
/** @enum {string} */
|
|
537
|
+
FilingDocumentType: "xml" | "confirmation" | "bescheid";
|
|
538
|
+
/** @enum {string} */
|
|
539
|
+
FilingLineSource: "curated" | "manual";
|
|
540
|
+
/** @enum {string} */
|
|
541
|
+
FilingStatus: "not_started" | "submitted" | "assessed" | "rejected" | "superseded" | "filed_externally";
|
|
542
|
+
/** @enum {string} */
|
|
543
|
+
FilingType: "ebilanz" | "euer" | "kst" | "gewst" | "ustva" | "ust" | "est" | "separate_determination" | "unternehmensregister" | "opening_balance" | "mwst" | "jahresrechnung";
|
|
544
|
+
/** @enum {string} */
|
|
545
|
+
FixedAssetScheduleProblemType: "position_balance_mismatch" | "opening_values_inconsistent" | "asset_without_position" | "euer_transfer_mismatch";
|
|
546
|
+
/** @enum {string} */
|
|
547
|
+
FixedTermFactsType: "none" | "free_text" | "occupant" | "works" | "service_relationship" | "temporary_occasion" | "public_body_purpose" | "allocation_scheme" | "semester" | "sale";
|
|
548
|
+
/** @enum {string} */
|
|
549
|
+
FixedTermLegalBasis: "own_use" | "alteration_or_removal" | "service_lease" | "temporary_use" | "furnished_room_in_landlord_home" | "urgent_housing_by_public_body" | "student_or_youth_dormitory" | "none";
|
|
550
|
+
/** @enum {string} */
|
|
551
|
+
FixedTermReasonType: "curated" | "authored";
|
|
552
|
+
/** @enum {string} */
|
|
553
|
+
FontRole: "system" | "accent";
|
|
554
|
+
/** @enum {string} */
|
|
555
|
+
FontStyle: "normal" | "italic";
|
|
556
|
+
/** @enum {string} */
|
|
557
|
+
FormOfAddress: "formal" | "informal";
|
|
558
|
+
/** @enum {string} */
|
|
559
|
+
FormationDutyStatus: "done" | "open" | "not_applicable";
|
|
560
|
+
/** @enum {string} */
|
|
561
|
+
FormationNextAction: "record_deed" | "add_bank_account" | "set_share_capital" | "book_contribution" | "apply_for_register_entry" | "record_register_entry" | "set_tax_number" | "set_vat_id" | "set_vat_cadence" | "complete" | "freeze_opening_balance" | "file_opening_balance" | "file_tax_registration_questionnaire";
|
|
562
|
+
/** @enum {string} */
|
|
563
|
+
FormationStage: "in_formation" | "registered";
|
|
564
|
+
/** @enum {string} */
|
|
565
|
+
FormationStepGroup: "before_entry" | "tax_office" | "other_registrations" | "books";
|
|
566
|
+
/** @enum {string} */
|
|
567
|
+
FormationStepStatus: "done" | "not_applicable";
|
|
568
|
+
/** @enum {string} */
|
|
569
|
+
FormationStepType: "notarial_deed" | "bank_account" | "share_capital_subscribed" | "share_capital_paid_in" | "register_application" | "register_entry" | "tax_registration_questionnaire" | "tax_number" | "vat_id" | "vat_filing_cadence" | "trade_registration" | "transparency_register" | "chamber_membership" | "accident_insurance" | "opening_balance_frozen" | "opening_balance_filed";
|
|
570
|
+
/** @enum {string} */
|
|
571
|
+
GlassCollection: "container_by_colour" | "container_mixed" | "curbside";
|
|
572
|
+
/** @enum {string} */
|
|
573
|
+
HandoverDeclaration: "not_existing" | "unobtainable";
|
|
574
|
+
/** @enum {string} */
|
|
575
|
+
HandoverFallback: "recompute_from_books" | "request_finanzamt_copy" | "retrieve_via_elster" | "capture_manually" | "not_needed";
|
|
576
|
+
/** @enum {string} */
|
|
577
|
+
HandoverItemStatus: "uploaded" | "processed" | "not_existing" | "unobtainable" | "captured";
|
|
578
|
+
/** @enum {string} */
|
|
579
|
+
HandoverItemType: "profit_statement" | "fixed_asset_register" | "trial_balance" | "account_statements" | "management_report" | "vat_return" | "tax_assessments" | "tax_identifiers" | "datev_export" | "unsorted" | "account_proof" | "advance_vat_returns" | "trade_tax_return" | "income_tax_return" | "corporate_tax_return" | "separate_assessment_return" | "loss_carryforward_assessment";
|
|
580
|
+
/** @enum {string} */
|
|
581
|
+
HandoverNeedKey: "profit_statement" | "fixed_asset_register" | "trial_balance" | "account_proof" | "bank_statements_year_end" | "management_report" | "annual_vat_return" | "advance_vat_return" | "tax_assessments" | "loss_carryforward_assessment" | "income_tax_return" | "separate_assessment_return" | "corporate_tax_return" | "trade_tax_return" | "tax_identifiers" | "datev_export";
|
|
582
|
+
/** @enum {string} */
|
|
583
|
+
HandoverNeedStatus: "satisfied" | "partial" | "open" | "unobtainable" | "not_applicable";
|
|
584
|
+
/** @enum {string} */
|
|
585
|
+
HandoverNextAction: "upload" | "assign" | "capture" | "import" | "enter";
|
|
586
|
+
/** @enum {string} */
|
|
587
|
+
HandoverSatisfiedSource: "document" | "import" | "capture" | "derivation" | "entity_fact" | "elster";
|
|
588
|
+
/** @enum {string} */
|
|
589
|
+
HouseRuleChangeClassification: "clarification" | "new_burden";
|
|
590
|
+
/** @enum {string} */
|
|
591
|
+
HouseRuleChangeType: "added" | "revised" | "removed";
|
|
592
|
+
/** @enum {string} */
|
|
593
|
+
HouseRuleEditionRequestStatus: "open" | "acknowledged" | "agreed" | "declined" | "superseded";
|
|
594
|
+
/** @enum {string} */
|
|
595
|
+
HouseRuleEditionRequestType: "notice" | "consent";
|
|
596
|
+
/** @enum {string} */
|
|
597
|
+
HouseRuleScope: "property" | "rental";
|
|
598
|
+
/** @enum {string} */
|
|
599
|
+
HouseholdNamePurpose: "mailbox" | "renterHub";
|
|
600
|
+
/** @enum {string} */
|
|
601
|
+
HousingProvider: "sub_landlord" | "head_landlord";
|
|
602
|
+
/** @enum {string} */
|
|
603
|
+
IdentityCheckStatus: "pending" | "uploaded" | "confirmed" | "rejected";
|
|
604
|
+
/** @enum {string} */
|
|
605
|
+
IncomeTaxAssessmentType: "single" | "joint";
|
|
606
|
+
/** @enum {string} */
|
|
607
|
+
Industry: "construction" | "consulting" | "education" | "healthcare" | "hospitality" | "it_services" | "logistics" | "manufacturing" | "marketing" | "media" | "other" | "professional_services" | "real_estate" | "retail" | "trades";
|
|
608
|
+
/** @enum {string} */
|
|
609
|
+
InvitationScenario: "new_user" | "already_member" | "former_employee";
|
|
610
|
+
/** @enum {string} */
|
|
611
|
+
InvoiceArithmeticCheck: "lines_sum_to_net" | "breakdown_sums_to_net" | "breakdown_sums_to_tax" | "rate_times_net_is_tax" | "net_plus_tax_is_gross";
|
|
612
|
+
/** @enum {string} */
|
|
613
|
+
InvoiceDeliveryFormat: "pdf" | "zugferd" | "xrechnung_ubl" | "xrechnung_cii";
|
|
614
|
+
/** @enum {string} */
|
|
615
|
+
InvoiceDispatchChannel: "email";
|
|
616
|
+
/** @enum {string} */
|
|
617
|
+
InvoiceLineTableDensity: "comfortable" | "compact";
|
|
618
|
+
/** @enum {string} */
|
|
619
|
+
InvoicePaymentMethod: "bank_transfer" | "direct_debit" | "card" | "cash" | "online" | "other";
|
|
620
|
+
/** @enum {string} */
|
|
621
|
+
IssuePlatformInvoiceOutcome: "issued" | "already_issued" | "own_customer" | "no_owner" | "other_currency" | "owner_not_ready" | "credit" | "tax_not_stated" | "tax_without_registration" | "tax_code_missing" | "totals_differ";
|
|
622
|
+
/** @enum {string} */
|
|
623
|
+
BookingSide: "debit" | "credit";
|
|
624
|
+
/** @enum {string} */
|
|
625
|
+
Jurisdiction: "DE" | "CH";
|
|
626
|
+
/** @enum {string} */
|
|
627
|
+
JurisdictionType: "country" | "region" | "municipality";
|
|
628
|
+
/** @enum {string} */
|
|
629
|
+
KnownFactSourceType: "tax_assessment" | "tax_account" | "document" | "bank_import" | "asset_register";
|
|
630
|
+
/** @enum {string} */
|
|
631
|
+
KnownFactStatus: "proposed" | "confirmed" | "conflict";
|
|
632
|
+
/** @enum {string} */
|
|
633
|
+
KnownFactSubject: "income_from_business" | "taxable_income" | "assessed_tax" | "trade_tax_base_amount" | "loss_carryforward" | "vat_payable" | "prepayments_set" | "trade_profit" | "taxable_profit" | "missing_return" | "open_amount" | "bank_statement_coverage" | "assets_taken_over";
|
|
634
|
+
/** @enum {string} */
|
|
635
|
+
LetterheadLogoPosition: "top_left" | "top_center" | "top_right";
|
|
636
|
+
/** @enum {string} */
|
|
637
|
+
LetterheadWindowForm: "din_5008_form_a" | "din_5008_form_b" | "sn_010130";
|
|
638
|
+
/** @enum {string} */
|
|
639
|
+
LettingArrangement: "whole_unit" | "room_in_shared_flat";
|
|
640
|
+
/** @enum {string} */
|
|
641
|
+
LoanChannelAttestation: "borrower_trade" | "lender_commercial_credit";
|
|
642
|
+
/** @enum {string} */
|
|
643
|
+
LoanCounterpartyCategory: "shareholder" | "affiliated" | "participation" | "director" | "silent_partner" | "bank" | "third_party";
|
|
644
|
+
/** @enum {string} */
|
|
645
|
+
LoanDirection: "lent" | "borrowed";
|
|
646
|
+
/** @enum {string} */
|
|
647
|
+
LoanInterestStatementType: "period" | "annual";
|
|
648
|
+
/** @enum {string} */
|
|
649
|
+
LoanMaturity: "short" | "medium" | "long";
|
|
650
|
+
/** @enum {string} */
|
|
651
|
+
LoanRelatedPartyType: "controlling_shareholder" | "controlled_by" | "controls" | "sibling" | "taxpayer_unit";
|
|
652
|
+
/** @enum {string} */
|
|
653
|
+
LoanStatus: "draft" | "active" | "repaid" | "terminated" | "cancelled";
|
|
654
|
+
/** @enum {string} */
|
|
655
|
+
LoanType: "classic" | "credit_line";
|
|
656
|
+
/** @enum {string} */
|
|
657
|
+
Locale: "aa" | "ab" | "ae" | "af" | "ak" | "am" | "an" | "ar" | "as" | "av" | "ay" | "az" | "ba" | "be" | "bg" | "bh" | "bi" | "bm" | "bn" | "bo" | "br" | "bs" | "ca" | "ce" | "ch" | "co" | "cr" | "cs" | "cu" | "cv" | "cy" | "da" | "de" | "dv" | "dz" | "ee" | "el" | "en" | "eo" | "es" | "et" | "eu" | "fa" | "ff" | "fi" | "fj" | "fo" | "fr" | "fy" | "ga" | "gd" | "gl" | "gn" | "gu" | "gv" | "ha" | "he" | "hi" | "ho" | "hr" | "ht" | "hu" | "hy" | "hz" | "ia" | "id" | "ie" | "ig" | "ii" | "ik" | "io" | "is" | "it" | "iu" | "ja" | "jv" | "ka" | "kg" | "ki" | "kj" | "kk" | "kl" | "km" | "kn" | "ko" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "la" | "lb" | "lg" | "li" | "ln" | "lo" | "lt" | "lu" | "lv" | "mg" | "mh" | "mi" | "mk" | "ml" | "mn" | "mr" | "ms" | "mt" | "my" | "na" | "nb" | "nd" | "ne" | "ng" | "nl" | "nn" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "or" | "os" | "pa" | "pi" | "pl" | "ps" | "pt" | "qu" | "rm" | "rn" | "ro" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sm" | "sn" | "so" | "sq" | "sr" | "ss" | "st" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "th" | "ti" | "tk" | "tl" | "tn" | "to" | "tr" | "ts" | "tt" | "tw" | "ty" | "ug" | "uk" | "ur" | "uz" | "ve" | "vi" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zu";
|
|
658
|
+
/** @enum {string} */
|
|
659
|
+
LostKeySettlement: "deposit_deduction" | "invoice" | "open";
|
|
660
|
+
/** @enum {string} */
|
|
661
|
+
ManagementReportSectionType: "business_development" | "company_situation" | "significant_events" | "expected_development" | "opportunities_and_risks" | "research_and_development" | "custom";
|
|
662
|
+
/** @enum {string} */
|
|
663
|
+
ManagementReportStatus: "draft" | "finalized";
|
|
664
|
+
/** @enum {string} */
|
|
665
|
+
MantelbogenField: "taxNumber" | "taxIdentificationNumber" | "dateOfBirth" | "name" | "academicTitle" | "religion" | "religionChange" | "street" | "postcode" | "city" | "country" | "assessmentType" | "iban" | "bic" | "accountHolder";
|
|
666
|
+
/** @enum {string} */
|
|
667
|
+
MappingCoverageSource: "override" | "template" | "unmapped";
|
|
668
|
+
/** @enum {string} */
|
|
669
|
+
MaritalStatus: "single" | "married" | "divorced" | "widowed" | "registered_partnership";
|
|
670
|
+
/** @enum {string} */
|
|
671
|
+
MatchedVia: "semantic" | "keyword" | "both";
|
|
672
|
+
/** @enum {string} */
|
|
673
|
+
MediaAssetType: "image" | "video" | "document";
|
|
674
|
+
/** @enum {string} */
|
|
675
|
+
InvoiceDirection: "outgoing" | "incoming";
|
|
676
|
+
/** @enum {string} */
|
|
677
|
+
MessageParticipantRole: "from" | "to" | "cc";
|
|
678
|
+
/** @enum {string} */
|
|
679
|
+
MessageSource: "tax_authority" | "platform" | "collaborator" | "scan" | "email";
|
|
680
|
+
/** @enum {string} */
|
|
681
|
+
MessageStatus: "draft" | "submitting" | "submitted" | "rejected" | "failed" | "received";
|
|
682
|
+
/** @enum {string} */
|
|
683
|
+
MessageThreadStatus: "open" | "awaiting_them" | "awaiting_us" | "closed";
|
|
684
|
+
/** @enum {string} */
|
|
685
|
+
MessageThreadSubjectType: "filing" | "party" | "entity" | "invoice" | "dunning_notice" | "rental" | "contract" | "loan" | "document";
|
|
686
|
+
/** @enum {string} */
|
|
687
|
+
ObligationAmountBasis: "fixed" | "computed_at_period_end" | "on_cash_only";
|
|
688
|
+
/** @enum {string} */
|
|
689
|
+
ObligationLinkType: "booking" | "adoption" | "accrual" | "accrual_release" | "reclassification" | "reversal";
|
|
690
|
+
/** @enum {string} */
|
|
691
|
+
ObligationPlanLineStatus: "open" | "partially_fulfilled" | "fulfilled" | "cancelled";
|
|
692
|
+
/** @enum {string} */
|
|
693
|
+
ObligationPlanRevisionReason: "payout_anchor" | "payment_deviation" | "amendment" | "horizon_extension";
|
|
694
|
+
/** @enum {string} */
|
|
695
|
+
ObligationPlanStatus: "blocked" | "live" | "completed";
|
|
696
|
+
/** @enum {string} */
|
|
697
|
+
ObligationPlanSubjectType: "loan";
|
|
698
|
+
/** @enum {string} */
|
|
699
|
+
ObligationRole: "creditor" | "debtor";
|
|
700
|
+
/** @enum {string} */
|
|
701
|
+
ObligationTermsSource: "owned" | "granted" | "snapshot";
|
|
702
|
+
/** @enum {string} */
|
|
703
|
+
ObligationType: "disbursement" | "principal" | "interest" | "fee";
|
|
704
|
+
/** @enum {string} */
|
|
705
|
+
OccupantRelationship: "self" | "spouse_or_partner" | "child" | "parent" | "sibling" | "other_family_member" | "household_member";
|
|
706
|
+
/** @enum {string} */
|
|
707
|
+
OnboardingCard: "mail_account" | "own_domain";
|
|
708
|
+
/** @enum {string} */
|
|
709
|
+
OrganicCollection: "bin" | "optional_bin" | "none";
|
|
710
|
+
/** @enum {string} */
|
|
711
|
+
OwnConsumptionTradeClass: "bakery" | "butcher" | "restaurant_cold_food" | "restaurant_cold_and_warm_food" | "beverage_retail" | "cafe_and_confectionery" | "dairy_retail" | "grocery_retail" | "produce_retail";
|
|
712
|
+
/** @enum {string} */
|
|
713
|
+
OwnerTransferType: "withdrawal" | "deposit" | "goods_private_use" | "private_share_of_expense";
|
|
714
|
+
/** @enum {string} */
|
|
715
|
+
OwnershipCapacity: "shareholder" | "general_partner" | "limited_partner";
|
|
716
|
+
/** @enum {string} */
|
|
717
|
+
PackagingCollection: "yellow_bag" | "yellow_bin" | "recycling_bin";
|
|
718
|
+
/** @enum {string} */
|
|
719
|
+
PaperCollection: "bin" | "bundle" | "container";
|
|
720
|
+
/** @enum {string} */
|
|
721
|
+
ParkingSpaceType: "garage" | "parking_space";
|
|
722
|
+
/** @enum {string} */
|
|
723
|
+
PartyGender: "male" | "female" | "neutral";
|
|
724
|
+
/** @enum {string} */
|
|
725
|
+
PartyType: "natural_person" | "legal_entity" | "sole_prop";
|
|
726
|
+
/** @enum {string} */
|
|
727
|
+
PaymentClaimSettlementType: "payment" | "cash_discount" | "write_off" | "correction";
|
|
728
|
+
/** @enum {string} */
|
|
729
|
+
PaymentClaimSide: "receivable" | "payable";
|
|
730
|
+
/** @enum {string} */
|
|
731
|
+
PaymentClaimStatus: "open" | "partially_settled" | "settled" | "written_off" | "cancelled";
|
|
732
|
+
/** @enum {string} */
|
|
733
|
+
PaymentClaimType: "invoice" | "interest_statement" | "rent" | "renter_charge" | "default_interest" | "dunning_fee" | "credit_balance" | "deposit";
|
|
734
|
+
/** @enum {string} */
|
|
735
|
+
PaymentFrequency: "monthly" | "quarterly" | "annually" | "at_maturity";
|
|
736
|
+
/** @enum {string} */
|
|
737
|
+
PaymentMethod: "bank_transfer" | "cash";
|
|
738
|
+
/** @enum {string} */
|
|
739
|
+
PermanentExtensionDecision: "granted" | "revoked";
|
|
740
|
+
/** @enum {string} */
|
|
741
|
+
PersonalAnnualReviewStatus: "upcoming" | "open" | "frozen";
|
|
742
|
+
/** @enum {string} */
|
|
743
|
+
PlatformRole: "platform_maintainer" | "data_scientist";
|
|
744
|
+
/** @enum {string} */
|
|
745
|
+
PriorYearFigureType: "account_balance" | "euer_line" | "taxonomy_position" | "bwa_line";
|
|
746
|
+
/** @enum {string} */
|
|
747
|
+
ProfitDeterminationMethod: "balance_sheet_comparison" | "cash_basis";
|
|
748
|
+
/** @enum {string} */
|
|
749
|
+
PropertyDefectStatus: "open" | "remedied";
|
|
750
|
+
/** @enum {string} */
|
|
751
|
+
PropertyKeyCopyStatus: "in_circulation" | "lost";
|
|
752
|
+
/** @enum {string} */
|
|
753
|
+
PropertyKeyRingColor: "black" | "red" | "yellow" | "white" | "green" | "blue" | "orange" | "grey";
|
|
754
|
+
/** @enum {string} */
|
|
755
|
+
PropertyKeyRingRemovalReason: "no_longer_fits" | "held";
|
|
756
|
+
/** @enum {string} */
|
|
757
|
+
PropertyKeyType: "front_door" | "apartment_door" | "room_door" | "master" | "mailbox" | "cellar" | "attic" | "garage" | "bicycle_storage" | "laundry_room" | "gate" | "other";
|
|
758
|
+
/** @enum {string} */
|
|
759
|
+
PropertyShareScope: "wholeBuilding" | "rentalUnits";
|
|
760
|
+
/** @enum {string} */
|
|
761
|
+
PropertyType: "apartment" | "room" | "single_family_house" | "multi_family_house" | "commercial_unit" | "parking_space" | "storage";
|
|
762
|
+
/** @enum {string} */
|
|
763
|
+
PropertyVanityDomainMode: "label" | "apex";
|
|
764
|
+
/** @enum {string} */
|
|
765
|
+
PropertyVanityHostStatus: "awaiting_dns" | "certifying" | "live" | "failed";
|
|
766
|
+
/** @enum {string} */
|
|
767
|
+
QuestionnairePersonField: "first_name" | "date_of_birth" | "address" | "capacity" | "profit_share" | "legal_form" | "partners";
|
|
768
|
+
/** @enum {string} */
|
|
769
|
+
QuestionnairePersonRole: "owner" | "representative" | "shareholder" | "partner";
|
|
770
|
+
/** @enum {string} */
|
|
771
|
+
ReconciliationItemStatus: "open" | "resolved" | "dismissed";
|
|
772
|
+
/** @enum {string} */
|
|
773
|
+
ReconciliationItemType: "direction_mismatch" | "period_closed" | "manual_entry_found" | "ambiguous_match" | "amount_exceeds_obligation" | "missing_exchange_rate" | "counterparty_recorded_payment" | "facility_limit_exceeded" | "ambiguous_payment_claim" | "payment_claim_settled";
|
|
774
|
+
/** @enum {string} */
|
|
775
|
+
ReconciliationResolution: "adopt" | "reverse_and_replace" | "keep_both" | "retry" | "acknowledge" | "record_payment" | "book_at_rate";
|
|
776
|
+
/** @enum {string} */
|
|
777
|
+
RecordPlatformInvoicePaymentOutcome: "recorded" | "already_recorded" | "other_currency";
|
|
778
|
+
/** @enum {string} */
|
|
779
|
+
RecyclingCentreScheduleReading: "confirmed" | "changed" | "not_found" | "unreachable" | "no_source";
|
|
780
|
+
/** @enum {string} */
|
|
781
|
+
RecyclingCentreType: "container_site" | "recycling_centre";
|
|
782
|
+
/** @enum {string} */
|
|
783
|
+
RelationshipType: "spouse" | "fiance" | "parent" | "child" | "sibling" | "in_law_direct" | "sibling_child" | "sibling_spouse" | "spouse_sibling" | "parent_sibling" | "foster_parent" | "foster_child" | "business_partner" | "affiliated_entity";
|
|
784
|
+
/** @enum {string} */
|
|
785
|
+
Religion: "catholic" | "protestant" | "jewish" | "muslim" | "hindu" | "none" | "other";
|
|
786
|
+
/** @enum {string} */
|
|
787
|
+
ReligionTaxAffiliation: "vd" | "ev" | "rk" | "ak" | "fa" | "fb" | "fg" | "fm" | "fr" | "fs" | "ib" | "il" | "is" | "iw" | "jd" | "jh" | "lt" | "ob" | "rf" | "un";
|
|
788
|
+
/** @enum {string} */
|
|
789
|
+
RentalDepositEntryType: "payment" | "interest" | "deduction" | "return" | "correction";
|
|
790
|
+
/** @enum {string} */
|
|
791
|
+
RentalDepositStatementType: "interim" | "final";
|
|
792
|
+
/** @enum {string} */
|
|
793
|
+
RentalDepositStatus: "collecting" | "held" | "settling" | "settled";
|
|
794
|
+
/** @enum {string} */
|
|
795
|
+
RentalDirection: "landlord" | "renter";
|
|
796
|
+
/** @enum {string} */
|
|
797
|
+
RentalDocumentReminderOccasion: "armed" | "reminder";
|
|
798
|
+
/** @enum {string} */
|
|
799
|
+
RentalDocumentRequestStatus: "requested" | "uploaded" | "confirmed" | "rejected";
|
|
800
|
+
/** @enum {string} */
|
|
801
|
+
RentalDocumentType: "enrolment_certificate" | "registration_certificate" | "income_proof" | "other";
|
|
802
|
+
/** @enum {string} */
|
|
803
|
+
RentalPremisesUse: "residential" | "commercial";
|
|
804
|
+
/** @enum {string} */
|
|
805
|
+
RentalRentDueDateRule: "third_working_day_in_advance" | "first_day_in_advance" | "three_days_before_month_end" | "end_of_month_in_arrears";
|
|
806
|
+
/** @enum {string} */
|
|
807
|
+
RentalStatus: "draft" | "active" | "terminated" | "expired" | "cancelled";
|
|
808
|
+
/** @enum {string} */
|
|
809
|
+
RentalTermModel: "open_ended" | "fixed" | "semester";
|
|
810
|
+
/** @enum {string} */
|
|
811
|
+
RentalType: "main" | "sublease";
|
|
812
|
+
/** @enum {string} */
|
|
813
|
+
RentalUnitConstituentType: "floor" | "apartment" | "room" | "bed" | "parkingSpace";
|
|
814
|
+
/** @enum {string} */
|
|
815
|
+
RentalUnitObjectNoun: "flat" | "room" | "bed" | "floor" | "parkingSpace" | "premises";
|
|
816
|
+
/** @enum {string} */
|
|
817
|
+
RenterChargeSettlementMethod: "deposit_deduction" | "invoice" | "payment";
|
|
818
|
+
/** @enum {string} */
|
|
819
|
+
RenterChargeStatus: "open" | "settled" | "waived";
|
|
820
|
+
/** @enum {string} */
|
|
821
|
+
RenterChargeType: "lost_key" | "defect" | "cleaning" | "other";
|
|
822
|
+
/** @enum {string} */
|
|
823
|
+
RenterHubAnnouncementType: "maintenance" | "viewing" | "general" | "reminder" | "house_rules_update" | "formal_warning";
|
|
824
|
+
/** @enum {string} */
|
|
825
|
+
RenterHubChannelType: "house" | "household" | "direct";
|
|
826
|
+
/** @enum {string} */
|
|
827
|
+
ReportView: "isolated" | "consolidated";
|
|
828
|
+
/** @enum {string} */
|
|
829
|
+
RepresentationAuthority: "sole" | "joint" | "none";
|
|
830
|
+
/** @enum {string} */
|
|
831
|
+
RepresentativeCapacity: "managing_director" | "board_member" | "authorized_signatory" | "partner" | "liquidator";
|
|
832
|
+
/** @enum {string} */
|
|
833
|
+
RequestContactEmailChangeOutcome: "requested" | "unchanged";
|
|
834
|
+
/** @enum {string} */
|
|
835
|
+
ResidualCollection: "bin" | "fee_bag";
|
|
836
|
+
/** @enum {string} */
|
|
837
|
+
Role: "superadmin" | "admin";
|
|
838
|
+
/** @enum {string} */
|
|
839
|
+
SalesAccountSegment: "solo" | "small" | "mid_market" | "enterprise";
|
|
840
|
+
/** @enum {string} */
|
|
841
|
+
SalesAccountSource: "outbound" | "inbound" | "referral" | "event" | "partner";
|
|
842
|
+
/** @enum {string} */
|
|
843
|
+
SalesActivityType: "note" | "call" | "email" | "meeting" | "stage_change" | "value_change" | "owner_change";
|
|
844
|
+
/** @enum {string} */
|
|
845
|
+
ScanPageContentType: "image/jpeg" | "image/png";
|
|
846
|
+
/** @enum {string} */
|
|
847
|
+
ExtractionStatus: "pending" | "processing" | "completed" | "failed";
|
|
848
|
+
/** @enum {string} */
|
|
849
|
+
SemesterContinuation: "ends" | "renter_may_leave" | "rolling";
|
|
850
|
+
/** @enum {string} */
|
|
851
|
+
SemesterStart: "october" | "september" | "august";
|
|
852
|
+
/** @enum {string} */
|
|
853
|
+
SenderNameSource: "official" | "legal" | "brand" | "short";
|
|
854
|
+
/** @enum {string} */
|
|
855
|
+
SettlePlatformInvoicePaymentOutcome: "settled" | "already_settled" | "no_payment" | "no_invoice" | "nothing_open";
|
|
856
|
+
/** @enum {string} */
|
|
857
|
+
ShareCapitalContribution: "cash" | "in_kind";
|
|
858
|
+
/** @enum {string} */
|
|
859
|
+
SidebarKey: "rental-editor:contract-terms" | "loan-editor:contract-terms";
|
|
860
|
+
/** @enum {string} */
|
|
861
|
+
SignatureStyle: "name" | "team" | "team_of";
|
|
862
|
+
/** @enum {string} */
|
|
863
|
+
SilentPartnershipType: "typical" | "atypical";
|
|
864
|
+
/** @enum {string} */
|
|
865
|
+
SlotMode: "interval" | "duration";
|
|
866
|
+
/** @enum {string} */
|
|
867
|
+
SnapshotPeriod: "opening" | "annual" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "41" | "42" | "43" | "44" | "21" | "22";
|
|
868
|
+
/** @enum {string} */
|
|
869
|
+
SortOrder: "asc" | "desc";
|
|
870
|
+
/** @enum {string} */
|
|
871
|
+
StatementNature: "income" | "expense";
|
|
872
|
+
/** @enum {string} */
|
|
873
|
+
SubleaseDepositMethod: "sub_landlord_deposit_liable" | "own_deposit" | "layered_deposits";
|
|
874
|
+
/** @enum {string} */
|
|
875
|
+
SubleaseRentRouting: "direct_to_head_landlord" | "via_sub_landlord_capped" | "via_sub_landlord_uncapped";
|
|
876
|
+
/** @enum {string} */
|
|
877
|
+
SubleaseRole: "headLandlord" | "subLandlord";
|
|
878
|
+
/** @enum {string} */
|
|
879
|
+
TaxAccountAuthorizationStatus: "requested" | "active" | "refused" | "revoked";
|
|
880
|
+
/** @enum {string} */
|
|
881
|
+
TaxAccountEntryType: "assessment" | "prepayment" | "payment" | "refund" | "late_fee" | "interest" | "missing_return" | "open" | "other";
|
|
882
|
+
/** @enum {string} */
|
|
883
|
+
TaxAccountQueryType: "O" | "I" | "ZS";
|
|
884
|
+
/** @enum {string} */
|
|
885
|
+
TaxAccountStatementSource: "eric" | "mein_elster";
|
|
886
|
+
/** @enum {string} */
|
|
887
|
+
TaxAccountTaxType: "income_tax" | "corporate_tax" | "trade_tax" | "vat" | "solidarity_surcharge" | "church_tax" | "wage_tax" | "other";
|
|
888
|
+
/** @enum {string} */
|
|
889
|
+
TaxAdjustmentCategory: "kst_vga" | "kst_statutory_purposes" | "kst_corp_tax_foreign" | "kst_supervisory_board_50pct" | "kst_gifts_over_50" | "kst_entertainment_30pct" | "kst_guest_houses" | "kst_hunting_fishing_sailing" | "kst_excessive_representation" | "kst_fines_penalties" | "kst_bribes" | "kst_8b_abs3" | "kst_8b_abs5" | "kst_interest_barrier" | "kst_tax_free_dividends" | "kst_tax_free_capital_gains" | "kst_hidden_contributions" | "kst_deductible_donations" | "kst_loss_carryforward" | "gewst_interest_25pct" | "gewst_rent_movables" | "gewst_rent_immovables" | "gewst_licensing_fees" | "gewst_silent_partner" | "gewst_real_property" | "gewst_partnership_profit" | "gewst_dividends" | "est_entertainment_30pct" | "est_gifts_over_50" | "est_commute_excess" | "est_fines_penalties" | "est_other_non_deductible" | "est_trade_tax" | "est_transition_result" | "est_7g_add_back" | "est_transition_loss" | "est_7g_investment_deduction";
|
|
890
|
+
/** @enum {string} */
|
|
891
|
+
TaxAdjustmentType: "hinzurechnung" | "kuerzung";
|
|
892
|
+
/** @enum {string} */
|
|
893
|
+
TaxAssessmentSource: "manual" | "extraction" | "tax_account" | "bescheid_data" | "diva";
|
|
894
|
+
/** @enum {string} */
|
|
895
|
+
TaxAssessmentType: "income_tax" | "trade_tax_base_amount" | "trade_tax_loss_carryforward" | "separate_determination" | "vat" | "corporate_tax";
|
|
896
|
+
/** @enum {string} */
|
|
897
|
+
TaxAssessmentValueKey: "income_from_business" | "taxable_income" | "assessed_tax" | "trade_tax_base_amount" | "loss_carryforward" | "vat_payable" | "prepayments_set";
|
|
898
|
+
/** @enum {string} */
|
|
899
|
+
TaxClass: "1" | "2" | "3" | "4" | "5" | "6";
|
|
900
|
+
/** @enum {string} */
|
|
901
|
+
TaxOfficeLetterType: "copy_request" | "tax_account_statement_request";
|
|
902
|
+
/** @enum {string} */
|
|
903
|
+
TaxReconciliationItemSource: "manual" | "fixed_asset_register" | "provision" | "carried_forward";
|
|
904
|
+
/** @enum {string} */
|
|
905
|
+
TaxReconciliationItemType: "reclassification" | "change_value" | "both";
|
|
906
|
+
/** @enum {string} */
|
|
907
|
+
TaxRegistrationGap: "not_applicable" | "answers_missing" | "tax_office_missing" | "activity_missing" | "address_missing" | "bank_account_missing" | "deed_date_missing" | "share_capital_missing" | "representatives_missing" | "shareholders_missing" | "owner_missing" | "owner_tax_identification_number_missing" | "religion_missing" | "profit_determination_missing" | "partners_missing" | "fully_liable_partner_missing" | "profit_shares_incomplete";
|
|
908
|
+
/** @enum {string} */
|
|
909
|
+
TaxType: "vat" | "kst" | "soli" | "gewst" | "est";
|
|
910
|
+
/** @enum {string} */
|
|
911
|
+
TaxonomyMappingSource: "datev_edition" | "manual";
|
|
912
|
+
/** @enum {string} */
|
|
913
|
+
TaxonomyMappingType: "direct" | "auffang" | "not_assignable";
|
|
914
|
+
/** @enum {string} */
|
|
915
|
+
TemporaryOccasion: "holiday" | "own_home_renovation" | "work_assignment" | "study_or_training_stay" | "other";
|
|
916
|
+
/** @enum {string} */
|
|
917
|
+
TermType: "fixed" | "indefinite";
|
|
918
|
+
/** @enum {string} */
|
|
919
|
+
TransitionNextAction: "set_tax_number" | "complete" | "request_notice_delivery" | "set_share_capital" | "record_opening_position" | "open_fixed_assets" | "verify_elster_access" | "revoke_advisor_authorization";
|
|
920
|
+
/** @enum {string} */
|
|
921
|
+
TransitionStepGroup: "tax_office_access" | "advisor_documents" | "opening_position" | "catch_up";
|
|
922
|
+
/** @enum {string} */
|
|
923
|
+
TransitionStepType: "tax_number" | "elster_access" | "advisor_authorization_revoked" | "notice_delivery" | "share_capital" | "opening_position" | "fixed_asset_register";
|
|
924
|
+
/** @enum {string} */
|
|
925
|
+
VatCategory: "standard" | "reduced" | "accommodation" | "zero_rated" | "exempt" | "exempt_with_credit" | "reverse_charge" | "intra_community_acquisition" | "intra_community_supply" | "import" | "export";
|
|
926
|
+
/** @enum {string} */
|
|
927
|
+
VatCharacter: "liable" | "small_business" | "exempt";
|
|
928
|
+
/** @enum {string} */
|
|
929
|
+
VatDirection: "output" | "input";
|
|
930
|
+
/** @enum {string} */
|
|
931
|
+
VatTaxationMethod: "accrual" | "cash";
|
|
932
|
+
/** @enum {string} */
|
|
933
|
+
WasteFraction: "packaging" | "paper" | "organic" | "residual";
|
|
934
|
+
/** @enum {string} */
|
|
935
|
+
WasteHolder: "bag" | "bin" | "container" | "none";
|
|
936
|
+
/** @enum {string} */
|
|
937
|
+
WasteMaterial: "glass" | "paper_cardboard" | "packaging" | "electronics" | "batteries" | "bulbs" | "hazardous" | "bulky" | "green_waste" | "textiles" | "metal" | "wood" | "cork" | "construction_rubble" | "used_oil";
|
|
938
|
+
/** @enum {string} */
|
|
939
|
+
WizardKey: "rolodex-share-candidates-v1" | "contracts-fixed-term-reasons-v1" | "contracts-loan-editor-tour-v1" | "platform-fixed-term-reasons-v1" | "platform-house-rule-blocks-v1" | "settings-brand-icons-v1" | "contracts-rental-deposit-v1" | "properties-shares-v1" | "platform-waste-collection-areas-v1" | "platform-waste-management-v1" | "settings-own-domains-v1" | "settings-own-email-addresses-v1";
|
|
940
|
+
/** @enum {string} */
|
|
941
|
+
WrittenFormStatute: "de_written_form" | "ch_written_form";
|
|
942
|
+
/** @enum {string} */
|
|
943
|
+
AuditActorType: "user" | "system";
|
|
944
|
+
/** @enum {string} */
|
|
945
|
+
AuditCategory: "documents" | "inbox" | "team" | "entity";
|
|
946
|
+
/** @enum {string} */
|
|
947
|
+
Permission: "iam:human" | "iam:robot" | "m2m:ping" | "team:view" | "team:invite" | "team:remove" | "team:update" | "team:revoke" | "roles:view" | "roles:create" | "roles:update" | "roles:delete" | "roles:assign" | "groups:view" | "groups:create" | "groups:update" | "groups:delete" | "entity:view" | "entity:update" | "entity:transfer" | "platform:view" | "plans:view" | "plans:create" | "plans:update" | "plans:delete" | "features:view" | "features:create" | "features:update" | "features:delete" | "users:delete" | "reporting:view" | "reporting:close-snapshot" | "reporting:manage" | "inbox:view" | "inbox:manage" | "inbox:send" | "invoice:view" | "invoice:manage" | "document:view" | "document:manage" | "chat:use" | "audit:view" | "rolodex:view" | "rolodex:manage" | "loan:view" | "loan:manage" | "loan:conclude" | "loan:update-plate" | "rental:view" | "rental:manage" | "rental:conclude" | "rental:update-plate" | "property:read" | "property:let" | "property:manage" | "property:manage-keys" | "property:manage-defects" | "journal:view" | "journal:book" | "fixed-asset:view" | "fixed-asset:manage" | "transaction:view" | "transaction:manage" | "bank-account:view" | "bank-account:manage" | "access-grant:view" | "access-grant:offer" | "access-grant:respond" | "access-grant:revoke" | "access-grant:revise" | "business-card:read" | "contract:read" | "contract:read-history" | "party:read" | "party:read-address" | "party:read-designation" | "party:read-register" | "party:read-tax" | "party:read-channels" | "party:read-people" | "party:manage" | "ml:view-training-data" | "ml:export-training-data" | "ml:train-model" | "ml:deploy-model" | "ml:view-model-metrics" | "ml:manage-models" | "sales:view" | "sales:manage" | "sales:view-all";
|
|
948
|
+
/** @enum {string} */
|
|
949
|
+
FeatureCategory: "audit" | "auth" | "billing" | "collaboration" | "core" | "documents" | "entities" | "integrations" | "invoices" | "journal" | "marketing" | "metrics" | "payroll" | "platform" | "properties" | "reporting" | "settings" | "transactions" | "wealth";
|
|
950
|
+
/** @enum {string} */
|
|
951
|
+
FeatureGate: "loan-contracts" | "invoicing" | "renter-hub" | "vanity-domain" | "vanity-email" | "vanity-mailbox" | "vanity-url" | "renter-chat" | "cleaning-schedule" | "renter-documents" | "whitelabel-branding" | "payment-reminders" | "property-management";
|
|
952
|
+
/** @enum {string} */
|
|
953
|
+
FeatureStatus: "backlog" | "in_development" | "released";
|
|
954
|
+
/** @enum {string} */
|
|
955
|
+
ModuleScope: "account" | "tenant";
|
|
956
|
+
/** @enum {string} */
|
|
957
|
+
PendingSuperadminTransferStatus: "pending_invite" | "accepted_awaiting_payment" | "completed" | "cancelled" | "expired";
|
|
958
|
+
/** @enum {string} */
|
|
959
|
+
BandMeasure: "revenue" | "balance_sheet_total";
|
|
960
|
+
/** @enum {string} */
|
|
961
|
+
MentionEntityType: "plan";
|
|
962
|
+
/** @enum {string} */
|
|
963
|
+
MentionType: "link" | "value";
|
|
964
|
+
/** @enum {string} */
|
|
965
|
+
ChatChannelType: "team" | "direct" | "subject" | "external";
|
|
966
|
+
/** @enum {string} */
|
|
967
|
+
ChatMemberRole: "owner" | "member";
|
|
968
|
+
/** @enum {string} */
|
|
969
|
+
DocumentAccessType: "view" | "download" | "sent";
|
|
970
|
+
/** @enum {string} */
|
|
971
|
+
DocumentClassificationState: "unclassified" | "proposed" | "confirmed";
|
|
972
|
+
/** @enum {string} */
|
|
973
|
+
DocumentOwnerType: "invoice" | "loan" | "bank_statement_import" | "dunning_notice" | "payment" | "asset" | "party" | "entity" | "contract" | "order" | "report" | "snapshot" | "filing" | "handover_item" | "journal_import" | "datev_export_file" | "rental" | "message" | "formation_step" | "entity_decision";
|
|
974
|
+
/** @enum {string} */
|
|
975
|
+
DocumentSource: "upload" | "scan" | "email" | "elster" | "generated";
|
|
976
|
+
/** @enum {string} */
|
|
977
|
+
DocumentStatus: "active" | "frozen" | "deleted";
|
|
978
|
+
/** @enum {string} */
|
|
979
|
+
Direction: "left" | "right" | "up" | "down";
|
|
980
|
+
/** @enum {string} */
|
|
981
|
+
DirectionX: "left" | "right";
|
|
982
|
+
/** @enum {string} */
|
|
983
|
+
DirectionY: "up" | "down";
|
|
984
|
+
/** @enum {string} */
|
|
985
|
+
Orientation: "vertical" | "horizontal";
|
|
986
|
+
/** @enum {string} */
|
|
987
|
+
PositionCenter: "center";
|
|
988
|
+
/** @enum {string} */
|
|
989
|
+
PositionCorner: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
990
|
+
/** @enum {string} */
|
|
991
|
+
PositionEdge: "start" | "end";
|
|
992
|
+
/** @enum {string} */
|
|
993
|
+
Position: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center";
|
|
994
|
+
/** @enum {string} */
|
|
995
|
+
PositionY: "top" | "bottom";
|
|
996
|
+
/** @enum {string} */
|
|
997
|
+
MemberInvitationStatus: "pending" | "accepted" | "revoked" | "declined";
|
|
998
|
+
/** @enum {string} */
|
|
999
|
+
EntityUserStatus: "pending" | "confirmed" | "revoked";
|
|
1000
|
+
/** @enum {string} */
|
|
1001
|
+
InvoiceStatus: "draft" | "booked" | "paid" | "cancelled" | "overdue" | "issued";
|
|
1002
|
+
/** @enum {string} */
|
|
1003
|
+
InvoiceType: "standard" | "partial" | "final" | "correction";
|
|
1004
|
+
/** @enum {string} */
|
|
1005
|
+
JournalEntrySource: "manual" | "invoice" | "payment" | "depreciation" | "loan" | "reversal" | "year_end_closing" | "owner_transfer" | "rental_deposit" | "dunning" | "write_off" | "import" | "opening_position" | "chart_switch" | "silent_partnership";
|
|
1006
|
+
/** @enum {string} */
|
|
1007
|
+
JournalEntryStatus: "draft" | "booked" | "reversed";
|
|
1008
|
+
/** @enum {string} */
|
|
1009
|
+
AccountMappingType: "accounts_receivable" | "accounts_payable" | "bank_default" | "cash_default" | "vat_input" | "vat_output" | "vat_input_reduced" | "vat_output_reduced" | "vat_prepayment" | "revenue_default" | "revenue_reduced" | "expense_default" | "depreciation_expense" | "accumulated_depreciation" | "asset_disposal_gain" | "asset_disposal_loss" | "loan_receivable" | "loan_payable" | "loan_receivable_shareholder" | "loan_receivable_affiliated" | "loan_receivable_third_party" | "loan_payable_shareholder" | "loan_payable_affiliated" | "loan_payable_third_party" | "loan_payable_shareholder_short" | "loan_payable_shareholder_medium" | "loan_payable_shareholder_long" | "loan_payable_affiliated_short" | "loan_payable_affiliated_medium" | "loan_payable_affiliated_long" | "loan_payable_third_party_short" | "loan_payable_third_party_medium" | "loan_payable_third_party_long" | "loan_receivable_shareholder_short" | "loan_receivable_shareholder_medium" | "loan_receivable_shareholder_long" | "loan_receivable_affiliated_short" | "loan_receivable_affiliated_medium" | "loan_receivable_affiliated_long" | "loan_receivable_third_party_short" | "loan_receivable_third_party_medium" | "loan_receivable_third_party_long" | "loan_payable_general_partner" | "loan_payable_limited_partner" | "loan_receivable_general_partner" | "loan_receivable_limited_partner" | "loan_payable_general_partner_short" | "loan_payable_general_partner_medium" | "loan_payable_general_partner_long" | "loan_payable_limited_partner_short" | "loan_payable_limited_partner_medium" | "loan_payable_limited_partner_long" | "loan_receivable_general_partner_short" | "loan_receivable_general_partner_medium" | "loan_receivable_general_partner_long" | "loan_receivable_limited_partner_short" | "loan_receivable_limited_partner_medium" | "loan_receivable_limited_partner_long" | "silent_contribution_typical" | "silent_contribution_typical_short" | "silent_contribution_typical_medium" | "silent_contribution_typical_long" | "silent_contribution_atypical" | "silent_contribution_atypical_short" | "silent_contribution_atypical_medium" | "silent_contribution_atypical_long" | "loan_payable_silent_partner" | "loan_payable_silent_partner_short" | "loan_payable_silent_partner_medium" | "loan_payable_silent_partner_long" | "loan_receivable_typical_silent_partner" | "loan_receivable_typical_silent_partner_short" | "loan_receivable_typical_silent_partner_long" | "silent_profit_share_typical" | "silent_profit_share_atypical" | "silent_profit_share_payable" | "loan_receivable_director" | "loan_receivable_director_short" | "loan_receivable_director_long" | "loan_payable_bank" | "loan_payable_bank_short" | "loan_payable_bank_medium" | "loan_payable_bank_long" | "interest_income" | "interest_expense" | "retained_earnings" | "private_withdrawals" | "private_contributions" | "own_consumption_goods_full_rate" | "own_consumption_goods_reduced_rate" | "capital_in_business" | "private_health_insurance_statutory" | "private_health_insurance_private" | "private_care_insurance_statutory" | "private_care_insurance_private" | "private_pension_insurance_basic" | "private_unemployment_insurance" | "private_liability_and_accident_insurance" | "private_church_tax" | "private_donations_charitable" | "private_donations_political_party" | "loss_carried_forward" | "suspense" | "subscribed_capital" | "outstanding_contributions_uncalled" | "called_up_capital_receivable" | "capital_reserve" | "legal_reserve" | "voluntary_reserve" | "fixed_asset_land" | "fixed_asset_building_residential" | "fixed_asset_building_commercial" | "building_savings_balance" | "bank_fee_expense" | "other_operating_expense" | "legal_consulting_expense" | "software_expense" | "utility_expense_energy" | "utility_expense_heating" | "utility_expense_cleaning" | "utility_expense_maintenance" | "utility_expense_insurance" | "utility_expense_property_tax" | "gwg_expense_immediate" | "loan_receivable_participation" | "loan_receivable_participation_short" | "loan_receivable_participation_medium" | "loan_receivable_participation_long" | "loan_payable_participation" | "loan_payable_participation_short" | "loan_payable_participation_medium" | "loan_payable_participation_long" | "interest_income_affiliated" | "interest_income_long_term_loans" | "interest_income_long_term_loans_affiliated" | "interest_expense_affiliated" | "interest_expense_shareholder" | "loan_fee_expense" | "loan_fee_income" | "accrued_interest_receivable" | "accrued_interest_payable" | "rental_deposit_receivable" | "rental_deposit_payable" | "other_operating_income" | "cash_discount_granted" | "bad_debt_expense" | "inventory" | "prepaid_expenses" | "deferred_income" | "owner_capital";
|
|
1010
|
+
/** @enum {string} */
|
|
1011
|
+
AccountType: "asset" | "liability" | "equity" | "revenue" | "expense" | "tax";
|
|
1012
|
+
/** @enum {string} */
|
|
1013
|
+
XbrlHgbPositionType: "mussfeld" | "kannfeld" | "summenmussfeld" | "auffangposition";
|
|
1014
|
+
/** @enum {string} */
|
|
1015
|
+
XbrlNotPermittedFor: "fiscal" | "commercial" | "tax_office_filing";
|
|
1016
|
+
/** @enum {string} */
|
|
1017
|
+
XbrlPeriodType: "instant" | "duration";
|
|
1018
|
+
/** @enum {string} */
|
|
1019
|
+
TriggerEvent: "invoice_booked_outgoing" | "invoice_booked_incoming" | "invoice_cancelled_outgoing" | "invoice_cancelled_incoming" | "payment_allocated_incoming" | "payment_allocated_outgoing" | "payment_cancelled" | "depreciation_scheduled" | "asset_created" | "asset_disposed" | "loan_drawdown" | "loan_repayment_principal" | "loan_repayment_interest" | "interest_accrual" | "capital_contribution" | "building_savings_payment" | "bank_fee_payment" | "construction_payment" | "property_acquisition" | "formation_expense" | "utility_payment" | "gwg_purchase" | "loan_fee" | "loan_maturity_reclassification" | "rental_deposit_formation" | "rental_deposit_payment" | "rental_deposit_interest" | "rental_deposit_retention" | "rental_deposit_return" | "cash_discount_granted" | "default_interest_charged" | "dunning_fee_charged" | "receivable_written_off" | "revenue_received" | "expense_paid" | "till_day_closed";
|
|
1020
|
+
/** @enum {string} */
|
|
1021
|
+
AmountSource: "gross_amount" | "net_amount" | "tax_amount" | "payment_amount" | "depreciation_amount" | "principal_amount" | "interest_amount" | "accrued_interest_amount" | "current_interest_amount" | "deposit_amount";
|
|
1022
|
+
/** @enum {string} */
|
|
1023
|
+
TransactionMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "paypal" | "stripe" | "crypto" | "voucher";
|
|
1024
|
+
/** @enum {string} */
|
|
1025
|
+
TransactionStatus: "pending" | "completed" | "failed" | "cancelled";
|
|
1026
|
+
/** @enum {string} */
|
|
1027
|
+
TransactionType: "income" | "expense" | "transfer" | "investment" | "refund" | "loan" | "asset";
|
|
1028
|
+
/** @enum {string} */
|
|
1029
|
+
BankAccountStatus: "active" | "closed";
|
|
1030
|
+
/** @enum {string} */
|
|
1031
|
+
PlatformInvoiceLineType: "plan" | "tenant" | "module" | "module_unit" | "other";
|
|
1032
|
+
};
|
|
1033
|
+
responses: never;
|
|
1034
|
+
parameters: never;
|
|
1035
|
+
requestBodies: never;
|
|
1036
|
+
headers: never;
|
|
1037
|
+
pathItems: never;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
type schemas = components['schemas'];
|
|
1041
|
+
/**
|
|
1042
|
+
* One line of what a platform charged, as its payment provider billed it —
|
|
1043
|
+
* generated-bound to the `PlatformInvoiceLine` component.
|
|
1044
|
+
*/
|
|
1045
|
+
type PlatformInvoiceLine = schemas['PlatformInvoiceLine'];
|
|
1046
|
+
/** The kind of a platform invoice line (plan, tenant, module, …). */
|
|
1047
|
+
type PlatformInvoiceLineType = schemas['PlatformInvoiceLineType'];
|
|
1048
|
+
/**
|
|
1049
|
+
* Whom a platform invoiced, as the platform knows its customer today: its
|
|
1050
|
+
* own reference, legal name, VAT ID, email and invoice address.
|
|
1051
|
+
*/
|
|
1052
|
+
type PlatformInvoiceCustomer = schemas['PlatformInvoiceCustomer'];
|
|
1053
|
+
type ProcessPlatformInvoiceRequest = schemas['ProcessPlatformInvoiceBody'];
|
|
1054
|
+
type ProcessPlatformInvoiceResponse = schemas['ProcessPlatformInvoiceResponse'];
|
|
1055
|
+
type ProcessPlatformInvoicePaymentRequest = schemas['ProcessPlatformInvoicePaymentBody'];
|
|
1056
|
+
type ProcessPlatformInvoicePaymentResponse = schemas['ProcessPlatformInvoicePaymentResponse'];
|
|
1057
|
+
type ProcessPlatformInvoiceVoidRequest = schemas['ProcessPlatformInvoiceVoidBody'];
|
|
1058
|
+
type ProcessPlatformInvoiceVoidResponse = schemas['ProcessPlatformInvoiceVoidResponse'];
|
|
1059
|
+
type ProcessPlatformInvoiceCreditRequest = schemas['ProcessPlatformInvoiceCreditBody'];
|
|
1060
|
+
type ProcessPlatformInvoiceCreditResponse = schemas['ProcessPlatformInvoiceCreditResponse'];
|
|
1061
|
+
/** The entity's own invoice for a platform invoice — number, state and
|
|
1062
|
+
* amounts. */
|
|
1063
|
+
type PlatformInvoice = schemas['FetchPlatformInvoiceResponse'];
|
|
1064
|
+
type FetchOpenPlatformInvoicesRequest = schemas['FetchOpenPlatformInvoicesBody'];
|
|
1065
|
+
type FetchOpenPlatformInvoicesResponse = schemas['FetchOpenPlatformInvoicesResponse'];
|
|
1066
|
+
type PreviewPlatformInvoiceRequest = schemas['FetchPlatformInvoicePreviewBody'];
|
|
1067
|
+
/** The invoice the entity would issue for it, or why it would issue none. */
|
|
1068
|
+
type PreviewPlatformInvoiceResponse = schemas['FetchPlatformInvoicePreviewResponse'];
|
|
1069
|
+
/** The entity's invoice as the invoicing engine would issue it: net, VAT
|
|
1070
|
+
* per rate, gross, and each line. */
|
|
1071
|
+
type PlatformInvoicePreview = schemas['PlatformInvoicePreview'];
|
|
1072
|
+
type PlatformChargeTaxesRequest = schemas['FetchPlatformChargeTaxesBody'];
|
|
1073
|
+
/** The tax the entity puts on each customer's charges, by its key. */
|
|
1074
|
+
type PlatformChargeTaxesResponse = schemas['FetchPlatformChargeTaxesResponse'];
|
|
1075
|
+
/** One customer of a platform: its key, country and whether it is a
|
|
1076
|
+
* consumer. */
|
|
1077
|
+
type PlatformChargeCustomer = schemas['PlatformChargeCustomer'];
|
|
1078
|
+
/** The tax on a customer's charges: rate, contained or added, country. */
|
|
1079
|
+
type PlatformChargeTax = schemas['PlatformChargeTax'];
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* What a platform invoices its customers, handed to the entity that owns
|
|
1083
|
+
* the platform: billionaire issues the entity's own invoice for it, records
|
|
1084
|
+
* its payment and cancels it when the payment provider voids it, or credits
|
|
1085
|
+
* all of it — with its one invoicing engine, which books every step. The
|
|
1086
|
+
* platform asks which of its invoices are still unpaid, for an event it
|
|
1087
|
+
* never handed over.
|
|
1088
|
+
*
|
|
1089
|
+
* The platform's own API (`/platform/invoices`, KLVR-2229): billionaire
|
|
1090
|
+
* acts for the entity that owns the platform, never for an entity the
|
|
1091
|
+
* caller names. The robot needs its grant at that entity.
|
|
1092
|
+
*/
|
|
1093
|
+
declare class PlatformInvoicesResource extends BaseResource {
|
|
1094
|
+
constructor(tokenManager: TokenManager, baseUrl: string);
|
|
1095
|
+
protected rootPath(): string;
|
|
1096
|
+
/**
|
|
1097
|
+
* Hand over what the platform invoiced one of its customers; the entity
|
|
1098
|
+
* issues its own invoice for it. Idempotent on `stripeInvoiceId`.
|
|
1099
|
+
* @param request - The platform's invoice, its lines and its customer
|
|
1100
|
+
* @returns What became of it, and the entity's invoice once issued
|
|
1101
|
+
*/
|
|
1102
|
+
process(request: ProcessPlatformInvoiceRequest): Promise<ProcessPlatformInvoiceResponse>;
|
|
1103
|
+
/**
|
|
1104
|
+
* The tax the entity puts on what the platform charges each of these
|
|
1105
|
+
* customers — by country and whether it is a consumer — so the payment
|
|
1106
|
+
* provider charges exactly what the entity's invoice will say. The
|
|
1107
|
+
* platform computes no tax of its own.
|
|
1108
|
+
* @param request - The customers, each with the platform's own key
|
|
1109
|
+
* @returns Each key's tax, null where the entity charges none
|
|
1110
|
+
*/
|
|
1111
|
+
chargeTaxes(request: PlatformChargeTaxesRequest): Promise<PlatformChargeTaxesResponse>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Preview the invoice the entity would issue for what the platform is
|
|
1114
|
+
* about to charge — composed by billionaire's invoicing engine exactly as
|
|
1115
|
+
* `process` issues it, nothing issued.
|
|
1116
|
+
* @param request - The lines to charge, their currency, the day and the
|
|
1117
|
+
* total the payment provider will charge
|
|
1118
|
+
* @returns The invoice's net, VAT per rate, gross and lines — or why the
|
|
1119
|
+
* entity would issue none
|
|
1120
|
+
*/
|
|
1121
|
+
preview(request: PreviewPlatformInvoiceRequest): Promise<PreviewPlatformInvoiceResponse>;
|
|
1122
|
+
/**
|
|
1123
|
+
* The platform's invoices the entity's books still show as unpaid, the
|
|
1124
|
+
* oldest first, a page at a time — for a follow-up that asks the payment
|
|
1125
|
+
* provider about each and hands a payment or void it missed back through
|
|
1126
|
+
* `processPayment` / `processVoid`.
|
|
1127
|
+
* @param request - The platform (`filters.platform`) and the page
|
|
1128
|
+
* @returns Each invoice with the payment provider's id of the platform's
|
|
1129
|
+
* invoice it documents
|
|
1130
|
+
*/
|
|
1131
|
+
listOpen(request: FetchOpenPlatformInvoicesRequest): Promise<FetchOpenPlatformInvoicesResponse>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Get the entity's invoice for a platform invoice.
|
|
1134
|
+
* @param stripeInvoiceId - The payment provider's id of the platform's invoice
|
|
1135
|
+
* @returns The invoice's number, state and amounts
|
|
1136
|
+
*/
|
|
1137
|
+
get(stripeInvoiceId: string): Promise<PlatformInvoice>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Hand over that a platform invoice was paid; the entity records the
|
|
1140
|
+
* money and settles its invoice. Idempotent on `stripeInvoiceId`.
|
|
1141
|
+
* @param stripeInvoiceId - The payment provider's id of the paid invoice
|
|
1142
|
+
* @param request - When it was paid, and how much
|
|
1143
|
+
*/
|
|
1144
|
+
processPayment(stripeInvoiceId: string, request: ProcessPlatformInvoicePaymentRequest): Promise<ProcessPlatformInvoicePaymentResponse>;
|
|
1145
|
+
/**
|
|
1146
|
+
* Hand over that the payment provider voided a platform invoice; the
|
|
1147
|
+
* entity cancels its invoice for it.
|
|
1148
|
+
* @param stripeInvoiceId - The payment provider's id of the voided invoice
|
|
1149
|
+
* @param request - When it was voided
|
|
1150
|
+
*/
|
|
1151
|
+
processVoid(stripeInvoiceId: string, request: ProcessPlatformInvoiceVoidRequest): Promise<ProcessPlatformInvoiceVoidResponse>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Hand over a credit note the payment provider issued for a platform
|
|
1154
|
+
* invoice — money back to the card, a credit on the customer's balance.
|
|
1155
|
+
* One for all of it cancels the entity's invoice, and what the customer
|
|
1156
|
+
* had paid becomes their credit; one for part of it is answered
|
|
1157
|
+
* `partial_credit` and changes nothing.
|
|
1158
|
+
* @param stripeInvoiceId - The payment provider's id of the credited invoice
|
|
1159
|
+
* @param request - The credit note, when it was issued and what it takes back
|
|
1160
|
+
*/
|
|
1161
|
+
processCredit(stripeInvoiceId: string, request: ProcessPlatformInvoiceCreditRequest): Promise<ProcessPlatformInvoiceCreditResponse>;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
interface BLNRClientConfig {
|
|
1165
|
+
clientId: string;
|
|
1166
|
+
clientSecret: string;
|
|
1167
|
+
entityId?: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Base URL for API requests
|
|
1170
|
+
* @default "https://billionaire.sh/api"
|
|
1171
|
+
*/
|
|
1172
|
+
baseUrl?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Machine-to-machine token endpoint. The billionaire server hosts user
|
|
1175
|
+
* session routes under `/auth/*` and robot-account M2M token exchange
|
|
1176
|
+
* under `/m2m/token`; the SDK is exclusively an M2M consumer, so the
|
|
1177
|
+
* default points at the latter.
|
|
1178
|
+
* @default "${baseUrl}/m2m/token"
|
|
1179
|
+
*/
|
|
1180
|
+
tokenUrl?: string;
|
|
1181
|
+
}
|
|
1182
|
+
declare class BLNRClient {
|
|
1183
|
+
platformInvoices: PlatformInvoicesResource;
|
|
1184
|
+
private readonly baseUrl;
|
|
1185
|
+
private readonly tokenManager;
|
|
1186
|
+
constructor(config: BLNRClientConfig);
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export { BLNRClient };
|
|
1190
|
+
export type { BLNRClientConfig, FetchOpenPlatformInvoicesRequest as BLNRFetchOpenPlatformInvoicesRequest, FetchOpenPlatformInvoicesResponse as BLNRFetchOpenPlatformInvoicesResponse, PlatformChargeCustomer as BLNRPlatformChargeCustomer, PlatformChargeTax as BLNRPlatformChargeTax, PlatformChargeTaxesRequest as BLNRPlatformChargeTaxesRequest, PlatformChargeTaxesResponse as BLNRPlatformChargeTaxesResponse, PlatformInvoice as BLNRPlatformInvoice, PlatformInvoiceCustomer as BLNRPlatformInvoiceCustomer, PlatformInvoiceLine as BLNRPlatformInvoiceLine, PlatformInvoiceLineType as BLNRPlatformInvoiceLineType, PlatformInvoicePreview as BLNRPlatformInvoicePreview, PreviewPlatformInvoiceRequest as BLNRPreviewPlatformInvoiceRequest, PreviewPlatformInvoiceResponse as BLNRPreviewPlatformInvoiceResponse, ProcessPlatformInvoiceCreditRequest as BLNRProcessPlatformInvoiceCreditRequest, ProcessPlatformInvoiceCreditResponse as BLNRProcessPlatformInvoiceCreditResponse, ProcessPlatformInvoicePaymentRequest as BLNRProcessPlatformInvoicePaymentRequest, ProcessPlatformInvoicePaymentResponse as BLNRProcessPlatformInvoicePaymentResponse, ProcessPlatformInvoiceRequest as BLNRProcessPlatformInvoiceRequest, ProcessPlatformInvoiceResponse as BLNRProcessPlatformInvoiceResponse, ProcessPlatformInvoiceVoidRequest as BLNRProcessPlatformInvoiceVoidRequest, ProcessPlatformInvoiceVoidResponse as BLNRProcessPlatformInvoiceVoidResponse };
|