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
[SD-1505] - Add Shipping Methods To Platform API v2 (#11433)
Matthew Kennedy7b83625f7c89
diff --git a/api/app/controllers/spree/api/v2/platform/shipping_methods_controller.rb b/api/app/controllers/spree/api/v2/platform/shipping_methods_controller.rbnew file mode 100644index 0000000000..8a22b163b9--- /dev/null+++ b/api/app/controllers/spree/api/v2/platform/shipping_methods_controller.rb@@ -0,0 +1,49 @@+module Spree+ module Api+ module V2+ module Platform+ class ShippingMethodsController < ResourceController+ def create+ resource = model_class.new(permitted_resource_params)+ assign_shipping_categories(resource, params)+ ensure_current_store(resource)++ if resource.save+ render_serialized_payload(201) { serialize_resource(resource) }+ else+ render_error_payload(resource.errors)+ end+ end++ def update+ assign_shipping_categories(resource, params)+ super+ end++ private++ def assign_shipping_categories(resource, params)+ shipping_category_ids = Spree::ShippingCategory.where(id: params[:shipping_category_ids]).ids++ if resource.class.method_defined?(:shipping_categories) && shipping_category_ids.present?+ resource.shipping_category_ids = shipping_category_ids.compact.uniq+ end+ end++ def model_class+ Spree::ShippingMethod+ end++ def spree_permitted_attributes+ Spree::ShippingMethod.json_api_permitted_attributes + [+ {+ shipping_category_ids: [],+ calculator_attributes: {}+ }+ ]+ end+ end+ end+ end+ end+enddiff --git a/api/app/serializers/spree/api/v2/platform/calculator_serializer.rb b/api/app/serializers/spree/api/v2/platform/calculator_serializer.rbnew file mode 100644index 0000000000..ef50a9e419--- /dev/null+++ b/api/app/serializers/spree/api/v2/platform/calculator_serializer.rb@@ -0,0 +1,17 @@+module Spree+ module Api+ module V2+ module Platform+ class CalculatorSerializer < BaseSerializer+ include ResourceSerializerConcern++ attributes :type++ attribute :preferences do |calculator|+ calculator.preferences+ end+ end+ end+ end+ end+enddiff --git a/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb b/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rbindex fb4e48d2f7..c33704a4a7 100644--- a/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb+++ b/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb@@ -3,7 +3,12 @@ module Spreemodule V2module Platformclass ShippingMethodSerializer < BaseSerializer- include ResourceSerializerConcern+ attributes :name, :code, :admin_name, :display_on, :tracking_url++ has_many :shipping_categories+ has_many :shipping_rates+ belongs_to :tax_category+ has_one :calculatorendendenddiff --git a/api/config/routes.rb b/api/config/routes.rbindex 8d7db100ad..47fc5b6804 100644--- a/api/config/routes.rb+++ b/api/config/routes.rb@@ -308,6 +308,7 @@ Spree::Core::Engine.add_routes do# Configurations APIresources :shipping_categories+ resources :shipping_methods# Webhooks APInamespace :webhooks dodiff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yamlindex 7242246b96..e52d8d4d23 100644--- a/api/docs/v2/platform/index.yaml+++ b/api/docs/v2/platform/index.yaml@@ -69,8 +69,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-10-26T19:53:15.460Z'- updated_at: '2021-10-26T19:53:15.460Z'+ created_at: '2021-10-27T09:25:11.219Z'+ updated_at: '2021-10-27T09:25:11.219Z'deleted_at:label:relationships:@@ -97,8 +97,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-10-26T19:53:15.472Z'- updated_at: '2021-10-26T19:53:15.472Z'+ created_at: '2021-10-27T09:25:11.230Z'+ updated_at: '2021-10-27T09:25:11.230Z'deleted_at:label:relationships:@@ -168,8 +168,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-10-26T19:53:15.836Z'- updated_at: '2021-10-26T19:53:15.836Z'+ created_at: '2021-10-27T09:25:11.448Z'+ updated_at: '2021-10-27T09:25:11.448Z'deleted_at:label:relationships:@@ -259,8 +259,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-10-26T19:53:15.907Z'- updated_at: '2021-10-26T19:53:15.907Z'+ created_at: '2021-10-27T09:25:11.480Z'+ updated_at: '2021-10-27T09:25:11.480Z'deleted_at:label:relationships:@@ -333,8 +333,8 @@ paths:state_name:alternative_phone: 555-555-0199company: Company- created_at: '2021-10-26T19:53:16.040Z'- updated_at: '2021-10-26T19:53:16.057Z'+ created_at: '2021-10-27T09:25:11.527Z'+ updated_at: '2021-10-27T09:25:11.534Z'deleted_at:label:relationships:@@ -466,8 +466,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-10-26T19:53:16.391Z'- updated_at: '2021-10-26T19:53:16.391Z'+ created_at: '2021-10-27T09:25:11.723Z'+ updated_at: '2021-10-27T09:25:11.723Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -493,8 +493,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-10-26T19:53:16.431Z'- updated_at: '2021-10-26T19:53:16.431Z'+ created_at: '2021-10-27T09:25:11.739Z'+ updated_at: '2021-10-27T09:25:11.739Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -563,8 +563,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-10-26T19:53:16.858Z'- updated_at: '2021-10-26T19:53:16.858Z'+ created_at: '2021-10-27T09:25:12.006Z'+ updated_at: '2021-10-27T09:25:12.006Z'state: openincluded: falsedisplay_amount: "$100.00"@@ -642,8 +642,8 @@ paths:label: Shippingmandatory:eligible: true- created_at: '2021-10-26T19:53:17.041Z'- updated_at: '2021-10-26T19:53:17.051Z'+ created_at: '2021-10-27T09:25:12.099Z'+ updated_at: '2021-10-27T09:25:12.103Z'state: openincluded: falsedisplay_amount: "$1.00"@@ -715,8 +715,8 @@ paths:label: New labelmandatory:eligible: true- created_at: '2021-10-26T19:53:17.394Z'- updated_at: '2021-10-26T19:53:17.421Z'+ created_at: '2021-10-27T09:25:12.275Z'+ updated_at: '2021-10-27T09:25:12.293Z'state: openincluded: falsedisplay_amount: "$15.00"@@ -844,8 +844,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-10-26T19:53:18.510Z'- updated_at: '2021-10-26T19:53:18.510Z'+ created_at: '2021-10-27T09:25:12.824Z'+ updated_at: '2021-10-27T09:25:12.824Z'relationships:product:data:@@ -859,8 +859,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-10-26T19:53:18.654Z'- updated_at: '2021-10-26T19:53:18.654Z'+ created_at: '2021-10-27T09:25:12.898Z'+ updated_at: '2021-10-27T09:25:12.898Z'relationships:product:data:@@ -917,8 +917,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-10-26T19:53:19.343Z'- updated_at: '2021-10-26T19:53:19.343Z'+ created_at: '2021-10-27T09:25:13.503Z'+ updated_at: '2021-10-27T09:25:13.503Z'relationships:product:data:@@ -981,8 +981,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-10-26T19:53:19.618Z'- updated_at: '2021-10-26T19:53:19.618Z'+ created_at: '2021-10-27T09:25:13.658Z'+ updated_at: '2021-10-27T09:25:13.658Z'relationships:product:data:@@ -1042,8 +1042,8 @@ paths:type: classificationattributes:position: 1- created_at: '2021-10-26T19:53:20.120Z'- updated_at: '2021-10-26T19:53:20.120Z'+ created_at: '2021-10-27T09:25:13.953Z'+ updated_at: '2021-10-27T09:25:13.953Z'relationships:product:data:@@ -1153,8 +1153,8 @@ paths:type: classificationattributes:position: 2- created_at: '2021-10-26T19:53:22.267Z'- updated_at: '2021-10-26T19:53:22.357Z'+ created_at: '2021-10-27T09:25:14.639Z'+ updated_at: '2021-10-27T09:25:14.657Z'relationships:product:data:@@ -1245,35 +1245,34 @@ paths:- id: '1'type: cms_pageattributes:- title: Officiis mollitia dolor sunt consequuntur.+ title: Veritatis omnis totam iusto porro sequi veniam natus.meta_title:content:meta_description:visible: true- slug: officiis-mollitia-dolor-sunt-consequuntur+ slug: veritatis-omnis-totam-iusto-porro-sequi-veniam-natustype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-10-26T19:53:23.008Z'- updated_at: '2021-10-26T19:53:23.008Z'+ created_at: '2021-10-27T09:25:15.044Z'+ updated_at: '2021-10-27T09:25:15.044Z'relationships:cms_sections:data: []- id: '2'type: cms_pageattributes:- title: Id est iure illo molestias quibusdam consequatur quidem- quia.+ title: Iure asperiores quasi ea nihil iusto.meta_title:content:meta_description:visible: true- slug: id-est-iure-illo-molestias-quibusdam-consequatur-quidem-quia+ slug: iure-asperiores-quasi-ea-nihil-iustotype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-10-26T19:53:23.013Z'- updated_at: '2021-10-26T19:53:23.013Z'+ created_at: '2021-10-27T09:25:15.047Z'+ updated_at: '2021-10-27T09:25:15.047Z'relationships:cms_sections:data: []@@ -1323,17 +1322,17 @@ paths:id: '5'type: cms_pageattributes:- title: Aperiam officia at recusandae praesentium aliquid expedita.+ title: Sequi quisquam sed sunt in nesciunt.meta_title:content:meta_description:visible: true- slug: aperiam-officia-at-recusandae-praesentium-aliquid-expedita+ slug: sequi-quisquam-sed-sunt-in-nesciunttype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-10-26T19:53:23.149Z'- updated_at: '2021-10-26T19:53:23.149Z'+ created_at: '2021-10-27T09:25:15.125Z'+ updated_at: '2021-10-27T09:25:15.125Z'relationships:cms_sections:data: []@@ -1389,17 +1388,17 @@ paths:id: '6'type: cms_pageattributes:- title: Aliquid dolores molestiae commodi quaerat vitae odio.+ title: Facilis itaque nam id esse quaerat et ratione.meta_title:content:meta_description:visible: true- slug: aliquid-dolores-molestiae-commodi-quaerat-vitae-odio+ slug: facilis-itaque-nam-id-esse-quaerat-et-rationetype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-10-26T19:53:23.208Z'- updated_at: '2021-10-26T19:53:23.208Z'+ created_at: '2021-10-27T09:25:15.162Z'+ updated_at: '2021-10-27T09:25:15.162Z'relationships:cms_sections:data: []@@ -1457,12 +1456,12 @@ paths:content:meta_description:visible: true- slug: mollitia-ab-assumenda-officia-amet-fuga-rerum+ slug: occaecati-adipisci-temporibus-placeat-nihil-magnam-cumtype: Spree::Cms::Pages::StandardPagelocale: endeleted_at:- created_at: '2021-10-26T19:53:23.309Z'- updated_at: '2021-10-26T19:53:23.328Z'+ created_at: '2021-10-27T09:25:15.212Z'+ updated_at: '2021-10-27T09:25:15.220Z'relationships:cms_sections:data: []@@ -1576,8 +1575,7 @@ paths:- id: '1'type: cms_sectionattributes:- name: Exercitationem amet atque commodi eos maiores animi- autem adipisci.+ name: Deserunt quisquam deleniti incidunt voluptas.content: {}settings:gutters: No Gutters@@ -1586,8 +1584,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 1linked_resource_type: Spree::Taxon- created_at: '2021-10-26T19:53:23.634Z'- updated_at: '2021-10-26T19:53:23.634Z'+ created_at: '2021-10-27T09:25:15.383Z'+ updated_at: '2021-10-27T09:25:15.383Z'relationships:cms_page:data:@@ -1598,7 +1596,7 @@ paths:- id: '2'type: cms_sectionattributes:- name: Adipisci eum nulla nobis quasi.+ name: Eius quam labore hic officiis pariatur.content:link_type_one: Spree::Taxonlink_type_two: Spree::Taxon@@ -1610,8 +1608,8 @@ paths:type: Spree::Cms::Sections::ImageGalleryposition: 2linked_resource_type:- created_at: '2021-10-26T19:53:23.639Z'- updated_at: '2021-10-26T19:53:23.639Z'+ created_at: '2021-10-27T09:25:15.388Z'+ updated_at: '2021-10-27T09:25:15.388Z'relationships:cms_page:data:@@ -1622,7 +1620,7 @@ paths:- id: '3'type: cms_sectionattributes:- name: Molestias quos dicta rem animi officia sed.+ name: Modi necessitatibus iure quas molestias dolor.content: {}settings:gutters: No Gutters@@ -1631,8 +1629,8 @@ paths:type: Spree::Cms::Sections::FeaturedArticleposition: 3linked_resource_type: Spree::Taxon- created_at: '2021-10-26T19:53:23.655Z'- updated_at: '2021-10-26T19:53:23.655Z'+ created_at: '2021-10-27T09:25:15.397Z'+ updated_at: '2021-10-27T09:25:15.397Z'relationships:cms_page:data:@@ -1643,7 +1641,7 @@ paths:- id: '4'type: cms_sectionattributes:- name: Sed ipsam nam vero rerum illum eos rem.+ name: Quae delectus repudiandae error similique.content: {}settings:gutters: No Gutters@@ -1652,8 +1650,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:23.670Z'- updated_at: '2021-10-26T19:53:23.670Z'+ created_at: '2021-10-27T09:25:15.404Z'+ updated_at: '2021-10-27T09:25:15.404Z'relationships:cms_page:data:@@ -1666,7 +1664,8 @@ paths:- id: '5'type: cms_sectionattributes:- name: Quaerat pariatur ratione suscipit neque magni ducimus.+ name: Architecto dolorum natus laudantium reprehenderit libero+ aliquid.content: {}settings:gutters: No Gutters@@ -1675,8 +1674,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 5linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:23.684Z'- updated_at: '2021-10-26T19:53:23.684Z'+ created_at: '2021-10-27T09:25:15.411Z'+ updated_at: '2021-10-27T09:25:15.411Z'relationships:cms_page:data:@@ -1732,7 +1731,7 @@ paths:id: '14'type: cms_sectionattributes:- name: Debitis odit corporis repudiandae officiis.+ name: Iure voluptate dolorum aliquam architecto rerum explicabo.content: {}settings:gutters: No Gutters@@ -1741,8 +1740,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:23.985Z'- updated_at: '2021-10-26T19:53:23.985Z'+ created_at: '2021-10-27T09:25:15.567Z'+ updated_at: '2021-10-27T09:25:15.567Z'relationships:cms_page:data:@@ -1804,7 +1803,7 @@ paths:id: '21'type: cms_sectionattributes:- name: Ab aut architecto quidem qui.+ name: Reiciendis est neque iusto explicabo odio illum.content: {}settings:gutters: No Gutters@@ -1813,8 +1812,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:24.295Z'- updated_at: '2021-10-26T19:53:24.295Z'+ created_at: '2021-10-27T09:25:15.702Z'+ updated_at: '2021-10-27T09:25:15.702Z'relationships:cms_page:data:@@ -1882,8 +1881,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 4linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:24.608Z'- updated_at: '2021-10-26T19:53:24.626Z'+ created_at: '2021-10-27T09:25:15.984Z'+ updated_at: '2021-10-27T09:25:15.995Z'relationships:cms_page:data:@@ -1985,7 +1984,7 @@ paths:id: '58'type: cms_sectionattributes:- name: Doloribus totam nemo eligendi rerum.+ name: Ducimus perferendis suscipit animi mollitia deleniti.content: {}settings:gutters: No Gutters@@ -1994,8 +1993,8 @@ paths:type: Spree::Cms::Sections::HeroImageposition: 3linked_resource_type: Spree::Product- created_at: '2021-10-26T19:53:25.429Z'- updated_at: '2021-10-26T19:53:25.490Z'+ created_at: '2021-10-27T09:25:16.570Z'+ updated_at: '2021-10-27T09:25:16.584Z'relationships:cms_page:data:@@ -2053,9 +2052,9 @@ paths:name: United States of Americanumcode: 840states_required: true- updated_at: '2021-10-26T19:53:25.831Z'+ updated_at: '2021-10-27T09:25:16.712Z'zipcode_required: true- created_at: '2021-10-26T19:53:25.831Z'+ created_at: '2021-10-27T09:25:16.712Z'relationships:states:data: []@@ -2068,9 +2067,9 @@ paths:name: NAME_2numcode: 840states_required: false- updated_at: '2021-10-26T19:53:25.843Z'+ updated_at: '2021-10-27T09:25:16.718Z'zipcode_required: true- created_at: '2021-10-26T19:53:25.843Z'+ created_at: '2021-10-27T09:25:16.718Z'relationships:states:data: []@@ -2083,9 +2082,9 @@ paths:name: NAME_3numcode: 840states_required: false- updated_at: '2021-10-26T19:53:25.848Z'+ updated_at: '2021-10-27T09:25:16.720Z'zipcode_required: true- created_at: '2021-10-26T19:53:25.848Z'+ created_at: '2021-10-27T09:25:16.720Z'relationships:states:data: []@@ -2140,9 +2139,9 @@ paths:name: NAME_6numcode: 840states_required: false- updated_at: '2021-10-26T19:53:25.914Z'+ updated_at: '2021-10-27T09:25:16.762Z'zipcode_required: true- created_at: '2021-10-26T19:53:25.914Z'+ created_at: '2021-10-27T09:25:16.762Z'relationships:states:data: []@@ -2194,7 +2193,7 @@ paths:- id: '1'type: digital_linkattributes:- token: K5EgLMHtwPfJsCh75zMWPwFH+ token: s7gduqowtaMYDZ287cAATegDaccess_counter: 0relationships:digital:@@ -2208,7 +2207,7 @@ paths:- id: '2'type: digital_linkattributes:- token: G4QiWEpSefGB2TcuPEyKPLqp+ token: 7wA9gWfzvNvJyDdAaBfYobQHaccess_counter: 0relationships:digital:@@ -2258,7 +2257,7 @@ paths:id: '5'type: digital_linkattributes:- token: AV7N6jvzVBvTREMVo1wZXSNF+ token: KWdqak31SqzbgzAFo91dEN2Haccess_counter: 0relationships:digital:@@ -2317,7 +2316,7 @@ paths:id: '6'type: digital_linkattributes:- token: GuLJGwfJYcQDqSmyxQUVtyMy+ token: YqhFqXGj1KL1Hg1ZWGpu8C6Saccess_counter: 0relationships:digital:@@ -2370,7 +2369,7 @@ paths:id: '8'type: digital_linkattributes:- token: EjW79x55GKWRRH9fpu73fgqi+ token: NTa2wp8h39KEt9iYTRQXE5NLaccess_counter: 0relationships:digital:@@ -2473,7 +2472,7 @@ paths:id: '13'type: digital_linkattributes:- token: RKvnZmRycA7ey1ZfqzaMFoEo+ token: RsX3npYx87EuR9icwx8jUGpFaccess_counter: 0relationships:digital:@@ -2539,7 +2538,7 @@ paths:- id: '15'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--91089785a8a54873a15e57bbe8798438abc1fa2a/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f1122f50b341e13363b63dd6e5d6b355c4ac3acb/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2551,7 +2550,7 @@ paths:- id: '16'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2629ea3e0e1c6d5e936f0c387c54f78ec30f1a77/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--8ea397845f454870872f12b88281c4e7bc7262e9/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2563,7 +2562,7 @@ paths:- id: '17'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--82b3770bb7588a514f01d096dd79fbef2a48ca3a/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--371f7a063a2dff3a23ba82a94fd01324a076b16a/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2618,7 +2617,7 @@ paths:id: '24'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d3c28aa7a661f00e11d7eb64c5afc26a9bf4e5f9/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c68d05d7da214e6070f134cb0545d9b2d78a64f7/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2679,7 +2678,7 @@ paths:id: '28'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d002a3a14502e5f401df676155a0eb55da6653f6/thinking-cat.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9438e2532af706d3ca216b1c842193e07549f64f/thinking-cat.jpg"content_type: image/jpegfilename: thinking-cat.jpgbyte_size: 18090@@ -2737,7 +2736,7 @@ paths:id: '36'type: digitalattributes:- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c2966db772c42e89b8590f799c36512686c263f5/icon_256x256.jpg"+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--da6b88f2419aa96a2cadde1f948237258882d4b2/icon_256x256.jpg"content_type: image/pngfilename: icon_256x256.jpgbyte_size: 818@@ -2858,8 +2857,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-10-26T19:53:38.722Z'- updated_at: '2021-10-26T19:53:38.733Z'+ created_at: '2021-10-27T09:25:23.939Z'+ updated_at: '2021-10-27T09:25:23.948Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -2878,8 +2877,8 @@ paths:display_final_amount: "$10.00"display_adjustment_total: "$0.00"display_additional_tax_total: "$0.00"- display_promo_total: "$0.00"display_included_tax_total: "$0.00"+ display_promo_total: "$0.00"display_pre_tax_amount: "$10.00"relationships:order:@@ -2905,8 +2904,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-10-26T19:53:38.777Z'- updated_at: '2021-10-26T19:53:38.784Z'+ created_at: '2021-10-27T09:25:23.981Z'+ updated_at: '2021-10-27T09:25:23.987Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -2925,8 +2924,8 @@ paths:display_final_amount: "$10.00"display_adjustment_total: "$0.00"display_additional_tax_total: "$0.00"- display_promo_total: "$0.00"display_included_tax_total: "$0.00"+ display_promo_total: "$0.00"display_pre_tax_amount: "$10.00"relationships:order:@@ -2995,8 +2994,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-10-26T19:53:39.090Z'- updated_at: '2021-10-26T19:53:39.127Z'+ created_at: '2021-10-27T09:25:24.204Z'+ updated_at: '2021-10-27T09:25:24.236Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3015,8 +3014,8 @@ paths:display_final_amount: "$10.00"display_adjustment_total: "$0.00"display_additional_tax_total: "$0.00"- display_promo_total: "$0.00"display_included_tax_total: "$0.00"+ display_promo_total: "$0.00"display_pre_tax_amount: "$10.00"relationships:order:@@ -3094,8 +3093,8 @@ paths:attributes:quantity: 1price: '10.0'- created_at: '2021-10-26T19:53:39.325Z'- updated_at: '2021-10-26T19:53:39.335Z'+ created_at: '2021-10-27T09:25:24.357Z'+ updated_at: '2021-10-27T09:25:24.363Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3114,8 +3113,8 @@ paths:display_final_amount: "$10.00"display_adjustment_total: "$0.00"display_additional_tax_total: "$0.00"- display_promo_total: "$0.00"display_included_tax_total: "$0.00"+ display_promo_total: "$0.00"display_pre_tax_amount: "$10.00"relationships:order:@@ -3187,8 +3186,8 @@ paths:attributes:quantity: 4price: '10.0'- created_at: '2021-10-26T19:53:39.666Z'- updated_at: '2021-10-26T19:53:39.721Z'+ created_at: '2021-10-27T09:25:24.589Z'+ updated_at: '2021-10-27T09:25:24.626Z'currency: USDcost_price: '17.0'adjustment_total: '0.0'@@ -3207,8 +3206,8 @@ paths:display_final_amount: "$40.00"display_adjustment_total: "$0.00"display_additional_tax_total: "$0.00"- display_promo_total: "$0.00"display_included_tax_total: "$0.00"+ display_promo_total: "$0.00"display_pre_tax_amount: "$40.00"relationships:order:@@ -3236,10 +3235,10 @@ paths:examples:Example:value:- error: 'Quantity selected of "Product #133 - 8740" is not available.'+ error: 'Quantity selected of "Product #133 - 2830" is not available.'errors:quantity:- - 'selected of "Product #133 - 8740" is not available.'+ - 'selected of "Product #133 - 2830" is not available.''404':description: Record not foundcontent:@@ -3349,8 +3348,8 @@ paths:lft: 2rgt: 3depth: 1- created_at: '2021-10-26T19:53:40.725Z'- updated_at: '2021-10-26T19:53:40.737Z'+ created_at: '2021-10-27T09:25:25.228Z'+ updated_at: '2021-10-27T09:25:25.232Z'link:is_container: falseis_root: false@@ -3386,8 +3385,8 @@ paths:lft: 4rgt: 5depth: 1- created_at: '2021-10-26T19:53:40.888Z'- updated_at: '2021-10-26T19:53:40.897Z'+ created_at: '2021-10-27T09:25:25.279Z'+ updated_at: '2021-10-27T09:25:25.283Z'link:is_container: falseis_root: false@@ -3423,8 +3422,8 @@ paths:lft: 6rgt: 7depth: 1- created_at: '2021-10-26T19:53:41.006Z'- updated_at: '2021-10-26T19:53:41.014Z'+ created_at: '2021-10-27T09:25:25.329Z'+ updated_at: '2021-10-27T09:25:25.333Z'link:is_container: falseis_root: false@@ -3460,8 +3459,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-10-26T19:53:41.109Z'- updated_at: '2021-10-26T19:53:41.116Z'+ created_at: '2021-10-27T09:25:25.377Z'+ updated_at: '2021-10-27T09:25:25.381Z'link:is_container: falseis_root: false@@ -3497,8 +3496,8 @@ paths:lft: 10rgt: 11depth: 1- created_at: '2021-10-26T19:53:41.213Z'- updated_at: '2021-10-26T19:53:41.222Z'+ created_at: '2021-10-27T09:25:25.424Z'+ updated_at: '2021-10-27T09:25:25.428Z'link:is_container: falseis_root: false@@ -3534,8 +3533,8 @@ paths:lft: 12rgt: 13depth: 1- created_at: '2021-10-26T19:53:41.326Z'- updated_at: '2021-10-26T19:53:41.334Z'+ created_at: '2021-10-27T09:25:25.474Z'+ updated_at: '2021-10-27T09:25:25.478Z'link:is_container: falseis_root: false@@ -3571,8 +3570,8 @@ paths:lft: 14rgt: 15depth: 1- created_at: '2021-10-26T19:53:41.429Z'- updated_at: '2021-10-26T19:53:41.437Z'+ created_at: '2021-10-27T09:25:25.521Z'+ updated_at: '2021-10-27T09:25:25.524Z'link:is_container: falseis_root: false@@ -3598,7 +3597,8 @@ paths:- id: '1'type: menu_itemattributes:- name: Ipsam voluptas tenetur sapiente amet.+ name: Et necessitatibus porro magni labore quasi atque aut+ inventore.subtitle:destination:new_window: false@@ -3608,8 +3608,8 @@ paths:lft: 1rgt: 16depth: 0- created_at: '2021-10-26T19:53:40.621Z'- updated_at: '2021-10-26T19:53:41.452Z'+ created_at: '2021-10-27T09:25:25.163Z'+ updated_at: '2021-10-27T09:25:25.533Z'link:is_container: trueis_root: true@@ -3698,8 +3698,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-10-26T19:53:42.795Z'- updated_at: '2021-10-26T19:53:42.803Z'+ created_at: '2021-10-27T09:25:26.279Z'+ updated_at: '2021-10-27T09:25:26.284Z'link:is_container: falseis_root: false@@ -3785,8 +3785,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-10-26T19:53:43.631Z'- updated_at: '2021-10-26T19:53:43.637Z'+ created_at: '2021-10-27T09:25:26.721Z'+ updated_at: '2021-10-27T09:25:26.725Z'link:is_container: falseis_root: false@@ -3868,8 +3868,8 @@ paths:lft: 8rgt: 9depth: 1- created_at: '2021-10-26T19:53:44.957Z'- updated_at: '2021-10-26T19:53:44.997Z'+ created_at: '2021-10-27T09:25:27.425Z'+ updated_at: '2021-10-27T09:25:27.448Z'link:is_container: falseis_root: false@@ -3994,8 +3994,8 @@ paths:lft: 5rgt: 6depth: 2- created_at: '2021-10-26T19:53:48.192Z'- updated_at: '2021-10-26T19:53:48.235Z'+ created_at: '2021-10-27T09:25:29.016Z'+ updated_at: '2021-10-27T09:25:29.040Z'link:is_container: falseis_root: false@@ -4087,25 +4087,25 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-10-26T19:53:49.141Z'- updated_at: '2021-10-26T19:53:49.358Z'+ created_at: '2021-10-27T09:25:29.480Z'+ updated_at: '2021-10-27T09:25:29.598Z'relationships:menu_items:data:+ - id: '89'+ type: menu_item- id: '87'type: menu_item- id: '90'type: menu_item- - id: '89'- type: menu_item- id: '19'type: menuattributes:name: Footer Menulocation: footerlocale: en- created_at: '2021-10-26T19:53:49.155Z'- updated_at: '2021-10-26T19:53:49.567Z'+ created_at: '2021-10-27T09:25:29.490Z'+ updated_at: '2021-10-27T09:25:29.703Z'relationships:menu_items:data:@@ -4164,8 +4164,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-10-26T19:53:50.272Z'- updated_at: '2021-10-26T19:53:50.282Z'+ created_at: '2021-10-27T09:25:30.026Z'+ updated_at: '2021-10-27T09:25:30.034Z'relationships:menu_items:data:@@ -4229,8 +4229,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-10-26T19:53:50.342Z'- updated_at: '2021-10-26T19:53:50.351Z'+ created_at: '2021-10-27T09:25:30.071Z'+ updated_at: '2021-10-27T09:25:30.076Z'relationships:menu_items:data:@@ -4288,8 +4288,8 @@ paths:name: Main Menulocation: headerlocale: en- created_at: '2021-10-26T19:53:50.446Z'- updated_at: '2021-10-26T19:53:50.455Z'+ created_at: '2021-10-27T09:25:30.140Z'+ updated_at: '2021-10-27T09:25:30.150Z'relationships:menu_items:data:@@ -4412,8 +4412,8 @@ paths:name: foo-size-68presentation: Sizeposition: 1- created_at: '2021-10-26T19:53:50.732Z'- updated_at: '2021-10-26T19:53:50.732Z'+ created_at: '2021-10-27T09:25:30.331Z'+ updated_at: '2021-10-27T09:25:30.331Z'filterable: truerelationships:option_values:@@ -4424,8 +4424,8 @@ paths:name: foo-size-69presentation: Sizeposition: 2- created_at: '2021-10-26T19:53:50.736Z'- updated_at: '2021-10-26T19:53:50.736Z'+ created_at: '2021-10-27T09:25:30.333Z'+ updated_at: '2021-10-27T09:25:30.333Z'filterable: truerelationships:option_values:@@ -4472,8 +4472,8 @@ paths:name: foo-size-72presentation: Sizeposition: 1- created_at: '2021-10-26T19:53:50.822Z'- updated_at: '2021-10-26T19:53:50.822Z'+ created_at: '2021-10-27T09:25:30.385Z'+ updated_at: '2021-10-27T09:25:30.385Z'filterable: truerelationships:option_values:@@ -4526,8 +4526,8 @@ paths:name: foo-size-73presentation: Sizeposition: 1- created_at: '2021-10-26T19:53:50.873Z'- updated_at: '2021-10-26T19:53:50.873Z'+ created_at: '2021-10-27T09:25:30.415Z'+ updated_at: '2021-10-27T09:25:30.415Z'filterable: truerelationships:option_values:@@ -4577,8 +4577,8 @@ paths:name: Size-Xpresentation: Sizeposition: 1- created_at: '2021-10-26T19:53:50.954Z'- updated_at: '2021-10-26T19:53:50.967Z'+ created_at: '2021-10-27T09:25:30.465Z'+ updated_at: '2021-10-27T09:25:30.472Z'filterable: truerelationships:option_values:@@ -4702,8 +4702,8 @@ paths:position: 1name: Size-68presentation: S- created_at: '2021-10-26T19:53:51.163Z'- updated_at: '2021-10-26T19:53:51.163Z'+ created_at: '2021-10-27T09:25:30.598Z'+ updated_at: '2021-10-27T09:25:30.598Z'relationships:option_type:data:@@ -4715,8 +4715,8 @@ paths:position: 1name: Size-69presentation: S- created_at: '2021-10-26T19:53:51.172Z'- updated_at: '2021-10-26T19:53:51.172Z'+ created_at: '2021-10-27T09:25:30.605Z'+ updated_at: '2021-10-27T09:25:30.605Z'relationships:option_type:data:@@ -4771,8 +4771,8 @@ paths:position: 1name: Size-72presentation: S- created_at: '2021-10-26T19:53:51.265Z'- updated_at: '2021-10-26T19:53:51.265Z'+ created_at: '2021-10-27T09:25:30.659Z'+ updated_at: '2021-10-27T09:25:30.659Z'relationships:option_type:data:@@ -4831,8 +4831,8 @@ paths:position: 1name: Size-73presentation: S- created_at: '2021-10-26T19:53:51.317Z'- updated_at: '2021-10-26T19:53:51.317Z'+ created_at: '2021-10-27T09:25:30.693Z'+ updated_at: '2021-10-27T09:25:30.693Z'relationships:option_type:data:@@ -4890,8 +4890,8 @@ paths:position: 1name: Mpresentation: S- created_at: '2021-10-26T19:53:51.420Z'- updated_at: '2021-10-26T19:53:51.436Z'+ created_at: '2021-10-27T09:25:30.758Z'+ updated_at: '2021-10-27T09:25:30.767Z'relationships:option_type:data:@@ -5007,7 +5007,7 @@ paths:- id: '40'type: orderattributes:- number: R511335457+ number: R829070879item_total: '0.0'total: '0.0'state: cart@@ -5016,10 +5016,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:51.695Z'- updated_at: '2021-10-26T19:53:51.695Z'+ created_at: '2021-10-27T09:25:30.894Z'+ updated_at: '2021-10-27T09:25:30.894Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5035,6 +5035,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"@@ -5045,9 +5048,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5091,7 +5091,7 @@ paths:- id: '41'type: orderattributes:- number: R370362836+ number: R365730499item_total: '0.0'total: '0.0'state: cart@@ -5100,10 +5100,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:51.709Z'- updated_at: '2021-10-26T19:53:51.709Z'+ created_at: '2021-10-27T09:25:30.902Z'+ updated_at: '2021-10-27T09:25:30.902Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5119,6 +5119,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"@@ -5129,9 +5132,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5218,7 +5218,7 @@ paths:id: '44'type: orderattributes:- number: R813416646+ number: R413377734item_total: '0.0'total: '0.0'state: cart@@ -5229,8 +5229,8 @@ paths:payment_state:email:special_instructions:- created_at: '2021-10-26T19:53:52.135Z'- updated_at: '2021-10-26T19:53:52.154Z'+ created_at: '2021-10-27T09:25:31.178Z'+ updated_at: '2021-10-27T09:25:31.197Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -5246,6 +5246,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$20.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"@@ -5256,9 +5259,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$20.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -5342,7 +5342,7 @@ paths:id: '45'type: orderattributes:- number: R189122828+ number: R293804780item_total: '10.0'total: '110.0'state: delivery@@ -5351,10 +5351,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:52.211Z'- updated_at: '2021-10-26T19:53:52.394Z'+ created_at: '2021-10-27T09:25:31.279Z'+ updated_at: '2021-10-27T09:25:31.454Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5370,6 +5370,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -5380,9 +5383,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5478,7 +5478,7 @@ paths:id: '47'type: orderattributes:- number: R045818661+ number: R170333091item_total: '10.0'total: '110.0'state: delivery@@ -5489,8 +5489,8 @@ paths:payment_state:email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:52.652Z'- updated_at: '2021-10-26T19:53:52.797Z'+ created_at: '2021-10-27T09:25:31.651Z'+ updated_at: '2021-10-27T09:25:31.747Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5506,6 +5506,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -5516,9 +5519,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5664,7 +5664,7 @@ paths:id: '52'type: orderattributes:- number: R188586634+ number: R090356329item_total: '10.0'total: '110.0'state: payment@@ -5673,10 +5673,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:53.627Z'- updated_at: '2021-10-26T19:53:53.814Z'+ created_at: '2021-10-27T09:25:32.390Z'+ updated_at: '2021-10-27T09:25:32.506Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5692,6 +5692,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -5702,9 +5705,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5803,7 +5803,7 @@ paths:id: '54'type: orderattributes:- number: R652930084+ number: R763382132item_total: '10.0'total: '110.0'state: payment@@ -5812,10 +5812,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:54.102Z'- updated_at: '2021-10-26T19:53:54.291Z'+ created_at: '2021-10-27T09:25:32.657Z'+ updated_at: '2021-10-27T09:25:32.766Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5831,6 +5831,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -5841,9 +5844,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -5942,19 +5942,19 @@ paths:id: '56'type: orderattributes:- number: R187867436+ number: R912550965item_total: '10.0'total: '110.0'state: completeadjustment_total: '0.0'- completed_at: '2021-10-26T19:53:54.846Z'+ completed_at: '2021-10-27T09:25:33.115Z'payment_total: '0.0'shipment_state: pendingpayment_state: balance_due- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:54.534Z'- updated_at: '2021-10-26T19:53:54.846Z'+ created_at: '2021-10-27T09:25:32.923Z'+ updated_at: '2021-10-27T09:25:33.115Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -5970,6 +5970,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$110.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -5980,9 +5983,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$110.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6092,7 +6092,7 @@ paths:id: '59'type: orderattributes:- number: R728881316+ number: R577965968item_total: '0.0'total: '0.0'state: cart@@ -6101,10 +6101,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:55.283Z'- updated_at: '2021-10-26T19:53:55.473Z'+ created_at: '2021-10-27T09:25:33.410Z'+ updated_at: '2021-10-27T09:25:33.512Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -6120,6 +6120,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$0.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"display_total: "$0.00"display_outstanding_balance: "$0.00"display_item_total: "$0.00"@@ -6130,9 +6133,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$0.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$0.00"@@ -6226,7 +6226,7 @@ paths:id: '61'type: orderattributes:- number: R425958023+ number: R660890184item_total: '10.0'total: '110.0'state: delivery@@ -6235,10 +6235,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:55.817Z'- updated_at: '2021-10-26T19:53:55.939Z'+ created_at: '2021-10-27T09:25:33.663Z'+ updated_at: '2021-10-27T09:25:33.749Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6254,6 +6254,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -6264,9 +6267,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$110.00"@@ -6364,19 +6364,19 @@ paths:id: '63'type: orderattributes:- number: R581967788+ number: R603490590item_total: '10.0'total: '10.0'state: canceledadjustment_total: '0.0'- completed_at: '2021-10-26T19:53:56.339Z'+ completed_at: '2021-10-27T09:25:34.008Z'payment_total: '0.0'shipment_state: canceledpayment_state: void- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:56.191Z'- updated_at: '2021-10-26T19:53:56.431Z'+ created_at: '2021-10-27T09:25:33.907Z'+ updated_at: '2021-10-27T09:25:34.068Z'currency: USDlast_ip_address:shipment_total: '0.0'@@ -6392,6 +6392,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$0.00"+ display_shipment_total: "$0.00"display_total: "$10.00"display_outstanding_balance: "$0.00"display_item_total: "$10.00"@@ -6402,9 +6405,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$0.00"- display_shipment_total: "$0.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$10.00"@@ -6518,7 +6518,7 @@ paths:id: '66'type: orderattributes:- number: R402237614+ number: R944263805item_total: '10.0'total: '110.0'state: delivery@@ -6527,10 +6527,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:56.847Z'- updated_at: '2021-10-26T19:53:57.041Z'+ created_at: '2021-10-27T09:25:34.346Z'+ updated_at: '2021-10-27T09:25:34.493Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6546,6 +6546,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$110.00"display_outstanding_balance: "$110.00"display_item_total: "$10.00"@@ -6556,9 +6559,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "$0.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "-$15.00"display_total_applied_store_credit: "-$15.00"display_order_total_after_store_credit: "$95.00"@@ -6671,7 +6671,7 @@ paths:id: '69'type: orderattributes:- number: R052375062+ number: R834716913item_total: '10.0'total: '10.0'state: delivery@@ -6680,10 +6680,10 @@ paths:payment_total: '0.0'shipment_state:payment_state:- email: [email protected]+ email: [email protected]special_instructions:- created_at: '2021-10-26T19:53:57.518Z'- updated_at: '2021-10-26T19:53:57.712Z'+ created_at: '2021-10-27T09:25:34.843Z'+ updated_at: '2021-10-27T09:25:34.973Z'currency: USDlast_ip_address:shipment_total: '100.0'@@ -6699,6 +6699,9 @@ paths:taxable_adjustment_total: '0.0'non_taxable_adjustment_total: '0.0'store_owner_notification_delivered:+ display_pre_tax_total: "$10.00"+ display_ship_total: "$100.00"+ display_shipment_total: "$100.00"display_total: "$10.00"display_outstanding_balance: "$10.00"display_item_total: "$10.00"@@ -6709,9 +6712,6 @@ paths:display_additional_tax_total: "$0.00"display_promo_total: "-$100.00"display_included_tax_total: "$0.00"- display_pre_tax_total: "$10.00"- display_ship_total: "$100.00"- display_shipment_total: "$100.00"display_total_applicable_store_credit: "$0.00"display_total_applied_store_credit: "$0.00"display_order_total_after_store_credit: "$10.00"@@ -6847,9 +6847,9 @@ paths:state: invalidresponse_code: '12345'avs_response:- created_at: '2021-10-26T19:53:58.194Z'- updated_at: '2021-10-26T19:53:58.223Z'- number: P2C7I66V+ created_at: '2021-10-27T09:25:35.302Z'+ updated_at: '2021-10-27T09:25:35.322Z'+ number: P4QGNRTGcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -6884,9 +6884,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-10-26T19:53:58.218Z'- updated_at: '2021-10-26T19:53:58.218Z'- number: PO5VXHY6+ created_at: '2021-10-27T09:25:35.318Z'+ updated_at: '2021-10-27T09:25:35.318Z'+ number: PIHNSDRVcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -6968,9 +6968,9 @@ paths:state: checkoutresponse_code: '12345'avs_response:- created_at: '2021-10-26T19:53:58.424Z'- updated_at: '2021-10-26T19:53:58.424Z'- number: P1QTYCF4+ created_at: '2021-10-27T09:25:35.475Z'+ updated_at: '2021-10-27T09:25:35.475Z'+ number: PU1HTEVMcvv_response_code:cvv_response_message:display_amount: "$45.75"@@ -7096,8 +7096,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-10-26T19:53:58.816Z'- updated_at: '2021-10-26T19:53:58.816Z'+ created_at: '2021-10-27T09:25:35.687Z'+ updated_at: '2021-10-27T09:25:35.687Z'code: POP123relationships:promotions:@@ -7106,8 +7106,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-10-26T19:53:58.818Z'- updated_at: '2021-10-26T19:53:58.818Z'+ created_at: '2021-10-27T09:25:35.688Z'+ updated_at: '2021-10-27T09:25:35.688Z'code: POP123relationships:promotions:@@ -7159,8 +7159,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-10-26T19:53:58.887Z'- updated_at: '2021-10-26T19:53:58.887Z'+ created_at: '2021-10-27T09:25:35.732Z'+ updated_at: '2021-10-27T09:25:35.732Z'code: 2021-BFMrelationships:promotions:@@ -7216,8 +7216,8 @@ paths:type: promotion_categoryattributes:name: Promotion Category- created_at: '2021-10-26T19:53:58.940Z'- updated_at: '2021-10-26T19:53:58.940Z'+ created_at: '2021-10-27T09:25:35.760Z'+ updated_at: '2021-10-27T09:25:35.760Z'code: MJOrelationships:promotions:@@ -7272,8 +7272,8 @@ paths:type: promotion_categoryattributes:name: 2021 Promotions- created_at: '2021-10-26T19:53:59.016Z'- updated_at: '2021-10-26T19:53:59.025Z'+ created_at: '2021-10-27T09:25:35.803Z'+ updated_at: '2021-10-27T09:25:35.809Z'code: 2021-Promosrelationships:promotions:@@ -7389,12 +7389,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H96359053526+ number: H35646295824cost: '100.0'shipped_at:state: pending- created_at: '2021-10-26T19:53:59.198Z'- updated_at: '2021-10-26T19:53:59.202Z'+ created_at: '2021-10-27T09:25:35.922Z'+ updated_at: '2021-10-27T09:25:35.925Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7436,12 +7436,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H59091853064+ number: H47099006549cost: '100.0'shipped_at:state: pending- created_at: '2021-10-26T19:53:59.245Z'- updated_at: '2021-10-26T19:53:59.250Z'+ created_at: '2021-10-27T09:25:35.949Z'+ updated_at: '2021-10-27T09:25:35.952Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7532,12 +7532,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H25991999888+ number: H48900022959cost: '100.0'shipped_at:state: pending- created_at: '2021-10-26T19:53:59.712Z'- updated_at: '2021-10-26T19:53:59.763Z'+ created_at: '2021-10-27T09:25:36.228Z'+ updated_at: '2021-10-27T09:25:36.245Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7661,12 +7661,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H42591532645+ number: H21300713909cost: '100.0'shipped_at:state: ready- created_at: '2021-10-26T19:54:01.472Z'- updated_at: '2021-10-26T19:54:01.521Z'+ created_at: '2021-10-27T09:25:37.047Z'+ updated_at: '2021-10-27T09:25:37.076Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7759,12 +7759,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H33937692150+ number: H66647026331cost: '100.0'- shipped_at: '2021-10-26T19:54:02.306Z'+ shipped_at: '2021-10-27T09:25:37.504Z'state: shipped- created_at: '2021-10-26T19:54:02.222Z'- updated_at: '2021-10-26T19:54:02.306Z'+ created_at: '2021-10-27T09:25:37.474Z'+ updated_at: '2021-10-27T09:25:37.504Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7857,12 +7857,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H09098425126+ number: H50025974233cost: '100.0'shipped_at:state: canceled- created_at: '2021-10-26T19:54:03.056Z'- updated_at: '2021-10-26T19:54:03.107Z'+ created_at: '2021-10-27T09:25:37.875Z'+ updated_at: '2021-10-27T09:25:37.901Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -7955,12 +7955,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H05607520051+ number: H81295528393cost: '100.0'shipped_at:state: ready- created_at: '2021-10-26T19:54:03.789Z'- updated_at: '2021-10-26T19:54:03.837Z'+ created_at: '2021-10-27T09:25:38.293Z'+ updated_at: '2021-10-27T09:25:38.321Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8053,12 +8053,12 @@ paths:type: shipmentattributes:tracking: U10000- number: H38199854804+ number: H38343427985cost: '100.0'shipped_at:state: pending- created_at: '2021-10-26T19:54:04.920Z'- updated_at: '2021-10-26T19:54:04.970Z'+ created_at: '2021-10-27T09:25:38.731Z'+ updated_at: '2021-10-27T09:25:38.757Z'adjustment_total: '0.0'additional_tax_total: '0.0'promo_total: '0.0'@@ -8162,14 +8162,14 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #119'- created_at: '2021-10-26T19:54:05.416Z'- updated_at: '2021-10-26T19:54:05.416Z'+ created_at: '2021-10-27T09:25:38.995Z'+ updated_at: '2021-10-27T09:25:38.995Z'- id: '120'type: shipping_categoryattributes:name: 'ShippingCategory #120'- created_at: '2021-10-26T19:54:05.418Z'- updated_at: '2021-10-26T19:54:05.418Z'+ created_at: '2021-10-27T09:25:38.997Z'+ updated_at: '2021-10-27T09:25:38.997Z'meta:count: 2total_count: 2@@ -8217,8 +8217,8 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #123'- created_at: '2021-10-26T19:54:05.497Z'- updated_at: '2021-10-26T19:54:05.497Z'+ created_at: '2021-10-27T09:25:39.041Z'+ updated_at: '2021-10-27T09:25:39.041Z''422':description: invalid requestcontent:@@ -8270,8 +8270,8 @@ paths:type: shipping_categoryattributes:name: 'ShippingCategory #124'- created_at: '2021-10-26T19:54:05.549Z'- updated_at: '2021-10-26T19:54:05.549Z'+ created_at: '2021-10-27T09:25:39.073Z'+ updated_at: '2021-10-27T09:25:39.073Z''404':description: Record not foundcontent:@@ -8322,8 +8322,8 @@ paths:type: shipping_categoryattributes:name: Default- created_at: '2021-10-26T19:54:05.635Z'- updated_at: '2021-10-26T19:54:05.646Z'+ created_at: '2021-10-27T09:25:39.121Z'+ updated_at: '2021-10-27T09:25:39.127Z''422':description: invalid requestcontent:@@ -8389,6 +8389,370 @@ paths:Example:value:error: The access token is invalid+ "/api/v2/platform/shipping_methods":+ get:+ summary: Return a list of Shipping Methods+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Returns a list of Shipping Methods+ operationId: shipping-methods-list+ parameters:+ - name: page+ in: query+ example: 1+ schema:+ type: integer+ - name: per_page+ in: query+ example: 50+ schema:+ type: integer+ - name: include+ in: query+ description: '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: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ - name: filter[name]+ in: query+ description: ''+ example: DHL Express+ schema:+ type: string+ - name: filter[title_cont]+ in: query+ description: ''+ example: About Us+ schema:+ type: string+ responses:+ '200':+ description: Records returned+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ - id: '60'+ type: shipping_method+ attributes:+ name: UPS Ground+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ relationships:+ shipping_categories:+ data:+ - id: '131'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '71'+ type: calculator+ - id: '61'+ type: shipping_method+ attributes:+ name: UPS Ground+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ relationships:+ shipping_categories:+ data:+ - id: '131'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '72'+ type: calculator+ meta:+ count: 2+ total_count: 2+ total_pages: 1+ links:+ self: http://www.example.com/api/v2/platform/shipping_methods?page=1&per_page=&include=&filter[name]=&filter[title_cont]=+ next: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ prev: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ last: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ first: http://www.example.com/api/v2/platform/shipping_methods?filter%5Bname%5D=&filter%5Btitle_cont%5D=&include=&page=1&per_page=+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ post:+ summary: Create a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Creates a Shipping Method+ operationId: create-shipping-method+ parameters:+ - name: include+ in: query+ description: '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: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '201':+ description: record created+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '64'+ type: shipping_method+ attributes:+ name: DHL Express Domestic+ code: DDD+ admin_name: DHL Express- Zone A+ display_on: both+ tracking_url:+ relationships:+ shipping_categories:+ data:+ - id: '133'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ id: '128'+ type: tax_category+ calculator:+ data:+ id: '75'+ type: calculator+ '422':+ description: invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: Calculator can't be blank, Name can't be blank, Display+ on can't be blank, and You must select at least one shipping+ category+ errors:+ calculator:+ - can't be blank+ name:+ - can't be blank+ display_on:+ - can't be blank+ base:+ - You must select at least one shipping category+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/shipping_method_params"+ "/api/v2/platform/shipping_methods/{id}":+ get:+ summary: Return a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Returns a Shipping Method+ operationId: show-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: include+ in: query+ description: '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: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '200':+ description: Record found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '65'+ type: shipping_method+ attributes:+ name: UPS Ground+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ relationships:+ shipping_categories:+ data:+ - id: '134'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '76'+ type: calculator+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ patch:+ summary: Update a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Updates a Shipping Method+ operationId: update-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: include+ in: query+ description: '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: calculator,shipping_categories,shipping_rates,tax_category+ schema:+ type: string+ responses:+ '200':+ description: record updated+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ data:+ id: '67'+ type: shipping_method+ attributes:+ name: FedEx Expedited+ code: UPS_GROUND+ admin_name:+ display_on: both+ tracking_url:+ relationships:+ shipping_categories:+ data:+ - id: '136'+ type: shipping_category+ shipping_rates:+ data: []+ tax_category:+ data:+ calculator:+ data:+ id: '79'+ type: calculator+ '422':+ description: invalid request+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: Name can't be blank+ errors:+ name:+ - can't be blank+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid+ requestBody:+ content:+ application/json:+ schema:+ "$ref": "#/components/schemas/shipping_method_params"+ delete:+ summary: Delete a Shipping Method+ tags:+ - Shipping Methods+ security:+ - bearer_auth: []+ description: Deletes a Shipping Method+ operationId: delete-shipping-method+ parameters:+ - name: id+ in: path+ required: true+ schema:+ type: string+ responses:+ '204':+ description: Record deleted+ '404':+ description: Record not found+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The resource you were looking for could not be found.+ '401':+ description: Authentication Failed+ content:+ application/vnd.api+json:+ examples:+ Example:+ value:+ error: The access token is invalid"/api/v2/platform/taxons":get:summary: Return a list of Taxons@@ -8437,6 +8801,41 @@ paths:Example:value:data:+ - id: '32'+ type: taxon+ attributes:+ position: 0+ name: taxon_16+ permalink: taxonomy-16/taxon-16+ lft: 2+ rgt: 3+ description:+ created_at: '2021-10-27T09:25:39.672Z'+ updated_at: '2021-10-27T09:25:39.676Z'+ meta_title:+ meta_description:+ meta_keywords:+ depth: 1+ pretty_name: taxonomy_16 -> taxon_16+ seo_title: taxon_16+ is_root: false+ is_child: true+ is_leaf: true+ relationships:+ parent:+ data:+ id: '31'+ type: taxon+ taxonomy:+ data:+ id: '16'+ type: taxonomy+ children:+ data: []+ image:+ data:+ id: '92'+ type: taxon_image- id: '33'type: taxonattributes:@@ -8446,8 +8845,8 @@ paths:lft: 4rgt: 5description:- created_at: '2021-10-26T19:54:06.051Z'- updated_at: '2021-10-26T19:54:06.059Z'+ created_at: '2021-10-27T09:25:39.723Z'+ updated_at: '2021-10-27T09:25:39.726Z'meta_title:meta_description:meta_keywords:@@ -8481,8 +8880,8 @@ paths:lft: 1rgt: 6description:- created_at: '2021-10-26T19:54:05.832Z'- updated_at: '2021-10-26T19:54:06.081Z'+ created_at: '2021-10-27T09:25:39.613Z'+ updated_at: '2021-10-27T09:25:39.735Z'meta_title:meta_description:meta_keywords:@@ -8507,41 +8906,6 @@ paths:type: taxonimage:data:- - id: '32'- type: taxon- attributes:- position: 0- name: taxon_16- permalink: taxonomy-16/taxon-16- lft: 2- rgt: 3- description:- created_at: '2021-10-26T19:54:05.941Z'- updated_at: '2021-10-26T19:54:05.947Z'- meta_title:- meta_description:- meta_keywords:- depth: 1- pretty_name: taxonomy_16 -> taxon_16- seo_title: taxon_16- is_root: false- is_child: true- is_leaf: true- relationships:- parent:- data:- id: '31'- type: taxon- taxonomy:- data:- id: '16'- type: taxonomy- children:- data: []- image:- data:- id: '92'- type: taxon_imagemeta:count: 3total_count: 3@@ -8594,8 +8958,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-10-26T19:54:06.599Z'- updated_at: '2021-10-26T19:54:06.609Z'+ created_at: '2021-10-27T09:25:39.951Z'+ updated_at: '2021-10-27T09:25:39.956Z'meta_title:meta_description:meta_keywords:@@ -8676,8 +9040,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-10-26T19:54:06.803Z'- updated_at: '2021-10-26T19:54:06.811Z'+ created_at: '2021-10-27T09:25:40.050Z'+ updated_at: '2021-10-27T09:25:40.054Z'meta_title:meta_description:meta_keywords:@@ -8759,8 +9123,8 @@ paths:lft: 2rgt: 3description:- created_at: '2021-10-26T19:54:07.204Z'- updated_at: '2021-10-26T19:54:07.249Z'+ created_at: '2021-10-27T09:25:40.244Z'+ updated_at: '2021-10-27T09:25:40.279Z'meta_title:meta_description:meta_keywords:@@ -8901,9 +9265,9 @@ paths:- id: '97'type: userattributes:- email: [email protected]- created_at: '2021-10-26T19:54:08.130Z'- updated_at: '2021-10-26T19:54:08.130Z'+ email: [email protected]+ created_at: '2021-10-27T09:25:40.713Z'+ updated_at: '2021-10-27T09:25:40.713Z'average_order_value: []lifetime_value: []store_credits: []@@ -8915,9 +9279,9 @@ paths:- id: '98'type: userattributes:- email: [email protected]- created_at: '2021-10-26T19:54:08.142Z'- updated_at: '2021-10-26T19:54:08.142Z'+ email: [email protected]+ created_at: '2021-10-27T09:25:40.718Z'+ updated_at: '2021-10-27T09:25:40.718Z'average_order_value: []lifetime_value: []store_credits: []@@ -8929,9 +9293,9 @@ paths:- id: '99'type: userattributes:- email: [email protected]- created_at: '2021-10-26T19:54:08.146Z'- updated_at: '2021-10-26T19:54:08.146Z'+ email: [email protected]+ created_at: '2021-10-27T09:25:40.719Z'+ updated_at: '2021-10-27T09:25:40.719Z'average_order_value: []lifetime_value: []store_credits: []@@ -8986,9 +9350,9 @@ paths:id: '104'type: userattributes:- email: [email protected]- created_at: '2021-10-26T19:54:08.278Z'- updated_at: '2021-10-26T19:54:08.278Z'+ email: [email protected]+ created_at: '2021-10-27T09:25:40.785Z'+ updated_at: '2021-10-27T09:25:40.785Z'average_order_value: []lifetime_value: []store_credits: []@@ -9047,9 +9411,9 @@ paths:id: '107'type: userattributes:- email: [email protected]- created_at: '2021-10-26T19:54:08.367Z'- updated_at: '2021-10-26T19:54:08.367Z'+ email: [email protected]+ created_at: '2021-10-27T09:25:40.828Z'+ updated_at: '2021-10-27T09:25:40.828Z'average_order_value: []lifetime_value: []store_credits: []@@ -9108,8 +9472,8 @@ paths:type: userattributes:email: [email protected]- created_at: '2021-10-26T19:54:08.499Z'- updated_at: '2021-10-26T19:54:08.515Z'+ created_at: '2021-10-27T09:25:40.894Z'+ updated_at: '2021-10-27T09:25:40.903Z'average_order_value: []lifetime_value: []store_credits: []@@ -9244,12 +9608,12 @@ paths:position: 1cost_currency: USDtrack_inventory: true- updated_at: '2021-10-26T19:54:09.026Z'+ updated_at: '2021-10-27T09:25:41.121Z'discontinue_on:- created_at: '2021-10-26T19:54:09.015Z'+ created_at: '2021-10-27T09:25:41.116Z'display_price: "$19.99"display_compare_at_price:- name: 'Product #184 - 9258'+ name: 'Product #184 - 4541'options_text: ''total_on_hand: 0purchasable: true@@ -9284,21 +9648,21 @@ paths:type: variantattributes:sku: SKU-252- weight: '197.25'- height: '142.68'- depth: '132.22'+ weight: '56.96'+ height: '171.57'+ depth: '198.71'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-10-26T19:54:09.075Z'+ updated_at: '2021-10-27T09:25:41.152Z'discontinue_on:- created_at: '2021-10-26T19:54:09.062Z'+ created_at: '2021-10-27T09:25:41.145Z'display_price: "$19.99"display_compare_at_price:- name: 'Product #184 - 9258'+ name: 'Product #184 - 4541'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -9335,21 +9699,21 @@ paths:type: variantattributes:sku: SKU-253- weight: '90.77'- height: '187.25'- depth: '104.58'+ weight: '172.9'+ height: '83.1'+ depth: '116.34'deleted_at:is_master: falsecost_price: '17.0'position: 3cost_currency: USDtrack_inventory: true- updated_at: '2021-10-26T19:54:09.107Z'+ updated_at: '2021-10-27T09:25:41.171Z'discontinue_on:- created_at: '2021-10-26T19:54:09.096Z'+ created_at: '2021-10-27T09:25:41.165Z'display_price: "$19.99"display_compare_at_price:- name: 'Product #184 - 9258'+ name: 'Product #184 - 4541'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -9435,21 +9799,21 @@ paths:type: variantattributes:sku: SKU-258- weight: '28.82'- height: '21.23'- depth: '8.95'+ weight: '64.85'+ height: '20.14'+ depth: '183.7'deleted_at:is_master: falsecost_price: '17.0'position: 2cost_currency: USDtrack_inventory: true- updated_at: '2021-10-26T19:54:09.457Z'+ updated_at: '2021-10-27T09:25:41.481Z'discontinue_on:- created_at: '2021-10-26T19:54:09.442Z'+ created_at: '2021-10-27T09:25:41.475Z'display_price: "$19.99"display_compare_at_price:- name: 'Product #186 - 8601'+ name: 'Product #186 - 5210'options_text: 'Size: S'total_on_hand: 0purchasable: true@@ -9567,8 +9931,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-10-26T19:54:09.989Z'- updated_at: '2021-10-26T19:54:09.989Z'+ created_at: '2021-10-27T09:25:41.791Z'+ updated_at: '2021-10-27T09:25:41.791Z'- id: '2'type: subscriberattributes:@@ -9576,8 +9940,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-10-26T19:54:09.992Z'- updated_at: '2021-10-26T19:54:09.992Z'+ created_at: '2021-10-27T09:25:41.838Z'+ updated_at: '2021-10-27T09:25:41.838Z'meta:count: 2total_count: 2@@ -9621,8 +9985,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-10-26T19:54:10.064Z'- updated_at: '2021-10-26T19:54:10.064Z'+ created_at: '2021-10-27T09:25:41.894Z'+ updated_at: '2021-10-27T09:25:41.894Z''422':description: invalid requestcontent:@@ -9673,8 +10037,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-10-26T19:54:10.118Z'- updated_at: '2021-10-26T19:54:10.118Z'+ created_at: '2021-10-27T09:25:41.922Z'+ updated_at: '2021-10-27T09:25:41.922Z''404':description: Record not foundcontent:@@ -9721,8 +10085,8 @@ paths:active: truesubscriptions:- "*"- created_at: '2021-10-26T19:54:10.196Z'- updated_at: '2021-10-26T19:54:10.196Z'+ created_at: '2021-10-27T09:25:41.966Z'+ updated_at: '2021-10-27T09:25:41.966Z''422':description: invalid requestcontent:@@ -9831,8 +10195,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:10.616Z'- updated_at: '2021-10-26T19:54:10.616Z'+ created_at: '2021-10-27T09:25:42.281Z'+ updated_at: '2021-10-27T09:25:42.281Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -9846,8 +10210,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:10.698Z'- updated_at: '2021-10-26T19:54:10.698Z'+ created_at: '2021-10-27T09:25:42.340Z'+ updated_at: '2021-10-27T09:25:42.340Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -9861,8 +10225,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:10.775Z'- updated_at: '2021-10-26T19:54:10.775Z'+ created_at: '2021-10-27T09:25:42.385Z'+ updated_at: '2021-10-27T09:25:42.385Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -9876,8 +10240,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:10.844Z'- updated_at: '2021-10-26T19:54:10.844Z'+ created_at: '2021-10-27T09:25:42.433Z'+ updated_at: '2021-10-27T09:25:42.433Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -9934,8 +10298,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:11.530Z'- updated_at: '2021-10-26T19:54:11.530Z'+ created_at: '2021-10-27T09:25:42.802Z'+ updated_at: '2021-10-27T09:25:42.802Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -10001,8 +10365,8 @@ paths:type: wished_itemattributes:quantity: 1- created_at: '2021-10-26T19:54:11.853Z'- updated_at: '2021-10-26T19:54:11.853Z'+ created_at: '2021-10-27T09:25:43.019Z'+ updated_at: '2021-10-27T09:25:43.019Z'display_price: "$19.99"display_total: "$19.99"price: '19.99'@@ -10062,8 +10426,8 @@ paths:type: wished_itemattributes:quantity: 3- created_at: '2021-10-26T19:54:12.345Z'- updated_at: '2021-10-26T19:54:12.356Z'+ created_at: '2021-10-27T09:25:43.381Z'+ updated_at: '2021-10-27T09:25:43.390Z'display_price: "$19.99"display_total: "$59.97"price: '19.99'@@ -10186,9 +10550,9 @@ paths:name: Black Fridayis_private: trueis_default: false- created_at: '2021-10-26T19:54:13.392Z'- updated_at: '2021-10-26T19:54:13.392Z'- token: i5kxfuE6tEswuagL1hhWXGi4+ created_at: '2021-10-27T09:25:44.128Z'+ updated_at: '2021-10-27T09:25:44.128Z'+ token: thTezgwa61NYpVETpnMcnhSVvariant_included: falserelationships:wished_items:@@ -10203,9 +10567,9 @@ paths:name: Birthdayis_private: trueis_default: false- created_at: '2021-10-26T19:54:13.394Z'- updated_at: '2021-10-26T19:54:13.394Z'- token: 7M95SfoRX3Tj7CDDwa7Qr32q+ created_at: '2021-10-27T09:25:44.129Z'+ updated_at: '2021-10-27T09:25:44.129Z'+ token: G45o329ZEJqM2xgjC1Gky1M3variant_included: falserelationships:wished_items:@@ -10263,9 +10627,9 @@ paths:name: Wishlist_26is_private: trueis_default: false- created_at: '2021-10-26T19:54:14.084Z'- updated_at: '2021-10-26T19:54:14.084Z'- token: k2HyjDiJnJYWrW56g9Ci4Cap+ created_at: '2021-10-27T09:25:44.637Z'+ updated_at: '2021-10-27T09:25:44.637Z'+ token: cMVgajutfjmATguqS5XSFn7Uvariant_included: falserelationships:wished_items:@@ -10325,9 +10689,9 @@ paths:name: My Wishlistis_private: trueis_default: false- created_at: '2021-10-26T19:54:14.136Z'- updated_at: '2021-10-26T19:54:14.136Z'- token: uuypoUv7LFFc7rd1YtRFggCF+ created_at: '2021-10-27T09:25:44.679Z'+ updated_at: '2021-10-27T09:25:44.679Z'+ token: 2FcjNTApTq583cEsgTkLALwivariant_included: falserelationships:wished_items:@@ -10384,9 +10748,9 @@ paths:name: My Super Wishlistis_private: trueis_default: false- created_at: '2021-10-26T19:54:14.222Z'- updated_at: '2021-10-26T19:54:14.233Z'- token: aM5hCvdnDEXBisuFxVCfobYn+ created_at: '2021-10-27T09:25:44.738Z'+ updated_at: '2021-10-27T09:25:44.750Z'+ token: 7AJLNKB5co3SczwoDqQnovDXvariant_included: falserelationships:wished_items:@@ -10480,11 +10844,13 @@ tags:- name: Promotion Categories- name: Shipments- name: Shipping Categories+- name: Shipping Methods- name: Taxons- name: Users- name: Webhook Subscribers- name: Wishlists- name: Wished Items+- name: Webhook Subscribers- name: Variantscomponents:securitySchemes:@@ -10689,7 +11055,7 @@ components:completed_at:type: stringformat: date_time- example: 2021-10-26 19:53:14 UTC+ example: 2021-10-27 09:25:10 UTCbill_address_id:type: stringexample: '1'@@ -10757,7 +11123,7 @@ components:approved_at:type: stringformat: date_time- example: 2021-10-26 19:53:14 UTC+ example: 2021-10-27 09:25:10 UTCconfirmation_delivered:type: booleanexample: true@@ -10944,6 +11310,60 @@ components:required:- namex-internal: true+ shipping_method_params:+ type: object+ properties:+ name:+ type: string+ example: DHL Express+ admin_name:+ type: string+ example: DHL Area Code D+ code:+ type: string+ example: DHL-A-D+ tracking_url:+ type: string+ example: dhlexpress.com?tracking=+ display_on:+ type: string+ example: both+ enum:+ - both+ - back_end+ - front_end+ tax_category_id:+ type: string+ example: '1'+ shipping_category_ids:+ type: array+ items:+ allOf:+ - type: string+ example: '2'+ calculator_attributes:+ "$ref": "#/components/schemas/shipping_calculator_params"+ required:+ - name+ - display_on+ - calculator_attributes+ x-internal: true+ shipping_calculator_params:+ type: object+ properties:+ type:+ type: string+ example: Spree::Calculator::Shipping::FlatPercentItemTotal+ enum:+ - Spree::Calculator::Shipping::DigitalDelivery+ - Spree::Calculator::Shipping::FlatPercentItemTotal+ - Spree::Calculator::Shipping::FlatRate+ - Spree::Calculator::Shipping::FlexiRate+ - Spree::Calculator::Shipping::PerItem+ - Spree::Calculator::Shipping::PriceSack+ required:+ - type+ x-internal: truewishlist_params:type: objectproperties:diff --git a/api/spec/integration/api/v2/platform/shipping_methods_spec.rb b/api/spec/integration/api/v2/platform/shipping_methods_spec.rbnew file mode 100644index 0000000000..560ecf3f7e--- /dev/null+++ b/api/spec/integration/api/v2/platform/shipping_methods_spec.rb@@ -0,0 +1,49 @@+require 'swagger_helper'++describe 'Shipping Methods API', swagger: true do+ include_context 'Platform API v2'++ resource_name = 'Shipping Method'+ options = {+ include_example: 'calculator,shipping_categories,shipping_rates,tax_category',+ filter_examples: [{ name: 'filter[name]', example: 'DHL Express' },+ { name: 'filter[title_cont]', example: 'About Us' }]+ }++ let(:shipping_category) { create(:shipping_category) }+ let(:tax_category) { create(:tax_category) }+ let(:id) { create(:shipping_method).id }+ let(:records_list) { create_list(:shipping_method, 2) }++ let(:valid_create_param_value) do+ {+ name: 'DHL Express Domestic',+ display_on: 'both',+ shipping_category_ids: [shipping_category.id.to_s],+ admin_name: 'DHL Express- Zone A',+ code: 'DDD',+ tax_category_id: tax_category.id.to_s,+ calculator_attributes: {+ type: 'Spree::Calculator::Shipping::FlatRate'+ }+ }+ end++ let(:valid_update_param_value) do+ {+ name: 'FedEx Expedited',+ calculator_attributes: {+ type: 'Spree::Calculator::Shipping::FlatPercentItemTotal',+ preferred_flat_percent: 23+ }+ }+ end++ let(:invalid_param_value) do+ {+ name: ''+ }+ end++ include_examples 'CRUD examples', resource_name, options+enddiff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rbindex 6a8df0062e..42583596ff 100644--- a/api/spec/swagger_helper.rb+++ b/api/spec/swagger_helper.rb@@ -58,6 +58,7 @@ RSpec.configure do |config|{ name: 'Promotion Categories' },{ name: 'Shipments' },{ name: 'Shipping Categories' },+ { name: 'Shipping Methods' },{ name: 'Taxons' },{ name: 'Users' },{ name: 'Webhook Subscribers' },@@ -304,6 +305,36 @@ RSpec.configure do |config|required: %w[name],'x-internal': true},+ shipping_method_params: {+ type: :object,+ properties: {+ name: { type: :string, example: 'DHL Express' },+ admin_name: { type: :string, example: 'DHL Area Code D' },+ code: { type: :string, example: 'DHL-A-D' },+ tracking_url: { type: :string, example: 'dhlexpress.com?tracking=' },+ display_on: { type: :string, example: 'both', enum: ['both', 'back_end', 'front_end'] },+ tax_category_id: { type: :string, example: '1' },+ shipping_category_ids: {+ type: :array,+ items: {+ allOf: [+ { type: :string, example: '2' }+ ]+ }+ },+ calculator_attributes: { '$ref': '#/components/schemas/shipping_calculator_params' },+ },+ required: %w[name display_on calculator_attributes],+ 'x-internal': true+ },+ shipping_calculator_params: {+ type: :object,+ properties: {+ type: { type: :string, example: 'Spree::Calculator::Shipping::FlatPercentItemTotal', enum: ['Spree::Calculator::Shipping::DigitalDelivery', 'Spree::Calculator::Shipping::FlatPercentItemTotal', 'Spree::Calculator::Shipping::FlatRate', 'Spree::Calculator::Shipping::FlexiRate', 'Spree::Calculator::Shipping::PerItem', 'Spree::Calculator::Shipping::PriceSack'] }+ },+ required: %w[type],+ 'x-internal': true+ },wishlist_params: {type: :object,properties: {