Introduction
This is a template to gather high-level information about a person (contact).
Gather contact information
This is a template to gather high-level information about a person (contact).
Name: "Jane Doe"
Title: "CIO"
Email: "jane@example.com"
Phone: "123-456-789"
Time Zone: America_New_York
Communication preference: EMAIL
Name: "Jane Doe"
Title: "CIO"
Email: "jane@example.com"
Phone: "123-456-789"
Time Zone: America_New_York
Communication preference: EMAIL
Name: {{name}}
Title: {{title}}
Email: {{email}}
Phone: {{phone}}
Time Zone: {{timezone}}
Communication preference: {{communicationChannel}}
{
"$class": "org.accordproject.contactinformation@0.1.0.TemplateModel",
"name": "Jane Doe",
"title": "CIO",
"email": "jane@example.com",
"phone": "123-456-789",
"timezone": "America_New_York",
"communicationChannel": "EMAIL",
"clauseId": "889c0110-e081-4ceb-854e-0c162a77925d",
"$identifier": "889c0110-e081-4ceb-854e-0c162a77925d"
}
namespace org.accordproject.contactinformation@0.1.0
import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
enum TimeZone {
o America_New_York
o America_Chicago
o America_Denver
o America_Los_Angeles
o America_Anchorage
o Pacific_Honolulu
o Europe_London
o Europe_Paris
o Europe_Berlin
o Asia_Tokyo
o Asia_Shanghai
o Asia_Kolkata
o Australia_Sydney
o UTC
}
enum CommunicationChannel {
o EMAIL
o PHONE
}
@template
asset TemplateModel extends Clause {
o String name
o String title
o String email
o String phone
o TimeZone timezone
o CommunicationChannel communicationChannel
}
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.