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 reset endpoint for digital link

Matthew Kennedy2b1d42d47cc3
diff --git a/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb b/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb
index b370d4bab2..faa255f479 100644
--- a/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/digital_links_controller.rb
@@ -3,6 +3,19 @@ module Spree
module V2
module Platform
class DigitalLinksController < ResourceController
+ before_action -> { doorkeeper_authorize! :write, :admin }, only: WRITE_ACTIONS << :reset
+
+ def reset
+ spree_authorize! :update, @digital_link if spree_current_user.present?
+
+ @digital_link = scope.find(params[:id])
+ @digital_link.reset!
+
+ if @digital_link.save
+ render_serialized_payload { serialize_resource(@digital_link) }
+ end
+ end
+
private
def model_class
diff --git a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
index 86344ab0f8..ee28805639 100644
--- a/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/menu_items_controller.rb
@@ -19,7 +19,7 @@ module Spree
end
if @moved_item.save
- render_serialized_payload { serialize_resource(resource) }
+ render_serialized_payload { serialize_resource(@moved_item) }
end
end
diff --git a/api/config/routes.rb b/api/config/routes.rb
index 1136b4b85b..38066d94ca 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -298,7 +298,11 @@ Spree::Core::Engine.add_routes do
# Digitals API
resources :digitals
- resources :digital_links
+ resources :digital_links do
+ member do
+ patch :reset
+ end
+ end
# Store API
resources :stores
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index cc0fc593cf..848ad36d79 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-10T20:22:01.294Z'
- updated_at: '2021-10-10T20:22:01.294Z'
+ created_at: '2021-10-10T21:56:57.757Z'
+ updated_at: '2021-10-10T21:56:57.757Z'
deleted_at:
label:
relationships:
@@ -91,8 +91,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T20:22:01.298Z'
- updated_at: '2021-10-10T20:22:01.298Z'
+ created_at: '2021-10-10T21:56:57.761Z'
+ updated_at: '2021-10-10T21:56:57.761Z'
deleted_at:
label:
relationships:
@@ -162,8 +162,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T20:22:01.451Z'
- updated_at: '2021-10-10T20:22:01.451Z'
+ created_at: '2021-10-10T21:56:57.902Z'
+ updated_at: '2021-10-10T21:56:57.902Z'
deleted_at:
label:
relationships:
@@ -253,8 +253,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T20:22:01.493Z'
- updated_at: '2021-10-10T20:22:01.493Z'
+ created_at: '2021-10-10T21:56:57.948Z'
+ updated_at: '2021-10-10T21:56:57.948Z'
deleted_at:
label:
relationships:
@@ -327,8 +327,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-10T20:22:01.546Z'
- updated_at: '2021-10-10T20:22:01.554Z'
+ created_at: '2021-10-10T21:56:58.002Z'
+ updated_at: '2021-10-10T21:56:58.010Z'
deleted_at:
label:
relationships:
@@ -460,8 +460,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T20:22:01.765Z'
- updated_at: '2021-10-10T20:22:01.765Z'
+ created_at: '2021-10-10T21:56:58.207Z'
+ updated_at: '2021-10-10T21:56:58.207Z'
state: open
included: false
display_amount: "$100.00"
@@ -487,8 +487,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T20:22:01.784Z'
- updated_at: '2021-10-10T20:22:01.784Z'
+ created_at: '2021-10-10T21:56:58.230Z'
+ updated_at: '2021-10-10T21:56:58.230Z'
state: open
included: false
display_amount: "$100.00"
@@ -557,8 +557,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T20:22:02.068Z'
- updated_at: '2021-10-10T20:22:02.068Z'
+ created_at: '2021-10-10T21:56:58.489Z'
+ updated_at: '2021-10-10T21:56:58.489Z'
state: open
included: false
display_amount: "$100.00"
@@ -636,8 +636,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-10T20:22:02.165Z'
- updated_at: '2021-10-10T20:22:02.169Z'
+ created_at: '2021-10-10T21:56:58.584Z'
+ updated_at: '2021-10-10T21:56:58.588Z'
state: open
included: false
display_amount: "$1.00"
@@ -709,8 +709,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-10-10T20:22:02.336Z'
- updated_at: '2021-10-10T20:22:02.350Z'
+ created_at: '2021-10-10T21:56:58.756Z'
+ updated_at: '2021-10-10T21:56:58.768Z'
state: open
included: false
display_amount: "$15.00"
@@ -838,8 +838,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T20:22:02.934Z'
- updated_at: '2021-10-10T20:22:02.934Z'
+ created_at: '2021-10-10T21:56:59.300Z'
+ updated_at: '2021-10-10T21:56:59.300Z'
relationships:
product:
data:
@@ -853,8 +853,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T20:22:03.039Z'
- updated_at: '2021-10-10T20:22:03.039Z'
+ created_at: '2021-10-10T21:56:59.399Z'
+ updated_at: '2021-10-10T21:56:59.399Z'
relationships:
product:
data:
@@ -911,8 +911,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T20:22:03.436Z'
- updated_at: '2021-10-10T20:22:03.436Z'
+ created_at: '2021-10-10T21:56:59.779Z'
+ updated_at: '2021-10-10T21:56:59.779Z'
relationships:
product:
data:
@@ -975,8 +975,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T20:22:03.592Z'
- updated_at: '2021-10-10T20:22:03.592Z'
+ created_at: '2021-10-10T21:56:59.929Z'
+ updated_at: '2021-10-10T21:56:59.929Z'
relationships:
product:
data:
@@ -1036,8 +1036,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-10T20:22:03.871Z'
- updated_at: '2021-10-10T20:22:03.871Z'
+ created_at: '2021-10-10T21:57:00.190Z'
+ updated_at: '2021-10-10T21:57:00.190Z'
relationships:
product:
data:
@@ -1147,8 +1147,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-10-10T20:22:04.601Z'
- updated_at: '2021-10-10T20:22:04.624Z'
+ created_at: '2021-10-10T21:57:00.852Z'
+ updated_at: '2021-10-10T21:57:00.871Z'
relationships:
product:
data:
@@ -1233,35 +1233,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Possimus itaque maxime laborum aut modi.
+ title: Animi veritatis assumenda itaque fugit possimus.
meta_title:
content:
meta_description:
visible: true
- slug: possimus-itaque-maxime-laborum-aut-modi
+ slug: animi-veritatis-assumenda-itaque-fugit-possimus
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T20:22:04.942Z'
- updated_at: '2021-10-10T20:22:04.942Z'
+ created_at: '2021-10-10T21:57:01.173Z'
+ updated_at: '2021-10-10T21:57:01.173Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Sit recusandae tenetur perferendis excepturi hic quaerat
- neque alias.
+ title: Consequuntur rerum beatae molestiae explicabo veniam
+ occaecati non voluptatem.
meta_title:
content:
meta_description:
visible: true
- slug: sit-recusandae-tenetur-perferendis-excepturi-hic-quaerat-neque-alias
+ slug: consequuntur-rerum-beatae-molestiae-explicabo-veniam-occaecati-non-voluptatem
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T20:22:04.952Z'
- updated_at: '2021-10-10T20:22:04.952Z'
+ created_at: '2021-10-10T21:57:01.183Z'
+ updated_at: '2021-10-10T21:57:01.183Z'
relationships:
cms_sections:
data: []
@@ -1311,18 +1311,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Iste numquam praesentium quibusdam officiis dolorem
- possimus.
+ title: Recusandae assumenda numquam voluptate asperiores aperiam.
meta_title:
content:
meta_description:
visible: true
- slug: iste-numquam-praesentium-quibusdam-officiis-dolorem-possimus
+ slug: recusandae-assumenda-numquam-voluptate-asperiores-aperiam
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T20:22:05.027Z'
- updated_at: '2021-10-10T20:22:05.027Z'
+ created_at: '2021-10-10T21:57:01.250Z'
+ updated_at: '2021-10-10T21:57:01.250Z'
relationships:
cms_sections:
data: []
@@ -1378,18 +1377,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Nisi voluptas voluptate quisquam repudiandae reprehenderit
- distinctio eaque non.
+ title: Sapiente ullam repellat ea eos minima quam voluptatem.
meta_title:
content:
meta_description:
visible: true
- slug: nisi-voluptas-voluptate-quisquam-repudiandae-reprehenderit-distinctio-eaque-non
+ slug: sapiente-ullam-repellat-ea-eos-minima-quam-voluptatem
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T20:22:05.062Z'
- updated_at: '2021-10-10T20:22:05.062Z'
+ created_at: '2021-10-10T21:57:01.281Z'
+ updated_at: '2021-10-10T21:57:01.281Z'
relationships:
cms_sections:
data: []
@@ -1447,12 +1445,12 @@ paths:
content:
meta_description:
visible: true
- slug: porro-quas-facilis-fuga-tempora-veritatis
+ slug: corrupti-minus-mollitia-eos-ducimus-occaecati-nulla
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-10T20:22:05.119Z'
- updated_at: '2021-10-10T20:22:05.129Z'
+ created_at: '2021-10-10T21:57:01.334Z'
+ updated_at: '2021-10-10T21:57:01.343Z'
relationships:
cms_sections:
data: []
@@ -1566,7 +1564,8 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Consequatur consequuntur numquam vero repudiandae.
+ name: Accusantium nobis adipisci beatae reprehenderit ipsum
+ cum nesciunt provident.
content: {}
settings:
gutters: No Gutters
@@ -1575,8 +1574,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-10-10T20:22:05.296Z'
- updated_at: '2021-10-10T20:22:05.296Z'
+ created_at: '2021-10-10T21:57:01.498Z'
+ updated_at: '2021-10-10T21:57:01.498Z'
relationships:
cms_page:
data:
@@ -1587,7 +1586,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Alias ipsam aspernatur aut incidunt.
+ name: Facilis ipsa quo voluptatum cumque animi architecto.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1599,8 +1598,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-10-10T20:22:05.300Z'
- updated_at: '2021-10-10T20:22:05.300Z'
+ created_at: '2021-10-10T21:57:01.501Z'
+ updated_at: '2021-10-10T21:57:01.501Z'
relationships:
cms_page:
data:
@@ -1611,7 +1610,8 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Laboriosam delectus asperiores aspernatur nihil.
+ name: Nihil eaque cumque culpa quibusdam laudantium consequuntur
+ nobis.
content: {}
settings:
gutters: No Gutters
@@ -1620,8 +1620,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-10-10T20:22:05.309Z'
- updated_at: '2021-10-10T20:22:05.309Z'
+ created_at: '2021-10-10T21:57:01.509Z'
+ updated_at: '2021-10-10T21:57:01.509Z'
relationships:
cms_page:
data:
@@ -1632,7 +1632,7 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Modi odio a voluptatem iste.
+ name: Ab voluptates dolorum eum cum.
content: {}
settings:
gutters: No Gutters
@@ -1641,8 +1641,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:05.321Z'
- updated_at: '2021-10-10T20:22:05.321Z'
+ created_at: '2021-10-10T21:57:01.522Z'
+ updated_at: '2021-10-10T21:57:01.522Z'
relationships:
cms_page:
data:
@@ -1655,7 +1655,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Id cupiditate minima reiciendis enim.
+ name: Delectus ea voluptatem libero sit eaque quam.
content: {}
settings:
gutters: No Gutters
@@ -1664,8 +1664,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:05.329Z'
- updated_at: '2021-10-10T20:22:05.329Z'
+ created_at: '2021-10-10T21:57:01.529Z'
+ updated_at: '2021-10-10T21:57:01.529Z'
relationships:
cms_page:
data:
@@ -1721,8 +1721,7 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Deserunt eveniet reprehenderit doloremque cum optio
- totam porro perferendis.
+ name: Ullam necessitatibus omnis numquam voluptatem.
content: {}
settings:
gutters: No Gutters
@@ -1731,8 +1730,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:05.481Z'
- updated_at: '2021-10-10T20:22:05.481Z'
+ created_at: '2021-10-10T21:57:01.679Z'
+ updated_at: '2021-10-10T21:57:01.679Z'
relationships:
cms_page:
data:
@@ -1794,7 +1793,8 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Velit voluptatibus praesentium suscipit sed.
+ name: Accusantium illo alias nam repellendus dolorum molestiae
+ nemo.
content: {}
settings:
gutters: No Gutters
@@ -1803,8 +1803,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:05.677Z'
- updated_at: '2021-10-10T20:22:05.677Z'
+ created_at: '2021-10-10T21:57:01.871Z'
+ updated_at: '2021-10-10T21:57:01.871Z'
relationships:
cms_page:
data:
@@ -1872,8 +1872,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:05.884Z'
- updated_at: '2021-10-10T20:22:05.896Z'
+ created_at: '2021-10-10T21:57:02.065Z'
+ updated_at: '2021-10-10T21:57:02.076Z'
relationships:
cms_page:
data:
@@ -1975,7 +1975,8 @@ paths:
id: '58'
type: cms_section
attributes:
- name: Totam ipsam qui repellendus sapiente.
+ name: Harum iste blanditiis suscipit saepe incidunt mollitia
+ nam dignissimos.
content: {}
settings:
gutters: No Gutters
@@ -1984,8 +1985,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-10-10T20:22:06.548Z'
- updated_at: '2021-10-10T20:22:06.560Z'
+ created_at: '2021-10-10T21:57:02.711Z'
+ updated_at: '2021-10-10T21:57:02.726Z'
relationships:
cms_page:
data:
@@ -2043,9 +2044,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-10-10T20:22:06.716Z'
+ updated_at: '2021-10-10T21:57:02.897Z'
zipcode_required: true
- created_at: '2021-10-10T20:22:06.716Z'
+ created_at: '2021-10-10T21:57:02.897Z'
relationships:
states:
data: []
@@ -2058,9 +2059,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-10-10T20:22:06.723Z'
+ updated_at: '2021-10-10T21:57:02.904Z'
zipcode_required: true
- created_at: '2021-10-10T20:22:06.723Z'
+ created_at: '2021-10-10T21:57:02.904Z'
relationships:
states:
data: []
@@ -2073,9 +2074,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-10-10T20:22:06.725Z'
+ updated_at: '2021-10-10T21:57:02.906Z'
zipcode_required: true
- created_at: '2021-10-10T20:22:06.725Z'
+ created_at: '2021-10-10T21:57:02.906Z'
relationships:
states:
data: []
@@ -2130,9 +2131,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-10-10T20:22:06.768Z'
+ updated_at: '2021-10-10T21:57:02.944Z'
zipcode_required: true
- created_at: '2021-10-10T20:22:06.768Z'
+ created_at: '2021-10-10T21:57:02.944Z'
relationships:
states:
data: []
@@ -2184,12 +2185,12 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: t54Rvo9ukAAbp3w769zCE6Ca
+ token: L3nTwrBBi1MLipY1qLTNfj8E
access_counter: 0
- id: '2'
type: digital_link
attributes:
- token: gN7sDqEgY1zeJE5X3LK4JykU
+ token: 3vWUKqAJB51HqypnDVUjfquN
access_counter: 0
meta:
count: 2
@@ -2230,7 +2231,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: SxKXxGBafskKcDAxQewdanUL
+ token: A4xDxqPGFfT6SArHvmStDmYd
access_counter: 0
'422':
description: invalid request
@@ -2280,7 +2281,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: MZC2gqNviqkikm9JKc2usAMe
+ token: tDxJzNDvXmYRmUyUfzYXTmPr
access_counter: 0
'404':
description: Record not found
@@ -2324,7 +2325,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: sbri9rJFnB7s2Z6t59fxmRUN
+ token: 5boBPB45fH4bic4sBUSHJbyJ
access_counter: 0
'422':
description: invalid request
@@ -2391,6 +2392,35 @@ paths:
Example:
value:
error: The access token is invalid
+ "/api/v2/platform/digital_links/{id}/reset":
+ patch:
+ summary: Reset a Digital Link
+ tags:
+ - Digital Links
+ security:
+ - bearer_auth: []
+ operationId: reset-digital-link
+ description: Resets a digital link, allowing further downloads
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '13'
+ type: digital_link
+ attributes:
+ token: 7NA9oawRMGPQXJJrXAzYqmYx
+ access_counter: 0
"/api/v2/platform/digitals":
get:
summary: Returns a list of Digitals
@@ -2420,24 +2450,24 @@ paths:
Example:
value:
data:
- - id: '13'
+ - id: '14'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--646306a3e67bcae69f23dd669bad79dc1f934a0a/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6c02e9ec8f004d052becb50e7fcc54f9c99b2df5/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
- - id: '14'
+ - id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6c02e9ec8f004d052becb50e7fcc54f9c99b2df5/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--927a49277b240016a5103d40e713c6456d0d53ec/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
- - id: '15'
+ - id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--927a49277b240016a5103d40e713c6456d0d53ec/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4d97d12ab027b7bc8fc342f95656ad9edd69a3b1/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2477,10 +2507,10 @@ paths:
Example:
value:
data:
- id: '22'
+ id: '23'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--804b812b9e54f23cc3dc6eb2a4bc0c59bc396adf/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6f3bdef01fb09e651ae684add9f27e22803d96ef/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2526,10 +2556,10 @@ paths:
Example:
value:
data:
- id: '26'
+ id: '27'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ad938aa1b9b4e2609fdc22a2145a0ef67bd3d5cb/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--cd8884ff4dfd8dbbc9a0df9d53d710d22fe34a77/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2572,10 +2602,10 @@ paths:
Example:
value:
data:
- id: '34'
+ id: '35'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7b6bfbcd43e30f80a000bd6b7fb1824dcf0ad375/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d728da5484299ca0d43c9a3001688faa9786f9e2/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2686,13 +2716,13 @@ paths:
Example:
value:
data:
- - id: '21'
+ - id: '22'
type: line_item
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T20:22:13.533Z'
- updated_at: '2021-10-10T20:22:13.541Z'
+ created_at: '2021-10-10T21:57:09.684Z'
+ updated_at: '2021-10-10T21:57:09.692Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2717,15 +2747,15 @@ paths:
relationships:
order:
data:
- id: '27'
+ id: '28'
type: order
tax_category:
data:
- id: '74'
+ id: '75'
type: tax_category
variant:
data:
- id: '183'
+ id: '186'
type: variant
adjustments:
data: []
@@ -2733,13 +2763,13 @@ paths:
data: []
digital_links:
data: []
- - id: '22'
+ - id: '23'
type: line_item
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T20:22:13.574Z'
- updated_at: '2021-10-10T20:22:13.581Z'
+ created_at: '2021-10-10T21:57:09.730Z'
+ updated_at: '2021-10-10T21:57:09.737Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2764,15 +2794,15 @@ paths:
relationships:
order:
data:
- id: '27'
+ id: '28'
type: order
tax_category:
data:
- id: '74'
+ id: '75'
type: tax_category
variant:
data:
- id: '184'
+ id: '187'
type: variant
adjustments:
data: []
@@ -2823,13 +2853,13 @@ paths:
Example:
value:
data:
- id: '25'
+ id: '26'
type: line_item
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T20:22:13.792Z'
- updated_at: '2021-10-10T20:22:13.826Z'
+ created_at: '2021-10-10T21:57:09.938Z'
+ updated_at: '2021-10-10T21:57:09.973Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2854,15 +2884,15 @@ paths:
relationships:
order:
data:
- id: '29'
+ id: '30'
type: order
tax_category:
data:
- id: '76'
+ id: '77'
type: tax_category
variant:
data:
- id: '187'
+ id: '190'
type: variant
adjustments:
data: []
@@ -2922,13 +2952,13 @@ paths:
Example:
value:
data:
- id: '26'
+ id: '27'
type: line_item
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-10T20:22:13.960Z'
- updated_at: '2021-10-10T20:22:13.968Z'
+ created_at: '2021-10-10T21:57:10.171Z'
+ updated_at: '2021-10-10T21:57:10.178Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2953,15 +2983,15 @@ paths:
relationships:
order:
data:
- id: '31'
+ id: '32'
type: order
tax_category:
data:
- id: '77'
+ id: '78'
type: tax_category
variant:
data:
- id: '188'
+ id: '191'
type: variant
adjustments:
data: []
@@ -3015,13 +3045,13 @@ paths:
Example:
value:
data:
- id: '28'
+ id: '29'
type: line_item
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-10-10T20:22:14.195Z'
- updated_at: '2021-10-10T20:22:14.234Z'
+ created_at: '2021-10-10T21:57:10.390Z'
+ updated_at: '2021-10-10T21:57:10.427Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3046,15 +3076,15 @@ paths:
relationships:
order:
data:
- id: '33'
+ id: '34'
type: order
tax_category:
data:
- id: '79'
+ id: '80'
type: tax_category
variant:
data:
- id: '192'
+ id: '195'
type: variant
adjustments:
data: []
@@ -3069,10 +3099,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #129 - 8359" is not available.'
+ error: 'Quantity selected of "Product #131 - 7218" is not available.'
errors:
quantity:
- - 'selected of "Product #129 - 8359" is not available.'
+ - 'selected of "Product #131 - 7218" is not available.'
'404':
description: Record not found
content:
@@ -3182,8 +3212,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-10-10T20:22:14.831Z'
- updated_at: '2021-10-10T20:22:14.835Z'
+ created_at: '2021-10-10T21:57:10.981Z'
+ updated_at: '2021-10-10T21:57:10.986Z'
link:
is_container: false
is_root: false
@@ -3219,8 +3249,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-10-10T20:22:14.884Z'
- updated_at: '2021-10-10T20:22:14.888Z'
+ created_at: '2021-10-10T21:57:11.031Z'
+ updated_at: '2021-10-10T21:57:11.035Z'
link:
is_container: false
is_root: false
@@ -3256,8 +3286,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-10-10T20:22:14.935Z'
- updated_at: '2021-10-10T20:22:14.939Z'
+ created_at: '2021-10-10T21:57:11.078Z'
+ updated_at: '2021-10-10T21:57:11.083Z'
link:
is_container: false
is_root: false
@@ -3293,8 +3323,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T20:22:14.987Z'
- updated_at: '2021-10-10T20:22:14.991Z'
+ created_at: '2021-10-10T21:57:11.127Z'
+ updated_at: '2021-10-10T21:57:11.131Z'
link:
is_container: false
is_root: false
@@ -3330,8 +3360,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-10-10T20:22:15.039Z'
- updated_at: '2021-10-10T20:22:15.043Z'
+ created_at: '2021-10-10T21:57:11.176Z'
+ updated_at: '2021-10-10T21:57:11.180Z'
link:
is_container: false
is_root: false
@@ -3367,8 +3397,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-10-10T20:22:15.091Z'
- updated_at: '2021-10-10T20:22:15.096Z'
+ created_at: '2021-10-10T21:57:11.225Z'
+ updated_at: '2021-10-10T21:57:11.230Z'
link:
is_container: false
is_root: false
@@ -3404,8 +3434,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-10-10T20:22:15.151Z'
- updated_at: '2021-10-10T20:22:15.156Z'
+ created_at: '2021-10-10T21:57:11.276Z'
+ updated_at: '2021-10-10T21:57:11.280Z'
link:
is_container: false
is_root: false
@@ -3431,7 +3461,8 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Iure impedit possimus iusto quis quaerat ipsa nisi.
+ name: Corrupti quam occaecati accusamus sapiente sed minima
+ veniam ipsam.
subtitle:
destination:
new_window: false
@@ -3441,8 +3472,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-10-10T20:22:14.759Z'
- updated_at: '2021-10-10T20:22:15.166Z'
+ created_at: '2021-10-10T21:57:10.932Z'
+ updated_at: '2021-10-10T21:57:11.289Z'
link:
is_container: true
is_root: true
@@ -3531,8 +3562,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T20:22:15.822Z'
- updated_at: '2021-10-10T20:22:15.835Z'
+ created_at: '2021-10-10T21:57:11.888Z'
+ updated_at: '2021-10-10T21:57:11.892Z'
link:
is_container: false
is_root: false
@@ -3618,8 +3649,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T20:22:16.280Z'
- updated_at: '2021-10-10T20:22:16.285Z'
+ created_at: '2021-10-10T21:57:12.287Z'
+ updated_at: '2021-10-10T21:57:12.291Z'
link:
is_container: false
is_root: false
@@ -3701,8 +3732,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-10T20:22:16.940Z'
- updated_at: '2021-10-10T20:22:16.962Z'
+ created_at: '2021-10-10T21:57:13.016Z'
+ updated_at: '2021-10-10T21:57:13.041Z'
link:
is_container: false
is_root: false
@@ -3827,8 +3858,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-10-10T20:22:18.547Z'
- updated_at: '2021-10-10T20:22:18.574Z'
+ created_at: '2021-10-10T21:57:14.547Z'
+ updated_at: '2021-10-10T21:57:14.571Z'
link:
is_container: false
is_root: false
@@ -3920,16 +3951,16 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T20:22:19.063Z'
- updated_at: '2021-10-10T20:22:19.203Z'
+ created_at: '2021-10-10T21:57:15.001Z'
+ updated_at: '2021-10-10T21:57:15.117Z'
relationships:
menu_items:
data:
- - id: '87'
+ - id: '89'
type: menu_item
- id: '90'
type: menu_item
- - id: '89'
+ - id: '87'
type: menu_item
- id: '19'
type: menu
@@ -3937,17 +3968,17 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-10-10T20:22:19.072Z'
- updated_at: '2021-10-10T20:22:19.320Z'
+ created_at: '2021-10-10T21:57:15.010Z'
+ updated_at: '2021-10-10T21:57:15.216Z'
relationships:
menu_items:
data:
- id: '91'
type: menu_item
- - id: '88'
- type: menu_item
- id: '92'
type: menu_item
+ - id: '88'
+ type: menu_item
meta:
count: 2
total_count: 2
@@ -3997,8 +4028,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T20:22:19.622Z'
- updated_at: '2021-10-10T20:22:19.628Z'
+ created_at: '2021-10-10T21:57:15.492Z'
+ updated_at: '2021-10-10T21:57:15.499Z'
relationships:
menu_items:
data:
@@ -4062,8 +4093,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T20:22:19.753Z'
- updated_at: '2021-10-10T20:22:19.760Z'
+ created_at: '2021-10-10T21:57:15.533Z'
+ updated_at: '2021-10-10T21:57:15.540Z'
relationships:
menu_items:
data:
@@ -4121,8 +4152,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-10T20:22:19.824Z'
- updated_at: '2021-10-10T20:22:19.830Z'
+ created_at: '2021-10-10T21:57:15.600Z'
+ updated_at: '2021-10-10T21:57:15.616Z'
relationships:
menu_items:
data:
@@ -4240,26 +4271,26 @@ paths:
Example:
value:
data:
- - id: '66'
+ - id: '67'
type: option_type
attributes:
- name: foo-size-66
+ name: foo-size-67
presentation: Size
position: 1
- created_at: '2021-10-10T20:22:20.008Z'
- updated_at: '2021-10-10T20:22:20.008Z'
+ created_at: '2021-10-10T21:57:15.839Z'
+ updated_at: '2021-10-10T21:57:15.839Z'
filterable: true
relationships:
option_values:
data: []
- - id: '67'
+ - id: '68'
type: option_type
attributes:
- name: foo-size-67
+ name: foo-size-68
presentation: Size
position: 2
- created_at: '2021-10-10T20:22:20.010Z'
- updated_at: '2021-10-10T20:22:20.010Z'
+ created_at: '2021-10-10T21:57:15.841Z'
+ updated_at: '2021-10-10T21:57:15.841Z'
filterable: true
relationships:
option_values:
@@ -4307,14 +4338,14 @@ paths:
Example:
value:
data:
- id: '70'
+ id: '71'
type: option_type
attributes:
- name: foo-size-70
+ name: foo-size-71
presentation: Size
position: 1
- created_at: '2021-10-10T20:22:20.061Z'
- updated_at: '2021-10-10T20:22:20.061Z'
+ created_at: '2021-10-10T21:57:15.887Z'
+ updated_at: '2021-10-10T21:57:15.887Z'
filterable: true
relationships:
option_values:
@@ -4368,14 +4399,14 @@ paths:
Example:
value:
data:
- id: '71'
+ id: '72'
type: option_type
attributes:
- name: foo-size-71
+ name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-10-10T20:22:20.093Z'
- updated_at: '2021-10-10T20:22:20.093Z'
+ created_at: '2021-10-10T21:57:15.920Z'
+ updated_at: '2021-10-10T21:57:15.920Z'
filterable: true
relationships:
option_values:
@@ -4426,14 +4457,14 @@ paths:
Example:
value:
data:
- id: '73'
+ id: '74'
type: option_type
attributes:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-10-10T20:22:20.148Z'
- updated_at: '2021-10-10T20:22:20.161Z'
+ created_at: '2021-10-10T21:57:15.969Z'
+ updated_at: '2021-10-10T21:57:15.975Z'
filterable: true
relationships:
option_values:
@@ -4545,31 +4576,31 @@ paths:
Example:
value:
data:
- - id: '66'
+ - id: '67'
type: option_value
attributes:
position: 1
- name: Size-66
+ name: Size-67
presentation: S
- created_at: '2021-10-10T20:22:20.293Z'
- updated_at: '2021-10-10T20:22:20.293Z'
+ created_at: '2021-10-10T21:57:16.091Z'
+ updated_at: '2021-10-10T21:57:16.091Z'
relationships:
option_type:
data:
- id: '78'
+ id: '79'
type: option_type
- - id: '67'
+ - id: '68'
type: option_value
attributes:
position: 1
- name: Size-67
+ name: Size-68
presentation: S
- created_at: '2021-10-10T20:22:20.298Z'
- updated_at: '2021-10-10T20:22:20.298Z'
+ created_at: '2021-10-10T21:57:16.098Z'
+ updated_at: '2021-10-10T21:57:16.098Z'
relationships:
option_type:
data:
- id: '79'
+ id: '80'
type: option_type
meta:
count: 2
@@ -4614,14 +4645,14 @@ paths:
Example:
value:
data:
- id: '70'
+ id: '71'
type: option_value
attributes:
position: 1
- name: Size-70
+ name: Size-71
presentation: S
- created_at: '2021-10-10T20:22:20.356Z'
- updated_at: '2021-10-10T20:22:20.356Z'
+ created_at: '2021-10-10T21:57:16.149Z'
+ updated_at: '2021-10-10T21:57:16.149Z'
relationships:
option_type:
data:
@@ -4674,18 +4705,18 @@ paths:
Example:
value:
data:
- id: '71'
+ id: '72'
type: option_value
attributes:
position: 1
- name: Size-71
+ name: Size-72
presentation: S
- created_at: '2021-10-10T20:22:20.399Z'
- updated_at: '2021-10-10T20:22:20.399Z'
+ created_at: '2021-10-10T21:57:16.180Z'
+ updated_at: '2021-10-10T21:57:16.180Z'
relationships:
option_type:
data:
- id: '82'
+ id: '83'
type: option_type
'404':
description: Record not found
@@ -4733,18 +4764,18 @@ paths:
Example:
value:
data:
- id: '73'
+ id: '74'
type: option_value
attributes:
position: 1
name: M
presentation: S
- created_at: '2021-10-10T20:22:20.460Z'
- updated_at: '2021-10-10T20:22:20.469Z'
+ created_at: '2021-10-10T21:57:16.234Z'
+ updated_at: '2021-10-10T21:57:16.242Z'
relationships:
option_type:
data:
- id: '84'
+ id: '85'
type: option_type
'422':
description: invalid request
@@ -4853,10 +4884,10 @@ paths:
Example:
value:
data:
- - id: '38'
+ - id: '39'
type: order
attributes:
- number: R523303438
+ number: R657941002
item_total: '0.0'
total: '0.0'
state: cart
@@ -4865,10 +4896,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:20.616Z'
- updated_at: '2021-10-10T20:22:20.616Z'
+ created_at: '2021-10-10T21:57:16.378Z'
+ updated_at: '2021-10-10T21:57:16.378Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -4884,9 +4915,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
display_adjustment_total: "$0.00"
@@ -4897,15 +4928,15 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '39'
+ id: '40'
type: user
created_by:
data:
@@ -4915,7 +4946,7 @@ paths:
data:
bill_address:
data:
- id: '50'
+ id: '51'
type: address
ship_address:
data:
@@ -4937,10 +4968,10 @@ paths:
data: []
order_promotions:
data: []
- - id: '39'
+ - id: '40'
type: order
attributes:
- number: R616691441
+ number: R453206325
item_total: '0.0'
total: '0.0'
state: cart
@@ -4949,10 +4980,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:20.624Z'
- updated_at: '2021-10-10T20:22:20.624Z'
+ created_at: '2021-10-10T21:57:16.386Z'
+ updated_at: '2021-10-10T21:57:16.386Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -4968,9 +4999,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
display_adjustment_total: "$0.00"
@@ -4981,15 +5012,15 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '40'
+ id: '41'
type: user
created_by:
data:
@@ -4999,7 +5030,7 @@ paths:
data:
bill_address:
data:
- id: '51'
+ id: '52'
type: address
ship_address:
data:
@@ -5064,10 +5095,10 @@ paths:
Example:
value:
data:
- id: '42'
+ id: '43'
type: order
attributes:
- number: R131607257
+ number: R759083599
item_total: '0.0'
total: '0.0'
state: cart
@@ -5078,8 +5109,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-10-10T20:22:20.894Z'
- updated_at: '2021-10-10T20:22:20.909Z'
+ created_at: '2021-10-10T21:57:16.659Z'
+ updated_at: '2021-10-10T21:57:16.673Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5095,9 +5126,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$20.00"
display_adjustment_total: "$0.00"
@@ -5108,11 +5139,11 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
@@ -5124,15 +5155,15 @@ paths:
data:
bill_address:
data:
- id: '54'
+ id: '55'
type: address
ship_address:
data:
- id: '54'
+ id: '55'
type: address
line_items:
data:
- - id: '33'
+ - id: '34'
type: line_item
payments:
data:
@@ -5188,10 +5219,10 @@ paths:
Example:
value:
data:
- id: '43'
+ id: '44'
type: order
attributes:
- number: R013265541
+ number: R547632194
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5200,10 +5231,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:20.947Z'
- updated_at: '2021-10-10T20:22:21.096Z'
+ created_at: '2021-10-10T21:57:16.710Z'
+ updated_at: '2021-10-10T21:57:16.835Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5219,9 +5250,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -5232,15 +5263,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '43'
+ id: '44'
type: user
created_by:
data:
@@ -5250,15 +5281,15 @@ paths:
data:
bill_address:
data:
- id: '55'
+ id: '56'
type: address
ship_address:
data:
- id: '56'
+ id: '57'
type: address
line_items:
data:
- - id: '34'
+ - id: '35'
type: line_item
payments:
data: []
@@ -5324,10 +5355,10 @@ paths:
Example:
value:
data:
- id: '45'
+ id: '46'
type: order
attributes:
- number: R324101664
+ number: R223844520
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5338,8 +5369,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:21.370Z'
- updated_at: '2021-10-10T20:22:21.463Z'
+ created_at: '2021-10-10T21:57:17.072Z'
+ updated_at: '2021-10-10T21:57:17.157Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5355,9 +5386,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -5368,15 +5399,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '45'
+ id: '46'
type: user
created_by:
data:
@@ -5386,15 +5417,15 @@ paths:
data:
bill_address:
data:
- id: '59'
+ id: '60'
type: address
ship_address:
data:
- id: '60'
+ id: '61'
type: address
line_items:
data:
- - id: '36'
+ - id: '37'
type: line_item
payments:
data: []
@@ -5510,10 +5541,10 @@ paths:
Example:
value:
data:
- id: '50'
+ id: '51'
type: order
attributes:
- number: R332500410
+ number: R886792450
item_total: '10.0'
total: '110.0'
state: payment
@@ -5522,10 +5553,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:22.019Z'
- updated_at: '2021-10-10T20:22:22.139Z'
+ created_at: '2021-10-10T21:57:17.705Z'
+ updated_at: '2021-10-10T21:57:17.826Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5541,9 +5572,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -5554,15 +5585,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '50'
+ id: '51'
type: user
created_by:
data:
@@ -5572,15 +5603,15 @@ paths:
data:
bill_address:
data:
- id: '69'
+ id: '70'
type: address
ship_address:
data:
- id: '70'
+ id: '71'
type: address
line_items:
data:
- - id: '41'
+ - id: '42'
type: line_item
payments:
data: []
@@ -5649,10 +5680,10 @@ paths:
Example:
value:
data:
- id: '52'
+ id: '53'
type: order
attributes:
- number: R587731194
+ number: R024191269
item_total: '10.0'
total: '110.0'
state: payment
@@ -5661,10 +5692,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:22.297Z'
- updated_at: '2021-10-10T20:22:22.423Z'
+ created_at: '2021-10-10T21:57:17.981Z'
+ updated_at: '2021-10-10T21:57:18.114Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5680,9 +5711,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -5693,15 +5724,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '52'
+ id: '53'
type: user
created_by:
data:
@@ -5711,15 +5742,15 @@ paths:
data:
bill_address:
data:
- id: '73'
+ id: '74'
type: address
ship_address:
data:
- id: '74'
+ id: '75'
type: address
line_items:
data:
- - id: '43'
+ - id: '44'
type: line_item
payments:
data: []
@@ -5788,22 +5819,22 @@ paths:
Example:
value:
data:
- id: '54'
+ id: '55'
type: order
attributes:
- number: R054319948
+ number: R166254558
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-10-10T20:22:22.777Z'
+ completed_at: '2021-10-10T21:57:18.447Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-10-10T20:22:22.578Z'
- updated_at: '2021-10-10T20:22:22.777Z'
+ created_at: '2021-10-10T21:57:18.265Z'
+ updated_at: '2021-10-10T21:57:18.447Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5819,9 +5850,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -5832,15 +5863,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '54'
+ id: '55'
type: user
created_by:
data:
@@ -5850,15 +5881,15 @@ paths:
data:
bill_address:
data:
- id: '77'
+ id: '78'
type: address
ship_address:
data:
- id: '78'
+ id: '79'
type: address
line_items:
data:
- - id: '45'
+ - id: '46'
type: line_item
payments:
data:
@@ -5938,10 +5969,10 @@ paths:
Example:
value:
data:
- id: '57'
+ id: '58'
type: order
attributes:
- number: R197572896
+ number: R713464745
item_total: '0.0'
total: '0.0'
state: cart
@@ -5950,10 +5981,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:23.056Z'
- updated_at: '2021-10-10T20:22:23.153Z'
+ created_at: '2021-10-10T21:57:18.716Z'
+ updated_at: '2021-10-10T21:57:18.807Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5969,9 +6000,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$0.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$0.00"
display_adjustment_total: "$0.00"
@@ -5982,15 +6013,15 @@ paths:
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '57'
+ id: '58'
type: user
created_by:
data:
@@ -6000,11 +6031,11 @@ paths:
data:
bill_address:
data:
- id: '83'
+ id: '84'
type: address
ship_address:
data:
- id: '84'
+ id: '85'
type: address
line_items:
data: []
@@ -6071,10 +6102,10 @@ paths:
Example:
value:
data:
- id: '59'
+ id: '60'
type: order
attributes:
- number: R922758181
+ number: R386479271
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6083,10 +6114,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:23.314Z'
- updated_at: '2021-10-10T20:22:23.450Z'
+ created_at: '2021-10-10T21:57:18.957Z'
+ updated_at: '2021-10-10T21:57:19.097Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6102,9 +6133,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$110.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "$0.00"
@@ -6115,15 +6146,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "-$15.00"
- display_total_applied_store_credit: "-$15.00"
relationships:
user:
data:
- id: '59'
+ id: '60'
type: user
created_by:
data:
@@ -6133,15 +6164,15 @@ paths:
data:
bill_address:
data:
- id: '87'
+ id: '88'
type: address
ship_address:
data:
- id: '88'
+ id: '89'
type: address
line_items:
data:
- - id: '50'
+ - id: '51'
type: line_item
payments:
data:
@@ -6224,10 +6255,10 @@ paths:
Example:
value:
data:
- id: '62'
+ id: '63'
type: order
attributes:
- number: R803862836
+ number: R947124525
item_total: '10.0'
total: '10.0'
state: delivery
@@ -6236,10 +6267,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-10T20:22:23.760Z'
- updated_at: '2021-10-10T20:22:23.884Z'
+ created_at: '2021-10-10T21:57:19.401Z'
+ updated_at: '2021-10-10T21:57:19.522Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6255,9 +6286,9 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ display_outstanding_balance: "$10.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
- display_outstanding_balance: "$10.00"
display_cart_promo_total: "$0.00"
display_pre_tax_item_amount: "$10.00"
display_adjustment_total: "-$100.00"
@@ -6268,15 +6299,15 @@ paths:
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$10.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_store_credit_remaining_after_capture: "$0.00"
- display_total_applicable_store_credit: "$0.00"
- display_total_applied_store_credit: "$0.00"
relationships:
user:
data:
- id: '63'
+ id: '64'
type: user
created_by:
data:
@@ -6286,15 +6317,15 @@ paths:
data:
bill_address:
data:
- id: '93'
+ id: '94'
type: address
ship_address:
data:
- id: '94'
+ id: '95'
type: address
line_items:
data:
- - id: '53'
+ - id: '54'
type: line_item
payments:
data: []
@@ -6389,18 +6420,18 @@ paths:
Example:
value:
data:
- - id: '96'
- type: shipping_category
- attributes:
- name: 'ShippingCategory #96'
- created_at: '2021-10-10T20:22:24.153Z'
- updated_at: '2021-10-10T20:22:24.153Z'
- id: '97'
type: shipping_category
attributes:
name: 'ShippingCategory #97'
- created_at: '2021-10-10T20:22:24.154Z'
- updated_at: '2021-10-10T20:22:24.154Z'
+ created_at: '2021-10-10T21:57:19.796Z'
+ updated_at: '2021-10-10T21:57:19.796Z'
+ - 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'
meta:
count: 2
total_count: 2
@@ -6444,12 +6475,12 @@ paths:
Example:
value:
data:
- id: '100'
+ id: '101'
type: shipping_category
attributes:
- name: 'ShippingCategory #100'
- created_at: '2021-10-10T20:22:24.197Z'
- updated_at: '2021-10-10T20:22:24.197Z'
+ name: 'ShippingCategory #101'
+ created_at: '2021-10-10T21:57:19.843Z'
+ updated_at: '2021-10-10T21:57:19.843Z'
'422':
description: invalid request
content:
@@ -6497,12 +6528,12 @@ paths:
Example:
value:
data:
- id: '101'
+ id: '102'
type: shipping_category
attributes:
- name: 'ShippingCategory #101'
- created_at: '2021-10-10T20:22:24.224Z'
- updated_at: '2021-10-10T20:22:24.224Z'
+ name: 'ShippingCategory #102'
+ created_at: '2021-10-10T21:57:19.873Z'
+ updated_at: '2021-10-10T21:57:19.873Z'
'404':
description: Record not found
content:
@@ -6549,12 +6580,12 @@ paths:
Example:
value:
data:
- id: '103'
+ id: '104'
type: shipping_category
attributes:
name: Default
- created_at: '2021-10-10T20:22:24.270Z'
- updated_at: '2021-10-10T20:22:24.276Z'
+ created_at: '2021-10-10T21:57:19.920Z'
+ updated_at: '2021-10-10T21:57:19.926Z'
'422':
description: invalid request
content:
@@ -6671,8 +6702,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T20:22:24.433Z'
- updated_at: '2021-10-10T20:22:24.437Z'
+ created_at: '2021-10-10T21:57:20.093Z'
+ updated_at: '2021-10-10T21:57:20.096Z'
meta_title:
meta_description:
meta_keywords:
@@ -6706,8 +6737,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-10-10T20:22:24.483Z'
- updated_at: '2021-10-10T20:22:24.487Z'
+ created_at: '2021-10-10T21:57:20.143Z'
+ updated_at: '2021-10-10T21:57:20.147Z'
meta_title:
meta_description:
meta_keywords:
@@ -6741,8 +6772,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-10-10T20:22:24.383Z'
- updated_at: '2021-10-10T20:22:24.496Z'
+ created_at: '2021-10-10T21:57:20.036Z'
+ updated_at: '2021-10-10T21:57:20.156Z'
meta_title:
meta_description:
meta_keywords:
@@ -6819,8 +6850,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T20:22:24.704Z'
- updated_at: '2021-10-10T20:22:24.709Z'
+ created_at: '2021-10-10T21:57:20.379Z'
+ updated_at: '2021-10-10T21:57:20.384Z'
meta_title:
meta_description:
meta_keywords:
@@ -6901,8 +6932,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T20:22:24.805Z'
- updated_at: '2021-10-10T20:22:24.809Z'
+ created_at: '2021-10-10T21:57:20.476Z'
+ updated_at: '2021-10-10T21:57:20.481Z'
meta_title:
meta_description:
meta_keywords:
@@ -6984,8 +7015,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-10T20:22:25.011Z'
- updated_at: '2021-10-10T20:22:25.037Z'
+ created_at: '2021-10-10T21:57:20.672Z'
+ updated_at: '2021-10-10T21:57:20.695Z'
meta_title:
meta_description:
meta_keywords:
@@ -7117,12 +7148,12 @@ paths:
Example:
value:
data:
- - id: '66'
+ - id: '67'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.476Z'
- updated_at: '2021-10-10T20:22:25.476Z'
+ created_at: '2021-10-10T21:57:21.121Z'
+ updated_at: '2021-10-10T21:57:21.121Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7131,12 +7162,12 @@ paths:
data:
ship_address:
data:
- - id: '67'
+ - id: '68'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.482Z'
- updated_at: '2021-10-10T20:22:25.482Z'
+ created_at: '2021-10-10T21:57:21.126Z'
+ updated_at: '2021-10-10T21:57:21.126Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7145,12 +7176,12 @@ paths:
data:
ship_address:
data:
- - id: '68'
+ - id: '69'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.483Z'
- updated_at: '2021-10-10T20:22:25.483Z'
+ created_at: '2021-10-10T21:57:21.128Z'
+ updated_at: '2021-10-10T21:57:21.128Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7202,12 +7233,12 @@ paths:
Example:
value:
data:
- id: '73'
+ id: '74'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.543Z'
- updated_at: '2021-10-10T20:22:25.543Z'
+ created_at: '2021-10-10T21:57:21.195Z'
+ updated_at: '2021-10-10T21:57:21.195Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7263,12 +7294,12 @@ paths:
Example:
value:
data:
- id: '76'
+ id: '77'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.597Z'
- updated_at: '2021-10-10T20:22:25.597Z'
+ created_at: '2021-10-10T21:57:21.243Z'
+ updated_at: '2021-10-10T21:57:21.243Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7323,12 +7354,12 @@ paths:
Example:
value:
data:
- id: '81'
+ id: '82'
type: user
attributes:
- created_at: '2021-10-10T20:22:25.675Z'
- updated_at: '2021-10-10T20:22:25.685Z'
+ created_at: '2021-10-10T21:57:21.310Z'
+ updated_at: '2021-10-10T21:57:21.320Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -7442,8 +7473,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:25.999Z'
- updated_at: '2021-10-10T20:22:25.999Z'
+ created_at: '2021-10-10T21:57:21.632Z'
+ updated_at: '2021-10-10T21:57:21.632Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7451,14 +7482,14 @@ paths:
relationships:
variant:
data:
- id: '229'
+ id: '232'
type: variant
- id: '2'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:26.042Z'
- updated_at: '2021-10-10T20:22:26.042Z'
+ created_at: '2021-10-10T21:57:21.677Z'
+ updated_at: '2021-10-10T21:57:21.677Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7466,14 +7497,14 @@ paths:
relationships:
variant:
data:
- id: '231'
+ id: '234'
type: variant
- id: '3'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:26.089Z'
- updated_at: '2021-10-10T20:22:26.089Z'
+ created_at: '2021-10-10T21:57:21.720Z'
+ updated_at: '2021-10-10T21:57:21.720Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7481,14 +7512,14 @@ paths:
relationships:
variant:
data:
- id: '233'
+ id: '236'
type: variant
- id: '4'
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:26.131Z'
- updated_at: '2021-10-10T20:22:26.131Z'
+ created_at: '2021-10-10T21:57:21.765Z'
+ updated_at: '2021-10-10T21:57:21.765Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7496,7 +7527,7 @@ paths:
relationships:
variant:
data:
- id: '235'
+ id: '238'
type: variant
meta:
count: 4
@@ -7545,8 +7576,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:26.488Z'
- updated_at: '2021-10-10T20:22:26.488Z'
+ created_at: '2021-10-10T21:57:22.122Z'
+ updated_at: '2021-10-10T21:57:22.122Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7554,7 +7585,7 @@ paths:
relationships:
variant:
data:
- id: '247'
+ id: '250'
type: variant
'422':
description: invalid request
@@ -7612,8 +7643,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-10T20:22:26.695Z'
- updated_at: '2021-10-10T20:22:26.695Z'
+ created_at: '2021-10-10T21:57:22.322Z'
+ updated_at: '2021-10-10T21:57:22.322Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -7621,7 +7652,7 @@ paths:
relationships:
variant:
data:
- id: '253'
+ id: '256'
type: variant
'404':
description: Record not found
@@ -7673,8 +7704,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-10-10T20:22:27.033Z'
- updated_at: '2021-10-10T20:22:27.042Z'
+ created_at: '2021-10-10T21:57:22.654Z'
+ updated_at: '2021-10-10T21:57:22.663Z'
display_price: "$19.99"
display_total: "$59.97"
price: '19.99'
@@ -7682,7 +7713,7 @@ paths:
relationships:
variant:
data:
- id: '263'
+ id: '266'
type: variant
'422':
description: invalid request
@@ -7797,9 +7828,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-10-10T20:22:27.718Z'
- updated_at: '2021-10-10T20:22:27.718Z'
- token: EQrCstD2USxQQtsY2cVysbEW
+ created_at: '2021-10-10T21:57:23.346Z'
+ updated_at: '2021-10-10T21:57:23.346Z'
+ token: UArg9HEZVEAi5i6FALH8yEo9
variant_included: false
relationships:
wished_items:
@@ -7814,9 +7845,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-10-10T20:22:27.719Z'
- updated_at: '2021-10-10T20:22:27.719Z'
- token: 11JusPLv2ikCfsfcUricLVdw
+ created_at: '2021-10-10T21:57:23.347Z'
+ updated_at: '2021-10-10T21:57:23.347Z'
+ token: qpMf2Yur66pNLdb51AyTyTCn
variant_included: false
relationships:
wished_items:
@@ -7874,9 +7905,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-10-10T20:22:28.176Z'
- updated_at: '2021-10-10T20:22:28.176Z'
- token: xe9uCTMRMmqVBD6e5Fobc5k6
+ created_at: '2021-10-10T21:57:23.796Z'
+ updated_at: '2021-10-10T21:57:23.796Z'
+ token: 4THe914yz8kk5nYyGbfcvzCQ
variant_included: false
relationships:
wished_items:
@@ -7936,9 +7967,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-10-10T20:22:28.212Z'
- updated_at: '2021-10-10T20:22:28.212Z'
- token: wEHrue7TSfJgquBSoc7du6hW
+ created_at: '2021-10-10T21:57:23.830Z'
+ updated_at: '2021-10-10T21:57:23.830Z'
+ token: k2d66sALbe1aWi1DnX9CmiBW
variant_included: false
relationships:
wished_items:
@@ -7995,9 +8026,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-10-10T20:22:28.274Z'
- updated_at: '2021-10-10T20:22:28.281Z'
- token: nVtFmK42GJPgdSQoH5ZBX8sL
+ created_at: '2021-10-10T21:57:23.885Z'
+ updated_at: '2021-10-10T21:57:23.892Z'
+ token: 6oYfVsGWFnWfs62F4HQM7LHr
variant_included: false
relationships:
wished_items:
@@ -8187,10 +8218,10 @@ components:
default: false
created_at:
type: string
- example: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
updated_at:
type: string
- example: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
required:
- order_id
- label
@@ -8292,7 +8323,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
bill_address_id:
type: string
ship_address_id:
@@ -8344,7 +8375,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
confirmation_delivered:
type: boolean
example: true
@@ -8526,12 +8557,12 @@ components:
example: Another Category
created_at:
type: string
- example: 2021-10-10 20:22:00 UTC
- default: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
+ default: 2021-10-10 21:56:57 UTC
updated_at:
type: string
- example: 2021-10-10 20:22:00 UTC
- default: 2021-10-10 20:22:00 UTC
+ example: 2021-10-10 21:56:57 UTC
+ default: 2021-10-10 21:56:57 UTC
required:
- name
wishlist_params:
diff --git a/api/spec/integration/api/v2/platform/digital_links_spec.rb b/api/spec/integration/api/v2/platform/digital_links_spec.rb
index 40d7ad9d5c..7098e4b914 100644
--- a/api/spec/integration/api/v2/platform/digital_links_spec.rb
+++ b/api/spec/integration/api/v2/platform/digital_links_spec.rb
@@ -28,4 +28,17 @@ describe 'Digital Link API', swagger: true do
end
include_examples 'CRUD examples', resource_name, include_example, filter_example
+
+ path '/api/v2/platform/digital_links/{id}/reset' do
+ patch 'Reset a Digital Link' do
+ tags resource_name.pluralize
+ security [ bearer_auth: [] ]
+ operationId 'reset-digital-link'
+ description 'Resets a digital link, allowing further downloads'
+ consumes 'application/json'
+ parameter name: :id, in: :path, type: :string
+
+ it_behaves_like 'record updated'
+ end
+ end
end