Introduction
This is a template to gather high-level information about a company.
Gather company information
This is a template to gather high-level information about a company.
Name: "Example Corp."
Industry: "Healthcare"
Website: "https://example.org"
Street: "1 Main Street"
City: "Portland"
State: "ME"
Zip Code: "12345"
Country: "USA"
Number of Employees: 250
Name: "Example Corp."
Industry: "Healthcare"
Website: "https://example.org"
### Address
Street: "1 Main Street"\
City: "Portland"\
State: "ME"\
Zip Code: "12345"\
Country: "USA"
Number of Employees: 250
Name: {{name}}
Industry: {{industry}}
Website: {{website}}
### Address
{{#with address}}Street: {{streetAddress}}\
City: {{addressLocality}}\
State: {{addressRegion}}\
Zip Code: {{postalCode}}\
Country: {{addressCountry}}{{/with}}
Number of Employees: {{numberOfEmployees}}
{
"$class": "org.accordproject.companyinformation@0.1.0.TemplateModel",
"name": "Example Corp.",
"industry": "Healthcare",
"website": "https://example.org",
"address": {
"$class": "org.accordproject.address.PostalAddress",
"streetAddress": "1 Main Street",
"postalCode": "12345",
"addressRegion": "ME",
"addressLocality": "Portland",
"addressCountry": "USA"
},
"numberOfEmployees": 250,
"clauseId": "3eb531fc-ba68-48a2-9503-c6d712abb041",
"$identifier": "3eb531fc-ba68-48a2-9503-c6d712abb041"
}
namespace org.accordproject.companyinformation@0.1.0
import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
concept PostalAddress {
o String streetAddress optional
o String postalCode optional
o String addressRegion optional
o String addressLocality optional
o String addressCountry optional
}
@template
asset TemplateModel extends Clause {
o String name
o String industry
o String website
o PostalAddress address
o Integer numberOfEmployees
}
Find the full logic for this template on on GitHub.
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.State | |
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.Request | |
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.Response | |
| Type | Sample JSON |
|---|
Please refer to the Accord Project documentation for how to use a template or integrate it within your application.
View the Latest code for this template on GitHub.