@talonic/docs 0.21.64 → 0.21.65
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/dist/content.js +8 -7
- package/dist/seo.js +677 -10
- package/dist/tailwind-preset.d.cts +45 -0
- package/dist/tailwind-preset.d.ts +45 -0
- package/openapi.json +677 -10
- package/package.json +1 -1
package/dist/seo.js
CHANGED
|
@@ -40389,7 +40389,7 @@ var openapi_default = {
|
|
|
40389
40389
|
get: {
|
|
40390
40390
|
operationId: "getApOverview",
|
|
40391
40391
|
summary: "Totals, entities and the last posting run",
|
|
40392
|
-
description: "The state of the payables inbox without the bills themselves (use `GET /v1/ap/bills`). `gaps` lists what is missing for a complete read: `
|
|
40392
|
+
description: "The state of the payables inbox without the bills themselves (use `GET /v1/ap/bills`). The invoices come from the Spec Money Found's invoice role names, else from the workspace's pipeline holding the most documents classified as invoices; `configured` is false only when there is none (`gaps` holds `no_invoice_pipeline`). `gaps` lists what is missing for a complete read: `contracts_not_set_up` (no Money Found) or `contracts_not_bound` (Money Found does not read these invoices), so prices are not checked against contracts while every other check runs; `processing:<role>` while the run is still reading invoices; `rules_pending` while invoices are still checked against the payment rules (`GET /v1/ap/rules`), `no_binding:<role>`, `unreadable:<role>`, `ledger_unavailable`, `contracts_pending` and the contract gaps per source. Amounts are in the currency of the workspace's Money Found configuration, else USD.",
|
|
40393
40393
|
tags: [
|
|
40394
40394
|
"Accounts Payable"
|
|
40395
40395
|
],
|
|
@@ -40423,9 +40423,12 @@ var openapi_default = {
|
|
|
40423
40423
|
type: "string",
|
|
40424
40424
|
enum: [
|
|
40425
40425
|
"ready",
|
|
40426
|
+
"needs_info",
|
|
40427
|
+
"evaluating",
|
|
40426
40428
|
"held"
|
|
40427
40429
|
]
|
|
40428
|
-
}
|
|
40430
|
+
},
|
|
40431
|
+
description: "evaluating: no hold yet, but the contract price check has not finished."
|
|
40429
40432
|
},
|
|
40430
40433
|
{
|
|
40431
40434
|
name: "entity",
|
|
@@ -40444,11 +40447,31 @@ var openapi_default = {
|
|
|
40444
40447
|
"above_contract",
|
|
40445
40448
|
"duplicate",
|
|
40446
40449
|
"missing_po",
|
|
40447
|
-
"vendor_unknown"
|
|
40450
|
+
"vendor_unknown",
|
|
40451
|
+
"sums_mismatch",
|
|
40452
|
+
"not_received",
|
|
40453
|
+
"above_po",
|
|
40454
|
+
"bank_changed",
|
|
40455
|
+
"already_paid",
|
|
40456
|
+
"date_check",
|
|
40457
|
+
"policy_rule"
|
|
40448
40458
|
]
|
|
40449
40459
|
},
|
|
40450
40460
|
description: "Bills with a hold of this reason."
|
|
40451
40461
|
},
|
|
40462
|
+
{
|
|
40463
|
+
name: "risk",
|
|
40464
|
+
in: "query",
|
|
40465
|
+
schema: {
|
|
40466
|
+
type: "string",
|
|
40467
|
+
enum: [
|
|
40468
|
+
"high",
|
|
40469
|
+
"medium",
|
|
40470
|
+
"low"
|
|
40471
|
+
]
|
|
40472
|
+
},
|
|
40473
|
+
description: "Held bills of this risk (`ApRisk`)."
|
|
40474
|
+
},
|
|
40452
40475
|
{
|
|
40453
40476
|
name: "q",
|
|
40454
40477
|
in: "query",
|
|
@@ -40504,7 +40527,7 @@ var openapi_default = {
|
|
|
40504
40527
|
get: {
|
|
40505
40528
|
operationId: "listApIssues",
|
|
40506
40529
|
summary: "The worklist of held bills",
|
|
40507
|
-
description: "Held bills
|
|
40530
|
+
description: "Held bills and bills missing information, with why, the dollars at stake, the risk and the evidence; highest risk first, then the dollars at stake, then bills missing information.",
|
|
40508
40531
|
tags: [
|
|
40509
40532
|
"Accounts Payable"
|
|
40510
40533
|
],
|
|
@@ -40533,6 +40556,71 @@ var openapi_default = {
|
|
|
40533
40556
|
}
|
|
40534
40557
|
}
|
|
40535
40558
|
},
|
|
40559
|
+
"/v1/ap/risk": {
|
|
40560
|
+
get: {
|
|
40561
|
+
operationId: "getApRiskMatrix",
|
|
40562
|
+
summary: "The risk matrix",
|
|
40563
|
+
description: "The platform's defaults, the workspace's changes (`overrides`, null when none) and the settings in force, with the matrix that turns likelihood and impact into a held bill's risk.",
|
|
40564
|
+
tags: [
|
|
40565
|
+
"Accounts Payable"
|
|
40566
|
+
],
|
|
40567
|
+
responses: {
|
|
40568
|
+
"200": {
|
|
40569
|
+
description: "The risk matrix.",
|
|
40570
|
+
content: {
|
|
40571
|
+
"application/json": {
|
|
40572
|
+
schema: {
|
|
40573
|
+
$ref: "#/components/schemas/ApRiskMatrix"
|
|
40574
|
+
}
|
|
40575
|
+
}
|
|
40576
|
+
}
|
|
40577
|
+
}
|
|
40578
|
+
}
|
|
40579
|
+
},
|
|
40580
|
+
put: {
|
|
40581
|
+
operationId: "saveApRiskMatrix",
|
|
40582
|
+
summary: "Save the risk matrix",
|
|
40583
|
+
description: "Only what differs from the defaults is kept; a part the body leaves out (`likelihood` or `impact`) keeps what was saved; `risk: null` goes back to the defaults. The rest of the AP configuration is untouched. Every held bill's risk follows on the next read.",
|
|
40584
|
+
tags: [
|
|
40585
|
+
"Accounts Payable"
|
|
40586
|
+
],
|
|
40587
|
+
requestBody: {
|
|
40588
|
+
required: true,
|
|
40589
|
+
content: {
|
|
40590
|
+
"application/json": {
|
|
40591
|
+
schema: {
|
|
40592
|
+
type: "object",
|
|
40593
|
+
properties: {
|
|
40594
|
+
risk: {
|
|
40595
|
+
nullable: true,
|
|
40596
|
+
allOf: [
|
|
40597
|
+
{
|
|
40598
|
+
$ref: "#/components/schemas/ApRiskSettings"
|
|
40599
|
+
}
|
|
40600
|
+
]
|
|
40601
|
+
}
|
|
40602
|
+
}
|
|
40603
|
+
}
|
|
40604
|
+
}
|
|
40605
|
+
}
|
|
40606
|
+
},
|
|
40607
|
+
responses: {
|
|
40608
|
+
"200": {
|
|
40609
|
+
description: "The risk matrix as saved.",
|
|
40610
|
+
content: {
|
|
40611
|
+
"application/json": {
|
|
40612
|
+
schema: {
|
|
40613
|
+
$ref: "#/components/schemas/ApRiskMatrix"
|
|
40614
|
+
}
|
|
40615
|
+
}
|
|
40616
|
+
}
|
|
40617
|
+
},
|
|
40618
|
+
"400": {
|
|
40619
|
+
$ref: "#/components/responses/BadRequest"
|
|
40620
|
+
}
|
|
40621
|
+
}
|
|
40622
|
+
}
|
|
40623
|
+
},
|
|
40536
40624
|
"/v1/ap/config": {
|
|
40537
40625
|
get: {
|
|
40538
40626
|
operationId: "getApConfig",
|
|
@@ -40769,6 +40857,314 @@ var openapi_default = {
|
|
|
40769
40857
|
}
|
|
40770
40858
|
}
|
|
40771
40859
|
},
|
|
40860
|
+
"/v1/ap/rules": {
|
|
40861
|
+
get: {
|
|
40862
|
+
operationId: "listApRules",
|
|
40863
|
+
summary: "Payment-rule batches and their rules",
|
|
40864
|
+
description: "Every batch of payment-rule files (policies, validation rules), newest first: each file's reading state (`status` pending, processing, waiting, completed, error; `rules_status` none, generating, waiting, ready, error) and the rules found in it, each with the words of the file it comes from. Every invoice is checked against all of them, together with the documents it links to (purchase orders, delivery notes, contract); a failed rule holds it (`policy_rule`), an unclear one is a note, and a check still running makes it `evaluating` (gap `rules_pending`). Requires scope `read`.",
|
|
40865
|
+
tags: [
|
|
40866
|
+
"Accounts Payable"
|
|
40867
|
+
],
|
|
40868
|
+
responses: {
|
|
40869
|
+
"200": {
|
|
40870
|
+
description: "The batches.",
|
|
40871
|
+
content: {
|
|
40872
|
+
"application/json": {
|
|
40873
|
+
schema: {
|
|
40874
|
+
type: "array",
|
|
40875
|
+
items: {
|
|
40876
|
+
type: "object",
|
|
40877
|
+
properties: {
|
|
40878
|
+
id: {
|
|
40879
|
+
type: "string",
|
|
40880
|
+
format: "uuid"
|
|
40881
|
+
},
|
|
40882
|
+
name: {
|
|
40883
|
+
type: "string"
|
|
40884
|
+
},
|
|
40885
|
+
created_at: {
|
|
40886
|
+
type: "string",
|
|
40887
|
+
format: "date-time"
|
|
40888
|
+
},
|
|
40889
|
+
files: {
|
|
40890
|
+
type: "array",
|
|
40891
|
+
items: {
|
|
40892
|
+
type: "object",
|
|
40893
|
+
properties: {
|
|
40894
|
+
document_id: {
|
|
40895
|
+
type: "string",
|
|
40896
|
+
format: "uuid"
|
|
40897
|
+
},
|
|
40898
|
+
filename: {
|
|
40899
|
+
type: "string"
|
|
40900
|
+
},
|
|
40901
|
+
status: {
|
|
40902
|
+
type: "string"
|
|
40903
|
+
},
|
|
40904
|
+
rules_status: {
|
|
40905
|
+
type: "string"
|
|
40906
|
+
},
|
|
40907
|
+
error: {
|
|
40908
|
+
type: "string",
|
|
40909
|
+
nullable: true
|
|
40910
|
+
},
|
|
40911
|
+
rule_count: {
|
|
40912
|
+
type: "integer"
|
|
40913
|
+
}
|
|
40914
|
+
}
|
|
40915
|
+
}
|
|
40916
|
+
},
|
|
40917
|
+
rules: {
|
|
40918
|
+
type: "array",
|
|
40919
|
+
items: {
|
|
40920
|
+
type: "object",
|
|
40921
|
+
properties: {
|
|
40922
|
+
id: {
|
|
40923
|
+
type: "string",
|
|
40924
|
+
format: "uuid"
|
|
40925
|
+
},
|
|
40926
|
+
document_id: {
|
|
40927
|
+
type: "string",
|
|
40928
|
+
format: "uuid"
|
|
40929
|
+
},
|
|
40930
|
+
code: {
|
|
40931
|
+
type: "string",
|
|
40932
|
+
nullable: true
|
|
40933
|
+
},
|
|
40934
|
+
text: {
|
|
40935
|
+
type: "string"
|
|
40936
|
+
},
|
|
40937
|
+
obligation: {
|
|
40938
|
+
type: "string"
|
|
40939
|
+
},
|
|
40940
|
+
source_quote: {
|
|
40941
|
+
type: "string",
|
|
40942
|
+
nullable: true
|
|
40943
|
+
},
|
|
40944
|
+
origin: {
|
|
40945
|
+
type: "string"
|
|
40946
|
+
}
|
|
40947
|
+
}
|
|
40948
|
+
}
|
|
40949
|
+
}
|
|
40950
|
+
}
|
|
40951
|
+
}
|
|
40952
|
+
}
|
|
40953
|
+
}
|
|
40954
|
+
}
|
|
40955
|
+
}
|
|
40956
|
+
}
|
|
40957
|
+
}
|
|
40958
|
+
},
|
|
40959
|
+
"/v1/ap/rules/batches": {
|
|
40960
|
+
post: {
|
|
40961
|
+
operationId: "createApRuleBatch",
|
|
40962
|
+
summary: "Add payment-rule files as a batch",
|
|
40963
|
+
description: "Documents already uploaded (1 to 50) become one batch: each is read and turned into rules in the background, then every invoice is checked against them. They stay out of the Compliance app. Requires scope `write`.",
|
|
40964
|
+
tags: [
|
|
40965
|
+
"Accounts Payable"
|
|
40966
|
+
],
|
|
40967
|
+
requestBody: {
|
|
40968
|
+
required: true,
|
|
40969
|
+
content: {
|
|
40970
|
+
"application/json": {
|
|
40971
|
+
schema: {
|
|
40972
|
+
type: "object",
|
|
40973
|
+
required: [
|
|
40974
|
+
"document_ids"
|
|
40975
|
+
],
|
|
40976
|
+
properties: {
|
|
40977
|
+
document_ids: {
|
|
40978
|
+
type: "array",
|
|
40979
|
+
minItems: 1,
|
|
40980
|
+
maxItems: 50,
|
|
40981
|
+
items: {
|
|
40982
|
+
type: "string",
|
|
40983
|
+
format: "uuid"
|
|
40984
|
+
}
|
|
40985
|
+
},
|
|
40986
|
+
name: {
|
|
40987
|
+
type: "string",
|
|
40988
|
+
maxLength: 200
|
|
40989
|
+
}
|
|
40990
|
+
}
|
|
40991
|
+
}
|
|
40992
|
+
}
|
|
40993
|
+
}
|
|
40994
|
+
},
|
|
40995
|
+
responses: {
|
|
40996
|
+
"201": {
|
|
40997
|
+
description: "The batch."
|
|
40998
|
+
},
|
|
40999
|
+
"404": {
|
|
41000
|
+
$ref: "#/components/responses/NotFound"
|
|
41001
|
+
}
|
|
41002
|
+
}
|
|
41003
|
+
}
|
|
41004
|
+
},
|
|
41005
|
+
"/v1/ap/rules/batches/{id}": {
|
|
41006
|
+
delete: {
|
|
41007
|
+
operationId: "deleteApRuleBatch",
|
|
41008
|
+
summary: "Remove a batch of payment rules",
|
|
41009
|
+
description: "Its files stop being rule files (the documents stay) and every invoice is checked again without its rules. Requires scope `write`.",
|
|
41010
|
+
tags: [
|
|
41011
|
+
"Accounts Payable"
|
|
41012
|
+
],
|
|
41013
|
+
parameters: [
|
|
41014
|
+
{
|
|
41015
|
+
name: "id",
|
|
41016
|
+
in: "path",
|
|
41017
|
+
required: true,
|
|
41018
|
+
schema: {
|
|
41019
|
+
type: "string",
|
|
41020
|
+
format: "uuid"
|
|
41021
|
+
}
|
|
41022
|
+
}
|
|
41023
|
+
],
|
|
41024
|
+
responses: {
|
|
41025
|
+
"200": {
|
|
41026
|
+
description: "Removed."
|
|
41027
|
+
},
|
|
41028
|
+
"404": {
|
|
41029
|
+
$ref: "#/components/responses/NotFound"
|
|
41030
|
+
}
|
|
41031
|
+
}
|
|
41032
|
+
}
|
|
41033
|
+
},
|
|
41034
|
+
"/v1/ap/rules/batches/{id}/rules": {
|
|
41035
|
+
post: {
|
|
41036
|
+
operationId: "createApRule",
|
|
41037
|
+
summary: "Add a rule to a batch",
|
|
41038
|
+
description: "A rule written by a person, checked like the rules found in the files. Requires scope `write`.",
|
|
41039
|
+
tags: [
|
|
41040
|
+
"Accounts Payable"
|
|
41041
|
+
],
|
|
41042
|
+
parameters: [
|
|
41043
|
+
{
|
|
41044
|
+
name: "id",
|
|
41045
|
+
in: "path",
|
|
41046
|
+
required: true,
|
|
41047
|
+
schema: {
|
|
41048
|
+
type: "string",
|
|
41049
|
+
format: "uuid"
|
|
41050
|
+
}
|
|
41051
|
+
}
|
|
41052
|
+
],
|
|
41053
|
+
requestBody: {
|
|
41054
|
+
required: true,
|
|
41055
|
+
content: {
|
|
41056
|
+
"application/json": {
|
|
41057
|
+
schema: {
|
|
41058
|
+
type: "object",
|
|
41059
|
+
required: [
|
|
41060
|
+
"text"
|
|
41061
|
+
],
|
|
41062
|
+
properties: {
|
|
41063
|
+
text: {
|
|
41064
|
+
type: "string",
|
|
41065
|
+
maxLength: 2e3
|
|
41066
|
+
}
|
|
41067
|
+
}
|
|
41068
|
+
}
|
|
41069
|
+
}
|
|
41070
|
+
}
|
|
41071
|
+
},
|
|
41072
|
+
responses: {
|
|
41073
|
+
"201": {
|
|
41074
|
+
description: "The rule."
|
|
41075
|
+
},
|
|
41076
|
+
"404": {
|
|
41077
|
+
$ref: "#/components/responses/NotFound"
|
|
41078
|
+
}
|
|
41079
|
+
}
|
|
41080
|
+
}
|
|
41081
|
+
},
|
|
41082
|
+
"/v1/ap/rules/rules/{ruleId}": {
|
|
41083
|
+
delete: {
|
|
41084
|
+
operationId: "deleteApRule",
|
|
41085
|
+
summary: "Remove a payment rule",
|
|
41086
|
+
description: "Requires scope `write`.",
|
|
41087
|
+
tags: [
|
|
41088
|
+
"Accounts Payable"
|
|
41089
|
+
],
|
|
41090
|
+
parameters: [
|
|
41091
|
+
{
|
|
41092
|
+
name: "ruleId",
|
|
41093
|
+
in: "path",
|
|
41094
|
+
required: true,
|
|
41095
|
+
schema: {
|
|
41096
|
+
type: "string",
|
|
41097
|
+
format: "uuid"
|
|
41098
|
+
}
|
|
41099
|
+
}
|
|
41100
|
+
],
|
|
41101
|
+
responses: {
|
|
41102
|
+
"200": {
|
|
41103
|
+
description: "Removed."
|
|
41104
|
+
},
|
|
41105
|
+
"404": {
|
|
41106
|
+
$ref: "#/components/responses/NotFound"
|
|
41107
|
+
}
|
|
41108
|
+
}
|
|
41109
|
+
}
|
|
41110
|
+
},
|
|
41111
|
+
"/v1/ap/intake": {
|
|
41112
|
+
post: {
|
|
41113
|
+
operationId: "postApIntake",
|
|
41114
|
+
summary: "Add invoices to the invoice pipeline",
|
|
41115
|
+
description: "Adds the workspace's documents classified as invoices, purchase orders or delivery notes to the pipeline AP reads, and starts it (only the new documents are read). It takes only documents no run holds yet (one a person or a routing rule sent elsewhere stays there) and only from the sources the pipeline already reads, or from a new source no other Spec reads (so sales invoices the company issues, read by another Spec, are not read as bills). New documents are added by themselves once classified; this catches up the ones that arrived before. With `dry_run` nothing is added and `added` lists what would be. `pipeline_id` is null when the workspace has no invoice pipeline. Requires scope `write`.",
|
|
41116
|
+
tags: [
|
|
41117
|
+
"Accounts Payable"
|
|
41118
|
+
],
|
|
41119
|
+
requestBody: {
|
|
41120
|
+
required: false,
|
|
41121
|
+
content: {
|
|
41122
|
+
"application/json": {
|
|
41123
|
+
schema: {
|
|
41124
|
+
type: "object",
|
|
41125
|
+
properties: {
|
|
41126
|
+
dry_run: {
|
|
41127
|
+
type: "boolean"
|
|
41128
|
+
}
|
|
41129
|
+
}
|
|
41130
|
+
}
|
|
41131
|
+
}
|
|
41132
|
+
}
|
|
41133
|
+
},
|
|
41134
|
+
responses: {
|
|
41135
|
+
"201": {
|
|
41136
|
+
description: "What was added.",
|
|
41137
|
+
content: {
|
|
41138
|
+
"application/json": {
|
|
41139
|
+
schema: {
|
|
41140
|
+
type: "object",
|
|
41141
|
+
properties: {
|
|
41142
|
+
pipeline_id: {
|
|
41143
|
+
type: "string",
|
|
41144
|
+
format: "uuid",
|
|
41145
|
+
nullable: true
|
|
41146
|
+
},
|
|
41147
|
+
added: {
|
|
41148
|
+
type: "array",
|
|
41149
|
+
items: {
|
|
41150
|
+
type: "string",
|
|
41151
|
+
format: "uuid"
|
|
41152
|
+
}
|
|
41153
|
+
}
|
|
41154
|
+
}
|
|
41155
|
+
}
|
|
41156
|
+
}
|
|
41157
|
+
}
|
|
41158
|
+
},
|
|
41159
|
+
"400": {
|
|
41160
|
+
$ref: "#/components/responses/BadRequest"
|
|
41161
|
+
},
|
|
41162
|
+
"403": {
|
|
41163
|
+
$ref: "#/components/responses/Forbidden"
|
|
41164
|
+
}
|
|
41165
|
+
}
|
|
41166
|
+
}
|
|
41167
|
+
},
|
|
40772
41168
|
"/v1/ap/netsuite/runs": {
|
|
40773
41169
|
get: {
|
|
40774
41170
|
operationId: "listApNetSuiteRuns",
|
|
@@ -42218,6 +42614,10 @@ var openapi_default = {
|
|
|
42218
42614
|
enabled: {
|
|
42219
42615
|
type: "boolean"
|
|
42220
42616
|
},
|
|
42617
|
+
standard: {
|
|
42618
|
+
type: "boolean",
|
|
42619
|
+
description: "A standard app: one the platform ships whole, added from the catalog and never drafted or published. It is switched on when added, switches on and off without a version, and has no runs."
|
|
42620
|
+
},
|
|
42221
42621
|
contract: {
|
|
42222
42622
|
type: "object",
|
|
42223
42623
|
nullable: true,
|
|
@@ -55712,7 +56112,8 @@ var openapi_default = {
|
|
|
55712
56112
|
"postcode_town",
|
|
55713
56113
|
"address",
|
|
55714
56114
|
"email",
|
|
55715
|
-
"phone"
|
|
56115
|
+
"phone",
|
|
56116
|
+
"kind"
|
|
55716
56117
|
]
|
|
55717
56118
|
}
|
|
55718
56119
|
}
|
|
@@ -65537,6 +65938,44 @@ var openapi_default = {
|
|
|
65537
65938
|
type: "object",
|
|
65538
65939
|
description: "Every key is optional; defaults read the Money Found bindings.",
|
|
65539
65940
|
properties: {
|
|
65941
|
+
risk: {
|
|
65942
|
+
type: "object",
|
|
65943
|
+
description: "The risk matrix for this workspace, over the platform defaults (duplicate, already paid and bank changed: high; above contract, above PO, not received and payment rule: medium; the rest low; impact high from 10,000, medium from 1,000).",
|
|
65944
|
+
properties: {
|
|
65945
|
+
likelihood: {
|
|
65946
|
+
type: "object",
|
|
65947
|
+
description: "Per hold reason: high, medium or low.",
|
|
65948
|
+
additionalProperties: {
|
|
65949
|
+
type: "string",
|
|
65950
|
+
enum: [
|
|
65951
|
+
"high",
|
|
65952
|
+
"medium",
|
|
65953
|
+
"low"
|
|
65954
|
+
]
|
|
65955
|
+
}
|
|
65956
|
+
},
|
|
65957
|
+
impact: {
|
|
65958
|
+
type: "object",
|
|
65959
|
+
description: "Both thresholds or neither.",
|
|
65960
|
+
required: [
|
|
65961
|
+
"high",
|
|
65962
|
+
"medium"
|
|
65963
|
+
],
|
|
65964
|
+
properties: {
|
|
65965
|
+
high: {
|
|
65966
|
+
type: "number",
|
|
65967
|
+
minimum: 0,
|
|
65968
|
+
description: "Amount at stake (ledger currency) from which the impact is high."
|
|
65969
|
+
},
|
|
65970
|
+
medium: {
|
|
65971
|
+
type: "number",
|
|
65972
|
+
minimum: 0,
|
|
65973
|
+
description: "From which it is medium; not above `high`."
|
|
65974
|
+
}
|
|
65975
|
+
}
|
|
65976
|
+
}
|
|
65977
|
+
}
|
|
65978
|
+
},
|
|
65540
65979
|
bill_sources: {
|
|
65541
65980
|
type: "array",
|
|
65542
65981
|
description: "Where bills come from; default is the `ap_invoices` role without purchase orders.",
|
|
@@ -65745,7 +66184,14 @@ var openapi_default = {
|
|
|
65745
66184
|
"above_contract",
|
|
65746
66185
|
"duplicate",
|
|
65747
66186
|
"missing_po",
|
|
65748
|
-
"vendor_unknown"
|
|
66187
|
+
"vendor_unknown",
|
|
66188
|
+
"sums_mismatch",
|
|
66189
|
+
"not_received",
|
|
66190
|
+
"above_po",
|
|
66191
|
+
"bank_changed",
|
|
66192
|
+
"already_paid",
|
|
66193
|
+
"date_check",
|
|
66194
|
+
"policy_rule"
|
|
65749
66195
|
]
|
|
65750
66196
|
},
|
|
65751
66197
|
label: {
|
|
@@ -65754,7 +66200,7 @@ var openapi_default = {
|
|
|
65754
66200
|
},
|
|
65755
66201
|
amount: {
|
|
65756
66202
|
type: "number",
|
|
65757
|
-
description: "Dollars at stake in the ledger currency."
|
|
66203
|
+
description: "Dollars at stake in the ledger currency; 0 for a failed payment rule (`policy_rule`), which holds the bill for review without putting its money at stake."
|
|
65758
66204
|
},
|
|
65759
66205
|
explanation: {
|
|
65760
66206
|
type: "string"
|
|
@@ -65787,9 +66233,136 @@ var openapi_default = {
|
|
|
65787
66233
|
}
|
|
65788
66234
|
}
|
|
65789
66235
|
},
|
|
66236
|
+
ApRisk: {
|
|
66237
|
+
type: "object",
|
|
66238
|
+
description: "A held bill's risk from the risk matrix: how likely its kind of hold loses money (likelihood) against the money at stake (impact). Likelihood high \xD7 impact high or medium, or medium \xD7 high, is high; high \xD7 low, medium \xD7 medium and low \xD7 high are medium; the rest low. A bill held for several reasons takes its highest cell. Set per workspace in the AP configuration's `risk`.",
|
|
66239
|
+
properties: {
|
|
66240
|
+
level: {
|
|
66241
|
+
type: "string",
|
|
66242
|
+
enum: [
|
|
66243
|
+
"high",
|
|
66244
|
+
"medium",
|
|
66245
|
+
"low"
|
|
66246
|
+
]
|
|
66247
|
+
},
|
|
66248
|
+
likelihood: {
|
|
66249
|
+
type: "string",
|
|
66250
|
+
enum: [
|
|
66251
|
+
"high",
|
|
66252
|
+
"medium",
|
|
66253
|
+
"low"
|
|
66254
|
+
]
|
|
66255
|
+
},
|
|
66256
|
+
impact: {
|
|
66257
|
+
type: "string",
|
|
66258
|
+
enum: [
|
|
66259
|
+
"high",
|
|
66260
|
+
"medium",
|
|
66261
|
+
"low"
|
|
66262
|
+
],
|
|
66263
|
+
nullable: true,
|
|
66264
|
+
description: "Null when the bill could not be converted to the ledger currency; the level is then the likelihood."
|
|
66265
|
+
},
|
|
66266
|
+
reason: {
|
|
66267
|
+
type: "string",
|
|
66268
|
+
enum: [
|
|
66269
|
+
"above_contract",
|
|
66270
|
+
"duplicate",
|
|
66271
|
+
"missing_po",
|
|
66272
|
+
"vendor_unknown",
|
|
66273
|
+
"sums_mismatch",
|
|
66274
|
+
"not_received",
|
|
66275
|
+
"above_po",
|
|
66276
|
+
"bank_changed",
|
|
66277
|
+
"already_paid",
|
|
66278
|
+
"date_check",
|
|
66279
|
+
"policy_rule"
|
|
66280
|
+
],
|
|
66281
|
+
description: "The kind of hold that decides the risk."
|
|
66282
|
+
},
|
|
66283
|
+
amount: {
|
|
66284
|
+
type: "number",
|
|
66285
|
+
nullable: true,
|
|
66286
|
+
description: "Dollars of that hold in the ledger currency, never more than the bill (the bill's open amount when the hold carries none); null when not converted."
|
|
66287
|
+
}
|
|
66288
|
+
}
|
|
66289
|
+
},
|
|
66290
|
+
ApRiskSettings: {
|
|
66291
|
+
type: "object",
|
|
66292
|
+
properties: {
|
|
66293
|
+
likelihood: {
|
|
66294
|
+
type: "object",
|
|
66295
|
+
description: "Per hold reason: high, medium or low.",
|
|
66296
|
+
additionalProperties: {
|
|
66297
|
+
type: "string",
|
|
66298
|
+
enum: [
|
|
66299
|
+
"high",
|
|
66300
|
+
"medium",
|
|
66301
|
+
"low"
|
|
66302
|
+
]
|
|
66303
|
+
}
|
|
66304
|
+
},
|
|
66305
|
+
impact: {
|
|
66306
|
+
type: "object",
|
|
66307
|
+
required: [
|
|
66308
|
+
"high",
|
|
66309
|
+
"medium"
|
|
66310
|
+
],
|
|
66311
|
+
properties: {
|
|
66312
|
+
high: {
|
|
66313
|
+
type: "number",
|
|
66314
|
+
minimum: 0
|
|
66315
|
+
},
|
|
66316
|
+
medium: {
|
|
66317
|
+
type: "number",
|
|
66318
|
+
minimum: 0
|
|
66319
|
+
}
|
|
66320
|
+
}
|
|
66321
|
+
}
|
|
66322
|
+
}
|
|
66323
|
+
},
|
|
66324
|
+
ApRiskMatrix: {
|
|
66325
|
+
type: "object",
|
|
66326
|
+
properties: {
|
|
66327
|
+
currency: {
|
|
66328
|
+
type: "string",
|
|
66329
|
+
description: "The ledger currency the impact amounts are in."
|
|
66330
|
+
},
|
|
66331
|
+
defaults: {
|
|
66332
|
+
$ref: "#/components/schemas/ApRiskSettings"
|
|
66333
|
+
},
|
|
66334
|
+
overrides: {
|
|
66335
|
+
allOf: [
|
|
66336
|
+
{
|
|
66337
|
+
$ref: "#/components/schemas/ApRiskSettings"
|
|
66338
|
+
}
|
|
66339
|
+
],
|
|
66340
|
+
nullable: true,
|
|
66341
|
+
description: "What this workspace changed; null when it uses the defaults."
|
|
66342
|
+
},
|
|
66343
|
+
settings: {
|
|
66344
|
+
$ref: "#/components/schemas/ApRiskSettings"
|
|
66345
|
+
},
|
|
66346
|
+
matrix: {
|
|
66347
|
+
type: "object",
|
|
66348
|
+
description: "Likelihood (key) to impact (key) to risk.",
|
|
66349
|
+
additionalProperties: {
|
|
66350
|
+
type: "object",
|
|
66351
|
+
additionalProperties: {
|
|
66352
|
+
type: "string",
|
|
66353
|
+
enum: [
|
|
66354
|
+
"high",
|
|
66355
|
+
"medium",
|
|
66356
|
+
"low"
|
|
66357
|
+
]
|
|
66358
|
+
}
|
|
66359
|
+
}
|
|
66360
|
+
}
|
|
66361
|
+
}
|
|
66362
|
+
},
|
|
65790
66363
|
ApNote: {
|
|
65791
66364
|
type: "object",
|
|
65792
|
-
description: "A finding on the bill that does not hold it (estimated exposure, a discount to take).",
|
|
66365
|
+
description: "A finding on the bill that does not hold it (estimated exposure, a discount to take). A payment rule the check could not settle has `lever_id: policy_rule`, the rule (code and text) as `label` and the reason as `explanation`.",
|
|
65793
66366
|
properties: {
|
|
65794
66367
|
label: {
|
|
65795
66368
|
type: "string"
|
|
@@ -65806,6 +66379,13 @@ var openapi_default = {
|
|
|
65806
66379
|
},
|
|
65807
66380
|
lever_id: {
|
|
65808
66381
|
type: "string"
|
|
66382
|
+
},
|
|
66383
|
+
evidence: {
|
|
66384
|
+
type: "array",
|
|
66385
|
+
description: "Where the finding comes from, when it has a document: for a payment rule, the rule file opened at the rule's words (`field: policy_rule`).",
|
|
66386
|
+
items: {
|
|
66387
|
+
$ref: "#/components/schemas/ApEvidence"
|
|
66388
|
+
}
|
|
65809
66389
|
}
|
|
65810
66390
|
}
|
|
65811
66391
|
},
|
|
@@ -65873,6 +66453,15 @@ var openapi_default = {
|
|
|
65873
66453
|
key: {
|
|
65874
66454
|
type: "string"
|
|
65875
66455
|
},
|
|
66456
|
+
risk: {
|
|
66457
|
+
allOf: [
|
|
66458
|
+
{
|
|
66459
|
+
$ref: "#/components/schemas/ApRisk"
|
|
66460
|
+
}
|
|
66461
|
+
],
|
|
66462
|
+
nullable: true,
|
|
66463
|
+
description: "A held bill's risk; null when it is not held."
|
|
66464
|
+
},
|
|
65876
66465
|
document_id: {
|
|
65877
66466
|
type: "string",
|
|
65878
66467
|
format: "uuid",
|
|
@@ -65970,8 +66559,11 @@ var openapi_default = {
|
|
|
65970
66559
|
type: "string",
|
|
65971
66560
|
enum: [
|
|
65972
66561
|
"ready",
|
|
66562
|
+
"needs_info",
|
|
66563
|
+
"evaluating",
|
|
65973
66564
|
"held"
|
|
65974
|
-
]
|
|
66565
|
+
],
|
|
66566
|
+
description: "held: a hold found a problem; evaluating: no hold yet, the contract price check is still running; needs_info: something a definitive call needs is missing; ready: none of these."
|
|
65975
66567
|
},
|
|
65976
66568
|
holds: {
|
|
65977
66569
|
type: "array",
|
|
@@ -66084,6 +66676,14 @@ var openapi_default = {
|
|
|
66084
66676
|
type: "number",
|
|
66085
66677
|
description: "Dollars the holds put at stake, never more than the bill."
|
|
66086
66678
|
},
|
|
66679
|
+
risk: {
|
|
66680
|
+
allOf: [
|
|
66681
|
+
{
|
|
66682
|
+
$ref: "#/components/schemas/ApRisk"
|
|
66683
|
+
}
|
|
66684
|
+
],
|
|
66685
|
+
nullable: true
|
|
66686
|
+
},
|
|
66087
66687
|
holds: {
|
|
66088
66688
|
type: "array",
|
|
66089
66689
|
items: {
|
|
@@ -66095,7 +66695,14 @@ var openapi_default = {
|
|
|
66095
66695
|
"above_contract",
|
|
66096
66696
|
"duplicate",
|
|
66097
66697
|
"missing_po",
|
|
66098
|
-
"vendor_unknown"
|
|
66698
|
+
"vendor_unknown",
|
|
66699
|
+
"sums_mismatch",
|
|
66700
|
+
"not_received",
|
|
66701
|
+
"above_po",
|
|
66702
|
+
"bank_changed",
|
|
66703
|
+
"already_paid",
|
|
66704
|
+
"date_check",
|
|
66705
|
+
"policy_rule"
|
|
66099
66706
|
]
|
|
66100
66707
|
},
|
|
66101
66708
|
label: {
|
|
@@ -66311,6 +66918,29 @@ var openapi_default = {
|
|
|
66311
66918
|
}
|
|
66312
66919
|
}
|
|
66313
66920
|
},
|
|
66921
|
+
needs_info: {
|
|
66922
|
+
type: "object",
|
|
66923
|
+
properties: {
|
|
66924
|
+
count: {
|
|
66925
|
+
type: "integer"
|
|
66926
|
+
},
|
|
66927
|
+
amount: {
|
|
66928
|
+
type: "number"
|
|
66929
|
+
}
|
|
66930
|
+
}
|
|
66931
|
+
},
|
|
66932
|
+
evaluating: {
|
|
66933
|
+
type: "object",
|
|
66934
|
+
description: "Bills the contract price check has not finished with (no hold yet).",
|
|
66935
|
+
properties: {
|
|
66936
|
+
count: {
|
|
66937
|
+
type: "integer"
|
|
66938
|
+
},
|
|
66939
|
+
amount: {
|
|
66940
|
+
type: "number"
|
|
66941
|
+
}
|
|
66942
|
+
}
|
|
66943
|
+
},
|
|
66314
66944
|
held: {
|
|
66315
66945
|
type: "object",
|
|
66316
66946
|
properties: {
|
|
@@ -66358,6 +66988,43 @@ var openapi_default = {
|
|
|
66358
66988
|
type: "number"
|
|
66359
66989
|
}
|
|
66360
66990
|
}
|
|
66991
|
+
},
|
|
66992
|
+
by_reason: {
|
|
66993
|
+
type: "object",
|
|
66994
|
+
description: "Held bills and dollars at stake per hold reason (every reason, zero when none).",
|
|
66995
|
+
additionalProperties: {
|
|
66996
|
+
type: "object",
|
|
66997
|
+
properties: {
|
|
66998
|
+
count: {
|
|
66999
|
+
type: "integer"
|
|
67000
|
+
},
|
|
67001
|
+
amount: {
|
|
67002
|
+
type: "number"
|
|
67003
|
+
}
|
|
67004
|
+
}
|
|
67005
|
+
}
|
|
67006
|
+
},
|
|
67007
|
+
with_stake: {
|
|
67008
|
+
type: "integer",
|
|
67009
|
+
description: "Held bills with dollars at stake (a bill held only by a failed payment rule has none)."
|
|
67010
|
+
},
|
|
67011
|
+
by_risk: {
|
|
67012
|
+
type: "object",
|
|
67013
|
+
description: "Held bills and their dollars (ledger currency) per risk: high, medium, low; a held bill without a risk counts medium. `unconverted` of them have no ledger amount.",
|
|
67014
|
+
additionalProperties: {
|
|
67015
|
+
type: "object",
|
|
67016
|
+
properties: {
|
|
67017
|
+
count: {
|
|
67018
|
+
type: "integer"
|
|
67019
|
+
},
|
|
67020
|
+
amount: {
|
|
67021
|
+
type: "number"
|
|
67022
|
+
},
|
|
67023
|
+
unconverted: {
|
|
67024
|
+
type: "integer"
|
|
67025
|
+
}
|
|
67026
|
+
}
|
|
67027
|
+
}
|
|
66361
67028
|
}
|
|
66362
67029
|
}
|
|
66363
67030
|
},
|