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.

Add back in digital, variants line_items for includes Platform API side.

Matthew Kennedyfc1bc6dd2cfb
diff --git a/api/app/serializers/spree/api/v2/platform/digital_link_serializer.rb b/api/app/serializers/spree/api/v2/platform/digital_link_serializer.rb
index d511d477f7..fe8cd7f21a 100644
--- a/api/app/serializers/spree/api/v2/platform/digital_link_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/digital_link_serializer.rb
@@ -6,6 +6,9 @@ module Spree
set_type :digital_link
attributes :token, :access_counter
+
+ belongs_to :digital
+ belongs_to :line_item
end
end
end
diff --git a/api/app/serializers/spree/api/v2/platform/digital_serializer.rb b/api/app/serializers/spree/api/v2/platform/digital_serializer.rb
index fe16e6f0b2..e3a03c795c 100644
--- a/api/app/serializers/spree/api/v2/platform/digital_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/digital_serializer.rb
@@ -21,6 +21,8 @@ module Spree
attribute :byte_size do |digital|
digital.attachment.byte_size.to_i
end
+
+ belongs_to :variant
end
end
end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 848ad36d79..a9cabf74fd 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -63,8 +63,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T21:56:57.757Z'
- updated_at: '2021-10-10T21:56:57.757Z'
+ created_at: '2021-10-11T15:47:34.950Z'
+ updated_at: '2021-10-11T15:47:34.950Z'
deleted_at:
label:
relationships:
@@ -91,8 +91,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T21:56:57.761Z'
- updated_at: '2021-10-10T21:56:57.761Z'
+ created_at: '2021-10-11T15:47:34.953Z'
+ updated_at: '2021-10-11T15:47:34.953Z'
deleted_at:
label:
relationships:
@@ -162,8 +162,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T21:56:57.902Z'
- updated_at: '2021-10-10T21:56:57.902Z'
+ created_at: '2021-10-11T15:47:35.104Z'
+ updated_at: '2021-10-11T15:47:35.104Z'
deleted_at:
label:
relationships:
@@ -253,8 +253,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T21:56:57.948Z'
- updated_at: '2021-10-10T21:56:57.948Z'
+ created_at: '2021-10-11T15:47:35.147Z'
+ updated_at: '2021-10-11T15:47:35.147Z'
deleted_at:
label:
relationships:
@@ -327,8 +327,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T21:56:58.002Z'
- updated_at: '2021-10-10T21:56:58.010Z'
+ created_at: '2021-10-11T15:47:35.199Z'
+ updated_at: '2021-10-11T15:47:35.207Z'
deleted_at:
label:
relationships:
@@ -460,8 +460,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T21:56:58.207Z'
- updated_at: '2021-10-10T21:56:58.207Z'
+ created_at: '2021-10-11T15:47:35.434Z'
+ updated_at: '2021-10-11T15:47:35.434Z'
state: open
included: false
display_amount: "$100.00"
@@ -487,8 +487,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T21:56:58.230Z'
- updated_at: '2021-10-10T21:56:58.230Z'
+ created_at: '2021-10-11T15:47:35.458Z'
+ updated_at: '2021-10-11T15:47:35.458Z'
state: open
included: false
display_amount: "$100.00"
@@ -557,8 +557,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T21:56:58.489Z'
- updated_at: '2021-10-10T21:56:58.489Z'
+ created_at: '2021-10-11T15:47:35.739Z'
+ updated_at: '2021-10-11T15:47:35.739Z'
state: open
included: false
display_amount: "$100.00"
@@ -636,8 +636,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T21:56:58.584Z'
- updated_at: '2021-10-10T21:56:58.588Z'
+ created_at: '2021-10-11T15:47:35.840Z'
+ updated_at: '2021-10-11T15:47:35.844Z'
state: open
included: false
display_amount: "$1.00"
@@ -709,8 +709,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-10-10T21:56:58.756Z'
- updated_at: '2021-10-10T21:56:58.768Z'
+ created_at: '2021-10-11T15:47:36.030Z'
+ updated_at: '2021-10-11T15:47:36.044Z'
state: open
included: false
display_amount: "$15.00"
@@ -838,8 +838,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T21:56:59.300Z'
- updated_at: '2021-10-10T21:56:59.300Z'
+ created_at: '2021-10-11T15:47:36.637Z'
+ updated_at: '2021-10-11T15:47:36.637Z'
relationships:
product:
data:
@@ -853,8 +853,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T21:56:59.399Z'
- updated_at: '2021-10-10T21:56:59.399Z'
+ created_at: '2021-10-11T15:47:36.742Z'
+ updated_at: '2021-10-11T15:47:36.742Z'
relationships:
product:
data:
@@ -911,8 +911,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T21:56:59.779Z'
- updated_at: '2021-10-10T21:56:59.779Z'
+ created_at: '2021-10-11T15:47:37.135Z'
+ updated_at: '2021-10-11T15:47:37.135Z'
relationships:
product:
data:
@@ -975,8 +975,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T21:56:59.929Z'
- updated_at: '2021-10-10T21:56:59.929Z'
+ created_at: '2021-10-11T15:47:37.291Z'
+ updated_at: '2021-10-11T15:47:37.291Z'
relationships:
product:
data:
@@ -1036,8 +1036,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T21:57:00.190Z'
- updated_at: '2021-10-10T21:57:00.190Z'
+ created_at: '2021-10-11T15:47:37.575Z'
+ updated_at: '2021-10-11T15:47:37.575Z'
relationships:
product:
data:
@@ -1147,8 +1147,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-10-10T21:57:00.852Z'
- updated_at: '2021-10-10T21:57:00.871Z'
+ created_at: '2021-10-11T15:47:38.300Z'
+ updated_at: '2021-10-11T15:47:38.321Z'
relationships:
product:
data:
@@ -1233,35 +1233,34 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Animi veritatis assumenda itaque fugit possimus.
+ title: Aliquid iure suscipit ut ipsum deleniti.
meta_title:
content:
meta_description:
visible: true
- slug: animi-veritatis-assumenda-itaque-fugit-possimus
+ slug: aliquid-iure-suscipit-ut-ipsum-deleniti
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T21:57:01.173Z'
- updated_at: '2021-10-10T21:57:01.173Z'
+ created_at: '2021-10-11T15:47:38.652Z'
+ updated_at: '2021-10-11T15:47:38.652Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Consequuntur rerum beatae molestiae explicabo veniam
- occaecati non voluptatem.
+ title: Culpa ad sed velit reprehenderit voluptatibus.
meta_title:
content:
meta_description:
visible: true
- slug: consequuntur-rerum-beatae-molestiae-explicabo-veniam-occaecati-non-voluptatem
+ slug: culpa-ad-sed-velit-reprehenderit-voluptatibus
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T21:57:01.183Z'
- updated_at: '2021-10-10T21:57:01.183Z'
+ created_at: '2021-10-11T15:47:38.657Z'
+ updated_at: '2021-10-11T15:47:38.657Z'
relationships:
cms_sections:
data: []
@@ -1311,17 +1310,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Recusandae assumenda numquam voluptate asperiores aperiam.
+ title: Assumenda iste laboriosam quos nam optio expedita.
meta_title:
content:
meta_description:
visible: true
- slug: recusandae-assumenda-numquam-voluptate-asperiores-aperiam
+ slug: assumenda-iste-laboriosam-quos-nam-optio-expedita
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T21:57:01.250Z'
- updated_at: '2021-10-10T21:57:01.250Z'
+ created_at: '2021-10-11T15:47:38.728Z'
+ updated_at: '2021-10-11T15:47:38.728Z'
relationships:
cms_sections:
data: []
@@ -1377,17 +1376,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Sapiente ullam repellat ea eos minima quam voluptatem.
+ title: Consequatur quos rerum blanditiis labore incidunt.
meta_title:
content:
meta_description:
visible: true
- slug: sapiente-ullam-repellat-ea-eos-minima-quam-voluptatem
+ slug: consequatur-quos-rerum-blanditiis-labore-incidunt
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T21:57:01.281Z'
- updated_at: '2021-10-10T21:57:01.281Z'
+ created_at: '2021-10-11T15:47:38.762Z'
+ updated_at: '2021-10-11T15:47:38.762Z'
relationships:
cms_sections:
data: []
@@ -1445,12 +1444,12 @@ paths:
content:
meta_description:
visible: true
- slug: corrupti-minus-mollitia-eos-ducimus-occaecati-nulla
+ slug: adipisci-accusantium-ad-libero-cum-aliquam-quos-repudiandae-magni
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T21:57:01.334Z'
- updated_at: '2021-10-10T21:57:01.343Z'
+ created_at: '2021-10-11T15:47:38.817Z'
+ updated_at: '2021-10-11T15:47:38.831Z'
relationships:
cms_sections:
data: []
@@ -1564,8 +1563,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Accusantium nobis adipisci beatae reprehenderit ipsum
- cum nesciunt provident.
+ name: Repellat ratione qui nihil esse.
content: {}
settings:
gutters: No Gutters
@@ -1574,8 +1572,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-10-10T21:57:01.498Z'
- updated_at: '2021-10-10T21:57:01.498Z'
+ created_at: '2021-10-11T15:47:38.997Z'
+ updated_at: '2021-10-11T15:47:38.997Z'
relationships:
cms_page:
data:
@@ -1586,7 +1584,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Facilis ipsa quo voluptatum cumque animi architecto.
+ name: Fuga voluptas soluta mollitia earum.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1598,8 +1596,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-10-10T21:57:01.501Z'
- updated_at: '2021-10-10T21:57:01.501Z'
+ created_at: '2021-10-11T15:47:39.001Z'
+ updated_at: '2021-10-11T15:47:39.001Z'
relationships:
cms_page:
data:
@@ -1610,8 +1608,7 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Nihil eaque cumque culpa quibusdam laudantium consequuntur
- nobis.
+ name: Molestias ipsam porro a aliquid rem aperiam.
content: {}
settings:
gutters: No Gutters
@@ -1620,8 +1617,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-10-10T21:57:01.509Z'
- updated_at: '2021-10-10T21:57:01.509Z'
+ created_at: '2021-10-11T15:47:39.010Z'
+ updated_at: '2021-10-11T15:47:39.010Z'
relationships:
cms_page:
data:
@@ -1632,7 +1629,7 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Ab voluptates dolorum eum cum.
+ name: Doloremque magni eos provident qui quaerat.
content: {}
settings:
gutters: No Gutters
@@ -1641,8 +1638,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:01.522Z'
- updated_at: '2021-10-10T21:57:01.522Z'
+ created_at: '2021-10-11T15:47:39.023Z'
+ updated_at: '2021-10-11T15:47:39.023Z'
relationships:
cms_page:
data:
@@ -1655,7 +1652,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Delectus ea voluptatem libero sit eaque quam.
+ name: Modi voluptatum nam facere amet veritatis ex cum placeat.
content: {}
settings:
gutters: No Gutters
@@ -1664,8 +1661,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:01.529Z'
- updated_at: '2021-10-10T21:57:01.529Z'
+ created_at: '2021-10-11T15:47:39.031Z'
+ updated_at: '2021-10-11T15:47:39.031Z'
relationships:
cms_page:
data:
@@ -1721,7 +1718,8 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Ullam necessitatibus omnis numquam voluptatem.
+ name: Suscipit impedit fugit ducimus dolores porro tempora
+ in.
content: {}
settings:
gutters: No Gutters
@@ -1730,8 +1728,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:01.679Z'
- updated_at: '2021-10-10T21:57:01.679Z'
+ created_at: '2021-10-11T15:47:39.188Z'
+ updated_at: '2021-10-11T15:47:39.188Z'
relationships:
cms_page:
data:
@@ -1793,8 +1791,7 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Accusantium illo alias nam repellendus dolorum molestiae
- nemo.
+ name: Magni nam voluptatum facilis nobis molestias quisquam.
content: {}
settings:
gutters: No Gutters
@@ -1803,8 +1800,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:01.871Z'
- updated_at: '2021-10-10T21:57:01.871Z'
+ created_at: '2021-10-11T15:47:39.386Z'
+ updated_at: '2021-10-11T15:47:39.386Z'
relationships:
cms_page:
data:
@@ -1872,8 +1869,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:02.065Z'
- updated_at: '2021-10-10T21:57:02.076Z'
+ created_at: '2021-10-11T15:47:39.596Z'
+ updated_at: '2021-10-11T15:47:39.608Z'
relationships:
cms_page:
data:
@@ -1975,8 +1972,7 @@ paths:
id: '58'
type: cms_section
attributes:
- name: Harum iste blanditiis suscipit saepe incidunt mollitia
- nam dignissimos.
+ name: Pariatur dolore quibusdam ut aut voluptatibus officiis.
content: {}
settings:
gutters: No Gutters
@@ -1985,8 +1981,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-10-10T21:57:02.711Z'
- updated_at: '2021-10-10T21:57:02.726Z'
+ created_at: '2021-10-11T15:47:40.239Z'
+ updated_at: '2021-10-11T15:47:40.253Z'
relationships:
cms_page:
data:
@@ -2044,9 +2040,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-10-10T21:57:02.897Z'
+ updated_at: '2021-10-11T15:47:40.421Z'
zipcode_required: true
- created_at: '2021-10-10T21:57:02.897Z'
+ created_at: '2021-10-11T15:47:40.421Z'
relationships:
states:
data: []
@@ -2059,9 +2055,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-10-10T21:57:02.904Z'
+ updated_at: '2021-10-11T15:47:40.428Z'
zipcode_required: true
- created_at: '2021-10-10T21:57:02.904Z'
+ created_at: '2021-10-11T15:47:40.428Z'
relationships:
states:
data: []
@@ -2074,9 +2070,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-10-10T21:57:02.906Z'
+ updated_at: '2021-10-11T15:47:40.431Z'
zipcode_required: true
- created_at: '2021-10-10T21:57:02.906Z'
+ created_at: '2021-10-11T15:47:40.431Z'
relationships:
states:
data: []
@@ -2131,9 +2127,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-10-10T21:57:02.944Z'
+ updated_at: '2021-10-11T15:47:40.477Z'
zipcode_required: true
- created_at: '2021-10-10T21:57:02.944Z'
+ created_at: '2021-10-11T15:47:40.477Z'
relationships:
states:
data: []
@@ -2185,13 +2181,31 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: L3nTwrBBi1MLipY1qLTNfj8E
+ token: QEVR9rwwbs3i4ZmsbUmdZHhT
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '1'
+ type: digital
+ line_item:
+ data:
+ id: '9'
+ type: line_item
- id: '2'
type: digital_link
attributes:
- token: 3vWUKqAJB51HqypnDVUjfquN
+ token: gck6YKkFUJFgWhJeneiqmTGq
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '2'
+ type: digital
+ line_item:
+ data:
+ id: '10'
+ type: line_item
meta:
count: 2
total_count: 2
@@ -2231,8 +2245,17 @@ paths:
id: '5'
type: digital_link
attributes:
- token: A4xDxqPGFfT6SArHvmStDmYd
+ token: VtDhJHGWJi5EdGjjXREJwaPj
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '5'
+ type: digital
+ line_item:
+ data:
+ id: '13'
+ type: line_item
'422':
description: invalid request
content:
@@ -2281,8 +2304,17 @@ paths:
id: '6'
type: digital_link
attributes:
- token: tDxJzNDvXmYRmUyUfzYXTmPr
+ token: 5K7HRyEVvpr3QFKMerBCQnB4
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '6'
+ type: digital
+ line_item:
+ data:
+ id: '14'
+ type: line_item
'404':
description: Record not found
content:
@@ -2325,8 +2357,17 @@ paths:
id: '8'
type: digital_link
attributes:
- token: 5boBPB45fH4bic4sBUSHJbyJ
+ token: 2TFGZtYxUJABT1kDPivuQeLZ
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '8'
+ type: digital
+ line_item:
+ data:
+ id: '16'
+ type: line_item
'422':
description: invalid request
content:
@@ -2419,8 +2460,17 @@ paths:
id: '13'
type: digital_link
attributes:
- token: 7NA9oawRMGPQXJJrXAzYqmYx
+ token: qVCBvXjXQFQUDQFL4n9ZYZ78
access_counter: 0
+ relationships:
+ digital:
+ data:
+ id: '13'
+ type: digital
+ line_item:
+ data:
+ id: '21'
+ type: line_item
"/api/v2/platform/digitals":
get:
summary: Returns a list of Digitals
@@ -2457,6 +2507,11 @@ paths:
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
+ relationships:
+ variant:
+ data:
+ id: '83'
+ type: variant
- id: '15'
type: digital
attributes:
@@ -2464,6 +2519,11 @@ paths:
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
+ relationships:
+ variant:
+ data:
+ id: '85'
+ type: variant
- id: '16'
type: digital
attributes:
@@ -2471,6 +2531,11 @@ paths:
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
+ relationships:
+ variant:
+ data:
+ id: '87'
+ type: variant
meta:
count: 3
total_count: 3
@@ -2514,6 +2579,11 @@ paths:
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
+ relationships:
+ variant:
+ data:
+ id: '97'
+ type: variant
'422':
description: invalid request
content:
@@ -2563,6 +2633,11 @@ paths:
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
+ relationships:
+ variant:
+ data:
+ id: '115'
+ type: variant
'404':
description: Record not found
content:
@@ -2609,6 +2684,11 @@ paths:
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
+ relationships:
+ variant:
+ data:
+ id: '137'
+ type: variant
'422':
description: invalid request
content:
@@ -2721,8 +2801,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T21:57:09.684Z'
- updated_at: '2021-10-10T21:57:09.692Z'
+ created_at: '2021-10-11T15:47:47.477Z'
+ updated_at: '2021-10-11T15:47:47.487Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2768,8 +2848,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T21:57:09.730Z'
- updated_at: '2021-10-10T21:57:09.737Z'
+ created_at: '2021-10-11T15:47:47.529Z'
+ updated_at: '2021-10-11T15:47:47.537Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2858,8 +2938,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T21:57:09.938Z'
- updated_at: '2021-10-10T21:57:09.973Z'
+ created_at: '2021-10-11T15:47:47.767Z'
+ updated_at: '2021-10-11T15:47:47.870Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2957,8 +3037,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T21:57:10.171Z'
- updated_at: '2021-10-10T21:57:10.178Z'
+ created_at: '2021-10-11T15:47:48.012Z'
+ updated_at: '2021-10-11T15:47:48.019Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3050,8 +3130,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-10-10T21:57:10.390Z'
- updated_at: '2021-10-10T21:57:10.427Z'
+ created_at: '2021-10-11T15:47:48.242Z'
+ updated_at: '2021-10-11T15:47:48.278Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3099,10 +3179,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #131 - 7218" is not available.'
+ error: 'Quantity selected of "Product #131 - 8765" is not available.'
errors:
quantity:
- - 'selected of "Product #131 - 7218" is not available.'
+ - 'selected of "Product #131 - 8765" is not available.'
'404':
description: Record not found
content:
@@ -3212,8 +3292,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-10-10T21:57:10.981Z'
- updated_at: '2021-10-10T21:57:10.986Z'
+ created_at: '2021-10-11T15:47:48.879Z'
+ updated_at: '2021-10-11T15:47:48.883Z'
link:
is_container: false
is_root: false
@@ -3249,8 +3329,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-10-10T21:57:11.031Z'
- updated_at: '2021-10-10T21:57:11.035Z'
+ created_at: '2021-10-11T15:47:48.931Z'
+ updated_at: '2021-10-11T15:47:48.935Z'
link:
is_container: false
is_root: false
@@ -3286,8 +3366,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-10-10T21:57:11.078Z'
- updated_at: '2021-10-10T21:57:11.083Z'
+ created_at: '2021-10-11T15:47:48.981Z'
+ updated_at: '2021-10-11T15:47:48.985Z'
link:
is_container: false
is_root: false
@@ -3323,8 +3403,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T21:57:11.127Z'
- updated_at: '2021-10-10T21:57:11.131Z'
+ created_at: '2021-10-11T15:47:49.031Z'
+ updated_at: '2021-10-11T15:47:49.036Z'
link:
is_container: false
is_root: false
@@ -3360,8 +3440,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-10-10T21:57:11.176Z'
- updated_at: '2021-10-10T21:57:11.180Z'
+ created_at: '2021-10-11T15:47:49.090Z'
+ updated_at: '2021-10-11T15:47:49.094Z'
link:
is_container: false
is_root: false
@@ -3397,8 +3477,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-10-10T21:57:11.225Z'
- updated_at: '2021-10-10T21:57:11.230Z'
+ created_at: '2021-10-11T15:47:49.141Z'
+ updated_at: '2021-10-11T15:47:49.145Z'
link:
is_container: false
is_root: false
@@ -3434,8 +3514,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-10-10T21:57:11.276Z'
- updated_at: '2021-10-10T21:57:11.280Z'
+ created_at: '2021-10-11T15:47:49.192Z'
+ updated_at: '2021-10-11T15:47:49.196Z'
link:
is_container: false
is_root: false
@@ -3461,8 +3541,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Corrupti quam occaecati accusamus sapiente sed minima
- veniam ipsam.
+ name: Assumenda quos unde omnis sit temporibus.
subtitle:
destination:
new_window: false
@@ -3472,8 +3551,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-10-10T21:57:10.932Z'
- updated_at: '2021-10-10T21:57:11.289Z'
+ created_at: '2021-10-11T15:47:48.820Z'
+ updated_at: '2021-10-11T15:47:49.207Z'
link:
is_container: true
is_root: true
@@ -3562,8 +3641,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T21:57:11.888Z'
- updated_at: '2021-10-10T21:57:11.892Z'
+ created_at: '2021-10-11T15:47:49.815Z'
+ updated_at: '2021-10-11T15:47:49.819Z'
link:
is_container: false
is_root: false
@@ -3649,8 +3728,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T21:57:12.287Z'
- updated_at: '2021-10-10T21:57:12.291Z'
+ created_at: '2021-10-11T15:47:50.295Z'
+ updated_at: '2021-10-11T15:47:50.298Z'
link:
is_container: false
is_root: false
@@ -3732,8 +3811,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T21:57:13.016Z'
- updated_at: '2021-10-10T21:57:13.041Z'
+ created_at: '2021-10-11T15:47:50.929Z'
+ updated_at: '2021-10-11T15:47:50.956Z'
link:
is_container: false
is_root: false
@@ -3858,8 +3937,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-10-10T21:57:14.547Z'
- updated_at: '2021-10-10T21:57:14.571Z'
+ created_at: '2021-10-11T15:47:52.492Z'
+ updated_at: '2021-10-11T15:47:52.516Z'
link:
is_container: false
is_root: false
@@ -3951,34 +4030,34 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T21:57:15.001Z'
- updated_at: '2021-10-10T21:57:15.117Z'
+ created_at: '2021-10-11T15:47:52.968Z'
+ updated_at: '2021-10-11T15:47:53.089Z'
relationships:
menu_items:
data:
- id: '89'
type: menu_item
- - id: '90'
- type: menu_item
- id: '87'
type: menu_item
+ - id: '90'
+ type: menu_item
- id: '19'
type: menu
attributes:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-10-10T21:57:15.010Z'
- updated_at: '2021-10-10T21:57:15.216Z'
+ created_at: '2021-10-11T15:47:52.978Z'
+ updated_at: '2021-10-11T15:47:53.189Z'
relationships:
menu_items:
data:
- id: '91'
type: menu_item
- - id: '92'
- type: menu_item
- id: '88'
type: menu_item
+ - id: '92'
+ type: menu_item
meta:
count: 2
total_count: 2
@@ -4028,8 +4107,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T21:57:15.492Z'
- updated_at: '2021-10-10T21:57:15.499Z'
+ created_at: '2021-10-11T15:47:53.477Z'
+ updated_at: '2021-10-11T15:47:53.484Z'
relationships:
menu_items:
data:
@@ -4093,8 +4172,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T21:57:15.533Z'
- updated_at: '2021-10-10T21:57:15.540Z'
+ created_at: '2021-10-11T15:47:53.520Z'
+ updated_at: '2021-10-11T15:47:53.527Z'
relationships:
menu_items:
data:
@@ -4152,8 +4231,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T21:57:15.600Z'
- updated_at: '2021-10-10T21:57:15.616Z'
+ created_at: '2021-10-11T15:47:53.669Z'
+ updated_at: '2021-10-11T15:47:53.676Z'
relationships:
menu_items:
data:
@@ -4277,8 +4356,8 @@ paths:
name: foo-size-67
presentation: Size
position: 1
- created_at: '2021-10-10T21:57:15.839Z'
- updated_at: '2021-10-10T21:57:15.839Z'
+ created_at: '2021-10-11T15:47:53.846Z'
+ updated_at: '2021-10-11T15:47:53.846Z'
filterable: true
relationships:
option_values:
@@ -4289,8 +4368,8 @@ paths:
name: foo-size-68
presentation: Size
position: 2
- created_at: '2021-10-10T21:57:15.841Z'
- updated_at: '2021-10-10T21:57:15.841Z'
+ created_at: '2021-10-11T15:47:53.847Z'
+ updated_at: '2021-10-11T15:47:53.847Z'
filterable: true
relationships:
option_values:
@@ -4344,8 +4423,8 @@ paths:
name: foo-size-71
presentation: Size
position: 1
- created_at: '2021-10-10T21:57:15.887Z'
- updated_at: '2021-10-10T21:57:15.887Z'
+ created_at: '2021-10-11T15:47:53.902Z'
+ updated_at: '2021-10-11T15:47:53.902Z'
filterable: true
relationships:
option_values:
@@ -4405,8 +4484,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-10-10T21:57:15.920Z'
- updated_at: '2021-10-10T21:57:15.920Z'
+ created_at: '2021-10-11T15:47:53.933Z'
+ updated_at: '2021-10-11T15:47:53.933Z'
filterable: true
relationships:
option_values:
@@ -4463,8 +4542,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-10-10T21:57:15.969Z'
- updated_at: '2021-10-10T21:57:15.975Z'
+ created_at: '2021-10-11T15:47:53.981Z'
+ updated_at: '2021-10-11T15:47:53.988Z'
filterable: true
relationships:
option_values:
@@ -4582,8 +4661,8 @@ paths:
position: 1
name: Size-67
presentation: S
- created_at: '2021-10-10T21:57:16.091Z'
- updated_at: '2021-10-10T21:57:16.091Z'
+ created_at: '2021-10-11T15:47:54.116Z'
+ updated_at: '2021-10-11T15:47:54.116Z'
relationships:
option_type:
data:
@@ -4595,8 +4674,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-10-10T21:57:16.098Z'
- updated_at: '2021-10-10T21:57:16.098Z'
+ created_at: '2021-10-11T15:47:54.123Z'
+ updated_at: '2021-10-11T15:47:54.123Z'
relationships:
option_type:
data:
@@ -4651,8 +4730,8 @@ paths:
position: 1
name: Size-71
presentation: S
- created_at: '2021-10-10T21:57:16.149Z'
- updated_at: '2021-10-10T21:57:16.149Z'
+ created_at: '2021-10-11T15:47:54.178Z'
+ updated_at: '2021-10-11T15:47:54.178Z'
relationships:
option_type:
data:
@@ -4711,8 +4790,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-10-10T21:57:16.180Z'
- updated_at: '2021-10-10T21:57:16.180Z'
+ created_at: '2021-10-11T15:47:54.211Z'
+ updated_at: '2021-10-11T15:47:54.211Z'
relationships:
option_type:
data:
@@ -4770,8 +4849,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-10-10T21:57:16.234Z'
- updated_at: '2021-10-10T21:57:16.242Z'
+ created_at: '2021-10-11T15:47:54.274Z'
+ updated_at: '2021-10-11T15:47:54.283Z'
relationships:
option_type:
data:
@@ -4887,7 +4966,7 @@ paths:
- id: '39'
type: order
attributes:
- number: R657941002
+ number: R033330146
item_total: '0.0'
total: '0.0'
state: cart
@@ -4896,10 +4975,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:16.378Z'
- updated_at: '2021-10-10T21:57:16.378Z'
+ created_at: '2021-10-11T15:47:54.428Z'
+ updated_at: '2021-10-11T15:47:54.428Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -4971,7 +5050,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R453206325
+ number: R207931619
item_total: '0.0'
total: '0.0'
state: cart
@@ -4980,10 +5059,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:16.386Z'
- updated_at: '2021-10-10T21:57:16.386Z'
+ created_at: '2021-10-11T15:47:54.437Z'
+ updated_at: '2021-10-11T15:47:54.437Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5098,7 +5177,7 @@ paths:
id: '43'
type: order
attributes:
- number: R759083599
+ number: R434017196
item_total: '0.0'
total: '0.0'
state: cart
@@ -5109,8 +5188,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-10-10T21:57:16.659Z'
- updated_at: '2021-10-10T21:57:16.673Z'
+ created_at: '2021-10-11T15:47:54.842Z'
+ updated_at: '2021-10-11T15:47:54.857Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5222,7 +5301,7 @@ paths:
id: '44'
type: order
attributes:
- number: R547632194
+ number: R847789377
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5231,10 +5310,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:16.710Z'
- updated_at: '2021-10-10T21:57:16.835Z'
+ created_at: '2021-10-11T15:47:54.897Z'
+ updated_at: '2021-10-11T15:47:55.043Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5358,7 +5437,7 @@ paths:
id: '46'
type: order
attributes:
- number: R223844520
+ number: R629186988
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5369,8 +5448,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:17.072Z'
- updated_at: '2021-10-10T21:57:17.157Z'
+ created_at: '2021-10-11T15:47:55.287Z'
+ updated_at: '2021-10-11T15:47:55.387Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5544,7 +5623,7 @@ paths:
id: '51'
type: order
attributes:
- number: R886792450
+ number: R776357843
item_total: '10.0'
total: '110.0'
state: payment
@@ -5553,10 +5632,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:17.705Z'
- updated_at: '2021-10-10T21:57:17.826Z'
+ created_at: '2021-10-11T15:47:55.950Z'
+ updated_at: '2021-10-11T15:47:56.081Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5683,7 +5762,7 @@ paths:
id: '53'
type: order
attributes:
- number: R024191269
+ number: R823906949
item_total: '10.0'
total: '110.0'
state: payment
@@ -5692,10 +5771,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:17.981Z'
- updated_at: '2021-10-10T21:57:18.114Z'
+ created_at: '2021-10-11T15:47:56.261Z'
+ updated_at: '2021-10-11T15:47:56.399Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5822,19 +5901,19 @@ paths:
id: '55'
type: order
attributes:
- number: R166254558
+ number: R451461982
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-10-10T21:57:18.447Z'
+ completed_at: '2021-10-11T15:47:56.771Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-10-10T21:57:18.265Z'
- updated_at: '2021-10-10T21:57:18.447Z'
+ created_at: '2021-10-11T15:47:56.564Z'
+ updated_at: '2021-10-11T15:47:56.771Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5972,7 +6051,7 @@ paths:
id: '58'
type: order
attributes:
- number: R713464745
+ number: R236763839
item_total: '0.0'
total: '0.0'
state: cart
@@ -5981,10 +6060,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:18.716Z'
- updated_at: '2021-10-10T21:57:18.807Z'
+ created_at: '2021-10-11T15:47:57.067Z'
+ updated_at: '2021-10-11T15:47:57.172Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6105,7 +6184,7 @@ paths:
id: '60'
type: order
attributes:
- number: R386479271
+ number: R190044219
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6114,10 +6193,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:18.957Z'
- updated_at: '2021-10-10T21:57:19.097Z'
+ created_at: '2021-10-11T15:47:57.334Z'
+ updated_at: '2021-10-11T15:47:57.479Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6258,7 +6337,7 @@ paths:
id: '63'
type: order
attributes:
- number: R947124525
+ number: R965640253
item_total: '10.0'
total: '10.0'
state: delivery
@@ -6267,10 +6346,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T21:57:19.401Z'
- updated_at: '2021-10-10T21:57:19.522Z'
+ created_at: '2021-10-11T15:47:57.819Z'
+ updated_at: '2021-10-11T15:47:57.950Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6424,14 +6503,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #97'
- created_at: '2021-10-10T21:57:19.796Z'
- updated_at: '2021-10-10T21:57:19.796Z'
+ created_at: '2021-10-11T15:47:58.240Z'
+ updated_at: '2021-10-11T15:47:58.240Z'
- id: '98'
type: shipping_category
attributes:
name: 'ShippingCategory #98'
- created_at: '2021-10-10T21:57:19.797Z'
- updated_at: '2021-10-10T21:57:19.797Z'
+ created_at: '2021-10-11T15:47:58.241Z'
+ updated_at: '2021-10-11T15:47:58.241Z'
meta:
count: 2
total_count: 2
@@ -6479,8 +6558,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #101'
- created_at: '2021-10-10T21:57:19.843Z'
- updated_at: '2021-10-10T21:57:19.843Z'
+ created_at: '2021-10-11T15:47:58.287Z'
+ updated_at: '2021-10-11T15:47:58.287Z'
'422':
description: invalid request
content:
@@ -6532,8 +6611,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #102'
- created_at: '2021-10-10T21:57:19.873Z'
- updated_at: '2021-10-10T21:57:19.873Z'
+ created_at: '2021-10-11T15:47:58.315Z'
+ updated_at: '2021-10-11T15:47:58.315Z'
'404':
description: Record not found
content:
@@ -6584,8 +6663,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-10-10T21:57:19.920Z'
- updated_at: '2021-10-10T21:57:19.926Z'
+ created_at: '2021-10-11T15:47:58.362Z'
+ updated_at: '2021-10-11T15:47:58.368Z'
'422':
description: invalid request
content:
@@ -6702,8 +6781,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T21:57:20.093Z'
- updated_at: '2021-10-10T21:57:20.096Z'
+ created_at: '2021-10-11T15:47:58.533Z'
+ updated_at: '2021-10-11T15:47:58.537Z'
meta_title:
meta_description:
meta_keywords:
@@ -6737,8 +6816,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-10-10T21:57:20.143Z'
- updated_at: '2021-10-10T21:57:20.147Z'
+ created_at: '2021-10-11T15:47:58.583Z'
+ updated_at: '2021-10-11T15:47:58.586Z'
meta_title:
meta_description:
meta_keywords:
@@ -6772,8 +6851,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-10-10T21:57:20.036Z'
- updated_at: '2021-10-10T21:57:20.156Z'
+ created_at: '2021-10-11T15:47:58.476Z'
+ updated_at: '2021-10-11T15:47:58.595Z'
meta_title:
meta_description:
meta_keywords:
@@ -6850,8 +6929,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T21:57:20.379Z'
- updated_at: '2021-10-10T21:57:20.384Z'
+ created_at: '2021-10-11T15:47:58.811Z'
+ updated_at: '2021-10-11T15:47:58.816Z'
meta_title:
meta_description:
meta_keywords:
@@ -6932,8 +7011,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T21:57:20.476Z'
- updated_at: '2021-10-10T21:57:20.481Z'
+ created_at: '2021-10-11T15:47:58.916Z'
+ updated_at: '2021-10-11T15:47:58.919Z'
meta_title:
meta_description:
meta_keywords:
@@ -7015,8 +7094,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T21:57:20.672Z'
- updated_at: '2021-10-10T21:57:20.695Z'
+ created_at: '2021-10-11T15:47:59.115Z'
+ updated_at: '2021-10-11T15:47:59.137Z'
meta_title:
meta_description:
meta_keywords:
@@ -7151,9 +7230,9 @@ paths:
- id: '67'
type: user
attributes:
- created_at: '2021-10-10T21:57:21.121Z'
- updated_at: '2021-10-10T21:57:21.121Z'
+ created_at: '2021-10-11T15:47:59.578Z'
+ updated_at: '2021-10-11T15:47:59.578Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7165,9 +7244,9 @@ paths:
- id: '68'
type: user
attributes:
- created_at: '2021-10-10T21:57:21.126Z'
- updated_at: '2021-10-10T21:57:21.126Z'
+ created_at: '2021-10-11T15:47:59.583Z'
+ updated_at: '2021-10-11T15:47:59.583Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7179,9 +7258,9 @@ paths:
- id: '69'
type: user
attributes:
- created_at: '2021-10-10T21:57:21.128Z'
- updated_at: '2021-10-10T21:57:21.128Z'
+ created_at: '2021-10-11T15:47:59.585Z'
+ updated_at: '2021-10-11T15:47:59.585Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7236,9 +7315,9 @@ paths:
id: '74'
type: user
attributes:
- created_at: '2021-10-10T21:57:21.195Z'
- updated_at: '2021-10-10T21:57:21.195Z'
+ created_at: '2021-10-11T15:47:59.648Z'
+ updated_at: '2021-10-11T15:47:59.648Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7297,9 +7376,9 @@ paths:
id: '77'
type: user
attributes:
- created_at: '2021-10-10T21:57:21.243Z'
- updated_at: '2021-10-10T21:57:21.243Z'
+ created_at: '2021-10-11T15:47:59.691Z'
+ updated_at: '2021-10-11T15:47:59.691Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7358,8 +7437,8 @@ paths:
type: user
attributes:
- created_at: '2021-10-10T21:57:21.310Z'
- updated_at: '2021-10-10T21:57:21.320Z'
+ created_at: '2021-10-11T15:47:59.756Z'
+ updated_at: '2021-10-11T15:47:59.765Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7473,8 +7552,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:21.632Z'
- updated_at: '2021-10-10T21:57:21.632Z'
+ created_at: '2021-10-11T15:48:00.080Z'
+ updated_at: '2021-10-11T15:48:00.080Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7488,8 +7567,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:21.677Z'
- updated_at: '2021-10-10T21:57:21.677Z'
+ created_at: '2021-10-11T15:48:00.132Z'
+ updated_at: '2021-10-11T15:48:00.132Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7503,8 +7582,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:21.720Z'
- updated_at: '2021-10-10T21:57:21.720Z'
+ created_at: '2021-10-11T15:48:00.181Z'
+ updated_at: '2021-10-11T15:48:00.181Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7518,8 +7597,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:21.765Z'
- updated_at: '2021-10-10T21:57:21.765Z'
+ created_at: '2021-10-11T15:48:00.229Z'
+ updated_at: '2021-10-11T15:48:00.229Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7576,8 +7655,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:22.122Z'
- updated_at: '2021-10-10T21:57:22.122Z'
+ created_at: '2021-10-11T15:48:00.610Z'
+ updated_at: '2021-10-11T15:48:00.610Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7643,8 +7722,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T21:57:22.322Z'
- updated_at: '2021-10-10T21:57:22.322Z'
+ created_at: '2021-10-11T15:48:00.827Z'
+ updated_at: '2021-10-11T15:48:00.827Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7704,8 +7783,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-10-10T21:57:22.654Z'
- updated_at: '2021-10-10T21:57:22.663Z'
+ created_at: '2021-10-11T15:48:01.184Z'
+ updated_at: '2021-10-11T15:48:01.192Z'
display_price: "$19.99"
display_total: "$59.97"
price: '19.99'
@@ -7828,9 +7907,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-10-10T21:57:23.346Z'
- updated_at: '2021-10-10T21:57:23.346Z'
- token: UArg9HEZVEAi5i6FALH8yEo9
+ created_at: '2021-10-11T15:48:01.929Z'
+ updated_at: '2021-10-11T15:48:01.929Z'
+ token: 6XAD4JiPfCGkYtsB5izdDnRW
variant_included: false
relationships:
wished_items:
@@ -7845,9 +7924,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-10-10T21:57:23.347Z'
- updated_at: '2021-10-10T21:57:23.347Z'
- token: qpMf2Yur66pNLdb51AyTyTCn
+ created_at: '2021-10-11T15:48:01.931Z'
+ updated_at: '2021-10-11T15:48:01.931Z'
+ token: nUoYamXN2Ts4FmKdv8Woypov
variant_included: false
relationships:
wished_items:
@@ -7905,9 +7984,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-10-10T21:57:23.796Z'
- updated_at: '2021-10-10T21:57:23.796Z'
- token: 4THe914yz8kk5nYyGbfcvzCQ
+ created_at: '2021-10-11T15:48:02.411Z'
+ updated_at: '2021-10-11T15:48:02.411Z'
+ token: JDQH8JBdE2vVnLTJycENzsdp
variant_included: false
relationships:
wished_items:
@@ -7967,9 +8046,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-10-10T21:57:23.830Z'
- updated_at: '2021-10-10T21:57:23.830Z'
- token: k2d66sALbe1aWi1DnX9CmiBW
+ created_at: '2021-10-11T15:48:02.449Z'
+ updated_at: '2021-10-11T15:48:02.449Z'
+ token: Scm4gz8oK3v2gESoGMfXrrHb
variant_included: false
relationships:
wished_items:
@@ -8026,9 +8105,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-10-10T21:57:23.885Z'
- updated_at: '2021-10-10T21:57:23.892Z'
- token: 6oYfVsGWFnWfs62F4HQM7LHr
+ created_at: '2021-10-11T15:48:02.512Z'
+ updated_at: '2021-10-11T15:48:02.520Z'
+ token: xMXdYQZWQsyK7XQm7z5WKLe8
variant_included: false
relationships:
wished_items:
@@ -8218,10 +8297,10 @@ components:
default: false
created_at:
type: string
- example: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
updated_at:
type: string
- example: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
required:
- order_id
- label
@@ -8323,7 +8402,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
bill_address_id:
type: string
ship_address_id:
@@ -8375,7 +8454,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
confirmation_delivered:
type: boolean
example: true
@@ -8557,12 +8636,12 @@ components:
example: Another Category
created_at:
type: string
- example: 2021-10-10 21:56:57 UTC
- default: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
+ default: 2021-10-11 15:47:34 UTC
updated_at:
type: string
- example: 2021-10-10 21:56:57 UTC
- default: 2021-10-10 21:56:57 UTC
+ example: 2021-10-11 15:47:34 UTC
+ default: 2021-10-11 15:47:34 UTC
required:
- name
wishlist_params:
diff --git a/api/lib/spree/api/testing_support/v2/current_order.rb b/api/lib/spree/api/testing_support/v2/current_order.rb
index 1122e8d857..727bb2097b 100644
--- a/api/lib/spree/api/testing_support/v2/current_order.rb
+++ b/api/lib/spree/api/testing_support/v2/current_order.rb
@@ -3,7 +3,7 @@ def ensure_order_totals
order.persist_totals
end
-shared_context 'creates an order with a phisical line item' do
+shared_context 'creates order with line item' do
let!(:line_item) { create(:line_item, order: order, currency: currency) }
let!(:headers) { headers_bearer }
@@ -13,7 +13,11 @@ shared_context 'creates an order with a phisical line item' do
end
end
-shared_context 'creates an order with a digital line item' do
+shared_context 'order with a physical line item' do
+ include_context 'creates order with line item'
+end
+
+shared_context 'order with a digital line item' do
let!(:digital) { create(:digital) }
let!(:variant_digital) { digital.variant }
let!(:line_item) { create(:line_item, variant: variant_digital, order: order, currency: currency) }
@@ -25,11 +29,11 @@ shared_context 'creates an order with a digital line item' do
end
end
-shared_context 'creates an order with a phisical and digital line item' do
+shared_context 'order with a physical and digital line item' do
let!(:digital) { create(:digital) }
let!(:variant_digital) { digital.variant }
let!(:digital_line_item) { create(:line_item, variant: variant_digital, order: order, currency: currency) }
- let!(:phisical_line_item) { create(:line_item, order: order, currency: currency) }
+ let!(:physical_line_item) { create(:line_item, order: order, currency: currency) }
let!(:headers) { headers_bearer }
diff --git a/api/spec/requests/spree/api/v2/storefront/cart_spec.rb b/api/spec/requests/spree/api/v2/storefront/cart_spec.rb
index 6f4a535d78..448ed46999 100644
--- a/api/spec/requests/spree/api/v2/storefront/cart_spec.rb
+++ b/api/spec/requests/spree/api/v2/storefront/cart_spec.rb
@@ -220,7 +220,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
context 'with existing order' do
it_behaves_like 'adds item'
@@ -271,7 +271,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
context 'with existing order' do
it_behaves_like 'removes line item'
@@ -307,7 +307,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
context 'as a signed in user' do
context 'with existing order with line item' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'emptying the order'
end
@@ -343,7 +343,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
context 'as a signed in user' do
context 'with existing order with line item' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'destroying order'
it_behaves_like '204 status returned'
@@ -437,7 +437,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'set quantity'
end
@@ -470,7 +470,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'with existing user order with line item' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'showing the cart'
end
@@ -513,7 +513,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
context 'as a signed user' do
context 'with valid currency param' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'showing the cart'
it 'includes the requested currency' do
@@ -523,7 +523,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'with invalid currency param' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'showing the cart'
it 'includes the requested currency' do
@@ -539,7 +539,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
let(:bill_addr_params) { { include: 'billing_address' } }
let(:ship_addr_params) { { include: 'shipping_address' } }
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'showing the cart'
it 'will return included bill_address' do
@@ -641,7 +641,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
context 'with existing order' do
it_behaves_like 'apply coupon code'
@@ -831,7 +831,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'remove coupon code'
end
@@ -887,7 +887,7 @@ describe 'API V2 Storefront Cart Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates order with line item'
+ include_context 'order with a physical line item'
it_behaves_like 'returns a list of shipments with shipping rates'
end
diff --git a/api/spec/requests/spree/api/v2/storefront/checkout_spec.rb b/api/spec/requests/spree/api/v2/storefront/checkout_spec.rb
index ac0869bb16..1adf9a6371 100644
--- a/api/spec/requests/spree/api/v2/storefront/checkout_spec.rb
+++ b/api/spec/requests/spree/api/v2/storefront/checkout_spec.rb
@@ -103,7 +103,7 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a phisical line item'
+ include_context 'order with a physical line item'
it_behaves_like 'perform next'
end
@@ -154,7 +154,7 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a phisical line item'
+ include_context 'order with a physical line item'
it_behaves_like 'perform advance'
end
@@ -210,15 +210,15 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a phisical line item'
+ include_context 'order with a physical line item'
it_behaves_like 'perform complete'
end
end
- order_contexts = ['creates an order with a phisical line item',
- 'creates an order with a digital line item',
- 'creates an order with a phisical and digital line item'].freeze
+ order_contexts = ['order with a physical line item',
+ 'order with a digital line item',
+ 'order with a physical and digital line item'].freeze
order_contexts.each do |order_context|
describe "checkout#update (#{order_context})" do
@@ -575,7 +575,7 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a phisical line item'
+ include_context 'order with a physical line item'
it_behaves_like 'returns a list of available payment methods'
end
@@ -641,16 +641,16 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a phisical line item'
+ include_context 'order with a physical line item'
it_behaves_like 'returns a list of shipments with shipping rates'
end
end
- orders_requiring_delivery = ['creates an order with a phisical line item', 'creates an order with a phisical and digital line item'].freeze
+ orders_requiring_delivery = ['order with a physical line item', 'order with a physical and digital line item'].freeze
- orders_requiring_delivery.each do |phisical_goods_context|
- describe "full checkout flow (#{phisical_goods_context})" do
+ orders_requiring_delivery.each do |physical_goods_context|
+ describe "full checkout flow (#{physical_goods_context})" do
let!(:country) { create(:country) }
let(:state) { create(:state, country: country) }
let!(:shipping_method) do
@@ -731,7 +731,7 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context phisical_goods_context
+ include_context physical_goods_context
it_behaves_like 'transitions through checkout from start to finish'
end
@@ -811,7 +811,7 @@ describe 'API V2 Storefront Checkout Spec', type: :request do
end
context 'as a signed in user' do
- include_context 'creates an order with a digital line item'
+ include_context 'order with a digital line item'
it_behaves_like 'transitions through checkout from start to finish'
end
diff --git a/api/spec/serializers/spree/api/v2/platform/digital_link_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/digital_link_serializer_spec.rb
index 1e109cb16d..568e40b6e8 100644
--- a/api/spec/serializers/spree/api/v2/platform/digital_link_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/digital_link_serializer_spec.rb
@@ -16,6 +16,20 @@ describe Spree::Api::V2::Platform::DigitalLinkSerializer do
attributes: {
access_counter: 0,
token: digital_link.token
+ },
+ relationships: {
+ digital: {
+ data: {
+ id: digital_link.digital.id.to_s,
+ type: :digital
+ }
+ },
+ line_item: {
+ data: {
+ id: digital_link.line_item.id.to_s,
+ type: :line_item
+ }
+ }
}
}
}
diff --git a/api/spec/serializers/spree/api/v2/platform/digital_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/digital_serializer_spec.rb
index edc11d5aa4..00577651ec 100644
--- a/api/spec/serializers/spree/api/v2/platform/digital_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/digital_serializer_spec.rb
@@ -18,6 +18,14 @@ describe Spree::Api::V2::Platform::DigitalSerializer do
content_type: digital.attachment.content_type.to_s,
filename: digital.attachment.filename.to_s,
url: Rails.application.routes.url_helpers.polymorphic_url(digital.attachment, only_path: true)
+ },
+ relationships: {
+ variant: {
+ data: {
+ id: digital.variant.id.to_s,
+ type: :variant
+ }
+ }
}
}
}
diff --git a/core/app/models/spree/order.rb b/core/app/models/spree/order.rb
index f3e3947b51..efda1d5af3 100644
--- a/core/app/models/spree/order.rb
+++ b/core/app/models/spree/order.rb
@@ -213,7 +213,7 @@ module Spree
line_items.exists?
end
- # Does this order require a phisical delivery.
+ # Does this order require a physical delivery.
def delivery_required?
!digital?
end