UNPKG

occsn-checkout

Version:

Occasion checkout experience boilerplate component built using React-Redux and Mitragyna

376 lines (375 loc) 9.2 kB
{ "data": [ { "id": "tqznugun", "type": "questions", "attributes": { "category": "info", "created_at": "2018-03-05T12:46:09.219-06:00", "display_as_title": null, "form_control": "text_input", "max": null, "min": null, "operation": null, "position": 1, "price": null, "price_calculating": false, "percentage": null, "required": true, "title": "text input", "updated_at": "2018-03-05T12:48:30.715-06:00", "waiver_text": null }, "relationships": { "options": { "data": [] } } }, { "id": "dyex49gd", "type": "questions", "attributes": { "category": "info", "created_at": "2018-03-05T12:46:19.350-06:00", "display_as_title": null, "form_control": "text_area", "max": null, "min": null, "operation": null, "position": 2, "price": null, "price_calculating": false, "percentage": null, "required": false, "title": "text area", "updated_at": "2018-03-05T12:48:30.812-06:00", "waiver_text": null }, "relationships": { "options": { "data": [] } } }, { "id": "zeszjqgw", "type": "questions", "attributes": { "category": "price", "created_at": "2018-03-05T12:46:40.745-06:00", "display_as_title": null, "form_control": "drop_down", "max": null, "min": null, "operation": "add", "position": 3, "price": null, "price_calculating": true, "percentage": null, "required": false, "title": "dropdown", "updated_at": "2018-03-05T12:48:30.896-06:00", "waiver_text": null }, "relationships": { "options": { "data": [ { "id": "vmc62dip", "type": "options" }, { "id": "re-jhdmo", "type": "options" } ] } } }, { "id": "6qwuynty", "type": "questions", "attributes": { "category": "price", "created_at": "2018-03-05T12:46:56.293-06:00", "display_as_title": null, "form_control": "checkbox", "max": null, "min": null, "operation": "add", "position": 4, "price": 10, "price_calculating": true, "percentage": null, "required": null, "title": "checkbox", "updated_at": "2018-03-05T12:48:30.996-06:00", "waiver_text": null }, "relationships": { "options": { "data": [ { "id": "mc9n0cqt", "type": "options" }, { "id": "4kcpxein", "type": "options" } ] } } }, { "id": "0f98qesw", "type": "questions", "attributes": { "category": "price", "created_at": "2018-03-05T12:47:14.472-06:00", "display_as_title": null, "form_control": "option_list", "max": null, "min": null, "operation": "add", "position": 5, "price": null, "price_calculating": true, "percentage": null, "required": true, "title": "option list", "updated_at": "2018-03-05T12:48:31.077-06:00", "waiver_text": null }, "relationships": { "options": { "data": [ { "id": "oowk0zo5", "type": "options" }, { "id": "qi1vkoov", "type": "options" } ] } } }, { "id": "mdvl0emw", "type": "questions", "attributes": { "category": "static", "created_at": "2018-03-05T12:48:13.057-06:00", "display_as_title": null, "form_control": "separator", "max": null, "min": null, "operation": null, "position": 6, "price": null, "price_calculating": false, "percentage": null, "required": null, "title": null, "updated_at": "2018-03-05T12:48:31.159-06:00", "waiver_text": null }, "relationships": { "options": { "data": [] } } }, { "id": "e8vmjlzm", "type": "questions", "attributes": { "category": "static", "created_at": "2018-03-05T12:48:22.723-06:00", "display_as_title": true, "form_control": "text_output", "max": null, "min": null, "operation": null, "position": 7, "price": null, "price_calculating": false, "percentage": null, "required": null, "title": "My heading", "updated_at": "2018-03-05T12:48:33.766-06:00", "waiver_text": null }, "relationships": { "options": { "data": [] } } }, { "id": "6ile16oi", "type": "questions", "attributes": { "category": "price", "created_at": "2018-03-05T12:47:47.746-06:00", "display_as_title": null, "form_control": "spin_button", "max": 8, "min": 1, "operation": "add", "position": 8, "price": 6, "price_calculating": true, "percentage": null, "required": true, "title": "spin", "updated_at": "2018-03-05T12:48:33.790-06:00", "waiver_text": null }, "relationships": { "options": { "data": [] } } }, { "id": "_v1fuedb", "type": "questions", "attributes": { "category": "info", "created_at": "2018-03-05T12:48:05.797-06:00", "display_as_title": null, "form_control": "waiver", "max": null, "min": null, "operation": null, "position": 9, "price": null, "price_calculating": false, "percentage": null, "required": null, "title": "waiver", "updated_at": "2018-03-05T12:48:33.790-06:00", "waiver_text": "Waiver text!!!" }, "relationships": { "options": { "data": [ { "id": "rlxwjh5a", "type": "options" }, { "id": "wwkvdolu", "type": "options" } ] } } } ], "included": [ { "id": "vmc62dip", "type": "options", "attributes": { "title": "option a", "position": 1, "default": false, "created_at": "2018-03-05T12:46:40.844-06:00", "updated_at": "2018-03-05T12:46:40.844-06:00", "price": 5 } }, { "id": "re-jhdmo", "type": "options", "attributes": { "title": "option b", "position": 2, "default": false, "created_at": "2018-03-05T12:46:40.901-06:00", "updated_at": "2018-03-05T12:46:40.901-06:00", "price": 10 } }, { "id": "mc9n0cqt", "type": "options", "attributes": { "title": "YES", "position": 1, "default": null, "created_at": "2018-03-05T12:46:56.337-06:00", "updated_at": "2018-03-05T12:46:56.337-06:00", "price": null } }, { "id": "4kcpxein", "type": "options", "attributes": { "title": "NO", "position": 2, "default": null, "created_at": "2018-03-05T12:46:56.355-06:00", "updated_at": "2018-03-05T12:46:56.355-06:00", "price": null } }, { "id": "oowk0zo5", "type": "options", "attributes": { "title": "option a", "position": 1, "default": false, "created_at": "2018-03-05T12:47:14.518-06:00", "updated_at": "2018-03-05T12:47:14.518-06:00", "price": 3 } }, { "id": "qi1vkoov", "type": "options", "attributes": { "title": "option b", "position": 2, "default": false, "created_at": "2018-03-05T12:47:14.576-06:00", "updated_at": "2018-03-05T12:47:14.576-06:00", "price": 6 } }, { "id": "rlxwjh5a", "type": "options", "attributes": { "title": "YES", "position": 1, "default": null, "created_at": "2018-03-05T12:48:05.843-06:00", "updated_at": "2018-03-05T12:48:05.843-06:00", "price": null } }, { "id": "wwkvdolu", "type": "options", "attributes": { "title": "NO", "position": 2, "default": null, "created_at": "2018-03-05T12:48:05.858-06:00", "updated_at": "2018-03-05T12:48:05.858-06:00", "price": null } } ], "links": { "self": "http://noisacco.lvh.me:3000/api/v1/products/65x2v7c4lgswatmbajktqg/questions?include=options" } }