@billionaire-sh/node-sdk 0.1.1 → 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.
- package/README.md +30 -1
- package/dist/client.cjs +96 -3
- package/dist/client.d.cts +306 -55
- package/dist/client.d.mts +306 -55
- package/dist/client.mjs +96 -3
- package/dist/schemas.cjs +450 -221
- package/dist/schemas.d.cts +1321 -384
- package/dist/schemas.d.mts +1321 -384
- package/dist/schemas.mjs +450 -221
- package/package.json +2 -2
package/dist/client.d.cts
CHANGED
|
@@ -68,6 +68,61 @@ declare abstract class BaseResource {
|
|
|
68
68
|
|
|
69
69
|
interface components {
|
|
70
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
|
+
};
|
|
71
126
|
/** FetchOpenPlatformInvoicesBody */
|
|
72
127
|
FetchOpenPlatformInvoicesBody: {
|
|
73
128
|
filters: {
|
|
@@ -96,6 +151,76 @@ interface components {
|
|
|
96
151
|
/** @description The payment provider's id of the platform's invoice */
|
|
97
152
|
stripeInvoiceId: string;
|
|
98
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
|
+
};
|
|
99
224
|
/** PlatformChargeCustomer */
|
|
100
225
|
PlatformChargeCustomer: {
|
|
101
226
|
/** @description The platform’s own id of the customer; the answer is keyed by it */
|
|
@@ -172,6 +297,7 @@ interface components {
|
|
|
172
297
|
/** @description What the payment provider will charge, in the smallest unit of the currency */
|
|
173
298
|
grossAmount: number;
|
|
174
299
|
lines: components["schemas"]["PlatformInvoiceLine"][];
|
|
300
|
+
customer: components["schemas"]["PlatformInvoiceCustomer"] | null;
|
|
175
301
|
};
|
|
176
302
|
/**
|
|
177
303
|
* PlatformInvoicePreview
|
|
@@ -201,29 +327,6 @@ interface components {
|
|
|
201
327
|
outcome: components["schemas"]["ComposePlatformInvoiceOutcome"];
|
|
202
328
|
invoice: components["schemas"]["PlatformInvoicePreview"] | null;
|
|
203
329
|
};
|
|
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
330
|
/** ProcessPlatformInvoiceBody */
|
|
228
331
|
ProcessPlatformInvoiceBody: {
|
|
229
332
|
/** @description The platform that invoiced, as it names itself (order3000) */
|
|
@@ -298,16 +401,48 @@ interface components {
|
|
|
298
401
|
ProcessPlatformInvoiceCreditBody: {
|
|
299
402
|
/** @description The payment provider's id of the credit note */
|
|
300
403
|
stripeCreditNoteId: string;
|
|
301
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* Format: date-time
|
|
406
|
+
* @description When the credit note was issued — the day its refund left the payment provider balance
|
|
407
|
+
*/
|
|
302
408
|
creditedAt: string;
|
|
303
409
|
/** @description What the credit note takes back, tax included, in the smallest unit of the invoice currency */
|
|
304
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;
|
|
305
439
|
};
|
|
306
440
|
/** ProcessPlatformInvoiceCreditResponse */
|
|
307
441
|
ProcessPlatformInvoiceCreditResponse: {
|
|
308
442
|
outcome: components["schemas"]["CancelPlatformInvoiceOutcome"];
|
|
309
443
|
/** @description The entity's own invoice for it, once known */
|
|
310
444
|
invoiceId: string | null;
|
|
445
|
+
refund?: components["schemas"]["RefundPlatformInvoiceCreditOutcome"];
|
|
311
446
|
};
|
|
312
447
|
/** @enum {string} */
|
|
313
448
|
AccessGrantInitiator: "grantor" | "grantee";
|
|
@@ -348,6 +483,8 @@ interface components {
|
|
|
348
483
|
/** @enum {string} */
|
|
349
484
|
AssetDepreciationType: "regular" | "special" | "disposal_book_value";
|
|
350
485
|
/** @enum {string} */
|
|
486
|
+
AssetDisposalResult: "gain" | "loss";
|
|
487
|
+
/** @enum {string} */
|
|
351
488
|
BalanceSheetCategory: "assets" | "liabilities" | "equity" | "provisions" | "revenue" | "expenses";
|
|
352
489
|
/** @enum {string} */
|
|
353
490
|
BalanceSheetStandard: "commercial_with_reconciliation" | "tax" | "unified";
|
|
@@ -362,7 +499,7 @@ interface components {
|
|
|
362
499
|
/** @enum {string} */
|
|
363
500
|
BookingChannel: "reservation" | "order";
|
|
364
501
|
/** @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";
|
|
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";
|
|
366
503
|
/** @enum {string} */
|
|
367
504
|
BrandPalette: "primary" | "secondary";
|
|
368
505
|
/** @enum {string} */
|
|
@@ -372,7 +509,7 @@ interface components {
|
|
|
372
509
|
/** @enum {string} */
|
|
373
510
|
BusinessStage: "startup" | "existing" | "founding";
|
|
374
511
|
/** @enum {string} */
|
|
375
|
-
CancelPlatformInvoiceOutcome: "cancelled" | "already_cancelled" | "no_invoice" | "paid" | "partial_credit";
|
|
512
|
+
CancelPlatformInvoiceOutcome: "cancelled" | "already_cancelled" | "no_invoice" | "paid" | "partial_credit" | "corrected" | "already_corrected" | "credit_exceeds_invoice";
|
|
376
513
|
/** @enum {string} */
|
|
377
514
|
CashBasisAssetGroup: "land" | "buildings" | "other_real_estate" | "intangibles" | "vehicles" | "office_equipment" | "other_movables" | "pooled_items" | "financial_assets_partial_income" | "financial_assets_other";
|
|
378
515
|
/** @enum {string} */
|
|
@@ -382,12 +519,16 @@ interface components {
|
|
|
382
519
|
/** @enum {string} */
|
|
383
520
|
ChartFamily: "datev" | "kmu" | "de_gaap_ci";
|
|
384
521
|
/** @enum {string} */
|
|
385
|
-
ChartInterchangeTier: "origin" | "correspondence" | "role" | "position" | "resolved";
|
|
522
|
+
ChartInterchangeTier: "succession" | "origin" | "correspondence" | "role" | "position" | "resolved";
|
|
386
523
|
/** @enum {string} */
|
|
387
|
-
ChartNumberBlockType: "reserved" | "account_block" | "personal_debtors" | "personal_creditors";
|
|
524
|
+
ChartNumberBlockType: "reserved" | "account_block" | "personal_debtors" | "personal_creditors" | "free_class";
|
|
525
|
+
/** @enum {string} */
|
|
526
|
+
ChartPlacePoolMemberType: "account" | "range";
|
|
388
527
|
/** @enum {string} */
|
|
389
528
|
ChartProvider: "datev" | "veb" | "esteuer";
|
|
390
529
|
/** @enum {string} */
|
|
530
|
+
ChartSuccessionType: "same" | "renamed" | "dropped" | "renumbered" | "merged" | "split" | "repurposed";
|
|
531
|
+
/** @enum {string} */
|
|
391
532
|
CollateralType: "receivables_assignment" | "ownership_transfer" | "pledge" | "land_charge" | "guarantee" | "other";
|
|
392
533
|
/** @enum {string} */
|
|
393
534
|
CommercialRegisterSection: "HRA" | "HRB" | "PR" | "GnR" | "VR";
|
|
@@ -416,7 +557,7 @@ interface components {
|
|
|
416
557
|
/** @enum {string} */
|
|
417
558
|
ContractPageNumberPosition: "bottom_left" | "bottom_center" | "bottom_right";
|
|
418
559
|
/** @enum {string} */
|
|
419
|
-
ContractPartyRole: "lender" | "borrower" | "landlord" | "renter" | "head_landlord";
|
|
560
|
+
ContractPartyRole: "lender" | "borrower" | "landlord" | "renter" | "head_landlord" | "partner";
|
|
420
561
|
/** @enum {string} */
|
|
421
562
|
ContractScanContentType: "application/pdf" | "image/jpeg" | "image/png";
|
|
422
563
|
/** @enum {string} */
|
|
@@ -428,7 +569,7 @@ interface components {
|
|
|
428
569
|
/** @enum {string} */
|
|
429
570
|
ContractStatus: "draft" | "sent" | "formed" | "active" | "completed" | "terminated" | "cancelled" | "superseded" | "archived";
|
|
430
571
|
/** @enum {string} */
|
|
431
|
-
ContractType: "craft" | "service" | "purchase" | "rental" | "loan";
|
|
572
|
+
ContractType: "craft" | "service" | "purchase" | "rental" | "loan" | "partnership_agreement";
|
|
432
573
|
/** @enum {string} */
|
|
433
574
|
ContractTypography: "serif" | "sans" | "brand_system" | "brand_accent";
|
|
434
575
|
/** @enum {string} */
|
|
@@ -466,9 +607,13 @@ interface components {
|
|
|
466
607
|
/** @enum {string} */
|
|
467
608
|
DefectResponsibility: "renter" | "landlord" | "wear_and_tear" | "unknown";
|
|
468
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} */
|
|
469
614
|
DepositCustodyModel: "held" | "separate_account";
|
|
470
615
|
/** @enum {string} */
|
|
471
|
-
DepreciationRefusalType: "no_expense_account"
|
|
616
|
+
DepreciationRefusalType: "no_expense_account";
|
|
472
617
|
/** @enum {string} */
|
|
473
618
|
DocumentLinkProvenance: "rule" | "model" | "user";
|
|
474
619
|
/** @enum {string} */
|
|
@@ -508,13 +653,13 @@ interface components {
|
|
|
508
653
|
/** @enum {string} */
|
|
509
654
|
EntityAssetType: "logomark" | "wordmark" | "combinationmark_horizontal" | "combinationmark_vertical" | "icon";
|
|
510
655
|
/** @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";
|
|
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";
|
|
512
657
|
/** @enum {string} */
|
|
513
658
|
EntityDecisionSource: "entity" | "authority" | "law";
|
|
514
659
|
/** @enum {string} */
|
|
515
660
|
EntityDecisionStatus: "recorded" | "overturned" | "rejected";
|
|
516
661
|
/** @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";
|
|
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";
|
|
518
663
|
/** @enum {string} */
|
|
519
664
|
EntityDocumentType: "ebilanz_confirmation" | "kst_confirmation" | "gewst_confirmation" | "unternehmensregister_confirmation";
|
|
520
665
|
/** @enum {string} */
|
|
@@ -540,7 +685,7 @@ interface components {
|
|
|
540
685
|
/** @enum {string} */
|
|
541
686
|
FilingStatus: "not_started" | "submitted" | "assessed" | "rejected" | "superseded" | "filed_externally";
|
|
542
687
|
/** @enum {string} */
|
|
543
|
-
FilingType: "ebilanz" | "euer" | "kst" | "gewst" | "ustva" | "ust" | "est" | "separate_determination" | "unternehmensregister" | "opening_balance" | "mwst" | "jahresrechnung";
|
|
688
|
+
FilingType: "ebilanz" | "euer" | "kst" | "gewst" | "ustva" | "ust" | "est" | "separate_determination" | "recapitulative_statement" | "unternehmensregister" | "opening_balance" | "mwst" | "jahresrechnung";
|
|
544
689
|
/** @enum {string} */
|
|
545
690
|
FixedAssetScheduleProblemType: "position_balance_mismatch" | "opening_values_inconsistent" | "asset_without_position" | "euer_transfer_mismatch";
|
|
546
691
|
/** @enum {string} */
|
|
@@ -664,7 +809,7 @@ interface components {
|
|
|
664
809
|
/** @enum {string} */
|
|
665
810
|
MantelbogenField: "taxNumber" | "taxIdentificationNumber" | "dateOfBirth" | "name" | "academicTitle" | "religion" | "religionChange" | "street" | "postcode" | "city" | "country" | "assessmentType" | "iban" | "bic" | "accountHolder";
|
|
666
811
|
/** @enum {string} */
|
|
667
|
-
MappingCoverageSource: "override" | "template" | "unmapped";
|
|
812
|
+
MappingCoverageSource: "override" | "template" | "parent" | "unmapped";
|
|
668
813
|
/** @enum {string} */
|
|
669
814
|
MaritalStatus: "single" | "married" | "divorced" | "widowed" | "registered_partnership";
|
|
670
815
|
/** @enum {string} */
|
|
@@ -684,6 +829,8 @@ interface components {
|
|
|
684
829
|
/** @enum {string} */
|
|
685
830
|
MessageThreadSubjectType: "filing" | "party" | "entity" | "invoice" | "dunning_notice" | "rental" | "contract" | "loan" | "document";
|
|
686
831
|
/** @enum {string} */
|
|
832
|
+
MoneyAccountType: "bank" | "payment_provider";
|
|
833
|
+
/** @enum {string} */
|
|
687
834
|
ObligationAmountBasis: "fixed" | "computed_at_period_end" | "on_cash_only";
|
|
688
835
|
/** @enum {string} */
|
|
689
836
|
ObligationLinkType: "booking" | "adoption" | "accrual" | "accrual_release" | "reclassification" | "reversal";
|
|
@@ -704,6 +851,8 @@ interface components {
|
|
|
704
851
|
/** @enum {string} */
|
|
705
852
|
OccupantRelationship: "self" | "spouse_or_partner" | "child" | "parent" | "sibling" | "other_family_member" | "household_member";
|
|
706
853
|
/** @enum {string} */
|
|
854
|
+
OfficialExchangeRateMethod: "estv_monthly_average" | "estv_daily_selling_rate";
|
|
855
|
+
/** @enum {string} */
|
|
707
856
|
OnboardingCard: "mail_account" | "own_domain";
|
|
708
857
|
/** @enum {string} */
|
|
709
858
|
OrganicCollection: "bin" | "optional_bin" | "none";
|
|
@@ -724,7 +873,7 @@ interface components {
|
|
|
724
873
|
/** @enum {string} */
|
|
725
874
|
PartyType: "natural_person" | "legal_entity" | "sole_prop";
|
|
726
875
|
/** @enum {string} */
|
|
727
|
-
PaymentClaimSettlementType: "payment" | "cash_discount" | "write_off" | "correction";
|
|
876
|
+
PaymentClaimSettlementType: "payment" | "cash_discount" | "write_off" | "correction" | "offset" | "recovery";
|
|
728
877
|
/** @enum {string} */
|
|
729
878
|
PaymentClaimSide: "receivable" | "payable";
|
|
730
879
|
/** @enum {string} */
|
|
@@ -736,12 +885,14 @@ interface components {
|
|
|
736
885
|
/** @enum {string} */
|
|
737
886
|
PaymentMethod: "bank_transfer" | "cash";
|
|
738
887
|
/** @enum {string} */
|
|
888
|
+
PaymentProvider: "stripe" | "paypal" | "sumup";
|
|
889
|
+
/** @enum {string} */
|
|
890
|
+
PaymentProviderLicence: "credit_institution" | "e_money_institution";
|
|
891
|
+
/** @enum {string} */
|
|
739
892
|
PermanentExtensionDecision: "granted" | "revoked";
|
|
740
893
|
/** @enum {string} */
|
|
741
894
|
PersonalAnnualReviewStatus: "upcoming" | "open" | "frozen";
|
|
742
895
|
/** @enum {string} */
|
|
743
|
-
PlatformRole: "platform_maintainer" | "data_scientist";
|
|
744
|
-
/** @enum {string} */
|
|
745
896
|
PriorYearFigureType: "account_balance" | "euer_line" | "taxonomy_position" | "bwa_line";
|
|
746
897
|
/** @enum {string} */
|
|
747
898
|
ProfitDeterminationMethod: "balance_sheet_comparison" | "cash_basis";
|
|
@@ -764,10 +915,14 @@ interface components {
|
|
|
764
915
|
/** @enum {string} */
|
|
765
916
|
PropertyVanityHostStatus: "awaiting_dns" | "certifying" | "live" | "failed";
|
|
766
917
|
/** @enum {string} */
|
|
918
|
+
PurchaseReductionType: "price_reduction" | "rebate" | "bonus";
|
|
919
|
+
/** @enum {string} */
|
|
767
920
|
QuestionnairePersonField: "first_name" | "date_of_birth" | "address" | "capacity" | "profit_share" | "legal_form" | "partners";
|
|
768
921
|
/** @enum {string} */
|
|
769
922
|
QuestionnairePersonRole: "owner" | "representative" | "shareholder" | "partner";
|
|
770
923
|
/** @enum {string} */
|
|
924
|
+
RecapitulativeSupplyType: "intra_community_goods" | "triangular_transaction" | "intra_community_services";
|
|
925
|
+
/** @enum {string} */
|
|
771
926
|
ReconciliationItemStatus: "open" | "resolved" | "dismissed";
|
|
772
927
|
/** @enum {string} */
|
|
773
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";
|
|
@@ -780,6 +935,8 @@ interface components {
|
|
|
780
935
|
/** @enum {string} */
|
|
781
936
|
RecyclingCentreType: "container_site" | "recycling_centre";
|
|
782
937
|
/** @enum {string} */
|
|
938
|
+
RefundPlatformInvoiceCreditOutcome: "recorded" | "already_recorded" | "no_credit" | "refund_exceeds_credit" | "no_money_account";
|
|
939
|
+
/** @enum {string} */
|
|
783
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";
|
|
784
941
|
/** @enum {string} */
|
|
785
942
|
Religion: "catholic" | "protestant" | "jewish" | "muslim" | "hindu" | "none" | "other";
|
|
@@ -840,7 +997,9 @@ interface components {
|
|
|
840
997
|
/** @enum {string} */
|
|
841
998
|
SalesAccountSource: "outbound" | "inbound" | "referral" | "event" | "partner";
|
|
842
999
|
/** @enum {string} */
|
|
843
|
-
SalesActivityType: "note" | "call" | "email" | "meeting" | "stage_change" | "value_change" | "owner_change";
|
|
1000
|
+
SalesActivityType: "note" | "call" | "email" | "meeting" | "stage_change" | "value_change" | "owner_change" | "close_day_change" | "link_click";
|
|
1001
|
+
/** @enum {string} */
|
|
1002
|
+
SalesMailTemplateType: "general" | "demo";
|
|
844
1003
|
/** @enum {string} */
|
|
845
1004
|
ScanPageContentType: "image/jpeg" | "image/png";
|
|
846
1005
|
/** @enum {string} */
|
|
@@ -876,6 +1035,8 @@ interface components {
|
|
|
876
1035
|
/** @enum {string} */
|
|
877
1036
|
SubleaseRole: "headLandlord" | "subLandlord";
|
|
878
1037
|
/** @enum {string} */
|
|
1038
|
+
SupplierCreditNoteType: "return_of_goods" | "corrected_invoice" | "price_reduction" | "rebate" | "bonus" | "no_consideration_reduction";
|
|
1039
|
+
/** @enum {string} */
|
|
879
1040
|
TaxAccountAuthorizationStatus: "requested" | "active" | "refused" | "revoked";
|
|
880
1041
|
/** @enum {string} */
|
|
881
1042
|
TaxAccountEntryType: "assessment" | "prepayment" | "payment" | "refund" | "late_fee" | "interest" | "missing_return" | "open" | "other";
|
|
@@ -916,18 +1077,22 @@ interface components {
|
|
|
916
1077
|
/** @enum {string} */
|
|
917
1078
|
TermType: "fixed" | "indefinite";
|
|
918
1079
|
/** @enum {string} */
|
|
1080
|
+
TransactionHolder: "allocation" | "booking" | "loan" | "rental_deposit";
|
|
1081
|
+
/** @enum {string} */
|
|
919
1082
|
TransitionNextAction: "set_tax_number" | "complete" | "request_notice_delivery" | "set_share_capital" | "record_opening_position" | "open_fixed_assets" | "verify_elster_access" | "revoke_advisor_authorization";
|
|
920
1083
|
/** @enum {string} */
|
|
921
1084
|
TransitionStepGroup: "tax_office_access" | "advisor_documents" | "opening_position" | "catch_up";
|
|
922
1085
|
/** @enum {string} */
|
|
923
1086
|
TransitionStepType: "tax_number" | "elster_access" | "advisor_authorization_revoked" | "notice_delivery" | "share_capital" | "opening_position" | "fixed_asset_register";
|
|
924
1087
|
/** @enum {string} */
|
|
925
|
-
VatCategory: "standard" | "reduced" | "accommodation" | "zero_rated" | "exempt" | "exempt_with_credit" | "reverse_charge" | "intra_community_acquisition" | "intra_community_supply" | "import" | "export";
|
|
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";
|
|
926
1089
|
/** @enum {string} */
|
|
927
1090
|
VatCharacter: "liable" | "small_business" | "exempt";
|
|
928
1091
|
/** @enum {string} */
|
|
929
1092
|
VatDirection: "output" | "input";
|
|
930
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} */
|
|
931
1096
|
VatTaxationMethod: "accrual" | "cash";
|
|
932
1097
|
/** @enum {string} */
|
|
933
1098
|
WasteFraction: "packaging" | "paper" | "organic" | "residual";
|
|
@@ -942,13 +1107,15 @@ interface components {
|
|
|
942
1107
|
/** @enum {string} */
|
|
943
1108
|
AuditActorType: "user" | "system";
|
|
944
1109
|
/** @enum {string} */
|
|
945
|
-
AuditCategory: "documents" | "inbox" | "team" | "entity";
|
|
1110
|
+
AuditCategory: "documents" | "inbox" | "team" | "entity" | "journal";
|
|
946
1111
|
/** @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" | "
|
|
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";
|
|
948
1115
|
/** @enum {string} */
|
|
949
1116
|
FeatureCategory: "audit" | "auth" | "billing" | "collaboration" | "core" | "documents" | "entities" | "integrations" | "invoices" | "journal" | "marketing" | "metrics" | "payroll" | "platform" | "properties" | "reporting" | "settings" | "transactions" | "wealth";
|
|
950
1117
|
/** @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";
|
|
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";
|
|
952
1119
|
/** @enum {string} */
|
|
953
1120
|
FeatureStatus: "backlog" | "in_development" | "released";
|
|
954
1121
|
/** @enum {string} */
|
|
@@ -956,7 +1123,7 @@ interface components {
|
|
|
956
1123
|
/** @enum {string} */
|
|
957
1124
|
PendingSuperadminTransferStatus: "pending_invite" | "accepted_awaiting_payment" | "completed" | "cancelled" | "expired";
|
|
958
1125
|
/** @enum {string} */
|
|
959
|
-
|
|
1126
|
+
CancellationFeedbackReason: "too_expensive" | "missing_feature" | "too_complicated" | "switched_provider" | "no_longer_needed" | "other";
|
|
960
1127
|
/** @enum {string} */
|
|
961
1128
|
MentionEntityType: "plan";
|
|
962
1129
|
/** @enum {string} */
|
|
@@ -966,6 +1133,8 @@ interface components {
|
|
|
966
1133
|
/** @enum {string} */
|
|
967
1134
|
ChatMemberRole: "owner" | "member";
|
|
968
1135
|
/** @enum {string} */
|
|
1136
|
+
DocumentErasureReason: "account_retention_ended" | "archive_expired";
|
|
1137
|
+
/** @enum {string} */
|
|
969
1138
|
DocumentAccessType: "view" | "download" | "sent";
|
|
970
1139
|
/** @enum {string} */
|
|
971
1140
|
DocumentClassificationState: "unclassified" | "proposed" | "confirmed";
|
|
@@ -1004,9 +1173,7 @@ interface components {
|
|
|
1004
1173
|
/** @enum {string} */
|
|
1005
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";
|
|
1006
1175
|
/** @enum {string} */
|
|
1007
|
-
|
|
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";
|
|
1176
|
+
JournalErasureReason: "e2e_clean_up" | "held_entity_never_paid" | "books_reset" | "demo_generated_anew" | "account_retention_ended" | "archive_expired";
|
|
1010
1177
|
/** @enum {string} */
|
|
1011
1178
|
AccountType: "asset" | "liability" | "equity" | "revenue" | "expense" | "tax";
|
|
1012
1179
|
/** @enum {string} */
|
|
@@ -1016,7 +1183,7 @@ interface components {
|
|
|
1016
1183
|
/** @enum {string} */
|
|
1017
1184
|
XbrlPeriodType: "instant" | "duration";
|
|
1018
1185
|
/** @enum {string} */
|
|
1019
|
-
TriggerEvent: "invoice_booked_outgoing" | "invoice_booked_incoming" | "invoice_cancelled_outgoing" | "invoice_cancelled_incoming" | "payment_allocated_incoming" | "payment_allocated_outgoing" | "payment_cancelled" | "
|
|
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";
|
|
1020
1187
|
/** @enum {string} */
|
|
1021
1188
|
AmountSource: "gross_amount" | "net_amount" | "tax_amount" | "payment_amount" | "depreciation_amount" | "principal_amount" | "interest_amount" | "accrued_interest_amount" | "current_interest_amount" | "deposit_amount";
|
|
1022
1189
|
/** @enum {string} */
|
|
@@ -1026,9 +1193,11 @@ interface components {
|
|
|
1026
1193
|
/** @enum {string} */
|
|
1027
1194
|
TransactionType: "income" | "expense" | "transfer" | "investment" | "refund" | "loan" | "asset";
|
|
1028
1195
|
/** @enum {string} */
|
|
1029
|
-
|
|
1196
|
+
MoneyAccountStatus: "active" | "closed";
|
|
1030
1197
|
/** @enum {string} */
|
|
1031
1198
|
PlatformInvoiceLineType: "plan" | "tenant" | "module" | "module_unit" | "other";
|
|
1199
|
+
/** @enum {string} */
|
|
1200
|
+
EnumCancelledOpenPaid: "cancelled" | "open" | "paid";
|
|
1032
1201
|
};
|
|
1033
1202
|
responses: never;
|
|
1034
1203
|
parameters: never;
|
|
@@ -1052,6 +1221,11 @@ type PlatformInvoiceLineType = schemas['PlatformInvoiceLineType'];
|
|
|
1052
1221
|
type PlatformInvoiceCustomer = schemas['PlatformInvoiceCustomer'];
|
|
1053
1222
|
type ProcessPlatformInvoiceRequest = schemas['ProcessPlatformInvoiceBody'];
|
|
1054
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'];
|
|
1055
1229
|
type ProcessPlatformInvoicePaymentRequest = schemas['ProcessPlatformInvoicePaymentBody'];
|
|
1056
1230
|
type ProcessPlatformInvoicePaymentResponse = schemas['ProcessPlatformInvoicePaymentResponse'];
|
|
1057
1231
|
type ProcessPlatformInvoiceVoidRequest = schemas['ProcessPlatformInvoiceVoidBody'];
|
|
@@ -1061,6 +1235,12 @@ type ProcessPlatformInvoiceCreditResponse = schemas['ProcessPlatformInvoiceCredi
|
|
|
1061
1235
|
/** The entity's own invoice for a platform invoice — number, state and
|
|
1062
1236
|
* amounts. */
|
|
1063
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'];
|
|
1064
1244
|
type FetchOpenPlatformInvoicesRequest = schemas['FetchOpenPlatformInvoicesBody'];
|
|
1065
1245
|
type FetchOpenPlatformInvoicesResponse = schemas['FetchOpenPlatformInvoicesResponse'];
|
|
1066
1246
|
type PreviewPlatformInvoiceRequest = schemas['FetchPlatformInvoicePreviewBody'];
|
|
@@ -1078,11 +1258,48 @@ type PlatformChargeCustomer = schemas['PlatformChargeCustomer'];
|
|
|
1078
1258
|
/** The tax on a customer's charges: rate, contained or added, country. */
|
|
1079
1259
|
type PlatformChargeTax = schemas['PlatformChargeTax'];
|
|
1080
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
|
+
|
|
1081
1297
|
/**
|
|
1082
1298
|
* What a platform invoices its customers, handed to the entity that owns
|
|
1083
1299
|
* the platform: billionaire issues the entity's own invoice for it, records
|
|
1084
|
-
* its payment and cancels it when the payment provider voids it
|
|
1085
|
-
* all of it
|
|
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
|
|
1086
1303
|
* platform asks which of its invoices are still unpaid, for an event it
|
|
1087
1304
|
* never handed over.
|
|
1088
1305
|
*
|
|
@@ -1129,6 +1346,33 @@ declare class PlatformInvoicesResource extends BaseResource {
|
|
|
1129
1346
|
* invoice it documents
|
|
1130
1347
|
*/
|
|
1131
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>;
|
|
1132
1376
|
/**
|
|
1133
1377
|
* Get the entity's invoice for a platform invoice.
|
|
1134
1378
|
* @param stripeInvoiceId - The payment provider's id of the platform's invoice
|
|
@@ -1153,10 +1397,16 @@ declare class PlatformInvoicesResource extends BaseResource {
|
|
|
1153
1397
|
* Hand over a credit note the payment provider issued for a platform
|
|
1154
1398
|
* invoice — money back to the card, a credit on the customer's balance.
|
|
1155
1399
|
* 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
|
|
1157
|
-
*
|
|
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.
|
|
1158
1408
|
* @param stripeInvoiceId - The payment provider's id of the credited invoice
|
|
1159
|
-
* @param request - The credit note, when it was issued
|
|
1409
|
+
* @param request - The credit note, when it was issued, what it takes back and what it refunded
|
|
1160
1410
|
*/
|
|
1161
1411
|
processCredit(stripeInvoiceId: string, request: ProcessPlatformInvoiceCreditRequest): Promise<ProcessPlatformInvoiceCreditResponse>;
|
|
1162
1412
|
}
|
|
@@ -1180,6 +1430,7 @@ interface BLNRClientConfig {
|
|
|
1180
1430
|
tokenUrl?: string;
|
|
1181
1431
|
}
|
|
1182
1432
|
declare class BLNRClient {
|
|
1433
|
+
platformCustomers: PlatformCustomersResource;
|
|
1183
1434
|
platformInvoices: PlatformInvoicesResource;
|
|
1184
1435
|
private readonly baseUrl;
|
|
1185
1436
|
private readonly tokenManager;
|
|
@@ -1187,4 +1438,4 @@ declare class BLNRClient {
|
|
|
1187
1438
|
}
|
|
1188
1439
|
|
|
1189
1440
|
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 };
|
|
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 };
|