Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Update ResourceController#resource_serializer examples.

Sebastian Palma04e16e4fecda
diff --git a/api/app/controllers/spree/api/v2/platform/resource_controller.rb b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
index 1880bf8b46..b29cf79a1d 100644
--- a/api/app/controllers/spree/api/v2/platform/resource_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
@@ -10,7 +10,7 @@ module Spree
# optional authorization if using a user token instead of app token
before_action :authorize_spree_user
- # index and show acrtions are defined in Spree::Api::V2::ResourceController
+ # index and show actions are defined in Spree::Api::V2::ResourceController
def create
resource = model_class.new(permitted_resource_params)
@@ -44,12 +44,8 @@ module Spree
protected
def resource_serializer
- # [TODO]: quickfix
- if (x = model_class.to_s.scan(/(?<=:|^)\b.*?\b(?=:|$)/) - %w[Spree]).size > 1
- "Spree::Api::V2::Platform::#{x.join('::')}Serializer".constantize
- else
- "Spree::Api::V2::Platform::#{model_class.to_s.demodulize}Serializer".constantize
- end
+ serializer_base_name = model_class.to_s.sub('Spree::', '')
+ "Spree::Api::V2::Platform::#{serializer_base_name}Serializer".constantize
end
def collection_serializer
diff --git a/api/app/serializers/spree/api/v2/platform/webhooks/subscriber_serializer.rb b/api/app/serializers/spree/api/v2/platform/webhooks/subscriber_serializer.rb
new file mode 100644
index 0000000000..701acc9fab
--- /dev/null
+++ b/api/app/serializers/spree/api/v2/platform/webhooks/subscriber_serializer.rb
@@ -0,0 +1,15 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ module Webhooks
+ class SubscriberSerializer < BaseSerializer
+ set_type :webhooks_subscriber
+
+ attributes :active, :url, :subscriptions
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 6c3b89178f..79bc4f64c9 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -66,13 +66,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-22T14:44:28.495Z'
- updated_at: '2021-10-22T14:44:28.495Z'
- deleted_at:
- label:
+ created_at: '2021-10-20T13:21:45.945Z'
+ updated_at: '2021-10-20T13:21:45.945Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -83,7 +83,7 @@ paths:
id: '1'
type: state
user:
- data:
+ data:
- id: '2'
type: address
attributes:
@@ -94,13 +94,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-22T14:44:28.499Z'
- updated_at: '2021-10-22T14:44:28.499Z'
- deleted_at:
- label:
+ created_at: '2021-10-20T13:21:45.950Z'
+ updated_at: '2021-10-20T13:21:45.950Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -111,7 +111,7 @@ paths:
id: '2'
type: state
user:
- data:
+ data:
meta:
count: 2
total_count: 2
@@ -165,13 +165,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-22T14:44:28.695Z'
- updated_at: '2021-10-22T14:44:28.695Z'
- deleted_at:
- label:
+ created_at: '2021-10-20T13:21:46.178Z'
+ updated_at: '2021-10-20T13:21:46.178Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -256,13 +256,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-22T14:44:28.733Z'
- updated_at: '2021-10-22T14:44:28.733Z'
- deleted_at:
- label:
+ created_at: '2021-10-20T13:21:46.228Z'
+ updated_at: '2021-10-20T13:21:46.228Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -273,7 +273,7 @@ paths:
id: '6'
type: state
user:
- data:
+ data:
'404':
description: Record not found
content:
@@ -330,13 +330,13 @@ paths:
city: Herndon
zipcode: '35005'
phone: 555-555-0199
- state_name:
+ state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-22T14:44:28.781Z'
- updated_at: '2021-10-22T14:44:28.789Z'
- deleted_at:
- label:
+ created_at: '2021-10-20T13:21:46.299Z'
+ updated_at: '2021-10-20T13:21:46.310Z'
+ deleted_at:
+ label:
relationships:
country:
data:
@@ -347,7 +347,7 @@ paths:
id: '8'
type: state
user:
- data:
+ data:
'422':
description: invalid request
content:
@@ -464,10 +464,10 @@ paths:
adjustable_type: Spree::Order
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-22T14:44:28.988Z'
- updated_at: '2021-10-22T14:44:28.988Z'
+ created_at: '2021-10-20T13:21:46.577Z'
+ updated_at: '2021-10-20T13:21:46.577Z'
state: open
included: false
display_amount: "$100.00"
@@ -491,10 +491,10 @@ paths:
adjustable_type: Spree::Order
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-22T14:44:29.009Z'
- updated_at: '2021-10-22T14:44:29.009Z'
+ created_at: '2021-10-20T13:21:46.604Z'
+ updated_at: '2021-10-20T13:21:46.604Z'
state: open
included: false
display_amount: "$100.00"
@@ -561,10 +561,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '100.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-22T14:44:29.285Z'
- updated_at: '2021-10-22T14:44:29.285Z'
+ created_at: '2021-10-20T13:21:46.935Z'
+ updated_at: '2021-10-20T13:21:46.935Z'
state: open
included: false
display_amount: "$100.00"
@@ -578,7 +578,7 @@ paths:
id: '1'
type: line_item
source:
- data:
+ data:
'422':
description: invalid request
content:
@@ -640,10 +640,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '1.0'
label: Shipping
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-22T14:44:29.384Z'
- updated_at: '2021-10-22T14:44:29.388Z'
+ created_at: '2021-10-20T13:21:47.086Z'
+ updated_at: '2021-10-20T13:21:47.092Z'
state: open
included: false
display_amount: "$1.00"
@@ -713,10 +713,10 @@ paths:
adjustable_type: Spree::LineItem
amount: '15.0'
label: New label
- mandatory:
+ mandatory:
eligible: true
- created_at: '2021-10-22T14:44:29.637Z'
- updated_at: '2021-10-22T14:44:29.650Z'
+ created_at: '2021-10-20T13:21:47.337Z'
+ updated_at: '2021-10-20T13:21:47.356Z'
state: open
included: false
display_amount: "$15.00"
@@ -844,8 +844,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-22T14:44:30.117Z'
- updated_at: '2021-10-22T14:44:30.117Z'
+ created_at: '2021-10-20T13:21:48.081Z'
+ updated_at: '2021-10-20T13:21:48.081Z'
relationships:
product:
data:
@@ -859,8 +859,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-22T14:44:30.181Z'
- updated_at: '2021-10-22T14:44:30.181Z'
+ created_at: '2021-10-20T13:21:48.206Z'
+ updated_at: '2021-10-20T13:21:48.206Z'
relationships:
product:
data:
@@ -917,8 +917,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-22T14:44:30.542Z'
- updated_at: '2021-10-22T14:44:30.542Z'
+ created_at: '2021-10-20T13:21:48.779Z'
+ updated_at: '2021-10-20T13:21:48.779Z'
relationships:
product:
data:
@@ -981,8 +981,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-22T14:44:30.691Z'
- updated_at: '2021-10-22T14:44:30.691Z'
+ created_at: '2021-10-20T13:21:48.962Z'
+ updated_at: '2021-10-20T13:21:48.962Z'
relationships:
product:
data:
@@ -1042,8 +1042,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-22T14:44:30.953Z'
- updated_at: '2021-10-22T14:44:30.953Z'
+ created_at: '2021-10-20T13:21:49.292Z'
+ updated_at: '2021-10-20T13:21:49.292Z'
relationships:
product:
data:
@@ -1153,8 +1153,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-10-22T14:44:31.624Z'
- updated_at: '2021-10-22T14:44:31.643Z'
+ created_at: '2021-10-20T13:21:50.120Z'
+ updated_at: '2021-10-20T13:21:50.146Z'
relationships:
product:
data:
@@ -1245,34 +1245,34 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Vero accusantium nisi est alias quas.
- meta_title:
- content:
- meta_description:
+ title: Quod nobis doloribus repudiandae natus minus ratione.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: vero-accusantium-nisi-est-alias-quas
+ slug: quod-nobis-doloribus-repudiandae-natus-minus-ratione
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-22T14:44:31.929Z'
- updated_at: '2021-10-22T14:44:31.929Z'
+ deleted_at:
+ created_at: '2021-10-20T13:21:50.619Z'
+ updated_at: '2021-10-20T13:21:50.619Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Cupiditate quibusdam nesciunt praesentium esse quidem.
- meta_title:
- content:
- meta_description:
+ title: Vero ratione ad optio aspernatur placeat.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: cupiditate-quibusdam-nesciunt-praesentium-esse-quidem
+ slug: vero-ratione-ad-optio-aspernatur-placeat
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-22T14:44:31.932Z'
- updated_at: '2021-10-22T14:44:31.932Z'
+ deleted_at:
+ created_at: '2021-10-20T13:21:50.623Z'
+ updated_at: '2021-10-20T13:21:50.623Z'
relationships:
cms_sections:
data: []
@@ -1322,17 +1322,18 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Occaecati maxime rem consequatur expedita nisi dolores.
- meta_title:
- content:
- meta_description:
+ title: Fuga laborum repellat ipsum ut voluptate illo perferendis
+ consequatur.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: occaecati-maxime-rem-consequatur-expedita-nisi-dolores
+ slug: fuga-laborum-repellat-ipsum-ut-voluptate-illo-perferendis-consequatur
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-22T14:44:32.014Z'
- updated_at: '2021-10-22T14:44:32.014Z'
+ deleted_at:
+ created_at: '2021-10-20T13:21:50.733Z'
+ updated_at: '2021-10-20T13:21:50.733Z'
relationships:
cms_sections:
data: []
@@ -1388,18 +1389,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Illum provident ea aliquid excepturi quidem quis deleniti
- voluptas.
- meta_title:
- content:
- meta_description:
+ title: Aspernatur quam quae maiores recusandae.
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: illum-provident-ea-aliquid-excepturi-quidem-quis-deleniti-voluptas
+ slug: aspernatur-quam-quae-maiores-recusandae
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-22T14:44:32.048Z'
- updated_at: '2021-10-22T14:44:32.048Z'
+ deleted_at:
+ created_at: '2021-10-20T13:21:50.783Z'
+ updated_at: '2021-10-20T13:21:50.783Z'
relationships:
cms_sections:
data: []
@@ -1453,16 +1453,16 @@ paths:
type: cms_page
attributes:
title: My Super Page
- meta_title:
- content:
- meta_description:
+ meta_title:
+ content:
+ meta_description:
visible: true
- slug: officiis-alias-praesentium-laudantium-consectetur
+ slug: consequatur-quasi-illo-unde-dicta-animi-cupiditate
type: Spree::Cms::Pages::StandardPage
locale: en
- deleted_at:
- created_at: '2021-10-22T14:44:32.114Z'
- updated_at: '2021-10-22T14:44:32.124Z'
+ deleted_at:
+ created_at: '2021-10-20T13:21:50.861Z'
+ updated_at: '2021-10-20T13:21:50.874Z'
relationships:
cms_sections:
data: []
@@ -1576,30 +1576,28 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Saepe quibusdam beatae rem eos repellendus optio accusantium
- ipsa.
+ name: Dolor illo saepe similique tempora deleniti.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-10-22T14:44:32.308Z'
- updated_at: '2021-10-22T14:44:32.308Z'
+ created_at: '2021-10-20T13:21:51.112Z'
+ updated_at: '2021-10-20T13:21:51.112Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '2'
type: cms_section
attributes:
- name: Consequatur et amet voluptate voluptatem illum doloribus
- nemo perferendis.
+ name: Sed maxime neque eius laboriosam.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1607,55 +1605,56 @@ paths:
settings:
layout_style: Default
fit: Container
- destination:
+ destination:
type: Spree::Cms::Sections::ImageGallery
position: 2
- linked_resource_type:
- created_at: '2021-10-22T14:44:32.313Z'
- updated_at: '2021-10-22T14:44:32.313Z'
+ linked_resource_type:
+ created_at: '2021-10-20T13:21:51.117Z'
+ updated_at: '2021-10-20T13:21:51.117Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '3'
type: cms_section
attributes:
- name: Dicta laboriosam vero minima excepturi molestias.
+ name: Temporibus itaque cumque accusantium ea aperiam sed
+ impedit ut.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-10-22T14:44:32.321Z'
- updated_at: '2021-10-22T14:44:32.321Z'
+ created_at: '2021-10-20T13:21:51.129Z'
+ updated_at: '2021-10-20T13:21:51.129Z'
relationships:
cms_page:
data:
id: '13'
type: cms_page
linked_resource:
- data:
+ data:
- id: '4'
type: cms_section
attributes:
- name: Unde expedita assumenda dolor illum mollitia cum dolores
- quas.
+ name: Similique eos assumenda dicta recusandae quo molestias
+ quia dolore.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:32.330Z'
- updated_at: '2021-10-22T14:44:32.330Z'
+ created_at: '2021-10-20T13:21:51.140Z'
+ updated_at: '2021-10-20T13:21:51.140Z'
relationships:
cms_page:
data:
@@ -1668,17 +1667,17 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Repellat libero porro ea cum illo veniam impedit.
+ name: Modi ipsam dolor labore nobis distinctio nulla.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:32.338Z'
- updated_at: '2021-10-22T14:44:32.338Z'
+ created_at: '2021-10-20T13:21:51.152Z'
+ updated_at: '2021-10-20T13:21:51.152Z'
relationships:
cms_page:
data:
@@ -1734,17 +1733,17 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Quaerat commodi at harum exercitationem aperiam consectetur.
+ name: Deserunt voluptatum repudiandae accusantium dolore quas.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:32.494Z'
- updated_at: '2021-10-22T14:44:32.494Z'
+ created_at: '2021-10-20T13:21:51.396Z'
+ updated_at: '2021-10-20T13:21:51.396Z'
relationships:
cms_page:
data:
@@ -1806,17 +1805,17 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Optio quo culpa ipsa a minus.
+ name: Iure incidunt velit ipsam aliquam modi vero.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:32.608Z'
- updated_at: '2021-10-22T14:44:32.608Z'
+ created_at: '2021-10-20T13:21:51.594Z'
+ updated_at: '2021-10-20T13:21:51.594Z'
relationships:
cms_page:
data:
@@ -1880,12 +1879,12 @@ paths:
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:32.795Z'
- updated_at: '2021-10-22T14:44:32.805Z'
+ created_at: '2021-10-20T13:21:52.019Z'
+ updated_at: '2021-10-20T13:21:52.035Z'
relationships:
cms_page:
data:
@@ -1987,17 +1986,17 @@ paths:
id: '58'
type: cms_section
attributes:
- name: Unde minima officiis provident eveniet.
+ name: Nemo suscipit magnam neque id.
content: {}
settings:
gutters: No Gutters
fit: Screen
- destination:
+ destination:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-10-22T14:44:33.234Z'
- updated_at: '2021-10-22T14:44:33.243Z'
+ created_at: '2021-10-20T13:21:52.729Z'
+ updated_at: '2021-10-20T13:21:52.745Z'
relationships:
cms_page:
data:
@@ -2051,13 +2050,13 @@ paths:
attributes:
iso_name: UNITED STATES
iso: US
- iso3: USA
+ iso3: IS79
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-10-22T14:44:33.376Z'
+ updated_at: '2021-10-20T13:21:52.961Z'
zipcode_required: true
- created_at: '2021-10-22T14:44:33.376Z'
+ created_at: '2021-10-20T13:21:52.961Z'
relationships:
states:
data: []
@@ -2066,13 +2065,13 @@ paths:
attributes:
iso_name: ISO_NAME_2
iso: I2
- iso3: IS2
+ iso3: IS80
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-10-22T14:44:33.381Z'
+ updated_at: '2021-10-20T13:21:52.970Z'
zipcode_required: true
- created_at: '2021-10-22T14:44:33.381Z'
+ created_at: '2021-10-20T13:21:52.970Z'
relationships:
states:
data: []
@@ -2081,13 +2080,13 @@ paths:
attributes:
iso_name: ISO_NAME_3
iso: I3
- iso3: IS3
+ iso3: IS81
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-10-22T14:44:33.383Z'
+ updated_at: '2021-10-20T13:21:52.973Z'
zipcode_required: true
- created_at: '2021-10-22T14:44:33.383Z'
+ created_at: '2021-10-20T13:21:52.973Z'
relationships:
states:
data: []
@@ -2138,13 +2137,13 @@ paths:
attributes:
iso_name: ISO_NAME_6
iso: I6
- iso3: IS6
+ iso3: IS86
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-10-22T14:44:33.426Z'
+ updated_at: '2021-10-20T13:21:53.044Z'
zipcode_required: true
- created_at: '2021-10-22T14:44:33.426Z'
+ created_at: '2021-10-20T13:21:53.044Z'
relationships:
states:
data: []
@@ -2196,7 +2195,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: zD2dKBkkJoVSX7dvvr3zvFJL
+ token: 3QfqVSgppoHqYifGeLDiCit2
access_counter: 0
relationships:
digital:
@@ -2210,7 +2209,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: ZpERdRp1ZY4nDWwaTNL7yHcj
+ token: cjuR6WJK3jr5v7QHCKBrBkqt
access_counter: 0
relationships:
digital:
@@ -2260,7 +2259,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: crUvKSyiAnSx9WMRMP6QbgoP
+ token: r28ApX6kLSgMJXhdEosYy7Gi
access_counter: 0
relationships:
digital:
@@ -2319,7 +2318,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: hhB5zNwdPC7amwspnrRZi2gC
+ token: PC4hrNKKmQtaNKok33KqzmzN
access_counter: 0
relationships:
digital:
@@ -2372,7 +2371,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: KdwNxbRV3GnLqBiMMLAoVKKz
+ token: aut6HJgHpDM3T5KsBtiq3kLt
access_counter: 0
relationships:
digital:
@@ -2475,7 +2474,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: RRK4SJwNoa5dJZPhVLHgd7oT
+ token: BgEoLvkqnM6H9aurxXJ9JdGv
access_counter: 0
relationships:
digital:
@@ -2541,7 +2540,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--88e790d3eadc16bfd82c193687f440a3c75eba96/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--119d55ef6c87e66732d4276089b354aea6067560/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2553,7 +2552,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4ef6a58cc1e36f7d6771df3bc778d139b9dc43c5/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6018202faeaa99afe5cb54add0ab297e86217a59/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2565,7 +2564,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9314a953872b87ade0faaf9ec71839d4fffc136e/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--96777dad3764e20bda1782a7f31e6b0ae260922c/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2620,7 +2619,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--eaa4db422b030b8e3281e196422a893ee0d6327e/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--bf5d6b7f82c2baf9377028de863daf3598d2fde4/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2681,7 +2680,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--76cc7b7fa826da53feec24698c4d0bb883fdbbe7/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad494a15ea4059b83584fa1651a08c208691af6e/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2739,7 +2738,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9e3e19ba3818de27826383cb0385a69cf0d1d9ce/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ef42e4cd9531850ffe11dc98282f00514b68e09c/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2860,8 +2859,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-22T14:44:40.386Z'
- updated_at: '2021-10-22T14:44:40.394Z'
+ created_at: '2021-10-20T13:22:02.067Z'
+ updated_at: '2021-10-20T13:22:02.078Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2871,11 +2870,6 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- display_price: "$10.00"
- single_display_amount: "$10.00"
- display_discounted_amount: "$10.00"
- display_total: "$10.00"
- display_amount: "$10.00"
display_subtotal: "$10.00"
display_final_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -2883,6 +2877,11 @@ paths:
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
display_pre_tax_amount: "$10.00"
+ display_amount: "$10.00"
+ display_price: "$10.00"
+ single_display_amount: "$10.00"
+ display_discounted_amount: "$10.00"
+ display_total: "$10.00"
relationships:
order:
data:
@@ -2907,8 +2906,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-22T14:44:40.433Z'
- updated_at: '2021-10-22T14:44:40.440Z'
+ created_at: '2021-10-20T13:22:02.123Z'
+ updated_at: '2021-10-20T13:22:02.131Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2918,11 +2917,6 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- display_price: "$10.00"
- single_display_amount: "$10.00"
- display_discounted_amount: "$10.00"
- display_total: "$10.00"
- display_amount: "$10.00"
display_subtotal: "$10.00"
display_final_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -2930,6 +2924,11 @@ paths:
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
display_pre_tax_amount: "$10.00"
+ display_amount: "$10.00"
+ display_price: "$10.00"
+ single_display_amount: "$10.00"
+ display_discounted_amount: "$10.00"
+ display_total: "$10.00"
relationships:
order:
data:
@@ -2997,8 +2996,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-22T14:44:40.656Z'
- updated_at: '2021-10-22T14:44:40.694Z'
+ created_at: '2021-10-20T13:22:02.443Z'
+ updated_at: '2021-10-20T13:22:02.481Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3008,11 +3007,6 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- display_price: "$10.00"
- single_display_amount: "$10.00"
- display_discounted_amount: "$10.00"
- display_total: "$10.00"
- display_amount: "$10.00"
display_subtotal: "$10.00"
display_final_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -3020,6 +3014,11 @@ paths:
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
display_pre_tax_amount: "$10.00"
+ display_amount: "$10.00"
+ display_price: "$10.00"
+ single_display_amount: "$10.00"
+ display_discounted_amount: "$10.00"
+ display_total: "$10.00"
relationships:
order:
data:
@@ -3096,8 +3095,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-22T14:44:40.826Z'
- updated_at: '2021-10-22T14:44:40.834Z'
+ created_at: '2021-10-20T13:22:02.719Z'
+ updated_at: '2021-10-20T13:22:02.730Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3107,11 +3106,6 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- display_price: "$10.00"
- single_display_amount: "$10.00"
- display_discounted_amount: "$10.00"
- display_total: "$10.00"
- display_amount: "$10.00"
display_subtotal: "$10.00"
display_final_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -3119,6 +3113,11 @@ paths:
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
display_pre_tax_amount: "$10.00"
+ display_amount: "$10.00"
+ display_price: "$10.00"
+ single_display_amount: "$10.00"
+ display_discounted_amount: "$10.00"
+ display_total: "$10.00"
relationships:
order:
data:
@@ -3189,8 +3188,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-10-22T14:44:41.065Z'
- updated_at: '2021-10-22T14:44:41.104Z'
+ created_at: '2021-10-20T13:22:03.088Z'
+ updated_at: '2021-10-20T13:22:03.144Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3200,11 +3199,6 @@ paths:
pre_tax_amount: '40.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- display_price: "$10.00"
- single_display_amount: "$10.00"
- display_discounted_amount: "$40.00"
- display_total: "$40.00"
- display_amount: "$40.00"
display_subtotal: "$40.00"
display_final_amount: "$40.00"
display_adjustment_total: "$0.00"
@@ -3212,6 +3206,11 @@ paths:
display_promo_total: "$0.00"
display_included_tax_total: "$0.00"
display_pre_tax_amount: "$40.00"
+ display_amount: "$40.00"
+ display_price: "$10.00"
+ single_display_amount: "$10.00"
+ display_discounted_amount: "$40.00"
+ display_total: "$40.00"
relationships:
order:
data:
@@ -3238,10 +3237,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #133 - 1272" is not available.'
+ error: 'Quantity selected of "Product #133 - 8636" is not available.'
errors:
quantity:
- - 'selected of "Product #133 - 1272" is not available.'
+ - 'selected of "Product #133 - 8636" is not available.'
'404':
description: Record not found
content:
@@ -3342,18 +3341,18 @@ paths:
type: menu_item
attributes:
name: Link no. 1 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-10-22T14:44:41.724Z'
- updated_at: '2021-10-22T14:44:41.729Z'
- link:
+ created_at: '2021-10-20T13:22:04.061Z'
+ updated_at: '2021-10-20T13:22:04.067Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3372,25 +3371,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '3'
type: menu_item
attributes:
name: Link no. 2 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-10-22T14:44:41.776Z'
- updated_at: '2021-10-22T14:44:41.781Z'
- link:
+ created_at: '2021-10-20T13:22:04.113Z'
+ updated_at: '2021-10-20T13:22:04.118Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3409,25 +3408,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '4'
type: menu_item
attributes:
name: Link no. 3 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-10-22T14:44:41.825Z'
- updated_at: '2021-10-22T14:44:41.829Z'
- link:
+ created_at: '2021-10-20T13:22:04.165Z'
+ updated_at: '2021-10-20T13:22:04.171Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3446,25 +3445,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '5'
type: menu_item
attributes:
name: Link no. 4 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-22T14:44:41.875Z'
- updated_at: '2021-10-22T14:44:41.879Z'
- link:
+ created_at: '2021-10-20T13:22:04.214Z'
+ updated_at: '2021-10-20T13:22:04.220Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3483,25 +3482,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '6'
type: menu_item
attributes:
name: Link no. 5 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-10-22T14:44:41.924Z'
- updated_at: '2021-10-22T14:44:41.929Z'
- link:
+ created_at: '2021-10-20T13:22:04.266Z'
+ updated_at: '2021-10-20T13:22:04.274Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3520,25 +3519,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '7'
type: menu_item
attributes:
name: Link no. 6 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-10-22T14:44:41.985Z'
- updated_at: '2021-10-22T14:44:41.989Z'
- link:
+ created_at: '2021-10-20T13:22:04.320Z'
+ updated_at: '2021-10-20T13:22:04.325Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3557,25 +3556,25 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '8'
type: menu_item
attributes:
name: Link no. 7 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-10-22T14:44:42.031Z'
- updated_at: '2021-10-22T14:44:42.034Z'
- link:
+ created_at: '2021-10-20T13:22:04.372Z'
+ updated_at: '2021-10-20T13:22:04.379Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3594,40 +3593,41 @@ paths:
id: '1'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
- id: '1'
type: menu_item
attributes:
- name: Quidem tenetur quaerat velit deserunt quam saepe laudantium.
- subtitle:
- destination:
+ name: Eius nam quisquam numquam quod perspiciatis voluptatem
+ doloremque illo.
+ subtitle:
+ destination:
new_window: false
item_type: Container
linked_resource_type: URL
- code:
+ code:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-10-22T14:44:41.634Z'
- updated_at: '2021-10-22T14:44:42.040Z'
- link:
+ created_at: '2021-10-20T13:22:04.014Z'
+ updated_at: '2021-10-20T13:22:04.395Z'
+ link:
is_container: true
is_root: true
is_child: false
is_leaf: false
relationships:
icon:
- data:
+ data:
menu:
data:
id: '1'
type: menu
parent:
- data:
+ data:
linked_resource:
- data:
+ data:
children:
data:
- id: '2'
@@ -3691,25 +3691,25 @@ paths:
type: menu_item
attributes:
name: Link no. 18 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-22T14:44:42.625Z'
- updated_at: '2021-10-22T14:44:42.629Z'
- link:
+ created_at: '2021-10-20T13:22:05.054Z'
+ updated_at: '2021-10-20T13:22:05.061Z'
+ link:
is_container: false
is_root: false
is_child: true
is_leaf: true
relationships:
icon:
- data:
+ data:
menu:
data:
id: '3'
@@ -3719,7 +3719,7 @@ paths:
id: '17'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'422':
@@ -3778,18 +3778,18 @@ paths:
type: menu_item
attributes:
name: Link no. 25 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-22T14:44:43.030Z'
- updated_at: '2021-10-22T14:44:43.034Z'
- link:
+ created_at: '2021-10-20T13:22:05.503Z'
+ updated_at: '2021-10-20T13:22:05.509Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3808,7 +3808,7 @@ paths:
id: '26'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'404':
@@ -3861,18 +3861,18 @@ paths:
type: menu_item
attributes:
name: Menu Item One
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-22T14:44:43.702Z'
- updated_at: '2021-10-22T14:44:43.725Z'
- link:
+ created_at: '2021-10-20T13:22:06.369Z'
+ updated_at: '2021-10-20T13:22:06.405Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -3891,7 +3891,7 @@ paths:
id: '40'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'422':
@@ -3987,18 +3987,18 @@ paths:
type: menu_item
attributes:
name: Link no. 62 To Somewhere
- subtitle:
- destination:
+ subtitle:
+ destination:
new_window: false
item_type: Link
linked_resource_type: URL
- code:
+ code:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-10-22T14:44:45.239Z'
- updated_at: '2021-10-22T14:44:45.264Z'
- link:
+ created_at: '2021-10-20T13:22:08.148Z'
+ updated_at: '2021-10-20T13:22:08.188Z'
+ link:
is_container: false
is_root: false
is_child: true
@@ -4017,7 +4017,7 @@ paths:
id: '75'
type: menu_item
linked_resource:
- data:
+ data:
children:
data: []
'404':
@@ -4089,8 +4089,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-22T14:44:45.701Z'
- updated_at: '2021-10-22T14:44:45.811Z'
+ created_at: '2021-10-20T13:22:08.676Z'
+ updated_at: '2021-10-20T13:22:08.799Z'
relationships:
menu_items:
data:
@@ -4106,8 +4106,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-10-22T14:44:45.710Z'
- updated_at: '2021-10-22T14:44:45.910Z'
+ created_at: '2021-10-20T13:22:08.693Z'
+ updated_at: '2021-10-20T13:22:08.898Z'
relationships:
menu_items:
data:
@@ -4166,8 +4166,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-22T14:44:46.205Z'
- updated_at: '2021-10-22T14:44:46.211Z'
+ created_at: '2021-10-20T13:22:09.233Z'
+ updated_at: '2021-10-20T13:22:09.243Z'
relationships:
menu_items:
data:
@@ -4231,8 +4231,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-22T14:44:46.244Z'
- updated_at: '2021-10-22T14:44:46.251Z'
+ created_at: '2021-10-20T13:22:09.307Z'
+ updated_at: '2021-10-20T13:22:09.317Z'
relationships:
menu_items:
data:
@@ -4290,8 +4290,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-22T14:44:46.309Z'
- updated_at: '2021-10-22T14:44:46.315Z'
+ created_at: '2021-10-20T13:22:09.417Z'
+ updated_at: '2021-10-20T13:22:09.428Z'
relationships:
menu_items:
data:
@@ -4414,8 +4414,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-10-22T14:44:46.471Z'
- updated_at: '2021-10-22T14:44:46.471Z'
+ created_at: '2021-10-20T13:22:09.705Z'
+ updated_at: '2021-10-20T13:22:09.705Z'
filterable: true
relationships:
option_values:
@@ -4426,8 +4426,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-10-22T14:44:46.473Z'
- updated_at: '2021-10-22T14:44:46.473Z'
+ created_at: '2021-10-20T13:22:09.709Z'
+ updated_at: '2021-10-20T13:22:09.709Z'
filterable: true
relationships:
option_values:
@@ -4474,8 +4474,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-10-22T14:44:46.519Z'
- updated_at: '2021-10-22T14:44:46.519Z'
+ created_at: '2021-10-20T13:22:09.791Z'
+ updated_at: '2021-10-20T13:22:09.791Z'
filterable: true
relationships:
option_values:
@@ -4528,8 +4528,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-10-22T14:44:46.548Z'
- updated_at: '2021-10-22T14:44:46.548Z'
+ created_at: '2021-10-20T13:22:09.845Z'
+ updated_at: '2021-10-20T13:22:09.845Z'
filterable: true
relationships:
option_values:
@@ -4579,8 +4579,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-10-22T14:44:46.593Z'
- updated_at: '2021-10-22T14:44:46.605Z'
+ created_at: '2021-10-20T13:22:09.938Z'
+ updated_at: '2021-10-20T13:22:09.955Z'
filterable: true
relationships:
option_values:
@@ -4704,8 +4704,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-10-22T14:44:46.721Z'
- updated_at: '2021-10-22T14:44:46.721Z'
+ created_at: '2021-10-20T13:22:10.151Z'
+ updated_at: '2021-10-20T13:22:10.151Z'
relationships:
option_type:
data:
@@ -4717,8 +4717,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-10-22T14:44:46.727Z'
- updated_at: '2021-10-22T14:44:46.727Z'
+ created_at: '2021-10-20T13:22:10.161Z'
+ updated_at: '2021-10-20T13:22:10.161Z'
relationships:
option_type:
data:
@@ -4773,11 +4773,11 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-10-22T14:44:46.789Z'
- updated_at: '2021-10-22T14:44:46.789Z'
+ created_at: '2021-10-20T13:22:10.247Z'
+ updated_at: '2021-10-20T13:22:10.247Z'
relationships:
option_type:
- data:
+ data:
'422':
description: invalid request
content:
@@ -4833,8 +4833,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-10-22T14:44:46.822Z'
- updated_at: '2021-10-22T14:44:46.822Z'
+ created_at: '2021-10-20T13:22:10.314Z'
+ updated_at: '2021-10-20T13:22:10.314Z'
relationships:
option_type:
data:
@@ -4892,8 +4892,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-10-22T14:44:46.878Z'
- updated_at: '2021-10-22T14:44:46.887Z'
+ created_at: '2021-10-20T13:22:10.405Z'
+ updated_at: '2021-10-20T13:22:10.419Z'
relationships:
option_type:
data:
@@ -5009,34 +5009,38 @@ paths:
- id: '40'
type: order
attributes:
- number: R262060589
+ number: R164910327
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:47.028Z'
- updated_at: '2021-10-22T14:44:47.028Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:10.642Z'
+ updated_at: '2021-10-20T13:22:10.642Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5046,14 +5050,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
- display_promo_total: "$0.00"
- display_included_tax_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"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5061,17 +5061,17 @@ paths:
id: '41'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '52'
type: address
ship_address:
- data:
+ data:
line_items:
data: []
payments:
@@ -5093,34 +5093,38 @@ paths:
- id: '41'
type: order
attributes:
- number: R941818377
+ number: R727934647
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:47.042Z'
- updated_at: '2021-10-22T14:44:47.042Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:10.656Z'
+ updated_at: '2021-10-20T13:22:10.656Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5130,14 +5134,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
- display_promo_total: "$0.00"
- display_included_tax_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"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5145,17 +5145,17 @@ paths:
id: '42'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '53'
type: address
ship_address:
- data:
+ data:
line_items:
data: []
payments:
@@ -5220,34 +5220,38 @@ paths:
id: '44'
type: order
attributes:
- number: R574964445
+ number: R317844354
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- email:
- special_instructions:
- created_at: '2021-10-22T14:44:47.316Z'
- updated_at: '2021-10-22T14:44:47.333Z'
+ shipment_state:
+ payment_state:
+ email:
+ special_instructions:
+ created_at: '2021-10-20T13:22:11.056Z'
+ updated_at: '2021-10-20T13:22:11.074Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5257,24 +5261,20 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$20.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
- display_promo_total: "$0.00"
- display_included_tax_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"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
- data:
+ data:
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '56'
@@ -5344,34 +5344,38 @@ paths:
id: '45'
type: order
attributes:
- number: R474449618
+ number: R692436575
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:47.373Z'
- updated_at: '2021-10-22T14:44:47.532Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:11.125Z'
+ updated_at: '2021-10-20T13:22:11.281Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5381,14 +5385,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5396,11 +5396,11 @@ paths:
id: '45'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '57'
@@ -5480,34 +5480,38 @@ paths:
id: '47'
type: order
attributes:
- number: R887537264
+ number: R655137295
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
+ shipment_state:
+ payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:47.706Z'
- updated_at: '2021-10-22T14:44:47.793Z'
+ special_instructions:
+ created_at: '2021-10-20T13:22:11.513Z'
+ updated_at: '2021-10-20T13:22:11.670Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5517,14 +5521,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5532,11 +5532,11 @@ paths:
id: '47'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '61'
@@ -5666,34 +5666,38 @@ paths:
id: '52'
type: order
attributes:
- number: R911962632
+ number: R415204965
item_total: '10.0'
total: '110.0'
state: payment
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:48.331Z'
- updated_at: '2021-10-22T14:44:48.462Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:12.528Z'
+ updated_at: '2021-10-20T13:22:12.724Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5703,14 +5707,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5718,11 +5718,11 @@ paths:
id: '52'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '71'
@@ -5805,34 +5805,38 @@ paths:
id: '54'
type: order
attributes:
- number: R684317854
+ number: R474018641
item_total: '10.0'
total: '110.0'
state: payment
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:48.638Z'
- updated_at: '2021-10-22T14:44:48.771Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:12.968Z'
+ updated_at: '2021-10-20T13:22:13.157Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5842,14 +5846,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5857,11 +5857,11 @@ paths:
id: '54'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '75'
@@ -5944,34 +5944,38 @@ paths:
id: '56'
type: order
attributes:
- number: R889331266
+ number: R389585814
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-10-22T14:44:49.145Z'
+ completed_at: '2021-10-20T13:22:13.796Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
- special_instructions:
- created_at: '2021-10-22T14:44:48.939Z'
- updated_at: '2021-10-22T14:44:49.145Z'
+ special_instructions:
+ created_at: '2021-10-20T13:22:13.419Z'
+ updated_at: '2021-10-20T13:22:13.796Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -5981,14 +5985,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -5996,11 +5996,11 @@ paths:
id: '56'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '79'
@@ -6094,34 +6094,38 @@ paths:
id: '59'
type: order
attributes:
- number: R107651079
+ number: R733125178
item_total: '0.0'
total: '0.0'
state: cart
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:49.441Z'
- updated_at: '2021-10-22T14:44:49.551Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:14.287Z'
+ updated_at: '2021-10-20T13:22:14.459Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 0
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -6131,14 +6135,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
- display_adjustment_total: "$0.00"
- display_additional_tax_total: "$0.00"
- display_promo_total: "$0.00"
- display_included_tax_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"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -6146,11 +6146,11 @@ paths:
id: '59'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '85'
@@ -6228,34 +6228,38 @@ paths:
id: '61'
type: order
attributes:
- number: R497343416
+ number: R902095629
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:49.707Z'
- updated_at: '2021-10-22T14:44:49.788Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:14.741Z'
+ updated_at: '2021-10-20T13:22:14.871Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -6265,14 +6269,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -6280,11 +6280,11 @@ paths:
id: '61'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '89'
@@ -6366,34 +6366,38 @@ paths:
id: '63'
type: order
attributes:
- number: R809217278
+ number: R102606392
item_total: '10.0'
total: '10.0'
state: canceled
adjustment_total: '0.0'
- completed_at: '2021-10-22T14:44:50.058Z'
+ completed_at: '2021-10-20T13:22:15.283Z'
payment_total: '0.0'
shipment_state: canceled
payment_state: void
- special_instructions:
- created_at: '2021-10-22T14:44:49.956Z'
- updated_at: '2021-10-22T14:44:50.115Z'
+ special_instructions:
+ created_at: '2021-10-20T13:22:15.126Z'
+ updated_at: '2021-10-20T13:22:15.376Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -6403,14 +6407,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$10.00"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -6418,11 +6418,11 @@ paths:
id: '63'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '93'
@@ -6520,34 +6520,38 @@ paths:
id: '66'
type: order
attributes:
- number: R371526027
+ number: R185149462
item_total: '10.0'
total: '110.0'
state: delivery
adjustment_total: '0.0'
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:50.383Z'
- updated_at: '2021-10-22T14:44:50.549Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:15.858Z'
+ updated_at: '2021-10-20T13:22:16.069Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: '0.0'
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "$0.00"
+ 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"
@@ -6557,14 +6561,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_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_total_applicable_store_credit: "-$15.00"
- display_total_applied_store_credit: "-$15.00"
display_order_total_after_store_credit: "$95.00"
display_total_available_store_credit: "$15.00"
+ display_total_applied_store_credit: "-$15.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -6572,11 +6572,11 @@ paths:
id: '66'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '99'
@@ -6673,34 +6673,38 @@ paths:
id: '69'
type: order
attributes:
- number: R449783325
+ number: R776462749
item_total: '10.0'
total: '10.0'
state: delivery
adjustment_total: "-100.0"
- completed_at:
+ completed_at:
payment_total: '0.0'
- shipment_state:
- payment_state:
- special_instructions:
- created_at: '2021-10-22T14:44:50.888Z'
- updated_at: '2021-10-22T14:44:51.016Z'
+ shipment_state:
+ payment_state:
+ special_instructions:
+ created_at: '2021-10-20T13:22:16.586Z'
+ updated_at: '2021-10-20T13:22:16.790Z'
currency: USD
- last_ip_address:
+ last_ip_address:
shipment_total: '100.0'
additional_tax_total: '0.0'
promo_total: "-100.0"
channel: spree
included_tax_total: '0.0'
item_count: 1
- approved_at:
+ approved_at:
confirmation_delivered: false
- canceled_at:
+ canceled_at:
state_lock_version: 0
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
- store_owner_notification_delivered:
+ store_owner_notification_delivered:
+ display_adjustment_total: "-$100.00"
+ 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"
@@ -6710,14 +6714,10 @@ paths:
display_tax_total: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
- display_adjustment_total: "-$100.00"
- display_additional_tax_total: "$0.00"
- display_promo_total: "-$100.00"
- display_included_tax_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"
display_total_available_store_credit: "$0.00"
+ display_total_applied_store_credit: "$0.00"
display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
@@ -6725,11 +6725,11 @@ paths:
id: '70'
type: user
created_by:
- data:
+ data:
approver:
- data:
+ data:
canceler:
- data:
+ data:
bill_address:
data:
id: '105'
@@ -6793,567 +6793,15 @@ paths:
application/json:
schema:
"$ref": "#/components/schemas/coupon_code_param"
- "/api/v2/platform/payments":
+ "/api/v2/platform/shipping_categories":
get:
- summary: Return a list of Payments
+ summary: Return a list of Shipping Categories
tags:
- - Payments
+ - Shipping Categories
security:
- bearer_auth: []
- description: Returns a list of Payments
- operationId: payments-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: payment_method,order,source
- schema:
- type: string
- - name: filter[payment_method_id_eq]
- in: query
- description: ''
- example: '1'
- schema:
- type: string
- - name: filter[amount_gteq]
- in: query
- description: ''
- example: 99.9
- schema:
- type: string
- responses:
- '200':
- description: Records returned
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- - id: '6'
- type: payment
- attributes:
- amount: '45.75'
- source_type: Spree::CreditCard
- state: invalid
- response_code: '12345'
- avs_response:
- created_at: '2021-10-22T14:44:51.393Z'
- updated_at: '2021-10-22T14:44:51.406Z'
- number: PH71BTL5
- cvv_response_code:
- cvv_response_message:
- display_amount: "$45.75"
- relationships:
- order:
- data:
- id: '72'
- type: order
- payment_method:
- data:
- id: '12'
- type: payment_method
- source:
- data:
- id: '5'
- type: credit_card
- log_entries:
- data: []
- state_changes:
- data:
- - id: '15'
- type: state_change
- payment_capture_events:
- data: []
- refunds:
- data: []
- - id: '7'
- type: payment
- attributes:
- amount: '45.75'
- source_type: Spree::CreditCard
- state: checkout
- response_code: '12345'
- avs_response:
- created_at: '2021-10-22T14:44:51.404Z'
- updated_at: '2021-10-22T14:44:51.404Z'
- number: PNWSBI3V
- cvv_response_code:
- cvv_response_message:
- display_amount: "$45.75"
- relationships:
- order:
- data:
- id: '72'
- type: order
- payment_method:
- data:
- id: '12'
- type: payment_method
- source:
- data:
- id: '6'
- type: credit_card
- log_entries:
- data: []
- state_changes:
- data: []
- payment_capture_events:
- data: []
- refunds:
- data: []
- meta:
- count: 2
- total_count: 2
- total_pages: 1
- links:
- self: http://www.example.com/api/v2/platform/payments?page=1&per_page=&include=&filter[payment_method_id_eq]=&filter[amount_gteq]=
- next: http://www.example.com/api/v2/platform/payments?filter%5Bamount_gteq%5D=&filter%5Bpayment_method_id_eq%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/payments?filter%5Bamount_gteq%5D=&filter%5Bpayment_method_id_eq%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/payments?filter%5Bamount_gteq%5D=&filter%5Bpayment_method_id_eq%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/payments?filter%5Bamount_gteq%5D=&filter%5Bpayment_method_id_eq%5D=&include=&page=1&per_page=
- '401':
- description: Authentication Failed
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: The access token is invalid
- "/api/v2/platform/payments/{id}":
- get:
- summary: Return a Payment
- tags:
- - Payments
- security:
- - bearer_auth: []
- description: Returns a Payment
- operationId: show-payment
- 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: payment_method,order,source
- schema:
- type: string
- responses:
- '200':
- description: Record found
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- id: '10'
- type: payment
- attributes:
- amount: '45.75'
- source_type: Spree::CreditCard
- state: checkout
- response_code: '12345'
- avs_response:
- created_at: '2021-10-22T14:44:51.541Z'
- updated_at: '2021-10-22T14:44:51.541Z'
- number: PR0N9YO2
- cvv_response_code:
- cvv_response_message:
- display_amount: "$45.75"
- relationships:
- order:
- data:
- id: '74'
- type: order
- payment_method:
- data:
- id: '18'
- type: payment_method
- source:
- data:
- id: '9'
- type: credit_card
- log_entries:
- data: []
- state_changes:
- data: []
- payment_capture_events:
- data: []
- refunds:
- data: []
- '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
- delete:
- summary: Delete a Payment
- tags:
- - Payments
- security:
- - bearer_auth: []
- description: Deletes a Payment
- operationId: delete-payment
- 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/promotion_categories":
- get:
- summary: Return a list of Promotion Categories
- tags:
- - Promotion Categories
- security:
- - bearer_auth: []
- description: Returns a list of Promotion Categories
- operationId: promotion-categories-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: promotions
- schema:
- type: string
- - name: filter[code]
- in: query
- description: ''
- example: BLK-FRI
- schema:
- type: string
- - name: filter[name]
- in: query
- description: ''
- example: 2020 Promotions
- schema:
- type: string
- responses:
- '200':
- description: Records returned
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- - id: '1'
- type: promotion_category
- attributes:
- name: Promotion Category
- created_at: '2021-10-22T14:44:51.741Z'
- updated_at: '2021-10-22T14:44:51.741Z'
- code: POP123
- relationships:
- promotions:
- data: []
- - id: '2'
- type: promotion_category
- attributes:
- name: Promotion Category
- created_at: '2021-10-22T14:44:51.744Z'
- updated_at: '2021-10-22T14:44:51.744Z'
- code: POP123
- relationships:
- promotions:
- data: []
- meta:
- count: 2
- total_count: 2
- total_pages: 1
- links:
- self: http://www.example.com/api/v2/platform/promotion_categories?page=1&per_page=&include=&filter[code]=&filter[name]=
- next: http://www.example.com/api/v2/platform/promotion_categories?filter%5Bcode%5D=&filter%5Bname%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/promotion_categories?filter%5Bcode%5D=&filter%5Bname%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/promotion_categories?filter%5Bcode%5D=&filter%5Bname%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/promotion_categories?filter%5Bcode%5D=&filter%5Bname%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 Promotion Category
- tags:
- - Promotion Categories
- security:
- - bearer_auth: []
- description: Creates a Promotion Category
- operationId: create-promotion-category
- 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: promotions
- schema:
- type: string
- responses:
- '201':
- description: record created
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- id: '5'
- type: promotion_category
- attributes:
- name: Promotion Category
- created_at: '2021-10-22T14:44:51.786Z'
- updated_at: '2021-10-22T14:44:51.786Z'
- code: 2021-BFM
- relationships:
- promotions:
- data: []
- '422':
- description: invalid request
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- error: Name can't be blank
- errors:
- name:
- - can't be blank
- requestBody:
- content:
- application/json:
- schema:
- "$ref": "#/components/schemas/promotion_category_params"
- "/api/v2/platform/promotion_categories/{id}":
- get:
- summary: Return a Promotion Category
- tags:
- - Promotion Categories
- security:
- - bearer_auth: []
- description: Returns a Promotion Category
- operationId: show-promotion-category
- 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: promotions
- schema:
- type: string
- responses:
- '200':
- description: Record found
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- id: '6'
- type: promotion_category
- attributes:
- name: Promotion Category
- created_at: '2021-10-22T14:44:51.815Z'
- updated_at: '2021-10-22T14:44:51.815Z'
- code: MJO
- relationships:
- promotions:
- data: []
- '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 Promotion Category
- tags:
- - Promotion Categories
- security:
- - bearer_auth: []
- description: Updates a Promotion Category
- operationId: update-promotion-category
- 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: promotions
- schema:
- type: string
- responses:
- '200':
- description: record updated
- content:
- application/vnd.api+json:
- examples:
- Example:
- value:
- data:
- id: '8'
- type: promotion_category
- attributes:
- name: 2021 Promotions
- created_at: '2021-10-22T14:44:51.860Z'
- updated_at: '2021-10-22T14:44:51.866Z'
- code: 2021-Promos
- relationships:
- promotions:
- data: []
- '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/promotion_category_params"
- delete:
- summary: Delete a Promotion Category
- tags:
- - Promotion Categories
- security:
- - bearer_auth: []
- description: Deletes a Promotion Category
- operationId: delete-promotion-category
- 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/shipping_categories":
- get:
- summary: Return a list of Shipping Categories
- tags:
- - Shipping Categories
- security:
- - bearer_auth: []
- description: Returns a list of Shipping Categories
- operationId: shipping-categories-list
+ description: Returns a list of Shipping Categories
+ operationId: shipping-categories-list
parameters:
- name: page
in: query
@@ -7391,14 +6839,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #103'
- created_at: '2021-10-22T14:44:51.969Z'
- updated_at: '2021-10-22T14:44:51.969Z'
+ created_at: '2021-10-20T13:22:17.252Z'
+ updated_at: '2021-10-20T13:22:17.252Z'
- id: '104'
type: shipping_category
attributes:
name: 'ShippingCategory #104'
- created_at: '2021-10-22T14:44:51.971Z'
- updated_at: '2021-10-22T14:44:51.971Z'
+ created_at: '2021-10-20T13:22:17.253Z'
+ updated_at: '2021-10-20T13:22:17.253Z'
meta:
count: 2
total_count: 2
@@ -7446,8 +6894,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #107'
- created_at: '2021-10-22T14:44:52.012Z'
- updated_at: '2021-10-22T14:44:52.012Z'
+ created_at: '2021-10-20T13:22:17.322Z'
+ updated_at: '2021-10-20T13:22:17.322Z'
'422':
description: invalid request
content:
@@ -7499,8 +6947,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #108'
- created_at: '2021-10-22T14:44:52.039Z'
- updated_at: '2021-10-22T14:44:52.039Z'
+ created_at: '2021-10-20T13:22:17.369Z'
+ updated_at: '2021-10-20T13:22:17.369Z'
'404':
description: Record not found
content:
@@ -7551,8 +6999,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-10-22T14:44:52.088Z'
- updated_at: '2021-10-22T14:44:52.093Z'
+ created_at: '2021-10-20T13:22:17.447Z'
+ updated_at: '2021-10-20T13:22:17.459Z'
'422':
description: invalid request
content:
@@ -7674,12 +7122,12 @@ paths:
permalink: taxonomy-16/taxon-16
lft: 2
rgt: 3
- description:
- created_at: '2021-10-22T14:44:52.255Z'
- updated_at: '2021-10-22T14:44:52.258Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:17.678Z'
+ updated_at: '2021-10-20T13:22:17.682Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_16 -> taxon_16
seo_title: taxon_16
@@ -7709,12 +7157,12 @@ paths:
permalink: taxonomy-16/taxon-17
lft: 4
rgt: 5
- description:
- created_at: '2021-10-22T14:44:52.308Z'
- updated_at: '2021-10-22T14:44:52.312Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:17.726Z'
+ updated_at: '2021-10-20T13:22:17.731Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_16 -> taxon_17
seo_title: taxon_17
@@ -7744,12 +7192,12 @@ paths:
permalink: taxonomy-16
lft: 1
rgt: 6
- description:
- created_at: '2021-10-22T14:44:52.192Z'
- updated_at: '2021-10-22T14:44:52.321Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:17.633Z'
+ updated_at: '2021-10-20T13:22:17.743Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 0
pretty_name: taxonomy_16
seo_title: taxonomy_16
@@ -7758,7 +7206,7 @@ paths:
is_leaf: false
relationships:
parent:
- data:
+ data:
taxonomy:
data:
id: '16'
@@ -7770,7 +7218,7 @@ paths:
- id: '33'
type: taxon
image:
- data:
+ data:
meta:
count: 3
total_count: 3
@@ -7822,12 +7270,12 @@ paths:
permalink: taxonomy-18/taxon-20
lft: 2
rgt: 3
- description:
- created_at: '2021-10-22T14:44:52.524Z'
- updated_at: '2021-10-22T14:44:52.529Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:17.974Z'
+ updated_at: '2021-10-20T13:22:17.980Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_18 -> taxon_20
seo_title: taxon_20
@@ -7846,7 +7294,7 @@ paths:
children:
data: []
image:
- data:
+ data:
'422':
description: invalid request
content:
@@ -7904,12 +7352,12 @@ paths:
permalink: taxonomy-19/taxon-21
lft: 2
rgt: 3
- description:
- created_at: '2021-10-22T14:44:52.619Z'
- updated_at: '2021-10-22T14:44:52.623Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:18.096Z'
+ updated_at: '2021-10-20T13:22:18.101Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_19 -> taxon_21
seo_title: taxon_21
@@ -7987,12 +7435,12 @@ paths:
permalink: taxonomy-21/taxon-23
lft: 2
rgt: 3
- description:
- created_at: '2021-10-22T14:44:52.814Z'
- updated_at: '2021-10-22T14:44:52.847Z'
- meta_title:
- meta_description:
- meta_keywords:
+ description:
+ created_at: '2021-10-20T13:22:18.325Z'
+ updated_at: '2021-10-20T13:22:18.357Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
depth: 1
pretty_name: taxonomy_21 -> T-Shirts
seo_title: T-Shirts
@@ -8127,48 +7575,48 @@ paths:
Example:
value:
data:
- - id: '79'
+ - id: '73'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.268Z'
- updated_at: '2021-10-22T14:44:53.268Z'
+ created_at: '2021-10-20T13:22:18.938Z'
+ updated_at: '2021-10-20T13:22:18.938Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
- - id: '80'
+ data:
+ - id: '74'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.273Z'
- updated_at: '2021-10-22T14:44:53.273Z'
+ created_at: '2021-10-20T13:22:18.949Z'
+ updated_at: '2021-10-20T13:22:18.949Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
- - id: '81'
+ data:
+ - id: '75'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.274Z'
- updated_at: '2021-10-22T14:44:53.274Z'
+ created_at: '2021-10-20T13:22:18.953Z'
+ updated_at: '2021-10-20T13:22:18.953Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
meta:
count: 3
total_count: 3
@@ -8212,20 +7660,20 @@ paths:
Example:
value:
data:
- id: '86'
+ id: '80'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.342Z'
- updated_at: '2021-10-22T14:44:53.342Z'
+ created_at: '2021-10-20T13:22:19.076Z'
+ updated_at: '2021-10-20T13:22:19.076Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'422':
description: invalid request
content:
@@ -8273,20 +7721,20 @@ paths:
Example:
value:
data:
- id: '89'
+ id: '83'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.395Z'
- updated_at: '2021-10-22T14:44:53.395Z'
+ created_at: '2021-10-20T13:22:19.154Z'
+ updated_at: '2021-10-20T13:22:19.154Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'404':
description: Record not found
content:
@@ -8333,20 +7781,20 @@ paths:
Example:
value:
data:
- id: '94'
+ id: '88'
type: user
attributes:
- created_at: '2021-10-22T14:44:53.461Z'
- updated_at: '2021-10-22T14:44:53.470Z'
+ created_at: '2021-10-20T13:22:19.259Z'
+ updated_at: '2021-10-20T13:22:19.273Z'
average_order_value: []
lifetime_value: []
store_credits: []
relationships:
bill_address:
- data:
+ data:
ship_address:
- data:
+ data:
'422':
description: invalid request
content:
@@ -8412,15 +7860,15 @@ paths:
Example:
value:
error: The access token is invalid
- "/api/v2/platform/variants":
+ "/api/v2/platform/webhooks/subscribers":
get:
- summary: Return a list of Variants
+ summary: Return a list of Webhook Subscribers
tags:
- - Variants
+ - Webhook Subscribers
security:
- bearer_auth: []
- description: Returns a list of Variants
- operationId: variants-list
+ description: Returns a list of Webhook Subscribers
+ operationId: webhook-subscribers-list
parameters:
- name: page
in: query
@@ -8432,25 +7880,6 @@ paths:
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: product,tax_category,images,digitals
- schema:
- type: string
- - name: filter[product_id_eq]
- in: query
- description: ''
- example: '1'
- schema:
- type: string
- - name: filter[sku_i_cont]
- in: query
- description: ''
- example: SKU123
- schema:
- type: string
responses:
'200':
description: Records returned
@@ -8460,167 +7889,30 @@ paths:
Example:
value:
data:
- - id: '237'
- type: variant
- attributes:
- sku: SKU-237
- weight: '0.0'
- height:
- depth:
- deleted_at:
- is_master: true
- cost_price: '17.0'
- position: 1
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-10-22T14:44:53.658Z'
- discontinue_on:
- created_at: '2021-10-22T14:44:53.653Z'
- display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #170 - 6896'
- options_text: ''
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
- relationships:
- product:
- data:
- id: '170'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data: []
- stock_items:
- data:
- - id: '264'
- type: stock_item
- stock_locations:
- data:
- - id: '130'
- type: stock_location
- - id: '238'
- type: variant
+ - id: '1'
+ type: webhooks_endpoint
attributes:
- sku: SKU-238
- weight: '136.27'
- height: '181.21'
- depth: '55.35'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 2
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-10-22T14:44:53.682Z'
- discontinue_on:
- created_at: '2021-10-22T14:44:53.676Z'
- display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #170 - 6896'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
- relationships:
- product:
- data:
- id: '170'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data:
- - id: '80'
- type: option_value
- stock_items:
- data:
- - id: '265'
- type: stock_item
- stock_locations:
- data:
- - id: '130'
- type: stock_location
- - id: '239'
- type: variant
+ enabled: true
+ url: https://www.url1.com/
+ subscriptions:
+ - "*"
+ - id: '2'
+ type: webhooks_endpoint
attributes:
- sku: SKU-239
- weight: '112.64'
- height: '183.94'
- depth: '189.47'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 3
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-10-22T14:44:53.701Z'
- discontinue_on:
- created_at: '2021-10-22T14:44:53.695Z'
- display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #170 - 6896'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
- relationships:
- product:
- data:
- id: '170'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data:
- - id: '81'
- type: option_value
- stock_items:
- data:
- - id: '266'
- type: stock_item
- stock_locations:
- data:
- - id: '130'
- type: stock_location
+ enabled: true
+ url: https://www.url2.com/
+ subscriptions:
+ - "*"
meta:
- count: 3
- total_count: 3
+ count: 2
+ total_count: 2
total_pages: 1
links:
- self: http://www.example.com/api/v2/platform/variants?page=1&per_page=&include=&filter[product_id_eq]=&filter[sku_i_cont]=
- next: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- prev: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- last: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
- first: http://www.example.com/api/v2/platform/variants?filter%5Bproduct_id_eq%5D=&filter%5Bsku_i_cont%5D=&include=&page=1&per_page=
+ self: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
+ next: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
+ last: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
+ first: http://www.example.com/api/v2/platform/webhooks/subscribers?page=1&per_page=
'401':
description: Authentication Failed
content:
@@ -8629,112 +7921,56 @@ paths:
Example:
value:
error: The access token is invalid
- "/api/v2/platform/variants/{id}":
- get:
- summary: Return a Variant
+ post:
+ summary: Create a Webhook Subscriber
tags:
- - Variants
+ - Webhook Subscribers
security:
- bearer_auth: []
- description: Returns a Variant
- operationId: show-variant
- 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: product,tax_category,images,digitals
- schema:
- type: string
+ description: Creates a Webhook Subscriber
+ operationId: create-webhook-subscriber
+ parameters: []
responses:
- '200':
- description: Record found
+ '201':
+ description: record created
content:
application/vnd.api+json:
examples:
Example:
value:
data:
- id: '244'
- type: variant
+ id: '5'
+ type: webhooks_endpoint
attributes:
- sku: SKU-244
- weight: '114.91'
- height: '19.0'
- depth: '32.95'
- deleted_at:
- is_master: false
- cost_price: '17.0'
- position: 2
- cost_currency: USD
- track_inventory: true
- updated_at: '2021-10-22T14:44:53.900Z'
- discontinue_on:
- created_at: '2021-10-22T14:44:53.894Z'
- display_price: "$19.99"
- display_compare_at_price:
- name: 'Product #172 - 9368'
- options_text: 'Size: S'
- total_on_hand: 0
- purchasable: true
- in_stock: false
- backorderable: true
- available: true
- currency: USD
- price: '19.99'
- compare_at_price:
- relationships:
- product:
- data:
- id: '172'
- type: product
- tax_category:
- data:
- digitals:
- data: []
- images:
- data: []
- option_values:
- data:
- - id: '84'
- type: option_value
- stock_items:
- data:
- - id: '271'
- type: stock_item
- stock_locations:
- data:
- - id: '132'
- type: stock_location
- '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
+ enabled: true
+ url: https://www.url5.com/
+ subscriptions:
+ '422':
+ description: invalid request
content:
application/vnd.api+json:
examples:
Example:
value:
- error: The access token is invalid
- delete:
- summary: Delete a Variant
+ error: Url must be a valid URL and Url can't be blank
+ errors:
+ url:
+ - must be a valid URL
+ - can't be blank
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook_subscriber_params"
+ "/api/v2/platform/webhooks/subscribers/{id}":
+ get:
+ summary: Return a Webhook Subscriber
tags:
- - Variants
+ - Webhook Subscribers
security:
- bearer_auth: []
- description: Deletes a Variant
- operationId: delete-variant
+ description: Returns a Webhook Subscriber
+ operationId: show-webhook-subscriber
parameters:
- name: id
in: path
@@ -8742,8 +7978,21 @@ paths:
schema:
type: string
responses:
- '204':
- description: Record deleted
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '6'
+ type: webhooks_endpoint
+ attributes:
+ enabled: true
+ url: https://www.url6.com/
+ subscriptions:
+ - "*"
'404':
description: Record not found
content:
@@ -8800,61 +8049,61 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:54.320Z'
- updated_at: '2021-10-22T14:44:54.320Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:19.923Z'
+ updated_at: '2021-10-20T13:22:19.923Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '254'
+ id: '240'
type: variant
- id: '2'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:54.365Z'
- updated_at: '2021-10-22T14:44:54.365Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:20.005Z'
+ updated_at: '2021-10-20T13:22:20.005Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '256'
+ id: '242'
type: variant
- id: '3'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:54.413Z'
- updated_at: '2021-10-22T14:44:54.413Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:20.096Z'
+ updated_at: '2021-10-20T13:22:20.096Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '258'
+ id: '244'
type: variant
- id: '4'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:54.461Z'
- updated_at: '2021-10-22T14:44:54.461Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:20.178Z'
+ updated_at: '2021-10-20T13:22:20.178Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '260'
+ id: '246'
type: variant
meta:
count: 4
@@ -8903,16 +8152,16 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:54.827Z'
- updated_at: '2021-10-22T14:44:54.827Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:20.886Z'
+ updated_at: '2021-10-20T13:22:20.886Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '272'
+ id: '258'
type: variant
'422':
description: invalid request
@@ -8970,16 +8219,16 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-22T14:44:55.022Z'
- updated_at: '2021-10-22T14:44:55.022Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:21.363Z'
+ updated_at: '2021-10-20T13:22:21.363Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
variant:
data:
- id: '278'
+ id: '264'
type: variant
'404':
description: Record not found
@@ -9031,16 +8280,16 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-10-22T14:44:55.371Z'
- updated_at: '2021-10-22T14:44:55.378Z'
- display_price: "$19.99"
+ created_at: '2021-10-20T13:22:22.089Z'
+ updated_at: '2021-10-20T13:22:22.103Z'
display_total: "$59.97"
+ display_price: "$19.99"
price: '19.99'
total: '59.97'
relationships:
variant:
data:
- id: '288'
+ id: '274'
type: variant
'422':
description: invalid request
@@ -9155,9 +8404,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-10-22T14:44:56.075Z'
- updated_at: '2021-10-22T14:44:56.075Z'
- token: MsoGYfu3uSLEQBr1nMdZ2Vrf
+ created_at: '2021-10-20T13:22:23.201Z'
+ updated_at: '2021-10-20T13:22:23.201Z'
+ token: DBEwDXkLe16Cmxbz5RrmS8x1
variant_included: false
relationships:
wished_items:
@@ -9172,9 +8421,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-10-22T14:44:56.077Z'
- updated_at: '2021-10-22T14:44:56.077Z'
- token: vM4k4pGr3NkTfSAqNc5b8NCC
+ created_at: '2021-10-20T13:22:23.204Z'
+ updated_at: '2021-10-20T13:22:23.204Z'
+ token: UY768JNeyoEbTFeeXh38vVSN
variant_included: false
relationships:
wished_items:
@@ -9232,9 +8481,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-10-22T14:44:56.521Z'
- updated_at: '2021-10-22T14:44:56.521Z'
- token: XVJtk88nkKSTqCraLeBReFve
+ created_at: '2021-10-20T13:22:23.954Z'
+ updated_at: '2021-10-20T13:22:23.954Z'
+ token: BSjc73E1TM53gnEcGcoTDtLU
variant_included: false
relationships:
wished_items:
@@ -9294,9 +8543,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-10-22T14:44:56.564Z'
- updated_at: '2021-10-22T14:44:56.564Z'
- token: rX2Higs5YBsoU6sPaF8tvzMX
+ created_at: '2021-10-20T13:22:24.011Z'
+ updated_at: '2021-10-20T13:22:24.011Z'
+ token: fmWVxxDCB4nitEVR918Z74b9
variant_included: false
relationships:
wished_items:
@@ -9353,9 +8602,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-10-22T14:44:56.620Z'
- updated_at: '2021-10-22T14:44:56.629Z'
- token: C52ziysKe9fnBokysvsY7LeY
+ created_at: '2021-10-20T13:22:24.110Z'
+ updated_at: '2021-10-20T13:22:24.129Z'
+ token: Q2prNtDKeY2aLDaexee6JL8U
variant_included: false
relationships:
wished_items:
@@ -9445,14 +8694,12 @@ tags:
- name: Option Types
- name: Option Values
- name: Orders
-- name: Payments
-- name: Promotion Categories
- name: Shipping Categories
- name: Taxons
- name: Users
+- name: Webhooks Subscribers
- name: Wishlists
- name: Wished Items
-- name: Variants
components:
securitySchemes:
bearer_auth:
@@ -9609,6 +8856,22 @@ components:
- name
- presentation
x-internal: true
+ webhooks_subscriber_params:
+ type: object
+ properties:
+ enabled:
+ type: boolean
+ example: true
+ default: false
+ subscriptions:
+ type: array
+ example:
+ - "*"
+ default: []
+ url:
+ type: string
+ example: https://www.url.com/
+ x-internal: true
order_params:
type: object
properties:
@@ -9638,7 +8901,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-10-22 14:44:28 UTC
+ example: 2021-10-20 13:21:43 UTC
bill_address_id:
type: string
example: '1'
@@ -9706,7 +8969,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-10-22 14:44:28 UTC
+ example: 2021-10-20 13:21:43 UTC
confirmation_delivered:
type: boolean
example: true
@@ -9793,16 +9056,6 @@ components:
- price
- shipping_category_id
x-internal: true
- promotion_category_params:
- type: object
- properties:
- name:
- type: string
- example: Promotions Used in 2021
- code:
- type: string
- example: 2021-PROMOS
- x-internal: true
user_params:
type: object
properties:
diff --git a/api/spec/controllers/spree/api/v2/platform/resource_controller_spec.rb b/api/spec/controllers/spree/api/v2/platform/resource_controller_spec.rb
index 69be04dcab..86471b3f2a 100644
--- a/api/spec/controllers/spree/api/v2/platform/resource_controller_spec.rb
+++ b/api/spec/controllers/spree/api/v2/platform/resource_controller_spec.rb
@@ -13,7 +13,17 @@ describe Spree::Api::V2::Platform::ResourceController, type: :controller do
let(:store) { Spree::Store.default }
describe '#resource_serializer' do
- it { expect(dummy_controller.send(:resource_serializer)).to be Spree::Api::V2::Platform::ProductSerializer }
+ subject { dummy_controller.send(:resource_serializer) }
+
+ context 'when controller model class is nested more than 2 levels' do
+ before do
+ allow(dummy_controller).to receive(:model_class).and_return(Spree::Webhooks::Subscriber)
+ end
+
+ it { expect(subject).to eq(Spree::Api::V2::Platform::Webhooks::SubscriberSerializer) }
+ end
+
+ it { expect(subject).to be Spree::Api::V2::Platform::ProductSerializer }
end
describe '#collection_serializer' do
diff --git a/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb b/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
index ffdb64abfb..a17f6e92f0 100644
--- a/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
+++ b/api/spec/integration/api/v2/platform/webhooks/subscribers_spec.rb
@@ -15,7 +15,7 @@ end
describe 'WebhooksSubscribers API', swagger: true do
include_context 'Platform API v2'
- resource_name = 'WebhookSubscriber'
+ resource_name = 'Webhook Subscriber'
options = {}
let(:id) { subscriber.tap(&:save).id }
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index a8be2008b9..392adbc457 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -59,6 +59,7 @@ RSpec.configure do |config|
{ name: 'Shipping Categories' },
{ name: 'Taxons' },
{ name: 'Users' },
+ { name: 'Webhooks Subscribers' },
{ name: 'Wishlists' },
{ name: 'Wished Items' },
{ name: 'Variants' }