Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Improve menu_item And Platform API Docs (#11455)
Matthew Kennedya8ffb7598efd
diff --git a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rbindex 359c1be284..33b9afd625 100644--- a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb+++ b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb@@ -4,20 +4,15 @@ module Spreemodule Platformclass MenuItemsController < ResourceControllerdef reposition- spree_authorize! :update, @moved_item if spree_current_user.present?+ spree_authorize! :update, resource if spree_current_user.present?- @moved_item = scope.find(params[:id])- @new_parent = scope.find(params[:new_parent_id])- new_index = params[:new_position_idx].to_i+ @new_parent = scope.find(permitted_resource_params[:new_parent_id])+ new_index = permitted_resource_params[:new_position_idx].to_i- if @moved_item && @new_parent && new_index- @moved_item.move_to_child_with_index(@new_parent, new_index)+ if resource.move_to_child_with_index(@new_parent, new_index)+ render_serialized_payload { serialize_resource(resource) }else- head :bad_request- end-- if @moved_item.save- render_serialized_payload { serialize_resource(@moved_item) }+ render_error_payload(resource.errors)endend@@ -26,6 +21,10 @@ module Spreedef model_classSpree::MenuItemend++ def spree_permitted_attributes+ super + [:new_parent_id, :new_position_idx]+ endendendenddiff --git a/api/app/controllers/spree/api/v2/platform/menus_controller.rb b/api/app/controllers/spree/api/v2/platform/menus_controller.rbindex ebd8af369d..e568dd4fab 100644--- a/api/app/controllers/spree/api/v2/platform/menus_controller.rb+++ b/api/app/controllers/spree/api/v2/platform/menus_controller.rb@@ -12,10 +12,6 @@ module Spreedef scope_includes[:menu_items]end-- def scope- current_store.menus- endendendenddiff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yamlindex e58ad7f40c..9d6ec7ac08 100644--- a/api/docs/v2/platform/index.yaml+++ b/api/docs/v2/platform/index.yaml@@ -70,8 +70,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-01T16:15:03.922Z'- updated_at: '2021-11-01T16:15:03.922Z'+ created_at: '2021-11-01T22:35:35.844Z'+ updated_at: '2021-11-01T22:35:35.844Z'deleted_at:label:relationships:@@ -98,8 +98,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-01T16:15:03.926Z'- updated_at: '2021-11-01T16:15:03.926Z'+ created_at: '2021-11-01T22:35:35.847Z'+ updated_at: '2021-11-01T22:35:35.847Z'deleted_at:label:relationships:@@ -173,8 +173,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-01T16:15:04.134Z'- updated_at: '2021-11-01T16:15:04.134Z'+ created_at: '2021-11-01T22:35:36.055Z'+ updated_at: '2021-11-01T22:35:36.055Z'deleted_at:label:relationships:@@ -268,8 +268,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-01T16:15:04.177Z'- updated_at: '2021-11-01T16:15:04.177Z'+ created_at: '2021-11-01T22:35:36.093Z'+ updated_at: '2021-11-01T22:35:36.093Z'deleted_at:label:relationships:@@ -348,8 +348,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-11-01T16:15:04.235Z'- updated_at: '2021-11-01T16:15:04.243Z'+ created_at: '2021-11-01T22:35:36.157Z'+ updated_at: '2021-11-01T22:35:36.165Z'deleted_at:label:relationships:@@ -493,8 +493,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-01T16:15:04.480Z'- updated_at: '2021-11-01T16:15:04.480Z'+ created_at: '2021-11-01T22:35:36.396Z'+ updated_at: '2021-11-01T22:35:36.396Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -520,8 +520,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-01T16:15:04.502Z'- updated_at: '2021-11-01T16:15:04.502Z'+ created_at: '2021-11-01T22:35:36.419Z'+ updated_at: '2021-11-01T22:35:36.419Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -594,8 +594,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-01T16:15:04.838Z'- updated_at: '2021-11-01T16:15:04.838Z'+ created_at: '2021-11-01T22:35:36.761Z'+ updated_at: '2021-11-01T22:35:36.761Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -677,8 +677,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-11-01T16:15:04.951Z'- updated_at: '2021-11-01T16:15:04.956Z'+ created_at: '2021-11-01T22:35:36.875Z'+ updated_at: '2021-11-01T22:35:36.880Z'state: openincluded: falsedisplay_amount: "$1.00"@@ -756,8 +756,8 @@ paths:label: New labelmandatory:eligible: true- created_at: '2021-11-01T16:15:05.142Z'- updated_at: '2021-11-01T16:15:05.155Z'+ created_at: '2021-11-01T22:35:37.076Z'+ updated_at: '2021-11-01T22:35:37.089Z'state: openincluded: falsedisplay_amount: "$15.00"@@ -897,8 +897,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-01T16:15:05.678Z'- updated_at: '2021-11-01T16:15:05.678Z'+ created_at: '2021-11-01T22:35:37.616Z'+ updated_at: '2021-11-01T22:35:37.616Z'relationships:product:data:@@ -912,8 +912,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-01T16:15:05.758Z'- updated_at: '2021-11-01T16:15:05.758Z'+ created_at: '2021-11-01T22:35:37.695Z'+ updated_at: '2021-11-01T22:35:37.695Z'relationships:product:data:@@ -974,8 +974,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-01T16:15:06.218Z'- updated_at: '2021-11-01T16:15:06.218Z'+ created_at: '2021-11-01T22:35:38.155Z'+ updated_at: '2021-11-01T22:35:38.155Z'relationships:product:data:@@ -1042,8 +1042,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-01T16:15:06.387Z'- updated_at: '2021-11-01T16:15:06.387Z'+ created_at: '2021-11-01T22:35:38.328Z'+ updated_at: '2021-11-01T22:35:38.328Z'relationships:product:data:@@ -1109,8 +1109,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-11-01T16:15:06.675Z'- updated_at: '2021-11-01T16:15:06.675Z'+ created_at: '2021-11-01T22:35:38.636Z'+ updated_at: '2021-11-01T22:35:38.636Z'relationships:product:data:@@ -1232,8 +1232,8 @@ paths:type: classificationattributes:position: 2- created_at: '2021-11-01T16:15:07.436Z'- updated_at: '2021-11-01T16:15:07.460Z'+ created_at: '2021-11-01T22:35:39.423Z'+ updated_at: '2021-11-01T22:35:39.448Z'relationships:product:data:@@ -1332,35 +1332,35 @@ paths:- id: '1'type: cms_pageattributes:- title: Sequi ipsa ipsum perferendis suscipit.+ title: Deserunt eum voluptate facilis minus eveniet facere.meta_title:content:meta_description:visible: true- slug: sequi-ipsa-ipsum-perferendis-suscipit+ slug: deserunt-eum-voluptate-facilis-minus-eveniet-faceretype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-01T16:15:07.808Z'- updated_at: '2021-11-01T16:15:07.808Z'+ created_at: '2021-11-01T22:35:39.804Z'+ updated_at: '2021-11-01T22:35:39.804Z'relationships:cms_sections:data: []- id: '2'type: cms_pageattributes:- title: Ab labore corrupti at laboriosam officiis laborum provident- veritatis.+ title: Beatae dolor illum ea necessitatibus quaerat neque+ excepturi.meta_title:content:meta_description:visible: true- slug: ab-labore-corrupti-at-laboriosam-officiis-laborum-provident-veritatis+ slug: beatae-dolor-illum-ea-necessitatibus-quaerat-neque-excepturitype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-01T16:15:07.812Z'- updated_at: '2021-11-01T16:15:07.812Z'+ created_at: '2021-11-01T22:35:39.808Z'+ updated_at: '2021-11-01T22:35:39.808Z'relationships:cms_sections:data: []@@ -1414,17 +1414,17 @@ paths:id: '5'type: cms_pageattributes:- title: Id eveniet sit deleniti facilis possimus error.+ title: Modi veritatis animi aperiam sint.meta_title:content:meta_description:visible: true- slug: id-eveniet-sit-deleniti-facilis-possimus-error+ slug: modi-veritatis-animi-aperiam-sinttype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-01T16:15:07.890Z'- updated_at: '2021-11-01T16:15:07.890Z'+ created_at: '2021-11-01T22:35:39.887Z'+ updated_at: '2021-11-01T22:35:39.887Z'relationships:cms_sections:data: []@@ -1484,17 +1484,17 @@ paths:id: '6'type: cms_pageattributes:- title: Tempore dolores accusamus velit harum.+ title: Laudantium perferendis modi non inventore.meta_title:content:meta_description:visible: true- slug: tempore-dolores-accusamus-velit-harum+ slug: laudantium-perferendis-modi-non-inventoretype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-01T16:15:07.928Z'- updated_at: '2021-11-01T16:15:07.928Z'+ created_at: '2021-11-01T22:35:39.930Z'+ updated_at: '2021-11-01T22:35:39.930Z'relationships:cms_sections:data: []@@ -1558,12 +1558,12 @@ paths:content:meta_description:visible: true- slug: optio-illum-veniam-unde-repellendus-tenetur-vitae-harum-totam+ slug: sed-distinctio-quis-saepe-eligendi-nam-perspiciatis-nullatype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-11-01T16:15:07.993Z'- updated_at: '2021-11-01T16:15:08.002Z'+ created_at: '2021-11-01T22:35:39.992Z'+ updated_at: '2021-11-01T22:35:40.000Z'relationships:cms_sections:data: []@@ -1689,7 +1689,7 @@ paths:- id: '1'type: cms_sectionattributes:- name: Necessitatibus iste in fugit cumque.+ name: Perferendis velit voluptatem corporis saepe.content: {}settings:gutters: No Gutters@@ -1698,8 +1698,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 1linked_resource_type: Spree::Taxon- created_at: '2021-11-01T16:15:08.165Z'- updated_at: '2021-11-01T16:15:08.165Z'+ created_at: '2021-11-01T22:35:40.168Z'+ updated_at: '2021-11-01T22:35:40.168Z'relationships:cms_page:data:@@ -1710,7 +1710,7 @@ paths:- id: '2'type: cms_sectionattributes:- name: Quibusdam nihil nesciunt maxime accusantium vitae.+ name: Quos sed impedit tempore sequi eligendi.content:link_type_one: Spree::Taxonlink_type_two: Spree::Taxon@@ -1722,8 +1722,8 @@ paths:type: Spree::Cms::Sections::ImageGalleryposition: 2linked_resource_type:- created_at: '2021-11-01T16:15:08.168Z'- updated_at: '2021-11-01T16:15:08.168Z'+ created_at: '2021-11-01T22:35:40.172Z'+ updated_at: '2021-11-01T22:35:40.172Z'relationships:cms_page:data:@@ -1734,7 +1734,8 @@ paths:- id: '3'type: cms_sectionattributes:- name: Ab soluta laboriosam qui repudiandae voluptas neque.+ name: Praesentium assumenda ratione odit est harum suscipit+ mollitia eum.content: {}settings:gutters: No Gutters@@ -1743,8 +1744,8 @@ paths:type: Spree::Cms::Sections::FeaturedArticleposition: 3linked_resource_type: Spree::Taxon- created_at: '2021-11-01T16:15:08.176Z'- updated_at: '2021-11-01T16:15:08.176Z'+ created_at: '2021-11-01T22:35:40.180Z'+ updated_at: '2021-11-01T22:35:40.180Z'relationships:cms_page:data:@@ -1755,8 +1756,8 @@ paths:- id: '4'type: cms_sectionattributes:- name: Assumenda aperiam veniam enim minima sed magni sunt- similique.+ name: Similique aliquid vel suscipit modi maiores at earum+ ipsam.content: {}settings:gutters: No Gutters@@ -1765,8 +1766,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-11-01T16:15:08.184Z'- updated_at: '2021-11-01T16:15:08.184Z'+ created_at: '2021-11-01T22:35:40.187Z'+ updated_at: '2021-11-01T22:35:40.187Z'relationships:cms_page:data:@@ -1779,7 +1780,7 @@ paths:- id: '5'type: cms_sectionattributes:- name: Exercitationem placeat ducimus cumque ipsa eius cum.+ name: Distinctio officiis quas necessitatibus laudantium incidunt.content: {}settings:gutters: No Gutters@@ -1788,8 +1789,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 5linked_resource_type: Spree::Product- created_at: '2021-11-01T16:15:08.191Z'- updated_at: '2021-11-01T16:15:08.191Z'+ created_at: '2021-11-01T22:35:40.193Z'+ updated_at: '2021-11-01T22:35:40.193Z'relationships:cms_page:data:@@ -1849,7 +1850,7 @@ paths:id: '14'type: cms_sectionattributes:- name: Itaque soluta exercitationem id minus dolore ab.+ name: Facilis quam quibusdam perspiciatis culpa id ullam possimus.content: {}settings:gutters: No Gutters@@ -1858,8 +1859,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-11-01T16:15:08.343Z'- updated_at: '2021-11-01T16:15:08.343Z'+ created_at: '2021-11-01T22:35:40.347Z'+ updated_at: '2021-11-01T22:35:40.347Z'relationships:cms_page:data:@@ -1925,7 +1926,8 @@ paths:id: '21'type: cms_sectionattributes:- name: Aliquid velit illo rem eaque ullam.+ name: Sed nostrum eligendi labore tenetur beatae ipsam quibusdam+ nesciunt.content: {}settings:gutters: No Gutters@@ -1934,8 +1936,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-11-01T16:15:08.477Z'- updated_at: '2021-11-01T16:15:08.477Z'+ created_at: '2021-11-01T22:35:40.482Z'+ updated_at: '2021-11-01T22:35:40.482Z'relationships:cms_page:data:@@ -2009,8 +2011,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 1linked_resource_type: Spree::Product- created_at: '2021-11-01T16:15:08.745Z'- updated_at: '2021-11-01T16:15:08.757Z'+ created_at: '2021-11-01T22:35:40.760Z'+ updated_at: '2021-11-01T22:35:40.772Z'relationships:cms_page:data:@@ -2124,9 +2126,9 @@ paths:name: United States of Americanumcode: 840states_required: true- updated_at: '2021-11-01T16:15:09.217Z'+ updated_at: '2021-11-01T22:35:41.195Z'zipcode_required: true- created_at: '2021-11-01T16:15:09.217Z'+ created_at: '2021-11-01T22:35:41.195Z'relationships:states:data: []@@ -2139,9 +2141,9 @@ paths:name: NAME_2numcode: 840states_required: false- updated_at: '2021-11-01T16:15:09.222Z'+ updated_at: '2021-11-01T22:35:41.201Z'zipcode_required: true- created_at: '2021-11-01T16:15:09.222Z'+ created_at: '2021-11-01T22:35:41.201Z'relationships:states:data: []@@ -2154,9 +2156,9 @@ paths:name: NAME_3numcode: 840states_required: false- updated_at: '2021-11-01T16:15:09.225Z'+ updated_at: '2021-11-01T22:35:41.203Z'zipcode_required: true- created_at: '2021-11-01T16:15:09.225Z'+ created_at: '2021-11-01T22:35:41.203Z'relationships:states:data: []@@ -2215,9 +2217,9 @@ paths:name: NAME_6numcode: 840states_required: false- updated_at: '2021-11-01T16:15:09.272Z'+ updated_at: '2021-11-01T22:35:41.252Z'zipcode_required: true- created_at: '2021-11-01T16:15:09.272Z'+ created_at: '2021-11-01T22:35:41.252Z'relationships:states:data: []@@ -2275,7 +2277,7 @@ paths:- id: '1'type: digital_linkattributes:- token: Zj7hsmXmii7dM2UD6xVcpUjG+ token: EF8LtnCnhuxAV1wLc2TqfTGDaccess_counter: 0relationships:digital:@@ -2289,7 +2291,7 @@ paths:- id: '2'type: digital_linkattributes:- token: HtEFjzNuVqN6j5WUF57M7bjB+ token: KyC6KpSscTbrVk95MMRt6oYVaccess_counter: 0relationships:digital:@@ -2343,7 +2345,7 @@ paths:id: '5'type: digital_linkattributes:- token: AyHGXBxouVACPr7icfFGa7ZA+ token: UVwvrYvEdRipbEgUzii4Bigiaccess_counter: 0relationships:digital:@@ -2406,7 +2408,7 @@ paths:id: '6'type: digital_linkattributes:- token: VL22EXnhQBx6VSWP4KV3JoX5+ token: kvBzSVXF8GAKG7P8MUNRGkp9access_counter: 0relationships:digital:@@ -2465,7 +2467,7 @@ paths:id: '8'type: digital_linkattributes:- token: bR4yj43Y45tQ7fQc95ZkHz2o+ token: LU6TfUozEckSE9EL6PtWCYcMaccess_counter: 0relationships:digital:@@ -2580,7 +2582,7 @@ paths:id: '13'type: digital_linkattributes:- token: e94qfYCroztiknaz9crvxMbU+ token: iPTgeEiEJopEihv1GsZZci1gaccess_counter: 0relationships:digital:@@ -2652,7 +2654,7 @@ paths:- id: '15'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c47dbf57af644f5ee532f1a0e204a3f2877dad4c/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7068626d70aa8c180fd961f26cdd4e449e7b34a7/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2664,7 +2666,7 @@ paths:- id: '16'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5966e723deb197b98be65665b695881d9bf77ce6/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0a04fbab30a7c6e2c4e9f9c2e8bf0c1095244c2c/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2676,7 +2678,7 @@ paths:- id: '17'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--128cb27a673c4157d05f7e8836100b74c4d841dd/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--23a31a7317ef6db70f5395a70c05320a3fb149ac/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2735,7 +2737,7 @@ paths:id: '24'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9809c0317f79dda41a81c0af07fddd7da97abd8f/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--11b46e9ec4ad663736ae938d13056a21907a3884/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2800,7 +2802,7 @@ paths:id: '28'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--efba9825dfa43ed3c60de95598803a804aee86ff/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--396ec1b385c56f8b7b18fbc6420046ad9a4015a9/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2864,7 +2866,7 @@ paths:id: '36'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b476a895c0bc6c1c789ca9f1206cf5a829871e60/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ff4acd7b7f42a036bece89f343c26bf7b91af26b/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2997,8 +2999,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-01T16:15:16.594Z'- updated_at: '2021-11-01T16:15:16.602Z'+ created_at: '2021-11-01T22:35:48.836Z'+ updated_at: '2021-11-01T22:35:48.845Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3044,8 +3046,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-01T16:15:16.633Z'- updated_at: '2021-11-01T16:15:16.637Z'+ created_at: '2021-11-01T22:35:48.878Z'+ updated_at: '2021-11-01T22:35:48.883Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3138,8 +3140,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-01T16:15:16.862Z'- updated_at: '2021-11-01T16:15:16.908Z'+ created_at: '2021-11-01T22:35:49.109Z'+ updated_at: '2021-11-01T22:35:49.152Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3241,8 +3243,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-11-01T16:15:17.051Z'- updated_at: '2021-11-01T16:15:17.058Z'+ created_at: '2021-11-01T22:35:49.300Z'+ updated_at: '2021-11-01T22:35:49.307Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3340,8 +3342,8 @@ paths:attributes:quantity: 4price: '10.0'- created_at: '2021-11-01T16:15:17.283Z'- updated_at: '2021-11-01T16:15:17.322Z'+ created_at: '2021-11-01T22:35:49.537Z'+ updated_at: '2021-11-01T22:35:49.574Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3391,10 +3393,10 @@ paths:examples:Example:value:- error: 'Quantity selected of "Product #130 - 8962" is not available.'+ error: 'Quantity selected of "Product #130 - 5006" is not available.'errors:quantity:- - 'selected of "Product #130 - 8962" is not available.'+ - 'selected of "Product #130 - 5006" is not available.'schema:"$ref": "#/components/schemas/validation_errors"'404':@@ -3483,13 +3485,13 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: linked_resource+ example: menu,icon,parent,children,linked_resourceschema:type: string- - name: filter[menu_item_name_eq]+ - name: filter[name_eq]in: querydescription: ''- example: Women+ example: T-Shirtsschema:type: stringresponses:@@ -3514,8 +3516,8 @@ paths:lft: 2rgt: 3depth: 1- created_at: '2021-11-01T16:15:17.997Z'- updated_at: '2021-11-01T16:15:18.001Z'+ created_at: '2021-11-01T22:35:50.347Z'+ updated_at: '2021-11-01T22:35:50.352Z'link:is_container: falseis_root: false@@ -3551,8 +3553,8 @@ paths:lft: 4rgt: 5depth: 1- created_at: '2021-11-01T16:15:18.061Z'- updated_at: '2021-11-01T16:15:18.066Z'+ created_at: '2021-11-01T22:35:50.412Z'+ updated_at: '2021-11-01T22:35:50.417Z'link:is_container: falseis_root: false@@ -3588,8 +3590,8 @@ paths:lft: 6rgt: 7depth: 1- created_at: '2021-11-01T16:15:18.122Z'- updated_at: '2021-11-01T16:15:18.127Z'+ created_at: '2021-11-01T22:35:50.484Z'+ updated_at: '2021-11-01T22:35:50.488Z'link:is_container: falseis_root: false@@ -3625,8 +3627,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-01T16:15:18.185Z'- updated_at: '2021-11-01T16:15:18.190Z'+ created_at: '2021-11-01T22:35:50.547Z'+ updated_at: '2021-11-01T22:35:50.551Z'link:is_container: falseis_root: false@@ -3662,8 +3664,8 @@ paths:lft: 10rgt: 11depth: 1- created_at: '2021-11-01T16:15:18.248Z'- updated_at: '2021-11-01T16:15:18.252Z'+ created_at: '2021-11-01T22:35:50.613Z'+ updated_at: '2021-11-01T22:35:50.618Z'link:is_container: falseis_root: false@@ -3699,8 +3701,8 @@ paths:lft: 12rgt: 13depth: 1- created_at: '2021-11-01T16:15:18.311Z'- updated_at: '2021-11-01T16:15:18.315Z'+ created_at: '2021-11-01T22:35:50.678Z'+ updated_at: '2021-11-01T22:35:50.682Z'link:is_container: falseis_root: false@@ -3736,8 +3738,8 @@ paths:lft: 14rgt: 15depth: 1- created_at: '2021-11-01T16:15:18.372Z'- updated_at: '2021-11-01T16:15:18.376Z'+ created_at: '2021-11-01T22:35:50.741Z'+ updated_at: '2021-11-01T22:35:50.745Z'link:is_container: falseis_root: false@@ -3763,7 +3765,8 @@ paths:- id: '1'type: menu_itemattributes:- name: Quasi quos rem ratione optio error ipsam provident.+ name: Quod perferendis tempora doloribus voluptas necessitatibus+ mollitia.subtitle:destination:new_window: false@@ -3773,8 +3776,8 @@ paths:lft: 1rgt: 16depth: 0- created_at: '2021-11-01T16:15:17.934Z'- updated_at: '2021-11-01T16:15:18.396Z'+ created_at: '2021-11-01T22:35:50.280Z'+ updated_at: '2021-11-01T22:35:50.752Z'link:is_container: trueis_root: true@@ -3812,11 +3815,11 @@ paths:total_count: 8total_pages: 1links:- self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter[menu_item_name_eq]=- next: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=- prev: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=- last: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=- first: http://www.example.com/api/v2/platform/menu_items?filter%5Bmenu_item_name_eq%5D=&include=&page=1&per_page=+ self: http://www.example.com/api/v2/platform/menu_items?page=1&per_page=&include=&filter[name_eq]=+ next: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=+ prev: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=+ last: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=+ first: http://www.example.com/api/v2/platform/menu_items?filter%5Bname_eq%5D=&include=&page=1&per_page=schema:"$ref": "#/components/schemas/resources_list"'401':@@ -3842,7 +3845,7 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: linked_resource+ example: menu,icon,parent,children,linked_resourceschema:type: stringresponses:@@ -3867,8 +3870,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-01T16:15:19.114Z'- updated_at: '2021-11-01T16:15:19.117Z'+ created_at: '2021-11-01T22:35:51.480Z'+ updated_at: '2021-11-01T22:35:51.484Z'link:is_container: falseis_root: false@@ -3933,7 +3936,7 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: linked_resource+ example: menu,icon,parent,children,linked_resourceschema:type: stringresponses:@@ -3958,8 +3961,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-01T16:15:19.599Z'- updated_at: '2021-11-01T16:15:19.603Z'+ created_at: '2021-11-01T22:35:51.976Z'+ updated_at: '2021-11-01T22:35:51.981Z'link:is_container: falseis_root: false@@ -4022,7 +4025,7 @@ paths:in: querydescription: 'Select which associated resources you would like to fetch, see:<a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'- example: linked_resource+ example: menu,icon,parent,children,linked_resourceschema:type: stringresponses:@@ -4047,8 +4050,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-11-01T16:15:20.372Z'- updated_at: '2021-11-01T16:15:20.398Z'+ created_at: '2021-11-01T22:35:52.759Z'+ updated_at: '2021-11-01T22:35:52.784Z'link:is_container: falseis_root: false@@ -4185,8 +4188,8 @@ paths:lft: 5rgt: 6depth: 2- created_at: '2021-11-01T16:15:22.185Z'- updated_at: '2021-11-01T16:15:22.212Z'+ created_at: '2021-11-01T22:35:54.607Z'+ updated_at: '2021-11-01T22:35:54.634Z'link:is_container: falseis_root: false@@ -4235,7 +4238,7 @@ paths:content:application/json:schema:- "$ref": "#/components/schemas/menu_item_reposition_params"+ "$ref": "#/components/schemas/menu_item_reposition""/api/v2/platform/menus":get:summary: Return a list of Menus@@ -4263,6 +4266,12 @@ paths:example: menu_itemsschema:type: string+ - name: filter[name_eq]+ in: query+ description: ''+ example: Main Menu+ schema:+ type: string- name: filter[location_eq]in: querydescription: ''@@ -4284,16 +4293,16 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-01T16:15:22.724Z'- updated_at: '2021-11-01T16:15:22.852Z'+ created_at: '2021-11-01T22:35:55.152Z'+ updated_at: '2021-11-01T22:35:55.282Z'relationships:menu_items:data:- - id: '87'+ - id: '89'type: menu_item- id: '90'type: menu_item- - id: '89'+ - id: '87'type: menu_item- id: '19'type: menu@@ -4301,27 +4310,27 @@ paths:name: Footer Menulocation: footerlocale: en- created_at: '2021-11-01T16:15:22.733Z'- updated_at: '2021-11-01T16:15:22.973Z'+ created_at: '2021-11-01T22:35:55.161Z'+ updated_at: '2021-11-01T22:35:55.406Z'relationships:menu_items:data:- id: '91'type: menu_item- - id: '88'- type: menu_item- id: '92'type: menu_item+ - id: '88'+ type: menu_itemmeta:count: 2total_count: 2total_pages: 1links:- self: http://www.example.com/api/v2/platform/menus?page=1&per_page=&include=&filter[location_eq]=- next: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=- prev: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=- last: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=- first: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&include=&page=1&per_page=+ self: http://www.example.com/api/v2/platform/menus?page=1&per_page=&include=&filter[name_eq]=&filter[location_eq]=+ next: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=+ prev: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=+ last: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=+ first: http://www.example.com/api/v2/platform/menus?filter%5Blocation_eq%5D=&filter%5Bname_eq%5D=&include=&page=1&per_page=schema:"$ref": "#/components/schemas/resources_list"'401':@@ -4365,8 +4374,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-01T16:15:23.324Z'- updated_at: '2021-11-01T16:15:23.331Z'+ created_at: '2021-11-01T22:35:55.745Z'+ updated_at: '2021-11-01T22:35:55.751Z'relationships:menu_items:data:@@ -4434,8 +4443,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-01T16:15:23.368Z'- updated_at: '2021-11-01T16:15:23.374Z'+ created_at: '2021-11-01T22:35:55.795Z'+ updated_at: '2021-11-01T22:35:55.801Z'relationships:menu_items:data:@@ -4499,8 +4508,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-11-01T16:15:23.445Z'- updated_at: '2021-11-01T16:15:23.452Z'+ created_at: '2021-11-01T22:35:55.867Z'+ updated_at: '2021-11-01T22:35:55.873Z'relationships:menu_items:data:@@ -4635,8 +4644,8 @@ paths:name: foo-size-68presentation: Sizeposition: 1- created_at: '2021-11-01T16:15:23.618Z'- updated_at: '2021-11-01T16:15:23.618Z'+ created_at: '2021-11-01T22:35:56.073Z'+ updated_at: '2021-11-01T22:35:56.073Z'filterable: truerelationships:option_values:@@ -4647,8 +4656,8 @@ paths:name: foo-size-69presentation: Sizeposition: 2- created_at: '2021-11-01T16:15:23.620Z'- updated_at: '2021-11-01T16:15:23.620Z'+ created_at: '2021-11-01T22:35:56.074Z'+ updated_at: '2021-11-01T22:35:56.074Z'filterable: truerelationships:option_values:@@ -4699,8 +4708,8 @@ paths:name: foo-size-72presentation: Sizeposition: 1- created_at: '2021-11-01T16:15:23.676Z'- updated_at: '2021-11-01T16:15:23.676Z'+ created_at: '2021-11-01T22:35:56.125Z'+ updated_at: '2021-11-01T22:35:56.125Z'filterable: truerelationships:option_values:@@ -4757,8 +4766,8 @@ paths:name: foo-size-73presentation: Sizeposition: 1- created_at: '2021-11-01T16:15:23.707Z'- updated_at: '2021-11-01T16:15:23.707Z'+ created_at: '2021-11-01T22:35:56.158Z'+ updated_at: '2021-11-01T22:35:56.158Z'filterable: truerelationships:option_values:@@ -4814,8 +4823,8 @@ paths:name: Size-Xpresentation: Sizeposition: 1- created_at: '2021-11-01T16:15:23.756Z'- updated_at: '2021-11-01T16:15:23.763Z'+ created_at: '2021-11-01T22:35:56.216Z'+ updated_at: '2021-11-01T22:35:56.223Z'filterable: truerelationships:option_values:@@ -4951,8 +4960,8 @@ paths:position: 1name: Size-68presentation: S- created_at: '2021-11-01T16:15:23.883Z'- updated_at: '2021-11-01T16:15:23.883Z'+ created_at: '2021-11-01T22:35:56.350Z'+ updated_at: '2021-11-01T22:35:56.350Z'relationships:option_type:data:@@ -4964,8 +4973,8 @@ paths:position: 1name: Size-69presentation: S- created_at: '2021-11-01T16:15:23.890Z'- updated_at: '2021-11-01T16:15:23.890Z'+ created_at: '2021-11-01T22:35:56.357Z'+ updated_at: '2021-11-01T22:35:56.357Z'relationships:option_type:data:@@ -5024,8 +5033,8 @@ paths:position: 1name: Size-72presentation: S- created_at: '2021-11-01T16:15:23.953Z'- updated_at: '2021-11-01T16:15:23.953Z'+ created_at: '2021-11-01T22:35:56.417Z'+ updated_at: '2021-11-01T22:35:56.417Z'relationships:option_type:data:@@ -5088,8 +5097,8 @@ paths:position: 1name: Size-73presentation: S- created_at: '2021-11-01T16:15:23.987Z'- updated_at: '2021-11-01T16:15:23.987Z'+ created_at: '2021-11-01T22:35:56.451Z'+ updated_at: '2021-11-01T22:35:56.451Z'relationships:option_type:data:@@ -5153,8 +5162,8 @@ paths:position: 1name: Mpresentation: S- created_at: '2021-11-01T16:15:24.045Z'- updated_at: '2021-11-01T16:15:24.054Z'+ created_at: '2021-11-01T22:35:56.518Z'+ updated_at: '2021-11-01T22:35:56.527Z'relationships:option_type:data:@@ -5282,7 +5291,7 @@ paths:- id: '40'type: orderattributes:- number: R767427603+ number: R164088632item_total: '0.0'total: '0.0'state: cart@@ -5291,10 +5300,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:24.200Z'- updated_at: '2021-11-01T16:15:24.200Z'+ created_at: '2021-11-01T22:35:56.678Z'+ updated_at: '2021-11-01T22:35:56.678Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5366,7 +5375,7 @@ paths:- id: '41'type: orderattributes:- number: R860381766+ number: R616918637item_total: '0.0'total: '0.0'state: cart@@ -5375,10 +5384,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:24.208Z'- updated_at: '2021-11-01T16:15:24.208Z'+ created_at: '2021-11-01T22:35:56.686Z'+ updated_at: '2021-11-01T22:35:56.686Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5497,7 +5506,7 @@ paths:id: '44'type: orderattributes:- number: R827438171+ number: R914206362item_total: '0.0'total: '0.0'state: cart@@ -5508,8 +5517,8 @@ paths:payment_state:email:special_instructions:- created_at: '2021-11-01T16:15:24.523Z'- updated_at: '2021-11-01T16:15:24.592Z'+ created_at: '2021-11-01T22:35:56.989Z'+ updated_at: '2021-11-01T22:35:57.005Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5623,7 +5632,7 @@ paths:id: '45'type: orderattributes:- number: R621193222+ number: R577750598item_total: '10.0'total: '110.0'state: delivery@@ -5632,10 +5641,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:24.649Z'- updated_at: '2021-11-01T16:15:24.807Z'+ created_at: '2021-11-01T22:35:57.046Z'+ updated_at: '2021-11-01T22:35:57.212Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5765,7 +5774,7 @@ paths:id: '47'type: orderattributes:- number: R108854973+ number: R491366996item_total: '10.0'total: '110.0'state: delivery@@ -5776,8 +5785,8 @@ paths:payment_state:email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:24.989Z'- updated_at: '2021-11-01T16:15:25.081Z'+ created_at: '2021-11-01T22:35:57.392Z'+ updated_at: '2021-11-01T22:35:57.565Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5963,7 +5972,7 @@ paths:id: '52'type: orderattributes:- number: R613373980+ number: R107755103item_total: '10.0'total: '110.0'state: payment@@ -5972,10 +5981,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:25.740Z'- updated_at: '2021-11-01T16:15:25.887Z'+ created_at: '2021-11-01T22:35:58.146Z'+ updated_at: '2021-11-01T22:35:58.285Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6108,7 +6117,7 @@ paths:id: '54'type: orderattributes:- number: R555606296+ number: R488204174item_total: '10.0'total: '110.0'state: payment@@ -6117,10 +6126,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:26.058Z'- updated_at: '2021-11-01T16:15:26.187Z'+ created_at: '2021-11-01T22:35:58.479Z'+ updated_at: '2021-11-01T22:35:58.608Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6253,19 +6262,19 @@ paths:id: '56'type: orderattributes:- number: R437940802+ number: R747446949item_total: '10.0'total: '110.0'state: completeadjustment_total: '0.0'- completed_at: '2021-11-01T16:15:26.559Z'+ completed_at: '2021-11-01T22:35:58.998Z'payment_total: '0.0'shipment_state: pendingpayment_state: balance_due- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:26.345Z'- updated_at: '2021-11-01T16:15:26.559Z'+ created_at: '2021-11-01T22:35:58.779Z'+ updated_at: '2021-11-01T22:35:58.998Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6409,7 +6418,7 @@ paths:id: '59'type: orderattributes:- number: R583410208+ number: R221671065item_total: '0.0'total: '0.0'state: cart@@ -6418,10 +6427,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:26.853Z'- updated_at: '2021-11-01T16:15:26.952Z'+ created_at: '2021-11-01T22:35:59.301Z'+ updated_at: '2021-11-01T22:35:59.405Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -6549,7 +6558,7 @@ paths:id: '61'type: orderattributes:- number: R007488347+ number: R656135970item_total: '10.0'total: '110.0'state: delivery@@ -6558,10 +6567,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-11-01T16:15:27.112Z'- updated_at: '2021-11-01T16:15:27.190Z'+ created_at: '2021-11-01T22:35:59.571Z'+ updated_at: '2021-11-01T22:35:59.652Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6862,8 +6871,8 @@ paths:display_on: bothauto_capture:position: 1- created_at: '2021-11-01T16:15:28.804Z'- updated_at: '2021-11-01T16:15:28.804Z'+ created_at: '2021-11-01T22:36:01.301Z'+ updated_at: '2021-11-01T22:36:01.301Z'deleted_at:preferences: {}relationships:@@ -6881,8 +6890,8 @@ paths:display_on: bothauto_capture:position: 2- created_at: '2021-11-01T16:15:28.810Z'- updated_at: '2021-11-01T16:15:28.810Z'+ created_at: '2021-11-01T22:36:01.308Z'+ updated_at: '2021-11-01T22:36:01.308Z'deleted_at:preferences: {}relationships:@@ -6900,8 +6909,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-01T16:15:28.813Z'- updated_at: '2021-11-01T16:15:28.813Z'+ created_at: '2021-11-01T22:36:01.311Z'+ updated_at: '2021-11-01T22:36:01.311Z'deleted_at:preferences: {}relationships:@@ -6919,8 +6928,8 @@ paths:display_on: bothauto_capture:position: 4- created_at: '2021-11-01T16:15:28.817Z'- updated_at: '2021-11-01T16:15:28.817Z'+ created_at: '2021-11-01T22:36:01.315Z'+ updated_at: '2021-11-01T22:36:01.315Z'deleted_at:preferences:dummy_key: PUBLICKEY123@@ -6941,8 +6950,8 @@ paths:display_on: bothauto_capture:position: 5- created_at: '2021-11-01T16:15:28.820Z'- updated_at: '2021-11-01T16:15:28.820Z'+ created_at: '2021-11-01T22:36:01.318Z'+ updated_at: '2021-11-01T22:36:01.318Z'deleted_at:preferences:dummy_key: PUBLICKEY123@@ -7010,8 +7019,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-01T16:15:28.931Z'- updated_at: '2021-11-01T16:15:28.931Z'+ created_at: '2021-11-01T22:36:01.428Z'+ updated_at: '2021-11-01T22:36:01.428Z'deleted_at:preferences:dummy_key: PUBLICKEY123@@ -7085,8 +7094,8 @@ paths:display_on: bothauto_capture:position: 4- created_at: '2021-11-01T16:15:29.018Z'- updated_at: '2021-11-01T16:15:29.018Z'+ created_at: '2021-11-01T22:36:01.503Z'+ updated_at: '2021-11-01T22:36:01.503Z'deleted_at:preferences:dummy_key: PUBLICKEY123@@ -7159,8 +7168,8 @@ paths:display_on: bothauto_capture:position: 3- created_at: '2021-11-01T16:15:29.151Z'- updated_at: '2021-11-01T16:15:29.161Z'+ created_at: '2021-11-01T22:36:01.617Z'+ updated_at: '2021-11-01T22:36:01.628Z'deleted_at:preferences:dummy_key: UPDATED-DUMMY-KEY-123@@ -7306,9 +7315,9 @@ paths:state: invalidresponse_code: '12345'avs_response:- created_at: '2021-11-01T16:15:29.420Z'- updated_at: '2021-11-01T16:15:29.436Z'- number: PDYDZDPY+ created_at: '2021-11-01T22:36:01.889Z'+ updated_at: '2021-11-01T22:36:01.906Z'+ number: PVDU54GBcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -7343,9 +7352,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-11-01T16:15:29.433Z'- updated_at: '2021-11-01T16:15:29.433Z'- number: P5T0GV41+ created_at: '2021-11-01T22:36:01.903Z'+ updated_at: '2021-11-01T22:36:01.903Z'+ number: PHAOAOTZcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -7431,9 +7440,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-11-01T16:15:29.602Z'- updated_at: '2021-11-01T16:15:29.602Z'- number: PR4F6556+ created_at: '2021-11-01T22:36:02.069Z'+ updated_at: '2021-11-01T22:36:02.069Z'+ number: PSD1MXQUcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -7569,8 +7578,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-01T16:15:29.811Z'- updated_at: '2021-11-01T16:15:29.811Z'+ created_at: '2021-11-01T22:36:02.281Z'+ updated_at: '2021-11-01T22:36:02.281Z'code: POP123relationships:promotions:@@ -7579,8 +7588,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-01T16:15:29.813Z'- updated_at: '2021-11-01T16:15:29.813Z'+ created_at: '2021-11-01T22:36:02.283Z'+ updated_at: '2021-11-01T22:36:02.283Z'code: POP123relationships:promotions:@@ -7636,8 +7645,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-01T16:15:29.861Z'- updated_at: '2021-11-01T16:15:29.861Z'+ created_at: '2021-11-01T22:36:02.332Z'+ updated_at: '2021-11-01T22:36:02.332Z'code: 2021-BFMrelationships:promotions:@@ -7697,8 +7706,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-11-01T16:15:29.897Z'- updated_at: '2021-11-01T16:15:29.897Z'+ created_at: '2021-11-01T22:36:02.369Z'+ updated_at: '2021-11-01T22:36:02.369Z'code: MJOrelationships:promotions:@@ -7759,8 +7768,8 @@ paths:type: promotion_categoryattributes:name: 2021 Promotions- created_at: '2021-11-01T16:15:29.949Z'- updated_at: '2021-11-01T16:15:29.955Z'+ created_at: '2021-11-01T22:36:02.421Z'+ updated_at: '2021-11-01T22:36:02.427Z'code: 2021-Promosrelationships:promotions:@@ -7888,12 +7897,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H88505663024+ number: H55115761949cost: '100.0'shipped_at:state: pending- created_at: '2021-11-01T16:15:30.080Z'- updated_at: '2021-11-01T16:15:30.083Z'+ created_at: '2021-11-01T22:36:02.552Z'+ updated_at: '2021-11-01T22:36:02.555Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7935,12 +7944,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H98428238361+ number: H95299716655cost: '100.0'shipped_at:state: pending- created_at: '2021-11-01T16:15:30.110Z'- updated_at: '2021-11-01T16:15:30.113Z'+ created_at: '2021-11-01T22:36:02.582Z'+ updated_at: '2021-11-01T22:36:02.585Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8035,12 +8044,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H36188312911+ number: H83811960445cost: '100.0'shipped_at:state: pending- created_at: '2021-11-01T16:15:30.406Z'- updated_at: '2021-11-01T16:15:30.424Z'+ created_at: '2021-11-01T22:36:02.880Z'+ updated_at: '2021-11-01T22:36:02.898Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8174,12 +8183,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H71866168944+ number: H44536023359cost: '100.0'shipped_at:state: ready- created_at: '2021-11-01T16:15:31.307Z'- updated_at: '2021-11-01T16:15:31.336Z'+ created_at: '2021-11-01T22:36:03.825Z'+ updated_at: '2021-11-01T22:36:03.858Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8278,12 +8287,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H73130150181+ number: H88854215341cost: '100.0'- shipped_at: '2021-11-01T16:15:31.759Z'+ shipped_at: '2021-11-01T22:36:04.288Z'state: shipped- created_at: '2021-11-01T16:15:31.726Z'- updated_at: '2021-11-01T16:15:31.759Z'+ created_at: '2021-11-01T22:36:04.253Z'+ updated_at: '2021-11-01T22:36:04.288Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8382,12 +8391,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H00303001213+ number: H26080304428cost: '100.0'shipped_at:state: canceled- created_at: '2021-11-01T16:15:32.142Z'- updated_at: '2021-11-01T16:15:32.173Z'+ created_at: '2021-11-01T22:36:04.686Z'+ updated_at: '2021-11-01T22:36:04.713Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8486,12 +8495,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H57719834983+ number: H93653327402cost: '100.0'shipped_at:state: ready- created_at: '2021-11-01T16:15:32.566Z'- updated_at: '2021-11-01T16:15:32.594Z'+ created_at: '2021-11-01T22:36:05.117Z'+ updated_at: '2021-11-01T22:36:05.151Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8590,12 +8599,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H41747708365+ number: H26635718038cost: '100.0'shipped_at:state: pending- created_at: '2021-11-01T16:15:32.990Z'- updated_at: '2021-11-01T16:15:33.017Z'+ created_at: '2021-11-01T22:36:05.552Z'+ updated_at: '2021-11-01T22:36:05.580Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8698,14 +8707,14 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #116'- created_at: '2021-11-01T16:15:33.247Z'- updated_at: '2021-11-01T16:15:33.247Z'+ created_at: '2021-11-01T22:36:05.889Z'+ updated_at: '2021-11-01T22:36:05.889Z'- id: '117'type: shipping_categoryattributes:name: 'ShippingCategory #117'- created_at: '2021-11-01T16:15:33.248Z'- updated_at: '2021-11-01T16:15:33.248Z'+ created_at: '2021-11-01T22:36:05.890Z'+ updated_at: '2021-11-01T22:36:05.890Z'meta:count: 2total_count: 2@@ -8750,8 +8759,8 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #120'- created_at: '2021-11-01T16:15:33.372Z'- updated_at: '2021-11-01T16:15:33.372Z'+ created_at: '2021-11-01T22:36:05.944Z'+ updated_at: '2021-11-01T22:36:05.944Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -8800,8 +8809,8 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #121'- created_at: '2021-11-01T16:15:33.405Z'- updated_at: '2021-11-01T16:15:33.405Z'+ created_at: '2021-11-01T22:36:05.977Z'+ updated_at: '2021-11-01T22:36:05.977Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -8851,8 +8860,8 @@ paths:type: shipping_categoryattributes:name: Default- created_at: '2021-11-01T16:15:33.455Z'- updated_at: '2021-11-01T16:15:33.461Z'+ created_at: '2021-11-01T22:36:06.028Z'+ updated_at: '2021-11-01T22:36:06.034Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -8986,8 +8995,8 @@ paths:admin_name:display_on: bothtracking_url:- created_at: '2021-11-01T16:15:33.579Z'- updated_at: '2021-11-01T16:15:33.579Z'+ created_at: '2021-11-01T22:36:06.155Z'+ updated_at: '2021-11-01T22:36:06.155Z'deleted_at:relationships:shipping_categories:@@ -9010,8 +9019,8 @@ paths:admin_name:display_on: bothtracking_url:- created_at: '2021-11-01T16:15:33.588Z'- updated_at: '2021-11-01T16:15:33.588Z'+ created_at: '2021-11-01T22:36:06.164Z'+ updated_at: '2021-11-01T22:36:06.164Z'deleted_at:relationships:shipping_categories:@@ -9081,8 +9090,8 @@ paths:admin_name: DHL Express- Zone Adisplay_on: bothtracking_url:- created_at: '2021-11-01T16:15:33.665Z'- updated_at: '2021-11-01T16:15:33.665Z'+ created_at: '2021-11-01T22:36:06.245Z'+ updated_at: '2021-11-01T22:36:06.245Z'deleted_at:relationships:shipping_categories:@@ -9166,8 +9175,8 @@ paths:admin_name:display_on: bothtracking_url:- created_at: '2021-11-01T16:15:33.713Z'- updated_at: '2021-11-01T16:15:33.713Z'+ created_at: '2021-11-01T22:36:06.289Z'+ updated_at: '2021-11-01T22:36:06.289Z'deleted_at:relationships:shipping_categories:@@ -9242,8 +9251,8 @@ paths:admin_name:display_on: bothtracking_url:- created_at: '2021-11-01T16:15:33.787Z'- updated_at: '2021-11-01T16:15:33.801Z'+ created_at: '2021-11-01T22:36:06.369Z'+ updated_at: '2021-11-01T22:36:06.382Z'deleted_at:relationships:shipping_categories:@@ -9392,8 +9401,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-11-01T16:15:34.031Z'- updated_at: '2021-11-01T16:15:34.035Z'+ created_at: '2021-11-01T22:36:06.617Z'+ updated_at: '2021-11-01T22:36:06.621Z'meta_title:meta_description:meta_keywords:@@ -9427,8 +9436,8 @@ paths:lft: 4rgt: 5description:- created_at: '2021-11-01T16:15:34.091Z'- updated_at: '2021-11-01T16:15:34.094Z'+ created_at: '2021-11-01T22:36:06.676Z'+ updated_at: '2021-11-01T22:36:06.679Z'meta_title:meta_description:meta_keywords:@@ -9462,8 +9471,8 @@ paths:lft: 1rgt: 6description:- created_at: '2021-11-01T16:15:33.968Z'- updated_at: '2021-11-01T16:15:34.105Z'+ created_at: '2021-11-01T22:36:06.555Z'+ updated_at: '2021-11-01T22:36:06.690Z'meta_title:meta_description:meta_keywords:@@ -9544,8 +9553,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-11-01T16:15:34.342Z'- updated_at: '2021-11-01T16:15:34.346Z'+ created_at: '2021-11-01T22:36:06.906Z'+ updated_at: '2021-11-01T22:36:06.910Z'meta_title:meta_description:meta_keywords:@@ -9630,8 +9639,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-11-01T16:15:34.456Z'- updated_at: '2021-11-01T16:15:34.460Z'+ created_at: '2021-11-01T22:36:07.024Z'+ updated_at: '2021-11-01T22:36:07.028Z'meta_title:meta_description:meta_keywords:@@ -9719,8 +9728,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-11-01T16:15:34.685Z'- updated_at: '2021-11-01T16:15:34.711Z'+ created_at: '2021-11-01T22:36:07.240Z'+ updated_at: '2021-11-01T22:36:07.266Z'meta_title:meta_description:meta_keywords:@@ -9873,9 +9882,9 @@ paths:- id: '97'type: userattributes:- email: [email protected]- created_at: '2021-11-01T16:15:35.204Z'- updated_at: '2021-11-01T16:15:35.204Z'+ email: [email protected]+ created_at: '2021-11-01T22:36:07.752Z'+ updated_at: '2021-11-01T22:36:07.752Z'average_order_value: []lifetime_value: []store_credits: []@@ -9887,9 +9896,9 @@ paths:- id: '98'type: userattributes:- email: [email protected]- created_at: '2021-11-01T16:15:35.209Z'- updated_at: '2021-11-01T16:15:35.209Z'+ email: [email protected]+ created_at: '2021-11-01T22:36:07.758Z'+ updated_at: '2021-11-01T22:36:07.758Z'average_order_value: []lifetime_value: []store_credits: []@@ -9901,9 +9910,9 @@ paths:- id: '99'type: userattributes:- email: [email protected]- created_at: '2021-11-01T16:15:35.210Z'- updated_at: '2021-11-01T16:15:35.210Z'+ email: [email protected]+ created_at: '2021-11-01T22:36:07.759Z'+ updated_at: '2021-11-01T22:36:07.759Z'average_order_value: []lifetime_value: []store_credits: []@@ -9962,9 +9971,9 @@ paths:id: '104'type: userattributes:- email: [email protected]- created_at: '2021-11-01T16:15:35.288Z'- updated_at: '2021-11-01T16:15:35.288Z'+ email: [email protected]+ created_at: '2021-11-01T22:36:07.826Z'+ updated_at: '2021-11-01T22:36:07.826Z'average_order_value: []lifetime_value: []store_credits: []@@ -10027,9 +10036,9 @@ paths:id: '107'type: userattributes:- email: [email protected]- created_at: '2021-11-01T16:15:35.335Z'- updated_at: '2021-11-01T16:15:35.335Z'+ email: [email protected]+ created_at: '2021-11-01T22:36:07.878Z'+ updated_at: '2021-11-01T22:36:07.878Z'average_order_value: []lifetime_value: []store_credits: []@@ -10094,8 +10103,8 @@ paths:type: userattributes:email: [email protected]- created_at: '2021-11-01T16:15:35.406Z'- updated_at: '2021-11-01T16:15:35.415Z'+ created_at: '2021-11-01T22:36:07.946Z'+ updated_at: '2021-11-01T22:36:07.954Z'average_order_value: []lifetime_value: []store_credits: []@@ -10242,12 +10251,12 @@ paths:position: 1cost_currency: USDtrack_inventory: true- updated_at: '2021-11-01T16:15:35.625Z'+ updated_at: '2021-11-01T22:36:08.256Z'discontinue_on:- created_at: '2021-11-01T16:15:35.620Z'+ created_at: '2021-11-01T22:36:08.250Z'display_compare_at_price:display_price: "$19.99"- name: 'Product #181 - 116'+ name: 'Product #181 - 4315'options_text: ''total_on_hand: 0purchasable: true@@ -10282,21 +10291,21 @@ paths:type: variantattributes:sku: SKU-249- weight: '104.23'- height: '146.44'- depth: '173.52'+ weight: '150.2'+ height: '7.71'+ depth: '162.69'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-11-01T16:15:35.653Z'+ updated_at: '2021-11-01T22:36:08.285Z'discontinue_on:- created_at: '2021-11-01T16:15:35.647Z'+ created_at: '2021-11-01T22:36:08.279Z'display_compare_at_price:display_price: "$19.99"- name: 'Product #181 - 116'+ name: 'Product #181 - 4315'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -10333,21 +10342,21 @@ paths:type: variantattributes:sku: SKU-250- weight: '86.2'- height: '132.54'- depth: '194.2'+ weight: '150.54'+ height: '89.18'+ depth: '47.63'deleted_at:is_master: falsecost_price: '17.0'position: 3cost_currency: USDtrack_inventory: true- updated_at: '2021-11-01T16:15:35.672Z'+ updated_at: '2021-11-01T22:36:08.304Z'discontinue_on:- created_at: '2021-11-01T16:15:35.666Z'+ created_at: '2021-11-01T22:36:08.298Z'display_compare_at_price:display_price: "$19.99"- name: 'Product #181 - 116'+ name: 'Product #181 - 4315'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -10437,21 +10446,21 @@ paths:type: variantattributes:sku: SKU-255- weight: '195.68'- height: '31.86'- depth: '6.16'+ weight: '149.44'+ height: '129.71'+ depth: '166.72'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-11-01T16:15:35.885Z'+ updated_at: '2021-11-01T22:36:08.519Z'discontinue_on:- created_at: '2021-11-01T16:15:35.879Z'+ created_at: '2021-11-01T22:36:08.508Z'display_compare_at_price:display_price: "$19.99"- name: 'Product #183 - 4666'+ name: 'Product #183 - 6694'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -10612,14 +10621,14 @@ paths:- id: '1'type: eventattributes:- execution_time: 2695+ execution_time: 30902name: order.canceledrequest_errors: ''response_code: '200'success: trueurl: https://www.url1.com/- created_at: '2021-11-01T16:15:36.301Z'- updated_at: '2021-11-01T16:15:36.301Z'+ created_at: '2021-11-01T22:36:08.871Z'+ updated_at: '2021-11-01T22:36:08.871Z'relationships:subscriber:data:@@ -10628,14 +10637,14 @@ paths:- id: '2'type: eventattributes:- execution_time: 98173+ execution_time: 56945name: order.canceledrequest_errors: ''response_code: '200'success: trueurl: https://www.url2.com/- created_at: '2021-11-01T16:15:36.304Z'- updated_at: '2021-11-01T16:15:36.304Z'+ created_at: '2021-11-01T22:36:08.875Z'+ updated_at: '2021-11-01T22:36:08.875Z'relationships:subscriber:data:@@ -10711,8 +10720,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-01T16:15:36.359Z'- updated_at: '2021-11-01T16:15:36.359Z'+ created_at: '2021-11-01T22:36:08.924Z'+ updated_at: '2021-11-01T22:36:08.924Z'- id: '6'type: subscriberattributes:@@ -10720,8 +10729,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-01T16:15:36.360Z'- updated_at: '2021-11-01T16:15:36.360Z'+ created_at: '2021-11-01T22:36:08.925Z'+ updated_at: '2021-11-01T22:36:08.925Z'meta:count: 2total_count: 2@@ -10769,8 +10778,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-01T16:15:36.408Z'- updated_at: '2021-11-01T16:15:36.408Z'+ created_at: '2021-11-01T22:36:08.978Z'+ updated_at: '2021-11-01T22:36:08.978Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -10825,8 +10834,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-01T16:15:36.439Z'- updated_at: '2021-11-01T16:15:36.439Z'+ created_at: '2021-11-01T22:36:09.010Z'+ updated_at: '2021-11-01T22:36:09.010Z'schema:"$ref": "#/components/schemas/resource"'404':@@ -10879,8 +10888,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-11-01T16:15:36.492Z'- updated_at: '2021-11-01T16:15:36.492Z'+ created_at: '2021-11-01T22:36:09.060Z'+ updated_at: '2021-11-01T22:36:09.060Z'schema:"$ref": "#/components/schemas/resource"'422':@@ -11001,10 +11010,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:36.733Z'- updated_at: '2021-11-01T16:15:36.733Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:09.311Z'+ updated_at: '2021-11-01T22:36:09.311Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11016,10 +11025,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:36.780Z'- updated_at: '2021-11-01T16:15:36.780Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:09.360Z'+ updated_at: '2021-11-01T22:36:09.360Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11031,10 +11040,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:36.826Z'- updated_at: '2021-11-01T16:15:36.826Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:09.406Z'+ updated_at: '2021-11-01T22:36:09.406Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11046,10 +11055,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:36.871Z'- updated_at: '2021-11-01T16:15:36.871Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:09.454Z'+ updated_at: '2021-11-01T22:36:09.454Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11108,10 +11117,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:37.319Z'- updated_at: '2021-11-01T16:15:37.319Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:09.911Z'+ updated_at: '2021-11-01T22:36:09.911Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11179,10 +11188,10 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-11-01T16:15:37.525Z'- updated_at: '2021-11-01T16:15:37.525Z'- display_total: "$19.99"+ created_at: '2021-11-01T22:36:10.114Z'+ updated_at: '2021-11-01T22:36:10.114Z'display_price: "$19.99"+ display_total: "$19.99"price: '19.99'total: '19.99'relationships:@@ -11246,10 +11255,10 @@ paths:type: wished_itemattributes:quantity: 3- created_at: '2021-11-01T16:15:37.859Z'- updated_at: '2021-11-01T16:15:37.867Z'- display_total: "$59.97"+ created_at: '2021-11-01T22:36:10.454Z'+ updated_at: '2021-11-01T22:36:10.463Z'display_price: "$19.99"+ display_total: "$59.97"price: '19.99'total: '59.97'relationships:@@ -11382,9 +11391,9 @@ paths:name: Black Fridayis_private: trueis_default: false- created_at: '2021-11-01T16:15:38.537Z'- updated_at: '2021-11-01T16:15:38.537Z'- token: FWxVNirxSL8hyJDQJpZeBx4y+ created_at: '2021-11-01T22:36:11.146Z'+ updated_at: '2021-11-01T22:36:11.146Z'+ token: EYTETFvJ3BR7pLBcqNhRcHKXvariant_included: falserelationships:wished_items:@@ -11399,9 +11408,9 @@ paths:name: Birthdayis_private: trueis_default: false- created_at: '2021-11-01T16:15:38.538Z'- updated_at: '2021-11-01T16:15:38.538Z'- token: u7ttyfedUjYCZjoKVkDnjEgG+ created_at: '2021-11-01T22:36:11.148Z'+ updated_at: '2021-11-01T22:36:11.148Z'+ token: mB3yhtwWUxUthBtnn8vg89uivariant_included: falserelationships:wished_items:@@ -11463,9 +11472,9 @@ paths:name: Wishlist_26is_private: trueis_default: false- created_at: '2021-11-01T16:15:38.982Z'- updated_at: '2021-11-01T16:15:38.982Z'- token: eYsnp8KKEYoDYC57kNAdqXR5+ created_at: '2021-11-01T22:36:11.597Z'+ updated_at: '2021-11-01T22:36:11.597Z'+ token: XULmdkxnXtU3metp2xanXpEbvariant_included: falserelationships:wished_items:@@ -11529,9 +11538,9 @@ paths:name: My Wishlistis_private: trueis_default: false- created_at: '2021-11-01T16:15:39.020Z'- updated_at: '2021-11-01T16:15:39.020Z'- token: HAqhVZZtc7hTXi4ndQid4WTJ+ created_at: '2021-11-01T22:36:11.641Z'+ updated_at: '2021-11-01T22:36:11.641Z'+ token: x1xqg1wUJeX6ftB9RWVJ91wivariant_included: falserelationships:wished_items:@@ -11594,9 +11603,9 @@ paths:name: My Super Wishlistis_private: trueis_default: false- created_at: '2021-11-01T16:15:39.080Z'- updated_at: '2021-11-01T16:15:39.087Z'- token: oKXZZsptL87xzBuk1G8uqkhE+ created_at: '2021-11-01T22:36:11.703Z'+ updated_at: '2021-11-01T22:36:11.711Z'+ token: Y8TkkpY33TiKQZD4W7RHcu7Zvariant_included: falserelationships:wished_items:@@ -12188,10 +12197,18 @@ components:properties:name:type: string+ example: Main Menu+ description: Give this Menu a name.location:type: string+ enum:+ - header+ - footer+ description: Set the location this menu appears in the website.locale:type: string+ example: en-US+ description: Set the language of this menu.required:- menux-internal: true@@ -12203,10 +12220,18 @@ components:properties:name:type: string+ example: Main Menu+ description: Give this Menu a name.location:type: string+ enum:+ - header+ - footer+ description: Set the location this menu appears in the website.locale:type: string+ example: en-US+ description: Set the language of this menu.required:- menux-internal: true@@ -12221,24 +12246,59 @@ components:properties:name:type: string+ example: T-Shirts+ description: The name of this Menu Itemcode:type: string+ nullable: true+ example: MEN-TS+ description: Give this Menu Item a code to identify this Menu Item from+ others. This is especially useful when using Container type Menu Items+ to group items.subtitle:type: string+ nullable: true+ example: Shop men's T-Shirts+ description: Set an optional subtitle for the Menu Item, this is useful+ if your menu has promotional links that require more than just a link+ name.destination:type: string+ nullable: true+ example: https://getvendo.com+ description: 'Used when the linked_resource_type is set to: URL'menu_id:- type: string+ type: integer+ example: 1+ description: Specify the ID of the Menu this item belongs to.new_window:type: boolean+ description: When set to `true` the link will be opened in a new tab+ or window.item_type:type: string+ enum:+ - Link+ - Container+ description: Links are standard links, where as Containers are used+ to group links.linked_resource_type:type: string+ enum:+ - URL+ - Spree::Taxon+ - Spree::Product+ - Spree::CmsPage+ description: 'Set the type of resource you want to link to, or set to:+ URL to use the destination field for an external link.'linked_resource_id:type: integer+ example: 1+ nullable: true+ description: The ID of the resource you are linking to.required:- menu_item+ title: Create a Menu Itemx-internal: trueupdate_menu_item_params:type: object@@ -12248,35 +12308,80 @@ components:properties:name:type: string+ example: T-Shirts+ description: The name of this Menu Itemcode:type: string+ nullable: true+ example: MEN-TS+ description: Give this Menu Item a code to identify this Menu Item from+ others. This is especially useful when using Container type Menu Items+ to group items.subtitle:type: string+ nullable: true+ example: Shop men's T-Shirts+ description: Set an optional subtitle for the Menu Item, this is useful+ if your menu has promotional links that require more than just a link+ name.destination:type: string+ nullable: true+ example: https://getvendo.com+ description: 'Used when the linked_resource_type is set to: URL'menu_id:- type: string+ type: integer+ example: 1+ description: Specify the ID of the Menu this item belongs to.new_window:type: boolean+ description: When set to `true` the link will be opened in a new tab+ or window.item_type:type: string+ enum:+ - Link+ - Container+ description: Links are standard links, where as Containers are used+ to group links.linked_resource_type:type: string+ enum:+ - URL+ - Spree::Taxon+ - Spree::Product+ - Spree::CmsPage+ description: 'Set the type of resource you want to link to, or set to:+ URL to use the destination field for an external link.'linked_resource_id:type: integer+ example: 1+ nullable: true+ description: The ID of the resource you are linking to.required:- menu_item+ title: Update a Menu Itemx-internal: true- menu_item_reposition_params:+ menu_item_reposition:type: objectproperties:- new_parent_id:- type: integer- new_position_idx:- type: integer+ menu_item:+ type: object+ required:+ - new_parent_id+ - new_position_idx+ properties:+ new_parent_id:+ type: integer+ example: 1+ description: The ID of the new target parent Menu Item.+ new_position_idx:+ type: integer+ example: 1+ description: The new index position of the Menu Item within its parentrequired:- - new_parent_id- - new_position_idx+ - menu_item+ title: Reposition a Menu Itemx-internal: truecreate_option_type_params:type: object@@ -12376,7 +12481,7 @@ components:completed_at:type: stringformat: date_time- example: 2021-11-01 16:15:03 UTC+ example: 2021-11-01 22:35:35 UTCbill_address_id:type: stringexample: '1'@@ -12444,7 +12549,7 @@ components:approved_at:type: stringformat: date_time- example: 2021-11-01 16:15:03 UTC+ example: 2021-11-01 22:35:35 UTCconfirmation_delivered:type: booleanexample: true@@ -12511,7 +12616,7 @@ components:completed_at:type: stringformat: date_time- example: 2021-11-01 16:15:03 UTC+ example: 2021-11-01 22:35:35 UTCbill_address_id:type: stringexample: '1'@@ -12579,7 +12684,7 @@ components:approved_at:type: stringformat: date_time- example: 2021-11-01 16:15:03 UTC+ example: 2021-11-01 22:35:35 UTCconfirmation_delivered:type: booleanexample: truediff --git a/api/spec/integration/api/v2/platform/menu_items_spec.rb b/api/spec/integration/api/v2/platform/menu_items_spec.rbindex 226d0b4eb7..28f247a4bd 100644--- a/api/spec/integration/api/v2/platform/menu_items_spec.rb+++ b/api/spec/integration/api/v2/platform/menu_items_spec.rb@@ -5,8 +5,8 @@ describe 'Menu Items API', swagger: true doresource_name = 'Menu Item'options = {- include_example: 'linked_resource',- filter_examples: [{ name: 'filter[menu_item_name_eq]', example: 'Women' }]+ include_example: 'menu,icon,parent,children,linked_resource',+ filter_examples: [{ name: 'filter[name_eq]', example: 'T-Shirts' }]}let(:menu) { create(:menu, store: store) }@@ -19,18 +19,24 @@ describe 'Menu Items API', swagger: true dolet(:valid_create_param_value) { build(:menu_item, menu: menu).attributes }let(:valid_update_param_value) do{- name: 'Menu Item One'+ menu_item: {+ name: 'Menu Item One'+ }}endlet(:invalid_param_value) do{- name: '',+ menu_item: {+ name: ''+ }}endlet(:valid_update_position_param_value) do{- new_parent_id: menu_item_two.id,- new_position_idx: 0+ menu_item: {+ new_parent_id: menu_item_two.id,+ new_position_idx: 0+ }}end@@ -44,15 +50,9 @@ describe 'Menu Items API', swagger: true dodescription 'Reposition a Menu Item'consumes 'application/json'parameter name: :id, in: :path, type: :string- parameter name: :menu_item, in: :body, schema: { '$ref' => '#/components/schemas/menu_item_reposition_params' }+ parameter name: :menu_item, in: :body, schema: { '$ref' => '#/components/schemas/menu_item_reposition' }let(:menu_item) { valid_update_position_param_value }- let(:invalid_param_value) do- {- new_parent_id: 'invalid',- new_position_idx: 'invalid'- }- endit_behaves_like 'record updated'it_behaves_like 'record not found', :menu_itemdiff --git a/api/spec/integration/api/v2/platform/menus_spec.rb b/api/spec/integration/api/v2/platform/menus_spec.rbindex c50e5adc9a..700c699d6d 100644--- a/api/spec/integration/api/v2/platform/menus_spec.rb+++ b/api/spec/integration/api/v2/platform/menus_spec.rb@@ -6,7 +6,8 @@ describe 'Menus API', swagger: true doresource_name = 'Menu'options = {include_example: 'menu_items',- filter_examples: [{ name: 'filter[location_eq]', example: 'header' }]+ filter_examples: [{ name: 'filter[name_eq]', example: 'Main Menu' },+ { name: 'filter[location_eq]', example: 'header' }]}let(:id) { create(:menu, name: 'Main Menu').id }@@ -44,8 +45,7 @@ describe 'Menus API', swagger: true do{name: '',locale: '',- location: '',- store: ''+ location: ''}enddiff --git a/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb b/api/spec/requests/spree/api/v2/platform/menu_items_spec.rbindex ed14173285..41a9143aa5 100644--- a/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb+++ b/api/spec/requests/spree/api/v2/platform/menu_items_spec.rb@@ -12,7 +12,31 @@ describe 'Platform API v2 Menu Items spec', type: :request dodescribe 'menu_item#reposition' docontext 'with no params' do- let(:params) { nil }+ let(:params) do+ {+ menu_item: {+ new_parent_id: nil,+ new_position_idx: nil+ }+ }+ end++ before do+ patch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params+ end++ it_behaves_like 'returns 404 HTTP status'+ end++ context 'with none existing parent ID' do+ let(:params) do+ {+ menu_item: {+ new_parent_id: 999129192192,+ new_position_idx: 0+ }+ }+ endbefore dopatch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params@@ -22,7 +46,14 @@ describe 'Platform API v2 Menu Items spec', type: :request doendcontext 'with correct params' do- let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 0 } }+ let(:params) do+ {+ menu_item: {+ new_parent_id: menu_item_b.id,+ new_position_idx: 0+ }+ }+ endbefore dopatch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: params@@ -41,8 +72,15 @@ describe 'Platform API v2 Menu Items spec', type: :request doendend- context 'with correct params moving within same item' do- let(:params) { { new_parent_id: menu_item_b.id, new_position_idx: 1 } }+ context 'with correct params moving within the same item' do+ let(:params) do+ {+ menu_item: {+ new_parent_id: menu_item_b.id,+ new_position_idx: 1+ }+ }+ endbefore dopatch "/api/v2/platform/menu_items/#{menu_item_a.id}/reposition", headers: bearer_token, params: paramsdiff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rbindex 2832a21fb7..88b3c15c99 100644--- a/api/spec/swagger_helper.rb+++ b/api/spec/swagger_helper.rb@@ -388,9 +388,9 @@ RSpec.configure do |config|type: :object,required: %w[name location locale],properties: {- name: { type: :string },- location: { type: :string },- locale: { type: :string }+ name: { type: :string, example: 'Main Menu', description: 'Give this Menu a name.' },+ location: { type: :string, enum: ['header', 'footer'], description: 'Set the location this menu appears in the website.' },+ locale: { type: :string, example: 'en-US', description: 'Set the language of this menu.' }}}},@@ -403,9 +403,9 @@ RSpec.configure do |config|menu: {type: :object,properties: {- name: { type: :string },- location: { type: :string },- locale: { type: :string }+ name: { type: :string, example: 'Main Menu', description: 'Give this Menu a name.' },+ location: { type: :string, enum: ['header', 'footer'], description: 'Set the location this menu appears in the website.' },+ locale: { type: :string, example: 'en-US', description: 'Set the language of this menu.' }}}},@@ -421,19 +421,20 @@ RSpec.configure do |config|type: :object,required: %w[name menu_id],properties: {- name: { type: :string },- code: { type: :string },- subtitle: { type: :string },- destination: { type: :string },- menu_id: { type: :string },- new_window: { type: :boolean },- item_type: { type: :string },- linked_resource_type: { type: :string },- linked_resource_id: { type: :integer }+ name: { type: :string, example: 'T-Shirts', description: 'The name of this Menu Item'},+ code: { type: :string, nullable: true, example: 'MEN-TS', description: 'Give this Menu Item a code to identify this Menu Item from others. This is especially useful when using Container type Menu Items to group items.' },+ subtitle: { type: :string, nullable: true, example: "Shop men's T-Shirts", description: 'Set an optional subtitle for the Menu Item, this is useful if your menu has promotional links that require more than just a link name.' },+ destination: { type: :string, nullable: true, example: 'https://getvendo.com', description: 'Used when the linked_resource_type is set to: URL' },+ menu_id: { type: :integer, example: 1, description: 'Specify the ID of the Menu this item belongs to.' },+ new_window: { type: :boolean, description: 'When set to `true` the link will be opened in a new tab or window.' },+ item_type: { type: :string, enum: ['Link', 'Container'], description: 'Links are standard links, where as Containers are used to group links.' },+ linked_resource_type: { type: :string, enum: ['URL', 'Spree::Taxon', 'Spree::Product', 'Spree::CmsPage'], description: 'Set the type of resource you want to link to, or set to: URL to use the destination field for an external link.' },+ linked_resource_id: { type: :integer, example: 1, nullable: true, description: 'The ID of the resource you are linking to.' }}}},required: %w[menu_item],+ title: 'Create a Menu Item','x-internal': true},update_menu_item_params: {@@ -442,28 +443,36 @@ RSpec.configure do |config|menu_item: {type: :object,properties: {- name: { type: :string },- code: { type: :string },- subtitle: { type: :string },- destination: { type: :string },- menu_id: { type: :string },- new_window: { type: :boolean },- item_type: { type: :string },- linked_resource_type: { type: :string },- linked_resource_id: { type: :integer }+ name: { type: :string, example: 'T-Shirts', description: 'The name of this Menu Item'},+ code: { type: :string, nullable: true, example: 'MEN-TS', description: 'Give this Menu Item a code to identify this Menu Item from others. This is especially useful when using Container type Menu Items to group items.' },+ subtitle: { type: :string, nullable: true, example: "Shop men's T-Shirts", description: 'Set an optional subtitle for the Menu Item, this is useful if your menu has promotional links that require more than just a link name.' },+ destination: { type: :string, nullable: true, example: 'https://getvendo.com', description: 'Used when the linked_resource_type is set to: URL' },+ menu_id: { type: :integer, example: 1, description: 'Specify the ID of the Menu this item belongs to.' },+ new_window: { type: :boolean, description: 'When set to `true` the link will be opened in a new tab or window.' },+ item_type: { type: :string, enum: ['Link', 'Container'], description: 'Links are standard links, where as Containers are used to group links.' },+ linked_resource_type: { type: :string, enum: ['URL', 'Spree::Taxon', 'Spree::Product', 'Spree::CmsPage'], description: 'Set the type of resource you want to link to, or set to: URL to use the destination field for an external link.' },+ linked_resource_id: { type: :integer, example: 1, nullable: true, description: 'The ID of the resource you are linking to.' }}}},required: %w[menu_item],+ title: 'Update a Menu Item','x-internal': true},- menu_item_reposition_params: {+ menu_item_reposition: {type: :object,properties: {- new_parent_id: { type: :integer },- new_position_idx: { type: :integer }+ menu_item: {+ type: :object,+ required: %w[new_parent_id new_position_idx],+ properties: {+ new_parent_id: { type: :integer, example: 1, description: 'The ID of the new target parent Menu Item.' },+ new_position_idx: { type: :integer, example: 1, description: 'The new index position of the Menu Item within its parent' }+ }+ }},- required: %w[new_parent_id new_position_idx],+ required: %w[menu_item],+ title: 'Reposition a Menu Item','x-internal': true},