Skip to content

Instantly share code, notes, and snippets.

@jaychoo
Created March 24, 2023 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaychoo/4ab9103d337af7fb6d4b76c326475e0c to your computer and use it in GitHub Desktop.
Save jaychoo/4ab9103d337af7fb6d4b76c326475e0c to your computer and use it in GitHub Desktop.
{
"billingAddress": [
{
"id": "field_4",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_5",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_6",
"name": "company",
"custom": false,
"label": "Company Name",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_7",
"name": "phone",
"custom": false,
"label": "Phone Number",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_8",
"name": "address1",
"custom": false,
"label": "Address Line 1",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_9",
"name": "address2",
"custom": false,
"label": "Address Line 2",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_10",
"name": "city",
"custom": false,
"label": "Suburb/City",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_11",
"name": "countryCode",
"custom": false,
"label": "Country",
"required": true,
"default": "None",
"maxLength": "None",
"type": "array",
"fieldType": "dropdown",
"options": {
"helperLabel": "Choose a Country",
"items": []
}
},
{
"id": "field_12",
"name": "stateOrProvince",
"custom": false,
"label": "State/Province",
"required": true,
"default": "None",
"maxLength": "None"
},
{
"id": "field_13",
"name": "postalCode",
"custom": false,
"label": "Zip/Postcode",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
}
],
"shippingAddress": [
{
"id": "field_14",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_15",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_16",
"name": "company",
"custom": false,
"label": "Company Name",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_17",
"name": "phone",
"custom": false,
"label": "Phone Number",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_18",
"name": "address1",
"custom": false,
"label": "Address Line 1",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_19",
"name": "address2",
"custom": false,
"label": "Address Line 2",
"required": false,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_20",
"name": "city",
"custom": false,
"label": "Suburb/City",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_21",
"name": "countryCode",
"custom": false,
"label": "Country",
"required": true,
"default": "None",
"maxLength": "None",
"type": "array",
"fieldType": "dropdown",
"options": {
"helperLabel": "Choose a Country",
"items": []
}
},
{
"id": "field_22",
"name": "stateOrProvince",
"custom": false,
"label": "State/Province",
"required": true,
"default": "None",
"maxLength": "None"
},
{
"id": "field_23",
"name": "postalCode",
"custom": false,
"label": "Zip/Postcode",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
}
],
"customerAccount": [
{
"id": "field_14",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_15",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_1",
"name": "email",
"custom": false,
"label": "Email Address",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "text"
},
{
"id": "field_2",
"name": "password",
"custom": false,
"label": "Password",
"required": true,
"default": "",
"maxLength": "None",
"type": "string",
"fieldType": "password",
"secret": true,
"requirements": {
"alpha": "[A-Za-z]",
"description": "Passwords must be at least 7 characters and contain both alphabetic and numeric characters.",
"numeric": "[0-9]",
"minlength": 7
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment