Skip to content

Instantly share code, notes, and snippets.

@sibblegp
Created May 20, 2019 20:51
Show Gist options
  • Save sibblegp/bb1a0ed0987be2a8d306ba12f8f98f36 to your computer and use it in GitHub Desktop.
Save sibblegp/bb1a0ed0987be2a8d306ba12f8f98f36 to your computer and use it in GitHub Desktop.
{
"apiVersion": "3.0.1",
"context": "testing",
"id": 1290,
"data": {
"kind": "switch",
"item": {
"index": 1,
"type": "deposit",
"targetId": 678313,
"name": "Acme Inc.",
"accountholderIndex": 0,
"values": {
"accounts": [
{
"index": 0
}
],
"fields": {}
},
"ux": {
"accounts": {
"limit": 1,
"maxChecking": 1,
"maxSavings": 1,
"choices": [
{
"index": "0",
"label": "Checking *3904"
},
{
"index": "1",
"label": "Savings *3289"
}
],
"fields": []
},
"fields": [
{
"key": "Custom_Net or Amount (in dollars)",
"label": "Net or Amount (in dollars)",
"type": "textbox",
"required": false
},
{
"key": "Custom_or Percentage of Pay (1 - 100)",
"label": "Percentage of Pay (1 - 100)",
"type": "textbox",
"required": false
},
{
"key": "Custom_Depositor's Full Mailing Address",
"label": "Depositor's Full Mailing Address",
"type": "textbox",
"required": true
},
{
"key": "Custom_Employee ID",
"label": "Employee ID",
"type": "textbox",
"required": false
},
{
"key": "Custom_Last 4 of SSN",
"label": "Last 4 of SSN",
"type": "textbox",
"required": true
}
]
},
"metadata": {
"employee_id": "jsmith",
"branch": "21"
},
"state": {
"status": "Incomplete",
"validation": {
"accounts": [],
"fields": [
"Custom_Last 4 of SSN is required",
"Custom_Depositor's Full Mailing Address is required"
],
"overall": []
},
"actions": [
"HTTP-PUT",
"Cancel"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment