{
"portal_segments": [
{
"workflow_choices": [
{
"template": {
"invoice_template": {
"top_level_fields": [
{
"item_type": "FIELD_DISPLAY_TYPE_UNSPECIFIED",
"validation_type": "VALIDATION_UNSPECIFIED",
"key": "string",
"display_name": "string",
"value": "string",
"format": "string"
}
],
"invoices": [
{
"top_level_fields": [
{
"item_type": "FIELD_DISPLAY_TYPE_UNSPECIFIED",
"validation_type": "VALIDATION_UNSPECIFIED",
"key": "string",
"display_name": "string",
"value": "string",
"format": "string"
}
],
"items": [
{
"fields": [
{
"item_type": "FIELD_DISPLAY_TYPE_UNSPECIFIED",
"validation_type": "VALIDATION_UNSPECIFIED",
"key": "string",
"display_name": "string",
"value": "string",
"format": "string"
}
]
}
]
}
]
}
},
"pre_process_template": {
"payment_template": {
"fees": [
{
"flat": {
"currency_code": "string",
"units": 0,
"nanos": 0
}
}
]
}
},
"actions": [
{
"plugin_instance_id": "string",
"action_definition": "string",
"restructure_before_execution": {
"property1": "string",
"property2": "string"
},
"restructure_after_execution": {
"property1": "string",
"property2": "string"
},
"opts": {
"property1": "string",
"property2": "string"
}
}
],
"form_fields": [
{
"field_type": "VALUE_TYPE_UNKNOWN",
"validation_type": "VALIDATION_UNSPECIFIED",
"invoice_type": "FIELD_DISPLAY_TYPE_UNSPECIFIED",
"key": "string",
"display_name": "string",
"helper_text": "string",
"required": true,
"formats": [
"string"
]
}
],
"demo_mode": true,
"demo_fail_conditions": [
{
"bool_value": true
}
],
"demo_pass_conditions": [
{
"bool_value": true
}
],
"workflow_definition": "string",
"requires_session": true,
"opts": {
"property1": "string",
"property2": "string"
},
"demo_results": {
"property1": "string",
"property2": "string"
}
}
],
"header_text": "string",
"footer_text": "string"
}
]
}