@snokam/mcp-api 0.158.0 → 0.160.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.
@@ -2326,6 +2326,482 @@
2326
2326
  ]
2327
2327
  }
2328
2328
  },
2329
+ "/v1.0/reinvoicing/subcontractor/draft": {
2330
+ "post": {
2331
+ "tags": [
2332
+ "Reinvoicing"
2333
+ ],
2334
+ "summary": "Creates a draft re-invoice from a subcontractor supplier invoice",
2335
+ "description": "Takes an incoming supplier invoice (bilag) in PowerOffice, marks up each line by the subcontractor cut, and creates a DRAFT outgoing invoice to the end customer. The draft is never sent — a human reviews and sends it.",
2336
+ "operationId": "CreateSubcontractorInvoiceDraft",
2337
+ "requestBody": {
2338
+ "description": "The PowerOffice supplier-invoice (bilag) id to re-invoice.",
2339
+ "content": {
2340
+ "application/json": {
2341
+ "schema": {
2342
+ "$ref": "#/components/schemas/subcontractorInvoiceRequest"
2343
+ }
2344
+ }
2345
+ },
2346
+ "required": true
2347
+ },
2348
+ "responses": {
2349
+ "200": {
2350
+ "description": "Draft invoice created with computed lines.",
2351
+ "content": {
2352
+ "application/json": {
2353
+ "schema": {
2354
+ "$ref": "#/components/schemas/subcontractorInvoiceResult"
2355
+ }
2356
+ }
2357
+ },
2358
+ "x-ms-summary": "Success"
2359
+ },
2360
+ "400": {
2361
+ "description": "Invalid input, no approved project hours, or a project missing a rate/customer.",
2362
+ "content": {
2363
+ "application/json": {
2364
+ "schema": {
2365
+ "type": "string"
2366
+ }
2367
+ }
2368
+ },
2369
+ "x-ms-summary": "Bad Request"
2370
+ }
2371
+ },
2372
+ "security": [
2373
+ {
2374
+ "Implicit": [
2375
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2376
+ ]
2377
+ },
2378
+ {
2379
+ "ApiKey": []
2380
+ }
2381
+ ]
2382
+ }
2383
+ },
2384
+ "/v1.0/reinvoicing/subcontractor": {
2385
+ "get": {
2386
+ "tags": [
2387
+ "Reinvoicing"
2388
+ ],
2389
+ "summary": "Lists configured subcontractors",
2390
+ "description": "Subcontractors configured for re-invoicing (supplierCode, cutPercent, customerCode fallback), sourced from Sanity.",
2391
+ "operationId": "GetSubcontractors",
2392
+ "responses": {
2393
+ "200": {
2394
+ "description": "Payload of Array of SubcontractorConfig",
2395
+ "content": {
2396
+ "application/json": {
2397
+ "schema": {
2398
+ "type": "array",
2399
+ "items": {
2400
+ "$ref": "#/components/schemas/subcontractorConfig"
2401
+ }
2402
+ }
2403
+ }
2404
+ },
2405
+ "x-ms-summary": "Success"
2406
+ }
2407
+ },
2408
+ "security": [
2409
+ {
2410
+ "Implicit": [
2411
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2412
+ ]
2413
+ },
2414
+ {
2415
+ "ApiKey": []
2416
+ }
2417
+ ]
2418
+ }
2419
+ },
2420
+ "/v1.0/reinvoicing/subcontractor/{supplierCode}/invoices": {
2421
+ "get": {
2422
+ "tags": [
2423
+ "Reinvoicing"
2424
+ ],
2425
+ "summary": "Lists a subcontractor's incoming invoices for a month",
2426
+ "description": "The month's PowerOffice bilag (incoming supplier invoices) for the given supplier, for the review page to select from before generating drafts.",
2427
+ "operationId": "GetSubcontractorSourceInvoices",
2428
+ "parameters": [
2429
+ {
2430
+ "name": "supplierCode",
2431
+ "in": "path",
2432
+ "description": "PowerOffice supplier code",
2433
+ "required": true,
2434
+ "schema": {
2435
+ "type": "integer",
2436
+ "format": "int64"
2437
+ }
2438
+ },
2439
+ {
2440
+ "name": "year",
2441
+ "in": "query",
2442
+ "required": true,
2443
+ "schema": {
2444
+ "type": "integer",
2445
+ "format": "int32"
2446
+ }
2447
+ },
2448
+ {
2449
+ "name": "month",
2450
+ "in": "query",
2451
+ "description": "1-12",
2452
+ "required": true,
2453
+ "schema": {
2454
+ "type": "integer",
2455
+ "format": "int32"
2456
+ }
2457
+ }
2458
+ ],
2459
+ "responses": {
2460
+ "200": {
2461
+ "description": "Payload of Array of SubcontractorSourceInvoiceSummary",
2462
+ "content": {
2463
+ "application/json": {
2464
+ "schema": {
2465
+ "type": "array",
2466
+ "items": {
2467
+ "$ref": "#/components/schemas/subcontractorSourceInvoiceSummary"
2468
+ }
2469
+ }
2470
+ }
2471
+ },
2472
+ "x-ms-summary": "Success"
2473
+ }
2474
+ },
2475
+ "security": [
2476
+ {
2477
+ "Implicit": [
2478
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2479
+ ]
2480
+ },
2481
+ {
2482
+ "ApiKey": []
2483
+ }
2484
+ ]
2485
+ }
2486
+ },
2487
+ "/v1.0/reinvoicing/subcontractor/{supplierCode}/drafts": {
2488
+ "get": {
2489
+ "tags": [
2490
+ "Reinvoicing"
2491
+ ],
2492
+ "summary": "Lists a subcontractor's generated draft re-invoices for a month",
2493
+ "description": "Draft outgoing invoices already generated for the supplier's bilag in the given month, matched by the reinvoice:{bilagId} external reference.",
2494
+ "operationId": "GetSubcontractorDrafts",
2495
+ "parameters": [
2496
+ {
2497
+ "name": "supplierCode",
2498
+ "in": "path",
2499
+ "description": "PowerOffice supplier code",
2500
+ "required": true,
2501
+ "schema": {
2502
+ "type": "integer",
2503
+ "format": "int64"
2504
+ }
2505
+ },
2506
+ {
2507
+ "name": "year",
2508
+ "in": "query",
2509
+ "required": true,
2510
+ "schema": {
2511
+ "type": "integer",
2512
+ "format": "int32"
2513
+ }
2514
+ },
2515
+ {
2516
+ "name": "month",
2517
+ "in": "query",
2518
+ "description": "1-12",
2519
+ "required": true,
2520
+ "schema": {
2521
+ "type": "integer",
2522
+ "format": "int32"
2523
+ }
2524
+ }
2525
+ ],
2526
+ "responses": {
2527
+ "200": {
2528
+ "description": "Payload of Array of SubcontractorDraftInvoiceSummary",
2529
+ "content": {
2530
+ "application/json": {
2531
+ "schema": {
2532
+ "type": "array",
2533
+ "items": {
2534
+ "$ref": "#/components/schemas/subcontractorDraftInvoiceSummary"
2535
+ }
2536
+ }
2537
+ }
2538
+ },
2539
+ "x-ms-summary": "Success"
2540
+ }
2541
+ },
2542
+ "security": [
2543
+ {
2544
+ "Implicit": [
2545
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2546
+ ]
2547
+ },
2548
+ {
2549
+ "ApiKey": []
2550
+ }
2551
+ ]
2552
+ }
2553
+ },
2554
+ "/v1.0/reinvoicing/projects": {
2555
+ "get": {
2556
+ "tags": [
2557
+ "Reinvoicing"
2558
+ ],
2559
+ "summary": "Lists all PowerOffice projects",
2560
+ "description": "Projects available for the re-invoicing overview to select from.",
2561
+ "operationId": "GetReinvoicingProjects",
2562
+ "responses": {
2563
+ "200": {
2564
+ "description": "Payload of Array of AccountingProject",
2565
+ "content": {
2566
+ "application/json": {
2567
+ "schema": {
2568
+ "type": "array",
2569
+ "items": {
2570
+ "$ref": "#/components/schemas/accountingProject"
2571
+ }
2572
+ }
2573
+ }
2574
+ },
2575
+ "x-ms-summary": "Success"
2576
+ }
2577
+ },
2578
+ "security": [
2579
+ {
2580
+ "Implicit": [
2581
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2582
+ ]
2583
+ },
2584
+ {
2585
+ "ApiKey": []
2586
+ }
2587
+ ]
2588
+ }
2589
+ },
2590
+ "/v1.0/reinvoicing/projects/{projectCode}/subcontractors": {
2591
+ "get": {
2592
+ "tags": [
2593
+ "Reinvoicing"
2594
+ ],
2595
+ "summary": "Lists a project's subcontractors with their incoming and outgoing invoices",
2596
+ "description": "For the selected project and month: each subcontractor (supplier) that has incoming bilag on the project, together with those incoming invoices and the outgoing draft re-invoices generated from them.",
2597
+ "operationId": "GetProjectSubcontractors",
2598
+ "parameters": [
2599
+ {
2600
+ "name": "projectCode",
2601
+ "in": "path",
2602
+ "description": "PowerOffice project code",
2603
+ "required": true,
2604
+ "schema": {
2605
+ "type": "string"
2606
+ }
2607
+ },
2608
+ {
2609
+ "name": "year",
2610
+ "in": "query",
2611
+ "required": true,
2612
+ "schema": {
2613
+ "type": "integer",
2614
+ "format": "int32"
2615
+ }
2616
+ },
2617
+ {
2618
+ "name": "month",
2619
+ "in": "query",
2620
+ "description": "1-12",
2621
+ "required": true,
2622
+ "schema": {
2623
+ "type": "integer",
2624
+ "format": "int32"
2625
+ }
2626
+ }
2627
+ ],
2628
+ "responses": {
2629
+ "200": {
2630
+ "description": "Payload of Array of ProjectSubcontractor",
2631
+ "content": {
2632
+ "application/json": {
2633
+ "schema": {
2634
+ "type": "array",
2635
+ "items": {
2636
+ "$ref": "#/components/schemas/projectSubcontractor"
2637
+ }
2638
+ }
2639
+ }
2640
+ },
2641
+ "x-ms-summary": "Success"
2642
+ }
2643
+ },
2644
+ "security": [
2645
+ {
2646
+ "Implicit": [
2647
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2648
+ ]
2649
+ },
2650
+ {
2651
+ "ApiKey": []
2652
+ }
2653
+ ]
2654
+ }
2655
+ },
2656
+ "/v1.0/reinvoicing/subcontractor/overview": {
2657
+ "get": {
2658
+ "tags": [
2659
+ "Reinvoicing"
2660
+ ],
2661
+ "summary": "Monthly fakturering per configured subcontractor",
2662
+ "description": "For the given month: each configured subcontractor with its incoming supplier invoice total, outgoing re-invoice total and margin, for the overview table.",
2663
+ "operationId": "GetSubcontractorMonthlyOverview",
2664
+ "parameters": [
2665
+ {
2666
+ "name": "year",
2667
+ "in": "query",
2668
+ "required": true,
2669
+ "schema": {
2670
+ "type": "integer",
2671
+ "format": "int32"
2672
+ }
2673
+ },
2674
+ {
2675
+ "name": "month",
2676
+ "in": "query",
2677
+ "description": "1-12",
2678
+ "required": true,
2679
+ "schema": {
2680
+ "type": "integer",
2681
+ "format": "int32"
2682
+ }
2683
+ }
2684
+ ],
2685
+ "responses": {
2686
+ "200": {
2687
+ "description": "Payload of Array of SubcontractorMonthlySummary",
2688
+ "content": {
2689
+ "application/json": {
2690
+ "schema": {
2691
+ "type": "array",
2692
+ "items": {
2693
+ "$ref": "#/components/schemas/subcontractorMonthlySummary"
2694
+ }
2695
+ }
2696
+ }
2697
+ },
2698
+ "x-ms-summary": "Success"
2699
+ }
2700
+ },
2701
+ "security": [
2702
+ {
2703
+ "Implicit": [
2704
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2705
+ ]
2706
+ },
2707
+ {
2708
+ "ApiKey": []
2709
+ }
2710
+ ]
2711
+ }
2712
+ },
2713
+ "/v1.0/reinvoicing/subcontractor/income": {
2714
+ "get": {
2715
+ "tags": [
2716
+ "Reinvoicing"
2717
+ ],
2718
+ "summary": "Accumulated subcontractor re-invoicing income for a year",
2719
+ "description": "Per-month incoming, outgoing and margin across the year, with the running accumulated margin, for the year-to-date income graph.",
2720
+ "operationId": "GetSubcontractorAccumulatedIncome",
2721
+ "parameters": [
2722
+ {
2723
+ "name": "year",
2724
+ "in": "query",
2725
+ "required": true,
2726
+ "schema": {
2727
+ "type": "integer",
2728
+ "format": "int32"
2729
+ }
2730
+ }
2731
+ ],
2732
+ "responses": {
2733
+ "200": {
2734
+ "description": "Payload of Array of SubcontractorIncomePoint",
2735
+ "content": {
2736
+ "application/json": {
2737
+ "schema": {
2738
+ "type": "array",
2739
+ "items": {
2740
+ "$ref": "#/components/schemas/subcontractorIncomePoint"
2741
+ }
2742
+ }
2743
+ }
2744
+ },
2745
+ "x-ms-summary": "Success"
2746
+ }
2747
+ },
2748
+ "security": [
2749
+ {
2750
+ "Implicit": [
2751
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2752
+ ]
2753
+ },
2754
+ {
2755
+ "ApiKey": []
2756
+ }
2757
+ ]
2758
+ }
2759
+ },
2760
+ "/v1.0/reinvoicing/voucher/{voucherId}/pdf": {
2761
+ "get": {
2762
+ "tags": [
2763
+ "Reinvoicing"
2764
+ ],
2765
+ "summary": "Voucher documentation (PDF) for an invoice",
2766
+ "description": "Base64-encoded documentation file attached to a voucher, for viewing the incoming supplier invoice or the outgoing re-invoice. Returns 404 when the voucher has no attached documentation.",
2767
+ "operationId": "GetReinvoicingVoucherPdf",
2768
+ "parameters": [
2769
+ {
2770
+ "name": "voucherId",
2771
+ "in": "path",
2772
+ "description": "PowerOffice voucher id (incoming supplier invoice or outgoing invoice)",
2773
+ "required": true,
2774
+ "schema": {
2775
+ "type": "string",
2776
+ "format": "uuid"
2777
+ }
2778
+ }
2779
+ ],
2780
+ "responses": {
2781
+ "200": {
2782
+ "description": "Payload of VoucherDocument",
2783
+ "content": {
2784
+ "application/json": {
2785
+ "schema": {
2786
+ "$ref": "#/components/schemas/voucherDocument"
2787
+ }
2788
+ }
2789
+ },
2790
+ "x-ms-summary": "Success"
2791
+ }
2792
+ },
2793
+ "security": [
2794
+ {
2795
+ "Implicit": [
2796
+ "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
2797
+ ]
2798
+ },
2799
+ {
2800
+ "ApiKey": []
2801
+ }
2802
+ ]
2803
+ }
2804
+ },
2329
2805
  "/v1.0/calculators/valuation": {
2330
2806
  "get": {
2331
2807
  "tags": [
@@ -2530,6 +3006,32 @@
2530
3006
  }
2531
3007
  }
2532
3008
  },
