@billionaire-sh/node-sdk 0.0.0-stage → 1.0.0

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.
@@ -0,0 +1,1441 @@
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
+ /** PlatformInvoiceCustomer */
72
+ PlatformInvoiceCustomer: {
73
+ /** @description The platform's own reference of its customer (a tenant's id) */
74
+ reference: string;
75
+ partyType: components["schemas"]["PartyType"];
76
+ /** @description The name the invoice is addressed to, as the platform names its customer — a business's legal name */
77
+ name: string;
78
+ /** Format: email */
79
+ email: string | null;
80
+ vatId: string | null;
81
+ /**
82
+ * @description The customer's tax number — with its VAT ID, what shows a business abroad is one (KLVR-2234)
83
+ * @default null
84
+ */
85
+ taxNumber: string | null;
86
+ address: {
87
+ street: string;
88
+ building: string | null;
89
+ postcode: string;
90
+ city: string;
91
+ country: components["schemas"]["Country"];
92
+ };
93
+ };
94
+ /** ProcessPlatformCustomerBody */
95
+ ProcessPlatformCustomerBody: {
96
+ /** @description The platform whose customer it is, as it names itself (order3000) */
97
+ platform: string;
98
+ customer: components["schemas"]["PlatformInvoiceCustomer"];
99
+ };
100
+ /** ProcessPlatformCustomerResponse */
101
+ ProcessPlatformCustomerResponse: {
102
+ /** @description The party the customer is in the books of the platform's owner */
103
+ partyId: string;
104
+ };
105
+ /** FetchPlatformCustomerResponse */
106
+ FetchPlatformCustomerResponse: {
107
+ /** @description The party the customer is in the books of the platform's owner */
108
+ partyId: string;
109
+ /** @description The platform's own reference of its customer */
110
+ reference: string;
111
+ partyType: components["schemas"]["PartyType"];
112
+ /** @description The name its invoices are addressed to */
113
+ name: string;
114
+ email: string | null;
115
+ vatId: string | null;
116
+ taxNumber: string | null;
117
+ /** @description Its billing address; null where the party keeps none */
118
+ address: {
119
+ street: string;
120
+ building: string | null;
121
+ postcode: string;
122
+ city: string;
123
+ country: components["schemas"]["Country"];
124
+ } | null;
125
+ };
126
+ /** FetchOpenPlatformInvoicesBody */
127
+ FetchOpenPlatformInvoicesBody: {
128
+ filters: {
129
+ /** @description The platform whose invoices are asked for, as it names itself (order3000) */
130
+ platform: string;
131
+ };
132
+ pagination?: {
133
+ /** @default 1 */
134
+ page: number;
135
+ /** @default 10 */
136
+ pageSize: number;
137
+ };
138
+ };
139
+ /** FetchOpenPlatformInvoicesResponse */
140
+ FetchOpenPlatformInvoicesResponse: {
141
+ id: string;
142
+ invoiceNumber: string | null;
143
+ status: components["schemas"]["InvoiceStatus"];
144
+ issueDate: string;
145
+ dueDate: string | null;
146
+ currency: string;
147
+ netAmount: number | null;
148
+ taxAmount: number | null;
149
+ amount: number;
150
+ paymentStatementDescriptor: string | null;
151
+ /** @description The payment provider's id of the platform's invoice */
152
+ stripeInvoiceId: string;
153
+ }[];
154
+ /** FetchCustomerPlatformInvoicesBody */
155
+ FetchCustomerPlatformInvoicesBody: {
156
+ filters: {
157
+ /** @description The platform whose customers are asked for, as it names itself (order3000) */
158
+ platform: string;
159
+ /** @description The platform's own ids of the customers whose invoices are asked for — the tenants of one account */
160
+ tenantIds: string[];
161
+ };
162
+ };
163
+ /** FetchCustomerPlatformInvoicesResponse */
164
+ FetchCustomerPlatformInvoicesResponse: {
165
+ /** @description The payment provider's id of the platform's invoice */
166
+ stripeInvoiceId: string;
167
+ invoiceNumber: string | null;
168
+ /**
169
+ * Format: date
170
+ * @description The day it was issued
171
+ */
172
+ issueDate: string;
173
+ /** Format: date */
174
+ dueDate: string | null;
175
+ /** @description Upper case */
176
+ currency: string;
177
+ /** @description What it is issued for, tax included, in the currency's minor unit */
178
+ amount: number;
179
+ state: components["schemas"]["EnumCancelledOpenPaid"];
180
+ /** @description The platform's id of the customer it is addressed to */
181
+ tenantId: string;
182
+ /** @description Whether the entity keeps its PDF */
183
+ hasDocument: boolean;
184
+ }[];
185
+ /** FetchPlatformInvoiceMonthsBody */
186
+ FetchPlatformInvoiceMonthsBody: {
187
+ filters: {
188
+ /** @description The platform whose customers are asked for, as it names itself (order3000) */
189
+ platform: string;
190
+ /**
191
+ * Format: date
192
+ * @description The first day of issue read
193
+ */
194
+ since: string;
195
+ };
196
+ };
197
+ /** FetchPlatformInvoiceMonthsResponse */
198
+ FetchPlatformInvoiceMonthsResponse: {
199
+ /**
200
+ * Format: date
201
+ * @description The month's first day
202
+ */
203
+ month: string;
204
+ /** @description Upper case */
205
+ currency: string;
206
+ state: components["schemas"]["EnumCancelledOpenPaid"];
207
+ /** @description What was invoiced, tax included, in the currency's minor unit */
208
+ amount: number;
209
+ }[];
210
+ /** FetchCustomerPlatformInvoiceDocumentUrlBody */
211
+ FetchCustomerPlatformInvoiceDocumentUrlBody: {
212
+ filters: {
213
+ /** @description The platform whose customer it is, as it names itself (order3000) */
214
+ platform: string;
215
+ /** @description The platform's own ids of the customers it may be addressed to — the tenants of the account that opens it */
216
+ tenantIds: string[];
217
+ };
218
+ };
219
+ /** FetchCustomerPlatformInvoiceDocumentUrlResponse */
220
+ FetchCustomerPlatformInvoiceDocumentUrlResponse: {
221
+ /** @description Where the PDF is served for the next few minutes */
222
+ signedUrl: string;
223
+ };
224
+ /** PlatformChargeCustomer */
225
+ PlatformChargeCustomer: {
226
+ /** @description The platform’s own id of the customer; the answer is keyed by it */
227
+ key: string;
228
+ /** @description The customer’s country, ISO 3166-1 alpha-2 — for a visitor before any customer exists, the country the page is shown for */
229
+ country: string;
230
+ /** @description A consumer pays the listed price, tax contained; a business is shown it net and pays the tax on top */
231
+ isConsumer: boolean;
232
+ };
233
+ /** FetchPlatformChargeTaxesBody */
234
+ FetchPlatformChargeTaxesBody: {
235
+ customers: components["schemas"]["PlatformChargeCustomer"][];
236
+ };
237
+ /**
238
+ * PlatformChargeTax
239
+ * @description null where the entity charges this customer no tax
240
+ */
241
+ PlatformChargeTax: {
242
+ /** @description The rate in per cent, as a decimal string: "19", "8.1" */
243
+ percent: string;
244
+ /** @description True when the price contains the tax (a consumer’s), false when it is added on top (a business’s) */
245
+ isInclusive: boolean;
246
+ /** @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 */
247
+ isReverseCharge: boolean;
248
+ /** @description The country whose tax it is, ISO code — for a reverse charge, the customer’s */
249
+ country: string;
250
+ /** @description What an invoice calls the tax */
251
+ displayName: string;
252
+ };
253
+ /** FetchPlatformChargeTaxesResponse */
254
+ FetchPlatformChargeTaxesResponse: {
255
+ taxes: {
256
+ key: string;
257
+ tax: components["schemas"]["PlatformChargeTax"] | null;
258
+ }[];
259
+ };
260
+ /** PlatformInvoiceLine */
261
+ PlatformInvoiceLine: {
262
+ type: components["schemas"]["PlatformInvoiceLineType"];
263
+ /** @description The plan, band or module the line bills; null for a line that is none of them */
264
+ catalogueId: string | null;
265
+ description: string | null;
266
+ quantity: number;
267
+ /** @description Net of tax, in the smallest unit of the currency; negative for a credit of an unused part */
268
+ netAmount: number;
269
+ taxAmount: number;
270
+ /** @description The tax rate in per cent; null for a line without tax */
271
+ taxRatePercent: number | null;
272
+ /**
273
+ * @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
274
+ * @default false
275
+ */
276
+ isReverseCharge: boolean;
277
+ /**
278
+ * @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
279
+ * @default null
280
+ */
281
+ taxCountry: string | null;
282
+ /** Format: date-time */
283
+ periodStart: string;
284
+ /** Format: date-time */
285
+ periodEnd: string;
286
+ isProration: boolean;
287
+ };
288
+ /** FetchPlatformInvoicePreviewBody */
289
+ FetchPlatformInvoicePreviewBody: {
290
+ /** @description ISO 4217, upper case */
291
+ currency: string;
292
+ /**
293
+ * Format: date-time
294
+ * @description When the invoice would be issued: its VAT rates are those of that day
295
+ */
296
+ issuedAt: string;
297
+ /** @description What the payment provider will charge, in the smallest unit of the currency */
298
+ grossAmount: number;
299
+ lines: components["schemas"]["PlatformInvoiceLine"][];
300
+ customer: components["schemas"]["PlatformInvoiceCustomer"] | null;
301
+ };
302
+ /**
303
+ * PlatformInvoicePreview
304
+ * @description The invoice; null when none would be issued (the outcome says why)
305
+ */
306
+ PlatformInvoicePreview: {
307
+ currency: string;
308
+ netAmount: number;
309
+ taxAmount: number;
310
+ grossAmount: number;
311
+ /** @description Each rate taxed once, as the invoice prints it */
312
+ byRate: {
313
+ taxRatePercent: number;
314
+ netAmount: number;
315
+ taxAmount: number;
316
+ }[];
317
+ lines: {
318
+ description: string | null;
319
+ netAmount: number;
320
+ /** @description null where the entity charges no VAT */
321
+ taxRatePercent: number | null;
322
+ taxAmount: number;
323
+ }[];
324
+ };
325
+ /** FetchPlatformInvoicePreviewResponse */
326
+ FetchPlatformInvoicePreviewResponse: {
327
+ outcome: components["schemas"]["ComposePlatformInvoiceOutcome"];
328
+ invoice: components["schemas"]["PlatformInvoicePreview"] | null;
329
+ };
330
+ /** ProcessPlatformInvoiceBody */
331
+ ProcessPlatformInvoiceBody: {
332
+ /** @description The platform that invoiced, as it names itself (order3000) */
333
+ platform: string;
334
+ /** @description The payment provider's id of the invoice — the key every call is deduplicated on */
335
+ stripeInvoiceId: string;
336
+ stripeInvoiceNumber: string | null;
337
+ platformSubscriptionId: string;
338
+ /** @description ISO 4217, upper case */
339
+ currency: string;
340
+ /** Format: date-time */
341
+ issuedAt: string;
342
+ billingReason: string | null;
343
+ cardLastFour: string | null;
344
+ netAmount: number;
345
+ taxAmount: number;
346
+ grossAmount: number;
347
+ lines: components["schemas"]["PlatformInvoiceLine"][];
348
+ customer: components["schemas"]["PlatformInvoiceCustomer"];
349
+ };
350
+ /** ProcessPlatformInvoiceResponse */
351
+ ProcessPlatformInvoiceResponse: {
352
+ outcome: components["schemas"]["IssuePlatformInvoiceOutcome"];
353
+ /** @description The entity's own invoice for it, once issued */
354
+ invoiceId: string | null;
355
+ };
356
+ /** FetchPlatformInvoiceResponse */
357
+ FetchPlatformInvoiceResponse: {
358
+ id: string;
359
+ invoiceNumber: string | null;
360
+ status: components["schemas"]["InvoiceStatus"];
361
+ issueDate: string;
362
+ dueDate: string | null;
363
+ currency: string;
364
+ netAmount: number | null;
365
+ taxAmount: number | null;
366
+ amount: number;
367
+ paymentStatementDescriptor: string | null;
368
+ };
369
+ /** ProcessPlatformInvoicePaymentBody */
370
+ ProcessPlatformInvoicePaymentBody: {
371
+ stripeInvoiceNumber: string | null;
372
+ platformSubscriptionId: string;
373
+ /** @description ISO 4217, upper case */
374
+ currency: string;
375
+ /** Format: date-time */
376
+ paidAt: string;
377
+ /** @description In the smallest unit of the currency */
378
+ amountPaid: number;
379
+ /** @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. */
380
+ statementDescriptor?: string | null;
381
+ /** @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. */
382
+ paymentProviderAccount: string;
383
+ };
384
+ /** ProcessPlatformInvoicePaymentResponse */
385
+ ProcessPlatformInvoicePaymentResponse: {
386
+ payment: components["schemas"]["RecordPlatformInvoicePaymentOutcome"];
387
+ settlement: components["schemas"]["SettlePlatformInvoicePaymentOutcome"];
388
+ };
389
+ /** ProcessPlatformInvoiceVoidBody */
390
+ ProcessPlatformInvoiceVoidBody: {
391
+ /** Format: date-time */
392
+ voidedAt: string;
393
+ };
394
+ /** ProcessPlatformInvoiceVoidResponse */
395
+ ProcessPlatformInvoiceVoidResponse: {
396
+ outcome: components["schemas"]["CancelPlatformInvoiceOutcome"];
397
+ /** @description The entity's own invoice for it, once known */
398
+ invoiceId: string | null;
399
+ };
400
+ /** ProcessPlatformInvoiceCreditBody */
401
+ ProcessPlatformInvoiceCreditBody: {
402
+ /** @description The payment provider's id of the credit note */
403
+ stripeCreditNoteId: string;
404
+ /**
405
+ * Format: date-time
406
+ * @description When the credit note was issued — the day its refund left the payment provider balance
407
+ */
408
+ creditedAt: string;
409
+ /** @description What the credit note takes back, tax included, in the smallest unit of the invoice currency */
410
+ grossAmount: number;
411
+ /** @description Of it, net of tax — what a credit note without lines takes back at the invoice’s rate */
412
+ netAmount?: number;
413
+ /** @description What the credit note takes back, line by line: by them a credit note for part of the invoice corrects it by exactly that part */
414
+ lines?: {
415
+ /** @description The invoice line it takes back of, by its place among the lines the invoice was handed over with (from 0); null for an amount of its own */
416
+ invoiceLineIndex: number | null;
417
+ description: string | null;
418
+ quantity: number;
419
+ /** @description What it takes back of the line, net of tax */
420
+ netAmount: number;
421
+ taxAmount: number;
422
+ taxRatePercent: number | null;
423
+ isReverseCharge: boolean;
424
+ taxCountry: string | null;
425
+ }[];
426
+ /** @description What the credit note takes back, rate by rate, as it states its taxes: by them an amount on an invoice of several rates corrects it by each */
427
+ taxes?: {
428
+ /** @description What the tax is calculated on: the net taken back at the rate */
429
+ netAmount: number;
430
+ taxAmount: number;
431
+ taxRatePercent: number | null;
432
+ isReverseCharge: boolean;
433
+ taxCountry: string | null;
434
+ }[];
435
+ /** @description Of it, what went back to the card, in the smallest unit of the invoice currency (at Stripe the credit note’s refund). It is recorded as an outgoing payment on the money account that keeps the payment provider’s balance, and pays back the customer’s credit the credit note raised. Left out or 0, the whole credit stays the customer’s balance. */
436
+ refundedAmount?: number;
437
+ /** @description The payment provider account the refund left — at Stripe the platform's account id (acct_…). Needed when anything was refunded. */
438
+ paymentProviderAccount?: string;
439
+ };
440
+ /** ProcessPlatformInvoiceCreditResponse */
441
+ ProcessPlatformInvoiceCreditResponse: {
442
+ outcome: components["schemas"]["CancelPlatformInvoiceOutcome"];
443
+ /** @description The entity's own invoice for it, once known */
444
+ invoiceId: string | null;
445
+ refund?: components["schemas"]["RefundPlatformInvoiceCreditOutcome"];
446
+ };
447
+ /** @enum {string} */
448
+ AccessGrantInitiator: "grantor" | "grantee";
449
+ /** @enum {string} */
450
+ AccessGrantResourceType: "business-card" | "contract" | "property" | "party";
451
+ /** @enum {string} */
452
+ AccessGrantStatus: "pending" | "accepted" | "declined" | "expired" | "withdrawn" | "revoked";
453
+ /** @enum {string} */
454
+ AccountSnapshotStatus: "pending" | "ready" | "closed" | "archived";
455
+ /** @enum {string} */
456
+ AccountSnapshotType: "opening_balance" | "annual_closing" | "quarterly_vat" | "monthly_vat" | "annual_vat" | "semi_annual_vat";
457
+ /** @enum {string} */
458
+ ActorType: "human" | "robot";
459
+ /** @enum {string} */
460
+ AddressType: "physical" | "billing" | "registered" | "tax_office";
461
+ /** @enum {string} */
462
+ AmortizationType: "bullet" | "annuity" | "installment" | "flexible";
463
+ /** @enum {string} */
464
+ AnlageGProblemType: "year_not_closed" | "gewst_not_declared";
465
+ /** @enum {string} */
466
+ AnlageKapReason: "favourable_assessment" | "withholding_review" | "church_tax_not_withheld";
467
+ /** @enum {string} */
468
+ AnlageKindChildRelationship: "biological_or_adopted" | "foster" | "grandchild_or_stepchild";
469
+ /** @enum {string} */
470
+ AnlageKindOtherParentStatus: "named" | "deceased" | "not_determinable";
471
+ /** @enum {string} */
472
+ AnlageVField: "street" | "location" | "totalLivingArea" | "livingAreaNotLet" | "rentIncomeResidential" | "incomeTotal" | "expensesCarried" | "surplus" | "depreciationLinear" | "expensesTotal";
473
+ /** @enum {string} */
474
+ AnnotatableFieldPath: "sender.name" | "documentDate" | "amounts.total" | "invoiceNumber" | "documentType";
475
+ /** @enum {string} */
476
+ AppointmentStatus: "booked" | "cancelled" | "completed" | "no_show";
477
+ /** @enum {string} */
478
+ ArticleStatus: "draft" | "published";
479
+ /** @enum {string} */
480
+ ArtifactType: "loan" | "rental" | "interest" | "principal" | "fee" | "rent" | "deposit" | "disbursement" | "invoice" | "charge";
481
+ /** @enum {string} */
482
+ AssetDepreciationMethod: "linear" | "degressive" | "immediate_gwg" | "pool_sammelposten" | "none";
483
+ /** @enum {string} */
484
+ AssetDepreciationType: "regular" | "special" | "disposal_book_value";
485
+ /** @enum {string} */
486
+ AssetDisposalResult: "gain" | "loss";
487
+ /** @enum {string} */
488
+ BalanceSheetCategory: "assets" | "liabilities" | "equity" | "provisions" | "revenue" | "expenses";
489
+ /** @enum {string} */
490
+ BalanceSheetStandard: "commercial_with_reconciliation" | "tax" | "unified";
491
+ /** @enum {string} */
492
+ BankStatementDecimalSeparator: "comma" | "period";
493
+ /** @enum {string} */
494
+ BankStatementSource: "csv";
495
+ /** @enum {string} */
496
+ BescheidEinwilligungStatus: "none" | "requested" | "active" | "revoked";
497
+ /** @enum {string} */
498
+ BillingInterval: "month" | "year";
499
+ /** @enum {string} */
500
+ BookingChannel: "reservation" | "order";
501
+ /** @enum {string} */
502
+ 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" | "rental_income" | "goods_expense" | "wage_expense" | "salary_expense" | "social_security_expense" | "payroll_payable" | "wage_tax_payable" | "social_security_payable" | "rent_expense" | "leasing_expense" | "sales_commission_expense" | "gift_voucher_liability" | "corporate_income_tax_expense" | "solidarity_surcharge_expense" | "trade_tax_expense" | "corporate_income_tax_provision" | "fixed_asset_operating_equipment" | "trade_tax_provision" | "equipment_repair_expense" | "operating_supplies_expense" | "cash_in_transit" | "special_depreciation_expense" | "asset_pool_depreciation_expense" | "customer_credit_payable" | "deferred_input_vat" | "bad_debt_recovery_income" | "asset_disposal_book_value" | "asset_disposal_proceeds" | "asset_sale_receivable" | "purchase_reduction" | "payment_provider_balance";
503
+ /** @enum {string} */
504
+ BrandPalette: "primary" | "secondary";
505
+ /** @enum {string} */
506
+ BusinessEntityType: "sole_prop" | "gmbh" | "ug" | "ag" | "kg" | "ohg" | "gbr" | "eg" | "kgaa" | "gmbh_co_kg" | "sole_prop_ek";
507
+ /** @enum {string} */
508
+ BusinessFoundingType: "new" | "relocation" | "takeover" | "other";
509
+ /** @enum {string} */
510
+ BusinessStage: "startup" | "existing" | "founding";
511
+ /** @enum {string} */
512
+ CancelPlatformInvoiceOutcome: "cancelled" | "already_cancelled" | "no_invoice" | "paid" | "partial_credit" | "corrected" | "already_corrected" | "credit_exceeds_invoice";
513
+ /** @enum {string} */
514
+ CashBasisAssetGroup: "land" | "buildings" | "other_real_estate" | "intangibles" | "vehicles" | "office_equipment" | "other_movables" | "pooled_items" | "financial_assets_partial_income" | "financial_assets_other";
515
+ /** @enum {string} */
516
+ CashBasisReconciliationKey: "receivable" | "inventory" | "prepaid" | "payable" | "provision" | "deferred_income" | "tax_and_vat" | "other" | "residual";
517
+ /** @enum {string} */
518
+ CatchUpUstvaStatus: "filed" | "open" | "overdue" | "none";
519
+ /** @enum {string} */
520
+ ChartFamily: "datev" | "kmu" | "de_gaap_ci";
521
+ /** @enum {string} */
522
+ ChartInterchangeTier: "succession" | "origin" | "correspondence" | "role" | "position" | "resolved";
523
+ /** @enum {string} */
524
+ ChartNumberBlockType: "reserved" | "account_block" | "personal_debtors" | "personal_creditors" | "free_class";
525
+ /** @enum {string} */
526
+ ChartPlacePoolMemberType: "account" | "range";
527
+ /** @enum {string} */
528
+ ChartProvider: "datev" | "veb" | "esteuer";
529
+ /** @enum {string} */
530
+ ChartSuccessionType: "same" | "renamed" | "dropped" | "renumbered" | "merged" | "split" | "repurposed";
531
+ /** @enum {string} */
532
+ CollateralType: "receivables_assignment" | "ownership_transfer" | "pledge" | "land_charge" | "guarantee" | "other";
533
+ /** @enum {string} */
534
+ CommercialRegisterSection: "HRA" | "HRB" | "PR" | "GnR" | "VR";
535
+ /** @enum {string} */
536
+ ComposePlatformInvoiceOutcome: "composed" | "no_owner" | "other_currency" | "owner_not_ready" | "credit" | "tax_not_stated" | "tax_without_registration" | "tax_code_missing" | "totals_differ";
537
+ /** @enum {string} */
538
+ ConfirmContactEmailChangeOutcome: "completed" | "certificate_required";
539
+ /** @enum {string} */
540
+ ConsolidationEliminationSource: "owner_capital" | "inter_entity_loan";
541
+ /** @enum {string} */
542
+ ConsolidationResidueReason: "owner_capital_drift" | "loan_without_link" | "loan_balances_differ";
543
+ /** @enum {string} */
544
+ ContactEmailAudience: "company" | "person";
545
+ /** @enum {string} */
546
+ ContactEmailType: "primary" | "billing";
547
+ /** @enum {string} */
548
+ ContactEmailVerificationStatus: "pending" | "verified" | "completed" | "superseded";
549
+ /** @enum {string} */
550
+ ContractAssuranceLevel: "ses" | "aes";
551
+ /** @enum {string} */
552
+ 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";
553
+ /** @enum {string} */
554
+ ContractIdentifierPosition: "footer_left" | "footer_split" | "side_right" | "badge_top_right";
555
+ /** @enum {string} */
556
+ ContractPageNumberNumeral: "arabic" | "roman";
557
+ /** @enum {string} */
558
+ ContractPageNumberPosition: "bottom_left" | "bottom_center" | "bottom_right";
559
+ /** @enum {string} */
560
+ ContractPartyRole: "lender" | "borrower" | "landlord" | "renter" | "head_landlord" | "partner";
561
+ /** @enum {string} */
562
+ ContractScanContentType: "application/pdf" | "image/jpeg" | "image/png";
563
+ /** @enum {string} */
564
+ ContractSignatoryChannel: "electronic" | "paper_upload";
565
+ /** @enum {string} */
566
+ ContractSignatoryChannelPolicy: "electronic" | "paper_upload" | "open";
567
+ /** @enum {string} */
568
+ ContractSignatoryStatus: "pending" | "sent" | "viewed" | "paper_uploaded" | "signed" | "declined" | "revoked" | "expired";
569
+ /** @enum {string} */
570
+ ContractStatus: "draft" | "sent" | "formed" | "active" | "completed" | "terminated" | "cancelled" | "superseded" | "archived";
571
+ /** @enum {string} */
572
+ ContractType: "craft" | "service" | "purchase" | "rental" | "loan" | "partnership_agreement";
573
+ /** @enum {string} */
574
+ ContractTypography: "serif" | "sans" | "brand_system" | "brand_accent";
575
+ /** @enum {string} */
576
+ CorporateTaxRateType: "income_tax" | "surcharge";
577
+ /** @enum {string} */
578
+ CorporationEntityType: "gmbh" | "ug" | "ag" | "kgaa";
579
+ /** @enum {string} */
580
+ CorrespondenceCardinality: "one_to_one" | "many_to_one" | "split";
581
+ /** @enum {string} */
582
+ CorrespondenceSource: "datev_2026_charts" | "manual";
583
+ /** @enum {string} */
584
+ 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";
585
+ /** @enum {string} */
586
+ CreditBalanceUse: "offset" | "refund";
587
+ /** @enum {string} */
588
+ Currency: "EUR" | "CHF";
589
+ /** @enum {string} */
590
+ DatevBusinessPartnerType: "company" | "person" | "unspecified";
591
+ /** @enum {string} */
592
+ DatevExportRefusalReason: "not_a_datev_file" | "unsupported_category" | "empty" | "currency" | "too_large";
593
+ /** @enum {string} */
594
+ DatevFormatCategory: "bookings" | "account_labels" | "business_partners";
595
+ /** @enum {string} */
596
+ DatevLegalFormFamily: "sole_proprietor" | "partnership" | "corporation";
597
+ /** @enum {string} */
598
+ DatevStackType: "EXTF" | "DTVF";
599
+ /** @enum {string} */
600
+ DayCountConvention: "act_360" | "act_365" | "e30_360";
601
+ /** @enum {string} */
602
+ DayOfWeek: "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
603
+ /** @enum {string} */
604
+ DealStage: "identified" | "contacted" | "engaged" | "demo" | "offer" | "won" | "lost";
605
+ /** @enum {string} */
606
+ DealValueSource: "pricing" | "manual";
607
+ /** @enum {string} */
608
+ DefectResponsibility: "renter" | "landlord" | "wear_and_tear" | "unknown";
609
+ /** @enum {string} */
610
+ DemoArea: "dashboard" | "accounting" | "balanceSheet" | "profitAndLoss" | "reporting" | "documents" | "inbox" | "contracts" | "rolodex" | "properties" | "letterhead" | "taxRegistration" | "formation" | "transition" | "settings" | "other";
611
+ /** @enum {string} */
612
+ DemoStatus: "generating" | "ready" | "failed" | "expired";
613
+ /** @enum {string} */
614
+ DepositCustodyModel: "held" | "separate_account";
615
+ /** @enum {string} */
616
+ DepreciationRefusalType: "no_expense_account";
617
+ /** @enum {string} */
618
+ DocumentLinkProvenance: "rule" | "model" | "user";
619
+ /** @enum {string} */
620
+ DocumentLinkRelationType: "reminder_for" | "delivery_note_for" | "credit_note_for" | "confirmation_for" | "invoice_for" | "correction_of" | "related_to";
621
+ /** @enum {string} */
622
+ DocumentLinkStatus: "suggested" | "confirmed" | "rejected";
623
+ /** @enum {string} */
624
+ 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";
625
+ /** @enum {string} */
626
+ DueFilingUrgency: "overdue" | "due_soon" | "next_up";
627
+ /** @enum {string} */
628
+ DunningDefaultEntryRule: "reminder" | "thirty_day_clause" | "fixed_due_date";
629
+ /** @enum {string} */
630
+ DunningHoldReason: "creditor_collects";
631
+ /** @enum {string} */
632
+ DunningLevel: "friendly_reminder" | "first_notice" | "second_notice" | "final_notice";
633
+ /** @enum {string} */
634
+ DunningLumpSumChoice: "charge" | "waive";
635
+ /** @enum {string} */
636
+ DunningLumpSumRung: "first_notice" | "second_notice" | "final_notice" | "never";
637
+ /** @enum {string} */
638
+ DunningNoticeItemType: "principal" | "side_claim";
639
+ /** @enum {string} */
640
+ DunningNoticeStatus: "proposed" | "sent" | "settled" | "escalated" | "handed_over";
641
+ /** @enum {string} */
642
+ DunningNoticeType: "ladder" | "side_claims_only";
643
+ /** @enum {string} */
644
+ DuplicateCandidateStatus: "suggested" | "confirmed" | "dismissed";
645
+ /** @enum {string} */
646
+ EbilanzOutputFormat: "xml" | "json";
647
+ /** @enum {string} */
648
+ ElsterCertificatePurpose: "person_consent" | "company_consent" | "filing";
649
+ /** @enum {string} */
650
+ 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";
651
+ /** @enum {string} */
652
+ EmploymentType: "full_time" | "part_time" | "mini_job";
653
+ /** @enum {string} */
654
+ EntityAssetType: "logomark" | "wordmark" | "combinationmark_horizontal" | "combinationmark_vertical" | "icon";
655
+ /** @enum {string} */
656
+ 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" | "successor_edition";
657
+ /** @enum {string} */
658
+ EntityDecisionSource: "entity" | "authority" | "law";
659
+ /** @enum {string} */
660
+ EntityDecisionStatus: "recorded" | "overturned" | "rejected";
661
+ /** @enum {string} */
662
+ 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" | "consumer_supplies_abroad";
663
+ /** @enum {string} */
664
+ EntityDocumentType: "ebilanz_confirmation" | "kst_confirmation" | "gewst_confirmation" | "unternehmensregister_confirmation";
665
+ /** @enum {string} */
666
+ EntityDomainAddressPurpose: "contact";
667
+ /** @enum {string} */
668
+ EntityDomainStatus: "pending" | "verified" | "failed" | "temporary_failure";
669
+ /** @enum {string} */
670
+ EntityRelationshipType: "controlled_by" | "controls" | "sibling" | "taxpayer_unit";
671
+ /** @enum {string} */
672
+ EntityType: "person" | "sole_prop" | "gmbh" | "ug" | "ag" | "kg" | "ohg" | "gbr" | "eg" | "kgaa" | "gmbh_co_kg" | "sole_prop_ek";
673
+ /** @enum {string} */
674
+ EstSchedule: "anlage_n" | "anlage_kap" | "anlage_kind";
675
+ /** @enum {string} */
676
+ EuerLineNature: "income" | "expense" | "expense_reduction" | "memo" | "withdrawal" | "deposit";
677
+ /** @enum {string} */
678
+ ExternalFilingDeclaredBy: "former_advisor" | "owner";
679
+ /** @enum {string} */
680
+ FilingCadence: "monthly" | "quarterly" | "semi_annual" | "annual";
681
+ /** @enum {string} */
682
+ FilingDocumentType: "xml" | "confirmation" | "bescheid";
683
+ /** @enum {string} */
684
+ FilingLineSource: "curated" | "manual";
685
+ /** @enum {string} */
686
+ FilingStatus: "not_started" | "submitted" | "assessed" | "rejected" | "superseded" | "filed_externally";
687
+ /** @enum {string} */
688
+ FilingType: "ebilanz" | "euer" | "kst" | "gewst" | "ustva" | "ust" | "est" | "separate_determination" | "recapitulative_statement" | "unternehmensregister" | "opening_balance" | "mwst" | "jahresrechnung";
689
+ /** @enum {string} */
690
+ FixedAssetScheduleProblemType: "position_balance_mismatch" | "opening_values_inconsistent" | "asset_without_position" | "euer_transfer_mismatch";
691
+ /** @enum {string} */
692
+ FixedTermFactsType: "none" | "free_text" | "occupant" | "works" | "service_relationship" | "temporary_occasion" | "public_body_purpose" | "allocation_scheme" | "semester" | "sale";
693
+ /** @enum {string} */
694
+ 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";
695
+ /** @enum {string} */
696
+ FixedTermReasonType: "curated" | "authored";
697
+ /** @enum {string} */
698
+ FontRole: "system" | "accent";
699
+ /** @enum {string} */
700
+ FontStyle: "normal" | "italic";
701
+ /** @enum {string} */
702
+ FormOfAddress: "formal" | "informal";
703
+ /** @enum {string} */
704
+ FormationDutyStatus: "done" | "open" | "not_applicable";
705
+ /** @enum {string} */
706
+ 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";
707
+ /** @enum {string} */
708
+ FormationStage: "in_formation" | "registered";
709
+ /** @enum {string} */
710
+ FormationStepGroup: "before_entry" | "tax_office" | "other_registrations" | "books";
711
+ /** @enum {string} */
712
+ FormationStepStatus: "done" | "not_applicable";
713
+ /** @enum {string} */
714
+ 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";
715
+ /** @enum {string} */
716
+ GlassCollection: "container_by_colour" | "container_mixed" | "curbside";
717
+ /** @enum {string} */
718
+ HandoverDeclaration: "not_existing" | "unobtainable";
719
+ /** @enum {string} */
720
+ HandoverFallback: "recompute_from_books" | "request_finanzamt_copy" | "retrieve_via_elster" | "capture_manually" | "not_needed";
721
+ /** @enum {string} */
722
+ HandoverItemStatus: "uploaded" | "processed" | "not_existing" | "unobtainable" | "captured";
723
+ /** @enum {string} */
724
+ 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";
725
+ /** @enum {string} */
726
+ 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";
727
+ /** @enum {string} */
728
+ HandoverNeedStatus: "satisfied" | "partial" | "open" | "unobtainable" | "not_applicable";
729
+ /** @enum {string} */
730
+ HandoverNextAction: "upload" | "assign" | "capture" | "import" | "enter";
731
+ /** @enum {string} */
732
+ HandoverSatisfiedSource: "document" | "import" | "capture" | "derivation" | "entity_fact" | "elster";
733
+ /** @enum {string} */
734
+ HouseRuleChangeClassification: "clarification" | "new_burden";
735
+ /** @enum {string} */
736
+ HouseRuleChangeType: "added" | "revised" | "removed";
737
+ /** @enum {string} */
738
+ HouseRuleEditionRequestStatus: "open" | "acknowledged" | "agreed" | "declined" | "superseded";
739
+ /** @enum {string} */
740
+ HouseRuleEditionRequestType: "notice" | "consent";
741
+ /** @enum {string} */
742
+ HouseRuleScope: "property" | "rental";
743
+ /** @enum {string} */
744
+ HouseholdNamePurpose: "mailbox" | "renterHub";
745
+ /** @enum {string} */
746
+ HousingProvider: "sub_landlord" | "head_landlord";
747
+ /** @enum {string} */
748
+ IdentityCheckStatus: "pending" | "uploaded" | "confirmed" | "rejected";
749
+ /** @enum {string} */
750
+ IncomeTaxAssessmentType: "single" | "joint";
751
+ /** @enum {string} */
752
+ Industry: "construction" | "consulting" | "education" | "healthcare" | "hospitality" | "it_services" | "logistics" | "manufacturing" | "marketing" | "media" | "other" | "professional_services" | "real_estate" | "retail" | "trades";
753
+ /** @enum {string} */
754
+ InvitationScenario: "new_user" | "already_member" | "former_employee";
755
+ /** @enum {string} */
756
+ InvoiceArithmeticCheck: "lines_sum_to_net" | "breakdown_sums_to_net" | "breakdown_sums_to_tax" | "rate_times_net_is_tax" | "net_plus_tax_is_gross";
757
+ /** @enum {string} */
758
+ InvoiceDeliveryFormat: "pdf" | "zugferd" | "xrechnung_ubl" | "xrechnung_cii";
759
+ /** @enum {string} */
760
+ InvoiceDispatchChannel: "email";
761
+ /** @enum {string} */
762
+ InvoiceLineTableDensity: "comfortable" | "compact";
763
+ /** @enum {string} */
764
+ InvoicePaymentMethod: "bank_transfer" | "direct_debit" | "card" | "cash" | "online" | "other";
765
+ /** @enum {string} */
766
+ 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";
767
+ /** @enum {string} */
768
+ BookingSide: "debit" | "credit";
769
+ /** @enum {string} */
770
+ Jurisdiction: "DE" | "CH";
771
+ /** @enum {string} */
772
+ JurisdictionType: "country" | "region" | "municipality";
773
+ /** @enum {string} */
774
+ KnownFactSourceType: "tax_assessment" | "tax_account" | "document" | "bank_import" | "asset_register";
775
+ /** @enum {string} */
776
+ KnownFactStatus: "proposed" | "confirmed" | "conflict";
777
+ /** @enum {string} */
778
+ 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";
779
+ /** @enum {string} */
780
+ LetterheadLogoPosition: "top_left" | "top_center" | "top_right";
781
+ /** @enum {string} */
782
+ LetterheadWindowForm: "din_5008_form_a" | "din_5008_form_b" | "sn_010130";
783
+ /** @enum {string} */
784
+ LettingArrangement: "whole_unit" | "room_in_shared_flat";
785
+ /** @enum {string} */
786
+ LoanChannelAttestation: "borrower_trade" | "lender_commercial_credit";
787
+ /** @enum {string} */
788
+ LoanCounterpartyCategory: "shareholder" | "affiliated" | "participation" | "director" | "silent_partner" | "bank" | "third_party";
789
+ /** @enum {string} */
790
+ LoanDirection: "lent" | "borrowed";
791
+ /** @enum {string} */
792
+ LoanInterestStatementType: "period" | "annual";
793
+ /** @enum {string} */
794
+ LoanMaturity: "short" | "medium" | "long";
795
+ /** @enum {string} */
796
+ LoanRelatedPartyType: "controlling_shareholder" | "controlled_by" | "controls" | "sibling" | "taxpayer_unit";
797
+ /** @enum {string} */
798
+ LoanStatus: "draft" | "active" | "repaid" | "terminated" | "cancelled";
799
+ /** @enum {string} */
800
+ LoanType: "classic" | "credit_line";
801
+ /** @enum {string} */
802
+ 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";
803
+ /** @enum {string} */
804
+ LostKeySettlement: "deposit_deduction" | "invoice" | "open";
805
+ /** @enum {string} */
806
+ ManagementReportSectionType: "business_development" | "company_situation" | "significant_events" | "expected_development" | "opportunities_and_risks" | "research_and_development" | "custom";
807
+ /** @enum {string} */
808
+ ManagementReportStatus: "draft" | "finalized";
809
+ /** @enum {string} */
810
+ MantelbogenField: "taxNumber" | "taxIdentificationNumber" | "dateOfBirth" | "name" | "academicTitle" | "religion" | "religionChange" | "street" | "postcode" | "city" | "country" | "assessmentType" | "iban" | "bic" | "accountHolder";
811
+ /** @enum {string} */
812
+ MappingCoverageSource: "override" | "template" | "parent" | "unmapped";
813
+ /** @enum {string} */
814
+ MaritalStatus: "single" | "married" | "divorced" | "widowed" | "registered_partnership";
815
+ /** @enum {string} */
816
+ MatchedVia: "semantic" | "keyword" | "both";
817
+ /** @enum {string} */
818
+ MediaAssetType: "image" | "video" | "document";
819
+ /** @enum {string} */
820
+ InvoiceDirection: "outgoing" | "incoming";
821
+ /** @enum {string} */
822
+ MessageParticipantRole: "from" | "to" | "cc";
823
+ /** @enum {string} */
824
+ MessageSource: "tax_authority" | "platform" | "collaborator" | "scan" | "email";
825
+ /** @enum {string} */
826
+ MessageStatus: "draft" | "submitting" | "submitted" | "rejected" | "failed" | "received";
827
+ /** @enum {string} */
828
+ MessageThreadStatus: "open" | "awaiting_them" | "awaiting_us" | "closed";
829
+ /** @enum {string} */
830
+ MessageThreadSubjectType: "filing" | "party" | "entity" | "invoice" | "dunning_notice" | "rental" | "contract" | "loan" | "document";
831
+ /** @enum {string} */
832
+ MoneyAccountType: "bank" | "payment_provider";
833
+ /** @enum {string} */
834
+ ObligationAmountBasis: "fixed" | "computed_at_period_end" | "on_cash_only";
835
+ /** @enum {string} */
836
+ ObligationLinkType: "booking" | "adoption" | "accrual" | "accrual_release" | "reclassification" | "reversal";
837
+ /** @enum {string} */
838
+ ObligationPlanLineStatus: "open" | "partially_fulfilled" | "fulfilled" | "cancelled";
839
+ /** @enum {string} */
840
+ ObligationPlanRevisionReason: "payout_anchor" | "payment_deviation" | "amendment" | "horizon_extension";
841
+ /** @enum {string} */
842
+ ObligationPlanStatus: "blocked" | "live" | "completed";
843
+ /** @enum {string} */
844
+ ObligationPlanSubjectType: "loan";
845
+ /** @enum {string} */
846
+ ObligationRole: "creditor" | "debtor";
847
+ /** @enum {string} */
848
+ ObligationTermsSource: "owned" | "granted" | "snapshot";
849
+ /** @enum {string} */
850
+ ObligationType: "disbursement" | "principal" | "interest" | "fee";
851
+ /** @enum {string} */
852
+ OccupantRelationship: "self" | "spouse_or_partner" | "child" | "parent" | "sibling" | "other_family_member" | "household_member";
853
+ /** @enum {string} */
854
+ OfficialExchangeRateMethod: "estv_monthly_average" | "estv_daily_selling_rate";
855
+ /** @enum {string} */
856
+ OnboardingCard: "mail_account" | "own_domain";
857
+ /** @enum {string} */
858
+ OrganicCollection: "bin" | "optional_bin" | "none";
859
+ /** @enum {string} */
860
+ OwnConsumptionTradeClass: "bakery" | "butcher" | "restaurant_cold_food" | "restaurant_cold_and_warm_food" | "beverage_retail" | "cafe_and_confectionery" | "dairy_retail" | "grocery_retail" | "produce_retail";
861
+ /** @enum {string} */
862
+ OwnerTransferType: "withdrawal" | "deposit" | "goods_private_use" | "private_share_of_expense";
863
+ /** @enum {string} */
864
+ OwnershipCapacity: "shareholder" | "general_partner" | "limited_partner";
865
+ /** @enum {string} */
866
+ PackagingCollection: "yellow_bag" | "yellow_bin" | "recycling_bin";
867
+ /** @enum {string} */
868
+ PaperCollection: "bin" | "bundle" | "container";
869
+ /** @enum {string} */
870
+ ParkingSpaceType: "garage" | "parking_space";
871
+ /** @enum {string} */
872
+ PartyGender: "male" | "female" | "neutral";
873
+ /** @enum {string} */
874
+ PartyType: "natural_person" | "legal_entity" | "sole_prop";
875
+ /** @enum {string} */
876
+ PaymentClaimSettlementType: "payment" | "cash_discount" | "write_off" | "correction" | "offset" | "recovery";
877
+ /** @enum {string} */
878
+ PaymentClaimSide: "receivable" | "payable";
879
+ /** @enum {string} */
880
+ PaymentClaimStatus: "open" | "partially_settled" | "settled" | "written_off" | "cancelled";
881
+ /** @enum {string} */
882
+ PaymentClaimType: "invoice" | "interest_statement" | "rent" | "renter_charge" | "default_interest" | "dunning_fee" | "credit_balance" | "deposit";
883
+ /** @enum {string} */
884
+ PaymentFrequency: "monthly" | "quarterly" | "annually" | "at_maturity";
885
+ /** @enum {string} */
886
+ PaymentMethod: "bank_transfer" | "cash";
887
+ /** @enum {string} */
888
+ PaymentProvider: "stripe" | "paypal" | "sumup";
889
+ /** @enum {string} */
890
+ PaymentProviderLicence: "credit_institution" | "e_money_institution";
891
+ /** @enum {string} */
892
+ PermanentExtensionDecision: "granted" | "revoked";
893
+ /** @enum {string} */
894
+ PersonalAnnualReviewStatus: "upcoming" | "open" | "frozen";
895
+ /** @enum {string} */
896
+ PriorYearFigureType: "account_balance" | "euer_line" | "taxonomy_position" | "bwa_line";
897
+ /** @enum {string} */
898
+ ProfitDeterminationMethod: "balance_sheet_comparison" | "cash_basis";
899
+ /** @enum {string} */
900
+ PropertyDefectStatus: "open" | "remedied";
901
+ /** @enum {string} */
902
+ PropertyKeyCopyStatus: "in_circulation" | "lost";
903
+ /** @enum {string} */
904
+ PropertyKeyRingColor: "black" | "red" | "yellow" | "white" | "green" | "blue" | "orange" | "grey";
905
+ /** @enum {string} */
906
+ PropertyKeyRingRemovalReason: "no_longer_fits" | "held";
907
+ /** @enum {string} */
908
+ PropertyKeyType: "front_door" | "apartment_door" | "room_door" | "master" | "mailbox" | "cellar" | "attic" | "garage" | "bicycle_storage" | "laundry_room" | "gate" | "other";
909
+ /** @enum {string} */
910
+ PropertyShareScope: "wholeBuilding" | "rentalUnits";
911
+ /** @enum {string} */
912
+ PropertyType: "apartment" | "room" | "single_family_house" | "multi_family_house" | "commercial_unit" | "parking_space" | "storage";
913
+ /** @enum {string} */
914
+ PropertyVanityDomainMode: "label" | "apex";
915
+ /** @enum {string} */
916
+ PropertyVanityHostStatus: "awaiting_dns" | "certifying" | "live" | "failed";
917
+ /** @enum {string} */
918
+ PurchaseReductionType: "price_reduction" | "rebate" | "bonus";
919
+ /** @enum {string} */
920
+ QuestionnairePersonField: "first_name" | "date_of_birth" | "address" | "capacity" | "profit_share" | "legal_form" | "partners";
921
+ /** @enum {string} */
922
+ QuestionnairePersonRole: "owner" | "representative" | "shareholder" | "partner";
923
+ /** @enum {string} */
924
+ RecapitulativeSupplyType: "intra_community_goods" | "triangular_transaction" | "intra_community_services";
925
+ /** @enum {string} */
926
+ ReconciliationItemStatus: "open" | "resolved" | "dismissed";
927
+ /** @enum {string} */
928
+ 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";
929
+ /** @enum {string} */
930
+ ReconciliationResolution: "adopt" | "reverse_and_replace" | "keep_both" | "retry" | "acknowledge" | "record_payment" | "book_at_rate";
931
+ /** @enum {string} */
932
+ RecordPlatformInvoicePaymentOutcome: "recorded" | "already_recorded" | "other_currency";
933
+ /** @enum {string} */
934
+ RecyclingCentreScheduleReading: "confirmed" | "changed" | "not_found" | "unreachable" | "no_source";
935
+ /** @enum {string} */
936
+ RecyclingCentreType: "container_site" | "recycling_centre";
937
+ /** @enum {string} */
938
+ RefundPlatformInvoiceCreditOutcome: "recorded" | "already_recorded" | "no_credit" | "refund_exceeds_credit" | "no_money_account";
939
+ /** @enum {string} */
940
+ 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";
941
+ /** @enum {string} */
942
+ Religion: "catholic" | "protestant" | "jewish" | "muslim" | "hindu" | "none" | "other";
943
+ /** @enum {string} */
944
+ ReligionTaxAffiliation: "vd" | "ev" | "rk" | "ak" | "fa" | "fb" | "fg" | "fm" | "fr" | "fs" | "ib" | "il" | "is" | "iw" | "jd" | "jh" | "lt" | "ob" | "rf" | "un";
945
+ /** @enum {string} */
946
+ RentalDepositEntryType: "payment" | "interest" | "deduction" | "return" | "correction";
947
+ /** @enum {string} */
948
+ RentalDepositStatementType: "interim" | "final";
949
+ /** @enum {string} */
950
+ RentalDepositStatus: "collecting" | "held" | "settling" | "settled";
951
+ /** @enum {string} */
952
+ RentalDirection: "landlord" | "renter";
953
+ /** @enum {string} */
954
+ RentalDocumentReminderOccasion: "armed" | "reminder";
955
+ /** @enum {string} */
956
+ RentalDocumentRequestStatus: "requested" | "uploaded" | "confirmed" | "rejected";
957
+ /** @enum {string} */
958
+ RentalDocumentType: "enrolment_certificate" | "registration_certificate" | "income_proof" | "other";
959
+ /** @enum {string} */
960
+ RentalPremisesUse: "residential" | "commercial";
961
+ /** @enum {string} */
962
+ RentalRentDueDateRule: "third_working_day_in_advance" | "first_day_in_advance" | "three_days_before_month_end" | "end_of_month_in_arrears";
963
+ /** @enum {string} */
964
+ RentalStatus: "draft" | "active" | "terminated" | "expired" | "cancelled";
965
+ /** @enum {string} */
966
+ RentalTermModel: "open_ended" | "fixed" | "semester";
967
+ /** @enum {string} */
968
+ RentalType: "main" | "sublease";
969
+ /** @enum {string} */
970
+ RentalUnitConstituentType: "floor" | "apartment" | "room" | "bed" | "parkingSpace";
971
+ /** @enum {string} */
972
+ RentalUnitObjectNoun: "flat" | "room" | "bed" | "floor" | "parkingSpace" | "premises";
973
+ /** @enum {string} */
974
+ RenterChargeSettlementMethod: "deposit_deduction" | "invoice" | "payment";
975
+ /** @enum {string} */
976
+ RenterChargeStatus: "open" | "settled" | "waived";
977
+ /** @enum {string} */
978
+ RenterChargeType: "lost_key" | "defect" | "cleaning" | "other";
979
+ /** @enum {string} */
980
+ RenterHubAnnouncementType: "maintenance" | "viewing" | "general" | "reminder" | "house_rules_update" | "formal_warning";
981
+ /** @enum {string} */
982
+ RenterHubChannelType: "house" | "household" | "direct";
983
+ /** @enum {string} */
984
+ ReportView: "isolated" | "consolidated";
985
+ /** @enum {string} */
986
+ RepresentationAuthority: "sole" | "joint" | "none";
987
+ /** @enum {string} */
988
+ RepresentativeCapacity: "managing_director" | "board_member" | "authorized_signatory" | "partner" | "liquidator";
989
+ /** @enum {string} */
990
+ RequestContactEmailChangeOutcome: "requested" | "unchanged";
991
+ /** @enum {string} */
992
+ ResidualCollection: "bin" | "fee_bag";
993
+ /** @enum {string} */
994
+ Role: "superadmin" | "admin";
995
+ /** @enum {string} */
996
+ SalesAccountSegment: "solo" | "small" | "mid_market" | "enterprise";
997
+ /** @enum {string} */
998
+ SalesAccountSource: "outbound" | "inbound" | "referral" | "event" | "partner";
999
+ /** @enum {string} */
1000
+ SalesActivityType: "note" | "call" | "email" | "meeting" | "stage_change" | "value_change" | "owner_change" | "close_day_change" | "link_click";
1001
+ /** @enum {string} */
1002
+ SalesMailTemplateType: "general" | "demo";
1003
+ /** @enum {string} */
1004
+ ScanPageContentType: "image/jpeg" | "image/png";
1005
+ /** @enum {string} */
1006
+ ExtractionStatus: "pending" | "processing" | "completed" | "failed";
1007
+ /** @enum {string} */
1008
+ SemesterContinuation: "ends" | "renter_may_leave" | "rolling";
1009
+ /** @enum {string} */
1010
+ SemesterStart: "october" | "september" | "august";
1011
+ /** @enum {string} */
1012
+ SenderNameSource: "official" | "legal" | "brand" | "short";
1013
+ /** @enum {string} */
1014
+ SettlePlatformInvoicePaymentOutcome: "settled" | "already_settled" | "no_payment" | "no_invoice" | "nothing_open";
1015
+ /** @enum {string} */
1016
+ ShareCapitalContribution: "cash" | "in_kind";
1017
+ /** @enum {string} */
1018
+ SidebarKey: "rental-editor:contract-terms" | "loan-editor:contract-terms";
1019
+ /** @enum {string} */
1020
+ SignatureStyle: "name" | "team" | "team_of";
1021
+ /** @enum {string} */
1022
+ SilentPartnershipType: "typical" | "atypical";
1023
+ /** @enum {string} */
1024
+ SlotMode: "interval" | "duration";
1025
+ /** @enum {string} */
1026
+ SnapshotPeriod: "opening" | "annual" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "41" | "42" | "43" | "44" | "21" | "22";
1027
+ /** @enum {string} */
1028
+ SortOrder: "asc" | "desc";
1029
+ /** @enum {string} */
1030
+ StatementNature: "income" | "expense";
1031
+ /** @enum {string} */
1032
+ SubleaseDepositMethod: "sub_landlord_deposit_liable" | "own_deposit" | "layered_deposits";
1033
+ /** @enum {string} */
1034
+ SubleaseRentRouting: "direct_to_head_landlord" | "via_sub_landlord_capped" | "via_sub_landlord_uncapped";
1035
+ /** @enum {string} */
1036
+ SubleaseRole: "headLandlord" | "subLandlord";
1037
+ /** @enum {string} */
1038
+ SupplierCreditNoteType: "return_of_goods" | "corrected_invoice" | "price_reduction" | "rebate" | "bonus" | "no_consideration_reduction";
1039
+ /** @enum {string} */
1040
+ TaxAccountAuthorizationStatus: "requested" | "active" | "refused" | "revoked";
1041
+ /** @enum {string} */
1042
+ TaxAccountEntryType: "assessment" | "prepayment" | "payment" | "refund" | "late_fee" | "interest" | "missing_return" | "open" | "other";
1043
+ /** @enum {string} */
1044
+ TaxAccountQueryType: "O" | "I" | "ZS";
1045
+ /** @enum {string} */
1046
+ TaxAccountStatementSource: "eric" | "mein_elster";
1047
+ /** @enum {string} */
1048
+ TaxAccountTaxType: "income_tax" | "corporate_tax" | "trade_tax" | "vat" | "solidarity_surcharge" | "church_tax" | "wage_tax" | "other";
1049
+ /** @enum {string} */
1050
+ 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";
1051
+ /** @enum {string} */
1052
+ TaxAdjustmentType: "hinzurechnung" | "kuerzung";
1053
+ /** @enum {string} */
1054
+ TaxAssessmentSource: "manual" | "extraction" | "tax_account" | "bescheid_data" | "diva";
1055
+ /** @enum {string} */
1056
+ TaxAssessmentType: "income_tax" | "trade_tax_base_amount" | "trade_tax_loss_carryforward" | "separate_determination" | "vat" | "corporate_tax";
1057
+ /** @enum {string} */
1058
+ TaxAssessmentValueKey: "income_from_business" | "taxable_income" | "assessed_tax" | "trade_tax_base_amount" | "loss_carryforward" | "vat_payable" | "prepayments_set";
1059
+ /** @enum {string} */
1060
+ TaxClass: "1" | "2" | "3" | "4" | "5" | "6";
1061
+ /** @enum {string} */
1062
+ TaxOfficeLetterType: "copy_request" | "tax_account_statement_request";
1063
+ /** @enum {string} */
1064
+ TaxReconciliationItemSource: "manual" | "fixed_asset_register" | "provision" | "carried_forward";
1065
+ /** @enum {string} */
1066
+ TaxReconciliationItemType: "reclassification" | "change_value" | "both";
1067
+ /** @enum {string} */
1068
+ 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";
1069
+ /** @enum {string} */
1070
+ TaxType: "vat" | "kst" | "soli" | "gewst" | "est";
1071
+ /** @enum {string} */
1072
+ TaxonomyMappingSource: "datev_edition" | "manual";
1073
+ /** @enum {string} */
1074
+ TaxonomyMappingType: "direct" | "auffang" | "not_assignable";
1075
+ /** @enum {string} */
1076
+ TemporaryOccasion: "holiday" | "own_home_renovation" | "work_assignment" | "study_or_training_stay" | "other";
1077
+ /** @enum {string} */
1078
+ TermType: "fixed" | "indefinite";
1079
+ /** @enum {string} */
1080
+ TransactionHolder: "allocation" | "booking" | "loan" | "rental_deposit";
1081
+ /** @enum {string} */
1082
+ TransitionNextAction: "set_tax_number" | "complete" | "request_notice_delivery" | "set_share_capital" | "record_opening_position" | "open_fixed_assets" | "verify_elster_access" | "revoke_advisor_authorization";
1083
+ /** @enum {string} */
1084
+ TransitionStepGroup: "tax_office_access" | "advisor_documents" | "opening_position" | "catch_up";
1085
+ /** @enum {string} */
1086
+ TransitionStepType: "tax_number" | "elster_access" | "advisor_authorization_revoked" | "notice_delivery" | "share_capital" | "opening_position" | "fixed_asset_register";
1087
+ /** @enum {string} */
1088
+ VatCategory: "standard" | "reduced" | "accommodation" | "zero_rated" | "exempt" | "exempt_with_credit" | "reverse_charge" | "intra_community_acquisition" | "intra_community_supply" | "import" | "export" | "outside_scope" | "taxed_abroad";
1089
+ /** @enum {string} */
1090
+ VatCharacter: "liable" | "small_business" | "exempt";
1091
+ /** @enum {string} */
1092
+ VatDirection: "output" | "input";
1093
+ /** @enum {string} */
1094
+ VatSupplyType: "new_vehicle" | "triangular_transaction" | "international_agreement" | "travel_service" | "letting" | "eu_business_service" | "third_country_service" | "taxable_in_other_eu_state" | "electronic_service" | "small_business" | "mobile_devices_and_integrated_circuits";
1095
+ /** @enum {string} */
1096
+ VatTaxationMethod: "accrual" | "cash";
1097
+ /** @enum {string} */
1098
+ WasteFraction: "packaging" | "paper" | "organic" | "residual";
1099
+ /** @enum {string} */
1100
+ WasteHolder: "bag" | "bin" | "container" | "none";
1101
+ /** @enum {string} */
1102
+ WasteMaterial: "glass" | "paper_cardboard" | "packaging" | "electronics" | "batteries" | "bulbs" | "hazardous" | "bulky" | "green_waste" | "textiles" | "metal" | "wood" | "cork" | "construction_rubble" | "used_oil";
1103
+ /** @enum {string} */
1104
+ 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";
1105
+ /** @enum {string} */
1106
+ WrittenFormStatute: "de_written_form" | "ch_written_form";
1107
+ /** @enum {string} */
1108
+ AuditActorType: "user" | "system";
1109
+ /** @enum {string} */
1110
+ AuditCategory: "documents" | "inbox" | "team" | "entity" | "journal";
1111
+ /** @enum {string} */
1112
+ 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" | "chart-of-accounts:view" | "fixed-asset:view" | "fixed-asset:manage" | "transaction:view" | "transaction:manage" | "money-account:view" | "money-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";
1113
+ /** @enum {string} */
1114
+ BandMeasure: "revenue" | "balance_sheet_total";
1115
+ /** @enum {string} */
1116
+ FeatureCategory: "audit" | "auth" | "billing" | "collaboration" | "core" | "documents" | "entities" | "integrations" | "invoices" | "journal" | "marketing" | "metrics" | "payroll" | "platform" | "properties" | "reporting" | "settings" | "transactions" | "wealth";
1117
+ /** @enum {string} */
1118
+ 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" | "financial-dashboard" | "incoming-invoices" | "bank-transactions" | "journal" | "payment-claims" | "dunning" | "fixed-assets" | "balance-sheet" | "profit-and-loss" | "annual-statement" | "vat-return" | "trial-balance" | "business-analysis" | "income-expense-statement" | "corporation-tax-return" | "trade-tax-return" | "income-tax-return" | "tax-assessments" | "document-hub" | "inbox" | "rolodex" | "letterhead" | "tax-registration" | "company-formation" | "advisor-switch" | "team-management" | "developer-api";
1119
+ /** @enum {string} */
1120
+ FeatureStatus: "backlog" | "in_development" | "released";
1121
+ /** @enum {string} */
1122
+ ModuleScope: "account" | "tenant";
1123
+ /** @enum {string} */
1124
+ PendingSuperadminTransferStatus: "pending_invite" | "accepted_awaiting_payment" | "completed" | "cancelled" | "expired";
1125
+ /** @enum {string} */
1126
+ CancellationFeedbackReason: "too_expensive" | "missing_feature" | "too_complicated" | "switched_provider" | "no_longer_needed" | "other";
1127
+ /** @enum {string} */
1128
+ MentionEntityType: "plan";
1129
+ /** @enum {string} */
1130
+ MentionType: "link" | "value";
1131
+ /** @enum {string} */
1132
+ ChatChannelType: "team" | "direct" | "subject" | "external";
1133
+ /** @enum {string} */
1134
+ ChatMemberRole: "owner" | "member";
1135
+ /** @enum {string} */
1136
+ DocumentErasureReason: "account_retention_ended" | "archive_expired";
1137
+ /** @enum {string} */
1138
+ DocumentAccessType: "view" | "download" | "sent";
1139
+ /** @enum {string} */
1140
+ DocumentClassificationState: "unclassified" | "proposed" | "confirmed";
1141
+ /** @enum {string} */
1142
+ 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";
1143
+ /** @enum {string} */
1144
+ DocumentSource: "upload" | "scan" | "email" | "elster" | "generated";
1145
+ /** @enum {string} */
1146
+ DocumentStatus: "active" | "frozen" | "deleted";
1147
+ /** @enum {string} */
1148
+ Direction: "left" | "right" | "up" | "down";
1149
+ /** @enum {string} */
1150
+ DirectionX: "left" | "right";
1151
+ /** @enum {string} */
1152
+ DirectionY: "up" | "down";
1153
+ /** @enum {string} */
1154
+ Orientation: "vertical" | "horizontal";
1155
+ /** @enum {string} */
1156
+ PositionCenter: "center";
1157
+ /** @enum {string} */
1158
+ PositionCorner: "top-left" | "top-right" | "bottom-left" | "bottom-right";
1159
+ /** @enum {string} */
1160
+ PositionEdge: "start" | "end";
1161
+ /** @enum {string} */
1162
+ Position: "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "center";
1163
+ /** @enum {string} */
1164
+ PositionY: "top" | "bottom";
1165
+ /** @enum {string} */
1166
+ MemberInvitationStatus: "pending" | "accepted" | "revoked" | "declined";
1167
+ /** @enum {string} */
1168
+ EntityUserStatus: "pending" | "confirmed" | "revoked";
1169
+ /** @enum {string} */
1170
+ InvoiceStatus: "draft" | "booked" | "paid" | "cancelled" | "overdue" | "issued";
1171
+ /** @enum {string} */
1172
+ InvoiceType: "standard" | "partial" | "final" | "correction";
1173
+ /** @enum {string} */
1174
+ JournalEntrySource: "manual" | "invoice" | "payment" | "depreciation" | "loan" | "reversal" | "year_end_closing" | "owner_transfer" | "rental_deposit" | "dunning" | "write_off" | "import" | "opening_position" | "chart_switch" | "silent_partnership";
1175
+ /** @enum {string} */
1176
+ JournalErasureReason: "e2e_clean_up" | "held_entity_never_paid" | "books_reset" | "demo_generated_anew" | "account_retention_ended" | "archive_expired";
1177
+ /** @enum {string} */
1178
+ AccountType: "asset" | "liability" | "equity" | "revenue" | "expense" | "tax";
1179
+ /** @enum {string} */
1180
+ XbrlHgbPositionType: "mussfeld" | "kannfeld" | "summenmussfeld" | "auffangposition";
1181
+ /** @enum {string} */
1182
+ XbrlNotPermittedFor: "fiscal" | "commercial" | "tax_office_filing";
1183
+ /** @enum {string} */
1184
+ XbrlPeriodType: "instant" | "duration";
1185
+ /** @enum {string} */
1186
+ TriggerEvent: "invoice_booked_outgoing" | "invoice_booked_incoming" | "invoice_cancelled_outgoing" | "invoice_cancelled_incoming" | "payment_allocated_incoming" | "payment_allocated_outgoing" | "payment_cancelled" | "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" | "asset_sale_received";
1187
+ /** @enum {string} */
1188
+ AmountSource: "gross_amount" | "net_amount" | "tax_amount" | "payment_amount" | "depreciation_amount" | "principal_amount" | "interest_amount" | "accrued_interest_amount" | "current_interest_amount" | "deposit_amount";
1189
+ /** @enum {string} */
1190
+ TransactionMethod: "bank_transfer" | "credit_card" | "debit_card" | "cash" | "paypal" | "stripe" | "crypto" | "voucher";
1191
+ /** @enum {string} */
1192
+ TransactionStatus: "pending" | "completed" | "failed" | "cancelled";
1193
+ /** @enum {string} */
1194
+ TransactionType: "income" | "expense" | "transfer" | "investment" | "refund" | "loan" | "asset";
1195
+ /** @enum {string} */
1196
+ MoneyAccountStatus: "active" | "closed";
1197
+ /** @enum {string} */
1198
+ PlatformInvoiceLineType: "plan" | "tenant" | "module" | "module_unit" | "other";
1199
+ /** @enum {string} */
1200
+ EnumCancelledOpenPaid: "cancelled" | "open" | "paid";
1201
+ };
1202
+ responses: never;
1203
+ parameters: never;
1204
+ requestBodies: never;
1205
+ headers: never;
1206
+ pathItems: never;
1207
+ }
1208
+
1209
+ type schemas = components['schemas'];
1210
+ /**
1211
+ * One line of what a platform charged, as its payment provider billed it —
1212
+ * generated-bound to the `PlatformInvoiceLine` component.
1213
+ */
1214
+ type PlatformInvoiceLine = schemas['PlatformInvoiceLine'];
1215
+ /** The kind of a platform invoice line (plan, tenant, module, …). */
1216
+ type PlatformInvoiceLineType = schemas['PlatformInvoiceLineType'];
1217
+ /**
1218
+ * Whom a platform invoiced, as the platform knows its customer today: its
1219
+ * own reference, legal name, VAT ID, email and invoice address.
1220
+ */
1221
+ type PlatformInvoiceCustomer = schemas['PlatformInvoiceCustomer'];
1222
+ type ProcessPlatformInvoiceRequest = schemas['ProcessPlatformInvoiceBody'];
1223
+ type ProcessPlatformInvoiceResponse = schemas['ProcessPlatformInvoiceResponse'];
1224
+ type ProcessPlatformCustomerRequest = schemas['ProcessPlatformCustomerBody'];
1225
+ type ProcessPlatformCustomerResponse = schemas['ProcessPlatformCustomerResponse'];
1226
+ /** The party a platform's customer is in the books of the platform's
1227
+ * owner, as the books keep it today (BLNR-1979). */
1228
+ type PlatformCustomer = schemas['FetchPlatformCustomerResponse'];
1229
+ type ProcessPlatformInvoicePaymentRequest = schemas['ProcessPlatformInvoicePaymentBody'];
1230
+ type ProcessPlatformInvoicePaymentResponse = schemas['ProcessPlatformInvoicePaymentResponse'];
1231
+ type ProcessPlatformInvoiceVoidRequest = schemas['ProcessPlatformInvoiceVoidBody'];
1232
+ type ProcessPlatformInvoiceVoidResponse = schemas['ProcessPlatformInvoiceVoidResponse'];
1233
+ type ProcessPlatformInvoiceCreditRequest = schemas['ProcessPlatformInvoiceCreditBody'];
1234
+ type ProcessPlatformInvoiceCreditResponse = schemas['ProcessPlatformInvoiceCreditResponse'];
1235
+ /** The entity's own invoice for a platform invoice — number, state and
1236
+ * amounts. */
1237
+ type PlatformInvoice = schemas['FetchPlatformInvoiceResponse'];
1238
+ type FetchCustomerPlatformInvoicesRequest = schemas['FetchCustomerPlatformInvoicesBody'];
1239
+ type FetchCustomerPlatformInvoicesResponse = schemas['FetchCustomerPlatformInvoicesResponse'];
1240
+ type FetchPlatformInvoiceMonthsRequest = schemas['FetchPlatformInvoiceMonthsBody'];
1241
+ type FetchPlatformInvoiceMonthsResponse = schemas['FetchPlatformInvoiceMonthsResponse'];
1242
+ type FetchCustomerPlatformInvoiceDocumentUrlRequest = schemas['FetchCustomerPlatformInvoiceDocumentUrlBody'];
1243
+ type FetchCustomerPlatformInvoiceDocumentUrlResponse = schemas['FetchCustomerPlatformInvoiceDocumentUrlResponse'];
1244
+ type FetchOpenPlatformInvoicesRequest = schemas['FetchOpenPlatformInvoicesBody'];
1245
+ type FetchOpenPlatformInvoicesResponse = schemas['FetchOpenPlatformInvoicesResponse'];
1246
+ type PreviewPlatformInvoiceRequest = schemas['FetchPlatformInvoicePreviewBody'];
1247
+ /** The invoice the entity would issue for it, or why it would issue none. */
1248
+ type PreviewPlatformInvoiceResponse = schemas['FetchPlatformInvoicePreviewResponse'];
1249
+ /** The entity's invoice as the invoicing engine would issue it: net, VAT
1250
+ * per rate, gross, and each line. */
1251
+ type PlatformInvoicePreview = schemas['PlatformInvoicePreview'];
1252
+ type PlatformChargeTaxesRequest = schemas['FetchPlatformChargeTaxesBody'];
1253
+ /** The tax the entity puts on each customer's charges, by its key. */
1254
+ type PlatformChargeTaxesResponse = schemas['FetchPlatformChargeTaxesResponse'];
1255
+ /** One customer of a platform: its key, country and whether it is a
1256
+ * consumer. */
1257
+ type PlatformChargeCustomer = schemas['PlatformChargeCustomer'];
1258
+ /** The tax on a customer's charges: rate, contained or added, country. */
1259
+ type PlatformChargeTax = schemas['PlatformChargeTax'];
1260
+
1261
+ /**
1262
+ * Who pays a platform, handed to the entity that owns the platform
1263
+ * (KLVR-1574): billionaire keeps each paying customer as a party in the
1264
+ * entity's books — the party its invoices to the customer are addressed
1265
+ * to — and the platform hands over its details whenever they change.
1266
+ *
1267
+ * The platform's own API (`/platform/customers`): billionaire acts for the
1268
+ * entity that owns the platform, never for an entity the caller names. The
1269
+ * robot needs its grant at that entity.
1270
+ */
1271
+ declare class PlatformCustomersResource extends BaseResource {
1272
+ constructor(tokenManager: TokenManager, baseUrl: string);
1273
+ protected rootPath(): string;
1274
+ /**
1275
+ * Hand over a paying customer's details as they stand after a change;
1276
+ * the entity's party for the customer takes them, or is filed with them.
1277
+ * Idempotent: the same details again change nothing.
1278
+ * @param request - The platform's name and its customer's details
1279
+ * @returns The party the customer is in the entity's books
1280
+ */
1281
+ process(request: ProcessPlatformCustomerRequest): Promise<ProcessPlatformCustomerResponse>;
1282
+ /**
1283
+ * Read back the party a customer is in the entity's books, as the books
1284
+ * keep it today (BLNR-1979). Throws `HTTP 404` where the platform has
1285
+ * handed over no customer of the reference.
1286
+ * @param customer - The platform, as it names itself, and its own
1287
+ * reference of its customer
1288
+ * @returns The party: its name, email, VAT ID, tax number and billing
1289
+ * address
1290
+ */
1291
+ get({ platform, reference, }: {
1292
+ platform: string;
1293
+ reference: string;
1294
+ }): Promise<PlatformCustomer>;
1295
+ }
1296
+
1297
+ /**
1298
+ * What a platform invoices its customers, handed to the entity that owns
1299
+ * the platform: billionaire issues the entity's own invoice for it, records
1300
+ * its payment and cancels it when the payment provider voids it or credits
1301
+ * all of it, and corrects it by the part a credit note takes back — with
1302
+ * its one invoicing engine, which books every step. The
1303
+ * platform asks which of its invoices are still unpaid, for an event it
1304
+ * never handed over.
1305
+ *
1306
+ * The platform's own API (`/platform/invoices`, KLVR-2229): billionaire
1307
+ * acts for the entity that owns the platform, never for an entity the
1308
+ * caller names. The robot needs its grant at that entity.
1309
+ */
1310
+ declare class PlatformInvoicesResource extends BaseResource {
1311
+ constructor(tokenManager: TokenManager, baseUrl: string);
1312
+ protected rootPath(): string;
1313
+ /**
1314
+ * Hand over what the platform invoiced one of its customers; the entity
1315
+ * issues its own invoice for it. Idempotent on `stripeInvoiceId`.
1316
+ * @param request - The platform's invoice, its lines and its customer
1317
+ * @returns What became of it, and the entity's invoice once issued
1318
+ */
1319
+ process(request: ProcessPlatformInvoiceRequest): Promise<ProcessPlatformInvoiceResponse>;
1320
+ /**
1321
+ * The tax the entity puts on what the platform charges each of these
1322
+ * customers — by country and whether it is a consumer — so the payment
1323
+ * provider charges exactly what the entity's invoice will say. The
1324
+ * platform computes no tax of its own.
1325
+ * @param request - The customers, each with the platform's own key
1326
+ * @returns Each key's tax, null where the entity charges none
1327
+ */
1328
+ chargeTaxes(request: PlatformChargeTaxesRequest): Promise<PlatformChargeTaxesResponse>;
1329
+ /**
1330
+ * Preview the invoice the entity would issue for what the platform is
1331
+ * about to charge — composed by billionaire's invoicing engine exactly as
1332
+ * `process` issues it, nothing issued.
1333
+ * @param request - The lines to charge, their currency, the day and the
1334
+ * total the payment provider will charge
1335
+ * @returns The invoice's net, VAT per rate, gross and lines — or why the
1336
+ * entity would issue none
1337
+ */
1338
+ preview(request: PreviewPlatformInvoiceRequest): Promise<PreviewPlatformInvoiceResponse>;
1339
+ /**
1340
+ * The platform's invoices the entity's books still show as unpaid, the
1341
+ * oldest first, a page at a time — for a follow-up that asks the payment
1342
+ * provider about each and hands a payment or void it missed back through
1343
+ * `processPayment` / `processVoid`.
1344
+ * @param request - The platform (`filters.platform`) and the page
1345
+ * @returns Each invoice with the payment provider's id of the platform's
1346
+ * invoice it documents
1347
+ */
1348
+ listOpen(request: FetchOpenPlatformInvoicesRequest): Promise<FetchOpenPlatformInvoicesResponse>;
1349
+ /**
1350
+ * The invoices the entity issued to the tenants of one of the platform's
1351
+ * accounts, the newest first — what the platform shows the account as its
1352
+ * invoices (BLNR-626).
1353
+ * @param request - The platform (`filters.platform`) and its own ids of
1354
+ * the account's tenants (`filters.tenantIds`)
1355
+ * @returns Each invoice's number, dates, amount, state, the tenant it is
1356
+ * addressed to, and whether its PDF is kept
1357
+ */
1358
+ listForCustomers(request: FetchCustomerPlatformInvoicesRequest): Promise<FetchCustomerPlatformInvoicesResponse>;
1359
+ /**
1360
+ * What the entity invoiced the platform's customers since a day, summed
1361
+ * per month of issue, currency and state (KLVR-2470) — what the
1362
+ * platform's Revenue tab shows of the entity's books.
1363
+ * @param request - The platform (`filters.platform`) and the first day of
1364
+ * issue read (`filters.since`)
1365
+ * @returns Per month, currency and state what was invoiced, tax included
1366
+ */
1367
+ listMonths(request: FetchPlatformInvoiceMonthsRequest): Promise<FetchPlatformInvoiceMonthsResponse>;
1368
+ /**
1369
+ * A link to the PDF of an invoice the entity issued to one of these
1370
+ * tenants, valid for a few minutes — asked for the moment the account
1371
+ * opens it (BLNR-626). An invoice of any other tenant answers 404.
1372
+ * @param stripeInvoiceId - The payment provider's id of the platform's invoice
1373
+ * @param request - The platform and its own ids of the account's tenants
1374
+ */
1375
+ documentUrl(stripeInvoiceId: string, request: FetchCustomerPlatformInvoiceDocumentUrlRequest): Promise<FetchCustomerPlatformInvoiceDocumentUrlResponse>;
1376
+ /**
1377
+ * Get the entity's invoice for a platform invoice.
1378
+ * @param stripeInvoiceId - The payment provider's id of the platform's invoice
1379
+ * @returns The invoice's number, state and amounts
1380
+ */
1381
+ get(stripeInvoiceId: string): Promise<PlatformInvoice>;
1382
+ /**
1383
+ * Hand over that a platform invoice was paid; the entity records the
1384
+ * money and settles its invoice. Idempotent on `stripeInvoiceId`.
1385
+ * @param stripeInvoiceId - The payment provider's id of the paid invoice
1386
+ * @param request - When it was paid, and how much
1387
+ */
1388
+ processPayment(stripeInvoiceId: string, request: ProcessPlatformInvoicePaymentRequest): Promise<ProcessPlatformInvoicePaymentResponse>;
1389
+ /**
1390
+ * Hand over that the payment provider voided a platform invoice; the
1391
+ * entity cancels its invoice for it.
1392
+ * @param stripeInvoiceId - The payment provider's id of the voided invoice
1393
+ * @param request - When it was voided
1394
+ */
1395
+ processVoid(stripeInvoiceId: string, request: ProcessPlatformInvoiceVoidRequest): Promise<ProcessPlatformInvoiceVoidResponse>;
1396
+ /**
1397
+ * Hand over a credit note the payment provider issued for a platform
1398
+ * invoice — money back to the card, a credit on the customer's balance.
1399
+ * One for all of it cancels the entity's invoice, and what the customer
1400
+ * had paid becomes their credit; one for part of it corrects the invoice
1401
+ * by the lines it takes back, by a correction invoice of its own
1402
+ * (`corrected`). One whose lines do not say which part it takes back is
1403
+ * answered `partial_credit` and changes nothing. What it sent back to the
1404
+ * card (`refundedAmount`, with the `paymentProviderAccount` it left) is
1405
+ * recorded as an outgoing payment on the money account of that balance
1406
+ * and pays back the customer's credit; `refund` answers what became of
1407
+ * it.
1408
+ * @param stripeInvoiceId - The payment provider's id of the credited invoice
1409
+ * @param request - The credit note, when it was issued, what it takes back and what it refunded
1410
+ */
1411
+ processCredit(stripeInvoiceId: string, request: ProcessPlatformInvoiceCreditRequest): Promise<ProcessPlatformInvoiceCreditResponse>;
1412
+ }
1413
+
1414
+ interface BLNRClientConfig {
1415
+ clientId: string;
1416
+ clientSecret: string;
1417
+ entityId?: string;
1418
+ /**
1419
+ * Base URL for API requests
1420
+ * @default "https://billionaire.sh/api"
1421
+ */
1422
+ baseUrl?: string;
1423
+ /**
1424
+ * Machine-to-machine token endpoint. The billionaire server hosts user
1425
+ * session routes under `/auth/*` and robot-account M2M token exchange
1426
+ * under `/m2m/token`; the SDK is exclusively an M2M consumer, so the
1427
+ * default points at the latter.
1428
+ * @default "${baseUrl}/m2m/token"
1429
+ */
1430
+ tokenUrl?: string;
1431
+ }
1432
+ declare class BLNRClient {
1433
+ platformCustomers: PlatformCustomersResource;
1434
+ platformInvoices: PlatformInvoicesResource;
1435
+ private readonly baseUrl;
1436
+ private readonly tokenManager;
1437
+ constructor(config: BLNRClientConfig);
1438
+ }
1439
+
1440
+ export { BLNRClient };
1441
+ export type { BLNRClientConfig, FetchOpenPlatformInvoicesRequest as BLNRFetchOpenPlatformInvoicesRequest, FetchOpenPlatformInvoicesResponse as BLNRFetchOpenPlatformInvoicesResponse, PlatformChargeCustomer as BLNRPlatformChargeCustomer, PlatformChargeTax as BLNRPlatformChargeTax, PlatformChargeTaxesRequest as BLNRPlatformChargeTaxesRequest, PlatformChargeTaxesResponse as BLNRPlatformChargeTaxesResponse, PlatformCustomer as BLNRPlatformCustomer, PlatformInvoice as BLNRPlatformInvoice, PlatformInvoiceCustomer as BLNRPlatformInvoiceCustomer, PlatformInvoiceLine as BLNRPlatformInvoiceLine, PlatformInvoiceLineType as BLNRPlatformInvoiceLineType, PlatformInvoicePreview as BLNRPlatformInvoicePreview, PreviewPlatformInvoiceRequest as BLNRPreviewPlatformInvoiceRequest, PreviewPlatformInvoiceResponse as BLNRPreviewPlatformInvoiceResponse, ProcessPlatformCustomerRequest as BLNRProcessPlatformCustomerRequest, ProcessPlatformCustomerResponse as BLNRProcessPlatformCustomerResponse, ProcessPlatformInvoiceCreditRequest as BLNRProcessPlatformInvoiceCreditRequest, ProcessPlatformInvoiceCreditResponse as BLNRProcessPlatformInvoiceCreditResponse, ProcessPlatformInvoicePaymentRequest as BLNRProcessPlatformInvoicePaymentRequest, ProcessPlatformInvoicePaymentResponse as BLNRProcessPlatformInvoicePaymentResponse, ProcessPlatformInvoiceRequest as BLNRProcessPlatformInvoiceRequest, ProcessPlatformInvoiceResponse as BLNRProcessPlatformInvoiceResponse, ProcessPlatformInvoiceVoidRequest as BLNRProcessPlatformInvoiceVoidRequest, ProcessPlatformInvoiceVoidResponse as BLNRProcessPlatformInvoiceVoidResponse };