@workbuddy/n8n-nodes-workbuddy-vnext 1.0.167 → 1.0.168

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.
@@ -288,6 +288,22 @@ class WorkBuddy {
288
288
  name: 'Sales Quotes Files',
289
289
  value: 'sales-quotes-files',
290
290
  },
291
+ {
292
+ name: 'Sales Sale Orders',
293
+ value: 'sales-sale-orders',
294
+ },
295
+ {
296
+ name: 'Finance Invoices',
297
+ value: 'finance-invoices',
298
+ },
299
+ {
300
+ name: 'Finance Bills',
301
+ value: 'finance-bills',
302
+ },
303
+ {
304
+ name: 'Finance Purchase Orders',
305
+ value: 'finance-purchase-orders',
306
+ },
291
307
  {
292
308
  name: 'Mcp',
293
309
  value: 'mcp',
@@ -45940,6 +45956,2951 @@ class WorkBuddy {
45940
45956
  },
45941
45957
  },
45942
45958
  },
45959
+ // Sales Sale Orders Operations
45960
+ {
45961
+ displayName: 'Operation',
45962
+ name: 'operation',
45963
+ type: 'options',
45964
+ noDataExpression: true,
45965
+ displayOptions: {
45966
+ show: {
45967
+ resource: ['sales-sale-orders'],
45968
+ },
45969
+ },
45970
+ options: [
45971
+ {
45972
+ name: 'List sale orders',
45973
+ value: 'PublicSaleOrderController_list',
45974
+ action: '',
45975
+ description: '',
45976
+ routing: {
45977
+ request: {
45978
+ method: 'GET',
45979
+ url: '/api/v2/public/sale-orders',
45980
+ },
45981
+ },
45982
+ },
45983
+ {
45984
+ name: 'Create sale order',
45985
+ value: 'PublicSaleOrderController_create',
45986
+ action: '',
45987
+ description: '',
45988
+ routing: {
45989
+ request: {
45990
+ method: 'POST',
45991
+ url: '/api/v2/public/sale-orders',
45992
+ },
45993
+ },
45994
+ },
45995
+ {
45996
+ name: 'Get sale order',
45997
+ value: 'PublicSaleOrderController_get',
45998
+ action: '',
45999
+ description: '',
46000
+ routing: {
46001
+ request: {
46002
+ method: 'GET',
46003
+ url: '/api/v2/public/sale-orders/={{ $parameter["id"] }}',
46004
+ },
46005
+ },
46006
+ },
46007
+ {
46008
+ name: 'Update sale order',
46009
+ value: 'PublicSaleOrderController_update',
46010
+ action: '',
46011
+ description: '',
46012
+ routing: {
46013
+ request: {
46014
+ method: 'PATCH',
46015
+ url: '/api/v2/public/sale-orders/={{ $parameter["id"] }}',
46016
+ },
46017
+ },
46018
+ },
46019
+ {
46020
+ name: 'Convert sale order to invoice',
46021
+ value: 'PublicSaleOrderController_convertToInvoice',
46022
+ action: '',
46023
+ description: '',
46024
+ routing: {
46025
+ request: {
46026
+ method: 'POST',
46027
+ url: '/api/v2/public/sale-orders/={{ $parameter["id"] }}/convert-to-invoice',
46028
+ },
46029
+ },
46030
+ },
46031
+ {
46032
+ name: 'Cancel sale order',
46033
+ value: 'PublicSaleOrderController_cancel',
46034
+ action: '',
46035
+ description: '',
46036
+ routing: {
46037
+ request: {
46038
+ method: 'POST',
46039
+ url: '/api/v2/public/sale-orders/={{ $parameter["id"] }}/cancel',
46040
+ },
46041
+ },
46042
+ },
46043
+ ],
46044
+ default: 'PublicSaleOrderController_list',
46045
+ },
46046
+ {
46047
+ displayName: 'Customer Id',
46048
+ name: 'customerId',
46049
+ type: 'options',
46050
+ default: '',
46051
+ description: 'customer ID',
46052
+ required: false,
46053
+ displayOptions: {
46054
+ show: {
46055
+ resource: ['sales-sale-orders'],
46056
+ operation: ['PublicSaleOrderController_list'],
46057
+ },
46058
+ },
46059
+ routing: {
46060
+ request: {
46061
+ qs: {
46062
+ customerId: '={{$value}}',
46063
+ },
46064
+ },
46065
+ },
46066
+ typeOptions: {
46067
+ loadOptionsMethod: 'loadCustomerOptions',
46068
+ },
46069
+ },
46070
+ {
46071
+ displayName: 'Status',
46072
+ name: 'status',
46073
+ type: 'string',
46074
+ default: '',
46075
+ description: '',
46076
+ required: false,
46077
+ displayOptions: {
46078
+ show: {
46079
+ resource: ['sales-sale-orders'],
46080
+ operation: ['PublicSaleOrderController_list'],
46081
+ },
46082
+ },
46083
+ routing: {
46084
+ request: {
46085
+ qs: {
46086
+ status: '={{$value}}',
46087
+ },
46088
+ },
46089
+ },
46090
+ },
46091
+ {
46092
+ displayName: 'Cursor',
46093
+ name: 'cursor',
46094
+ type: 'string',
46095
+ default: '',
46096
+ description: '',
46097
+ required: false,
46098
+ displayOptions: {
46099
+ show: {
46100
+ resource: ['sales-sale-orders'],
46101
+ operation: ['PublicSaleOrderController_list'],
46102
+ },
46103
+ },
46104
+ routing: {
46105
+ request: {
46106
+ qs: {
46107
+ cursor: '={{$value}}',
46108
+ },
46109
+ },
46110
+ },
46111
+ },
46112
+ {
46113
+ displayName: 'Limit',
46114
+ name: 'limit',
46115
+ type: 'number',
46116
+ default: 50,
46117
+ description: '',
46118
+ required: false,
46119
+ displayOptions: {
46120
+ show: {
46121
+ resource: ['sales-sale-orders'],
46122
+ operation: ['PublicSaleOrderController_list'],
46123
+ },
46124
+ },
46125
+ routing: {
46126
+ request: {
46127
+ qs: {
46128
+ limit: '={{$value}}',
46129
+ },
46130
+ },
46131
+ },
46132
+ },
46133
+ {
46134
+ displayName: 'Customer Id',
46135
+ name: 'customerId',
46136
+ type: 'options',
46137
+ default: '',
46138
+ description: 'Customer ID — use /crm/customers to look up',
46139
+ required: true,
46140
+ displayOptions: {
46141
+ show: {
46142
+ resource: ['sales-sale-orders'],
46143
+ operation: ['PublicSaleOrderController_create'],
46144
+ },
46145
+ },
46146
+ typeOptions: {
46147
+ loadOptionsMethod: 'loadCustomerOptions',
46148
+ },
46149
+ routing: {
46150
+ send: {
46151
+ type: 'body',
46152
+ property: 'customerId',
46153
+ },
46154
+ },
46155
+ },
46156
+ {
46157
+ displayName: 'Billing Company Id',
46158
+ name: 'billingCompanyId',
46159
+ type: 'string',
46160
+ default: '',
46161
+ description: 'billing company ID',
46162
+ required: true,
46163
+ displayOptions: {
46164
+ show: {
46165
+ resource: ['sales-sale-orders'],
46166
+ operation: ['PublicSaleOrderController_create'],
46167
+ },
46168
+ },
46169
+ routing: {
46170
+ send: {
46171
+ type: 'body',
46172
+ property: 'billingCompanyId',
46173
+ },
46174
+ },
46175
+ },
46176
+ {
46177
+ displayName: 'Date',
46178
+ name: 'date',
46179
+ type: 'dateTime',
46180
+ default: '',
46181
+ description: '',
46182
+ required: true,
46183
+ displayOptions: {
46184
+ show: {
46185
+ resource: ['sales-sale-orders'],
46186
+ operation: ['PublicSaleOrderController_create'],
46187
+ },
46188
+ },
46189
+ routing: {
46190
+ send: {
46191
+ type: 'body',
46192
+ property: 'date',
46193
+ },
46194
+ },
46195
+ },
46196
+ {
46197
+ displayName: 'Tax Inclusive Option',
46198
+ name: 'taxInclusiveOption',
46199
+ type: 'options',
46200
+ default: '',
46201
+ description: '',
46202
+ required: true,
46203
+ displayOptions: {
46204
+ show: {
46205
+ resource: ['sales-sale-orders'],
46206
+ operation: ['PublicSaleOrderController_create'],
46207
+ },
46208
+ },
46209
+ options: [
46210
+ {
46211
+ name: 'Tax Exclusive',
46212
+ value: 'Tax Exclusive',
46213
+ },
46214
+ {
46215
+ name: 'Tax Inclusive',
46216
+ value: 'Tax Inclusive',
46217
+ },
46218
+ {
46219
+ name: 'No Tax',
46220
+ value: 'No Tax',
46221
+ },
46222
+ ],
46223
+ routing: {
46224
+ send: {
46225
+ type: 'body',
46226
+ property: 'taxInclusiveOption',
46227
+ },
46228
+ },
46229
+ },
46230
+ {
46231
+ displayName: 'Contact Id',
46232
+ name: 'contactId',
46233
+ type: 'string',
46234
+ default: '',
46235
+ description: 'Contact ID — use /crm/contacts to look up',
46236
+ required: false,
46237
+ displayOptions: {
46238
+ show: {
46239
+ resource: ['sales-sale-orders'],
46240
+ operation: ['PublicSaleOrderController_create'],
46241
+ },
46242
+ },
46243
+ routing: {
46244
+ send: {
46245
+ type: 'body',
46246
+ property: 'contactId',
46247
+ },
46248
+ },
46249
+ },
46250
+ {
46251
+ displayName: 'Theme Id',
46252
+ name: 'themeId',
46253
+ type: 'string',
46254
+ default: '',
46255
+ description: 'theme ID',
46256
+ required: false,
46257
+ displayOptions: {
46258
+ show: {
46259
+ resource: ['sales-sale-orders'],
46260
+ operation: ['PublicSaleOrderController_create'],
46261
+ },
46262
+ },
46263
+ routing: {
46264
+ send: {
46265
+ type: 'body',
46266
+ property: 'themeId',
46267
+ },
46268
+ },
46269
+ },
46270
+ {
46271
+ displayName: 'Price List Id',
46272
+ name: 'priceListId',
46273
+ type: 'string',
46274
+ default: '',
46275
+ description: 'price list ID',
46276
+ required: false,
46277
+ displayOptions: {
46278
+ show: {
46279
+ resource: ['sales-sale-orders'],
46280
+ operation: ['PublicSaleOrderController_create'],
46281
+ },
46282
+ },
46283
+ routing: {
46284
+ send: {
46285
+ type: 'body',
46286
+ property: 'priceListId',
46287
+ },
46288
+ },
46289
+ },
46290
+ {
46291
+ displayName: 'Expiry Date',
46292
+ name: 'expiryDate',
46293
+ type: 'string',
46294
+ default: '',
46295
+ description: 'expiry date (ISO 8601 datetime)',
46296
+ required: false,
46297
+ displayOptions: {
46298
+ show: {
46299
+ resource: ['sales-sale-orders'],
46300
+ operation: ['PublicSaleOrderController_create'],
46301
+ },
46302
+ },
46303
+ routing: {
46304
+ send: {
46305
+ type: 'body',
46306
+ property: 'expiryDate',
46307
+ },
46308
+ },
46309
+ },
46310
+ {
46311
+ displayName: 'Customer Ref',
46312
+ name: 'customerRef',
46313
+ type: 'string',
46314
+ default: '',
46315
+ description: '',
46316
+ required: false,
46317
+ displayOptions: {
46318
+ show: {
46319
+ resource: ['sales-sale-orders'],
46320
+ operation: ['PublicSaleOrderController_create'],
46321
+ },
46322
+ },
46323
+ routing: {
46324
+ send: {
46325
+ type: 'body',
46326
+ property: 'customerRef',
46327
+ },
46328
+ },
46329
+ },
46330
+ {
46331
+ displayName: 'Notes',
46332
+ name: 'notes',
46333
+ type: 'string',
46334
+ default: '',
46335
+ description: 'Additional notes or comments',
46336
+ required: false,
46337
+ displayOptions: {
46338
+ show: {
46339
+ resource: ['sales-sale-orders'],
46340
+ operation: ['PublicSaleOrderController_create'],
46341
+ },
46342
+ },
46343
+ routing: {
46344
+ send: {
46345
+ type: 'body',
46346
+ property: 'notes',
46347
+ },
46348
+ },
46349
+ },
46350
+ {
46351
+ displayName: 'Sections',
46352
+ name: 'sections',
46353
+ type: 'json',
46354
+ default: [],
46355
+ description: '',
46356
+ required: false,
46357
+ displayOptions: {
46358
+ show: {
46359
+ resource: ['sales-sale-orders'],
46360
+ operation: ['PublicSaleOrderController_create'],
46361
+ },
46362
+ },
46363
+ routing: {
46364
+ send: {
46365
+ type: 'body',
46366
+ property: 'sections',
46367
+ },
46368
+ },
46369
+ },
46370
+ {
46371
+ displayName: 'Id',
46372
+ name: 'id',
46373
+ type: 'string',
46374
+ default: '',
46375
+ description: 'Entity ID',
46376
+ required: true,
46377
+ displayOptions: {
46378
+ show: {
46379
+ resource: ['sales-sale-orders'],
46380
+ operation: ['PublicSaleOrderController_get'],
46381
+ },
46382
+ },
46383
+ },
46384
+ {
46385
+ displayName: 'Id',
46386
+ name: 'id',
46387
+ type: 'string',
46388
+ default: '',
46389
+ description: 'Entity ID',
46390
+ required: true,
46391
+ displayOptions: {
46392
+ show: {
46393
+ resource: ['sales-sale-orders'],
46394
+ operation: ['PublicSaleOrderController_update'],
46395
+ },
46396
+ },
46397
+ },
46398
+ {
46399
+ displayName: 'Customer Id',
46400
+ name: 'customerId',
46401
+ type: 'options',
46402
+ default: '',
46403
+ description: 'Customer ID — use /crm/customers to look up',
46404
+ required: false,
46405
+ displayOptions: {
46406
+ show: {
46407
+ resource: ['sales-sale-orders'],
46408
+ operation: ['PublicSaleOrderController_update'],
46409
+ },
46410
+ },
46411
+ typeOptions: {
46412
+ loadOptionsMethod: 'loadCustomerOptions',
46413
+ },
46414
+ routing: {
46415
+ send: {
46416
+ type: 'body',
46417
+ property: 'customerId',
46418
+ },
46419
+ },
46420
+ },
46421
+ {
46422
+ displayName: 'Contact Id',
46423
+ name: 'contactId',
46424
+ type: 'string',
46425
+ default: '',
46426
+ description: 'Contact ID — use /crm/contacts to look up',
46427
+ required: false,
46428
+ displayOptions: {
46429
+ show: {
46430
+ resource: ['sales-sale-orders'],
46431
+ operation: ['PublicSaleOrderController_update'],
46432
+ },
46433
+ },
46434
+ routing: {
46435
+ send: {
46436
+ type: 'body',
46437
+ property: 'contactId',
46438
+ },
46439
+ },
46440
+ },
46441
+ {
46442
+ displayName: 'Billing Company Id',
46443
+ name: 'billingCompanyId',
46444
+ type: 'string',
46445
+ default: '',
46446
+ description: 'billing company ID',
46447
+ required: false,
46448
+ displayOptions: {
46449
+ show: {
46450
+ resource: ['sales-sale-orders'],
46451
+ operation: ['PublicSaleOrderController_update'],
46452
+ },
46453
+ },
46454
+ routing: {
46455
+ send: {
46456
+ type: 'body',
46457
+ property: 'billingCompanyId',
46458
+ },
46459
+ },
46460
+ },
46461
+ {
46462
+ displayName: 'Theme Id',
46463
+ name: 'themeId',
46464
+ type: 'string',
46465
+ default: '',
46466
+ description: 'theme ID',
46467
+ required: false,
46468
+ displayOptions: {
46469
+ show: {
46470
+ resource: ['sales-sale-orders'],
46471
+ operation: ['PublicSaleOrderController_update'],
46472
+ },
46473
+ },
46474
+ routing: {
46475
+ send: {
46476
+ type: 'body',
46477
+ property: 'themeId',
46478
+ },
46479
+ },
46480
+ },
46481
+ {
46482
+ displayName: 'Price List Id',
46483
+ name: 'priceListId',
46484
+ type: 'string',
46485
+ default: '',
46486
+ description: 'price list ID',
46487
+ required: false,
46488
+ displayOptions: {
46489
+ show: {
46490
+ resource: ['sales-sale-orders'],
46491
+ operation: ['PublicSaleOrderController_update'],
46492
+ },
46493
+ },
46494
+ routing: {
46495
+ send: {
46496
+ type: 'body',
46497
+ property: 'priceListId',
46498
+ },
46499
+ },
46500
+ },
46501
+ {
46502
+ displayName: 'Date',
46503
+ name: 'date',
46504
+ type: 'dateTime',
46505
+ default: '',
46506
+ description: '',
46507
+ required: false,
46508
+ displayOptions: {
46509
+ show: {
46510
+ resource: ['sales-sale-orders'],
46511
+ operation: ['PublicSaleOrderController_update'],
46512
+ },
46513
+ },
46514
+ routing: {
46515
+ send: {
46516
+ type: 'body',
46517
+ property: 'date',
46518
+ },
46519
+ },
46520
+ },
46521
+ {
46522
+ displayName: 'Expiry Date',
46523
+ name: 'expiryDate',
46524
+ type: 'string',
46525
+ default: '',
46526
+ description: 'expiry date (ISO 8601 datetime)',
46527
+ required: false,
46528
+ displayOptions: {
46529
+ show: {
46530
+ resource: ['sales-sale-orders'],
46531
+ operation: ['PublicSaleOrderController_update'],
46532
+ },
46533
+ },
46534
+ routing: {
46535
+ send: {
46536
+ type: 'body',
46537
+ property: 'expiryDate',
46538
+ },
46539
+ },
46540
+ },
46541
+ {
46542
+ displayName: 'Customer Ref',
46543
+ name: 'customerRef',
46544
+ type: 'string',
46545
+ default: '',
46546
+ description: '',
46547
+ required: false,
46548
+ displayOptions: {
46549
+ show: {
46550
+ resource: ['sales-sale-orders'],
46551
+ operation: ['PublicSaleOrderController_update'],
46552
+ },
46553
+ },
46554
+ routing: {
46555
+ send: {
46556
+ type: 'body',
46557
+ property: 'customerRef',
46558
+ },
46559
+ },
46560
+ },
46561
+ {
46562
+ displayName: 'Notes',
46563
+ name: 'notes',
46564
+ type: 'string',
46565
+ default: '',
46566
+ description: 'Additional notes or comments',
46567
+ required: false,
46568
+ displayOptions: {
46569
+ show: {
46570
+ resource: ['sales-sale-orders'],
46571
+ operation: ['PublicSaleOrderController_update'],
46572
+ },
46573
+ },
46574
+ routing: {
46575
+ send: {
46576
+ type: 'body',
46577
+ property: 'notes',
46578
+ },
46579
+ },
46580
+ },
46581
+ {
46582
+ displayName: 'Tax Inclusive Option',
46583
+ name: 'taxInclusiveOption',
46584
+ type: 'options',
46585
+ default: '',
46586
+ description: '',
46587
+ required: false,
46588
+ displayOptions: {
46589
+ show: {
46590
+ resource: ['sales-sale-orders'],
46591
+ operation: ['PublicSaleOrderController_update'],
46592
+ },
46593
+ },
46594
+ options: [
46595
+ {
46596
+ name: 'Tax Exclusive',
46597
+ value: 'Tax Exclusive',
46598
+ },
46599
+ {
46600
+ name: 'Tax Inclusive',
46601
+ value: 'Tax Inclusive',
46602
+ },
46603
+ {
46604
+ name: 'No Tax',
46605
+ value: 'No Tax',
46606
+ },
46607
+ ],
46608
+ routing: {
46609
+ send: {
46610
+ type: 'body',
46611
+ property: 'taxInclusiveOption',
46612
+ },
46613
+ },
46614
+ },
46615
+ {
46616
+ displayName: 'Sections',
46617
+ name: 'sections',
46618
+ type: 'json',
46619
+ default: {},
46620
+ description: '',
46621
+ required: false,
46622
+ displayOptions: {
46623
+ show: {
46624
+ resource: ['sales-sale-orders'],
46625
+ operation: ['PublicSaleOrderController_update'],
46626
+ },
46627
+ },
46628
+ routing: {
46629
+ send: {
46630
+ type: 'body',
46631
+ property: 'sections',
46632
+ },
46633
+ },
46634
+ },
46635
+ {
46636
+ displayName: 'Id',
46637
+ name: 'id',
46638
+ type: 'string',
46639
+ default: '',
46640
+ description: 'Entity ID',
46641
+ required: true,
46642
+ displayOptions: {
46643
+ show: {
46644
+ resource: ['sales-sale-orders'],
46645
+ operation: ['PublicSaleOrderController_convertToInvoice'],
46646
+ },
46647
+ },
46648
+ },
46649
+ {
46650
+ displayName: 'Root',
46651
+ name: 'root',
46652
+ type: 'json',
46653
+ default: {},
46654
+ description: '',
46655
+ required: false,
46656
+ displayOptions: {
46657
+ show: {
46658
+ resource: ['sales-sale-orders'],
46659
+ operation: ['PublicSaleOrderController_convertToInvoice'],
46660
+ },
46661
+ },
46662
+ routing: {
46663
+ send: {
46664
+ type: 'body',
46665
+ property: 'root',
46666
+ },
46667
+ },
46668
+ },
46669
+ {
46670
+ displayName: 'Id',
46671
+ name: 'id',
46672
+ type: 'string',
46673
+ default: '',
46674
+ description: 'Entity ID',
46675
+ required: true,
46676
+ displayOptions: {
46677
+ show: {
46678
+ resource: ['sales-sale-orders'],
46679
+ operation: ['PublicSaleOrderController_cancel'],
46680
+ },
46681
+ },
46682
+ },
46683
+ {
46684
+ displayName: 'Root',
46685
+ name: 'root',
46686
+ type: 'json',
46687
+ default: {},
46688
+ description: '',
46689
+ required: false,
46690
+ displayOptions: {
46691
+ show: {
46692
+ resource: ['sales-sale-orders'],
46693
+ operation: ['PublicSaleOrderController_cancel'],
46694
+ },
46695
+ },
46696
+ routing: {
46697
+ send: {
46698
+ type: 'body',
46699
+ property: 'root',
46700
+ },
46701
+ },
46702
+ },
46703
+ // Finance Invoices Operations
46704
+ {
46705
+ displayName: 'Operation',
46706
+ name: 'operation',
46707
+ type: 'options',
46708
+ noDataExpression: true,
46709
+ displayOptions: {
46710
+ show: {
46711
+ resource: ['finance-invoices'],
46712
+ },
46713
+ },
46714
+ options: [
46715
+ {
46716
+ name: 'List invoices',
46717
+ value: 'PublicInvoiceController_list',
46718
+ action: '',
46719
+ description: '',
46720
+ routing: {
46721
+ request: {
46722
+ method: 'GET',
46723
+ url: '/api/v2/public/invoices',
46724
+ },
46725
+ },
46726
+ },
46727
+ {
46728
+ name: 'Create invoice',
46729
+ value: 'PublicInvoiceController_create',
46730
+ action: '',
46731
+ description: '',
46732
+ routing: {
46733
+ request: {
46734
+ method: 'POST',
46735
+ url: '/api/v2/public/invoices',
46736
+ },
46737
+ },
46738
+ },
46739
+ {
46740
+ name: 'Get invoice',
46741
+ value: 'PublicInvoiceController_get',
46742
+ action: '',
46743
+ description: '',
46744
+ routing: {
46745
+ request: {
46746
+ method: 'GET',
46747
+ url: '/api/v2/public/invoices/={{ $parameter["id"] }}',
46748
+ },
46749
+ },
46750
+ },
46751
+ {
46752
+ name: 'Update invoice',
46753
+ value: 'PublicInvoiceController_update',
46754
+ action: '',
46755
+ description: '',
46756
+ routing: {
46757
+ request: {
46758
+ method: 'PATCH',
46759
+ url: '/api/v2/public/invoices/={{ $parameter["id"] }}',
46760
+ },
46761
+ },
46762
+ },
46763
+ {
46764
+ name: 'Approve invoice',
46765
+ value: 'PublicInvoiceController_approve',
46766
+ action: '',
46767
+ description: '',
46768
+ routing: {
46769
+ request: {
46770
+ method: 'POST',
46771
+ url: '/api/v2/public/invoices/={{ $parameter["id"] }}/approve',
46772
+ },
46773
+ },
46774
+ },
46775
+ {
46776
+ name: 'Void invoice',
46777
+ value: 'PublicInvoiceController_void',
46778
+ action: '',
46779
+ description: '',
46780
+ routing: {
46781
+ request: {
46782
+ method: 'POST',
46783
+ url: '/api/v2/public/invoices/={{ $parameter["id"] }}/void',
46784
+ },
46785
+ },
46786
+ },
46787
+ ],
46788
+ default: 'PublicInvoiceController_list',
46789
+ },
46790
+ {
46791
+ displayName: 'Customer Id',
46792
+ name: 'customerId',
46793
+ type: 'options',
46794
+ default: '',
46795
+ description: 'customer ID',
46796
+ required: false,
46797
+ displayOptions: {
46798
+ show: {
46799
+ resource: ['finance-invoices'],
46800
+ operation: ['PublicInvoiceController_list'],
46801
+ },
46802
+ },
46803
+ routing: {
46804
+ request: {
46805
+ qs: {
46806
+ customerId: '={{$value}}',
46807
+ },
46808
+ },
46809
+ },
46810
+ typeOptions: {
46811
+ loadOptionsMethod: 'loadCustomerOptions',
46812
+ },
46813
+ },
46814
+ {
46815
+ displayName: 'Status',
46816
+ name: 'status',
46817
+ type: 'string',
46818
+ default: '',
46819
+ description: '',
46820
+ required: false,
46821
+ displayOptions: {
46822
+ show: {
46823
+ resource: ['finance-invoices'],
46824
+ operation: ['PublicInvoiceController_list'],
46825
+ },
46826
+ },
46827
+ routing: {
46828
+ request: {
46829
+ qs: {
46830
+ status: '={{$value}}',
46831
+ },
46832
+ },
46833
+ },
46834
+ },
46835
+ {
46836
+ displayName: 'Cursor',
46837
+ name: 'cursor',
46838
+ type: 'string',
46839
+ default: '',
46840
+ description: '',
46841
+ required: false,
46842
+ displayOptions: {
46843
+ show: {
46844
+ resource: ['finance-invoices'],
46845
+ operation: ['PublicInvoiceController_list'],
46846
+ },
46847
+ },
46848
+ routing: {
46849
+ request: {
46850
+ qs: {
46851
+ cursor: '={{$value}}',
46852
+ },
46853
+ },
46854
+ },
46855
+ },
46856
+ {
46857
+ displayName: 'Limit',
46858
+ name: 'limit',
46859
+ type: 'number',
46860
+ default: 50,
46861
+ description: '',
46862
+ required: false,
46863
+ displayOptions: {
46864
+ show: {
46865
+ resource: ['finance-invoices'],
46866
+ operation: ['PublicInvoiceController_list'],
46867
+ },
46868
+ },
46869
+ routing: {
46870
+ request: {
46871
+ qs: {
46872
+ limit: '={{$value}}',
46873
+ },
46874
+ },
46875
+ },
46876
+ },
46877
+ {
46878
+ displayName: 'Id',
46879
+ name: 'id',
46880
+ type: 'string',
46881
+ default: '',
46882
+ description: 'Entity ID',
46883
+ required: true,
46884
+ displayOptions: {
46885
+ show: {
46886
+ resource: ['finance-invoices'],
46887
+ operation: ['PublicInvoiceController_get'],
46888
+ },
46889
+ },
46890
+ },
46891
+ {
46892
+ displayName: 'Id',
46893
+ name: 'id',
46894
+ type: 'string',
46895
+ default: '',
46896
+ description: 'Entity ID',
46897
+ required: true,
46898
+ displayOptions: {
46899
+ show: {
46900
+ resource: ['finance-invoices'],
46901
+ operation: ['PublicInvoiceController_update'],
46902
+ },
46903
+ },
46904
+ },
46905
+ {
46906
+ displayName: 'Customer Id',
46907
+ name: 'customerId',
46908
+ type: 'options',
46909
+ default: '',
46910
+ description: 'Customer ID — use /crm/customers to look up',
46911
+ required: false,
46912
+ displayOptions: {
46913
+ show: {
46914
+ resource: ['finance-invoices'],
46915
+ operation: ['PublicInvoiceController_update'],
46916
+ },
46917
+ },
46918
+ typeOptions: {
46919
+ loadOptionsMethod: 'loadCustomerOptions',
46920
+ },
46921
+ routing: {
46922
+ send: {
46923
+ type: 'body',
46924
+ property: 'customerId',
46925
+ },
46926
+ },
46927
+ },
46928
+ {
46929
+ displayName: 'Invoice Date',
46930
+ name: 'invoiceDate',
46931
+ type: 'dateTime',
46932
+ default: '',
46933
+ description: 'invoice date (ISO 8601 datetime)',
46934
+ required: false,
46935
+ displayOptions: {
46936
+ show: {
46937
+ resource: ['finance-invoices'],
46938
+ operation: ['PublicInvoiceController_update'],
46939
+ },
46940
+ },
46941
+ routing: {
46942
+ send: {
46943
+ type: 'body',
46944
+ property: 'invoiceDate',
46945
+ },
46946
+ },
46947
+ },
46948
+ {
46949
+ displayName: 'Due Date',
46950
+ name: 'dueDate',
46951
+ type: 'dateTime',
46952
+ default: '',
46953
+ description: 'Due date (ISO 8601 datetime)',
46954
+ required: false,
46955
+ displayOptions: {
46956
+ show: {
46957
+ resource: ['finance-invoices'],
46958
+ operation: ['PublicInvoiceController_update'],
46959
+ },
46960
+ },
46961
+ routing: {
46962
+ send: {
46963
+ type: 'body',
46964
+ property: 'dueDate',
46965
+ },
46966
+ },
46967
+ },
46968
+ {
46969
+ displayName: 'Customer Reference',
46970
+ name: 'customerReference',
46971
+ type: 'string',
46972
+ default: '',
46973
+ description: '',
46974
+ required: false,
46975
+ displayOptions: {
46976
+ show: {
46977
+ resource: ['finance-invoices'],
46978
+ operation: ['PublicInvoiceController_update'],
46979
+ },
46980
+ },
46981
+ routing: {
46982
+ send: {
46983
+ type: 'body',
46984
+ property: 'customerReference',
46985
+ },
46986
+ },
46987
+ },
46988
+ {
46989
+ displayName: 'Notes',
46990
+ name: 'notes',
46991
+ type: 'string',
46992
+ default: '',
46993
+ description: 'Additional notes or comments',
46994
+ required: false,
46995
+ displayOptions: {
46996
+ show: {
46997
+ resource: ['finance-invoices'],
46998
+ operation: ['PublicInvoiceController_update'],
46999
+ },
47000
+ },
47001
+ routing: {
47002
+ send: {
47003
+ type: 'body',
47004
+ property: 'notes',
47005
+ },
47006
+ },
47007
+ },
47008
+ {
47009
+ displayName: 'Terms',
47010
+ name: 'terms',
47011
+ type: 'string',
47012
+ default: '',
47013
+ description: '',
47014
+ required: false,
47015
+ displayOptions: {
47016
+ show: {
47017
+ resource: ['finance-invoices'],
47018
+ operation: ['PublicInvoiceController_update'],
47019
+ },
47020
+ },
47021
+ routing: {
47022
+ send: {
47023
+ type: 'body',
47024
+ property: 'terms',
47025
+ },
47026
+ },
47027
+ },
47028
+ {
47029
+ displayName: 'Tax Inclusive Option',
47030
+ name: 'taxInclusiveOption',
47031
+ type: 'options',
47032
+ default: '',
47033
+ description: '',
47034
+ required: false,
47035
+ displayOptions: {
47036
+ show: {
47037
+ resource: ['finance-invoices'],
47038
+ operation: ['PublicInvoiceController_update'],
47039
+ },
47040
+ },
47041
+ options: [
47042
+ {
47043
+ name: 'Tax Exclusive',
47044
+ value: 'Tax Exclusive',
47045
+ },
47046
+ {
47047
+ name: 'Tax Inclusive',
47048
+ value: 'Tax Inclusive',
47049
+ },
47050
+ {
47051
+ name: 'No Tax',
47052
+ value: 'No Tax',
47053
+ },
47054
+ ],
47055
+ routing: {
47056
+ send: {
47057
+ type: 'body',
47058
+ property: 'taxInclusiveOption',
47059
+ },
47060
+ },
47061
+ },
47062
+ {
47063
+ displayName: 'Lines',
47064
+ name: 'lines',
47065
+ type: 'json',
47066
+ default: {},
47067
+ description: 'Replaces the lines; retained lines must carry their existing IDs.',
47068
+ required: false,
47069
+ displayOptions: {
47070
+ show: {
47071
+ resource: ['finance-invoices'],
47072
+ operation: ['PublicInvoiceController_update'],
47073
+ },
47074
+ },
47075
+ routing: {
47076
+ send: {
47077
+ type: 'body',
47078
+ property: 'lines',
47079
+ },
47080
+ },
47081
+ },
47082
+ {
47083
+ displayName: 'Id',
47084
+ name: 'id',
47085
+ type: 'string',
47086
+ default: '',
47087
+ description: 'Entity ID',
47088
+ required: true,
47089
+ displayOptions: {
47090
+ show: {
47091
+ resource: ['finance-invoices'],
47092
+ operation: ['PublicInvoiceController_approve'],
47093
+ },
47094
+ },
47095
+ },
47096
+ {
47097
+ displayName: 'Root',
47098
+ name: 'root',
47099
+ type: 'json',
47100
+ default: {},
47101
+ description: '',
47102
+ required: false,
47103
+ displayOptions: {
47104
+ show: {
47105
+ resource: ['finance-invoices'],
47106
+ operation: ['PublicInvoiceController_approve'],
47107
+ },
47108
+ },
47109
+ routing: {
47110
+ send: {
47111
+ type: 'body',
47112
+ property: 'root',
47113
+ },
47114
+ },
47115
+ },
47116
+ {
47117
+ displayName: 'Id',
47118
+ name: 'id',
47119
+ type: 'string',
47120
+ default: '',
47121
+ description: 'Entity ID',
47122
+ required: true,
47123
+ displayOptions: {
47124
+ show: {
47125
+ resource: ['finance-invoices'],
47126
+ operation: ['PublicInvoiceController_void'],
47127
+ },
47128
+ },
47129
+ },
47130
+ {
47131
+ displayName: 'Root',
47132
+ name: 'root',
47133
+ type: 'json',
47134
+ default: {},
47135
+ description: '',
47136
+ required: false,
47137
+ displayOptions: {
47138
+ show: {
47139
+ resource: ['finance-invoices'],
47140
+ operation: ['PublicInvoiceController_void'],
47141
+ },
47142
+ },
47143
+ routing: {
47144
+ send: {
47145
+ type: 'body',
47146
+ property: 'root',
47147
+ },
47148
+ },
47149
+ },
47150
+ // Finance Bills Operations
47151
+ {
47152
+ displayName: 'Operation',
47153
+ name: 'operation',
47154
+ type: 'options',
47155
+ noDataExpression: true,
47156
+ displayOptions: {
47157
+ show: {
47158
+ resource: ['finance-bills'],
47159
+ },
47160
+ },
47161
+ options: [
47162
+ {
47163
+ name: 'List bills',
47164
+ value: 'PublicBillController_list',
47165
+ action: '',
47166
+ description: '',
47167
+ routing: {
47168
+ request: {
47169
+ method: 'GET',
47170
+ url: '/api/v2/public/bills',
47171
+ },
47172
+ },
47173
+ },
47174
+ {
47175
+ name: 'Create bill',
47176
+ value: 'PublicBillController_create',
47177
+ action: '',
47178
+ description: '',
47179
+ routing: {
47180
+ request: {
47181
+ method: 'POST',
47182
+ url: '/api/v2/public/bills',
47183
+ },
47184
+ },
47185
+ },
47186
+ {
47187
+ name: 'Get bill',
47188
+ value: 'PublicBillController_get',
47189
+ action: '',
47190
+ description: '',
47191
+ routing: {
47192
+ request: {
47193
+ method: 'GET',
47194
+ url: '/api/v2/public/bills/={{ $parameter["id"] }}',
47195
+ },
47196
+ },
47197
+ },
47198
+ {
47199
+ name: 'Update bill',
47200
+ value: 'PublicBillController_update',
47201
+ action: '',
47202
+ description: '',
47203
+ routing: {
47204
+ request: {
47205
+ method: 'PATCH',
47206
+ url: '/api/v2/public/bills/={{ $parameter["id"] }}',
47207
+ },
47208
+ },
47209
+ },
47210
+ {
47211
+ name: 'Approve bill',
47212
+ value: 'PublicBillController_approve',
47213
+ action: '',
47214
+ description: '',
47215
+ routing: {
47216
+ request: {
47217
+ method: 'POST',
47218
+ url: '/api/v2/public/bills/={{ $parameter["id"] }}/approve',
47219
+ },
47220
+ },
47221
+ },
47222
+ {
47223
+ name: 'Void bill',
47224
+ value: 'PublicBillController_void',
47225
+ action: '',
47226
+ description: '',
47227
+ routing: {
47228
+ request: {
47229
+ method: 'POST',
47230
+ url: '/api/v2/public/bills/={{ $parameter["id"] }}/void',
47231
+ },
47232
+ },
47233
+ },
47234
+ ],
47235
+ default: 'PublicBillController_list',
47236
+ },
47237
+ {
47238
+ displayName: 'Supplier Id',
47239
+ name: 'supplierId',
47240
+ type: 'string',
47241
+ default: '',
47242
+ description: 'supplier ID',
47243
+ required: false,
47244
+ displayOptions: {
47245
+ show: {
47246
+ resource: ['finance-bills'],
47247
+ operation: ['PublicBillController_list'],
47248
+ },
47249
+ },
47250
+ routing: {
47251
+ request: {
47252
+ qs: {
47253
+ supplierId: '={{$value}}',
47254
+ },
47255
+ },
47256
+ },
47257
+ },
47258
+ {
47259
+ displayName: 'Status',
47260
+ name: 'status',
47261
+ type: 'string',
47262
+ default: '',
47263
+ description: '',
47264
+ required: false,
47265
+ displayOptions: {
47266
+ show: {
47267
+ resource: ['finance-bills'],
47268
+ operation: ['PublicBillController_list'],
47269
+ },
47270
+ },
47271
+ routing: {
47272
+ request: {
47273
+ qs: {
47274
+ status: '={{$value}}',
47275
+ },
47276
+ },
47277
+ },
47278
+ },
47279
+ {
47280
+ displayName: 'Cursor',
47281
+ name: 'cursor',
47282
+ type: 'string',
47283
+ default: '',
47284
+ description: '',
47285
+ required: false,
47286
+ displayOptions: {
47287
+ show: {
47288
+ resource: ['finance-bills'],
47289
+ operation: ['PublicBillController_list'],
47290
+ },
47291
+ },
47292
+ routing: {
47293
+ request: {
47294
+ qs: {
47295
+ cursor: '={{$value}}',
47296
+ },
47297
+ },
47298
+ },
47299
+ },
47300
+ {
47301
+ displayName: 'Limit',
47302
+ name: 'limit',
47303
+ type: 'number',
47304
+ default: 50,
47305
+ description: '',
47306
+ required: false,
47307
+ displayOptions: {
47308
+ show: {
47309
+ resource: ['finance-bills'],
47310
+ operation: ['PublicBillController_list'],
47311
+ },
47312
+ },
47313
+ routing: {
47314
+ request: {
47315
+ qs: {
47316
+ limit: '={{$value}}',
47317
+ },
47318
+ },
47319
+ },
47320
+ },
47321
+ {
47322
+ displayName: 'Bill Date',
47323
+ name: 'billDate',
47324
+ type: 'dateTime',
47325
+ default: '',
47326
+ description: 'bill date (ISO 8601 datetime)',
47327
+ required: true,
47328
+ displayOptions: {
47329
+ show: {
47330
+ resource: ['finance-bills'],
47331
+ operation: ['PublicBillController_create'],
47332
+ },
47333
+ },
47334
+ routing: {
47335
+ send: {
47336
+ type: 'body',
47337
+ property: 'billDate',
47338
+ },
47339
+ },
47340
+ },
47341
+ {
47342
+ displayName: 'Due Date',
47343
+ name: 'dueDate',
47344
+ type: 'dateTime',
47345
+ default: '',
47346
+ description: 'Due date (ISO 8601 datetime)',
47347
+ required: true,
47348
+ displayOptions: {
47349
+ show: {
47350
+ resource: ['finance-bills'],
47351
+ operation: ['PublicBillController_create'],
47352
+ },
47353
+ },
47354
+ routing: {
47355
+ send: {
47356
+ type: 'body',
47357
+ property: 'dueDate',
47358
+ },
47359
+ },
47360
+ },
47361
+ {
47362
+ displayName: 'Tax Inclusive Option',
47363
+ name: 'taxInclusiveOption',
47364
+ type: 'options',
47365
+ default: '',
47366
+ description: '',
47367
+ required: true,
47368
+ displayOptions: {
47369
+ show: {
47370
+ resource: ['finance-bills'],
47371
+ operation: ['PublicBillController_create'],
47372
+ },
47373
+ },
47374
+ options: [
47375
+ {
47376
+ name: 'Tax Exclusive',
47377
+ value: 'Tax Exclusive',
47378
+ },
47379
+ {
47380
+ name: 'Tax Inclusive',
47381
+ value: 'Tax Inclusive',
47382
+ },
47383
+ {
47384
+ name: 'No Tax',
47385
+ value: 'No Tax',
47386
+ },
47387
+ ],
47388
+ routing: {
47389
+ send: {
47390
+ type: 'body',
47391
+ property: 'taxInclusiveOption',
47392
+ },
47393
+ },
47394
+ },
47395
+ {
47396
+ displayName: 'Lines',
47397
+ name: 'lines',
47398
+ type: 'json',
47399
+ default: {},
47400
+ description: '',
47401
+ required: true,
47402
+ displayOptions: {
47403
+ show: {
47404
+ resource: ['finance-bills'],
47405
+ operation: ['PublicBillController_create'],
47406
+ },
47407
+ },
47408
+ routing: {
47409
+ send: {
47410
+ type: 'body',
47411
+ property: 'lines',
47412
+ },
47413
+ },
47414
+ },
47415
+ {
47416
+ displayName: 'Supplier Id',
47417
+ name: 'supplierId',
47418
+ type: 'string',
47419
+ default: '',
47420
+ description: 'supplier ID',
47421
+ required: true,
47422
+ displayOptions: {
47423
+ show: {
47424
+ resource: ['finance-bills'],
47425
+ operation: ['PublicBillController_create'],
47426
+ },
47427
+ },
47428
+ routing: {
47429
+ send: {
47430
+ type: 'body',
47431
+ property: 'supplierId',
47432
+ },
47433
+ },
47434
+ },
47435
+ {
47436
+ displayName: 'Billing Company Id',
47437
+ name: 'billingCompanyId',
47438
+ type: 'string',
47439
+ default: '',
47440
+ description: 'billing company ID',
47441
+ required: true,
47442
+ displayOptions: {
47443
+ show: {
47444
+ resource: ['finance-bills'],
47445
+ operation: ['PublicBillController_create'],
47446
+ },
47447
+ },
47448
+ routing: {
47449
+ send: {
47450
+ type: 'body',
47451
+ property: 'billingCompanyId',
47452
+ },
47453
+ },
47454
+ },
47455
+ {
47456
+ displayName: 'Customer Reference',
47457
+ name: 'customerReference',
47458
+ type: 'string',
47459
+ default: '',
47460
+ description: '',
47461
+ required: false,
47462
+ displayOptions: {
47463
+ show: {
47464
+ resource: ['finance-bills'],
47465
+ operation: ['PublicBillController_create'],
47466
+ },
47467
+ },
47468
+ routing: {
47469
+ send: {
47470
+ type: 'body',
47471
+ property: 'customerReference',
47472
+ },
47473
+ },
47474
+ },
47475
+ {
47476
+ displayName: 'Notes',
47477
+ name: 'notes',
47478
+ type: 'string',
47479
+ default: '',
47480
+ description: 'Additional notes or comments',
47481
+ required: false,
47482
+ displayOptions: {
47483
+ show: {
47484
+ resource: ['finance-bills'],
47485
+ operation: ['PublicBillController_create'],
47486
+ },
47487
+ },
47488
+ routing: {
47489
+ send: {
47490
+ type: 'body',
47491
+ property: 'notes',
47492
+ },
47493
+ },
47494
+ },
47495
+ {
47496
+ displayName: 'Terms',
47497
+ name: 'terms',
47498
+ type: 'string',
47499
+ default: '',
47500
+ description: '',
47501
+ required: false,
47502
+ displayOptions: {
47503
+ show: {
47504
+ resource: ['finance-bills'],
47505
+ operation: ['PublicBillController_create'],
47506
+ },
47507
+ },
47508
+ routing: {
47509
+ send: {
47510
+ type: 'body',
47511
+ property: 'terms',
47512
+ },
47513
+ },
47514
+ },
47515
+ {
47516
+ displayName: 'Type',
47517
+ name: 'type',
47518
+ type: 'options',
47519
+ default: 'Bill',
47520
+ description: '',
47521
+ required: false,
47522
+ displayOptions: {
47523
+ show: {
47524
+ resource: ['finance-bills'],
47525
+ operation: ['PublicBillController_create'],
47526
+ },
47527
+ },
47528
+ options: [
47529
+ {
47530
+ name: 'Bill',
47531
+ value: 'Bill',
47532
+ },
47533
+ {
47534
+ name: 'Credit Note Supplier',
47535
+ value: 'Credit Note Supplier',
47536
+ },
47537
+ {
47538
+ name: 'Prepayment Supplier',
47539
+ value: 'Prepayment Supplier',
47540
+ },
47541
+ ],
47542
+ routing: {
47543
+ send: {
47544
+ type: 'body',
47545
+ property: 'type',
47546
+ },
47547
+ },
47548
+ },
47549
+ {
47550
+ displayName: 'Id',
47551
+ name: 'id',
47552
+ type: 'string',
47553
+ default: '',
47554
+ description: 'Entity ID',
47555
+ required: true,
47556
+ displayOptions: {
47557
+ show: {
47558
+ resource: ['finance-bills'],
47559
+ operation: ['PublicBillController_get'],
47560
+ },
47561
+ },
47562
+ },
47563
+ {
47564
+ displayName: 'Id',
47565
+ name: 'id',
47566
+ type: 'string',
47567
+ default: '',
47568
+ description: 'Entity ID',
47569
+ required: true,
47570
+ displayOptions: {
47571
+ show: {
47572
+ resource: ['finance-bills'],
47573
+ operation: ['PublicBillController_update'],
47574
+ },
47575
+ },
47576
+ },
47577
+ {
47578
+ displayName: 'Bill Date',
47579
+ name: 'billDate',
47580
+ type: 'dateTime',
47581
+ default: '',
47582
+ description: 'bill date (ISO 8601 datetime)',
47583
+ required: false,
47584
+ displayOptions: {
47585
+ show: {
47586
+ resource: ['finance-bills'],
47587
+ operation: ['PublicBillController_update'],
47588
+ },
47589
+ },
47590
+ routing: {
47591
+ send: {
47592
+ type: 'body',
47593
+ property: 'billDate',
47594
+ },
47595
+ },
47596
+ },
47597
+ {
47598
+ displayName: 'Due Date',
47599
+ name: 'dueDate',
47600
+ type: 'dateTime',
47601
+ default: '',
47602
+ description: 'Due date (ISO 8601 datetime)',
47603
+ required: false,
47604
+ displayOptions: {
47605
+ show: {
47606
+ resource: ['finance-bills'],
47607
+ operation: ['PublicBillController_update'],
47608
+ },
47609
+ },
47610
+ routing: {
47611
+ send: {
47612
+ type: 'body',
47613
+ property: 'dueDate',
47614
+ },
47615
+ },
47616
+ },
47617
+ {
47618
+ displayName: 'Customer Reference',
47619
+ name: 'customerReference',
47620
+ type: 'string',
47621
+ default: '',
47622
+ description: '',
47623
+ required: false,
47624
+ displayOptions: {
47625
+ show: {
47626
+ resource: ['finance-bills'],
47627
+ operation: ['PublicBillController_update'],
47628
+ },
47629
+ },
47630
+ routing: {
47631
+ send: {
47632
+ type: 'body',
47633
+ property: 'customerReference',
47634
+ },
47635
+ },
47636
+ },
47637
+ {
47638
+ displayName: 'Notes',
47639
+ name: 'notes',
47640
+ type: 'string',
47641
+ default: '',
47642
+ description: 'Additional notes or comments',
47643
+ required: false,
47644
+ displayOptions: {
47645
+ show: {
47646
+ resource: ['finance-bills'],
47647
+ operation: ['PublicBillController_update'],
47648
+ },
47649
+ },
47650
+ routing: {
47651
+ send: {
47652
+ type: 'body',
47653
+ property: 'notes',
47654
+ },
47655
+ },
47656
+ },
47657
+ {
47658
+ displayName: 'Terms',
47659
+ name: 'terms',
47660
+ type: 'string',
47661
+ default: '',
47662
+ description: '',
47663
+ required: false,
47664
+ displayOptions: {
47665
+ show: {
47666
+ resource: ['finance-bills'],
47667
+ operation: ['PublicBillController_update'],
47668
+ },
47669
+ },
47670
+ routing: {
47671
+ send: {
47672
+ type: 'body',
47673
+ property: 'terms',
47674
+ },
47675
+ },
47676
+ },
47677
+ {
47678
+ displayName: 'Tax Inclusive Option',
47679
+ name: 'taxInclusiveOption',
47680
+ type: 'options',
47681
+ default: '',
47682
+ description: '',
47683
+ required: false,
47684
+ displayOptions: {
47685
+ show: {
47686
+ resource: ['finance-bills'],
47687
+ operation: ['PublicBillController_update'],
47688
+ },
47689
+ },
47690
+ options: [
47691
+ {
47692
+ name: 'Tax Exclusive',
47693
+ value: 'Tax Exclusive',
47694
+ },
47695
+ {
47696
+ name: 'Tax Inclusive',
47697
+ value: 'Tax Inclusive',
47698
+ },
47699
+ {
47700
+ name: 'No Tax',
47701
+ value: 'No Tax',
47702
+ },
47703
+ ],
47704
+ routing: {
47705
+ send: {
47706
+ type: 'body',
47707
+ property: 'taxInclusiveOption',
47708
+ },
47709
+ },
47710
+ },
47711
+ {
47712
+ displayName: 'Lines',
47713
+ name: 'lines',
47714
+ type: 'json',
47715
+ default: {},
47716
+ description: 'Replaces editable lines; retained lines carry existing IDs.',
47717
+ required: false,
47718
+ displayOptions: {
47719
+ show: {
47720
+ resource: ['finance-bills'],
47721
+ operation: ['PublicBillController_update'],
47722
+ },
47723
+ },
47724
+ routing: {
47725
+ send: {
47726
+ type: 'body',
47727
+ property: 'lines',
47728
+ },
47729
+ },
47730
+ },
47731
+ {
47732
+ displayName: 'Id',
47733
+ name: 'id',
47734
+ type: 'string',
47735
+ default: '',
47736
+ description: 'Entity ID',
47737
+ required: true,
47738
+ displayOptions: {
47739
+ show: {
47740
+ resource: ['finance-bills'],
47741
+ operation: ['PublicBillController_approve'],
47742
+ },
47743
+ },
47744
+ },
47745
+ {
47746
+ displayName: 'Root',
47747
+ name: 'root',
47748
+ type: 'json',
47749
+ default: {},
47750
+ description: '',
47751
+ required: false,
47752
+ displayOptions: {
47753
+ show: {
47754
+ resource: ['finance-bills'],
47755
+ operation: ['PublicBillController_approve'],
47756
+ },
47757
+ },
47758
+ routing: {
47759
+ send: {
47760
+ type: 'body',
47761
+ property: 'root',
47762
+ },
47763
+ },
47764
+ },
47765
+ {
47766
+ displayName: 'Id',
47767
+ name: 'id',
47768
+ type: 'string',
47769
+ default: '',
47770
+ description: 'Entity ID',
47771
+ required: true,
47772
+ displayOptions: {
47773
+ show: {
47774
+ resource: ['finance-bills'],
47775
+ operation: ['PublicBillController_void'],
47776
+ },
47777
+ },
47778
+ },
47779
+ {
47780
+ displayName: 'Root',
47781
+ name: 'root',
47782
+ type: 'json',
47783
+ default: {},
47784
+ description: '',
47785
+ required: false,
47786
+ displayOptions: {
47787
+ show: {
47788
+ resource: ['finance-bills'],
47789
+ operation: ['PublicBillController_void'],
47790
+ },
47791
+ },
47792
+ routing: {
47793
+ send: {
47794
+ type: 'body',
47795
+ property: 'root',
47796
+ },
47797
+ },
47798
+ },
47799
+ // Finance Purchase Orders Operations
47800
+ {
47801
+ displayName: 'Operation',
47802
+ name: 'operation',
47803
+ type: 'options',
47804
+ noDataExpression: true,
47805
+ displayOptions: {
47806
+ show: {
47807
+ resource: ['finance-purchase-orders'],
47808
+ },
47809
+ },
47810
+ options: [
47811
+ {
47812
+ name: 'List purchase orders',
47813
+ value: 'PublicPurchaseOrderController_list',
47814
+ action: '',
47815
+ description: '',
47816
+ routing: {
47817
+ request: {
47818
+ method: 'GET',
47819
+ url: '/api/v2/public/purchase-orders',
47820
+ },
47821
+ },
47822
+ },
47823
+ {
47824
+ name: 'Create purchase order',
47825
+ value: 'PublicPurchaseOrderController_create',
47826
+ action: '',
47827
+ description: '',
47828
+ routing: {
47829
+ request: {
47830
+ method: 'POST',
47831
+ url: '/api/v2/public/purchase-orders',
47832
+ },
47833
+ },
47834
+ },
47835
+ {
47836
+ name: 'Get purchase order',
47837
+ value: 'PublicPurchaseOrderController_get',
47838
+ action: '',
47839
+ description: '',
47840
+ routing: {
47841
+ request: {
47842
+ method: 'GET',
47843
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}',
47844
+ },
47845
+ },
47846
+ },
47847
+ {
47848
+ name: 'Update purchase order',
47849
+ value: 'PublicPurchaseOrderController_update',
47850
+ action: '',
47851
+ description: '',
47852
+ routing: {
47853
+ request: {
47854
+ method: 'PATCH',
47855
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}',
47856
+ },
47857
+ },
47858
+ },
47859
+ {
47860
+ name: 'Delete draft purchase order',
47861
+ value: 'PublicPurchaseOrderController_delete',
47862
+ action: '',
47863
+ description: '',
47864
+ routing: {
47865
+ request: {
47866
+ method: 'DELETE',
47867
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}',
47868
+ },
47869
+ },
47870
+ },
47871
+ {
47872
+ name: 'Submit purchase order for approval',
47873
+ value: 'PublicPurchaseOrderController_submit',
47874
+ action: '',
47875
+ description: '',
47876
+ routing: {
47877
+ request: {
47878
+ method: 'POST',
47879
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}/submit',
47880
+ },
47881
+ },
47882
+ },
47883
+ {
47884
+ name: 'Approve purchase order',
47885
+ value: 'PublicPurchaseOrderController_approve',
47886
+ action: '',
47887
+ description: '',
47888
+ routing: {
47889
+ request: {
47890
+ method: 'POST',
47891
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}/approve',
47892
+ },
47893
+ },
47894
+ },
47895
+ {
47896
+ name: 'Request purchase order changes',
47897
+ value: 'PublicPurchaseOrderController_requestChanges',
47898
+ action: '',
47899
+ description: '',
47900
+ routing: {
47901
+ request: {
47902
+ method: 'POST',
47903
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}/request-changes',
47904
+ },
47905
+ },
47906
+ },
47907
+ {
47908
+ name: 'Mark purchase order sent',
47909
+ value: 'PublicPurchaseOrderController_markSent',
47910
+ action: '',
47911
+ description: '',
47912
+ routing: {
47913
+ request: {
47914
+ method: 'POST',
47915
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}/mark-sent',
47916
+ },
47917
+ },
47918
+ },
47919
+ {
47920
+ name: 'Cancel purchase order',
47921
+ value: 'PublicPurchaseOrderController_cancel',
47922
+ action: '',
47923
+ description: '',
47924
+ routing: {
47925
+ request: {
47926
+ method: 'POST',
47927
+ url: '/api/v2/public/purchase-orders/={{ $parameter["id"] }}/cancel',
47928
+ },
47929
+ },
47930
+ },
47931
+ ],
47932
+ default: 'PublicPurchaseOrderController_list',
47933
+ },
47934
+ {
47935
+ displayName: 'Supplier Id',
47936
+ name: 'supplierId',
47937
+ type: 'string',
47938
+ default: '',
47939
+ description: 'supplier ID',
47940
+ required: false,
47941
+ displayOptions: {
47942
+ show: {
47943
+ resource: ['finance-purchase-orders'],
47944
+ operation: ['PublicPurchaseOrderController_list'],
47945
+ },
47946
+ },
47947
+ routing: {
47948
+ request: {
47949
+ qs: {
47950
+ supplierId: '={{$value}}',
47951
+ },
47952
+ },
47953
+ },
47954
+ },
47955
+ {
47956
+ displayName: 'Status',
47957
+ name: 'status',
47958
+ type: 'string',
47959
+ default: '',
47960
+ description: '',
47961
+ required: false,
47962
+ displayOptions: {
47963
+ show: {
47964
+ resource: ['finance-purchase-orders'],
47965
+ operation: ['PublicPurchaseOrderController_list'],
47966
+ },
47967
+ },
47968
+ routing: {
47969
+ request: {
47970
+ qs: {
47971
+ status: '={{$value}}',
47972
+ },
47973
+ },
47974
+ },
47975
+ },
47976
+ {
47977
+ displayName: 'Cursor',
47978
+ name: 'cursor',
47979
+ type: 'string',
47980
+ default: '',
47981
+ description: '',
47982
+ required: false,
47983
+ displayOptions: {
47984
+ show: {
47985
+ resource: ['finance-purchase-orders'],
47986
+ operation: ['PublicPurchaseOrderController_list'],
47987
+ },
47988
+ },
47989
+ routing: {
47990
+ request: {
47991
+ qs: {
47992
+ cursor: '={{$value}}',
47993
+ },
47994
+ },
47995
+ },
47996
+ },
47997
+ {
47998
+ displayName: 'Limit',
47999
+ name: 'limit',
48000
+ type: 'number',
48001
+ default: 50,
48002
+ description: '',
48003
+ required: false,
48004
+ displayOptions: {
48005
+ show: {
48006
+ resource: ['finance-purchase-orders'],
48007
+ operation: ['PublicPurchaseOrderController_list'],
48008
+ },
48009
+ },
48010
+ routing: {
48011
+ request: {
48012
+ qs: {
48013
+ limit: '={{$value}}',
48014
+ },
48015
+ },
48016
+ },
48017
+ },
48018
+ {
48019
+ displayName: 'Supplier Id',
48020
+ name: 'supplierId',
48021
+ type: 'string',
48022
+ default: '',
48023
+ description: 'supplier ID',
48024
+ required: true,
48025
+ displayOptions: {
48026
+ show: {
48027
+ resource: ['finance-purchase-orders'],
48028
+ operation: ['PublicPurchaseOrderController_create'],
48029
+ },
48030
+ },
48031
+ routing: {
48032
+ send: {
48033
+ type: 'body',
48034
+ property: 'supplierId',
48035
+ },
48036
+ },
48037
+ },
48038
+ {
48039
+ displayName: 'Billing Company Id',
48040
+ name: 'billingCompanyId',
48041
+ type: 'string',
48042
+ default: '',
48043
+ description: 'billing company ID',
48044
+ required: true,
48045
+ displayOptions: {
48046
+ show: {
48047
+ resource: ['finance-purchase-orders'],
48048
+ operation: ['PublicPurchaseOrderController_create'],
48049
+ },
48050
+ },
48051
+ routing: {
48052
+ send: {
48053
+ type: 'body',
48054
+ property: 'billingCompanyId',
48055
+ },
48056
+ },
48057
+ },
48058
+ {
48059
+ displayName: 'Po Date',
48060
+ name: 'poDate',
48061
+ type: 'dateTime',
48062
+ default: '',
48063
+ description: 'po date (ISO 8601 datetime)',
48064
+ required: true,
48065
+ displayOptions: {
48066
+ show: {
48067
+ resource: ['finance-purchase-orders'],
48068
+ operation: ['PublicPurchaseOrderController_create'],
48069
+ },
48070
+ },
48071
+ routing: {
48072
+ send: {
48073
+ type: 'body',
48074
+ property: 'poDate',
48075
+ },
48076
+ },
48077
+ },
48078
+ {
48079
+ displayName: 'Delivery Options',
48080
+ name: 'deliveryOptions',
48081
+ type: 'options',
48082
+ default: '',
48083
+ description: '',
48084
+ required: true,
48085
+ displayOptions: {
48086
+ show: {
48087
+ resource: ['finance-purchase-orders'],
48088
+ operation: ['PublicPurchaseOrderController_create'],
48089
+ },
48090
+ },
48091
+ options: [
48092
+ {
48093
+ name: 'pickup',
48094
+ value: 'pickup',
48095
+ },
48096
+ {
48097
+ name: 'company',
48098
+ value: 'company',
48099
+ },
48100
+ {
48101
+ name: 'job',
48102
+ value: 'job',
48103
+ },
48104
+ {
48105
+ name: 'other',
48106
+ value: 'other',
48107
+ },
48108
+ ],
48109
+ routing: {
48110
+ send: {
48111
+ type: 'body',
48112
+ property: 'deliveryOptions',
48113
+ },
48114
+ },
48115
+ },
48116
+ {
48117
+ displayName: 'Tax Inclusive Option',
48118
+ name: 'taxInclusiveOption',
48119
+ type: 'options',
48120
+ default: '',
48121
+ description: '',
48122
+ required: true,
48123
+ displayOptions: {
48124
+ show: {
48125
+ resource: ['finance-purchase-orders'],
48126
+ operation: ['PublicPurchaseOrderController_create'],
48127
+ },
48128
+ },
48129
+ options: [
48130
+ {
48131
+ name: 'Tax Exclusive',
48132
+ value: 'Tax Exclusive',
48133
+ },
48134
+ {
48135
+ name: 'Tax Inclusive',
48136
+ value: 'Tax Inclusive',
48137
+ },
48138
+ {
48139
+ name: 'No Tax',
48140
+ value: 'No Tax',
48141
+ },
48142
+ ],
48143
+ routing: {
48144
+ send: {
48145
+ type: 'body',
48146
+ property: 'taxInclusiveOption',
48147
+ },
48148
+ },
48149
+ },
48150
+ {
48151
+ displayName: 'Lines',
48152
+ name: 'lines',
48153
+ type: 'json',
48154
+ default: {},
48155
+ description: '',
48156
+ required: true,
48157
+ displayOptions: {
48158
+ show: {
48159
+ resource: ['finance-purchase-orders'],
48160
+ operation: ['PublicPurchaseOrderController_create'],
48161
+ },
48162
+ },
48163
+ routing: {
48164
+ send: {
48165
+ type: 'body',
48166
+ property: 'lines',
48167
+ },
48168
+ },
48169
+ },
48170
+ {
48171
+ displayName: 'Delivery Date',
48172
+ name: 'deliveryDate',
48173
+ type: 'string',
48174
+ default: '',
48175
+ description: 'delivery date (ISO 8601 datetime)',
48176
+ required: false,
48177
+ displayOptions: {
48178
+ show: {
48179
+ resource: ['finance-purchase-orders'],
48180
+ operation: ['PublicPurchaseOrderController_create'],
48181
+ },
48182
+ },
48183
+ routing: {
48184
+ send: {
48185
+ type: 'body',
48186
+ property: 'deliveryDate',
48187
+ },
48188
+ },
48189
+ },
48190
+ {
48191
+ displayName: 'Delivery Address',
48192
+ name: 'deliveryAddress',
48193
+ type: 'collection',
48194
+ default: {},
48195
+ placeholder: 'Add Delivery Address',
48196
+ description: '',
48197
+ required: false,
48198
+ displayOptions: {
48199
+ show: {
48200
+ resource: ['finance-purchase-orders'],
48201
+ operation: ['PublicPurchaseOrderController_create'],
48202
+ },
48203
+ },
48204
+ options: [
48205
+ {
48206
+ displayName: 'Street1',
48207
+ name: 'street1',
48208
+ type: 'string',
48209
+ default: '',
48210
+ description: '',
48211
+ },
48212
+ {
48213
+ displayName: 'Street2',
48214
+ name: 'street2',
48215
+ type: 'string',
48216
+ default: '',
48217
+ description: '',
48218
+ },
48219
+ {
48220
+ displayName: 'Suburb',
48221
+ name: 'suburb',
48222
+ type: 'string',
48223
+ default: '',
48224
+ description: '',
48225
+ },
48226
+ {
48227
+ displayName: 'State',
48228
+ name: 'state',
48229
+ type: 'string',
48230
+ default: '',
48231
+ description: '',
48232
+ },
48233
+ {
48234
+ displayName: 'Postal Code',
48235
+ name: 'postalCode',
48236
+ type: 'string',
48237
+ default: '',
48238
+ description: '',
48239
+ },
48240
+ {
48241
+ displayName: 'Country',
48242
+ name: 'country',
48243
+ type: 'string',
48244
+ default: '',
48245
+ description: '',
48246
+ },
48247
+ ],
48248
+ routing: {
48249
+ send: {
48250
+ type: 'body',
48251
+ property: 'deliveryAddress',
48252
+ },
48253
+ },
48254
+ },
48255
+ {
48256
+ displayName: 'Delivery Contact Name',
48257
+ name: 'deliveryContactName',
48258
+ type: 'string',
48259
+ default: '',
48260
+ description: '',
48261
+ required: false,
48262
+ displayOptions: {
48263
+ show: {
48264
+ resource: ['finance-purchase-orders'],
48265
+ operation: ['PublicPurchaseOrderController_create'],
48266
+ },
48267
+ },
48268
+ routing: {
48269
+ send: {
48270
+ type: 'body',
48271
+ property: 'deliveryContactName',
48272
+ },
48273
+ },
48274
+ },
48275
+ {
48276
+ displayName: 'Delivery Contact Phone',
48277
+ name: 'deliveryContactPhone',
48278
+ type: 'string',
48279
+ default: '',
48280
+ description: '',
48281
+ required: false,
48282
+ displayOptions: {
48283
+ show: {
48284
+ resource: ['finance-purchase-orders'],
48285
+ operation: ['PublicPurchaseOrderController_create'],
48286
+ },
48287
+ },
48288
+ routing: {
48289
+ send: {
48290
+ type: 'body',
48291
+ property: 'deliveryContactPhone',
48292
+ },
48293
+ },
48294
+ },
48295
+ {
48296
+ displayName: 'Delivery Instructions',
48297
+ name: 'deliveryInstructions',
48298
+ type: 'string',
48299
+ default: '',
48300
+ description: '',
48301
+ required: false,
48302
+ displayOptions: {
48303
+ show: {
48304
+ resource: ['finance-purchase-orders'],
48305
+ operation: ['PublicPurchaseOrderController_create'],
48306
+ },
48307
+ },
48308
+ routing: {
48309
+ send: {
48310
+ type: 'body',
48311
+ property: 'deliveryInstructions',
48312
+ },
48313
+ },
48314
+ },
48315
+ {
48316
+ displayName: 'Reference',
48317
+ name: 'reference',
48318
+ type: 'string',
48319
+ default: '',
48320
+ description: 'External reference number',
48321
+ required: false,
48322
+ displayOptions: {
48323
+ show: {
48324
+ resource: ['finance-purchase-orders'],
48325
+ operation: ['PublicPurchaseOrderController_create'],
48326
+ },
48327
+ },
48328
+ routing: {
48329
+ send: {
48330
+ type: 'body',
48331
+ property: 'reference',
48332
+ },
48333
+ },
48334
+ },
48335
+ {
48336
+ displayName: 'Comment',
48337
+ name: 'comment',
48338
+ type: 'string',
48339
+ default: '',
48340
+ description: '',
48341
+ required: false,
48342
+ displayOptions: {
48343
+ show: {
48344
+ resource: ['finance-purchase-orders'],
48345
+ operation: ['PublicPurchaseOrderController_create'],
48346
+ },
48347
+ },
48348
+ routing: {
48349
+ send: {
48350
+ type: 'body',
48351
+ property: 'comment',
48352
+ },
48353
+ },
48354
+ },
48355
+ {
48356
+ displayName: 'Id',
48357
+ name: 'id',
48358
+ type: 'string',
48359
+ default: '',
48360
+ description: 'Entity ID',
48361
+ required: true,
48362
+ displayOptions: {
48363
+ show: {
48364
+ resource: ['finance-purchase-orders'],
48365
+ operation: ['PublicPurchaseOrderController_get'],
48366
+ },
48367
+ },
48368
+ },
48369
+ {
48370
+ displayName: 'Id',
48371
+ name: 'id',
48372
+ type: 'string',
48373
+ default: '',
48374
+ description: 'Entity ID',
48375
+ required: true,
48376
+ displayOptions: {
48377
+ show: {
48378
+ resource: ['finance-purchase-orders'],
48379
+ operation: ['PublicPurchaseOrderController_update'],
48380
+ },
48381
+ },
48382
+ },
48383
+ {
48384
+ displayName: 'Supplier Id',
48385
+ name: 'supplierId',
48386
+ type: 'string',
48387
+ default: '',
48388
+ description: 'supplier ID',
48389
+ required: false,
48390
+ displayOptions: {
48391
+ show: {
48392
+ resource: ['finance-purchase-orders'],
48393
+ operation: ['PublicPurchaseOrderController_update'],
48394
+ },
48395
+ },
48396
+ routing: {
48397
+ send: {
48398
+ type: 'body',
48399
+ property: 'supplierId',
48400
+ },
48401
+ },
48402
+ },
48403
+ {
48404
+ displayName: 'Billing Company Id',
48405
+ name: 'billingCompanyId',
48406
+ type: 'string',
48407
+ default: '',
48408
+ description: 'billing company ID',
48409
+ required: false,
48410
+ displayOptions: {
48411
+ show: {
48412
+ resource: ['finance-purchase-orders'],
48413
+ operation: ['PublicPurchaseOrderController_update'],
48414
+ },
48415
+ },
48416
+ routing: {
48417
+ send: {
48418
+ type: 'body',
48419
+ property: 'billingCompanyId',
48420
+ },
48421
+ },
48422
+ },
48423
+ {
48424
+ displayName: 'Po Date',
48425
+ name: 'poDate',
48426
+ type: 'dateTime',
48427
+ default: '',
48428
+ description: 'po date (ISO 8601 datetime)',
48429
+ required: false,
48430
+ displayOptions: {
48431
+ show: {
48432
+ resource: ['finance-purchase-orders'],
48433
+ operation: ['PublicPurchaseOrderController_update'],
48434
+ },
48435
+ },
48436
+ routing: {
48437
+ send: {
48438
+ type: 'body',
48439
+ property: 'poDate',
48440
+ },
48441
+ },
48442
+ },
48443
+ {
48444
+ displayName: 'Delivery Date',
48445
+ name: 'deliveryDate',
48446
+ type: 'string',
48447
+ default: '',
48448
+ description: 'delivery date (ISO 8601 datetime)',
48449
+ required: false,
48450
+ displayOptions: {
48451
+ show: {
48452
+ resource: ['finance-purchase-orders'],
48453
+ operation: ['PublicPurchaseOrderController_update'],
48454
+ },
48455
+ },
48456
+ routing: {
48457
+ send: {
48458
+ type: 'body',
48459
+ property: 'deliveryDate',
48460
+ },
48461
+ },
48462
+ },
48463
+ {
48464
+ displayName: 'Delivery Options',
48465
+ name: 'deliveryOptions',
48466
+ type: 'options',
48467
+ default: '',
48468
+ description: '',
48469
+ required: false,
48470
+ displayOptions: {
48471
+ show: {
48472
+ resource: ['finance-purchase-orders'],
48473
+ operation: ['PublicPurchaseOrderController_update'],
48474
+ },
48475
+ },
48476
+ options: [
48477
+ {
48478
+ name: 'pickup',
48479
+ value: 'pickup',
48480
+ },
48481
+ {
48482
+ name: 'company',
48483
+ value: 'company',
48484
+ },
48485
+ {
48486
+ name: 'job',
48487
+ value: 'job',
48488
+ },
48489
+ {
48490
+ name: 'other',
48491
+ value: 'other',
48492
+ },
48493
+ ],
48494
+ routing: {
48495
+ send: {
48496
+ type: 'body',
48497
+ property: 'deliveryOptions',
48498
+ },
48499
+ },
48500
+ },
48501
+ {
48502
+ displayName: 'Delivery Address',
48503
+ name: 'deliveryAddress',
48504
+ type: 'collection',
48505
+ default: {},
48506
+ placeholder: 'Add Delivery Address',
48507
+ description: '',
48508
+ required: false,
48509
+ displayOptions: {
48510
+ show: {
48511
+ resource: ['finance-purchase-orders'],
48512
+ operation: ['PublicPurchaseOrderController_update'],
48513
+ },
48514
+ },
48515
+ options: [
48516
+ {
48517
+ displayName: 'Street1',
48518
+ name: 'street1',
48519
+ type: 'string',
48520
+ default: '',
48521
+ description: '',
48522
+ },
48523
+ {
48524
+ displayName: 'Street2',
48525
+ name: 'street2',
48526
+ type: 'string',
48527
+ default: '',
48528
+ description: '',
48529
+ },
48530
+ {
48531
+ displayName: 'Suburb',
48532
+ name: 'suburb',
48533
+ type: 'string',
48534
+ default: '',
48535
+ description: '',
48536
+ },
48537
+ {
48538
+ displayName: 'State',
48539
+ name: 'state',
48540
+ type: 'string',
48541
+ default: '',
48542
+ description: '',
48543
+ },
48544
+ {
48545
+ displayName: 'Postal Code',
48546
+ name: 'postalCode',
48547
+ type: 'string',
48548
+ default: '',
48549
+ description: '',
48550
+ },
48551
+ {
48552
+ displayName: 'Country',
48553
+ name: 'country',
48554
+ type: 'string',
48555
+ default: '',
48556
+ description: '',
48557
+ },
48558
+ ],
48559
+ routing: {
48560
+ send: {
48561
+ type: 'body',
48562
+ property: 'deliveryAddress',
48563
+ },
48564
+ },
48565
+ },
48566
+ {
48567
+ displayName: 'Delivery Contact Name',
48568
+ name: 'deliveryContactName',
48569
+ type: 'string',
48570
+ default: '',
48571
+ description: '',
48572
+ required: false,
48573
+ displayOptions: {
48574
+ show: {
48575
+ resource: ['finance-purchase-orders'],
48576
+ operation: ['PublicPurchaseOrderController_update'],
48577
+ },
48578
+ },
48579
+ routing: {
48580
+ send: {
48581
+ type: 'body',
48582
+ property: 'deliveryContactName',
48583
+ },
48584
+ },
48585
+ },
48586
+ {
48587
+ displayName: 'Delivery Contact Phone',
48588
+ name: 'deliveryContactPhone',
48589
+ type: 'string',
48590
+ default: '',
48591
+ description: '',
48592
+ required: false,
48593
+ displayOptions: {
48594
+ show: {
48595
+ resource: ['finance-purchase-orders'],
48596
+ operation: ['PublicPurchaseOrderController_update'],
48597
+ },
48598
+ },
48599
+ routing: {
48600
+ send: {
48601
+ type: 'body',
48602
+ property: 'deliveryContactPhone',
48603
+ },
48604
+ },
48605
+ },
48606
+ {
48607
+ displayName: 'Delivery Instructions',
48608
+ name: 'deliveryInstructions',
48609
+ type: 'string',
48610
+ default: '',
48611
+ description: '',
48612
+ required: false,
48613
+ displayOptions: {
48614
+ show: {
48615
+ resource: ['finance-purchase-orders'],
48616
+ operation: ['PublicPurchaseOrderController_update'],
48617
+ },
48618
+ },
48619
+ routing: {
48620
+ send: {
48621
+ type: 'body',
48622
+ property: 'deliveryInstructions',
48623
+ },
48624
+ },
48625
+ },
48626
+ {
48627
+ displayName: 'Reference',
48628
+ name: 'reference',
48629
+ type: 'string',
48630
+ default: '',
48631
+ description: 'External reference number',
48632
+ required: false,
48633
+ displayOptions: {
48634
+ show: {
48635
+ resource: ['finance-purchase-orders'],
48636
+ operation: ['PublicPurchaseOrderController_update'],
48637
+ },
48638
+ },
48639
+ routing: {
48640
+ send: {
48641
+ type: 'body',
48642
+ property: 'reference',
48643
+ },
48644
+ },
48645
+ },
48646
+ {
48647
+ displayName: 'Comment',
48648
+ name: 'comment',
48649
+ type: 'string',
48650
+ default: '',
48651
+ description: '',
48652
+ required: false,
48653
+ displayOptions: {
48654
+ show: {
48655
+ resource: ['finance-purchase-orders'],
48656
+ operation: ['PublicPurchaseOrderController_update'],
48657
+ },
48658
+ },
48659
+ routing: {
48660
+ send: {
48661
+ type: 'body',
48662
+ property: 'comment',
48663
+ },
48664
+ },
48665
+ },
48666
+ {
48667
+ displayName: 'Tax Inclusive Option',
48668
+ name: 'taxInclusiveOption',
48669
+ type: 'options',
48670
+ default: '',
48671
+ description: '',
48672
+ required: false,
48673
+ displayOptions: {
48674
+ show: {
48675
+ resource: ['finance-purchase-orders'],
48676
+ operation: ['PublicPurchaseOrderController_update'],
48677
+ },
48678
+ },
48679
+ options: [
48680
+ {
48681
+ name: 'Tax Exclusive',
48682
+ value: 'Tax Exclusive',
48683
+ },
48684
+ {
48685
+ name: 'Tax Inclusive',
48686
+ value: 'Tax Inclusive',
48687
+ },
48688
+ {
48689
+ name: 'No Tax',
48690
+ value: 'No Tax',
48691
+ },
48692
+ ],
48693
+ routing: {
48694
+ send: {
48695
+ type: 'body',
48696
+ property: 'taxInclusiveOption',
48697
+ },
48698
+ },
48699
+ },
48700
+ {
48701
+ displayName: 'Lines',
48702
+ name: 'lines',
48703
+ type: 'json',
48704
+ default: {},
48705
+ description: '',
48706
+ required: false,
48707
+ displayOptions: {
48708
+ show: {
48709
+ resource: ['finance-purchase-orders'],
48710
+ operation: ['PublicPurchaseOrderController_update'],
48711
+ },
48712
+ },
48713
+ routing: {
48714
+ send: {
48715
+ type: 'body',
48716
+ property: 'lines',
48717
+ },
48718
+ },
48719
+ },
48720
+ {
48721
+ displayName: 'Id',
48722
+ name: 'id',
48723
+ type: 'string',
48724
+ default: '',
48725
+ description: 'Entity ID',
48726
+ required: true,
48727
+ displayOptions: {
48728
+ show: {
48729
+ resource: ['finance-purchase-orders'],
48730
+ operation: ['PublicPurchaseOrderController_delete'],
48731
+ },
48732
+ },
48733
+ },
48734
+ {
48735
+ displayName: 'Id',
48736
+ name: 'id',
48737
+ type: 'string',
48738
+ default: '',
48739
+ description: 'Entity ID',
48740
+ required: true,
48741
+ displayOptions: {
48742
+ show: {
48743
+ resource: ['finance-purchase-orders'],
48744
+ operation: ['PublicPurchaseOrderController_submit'],
48745
+ },
48746
+ },
48747
+ },
48748
+ {
48749
+ displayName: 'Root',
48750
+ name: 'root',
48751
+ type: 'json',
48752
+ default: {},
48753
+ description: '',
48754
+ required: false,
48755
+ displayOptions: {
48756
+ show: {
48757
+ resource: ['finance-purchase-orders'],
48758
+ operation: ['PublicPurchaseOrderController_submit'],
48759
+ },
48760
+ },
48761
+ routing: {
48762
+ send: {
48763
+ type: 'body',
48764
+ property: 'root',
48765
+ },
48766
+ },
48767
+ },
48768
+ {
48769
+ displayName: 'Id',
48770
+ name: 'id',
48771
+ type: 'string',
48772
+ default: '',
48773
+ description: 'Entity ID',
48774
+ required: true,
48775
+ displayOptions: {
48776
+ show: {
48777
+ resource: ['finance-purchase-orders'],
48778
+ operation: ['PublicPurchaseOrderController_approve'],
48779
+ },
48780
+ },
48781
+ },
48782
+ {
48783
+ displayName: 'Root',
48784
+ name: 'root',
48785
+ type: 'json',
48786
+ default: {},
48787
+ description: '',
48788
+ required: false,
48789
+ displayOptions: {
48790
+ show: {
48791
+ resource: ['finance-purchase-orders'],
48792
+ operation: ['PublicPurchaseOrderController_approve'],
48793
+ },
48794
+ },
48795
+ routing: {
48796
+ send: {
48797
+ type: 'body',
48798
+ property: 'root',
48799
+ },
48800
+ },
48801
+ },
48802
+ {
48803
+ displayName: 'Id',
48804
+ name: 'id',
48805
+ type: 'string',
48806
+ default: '',
48807
+ description: 'Entity ID',
48808
+ required: true,
48809
+ displayOptions: {
48810
+ show: {
48811
+ resource: ['finance-purchase-orders'],
48812
+ operation: ['PublicPurchaseOrderController_requestChanges'],
48813
+ },
48814
+ },
48815
+ },
48816
+ {
48817
+ displayName: 'Changes Required Note',
48818
+ name: 'changesRequiredNote',
48819
+ type: 'string',
48820
+ default: '',
48821
+ description: '',
48822
+ required: true,
48823
+ displayOptions: {
48824
+ show: {
48825
+ resource: ['finance-purchase-orders'],
48826
+ operation: ['PublicPurchaseOrderController_requestChanges'],
48827
+ },
48828
+ },
48829
+ routing: {
48830
+ send: {
48831
+ type: 'body',
48832
+ property: 'changesRequiredNote',
48833
+ },
48834
+ },
48835
+ },
48836
+ {
48837
+ displayName: 'Id',
48838
+ name: 'id',
48839
+ type: 'string',
48840
+ default: '',
48841
+ description: 'Entity ID',
48842
+ required: true,
48843
+ displayOptions: {
48844
+ show: {
48845
+ resource: ['finance-purchase-orders'],
48846
+ operation: ['PublicPurchaseOrderController_markSent'],
48847
+ },
48848
+ },
48849
+ },
48850
+ {
48851
+ displayName: 'Root',
48852
+ name: 'root',
48853
+ type: 'json',
48854
+ default: {},
48855
+ description: '',
48856
+ required: false,
48857
+ displayOptions: {
48858
+ show: {
48859
+ resource: ['finance-purchase-orders'],
48860
+ operation: ['PublicPurchaseOrderController_markSent'],
48861
+ },
48862
+ },
48863
+ routing: {
48864
+ send: {
48865
+ type: 'body',
48866
+ property: 'root',
48867
+ },
48868
+ },
48869
+ },
48870
+ {
48871
+ displayName: 'Id',
48872
+ name: 'id',
48873
+ type: 'string',
48874
+ default: '',
48875
+ description: 'Entity ID',
48876
+ required: true,
48877
+ displayOptions: {
48878
+ show: {
48879
+ resource: ['finance-purchase-orders'],
48880
+ operation: ['PublicPurchaseOrderController_cancel'],
48881
+ },
48882
+ },
48883
+ },
48884
+ {
48885
+ displayName: 'Root',
48886
+ name: 'root',
48887
+ type: 'json',
48888
+ default: {},
48889
+ description: '',
48890
+ required: false,
48891
+ displayOptions: {
48892
+ show: {
48893
+ resource: ['finance-purchase-orders'],
48894
+ operation: ['PublicPurchaseOrderController_cancel'],
48895
+ },
48896
+ },
48897
+ routing: {
48898
+ send: {
48899
+ type: 'body',
48900
+ property: 'root',
48901
+ },
48902
+ },
48903
+ },
45943
48904
  // Mcp Operations
45944
48905
  {
45945
48906
  displayName: 'Operation',