Skip to content

Commit

Permalink
Added support for setting signing order for Create Participant Action…
Browse files Browse the repository at this point in the history
…. 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)
  • Loading branch information
DmitryKleshchov authored Nov 7, 2024
1 parent b99a532 commit efac621
Show file tree
Hide file tree
Showing 2 changed files with 283 additions and 119 deletions.
145 changes: 74 additions & 71 deletions certified-connectors/Oneflow/apiDefinition.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@
],
"default": "Company"
},
{
"name": "signing_order",
"in": "header",
"type": "number",
"description": "Sign order of participant",
"x-ms-visibility": "advanced",
"x-ms-summary": "Signing order"
},
{
"name": "party",
"in": "body",
Expand Down Expand Up @@ -524,7 +532,48 @@
}
}
},
"/contracts/{contract_id}/": {
"/contracts/{contract_id}/": {
"get": {
"summary": "Get contract details",
"description": "Retrieve the details of a contract by its ID.",
"operationId": "GetContract",
"parameters": [
{
"name": "contract_id",
"in": "path",
"type": "string",
"required": true,
"x-ms-summary": "Contract Id",
"description": "Contract Id"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Contract"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"type": "object"
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object"
}
}
}
},
"delete": {
"summary": "Delete a contract",
"description": "Delete a specific contract by its ID.",
Expand Down Expand Up @@ -576,51 +625,10 @@
"401": {
"description": "Unauthorized",
"schema": {
"type": "object"
"type": "object"
}
}
}
},
"get": {
"summary": "Get contract details",
"description": "Retrieve the details of a contract by its ID.",
"operationId": "GetContract",
"parameters": [
{
"name": "contract_id",
"in": "path",
"type": "string",
"required": true,
"x-ms-summary": "Contract Id",
"description": "Contract Id"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/Contract"
}
},
"400": {
"description": "Bad Request",
"schema": {
"type": "object"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"type": "object"
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "object"
}
}
}
}
},
"/contracts/{contract_id}": {
Expand Down Expand Up @@ -1628,9 +1636,7 @@
"workspace_id": {
"type": "integer",
"format": "int32",
"description": "workspace_id",
"x-ms-summary": "Workspace Id",
"x-ms-visibility": "internal"
"x-ms-summary": "Workspace Id"
}
},
"description": "Contract _private attributes"
Expand All @@ -1645,9 +1651,7 @@
"template_id": {
"type": "integer",
"format": "int32",
"description": "template_id",
"x-ms-summary": "Template Id",
"x-ms-visibility": "internal"
"x-ms-summary": "Template Id"
},
"template_type_id": {
"type": "integer",
Expand Down Expand Up @@ -1761,61 +1765,62 @@
"description": "Contract available_options attributes"
},
"data_fields": {
"x-ms-visibility": "internal",
"x-ms-summary": "Data Fields",
"x-ms-summary": "Data field",
"type": "array",
"items": {
"type": "object",
"properties": {
"_private_ownerside": {
"x-ms-summary": "Private Ownerside (Data Fields)",
"x-ms-summary": "private ownerside",
"type": "object",
"properties": {
"created_time": {
"type": "string",
"description": "created_time",
"x-ms-summary": "Created Time (Data Field)"
"description": "Data field created_time",
"x-ms-summary": "created time"
},
"custom_id": {
"type": "string",
"description": "custom_id",
"x-ms-summary": "Custom Id (Data Field)"
"description": "Data field custom_id",
"x-ms-summary": "custom id"
},
"updated_time": {
"type": "string",
"description": "updated_time",
"x-ms-summary": "Updated Time (Data Field)"
"description": "Data field updated_time",
"x-ms-summary": "Updated time"
}
},
"description": "_private_ownerside"
},
"description": {
"type": "string",
"description": "description",
"x-ms-summary": "Data Field Description"
"description": "Data field description",
"x-ms-summary": "description"
},
"id": {
"type": "integer",
"format": "int32",
"description": "id",
"x-ms-summary": "Data Field Id"
"description": "Data field id",
"x-ms-summary": "id"
},
"name": {
"type": "string",
"description": "name",
"x-ms-summary": "Data Field Name"
"description": "Data field name",
"x-ms-summary": "name"
},
"placeholder": {
"type": "string",
"description": "placeholder"
"description": "Data field placeholder",
"x-ms-summary": "placeholder"
},
"value": {
"type": "string",
"description": "value"
"description": "Data field value",
"x-ms-summary": "value"
}
}
},
"description": "data_fields"
"description": "Data fields collection"
},
"id": {
"type": "integer",
Expand Down Expand Up @@ -2416,8 +2421,7 @@
"type": "object",
"properties": {
"amount": {
"type": "integer",
"format": "int32",
"type": "number",
"x-ms-summary": "amount"
},
"type": {
Expand Down Expand Up @@ -2524,8 +2528,7 @@
"type": "object",
"properties": {
"amount": {
"type": "integer",
"format": "int32",
"type": "number",
"description": "Any positive number or 1/0 if the type is multiple_choice/single_choice",
"x-ms-summary": "Amount"
},
Expand Down
Loading

0 comments on commit efac621

Please sign in to comment.