3009
+ "accountingProject": {
3010
+ "type": "object",
3011
+ "properties": {
3012
+ "code": {
3013
+ "type": "string"
3014
+ },
3015
+ "name": {
3016
+ "type": "string"
3017
+ },
3018
+ "customerCode": {
3019
+ "type": "integer",
3020
+ "format": "int64",
3021
+ "nullable": true
3022
+ },
3023
+ "startDate": {
3024
+ "type": "string",
3025
+ "format": "date-time",
3026
+ "nullable": true
3027
+ },
3028
+ "endDate": {
3029
+ "type": "string",
3030
+ "format": "date-time",
3031
+ "nullable": true
3032
+ }
3033
+ }
3034
+ },
2533
3035
  "accountingSalaryLine": {
2534
3036
  "type": "object",
2535
3037
  "properties": {
@@ -2824,6 +3326,9 @@
2824
3326
  "displayValue": {
2825
3327
  "type": "string"
2826
3328
  },
3329
+ "description": {
3330
+ "type": "string"
3331
+ },
2827
3332
  "breakdown": {
2828
3333
  "type": "array",
2829
3334
  "items": {
@@ -2933,6 +3438,9 @@
2933
3438
  "displayValue": {
2934
3439
  "type": "string"
2935
3440
  },
3441
+ "description": {
3442
+ "type": "string"
3443
+ },
2936
3444
  "breakdown": {
2937
3445
  "type": "array",
2938
3446
  "items": {
@@ -3293,6 +3801,9 @@
3293
3801
  "displayValue": {
3294
3802
  "type": "string"
3295
3803
  },
3804
+ "description": {
3805
+ "type": "string"
3806
+ },
3296
3807
  "breakdown": {
3297
3808
  "type": "array",
3298
3809
  "items": {
@@ -3605,6 +4116,30 @@
3605
4116
  }
3606
4117
  }
3607
4118
  },
4119
+ "projectSubcontractor": {
4120
+ "type": "object",
4121
+ "properties": {
4122
+ "supplierCode": {
4123
+ "type": "integer",
4124
+ "format": "int64"
4125
+ },
4126
+ "supplierName": {
4127
+ "type": "string"
4128
+ },
4129
+ "incomingInvoices": {
4130
+ "type": "array",
4131
+ "items": {
4132
+ "$ref": "#/components/schemas/subcontractorSourceInvoiceSummary"
4133
+ }
4134
+ },
4135
+ "outgoingInvoices": {
4136
+ "type": "array",
4137
+ "items": {
4138
+ "$ref": "#/components/schemas/subcontractorDraftInvoiceSummary"
4139
+ }
4140
+ }
4141
+ }
4142
+ },
3608
4143
  "provisionSalaryResult": {
3609
4144
  "required": [
3610
4145
  "salary",
@@ -4727,6 +5262,255 @@
4727
5262
  }
4728
5263
  }
4729
5264
  },
5265
+ "subcontractorConfig": {
5266
+ "type": "object",
5267
+ "properties": {
5268
+ "name": {
5269
+ "type": "string"
5270
+ },
5271
+ "supplierCode": {
5272
+ "type": "integer",
5273
+ "format": "int64"
5274
+ },
5275
+ "cutPercent": {
5276
+ "type": "number",
5277
+ "format": "double"
5278
+ },
5279
+ "customerCode": {
5280
+ "type": "integer",
5281
+ "format": "int64",
5282
+ "nullable": true
5283
+ }
5284
+ }
5285
+ },
5286
+ "subcontractorDraftInvoiceSummary": {
5287
+ "type": "object",
5288
+ "properties": {
5289
+ "supplierInvoiceId": {
5290
+ "type": "string",
5291
+ "format": "uuid"
5292
+ },
5293
+ "invoiceId": {
5294
+ "type": "string",
5295
+ "format": "uuid",
5296
+ "nullable": true
5297
+ },
5298
+ "customerCode": {
5299
+ "type": "integer",
5300
+ "format": "int64"
5301
+ },
5302
+ "currency": {
5303
+ "type": "string"
5304
+ },
5305
+ "totalAmount": {
5306
+ "type": "number",
5307
+ "format": "double"
5308
+ },
5309
+ "status": {
5310
+ "type": "string"
5311
+ }
5312
+ }
5313
+ },
5314
+ "subcontractorIncomePoint": {
5315
+ "type": "object",
5316
+ "properties": {
5317
+ "year": {
5318
+ "type": "integer",
5319
+ "format": "int32"
5320
+ },
5321
+ "month": {
5322
+ "type": "integer",
5323
+ "format": "int32"
5324
+ },
5325
+ "incoming": {
5326
+ "type": "number",
5327
+ "format": "double"
5328
+ },
5329
+ "outgoing": {
5330
+ "type": "number",
5331
+ "format": "double"
5332
+ },
5333
+ "margin": {
5334
+ "type": "number",
5335
+ "format": "double"
5336
+ },
5337
+ "accumulatedMargin": {
5338
+ "type": "number",
5339
+ "format": "double"
5340
+ }
5341
+ }
5342
+ },
5343
+ "subcontractorInvoiceDraft": {
5344
+ "type": "object",
5345
+ "properties": {
5346
+ "customerCode": {
5347
+ "type": "integer",
5348
+ "format": "int64"
5349
+ },
5350
+ "invoiceId": {
5351
+ "type": "string",
5352
+ "format": "uuid",
5353
+ "nullable": true
5354
+ }
5355
+ }
5356
+ },
5357
+ "subcontractorInvoiceLine": {
5358
+ "type": "object",
5359
+ "properties": {
5360
+ "description": {
5361
+ "type": "string"
5362
+ },
5363
+ "quantity": {
5364
+ "type": "number",
5365
+ "format": "double"
5366
+ },
5367
+ "unitPrice": {
5368
+ "type": "number",
5369
+ "format": "double"
5370
+ },
5371
+ "amount": {
5372
+ "type": "number",
5373
+ "format": "double"
5374
+ }
5375
+ }
5376
+ },
5377
+ "subcontractorInvoiceRequest": {
5378
+ "type": "object",
5379
+ "properties": {
5380
+ "supplierInvoiceId": {
5381
+ "type": "string"
5382
+ },
5383
+ "variant": {
5384
+ "type": "string"
5385
+ },
5386
+ "customerCode": {
5387
+ "type": "integer",
5388
+ "format": "int64",
5389
+ "nullable": true
5390
+ },
5391
+ "cutPercent": {
5392
+ "type": "number",
5393
+ "format": "double",
5394
+ "nullable": true
5395
+ }
5396
+ }
5397
+ },
5398
+ "subcontractorInvoiceResult": {
5399
+ "type": "object",
5400
+ "properties": {
5401
+ "supplierInvoiceId": {
5402
+ "type": "string",
5403
+ "format": "uuid"
5404
+ },
5405
+ "supplierCode": {
5406
+ "type": "integer",
5407
+ "format": "int64"
5408
+ },
5409
+ "customerCode": {
5410
+ "type": "integer",
5411
+ "format": "int64"
5412
+ },
5413
+ "cutPercent": {
5414
+ "type": "number",
5415
+ "format": "double"
5416
+ },
5417
+ "currency": {
5418
+ "type": "string"
5419
+ },
5420
+ "totalAmount": {
5421
+ "type": "number",
5422
+ "format": "double"
5423
+ },
5424
+ "lines": {
5425
+ "type": "array",
5426
+ "items": {
5427
+ "$ref": "#/components/schemas/subcontractorInvoiceLine"
5428
+ }
5429
+ },
5430
+ "draft": {
5431
+ "$ref": "#/components/schemas/subcontractorInvoiceDraft"
5432
+ }
5433
+ }
5434
+ },
5435
+ "subcontractorMonthlySummary": {
5436
+ "type": "object",
5437
+ "properties": {
5438
+ "supplierCode": {
5439
+ "type": "integer",
5440
+ "format": "int64"
5441
+ },
5442
+ "name": {
5443
+ "type": "string"
5444
+ },
5445
+ "cutPercent": {
5446
+ "type": "number",
5447
+ "format": "double"
5448
+ },
5449
+ "customerCode": {
5450
+ "type": "integer",
5451
+ "format": "int64",
5452
+ "nullable": true
5453
+ },
5454
+ "currency": {
5455
+ "type": "string"
5456
+ },
5457
+ "incomingTotal": {
5458
+ "type": "number",
5459
+ "format": "double"
5460
+ },
5461
+ "outgoingTotal": {
5462
+ "type": "number",
5463
+ "format": "double"
5464
+ },
5465
+ "margin": {
5466
+ "type": "number",
5467
+ "format": "double"
5468
+ },
5469
+ "incomingCount": {
5470
+ "type": "integer",
5471
+ "format": "int32"
5472
+ },
5473
+ "outgoingCount": {
5474
+ "type": "integer",
5475
+ "format": "int32"
5476
+ }
5477
+ }
5478
+ },
5479
+ "subcontractorSourceInvoiceSummary": {
5480
+ "type": "object",
5481
+ "properties": {
5482
+ "id": {
5483
+ "type": "string",
5484
+ "format": "uuid"
5485
+ },
5486
+ "supplierCode": {
5487
+ "type": "integer",
5488
+ "format": "int64"
5489
+ },
5490
+ "invoiceNo": {
5491
+ "type": "string"
5492
+ },
5493
+ "voucherDate": {
5494
+ "type": "string",
5495
+ "format": "date-time"
5496
+ },
5497
+ "projectCode": {
5498
+ "type": "string"
5499
+ },
5500
+ "currency": {
5501
+ "type": "string"
5502
+ },
5503
+ "amount": {
5504
+ "type": "number",
5505
+ "format": "double"
5506
+ },
5507
+ "resolvedCustomerCode": {
5508
+ "type": "integer",
5509
+ "format": "int64",
5510
+ "nullable": true
5511
+ }
5512
+ }
5513
+ },
4730
5514
  "summary": {
4731
5515
  "type": "object",
4732
5516
  "properties": {
@@ -5171,6 +5955,20 @@
5171
5955
  }
5172
5956
  }
5173
5957
  },
5958
+ "voucherDocument": {
5959
+ "type": "object",
5960
+ "properties": {
5961
+ "fileName": {
5962
+ "type": "string"
5963
+ },
5964
+ "contentBase64": {
5965
+ "type": "string"
5966
+ },
5967
+ "contentType": {
5968
+ "type": "string"
5969
+ }
5970
+ }
5971
+ },
5174
5972
  "wageRate": {
5175
5973
  "required": [
5176
5974
  "sickLeave",