Skip to content

Commit efac621

Browse files
Added support for setting signing order for Create Participant Action. Exposed Template Id, Workspace Id & Data Fields for contract models. Product quantity changed from int to decimal to support new functionality of fractured quantity. (#3687)
1 parent b99a532 commit efac621

File tree

2 files changed

+283
-119
lines changed

2 files changed

+283
-119
lines changed

certified-connectors/Oneflow/apiDefinition.swagger.json

+74-71
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@
195195
],
196196
"default": "Company"
197197
},
198+
{
199+
"name": "signing_order",
200+
"in": "header",
201+
"type": "number",
202+
"description": "Sign order of participant",
203+
"x-ms-visibility": "advanced",
204+
"x-ms-summary": "Signing order"
205+
},
198206
{
199207
"name": "party",
200208
"in": "body",
@@ -524,7 +532,48 @@
524532
}
525533
}
526534
},
527-
"/contracts/{contract_id}/": {
535+
"/contracts/{contract_id}/": {
536+
"get": {
537+
"summary": "Get contract details",
538+
"description": "Retrieve the details of a contract by its ID.",
539+
"operationId": "GetContract",
540+
"parameters": [
541+
{
542+
"name": "contract_id",
543+
"in": "path",
544+
"type": "string",
545+
"required": true,
546+
"x-ms-summary": "Contract Id",
547+
"description": "Contract Id"
548+
}
549+
],
550+
"responses": {
551+
"200": {
552+
"description": "Success",
553+
"schema": {
554+
"$ref": "#/definitions/Contract"
555+
}
556+
},
557+
"400": {
558+
"description": "Bad Request",
559+
"schema": {
560+
"type": "object"
561+
}
562+
},
563+
"401": {
564+
"description": "Unauthorized",
565+
"schema": {
566+
"type": "object"
567+
}
568+
},
569+
"404": {
570+
"description": "Not Found",
571+
"schema": {
572+
"type": "object"
573+
}
574+
}
575+
}
576+
},
528577
"delete": {
529578
"summary": "Delete a contract",
530579
"description": "Delete a specific contract by its ID.",
@@ -576,51 +625,10 @@
576625
"401": {
577626
"description": "Unauthorized",
578627
"schema": {
579-
"type": "object"
628+
"type": "object"
580629
}
581630
}
582631
}
583-
},
584-
"get": {
585-
"summary": "Get contract details",
586-
"description": "Retrieve the details of a contract by its ID.",
587-
"operationId": "GetContract",
588-
"parameters": [
589-
{
590-
"name": "contract_id",
591-
"in": "path",
592-
"type": "string",
593-
"required": true,
594-
"x-ms-summary": "Contract Id",
595-
"description": "Contract Id"
596-
}
597-
],
598-
"responses": {
599-
"200": {
600-
"description": "Success",
601-
"schema": {
602-
"$ref": "#/definitions/Contract"
603-
}
604-
},
605-
"400": {
606-
"description": "Bad Request",
607-
"schema": {
608-
"type": "object"
609-
}
610-
},
611-
"401": {
612-
"description": "Unauthorized",
613-
"schema": {
614-
"type": "object"
615-
}
616-
},
617-
"404": {
618-
"description": "Not Found",
619-
"schema": {
620-
"type": "object"
621-
}
622-
}
623-
}
624632
}
625633
},
626634
"/contracts/{contract_id}": {
@@ -1628,9 +1636,7 @@
16281636
"workspace_id": {
16291637
"type": "integer",
16301638
"format": "int32",
1631-
"description": "workspace_id",
1632-
"x-ms-summary": "Workspace Id",
1633-
"x-ms-visibility": "internal"
1639+
"x-ms-summary": "Workspace Id"
16341640
}
16351641
},
16361642
"description": "Contract _private attributes"
@@ -1645,9 +1651,7 @@
16451651
"template_id": {
16461652
"type": "integer",
16471653
"format": "int32",
1648-
"description": "template_id",
1649-
"x-ms-summary": "Template Id",
1650-
"x-ms-visibility": "internal"
1654+
"x-ms-summary": "Template Id"
16511655
},
16521656
"template_type_id": {
16531657
"type": "integer",
@@ -1761,61 +1765,62 @@
17611765
"description": "Contract available_options attributes"
17621766
},
17631767
"data_fields": {
1764-
"x-ms-visibility": "internal",
1765-
"x-ms-summary": "Data Fields",
1768+
"x-ms-summary": "Data field",
17661769
"type": "array",
17671770
"items": {
17681771
"type": "object",
17691772
"properties": {
17701773
"_private_ownerside": {
1771-
"x-ms-summary": "Private Ownerside (Data Fields)",
1774+
"x-ms-summary": "private ownerside",
17721775
"type": "object",
17731776
"properties": {
17741777
"created_time": {
17751778
"type": "string",
1776-
"description": "created_time",
1777-
"x-ms-summary": "Created Time (Data Field)"
1779+
"description": "Data field created_time",
1780+
"x-ms-summary": "created time"
17781781
},
17791782
"custom_id": {
17801783
"type": "string",
1781-
"description": "custom_id",
1782-
"x-ms-summary": "Custom Id (Data Field)"
1784+
"description": "Data field custom_id",
1785+
"x-ms-summary": "custom id"
17831786
},
17841787
"updated_time": {
17851788
"type": "string",
1786-
"description": "updated_time",
1787-
"x-ms-summary": "Updated Time (Data Field)"
1789+
"description": "Data field updated_time",
1790+
"x-ms-summary": "Updated time"
17881791
}
17891792
},
17901793
"description": "_private_ownerside"
17911794
},
17921795
"description": {
17931796
"type": "string",
1794-
"description": "description",
1795-
"x-ms-summary": "Data Field Description"
1797+
"description": "Data field description",
1798+
"x-ms-summary": "description"
17961799
},
17971800
"id": {
17981801
"type": "integer",
17991802
"format": "int32",
1800-
"description": "id",
1801-
"x-ms-summary": "Data Field Id"
1803+
"description": "Data field id",
1804+
"x-ms-summary": "id"
18021805
},
18031806
"name": {
18041807
"type": "string",
1805-
"description": "name",
1806-
"x-ms-summary": "Data Field Name"
1808+
"description": "Data field name",
1809+
"x-ms-summary": "name"
18071810
},
18081811
"placeholder": {
18091812
"type": "string",
1810-
"description": "placeholder"
1813+
"description": "Data field placeholder",
1814+
"x-ms-summary": "placeholder"
18111815
},
18121816
"value": {
18131817
"type": "string",
1814-
"description": "value"
1818+
"description": "Data field value",
1819+
"x-ms-summary": "value"
18151820
}
18161821
}
18171822
},
1818-
"description": "data_fields"
1823+
"description": "Data fields collection"
18191824
},
18201825
"id": {
18211826
"type": "integer",
@@ -2416,8 +2421,7 @@
24162421
"type": "object",
24172422
"properties": {
24182423
"amount": {
2419-
"type": "integer",
2420-
"format": "int32",
2424+
"type": "number",
24212425
"x-ms-summary": "amount"
24222426
},
24232427
"type": {
@@ -2524,8 +2528,7 @@
25242528
"type": "object",
25252529
"properties": {
25262530
"amount": {
2527-
"type": "integer",
2528-
"format": "int32",
2531+
"type": "number",
25292532
"description": "Any positive number or 1/0 if the type is multiple_choice/single_choice",
25302533
"x-ms-summary": "Amount"
25312534
},

0 commit comments

Comments
 (0)