@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/schemas.cjs
CHANGED
|
@@ -20,159 +20,6 @@ const accessGrantStatusSchema = v4.z.enum([
|
|
|
20
20
|
"revoked"
|
|
21
21
|
]);
|
|
22
22
|
|
|
23
|
-
const accountMappingTypeSchema = v4.z.enum([
|
|
24
|
-
"accounts_receivable",
|
|
25
|
-
"accounts_payable",
|
|
26
|
-
"bank_default",
|
|
27
|
-
"cash_default",
|
|
28
|
-
"vat_input",
|
|
29
|
-
"vat_output",
|
|
30
|
-
"vat_input_reduced",
|
|
31
|
-
"vat_output_reduced",
|
|
32
|
-
"vat_prepayment",
|
|
33
|
-
"revenue_default",
|
|
34
|
-
"revenue_reduced",
|
|
35
|
-
"expense_default",
|
|
36
|
-
"depreciation_expense",
|
|
37
|
-
"accumulated_depreciation",
|
|
38
|
-
"asset_disposal_gain",
|
|
39
|
-
"asset_disposal_loss",
|
|
40
|
-
"loan_receivable",
|
|
41
|
-
"loan_payable",
|
|
42
|
-
"loan_receivable_shareholder",
|
|
43
|
-
"loan_receivable_affiliated",
|
|
44
|
-
"loan_receivable_third_party",
|
|
45
|
-
"loan_payable_shareholder",
|
|
46
|
-
"loan_payable_affiliated",
|
|
47
|
-
"loan_payable_third_party",
|
|
48
|
-
"loan_payable_shareholder_short",
|
|
49
|
-
"loan_payable_shareholder_medium",
|
|
50
|
-
"loan_payable_shareholder_long",
|
|
51
|
-
"loan_payable_affiliated_short",
|
|
52
|
-
"loan_payable_affiliated_medium",
|
|
53
|
-
"loan_payable_affiliated_long",
|
|
54
|
-
"loan_payable_third_party_short",
|
|
55
|
-
"loan_payable_third_party_medium",
|
|
56
|
-
"loan_payable_third_party_long",
|
|
57
|
-
"loan_receivable_shareholder_short",
|
|
58
|
-
"loan_receivable_shareholder_medium",
|
|
59
|
-
"loan_receivable_shareholder_long",
|
|
60
|
-
"loan_receivable_affiliated_short",
|
|
61
|
-
"loan_receivable_affiliated_medium",
|
|
62
|
-
"loan_receivable_affiliated_long",
|
|
63
|
-
"loan_receivable_third_party_short",
|
|
64
|
-
"loan_receivable_third_party_medium",
|
|
65
|
-
"loan_receivable_third_party_long",
|
|
66
|
-
"loan_payable_general_partner",
|
|
67
|
-
"loan_payable_limited_partner",
|
|
68
|
-
"loan_receivable_general_partner",
|
|
69
|
-
"loan_receivable_limited_partner",
|
|
70
|
-
"loan_payable_general_partner_short",
|
|
71
|
-
"loan_payable_general_partner_medium",
|
|
72
|
-
"loan_payable_general_partner_long",
|
|
73
|
-
"loan_payable_limited_partner_short",
|
|
74
|
-
"loan_payable_limited_partner_medium",
|
|
75
|
-
"loan_payable_limited_partner_long",
|
|
76
|
-
"loan_receivable_general_partner_short",
|
|
77
|
-
"loan_receivable_general_partner_medium",
|
|
78
|
-
"loan_receivable_general_partner_long",
|
|
79
|
-
"loan_receivable_limited_partner_short",
|
|
80
|
-
"loan_receivable_limited_partner_medium",
|
|
81
|
-
"loan_receivable_limited_partner_long",
|
|
82
|
-
"silent_contribution_typical",
|
|
83
|
-
"silent_contribution_typical_short",
|
|
84
|
-
"silent_contribution_typical_medium",
|
|
85
|
-
"silent_contribution_typical_long",
|
|
86
|
-
"silent_contribution_atypical",
|
|
87
|
-
"silent_contribution_atypical_short",
|
|
88
|
-
"silent_contribution_atypical_medium",
|
|
89
|
-
"silent_contribution_atypical_long",
|
|
90
|
-
"loan_payable_silent_partner",
|
|
91
|
-
"loan_payable_silent_partner_short",
|
|
92
|
-
"loan_payable_silent_partner_medium",
|
|
93
|
-
"loan_payable_silent_partner_long",
|
|
94
|
-
"loan_receivable_typical_silent_partner",
|
|
95
|
-
"loan_receivable_typical_silent_partner_short",
|
|
96
|
-
"loan_receivable_typical_silent_partner_long",
|
|
97
|
-
"silent_profit_share_typical",
|
|
98
|
-
"silent_profit_share_atypical",
|
|
99
|
-
"silent_profit_share_payable",
|
|
100
|
-
"loan_receivable_director",
|
|
101
|
-
"loan_receivable_director_short",
|
|
102
|
-
"loan_receivable_director_long",
|
|
103
|
-
"loan_payable_bank",
|
|
104
|
-
"loan_payable_bank_short",
|
|
105
|
-
"loan_payable_bank_medium",
|
|
106
|
-
"loan_payable_bank_long",
|
|
107
|
-
"interest_income",
|
|
108
|
-
"interest_expense",
|
|
109
|
-
"retained_earnings",
|
|
110
|
-
"private_withdrawals",
|
|
111
|
-
"private_contributions",
|
|
112
|
-
"own_consumption_goods_full_rate",
|
|
113
|
-
"own_consumption_goods_reduced_rate",
|
|
114
|
-
"capital_in_business",
|
|
115
|
-
"private_health_insurance_statutory",
|
|
116
|
-
"private_health_insurance_private",
|
|
117
|
-
"private_care_insurance_statutory",
|
|
118
|
-
"private_care_insurance_private",
|
|
119
|
-
"private_pension_insurance_basic",
|
|
120
|
-
"private_unemployment_insurance",
|
|
121
|
-
"private_liability_and_accident_insurance",
|
|
122
|
-
"private_church_tax",
|
|
123
|
-
"private_donations_charitable",
|
|
124
|
-
"private_donations_political_party",
|
|
125
|
-
"loss_carried_forward",
|
|
126
|
-
"suspense",
|
|
127
|
-
"subscribed_capital",
|
|
128
|
-
"outstanding_contributions_uncalled",
|
|
129
|
-
"called_up_capital_receivable",
|
|
130
|
-
"capital_reserve",
|
|
131
|
-
"legal_reserve",
|
|
132
|
-
"voluntary_reserve",
|
|
133
|
-
"fixed_asset_land",
|
|
134
|
-
"fixed_asset_building_residential",
|
|
135
|
-
"fixed_asset_building_commercial",
|
|
136
|
-
"building_savings_balance",
|
|
137
|
-
"bank_fee_expense",
|
|
138
|
-
"other_operating_expense",
|
|
139
|
-
"legal_consulting_expense",
|
|
140
|
-
"software_expense",
|
|
141
|
-
"utility_expense_energy",
|
|
142
|
-
"utility_expense_heating",
|
|
143
|
-
"utility_expense_cleaning",
|
|
144
|
-
"utility_expense_maintenance",
|
|
145
|
-
"utility_expense_insurance",
|
|
146
|
-
"utility_expense_property_tax",
|
|
147
|
-
"gwg_expense_immediate",
|
|
148
|
-
"loan_receivable_participation",
|
|
149
|
-
"loan_receivable_participation_short",
|
|
150
|
-
"loan_receivable_participation_medium",
|
|
151
|
-
"loan_receivable_participation_long",
|
|
152
|
-
"loan_payable_participation",
|
|
153
|
-
"loan_payable_participation_short",
|
|
154
|
-
"loan_payable_participation_medium",
|
|
155
|
-
"loan_payable_participation_long",
|
|
156
|
-
"interest_income_affiliated",
|
|
157
|
-
"interest_income_long_term_loans",
|
|
158
|
-
"interest_income_long_term_loans_affiliated",
|
|
159
|
-
"interest_expense_affiliated",
|
|
160
|
-
"interest_expense_shareholder",
|
|
161
|
-
"loan_fee_expense",
|
|
162
|
-
"loan_fee_income",
|
|
163
|
-
"accrued_interest_receivable",
|
|
164
|
-
"accrued_interest_payable",
|
|
165
|
-
"rental_deposit_receivable",
|
|
166
|
-
"rental_deposit_payable",
|
|
167
|
-
"other_operating_income",
|
|
168
|
-
"cash_discount_granted",
|
|
169
|
-
"bad_debt_expense",
|
|
170
|
-
"inventory",
|
|
171
|
-
"prepaid_expenses",
|
|
172
|
-
"deferred_income",
|
|
173
|
-
"owner_capital"
|
|
174
|
-
]);
|
|
175
|
-
|
|
176
23
|
const accountSnapshotStatusSchema = v4.z.enum([
|
|
177
24
|
"pending",
|
|
178
25
|
"ready",
|
|
@@ -307,13 +154,16 @@ const assetDepreciationTypeSchema = v4.z.enum([
|
|
|
307
154
|
"disposal_book_value"
|
|
308
155
|
]);
|
|
309
156
|
|
|
157
|
+
const assetDisposalResultSchema = v4.z.enum(["gain", "loss"]);
|
|
158
|
+
|
|
310
159
|
const auditActorTypeSchema = v4.z.enum(["user", "system"]);
|
|
311
160
|
|
|
312
161
|
const auditCategorySchema = v4.z.enum([
|
|
313
162
|
"documents",
|
|
314
163
|
"inbox",
|
|
315
164
|
"team",
|
|
316
|
-
"entity"
|
|
165
|
+
"entity",
|
|
166
|
+
"journal"
|
|
317
167
|
]);
|
|
318
168
|
|
|
319
169
|
const balanceSheetCategorySchema = v4.z.enum([
|
|
@@ -333,8 +183,6 @@ const balanceSheetStandardSchema = v4.z.enum([
|
|
|
333
183
|
|
|
334
184
|
const bandMeasureSchema = v4.z.enum(["revenue", "balance_sheet_total"]);
|
|
335
185
|
|
|
336
|
-
const bankAccountStatusSchema = v4.z.enum(["active", "closed"]);
|
|
337
|
-
|
|
338
186
|
const bankStatementDecimalSeparatorSchema = v4.z.enum(["comma", "period"]);
|
|
339
187
|
|
|
340
188
|
const bankStatementSourceSchema = v4.z.enum(["csv"]);
|
|
@@ -423,7 +271,38 @@ const bookingPurposeSchema = v4.z.enum([
|
|
|
423
271
|
"deferred_income",
|
|
424
272
|
"owner_capital",
|
|
425
273
|
"cash_discount_received",
|
|
426
|
-
"supplier_credit_receivable"
|
|
274
|
+
"supplier_credit_receivable",
|
|
275
|
+
"rental_income",
|
|
276
|
+
"goods_expense",
|
|
277
|
+
"wage_expense",
|
|
278
|
+
"salary_expense",
|
|
279
|
+
"social_security_expense",
|
|
280
|
+
"payroll_payable",
|
|
281
|
+
"wage_tax_payable",
|
|
282
|
+
"social_security_payable",
|
|
283
|
+
"rent_expense",
|
|
284
|
+
"leasing_expense",
|
|
285
|
+
"sales_commission_expense",
|
|
286
|
+
"gift_voucher_liability",
|
|
287
|
+
"corporate_income_tax_expense",
|
|
288
|
+
"solidarity_surcharge_expense",
|
|
289
|
+
"trade_tax_expense",
|
|
290
|
+
"corporate_income_tax_provision",
|
|
291
|
+
"fixed_asset_operating_equipment",
|
|
292
|
+
"trade_tax_provision",
|
|
293
|
+
"equipment_repair_expense",
|
|
294
|
+
"operating_supplies_expense",
|
|
295
|
+
"cash_in_transit",
|
|
296
|
+
"special_depreciation_expense",
|
|
297
|
+
"asset_pool_depreciation_expense",
|
|
298
|
+
"customer_credit_payable",
|
|
299
|
+
"deferred_input_vat",
|
|
300
|
+
"bad_debt_recovery_income",
|
|
301
|
+
"asset_disposal_book_value",
|
|
302
|
+
"asset_disposal_proceeds",
|
|
303
|
+
"asset_sale_receivable",
|
|
304
|
+
"purchase_reduction",
|
|
305
|
+
"payment_provider_balance"
|
|
427
306
|
]);
|
|
428
307
|
|
|
429
308
|
const bookingSideSchema = v4.z.enum(["debit", "credit"]);
|
|
@@ -458,7 +337,19 @@ const cancelPlatformInvoiceOutcomeSchema = v4.z.enum([
|
|
|
458
337
|
"already_cancelled",
|
|
459
338
|
"no_invoice",
|
|
460
339
|
"paid",
|
|
461
|
-
"partial_credit"
|
|
340
|
+
"partial_credit",
|
|
341
|
+
"corrected",
|
|
342
|
+
"already_corrected",
|
|
343
|
+
"credit_exceeds_invoice"
|
|
344
|
+
]);
|
|
345
|
+
|
|
346
|
+
const cancellationFeedbackReasonSchema = v4.z.enum([
|
|
347
|
+
"too_expensive",
|
|
348
|
+
"missing_feature",
|
|
349
|
+
"too_complicated",
|
|
350
|
+
"switched_provider",
|
|
351
|
+
"no_longer_needed",
|
|
352
|
+
"other"
|
|
462
353
|
]);
|
|
463
354
|
|
|
464
355
|
const cashBasisAssetGroupSchema = v4.z.enum([
|
|
@@ -496,6 +387,7 @@ const catchUpUstvaStatusSchema = v4.z.enum([
|
|
|
496
387
|
const chartFamilySchema = v4.z.enum(["datev", "kmu", "de_gaap_ci"]);
|
|
497
388
|
|
|
498
389
|
const chartInterchangeTierSchema = v4.z.enum([
|
|
390
|
+
"succession",
|
|
499
391
|
"origin",
|
|
500
392
|
"correspondence",
|
|
501
393
|
"role",
|
|
@@ -507,11 +399,24 @@ const chartNumberBlockTypeSchema = v4.z.enum([
|
|
|
507
399
|
"reserved",
|
|
508
400
|
"account_block",
|
|
509
401
|
"personal_debtors",
|
|
510
|
-
"personal_creditors"
|
|
402
|
+
"personal_creditors",
|
|
403
|
+
"free_class"
|
|
511
404
|
]);
|
|
512
405
|
|
|
406
|
+
const chartPlacePoolMemberTypeSchema = v4.z.enum(["account", "range"]);
|
|
407
|
+
|
|
513
408
|
const chartProviderSchema = v4.z.enum(["datev", "veb", "esteuer"]);
|
|
514
409
|
|
|
410
|
+
const chartSuccessionTypeSchema = v4.z.enum([
|
|
411
|
+
"same",
|
|
412
|
+
"renamed",
|
|
413
|
+
"dropped",
|
|
414
|
+
"renumbered",
|
|
415
|
+
"merged",
|
|
416
|
+
"split",
|
|
417
|
+
"repurposed"
|
|
418
|
+
]);
|
|
419
|
+
|
|
515
420
|
const chatChannelTypeSchema = v4.z.enum([
|
|
516
421
|
"team",
|
|
517
422
|
"direct",
|
|
@@ -622,7 +527,8 @@ const contractPartyRoleSchema = v4.z.enum([
|
|
|
622
527
|
"borrower",
|
|
623
528
|
"landlord",
|
|
624
529
|
"renter",
|
|
625
|
-
"head_landlord"
|
|
530
|
+
"head_landlord",
|
|
531
|
+
"partner"
|
|
626
532
|
]);
|
|
627
533
|
|
|
628
534
|
const contractScanContentTypeSchema = v4.z.enum([
|
|
@@ -670,7 +576,8 @@ const contractTypeSchema = v4.z.enum([
|
|
|
670
576
|
"service",
|
|
671
577
|
"purchase",
|
|
672
578
|
"rental",
|
|
673
|
-
"loan"
|
|
579
|
+
"loan",
|
|
580
|
+
"partnership_agreement"
|
|
674
581
|
]);
|
|
675
582
|
|
|
676
583
|
const contractTypographySchema = v4.z.enum([
|
|
@@ -1014,13 +921,36 @@ const defectResponsibilitySchema = v4.z.enum([
|
|
|
1014
921
|
"unknown"
|
|
1015
922
|
]);
|
|
1016
923
|
|
|
1017
|
-
const
|
|
924
|
+
const demoAreaSchema = v4.z.enum([
|
|
925
|
+
"dashboard",
|
|
926
|
+
"accounting",
|
|
927
|
+
"balanceSheet",
|
|
928
|
+
"profitAndLoss",
|
|
929
|
+
"reporting",
|
|
930
|
+
"documents",
|
|
931
|
+
"inbox",
|
|
932
|
+
"contracts",
|
|
933
|
+
"rolodex",
|
|
934
|
+
"properties",
|
|
935
|
+
"letterhead",
|
|
936
|
+
"taxRegistration",
|
|
937
|
+
"formation",
|
|
938
|
+
"transition",
|
|
939
|
+
"settings",
|
|
940
|
+
"other"
|
|
941
|
+
]);
|
|
1018
942
|
|
|
1019
|
-
const
|
|
1020
|
-
"
|
|
1021
|
-
"
|
|
943
|
+
const demoStatusSchema = v4.z.enum([
|
|
944
|
+
"generating",
|
|
945
|
+
"ready",
|
|
946
|
+
"failed",
|
|
947
|
+
"expired"
|
|
1022
948
|
]);
|
|
1023
949
|
|
|
950
|
+
const depositCustodyModelSchema = v4.z.enum(["held", "separate_account"]);
|
|
951
|
+
|
|
952
|
+
const depreciationRefusalTypeSchema = v4.z.enum(["no_expense_account"]);
|
|
953
|
+
|
|
1024
954
|
const directionSchema = v4.z.enum(["left", "right", "up", "down"]);
|
|
1025
955
|
|
|
1026
956
|
const directionXSchema = v4.z.enum(["left", "right"]);
|
|
@@ -1035,6 +965,11 @@ const documentClassificationStateSchema = v4.z.enum([
|
|
|
1035
965
|
"confirmed"
|
|
1036
966
|
]);
|
|
1037
967
|
|
|
968
|
+
const documentErasureReasonSchema = v4.z.enum([
|
|
969
|
+
"account_retention_ended",
|
|
970
|
+
"archive_expired"
|
|
971
|
+
]);
|
|
972
|
+
|
|
1038
973
|
const documentLinkProvenanceSchema = v4.z.enum(["rule", "model", "user"]);
|
|
1039
974
|
|
|
1040
975
|
const documentLinkRelationTypeSchema = v4.z.enum([
|
|
@@ -1203,7 +1138,8 @@ const entityDecisionReasonSchema = v4.z.enum([
|
|
|
1203
1138
|
"threshold_cross",
|
|
1204
1139
|
"threshold_drop",
|
|
1205
1140
|
"permanent_extension",
|
|
1206
|
-
"became_merchant"
|
|
1141
|
+
"became_merchant",
|
|
1142
|
+
"successor_edition"
|
|
1207
1143
|
]);
|
|
1208
1144
|
|
|
1209
1145
|
const entityDecisionSourceSchema = v4.z.enum(["entity", "authority", "law"]);
|
|
@@ -1225,7 +1161,8 @@ const entityDecisionTypeSchema = v4.z.enum([
|
|
|
1225
1161
|
"vat_taxation_method",
|
|
1226
1162
|
"vat_permanent_extension",
|
|
1227
1163
|
"entity_type",
|
|
1228
|
-
"declared_size"
|
|
1164
|
+
"declared_size",
|
|
1165
|
+
"consumer_supplies_abroad"
|
|
1229
1166
|
]);
|
|
1230
1167
|
|
|
1231
1168
|
const entityDocumentTypeSchema = v4.z.enum([
|
|
@@ -1272,6 +1209,8 @@ const entityUserStatusSchema = v4.z.enum([
|
|
|
1272
1209
|
"revoked"
|
|
1273
1210
|
]);
|
|
1274
1211
|
|
|
1212
|
+
const enumCancelledOpenPaidSchema = v4.z.enum(["cancelled", "open", "paid"]);
|
|
1213
|
+
|
|
1275
1214
|
const estScheduleSchema = v4.z.enum([
|
|
1276
1215
|
"anlage_n",
|
|
1277
1216
|
"anlage_kap",
|
|
@@ -1334,7 +1273,34 @@ const featureGateSchema = v4.z.enum([
|
|
|
1334
1273
|
"renter-documents",
|
|
1335
1274
|
"whitelabel-branding",
|
|
1336
1275
|
"payment-reminders",
|
|
1337
|
-
"property-management"
|
|
1276
|
+
"property-management",
|
|
1277
|
+
"financial-dashboard",
|
|
1278
|
+
"incoming-invoices",
|
|
1279
|
+
"bank-transactions",
|
|
1280
|
+
"journal",
|
|
1281
|
+
"payment-claims",
|
|
1282
|
+
"dunning",
|
|
1283
|
+
"fixed-assets",
|
|
1284
|
+
"balance-sheet",
|
|
1285
|
+
"profit-and-loss",
|
|
1286
|
+
"annual-statement",
|
|
1287
|
+
"vat-return",
|
|
1288
|
+
"trial-balance",
|
|
1289
|
+
"business-analysis",
|
|
1290
|
+
"income-expense-statement",
|
|
1291
|
+
"corporation-tax-return",
|
|
1292
|
+
"trade-tax-return",
|
|
1293
|
+
"income-tax-return",
|
|
1294
|
+
"tax-assessments",
|
|
1295
|
+
"document-hub",
|
|
1296
|
+
"inbox",
|
|
1297
|
+
"rolodex",
|
|
1298
|
+
"letterhead",
|
|
1299
|
+
"tax-registration",
|
|
1300
|
+
"company-formation",
|
|
1301
|
+
"advisor-switch",
|
|
1302
|
+
"team-management",
|
|
1303
|
+
"developer-api"
|
|
1338
1304
|
]);
|
|
1339
1305
|
|
|
1340
1306
|
const featureStatusSchema = v4.z.enum([
|
|
@@ -1343,6 +1309,50 @@ const featureStatusSchema = v4.z.enum([
|
|
|
1343
1309
|
"released"
|
|
1344
1310
|
]);
|
|
1345
1311
|
|
|
1312
|
+
const fetchCustomerPlatformInvoiceDocumentUrlBodySchema = v4.z.object({
|
|
1313
|
+
filters: v4.z.object({
|
|
1314
|
+
platform: v4.z.string().min(1).describe(
|
|
1315
|
+
"The platform whose customer it is, as it names itself (order3000)"
|
|
1316
|
+
),
|
|
1317
|
+
tenantIds: v4.z.array(v4.z.string().min(1)).min(1).max(500).describe(
|
|
1318
|
+
"The platform's own ids of the customers it may be addressed to \u2014 the tenants of the account that opens it"
|
|
1319
|
+
)
|
|
1320
|
+
})
|
|
1321
|
+
});
|
|
1322
|
+
|
|
1323
|
+
const fetchCustomerPlatformInvoiceDocumentUrlResponseSchema = v4.z.object({
|
|
1324
|
+
signedUrl: v4.z.string().describe("Where the PDF is served for the next few minutes")
|
|
1325
|
+
});
|
|
1326
|
+
|
|
1327
|
+
const fetchCustomerPlatformInvoicesBodySchema = v4.z.object({
|
|
1328
|
+
filters: v4.z.object({
|
|
1329
|
+
platform: v4.z.string().min(1).describe(
|
|
1330
|
+
"The platform whose customers are asked for, as it names itself (order3000)"
|
|
1331
|
+
),
|
|
1332
|
+
tenantIds: v4.z.array(v4.z.string().min(1)).min(1).max(500).describe(
|
|
1333
|
+
"The platform's own ids of the customers whose invoices are asked for \u2014 the tenants of one account"
|
|
1334
|
+
)
|
|
1335
|
+
})
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
const fetchCustomerPlatformInvoicesResponseSchema = v4.z.array(
|
|
1339
|
+
v4.z.object({
|
|
1340
|
+
stripeInvoiceId: v4.z.string().describe("The payment provider's id of the platform's invoice"),
|
|
1341
|
+
invoiceNumber: v4.z.nullable(v4.z.string()),
|
|
1342
|
+
issueDate: v4.z.iso.date().describe("The day it was issued"),
|
|
1343
|
+
dueDate: v4.z.nullable(v4.z.iso.date()),
|
|
1344
|
+
currency: v4.z.string().describe("Upper case"),
|
|
1345
|
+
amount: v4.z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
1346
|
+
"What it is issued for, tax included, in the currency's minor unit"
|
|
1347
|
+
),
|
|
1348
|
+
get state() {
|
|
1349
|
+
return enumCancelledOpenPaidSchema;
|
|
1350
|
+
},
|
|
1351
|
+
tenantId: v4.z.string().describe("The platform's id of the customer it is addressed to"),
|
|
1352
|
+
hasDocument: v4.z.boolean().describe("Whether the entity keeps its PDF")
|
|
1353
|
+
})
|
|
1354
|
+
);
|
|
1355
|
+
|
|
1346
1356
|
const fetchOpenPlatformInvoicesBodySchema = v4.z.object({
|
|
1347
1357
|
filters: v4.z.object({
|
|
1348
1358
|
platform: v4.z.string().min(1).describe(
|
|
@@ -1427,6 +1437,83 @@ const fetchPlatformChargeTaxesResponseSchema = v4.z.object({
|
|
|
1427
1437
|
)
|
|
1428
1438
|
});
|
|
1429
1439
|
|
|
1440
|
+
const partyTypeSchema = v4.z.enum([
|
|
1441
|
+
"natural_person",
|
|
1442
|
+
"legal_entity",
|
|
1443
|
+
"sole_prop"
|
|
1444
|
+
]);
|
|
1445
|
+
|
|
1446
|
+
const fetchPlatformCustomerResponseSchema = v4.z.object({
|
|
1447
|
+
partyId: v4.z.string().describe("The party the customer is in the books of the platform's owner"),
|
|
1448
|
+
reference: v4.z.string().describe("The platform's own reference of its customer"),
|
|
1449
|
+
get partyType() {
|
|
1450
|
+
return partyTypeSchema;
|
|
1451
|
+
},
|
|
1452
|
+
name: v4.z.string().describe("The name its invoices are addressed to"),
|
|
1453
|
+
email: v4.z.nullable(v4.z.string()),
|
|
1454
|
+
vatId: v4.z.nullable(v4.z.string()),
|
|
1455
|
+
taxNumber: v4.z.nullable(v4.z.string()),
|
|
1456
|
+
address: v4.z.nullable(
|
|
1457
|
+
v4.z.object({
|
|
1458
|
+
street: v4.z.string(),
|
|
1459
|
+
building: v4.z.nullable(v4.z.string()),
|
|
1460
|
+
postcode: v4.z.string(),
|
|
1461
|
+
city: v4.z.string(),
|
|
1462
|
+
get country() {
|
|
1463
|
+
return countrySchema;
|
|
1464
|
+
}
|
|
1465
|
+
}).describe("Its billing address; null where the party keeps none")
|
|
1466
|
+
)
|
|
1467
|
+
});
|
|
1468
|
+
|
|
1469
|
+
const fetchPlatformInvoiceMonthsBodySchema = v4.z.object({
|
|
1470
|
+
filters: v4.z.object({
|
|
1471
|
+
platform: v4.z.string().min(1).describe(
|
|
1472
|
+
"The platform whose customers are asked for, as it names itself (order3000)"
|
|
1473
|
+
),
|
|
1474
|
+
since: v4.z.iso.date().describe("The first day of issue read")
|
|
1475
|
+
})
|
|
1476
|
+
});
|
|
1477
|
+
|
|
1478
|
+
const fetchPlatformInvoiceMonthsResponseSchema = v4.z.array(
|
|
1479
|
+
v4.z.object({
|
|
1480
|
+
month: v4.z.iso.date().describe("The month's first day"),
|
|
1481
|
+
currency: v4.z.string().describe("Upper case"),
|
|
1482
|
+
get state() {
|
|
1483
|
+
return enumCancelledOpenPaidSchema;
|
|
1484
|
+
},
|
|
1485
|
+
amount: v4.z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
1486
|
+
"What was invoiced, tax included, in the currency's minor unit"
|
|
1487
|
+
)
|
|
1488
|
+
})
|
|
1489
|
+
);
|
|
1490
|
+
|
|
1491
|
+
const platformInvoiceCustomerSchema = v4.z.object({
|
|
1492
|
+
reference: v4.z.string().min(1).describe("The platform's own reference of its customer (a tenant's id)"),
|
|
1493
|
+
get partyType() {
|
|
1494
|
+
return partyTypeSchema;
|
|
1495
|
+
},
|
|
1496
|
+
name: v4.z.string().min(1).describe(
|
|
1497
|
+
"The name the invoice is addressed to, as the platform names its customer \u2014 a business's legal name"
|
|
1498
|
+
),
|
|
1499
|
+
email: v4.z.nullable(v4.z.email()),
|
|
1500
|
+
vatId: v4.z.nullable(v4.z.string().min(1)),
|
|
1501
|
+
taxNumber: v4.z.nullable(
|
|
1502
|
+
v4.z.string().min(1).describe(
|
|
1503
|
+
"The customer's tax number \u2014 with its VAT ID, what shows a business abroad is one (KLVR-2234)"
|
|
1504
|
+
)
|
|
1505
|
+
),
|
|
1506
|
+
address: v4.z.object({
|
|
1507
|
+
street: v4.z.string().min(1),
|
|
1508
|
+
building: v4.z.nullable(v4.z.string().min(1)),
|
|
1509
|
+
postcode: v4.z.string().min(1),
|
|
1510
|
+
city: v4.z.string().min(1),
|
|
1511
|
+
get country() {
|
|
1512
|
+
return countrySchema;
|
|
1513
|
+
}
|
|
1514
|
+
})
|
|
1515
|
+
});
|
|
1516
|
+
|
|
1430
1517
|
const platformInvoiceLineTypeSchema = v4.z.enum([
|
|
1431
1518
|
"plan",
|
|
1432
1519
|
"tenant",
|
|
@@ -1476,6 +1563,9 @@ const fetchPlatformInvoicePreviewBodySchema = v4.z.object({
|
|
|
1476
1563
|
),
|
|
1477
1564
|
get lines() {
|
|
1478
1565
|
return v4.z.array(platformInvoiceLineSchema);
|
|
1566
|
+
},
|
|
1567
|
+
get customer() {
|
|
1568
|
+
return platformInvoiceCustomerSchema.nullable();
|
|
1479
1569
|
}
|
|
1480
1570
|
});
|
|
1481
1571
|
|
|
@@ -1562,6 +1652,7 @@ const filingTypeSchema = v4.z.enum([
|
|
|
1562
1652
|
"ust",
|
|
1563
1653
|
"est",
|
|
1564
1654
|
"separate_determination",
|
|
1655
|
+
"recapitulative_statement",
|
|
1565
1656
|
"unternehmensregister",
|
|
1566
1657
|
"opening_balance",
|
|
1567
1658
|
"mwst",
|
|
@@ -1875,7 +1966,14 @@ const journalEntrySourceSchema = v4.z.enum([
|
|
|
1875
1966
|
"silent_partnership"
|
|
1876
1967
|
]);
|
|
1877
1968
|
|
|
1878
|
-
const
|
|
1969
|
+
const journalErasureReasonSchema = v4.z.enum([
|
|
1970
|
+
"e2e_clean_up",
|
|
1971
|
+
"held_entity_never_paid",
|
|
1972
|
+
"books_reset",
|
|
1973
|
+
"demo_generated_anew",
|
|
1974
|
+
"account_retention_ended",
|
|
1975
|
+
"archive_expired"
|
|
1976
|
+
]);
|
|
1879
1977
|
|
|
1880
1978
|
const jurisdictionSchema = v4.z.enum(["DE", "CH"]);
|
|
1881
1979
|
|
|
@@ -2197,6 +2295,7 @@ const mantelbogenFieldSchema = v4.z.enum([
|
|
|
2197
2295
|
const mappingCoverageSourceSchema = v4.z.enum([
|
|
2198
2296
|
"override",
|
|
2199
2297
|
"template",
|
|
2298
|
+
"parent",
|
|
2200
2299
|
"unmapped"
|
|
2201
2300
|
]);
|
|
2202
2301
|
|
|
@@ -2263,6 +2362,10 @@ const messageThreadSubjectTypeSchema = v4.z.enum([
|
|
|
2263
2362
|
|
|
2264
2363
|
const moduleScopeSchema = v4.z.enum(["account", "tenant"]);
|
|
2265
2364
|
|
|
2365
|
+
const moneyAccountStatusSchema = v4.z.enum(["active", "closed"]);
|
|
2366
|
+
|
|
2367
|
+
const moneyAccountTypeSchema = v4.z.enum(["bank", "payment_provider"]);
|
|
2368
|
+
|
|
2266
2369
|
const obligationAmountBasisSchema = v4.z.enum([
|
|
2267
2370
|
"fixed",
|
|
2268
2371
|
"computed_at_period_end",
|
|
@@ -2325,6 +2428,11 @@ const occupantRelationshipSchema = v4.z.enum([
|
|
|
2325
2428
|
"household_member"
|
|
2326
2429
|
]);
|
|
2327
2430
|
|
|
2431
|
+
const officialExchangeRateMethodSchema = v4.z.enum([
|
|
2432
|
+
"estv_monthly_average",
|
|
2433
|
+
"estv_daily_selling_rate"
|
|
2434
|
+
]);
|
|
2435
|
+
|
|
2328
2436
|
const onboardingCardSchema = v4.z.enum(["mail_account", "own_domain"]);
|
|
2329
2437
|
|
|
2330
2438
|
const organicCollectionSchema = v4.z.enum(["bin", "optional_bin", "none"]);
|
|
@@ -2368,17 +2476,13 @@ const parkingSpaceTypeSchema = v4.z.enum(["garage", "parking_space"]);
|
|
|
2368
2476
|
|
|
2369
2477
|
const partyGenderSchema = v4.z.enum(["male", "female", "neutral"]);
|
|
2370
2478
|
|
|
2371
|
-
const partyTypeSchema = v4.z.enum([
|
|
2372
|
-
"natural_person",
|
|
2373
|
-
"legal_entity",
|
|
2374
|
-
"sole_prop"
|
|
2375
|
-
]);
|
|
2376
|
-
|
|
2377
2479
|
const paymentClaimSettlementTypeSchema = v4.z.enum([
|
|
2378
2480
|
"payment",
|
|
2379
2481
|
"cash_discount",
|
|
2380
2482
|
"write_off",
|
|
2381
|
-
"correction"
|
|
2483
|
+
"correction",
|
|
2484
|
+
"offset",
|
|
2485
|
+
"recovery"
|
|
2382
2486
|
]);
|
|
2383
2487
|
|
|
2384
2488
|
const paymentClaimSideSchema = v4.z.enum(["receivable", "payable"]);
|
|
@@ -2411,6 +2515,13 @@ const paymentFrequencySchema = v4.z.enum([
|
|
|
2411
2515
|
|
|
2412
2516
|
const paymentMethodSchema = v4.z.enum(["bank_transfer", "cash"]);
|
|
2413
2517
|
|
|
2518
|
+
const paymentProviderLicenceSchema = v4.z.enum([
|
|
2519
|
+
"credit_institution",
|
|
2520
|
+
"e_money_institution"
|
|
2521
|
+
]);
|
|
2522
|
+
|
|
2523
|
+
const paymentProviderSchema = v4.z.enum(["stripe", "paypal", "sumup"]);
|
|
2524
|
+
|
|
2414
2525
|
const pendingSuperadminTransferStatusSchema = v4.z.enum([
|
|
2415
2526
|
"pending_invite",
|
|
2416
2527
|
"accepted_awaiting_payment",
|
|
@@ -2481,12 +2592,13 @@ const permissionSchema = v4.z.enum([
|
|
|
2481
2592
|
"property:manage-defects",
|
|
2482
2593
|
"journal:view",
|
|
2483
2594
|
"journal:book",
|
|
2595
|
+
"chart-of-accounts:view",
|
|
2484
2596
|
"fixed-asset:view",
|
|
2485
2597
|
"fixed-asset:manage",
|
|
2486
2598
|
"transaction:view",
|
|
2487
2599
|
"transaction:manage",
|
|
2488
|
-
"
|
|
2489
|
-
"
|
|
2600
|
+
"money-account:view",
|
|
2601
|
+
"money-account:manage",
|
|
2490
2602
|
"access-grant:view",
|
|
2491
2603
|
"access-grant:offer",
|
|
2492
2604
|
"access-grant:respond",
|
|
@@ -2520,37 +2632,6 @@ const personalAnnualReviewStatusSchema = v4.z.enum([
|
|
|
2520
2632
|
"frozen"
|
|
2521
2633
|
]);
|
|
2522
2634
|
|
|
2523
|
-
const platformInvoiceCustomerSchema = v4.z.object({
|
|
2524
|
-
reference: v4.z.string().min(1).describe("The platform's own reference of its customer (a tenant's id)"),
|
|
2525
|
-
get partyType() {
|
|
2526
|
-
return partyTypeSchema;
|
|
2527
|
-
},
|
|
2528
|
-
name: v4.z.string().min(1).describe(
|
|
2529
|
-
"The name the invoice is addressed to, as the platform names its customer \u2014 a business's legal name"
|
|
2530
|
-
),
|
|
2531
|
-
email: v4.z.nullable(v4.z.email()),
|
|
2532
|
-
vatId: v4.z.nullable(v4.z.string().min(1)),
|
|
2533
|
-
taxNumber: v4.z.nullable(
|
|
2534
|
-
v4.z.string().min(1).describe(
|
|
2535
|
-
"The customer's tax number \u2014 with its VAT ID, what shows a business abroad is one (KLVR-2234)"
|
|
2536
|
-
)
|
|
2537
|
-
),
|
|
2538
|
-
address: v4.z.object({
|
|
2539
|
-
street: v4.z.string().min(1),
|
|
2540
|
-
building: v4.z.nullable(v4.z.string().min(1)),
|
|
2541
|
-
postcode: v4.z.string().min(1),
|
|
2542
|
-
city: v4.z.string().min(1),
|
|
2543
|
-
get country() {
|
|
2544
|
-
return countrySchema;
|
|
2545
|
-
}
|
|
2546
|
-
})
|
|
2547
|
-
});
|
|
2548
|
-
|
|
2549
|
-
const platformRoleSchema = v4.z.enum([
|
|
2550
|
-
"platform_maintainer",
|
|
2551
|
-
"data_scientist"
|
|
2552
|
-
]);
|
|
2553
|
-
|
|
2554
2635
|
const positionCenterSchema = v4.z.enum(["center"]);
|
|
2555
2636
|
|
|
2556
2637
|
const positionCornerSchema = v4.z.enum([
|
|
@@ -2583,6 +2664,19 @@ const priorYearFigureTypeSchema = v4.z.enum([
|
|
|
2583
2664
|
"bwa_line"
|
|
2584
2665
|
]);
|
|
2585
2666
|
|
|
2667
|
+
const processPlatformCustomerBodySchema = v4.z.object({
|
|
2668
|
+
platform: v4.z.string().min(1).describe(
|
|
2669
|
+
"The platform whose customer it is, as it names itself (order3000)"
|
|
2670
|
+
),
|
|
2671
|
+
get customer() {
|
|
2672
|
+
return platformInvoiceCustomerSchema;
|
|
2673
|
+
}
|
|
2674
|
+
});
|
|
2675
|
+
|
|
2676
|
+
const processPlatformCustomerResponseSchema = v4.z.object({
|
|
2677
|
+
partyId: v4.z.string().describe("The party the customer is in the books of the platform's owner")
|
|
2678
|
+
});
|
|
2679
|
+
|
|
2586
2680
|
const processPlatformInvoiceBodySchema = v4.z.object({
|
|
2587
2681
|
platform: v4.z.string().min(1).describe("The platform that invoiced, as it names itself (order3000)"),
|
|
2588
2682
|
stripeInvoiceId: v4.z.string().min(1).describe(
|
|
@@ -2607,19 +2701,82 @@ const processPlatformInvoiceBodySchema = v4.z.object({
|
|
|
2607
2701
|
|
|
2608
2702
|
const processPlatformInvoiceCreditBodySchema = v4.z.object({
|
|
2609
2703
|
stripeCreditNoteId: v4.z.string().min(1).describe("The payment provider's id of the credit note"),
|
|
2610
|
-
creditedAt: v4.z.iso.datetime()
|
|
2704
|
+
creditedAt: v4.z.iso.datetime().describe(
|
|
2705
|
+
"When the credit note was issued \u2014 the day its refund left the payment provider balance"
|
|
2706
|
+
),
|
|
2611
2707
|
grossAmount: v4.z.int().max(9007199254740991).gt(0).describe(
|
|
2612
2708
|
"What the credit note takes back, tax included, in the smallest unit of the invoice currency"
|
|
2709
|
+
),
|
|
2710
|
+
netAmount: v4.z.optional(
|
|
2711
|
+
v4.z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
2712
|
+
"Of it, net of tax \u2014 what a credit note without lines takes back at the invoice\u2019s rate"
|
|
2713
|
+
)
|
|
2714
|
+
),
|
|
2715
|
+
lines: v4.z.optional(
|
|
2716
|
+
v4.z.array(
|
|
2717
|
+
v4.z.object({
|
|
2718
|
+
invoiceLineIndex: v4.z.nullable(
|
|
2719
|
+
v4.z.int().min(0).max(9007199254740991).describe(
|
|
2720
|
+
"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"
|
|
2721
|
+
)
|
|
2722
|
+
),
|
|
2723
|
+
description: v4.z.nullable(v4.z.string()),
|
|
2724
|
+
quantity: v4.z.int().min(-9007199254740991).max(9007199254740991),
|
|
2725
|
+
netAmount: v4.z.int().min(-9007199254740991).max(9007199254740991).describe("What it takes back of the line, net of tax"),
|
|
2726
|
+
taxAmount: v4.z.int().min(-9007199254740991).max(9007199254740991),
|
|
2727
|
+
taxRatePercent: v4.z.nullable(v4.z.number()),
|
|
2728
|
+
isReverseCharge: v4.z.boolean(),
|
|
2729
|
+
taxCountry: v4.z.nullable(v4.z.string())
|
|
2730
|
+
})
|
|
2731
|
+
).describe(
|
|
2732
|
+
"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"
|
|
2733
|
+
)
|
|
2734
|
+
),
|
|
2735
|
+
taxes: v4.z.optional(
|
|
2736
|
+
v4.z.array(
|
|
2737
|
+
v4.z.object({
|
|
2738
|
+
netAmount: v4.z.int().min(-9007199254740991).max(9007199254740991).describe(
|
|
2739
|
+
"What the tax is calculated on: the net taken back at the rate"
|
|
2740
|
+
),
|
|
2741
|
+
taxAmount: v4.z.int().min(-9007199254740991).max(9007199254740991),
|
|
2742
|
+
taxRatePercent: v4.z.nullable(v4.z.number()),
|
|
2743
|
+
isReverseCharge: v4.z.boolean(),
|
|
2744
|
+
taxCountry: v4.z.nullable(v4.z.string())
|
|
2745
|
+
})
|
|
2746
|
+
).describe(
|
|
2747
|
+
"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"
|
|
2748
|
+
)
|
|
2749
|
+
),
|
|
2750
|
+
refundedAmount: v4.z.optional(
|
|
2751
|
+
v4.z.int().min(0).max(9007199254740991).describe(
|
|
2752
|
+
"Of it, what went back to the card, in the smallest unit of the invoice currency (at Stripe the credit note\u2019s refund). It is recorded as an outgoing payment on the money account that keeps the payment provider\u2019s balance, and pays back the customer\u2019s credit the credit note raised. Left out or 0, the whole credit stays the customer\u2019s balance."
|
|
2753
|
+
)
|
|
2754
|
+
),
|
|
2755
|
+
paymentProviderAccount: v4.z.optional(
|
|
2756
|
+
v4.z.string().min(1).describe(
|
|
2757
|
+
"The payment provider account the refund left \u2014 at Stripe the platform's account id (acct_\u2026). Needed when anything was refunded."
|
|
2758
|
+
)
|
|
2613
2759
|
)
|
|
2614
2760
|
});
|
|
2615
2761
|
|
|
2762
|
+
const refundPlatformInvoiceCreditOutcomeSchema = v4.z.enum([
|
|
2763
|
+
"recorded",
|
|
2764
|
+
"already_recorded",
|
|
2765
|
+
"no_credit",
|
|
2766
|
+
"refund_exceeds_credit",
|
|
2767
|
+
"no_money_account"
|
|
2768
|
+
]);
|
|
2769
|
+
|
|
2616
2770
|
const processPlatformInvoiceCreditResponseSchema = v4.z.object({
|
|
2617
2771
|
get outcome() {
|
|
2618
2772
|
return cancelPlatformInvoiceOutcomeSchema;
|
|
2619
2773
|
},
|
|
2620
2774
|
invoiceId: v4.z.nullable(
|
|
2621
2775
|
v4.z.string().describe("The entity's own invoice for it, once known")
|
|
2622
|
-
)
|
|
2776
|
+
),
|
|
2777
|
+
get refund() {
|
|
2778
|
+
return refundPlatformInvoiceCreditOutcomeSchema.optional();
|
|
2779
|
+
}
|
|
2623
2780
|
});
|
|
2624
2781
|
|
|
2625
2782
|
const processPlatformInvoicePaymentBodySchema = v4.z.object({
|
|
@@ -2742,6 +2899,12 @@ const propertyVanityHostStatusSchema = v4.z.enum([
|
|
|
2742
2899
|
"failed"
|
|
2743
2900
|
]);
|
|
2744
2901
|
|
|
2902
|
+
const purchaseReductionTypeSchema = v4.z.enum([
|
|
2903
|
+
"price_reduction",
|
|
2904
|
+
"rebate",
|
|
2905
|
+
"bonus"
|
|
2906
|
+
]);
|
|
2907
|
+
|
|
2745
2908
|
const questionnairePersonFieldSchema = v4.z.enum([
|
|
2746
2909
|
"first_name",
|
|
2747
2910
|
"date_of_birth",
|
|
@@ -2759,6 +2922,12 @@ const questionnairePersonRoleSchema = v4.z.enum([
|
|
|
2759
2922
|
"partner"
|
|
2760
2923
|
]);
|
|
2761
2924
|
|
|
2925
|
+
const recapitulativeSupplyTypeSchema = v4.z.enum([
|
|
2926
|
+
"intra_community_goods",
|
|
2927
|
+
"triangular_transaction",
|
|
2928
|
+
"intra_community_services"
|
|
2929
|
+
]);
|
|
2930
|
+
|
|
2762
2931
|
const reconciliationItemStatusSchema = v4.z.enum([
|
|
2763
2932
|
"open",
|
|
2764
2933
|
"resolved",
|
|
@@ -3000,9 +3169,13 @@ const salesActivityTypeSchema = v4.z.enum([
|
|
|
3000
3169
|
"meeting",
|
|
3001
3170
|
"stage_change",
|
|
3002
3171
|
"value_change",
|
|
3003
|
-
"owner_change"
|
|
3172
|
+
"owner_change",
|
|
3173
|
+
"close_day_change",
|
|
3174
|
+
"link_click"
|
|
3004
3175
|
]);
|
|
3005
3176
|
|
|
3177
|
+
const salesMailTemplateTypeSchema = v4.z.enum(["general", "demo"]);
|
|
3178
|
+
|
|
3006
3179
|
const scanPageContentTypeSchema = v4.z.enum(["image/jpeg", "image/png"]);
|
|
3007
3180
|
|
|
3008
3181
|
const semesterContinuationSchema = v4.z.enum([
|
|
@@ -3074,6 +3247,15 @@ const subleaseRentRoutingSchema = v4.z.enum([
|
|
|
3074
3247
|
|
|
3075
3248
|
const subleaseRoleSchema = v4.z.enum(["headLandlord", "subLandlord"]);
|
|
3076
3249
|
|
|
3250
|
+
const supplierCreditNoteTypeSchema = v4.z.enum([
|
|
3251
|
+
"return_of_goods",
|
|
3252
|
+
"corrected_invoice",
|
|
3253
|
+
"price_reduction",
|
|
3254
|
+
"rebate",
|
|
3255
|
+
"bonus",
|
|
3256
|
+
"no_consideration_reduction"
|
|
3257
|
+
]);
|
|
3258
|
+
|
|
3077
3259
|
const taxAccountAuthorizationStatusSchema = v4.z.enum([
|
|
3078
3260
|
"requested",
|
|
3079
3261
|
"active",
|
|
@@ -3237,6 +3419,13 @@ const temporaryOccasionSchema = v4.z.enum([
|
|
|
3237
3419
|
|
|
3238
3420
|
const termTypeSchema = v4.z.enum(["fixed", "indefinite"]);
|
|
3239
3421
|
|
|
3422
|
+
const transactionHolderSchema = v4.z.enum([
|
|
3423
|
+
"allocation",
|
|
3424
|
+
"booking",
|
|
3425
|
+
"loan",
|
|
3426
|
+
"rental_deposit"
|
|
3427
|
+
]);
|
|
3428
|
+
|
|
3240
3429
|
const transactionMethodSchema = v4.z.enum([
|
|
3241
3430
|
"bank_transfer",
|
|
3242
3431
|
"credit_card",
|
|
@@ -3301,9 +3490,6 @@ const triggerEventSchema = v4.z.enum([
|
|
|
3301
3490
|
"payment_allocated_incoming",
|
|
3302
3491
|
"payment_allocated_outgoing",
|
|
3303
3492
|
"payment_cancelled",
|
|
3304
|
-
"depreciation_scheduled",
|
|
3305
|
-
"asset_created",
|
|
3306
|
-
"asset_disposed",
|
|
3307
3493
|
"loan_drawdown",
|
|
3308
3494
|
"loan_repayment_principal",
|
|
3309
3495
|
"loan_repayment_interest",
|
|
@@ -3329,7 +3515,8 @@ const triggerEventSchema = v4.z.enum([
|
|
|
3329
3515
|
"receivable_written_off",
|
|
3330
3516
|
"revenue_received",
|
|
3331
3517
|
"expense_paid",
|
|
3332
|
-
"till_day_closed"
|
|
3518
|
+
"till_day_closed",
|
|
3519
|
+
"asset_sale_received"
|
|
3333
3520
|
]);
|
|
3334
3521
|
|
|
3335
3522
|
const vatCategorySchema = v4.z.enum([
|
|
@@ -3343,13 +3530,29 @@ const vatCategorySchema = v4.z.enum([
|
|
|
3343
3530
|
"intra_community_acquisition",
|
|
3344
3531
|
"intra_community_supply",
|
|
3345
3532
|
"import",
|
|
3346
|
-
"export"
|
|
3533
|
+
"export",
|
|
3534
|
+
"outside_scope",
|
|
3535
|
+
"taxed_abroad"
|
|
3347
3536
|
]);
|
|
3348
3537
|
|
|
3349
3538
|
const vatCharacterSchema = v4.z.enum(["liable", "small_business", "exempt"]);
|
|
3350
3539
|
|
|
3351
3540
|
const vatDirectionSchema = v4.z.enum(["output", "input"]);
|
|
3352
3541
|
|
|
3542
|
+
const vatSupplyTypeSchema = v4.z.enum([
|
|
3543
|
+
"new_vehicle",
|
|
3544
|
+
"triangular_transaction",
|
|
3545
|
+
"international_agreement",
|
|
3546
|
+
"travel_service",
|
|
3547
|
+
"letting",
|
|
3548
|
+
"eu_business_service",
|
|
3549
|
+
"third_country_service",
|
|
3550
|
+
"taxable_in_other_eu_state",
|
|
3551
|
+
"electronic_service",
|
|
3552
|
+
"small_business",
|
|
3553
|
+
"mobile_devices_and_integrated_circuits"
|
|
3554
|
+
]);
|
|
3555
|
+
|
|
3353
3556
|
const vatTaxationMethodSchema = v4.z.enum(["accrual", "cash"]);
|
|
3354
3557
|
|
|
3355
3558
|
const wasteFractionSchema = v4.z.enum([
|
|
@@ -3418,7 +3621,6 @@ const schemas = {
|
|
|
3418
3621
|
AccessGrantInitiator: accessGrantInitiatorSchema,
|
|
3419
3622
|
AccessGrantResourceType: accessGrantResourceTypeSchema,
|
|
3420
3623
|
AccessGrantStatus: accessGrantStatusSchema,
|
|
3421
|
-
AccountMappingType: accountMappingTypeSchema,
|
|
3422
3624
|
AccountSnapshotStatus: accountSnapshotStatusSchema,
|
|
3423
3625
|
AccountSnapshotType: accountSnapshotTypeSchema,
|
|
3424
3626
|
AccountType: accountTypeSchema,
|
|
@@ -3437,12 +3639,12 @@ const schemas = {
|
|
|
3437
3639
|
ArtifactType: artifactTypeSchema,
|
|
3438
3640
|
AssetDepreciationMethod: assetDepreciationMethodSchema,
|
|
3439
3641
|
AssetDepreciationType: assetDepreciationTypeSchema,
|
|
3642
|
+
AssetDisposalResult: assetDisposalResultSchema,
|
|
3440
3643
|
AuditActorType: auditActorTypeSchema,
|
|
3441
3644
|
AuditCategory: auditCategorySchema,
|
|
3442
3645
|
BalanceSheetCategory: balanceSheetCategorySchema,
|
|
3443
3646
|
BalanceSheetStandard: balanceSheetStandardSchema,
|
|
3444
3647
|
BandMeasure: bandMeasureSchema,
|
|
3445
|
-
BankAccountStatus: bankAccountStatusSchema,
|
|
3446
3648
|
BankStatementDecimalSeparator: bankStatementDecimalSeparatorSchema,
|
|
3447
3649
|
BankStatementSource: bankStatementSourceSchema,
|
|
3448
3650
|
BescheidEinwilligungStatus: bescheidEinwilligungStatusSchema,
|
|
@@ -3455,13 +3657,16 @@ const schemas = {
|
|
|
3455
3657
|
BusinessFoundingType: businessFoundingTypeSchema,
|
|
3456
3658
|
BusinessStage: businessStageSchema,
|
|
3457
3659
|
CancelPlatformInvoiceOutcome: cancelPlatformInvoiceOutcomeSchema,
|
|
3660
|
+
CancellationFeedbackReason: cancellationFeedbackReasonSchema,
|
|
3458
3661
|
CashBasisAssetGroup: cashBasisAssetGroupSchema,
|
|
3459
3662
|
CashBasisReconciliationKey: cashBasisReconciliationKeySchema,
|
|
3460
3663
|
CatchUpUstvaStatus: catchUpUstvaStatusSchema,
|
|
3461
3664
|
ChartFamily: chartFamilySchema,
|
|
3462
3665
|
ChartInterchangeTier: chartInterchangeTierSchema,
|
|
3463
3666
|
ChartNumberBlockType: chartNumberBlockTypeSchema,
|
|
3667
|
+
ChartPlacePoolMemberType: chartPlacePoolMemberTypeSchema,
|
|
3464
3668
|
ChartProvider: chartProviderSchema,
|
|
3669
|
+
ChartSuccessionType: chartSuccessionTypeSchema,
|
|
3465
3670
|
ChatChannelType: chatChannelTypeSchema,
|
|
3466
3671
|
ChatMemberRole: chatMemberRoleSchema,
|
|
3467
3672
|
CollateralType: collateralTypeSchema,
|
|
@@ -3503,6 +3708,8 @@ const schemas = {
|
|
|
3503
3708
|
DealStage: dealStageSchema,
|
|
3504
3709
|
DealValueSource: dealValueSourceSchema,
|
|
3505
3710
|
DefectResponsibility: defectResponsibilitySchema,
|
|
3711
|
+
DemoArea: demoAreaSchema,
|
|
3712
|
+
DemoStatus: demoStatusSchema,
|
|
3506
3713
|
DepositCustodyModel: depositCustodyModelSchema,
|
|
3507
3714
|
DepreciationRefusalType: depreciationRefusalTypeSchema,
|
|
3508
3715
|
Direction: directionSchema,
|
|
@@ -3510,6 +3717,7 @@ const schemas = {
|
|
|
3510
3717
|
DirectionY: directionYSchema,
|
|
3511
3718
|
DocumentAccessType: documentAccessTypeSchema,
|
|
3512
3719
|
DocumentClassificationState: documentClassificationStateSchema,
|
|
3720
|
+
DocumentErasureReason: documentErasureReasonSchema,
|
|
3513
3721
|
DocumentLinkProvenance: documentLinkProvenanceSchema,
|
|
3514
3722
|
DocumentLinkRelationType: documentLinkRelationTypeSchema,
|
|
3515
3723
|
DocumentLinkStatus: documentLinkStatusSchema,
|
|
@@ -3542,6 +3750,7 @@ const schemas = {
|
|
|
3542
3750
|
EntityRelationshipType: entityRelationshipTypeSchema,
|
|
3543
3751
|
EntityType: entityTypeSchema,
|
|
3544
3752
|
EntityUserStatus: entityUserStatusSchema,
|
|
3753
|
+
EnumCancelledOpenPaid: enumCancelledOpenPaidSchema,
|
|
3545
3754
|
EstSchedule: estScheduleSchema,
|
|
3546
3755
|
EuerLineNature: euerLineNatureSchema,
|
|
3547
3756
|
ExternalFilingDeclaredBy: externalFilingDeclaredBySchema,
|
|
@@ -3549,10 +3758,17 @@ const schemas = {
|
|
|
3549
3758
|
FeatureCategory: featureCategorySchema,
|
|
3550
3759
|
FeatureGate: featureGateSchema,
|
|
3551
3760
|
FeatureStatus: featureStatusSchema,
|
|
3761
|
+
FetchCustomerPlatformInvoiceDocumentUrlBody: fetchCustomerPlatformInvoiceDocumentUrlBodySchema,
|
|
3762
|
+
FetchCustomerPlatformInvoiceDocumentUrlResponse: fetchCustomerPlatformInvoiceDocumentUrlResponseSchema,
|
|
3763
|
+
FetchCustomerPlatformInvoicesBody: fetchCustomerPlatformInvoicesBodySchema,
|
|
3764
|
+
FetchCustomerPlatformInvoicesResponse: fetchCustomerPlatformInvoicesResponseSchema,
|
|
3552
3765
|
FetchOpenPlatformInvoicesBody: fetchOpenPlatformInvoicesBodySchema,
|
|
3553
3766
|
FetchOpenPlatformInvoicesResponse: fetchOpenPlatformInvoicesResponseSchema,
|
|
3554
3767
|
FetchPlatformChargeTaxesBody: fetchPlatformChargeTaxesBodySchema,
|
|
3555
3768
|
FetchPlatformChargeTaxesResponse: fetchPlatformChargeTaxesResponseSchema,
|
|
3769
|
+
FetchPlatformCustomerResponse: fetchPlatformCustomerResponseSchema,
|
|
3770
|
+
FetchPlatformInvoiceMonthsBody: fetchPlatformInvoiceMonthsBodySchema,
|
|
3771
|
+
FetchPlatformInvoiceMonthsResponse: fetchPlatformInvoiceMonthsResponseSchema,
|
|
3556
3772
|
FetchPlatformInvoicePreviewBody: fetchPlatformInvoicePreviewBodySchema,
|
|
3557
3773
|
FetchPlatformInvoicePreviewResponse: fetchPlatformInvoicePreviewResponseSchema,
|
|
3558
3774
|
FetchPlatformInvoiceResponse: fetchPlatformInvoiceResponseSchema,
|
|
@@ -3604,7 +3820,7 @@ const schemas = {
|
|
|
3604
3820
|
InvoiceType: invoiceTypeSchema,
|
|
3605
3821
|
IssuePlatformInvoiceOutcome: issuePlatformInvoiceOutcomeSchema,
|
|
3606
3822
|
JournalEntrySource: journalEntrySourceSchema,
|
|
3607
|
-
|
|
3823
|
+
JournalErasureReason: journalErasureReasonSchema,
|
|
3608
3824
|
Jurisdiction: jurisdictionSchema,
|
|
3609
3825
|
JurisdictionType: jurisdictionTypeSchema,
|
|
3610
3826
|
KnownFactSourceType: knownFactSourceTypeSchema,
|
|
@@ -3639,6 +3855,8 @@ const schemas = {
|
|
|
3639
3855
|
MessageThreadStatus: messageThreadStatusSchema,
|
|
3640
3856
|
MessageThreadSubjectType: messageThreadSubjectTypeSchema,
|
|
3641
3857
|
ModuleScope: moduleScopeSchema,
|
|
3858
|
+
MoneyAccountStatus: moneyAccountStatusSchema,
|
|
3859
|
+
MoneyAccountType: moneyAccountTypeSchema,
|
|
3642
3860
|
ObligationAmountBasis: obligationAmountBasisSchema,
|
|
3643
3861
|
ObligationLinkType: obligationLinkTypeSchema,
|
|
3644
3862
|
ObligationPlanLineStatus: obligationPlanLineStatusSchema,
|
|
@@ -3649,6 +3867,7 @@ const schemas = {
|
|
|
3649
3867
|
ObligationTermsSource: obligationTermsSourceSchema,
|
|
3650
3868
|
ObligationType: obligationTypeSchema,
|
|
3651
3869
|
OccupantRelationship: occupantRelationshipSchema,
|
|
3870
|
+
OfficialExchangeRateMethod: officialExchangeRateMethodSchema,
|
|
3652
3871
|
OnboardingCard: onboardingCardSchema,
|
|
3653
3872
|
OrganicCollection: organicCollectionSchema,
|
|
3654
3873
|
Orientation: orientationSchema,
|
|
@@ -3666,6 +3885,8 @@ const schemas = {
|
|
|
3666
3885
|
PaymentClaimType: paymentClaimTypeSchema,
|
|
3667
3886
|
PaymentFrequency: paymentFrequencySchema,
|
|
3668
3887
|
PaymentMethod: paymentMethodSchema,
|
|
3888
|
+
PaymentProviderLicence: paymentProviderLicenceSchema,
|
|
3889
|
+
PaymentProvider: paymentProviderSchema,
|
|
3669
3890
|
PendingSuperadminTransferStatus: pendingSuperadminTransferStatusSchema,
|
|
3670
3891
|
PermanentExtensionDecision: permanentExtensionDecisionSchema,
|
|
3671
3892
|
Permission: permissionSchema,
|
|
@@ -3676,13 +3897,14 @@ const schemas = {
|
|
|
3676
3897
|
PlatformInvoiceLine: platformInvoiceLineSchema,
|
|
3677
3898
|
PlatformInvoiceLineType: platformInvoiceLineTypeSchema,
|
|
3678
3899
|
PlatformInvoicePreview: platformInvoicePreviewSchema,
|
|
3679
|
-
PlatformRole: platformRoleSchema,
|
|
3680
3900
|
PositionCenter: positionCenterSchema,
|
|
3681
3901
|
PositionCorner: positionCornerSchema,
|
|
3682
3902
|
PositionEdge: positionEdgeSchema,
|
|
3683
3903
|
Position: positionSchema,
|
|
3684
3904
|
PositionY: positionYSchema,
|
|
3685
3905
|
PriorYearFigureType: priorYearFigureTypeSchema,
|
|
3906
|
+
ProcessPlatformCustomerBody: processPlatformCustomerBodySchema,
|
|
3907
|
+
ProcessPlatformCustomerResponse: processPlatformCustomerResponseSchema,
|
|
3686
3908
|
ProcessPlatformInvoiceBody: processPlatformInvoiceBodySchema,
|
|
3687
3909
|
ProcessPlatformInvoiceCreditBody: processPlatformInvoiceCreditBodySchema,
|
|
3688
3910
|
ProcessPlatformInvoiceCreditResponse: processPlatformInvoiceCreditResponseSchema,
|
|
@@ -3701,14 +3923,17 @@ const schemas = {
|
|
|
3701
3923
|
PropertyType: propertyTypeSchema,
|
|
3702
3924
|
PropertyVanityDomainMode: propertyVanityDomainModeSchema,
|
|
3703
3925
|
PropertyVanityHostStatus: propertyVanityHostStatusSchema,
|
|
3926
|
+
PurchaseReductionType: purchaseReductionTypeSchema,
|
|
3704
3927
|
QuestionnairePersonField: questionnairePersonFieldSchema,
|
|
3705
3928
|
QuestionnairePersonRole: questionnairePersonRoleSchema,
|
|
3929
|
+
RecapitulativeSupplyType: recapitulativeSupplyTypeSchema,
|
|
3706
3930
|
ReconciliationItemStatus: reconciliationItemStatusSchema,
|
|
3707
3931
|
ReconciliationItemType: reconciliationItemTypeSchema,
|
|
3708
3932
|
ReconciliationResolution: reconciliationResolutionSchema,
|
|
3709
3933
|
RecordPlatformInvoicePaymentOutcome: recordPlatformInvoicePaymentOutcomeSchema,
|
|
3710
3934
|
RecyclingCentreScheduleReading: recyclingCentreScheduleReadingSchema,
|
|
3711
3935
|
RecyclingCentreType: recyclingCentreTypeSchema,
|
|
3936
|
+
RefundPlatformInvoiceCreditOutcome: refundPlatformInvoiceCreditOutcomeSchema,
|
|
3712
3937
|
RelationshipType: relationshipTypeSchema,
|
|
3713
3938
|
Religion: religionSchema,
|
|
3714
3939
|
ReligionTaxAffiliation: religionTaxAffiliationSchema,
|
|
@@ -3740,6 +3965,7 @@ const schemas = {
|
|
|
3740
3965
|
SalesAccountSegment: salesAccountSegmentSchema,
|
|
3741
3966
|
SalesAccountSource: salesAccountSourceSchema,
|
|
3742
3967
|
SalesActivityType: salesActivityTypeSchema,
|
|
3968
|
+
SalesMailTemplateType: salesMailTemplateTypeSchema,
|
|
3743
3969
|
ScanPageContentType: scanPageContentTypeSchema,
|
|
3744
3970
|
SemesterContinuation: semesterContinuationSchema,
|
|
3745
3971
|
SemesterStart: semesterStartSchema,
|
|
@@ -3756,6 +3982,7 @@ const schemas = {
|
|
|
3756
3982
|
SubleaseDepositMethod: subleaseDepositMethodSchema,
|
|
3757
3983
|
SubleaseRentRouting: subleaseRentRoutingSchema,
|
|
3758
3984
|
SubleaseRole: subleaseRoleSchema,
|
|
3985
|
+
SupplierCreditNoteType: supplierCreditNoteTypeSchema,
|
|
3759
3986
|
TaxAccountAuthorizationStatus: taxAccountAuthorizationStatusSchema,
|
|
3760
3987
|
TaxAccountEntryType: taxAccountEntryTypeSchema,
|
|
3761
3988
|
TaxAccountQueryType: taxAccountQueryTypeSchema,
|
|
@@ -3776,6 +4003,7 @@ const schemas = {
|
|
|
3776
4003
|
TaxonomyMappingType: taxonomyMappingTypeSchema,
|
|
3777
4004
|
TemporaryOccasion: temporaryOccasionSchema,
|
|
3778
4005
|
TermType: termTypeSchema,
|
|
4006
|
+
TransactionHolder: transactionHolderSchema,
|
|
3779
4007
|
TransactionMethod: transactionMethodSchema,
|
|
3780
4008
|
TransactionStatus: transactionStatusSchema,
|
|
3781
4009
|
TransactionType: transactionTypeSchema,
|
|
@@ -3786,6 +4014,7 @@ const schemas = {
|
|
|
3786
4014
|
VatCategory: vatCategorySchema,
|
|
3787
4015
|
VatCharacter: vatCharacterSchema,
|
|
3788
4016
|
VatDirection: vatDirectionSchema,
|
|
4017
|
+
VatSupplyType: vatSupplyTypeSchema,
|
|
3789
4018
|
VatTaxationMethod: vatTaxationMethodSchema,
|
|
3790
4019
|
WasteFraction: wasteFractionSchema,
|
|
3791
4020
|
WasteHolder: wasteHolderSchema,
|