Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Update request subscribers spec attributes checking.

Sebastian Palmaf16aa325d574
diff --git a/api/app/controllers/spree/api/v2/platform/webhooks/subscribers_controller.rb b/api/app/controllers/spree/api/v2/platform/webhooks/subscribers_controller.rb
index de10360166..9547be6cda 100644
--- a/api/app/controllers/spree/api/v2/platform/webhooks/subscribers_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/webhooks/subscribers_controller.rb
@@ -9,6 +9,10 @@ module Spree
def model_class
Spree::Webhooks::Subscriber
end
+
+ def spree_permitted_attributes
+ super + [{subscriptions: []}]
+ end
end
end
end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 3f06ce72fd..e0536cb513 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -69,8 +69,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-25T16:10:07.245Z'
- updated_at: '2021-10-25T16:10:07.245Z'
+ created_at: '2021-10-26T11:40:00.481Z'
+ updated_at: '2021-10-26T11:40:00.481Z'
deleted_at:
label:
relationships:
@@ -97,8 +97,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-25T16:10:07.251Z'
- updated_at: '2021-10-25T16:10:07.251Z'
+ created_at: '2021-10-26T11:40:00.490Z'
+ updated_at: '2021-10-26T11:40:00.490Z'
deleted_at:
label:
relationships:
@@ -168,8 +168,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-25T16:10:07.524Z'
- updated_at: '2021-10-25T16:10:07.524Z'
+ created_at: '2021-10-26T11:40:00.786Z'
+ updated_at: '2021-10-26T11:40:00.786Z'
deleted_at:
label:
relationships:
@@ -259,8 +259,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-25T16:10:07.581Z'
- updated_at: '2021-10-25T16:10:07.581Z'
+ created_at: '2021-10-26T11:40:00.842Z'
+ updated_at: '2021-10-26T11:40:00.842Z'
deleted_at:
label:
relationships:
@@ -333,8 +333,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-10-25T16:10:07.664Z'
- updated_at: '2021-10-25T16:10:07.678Z'
+ created_at: '2021-10-26T11:40:00.954Z'
+ updated_at: '2021-10-26T11:40:00.969Z'
deleted_at:
label:
relationships:
@@ -466,8 +466,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-25T16:10:07.990Z'
- updated_at: '2021-10-25T16:10:07.990Z'
+ created_at: '2021-10-26T11:40:01.276Z'
+ updated_at: '2021-10-26T11:40:01.276Z'
state: open
included: false
display_amount: "$100.00"
@@ -493,8 +493,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-25T16:10:08.024Z'
- updated_at: '2021-10-25T16:10:08.024Z'
+ created_at: '2021-10-26T11:40:01.314Z'
+ updated_at: '2021-10-26T11:40:01.314Z'
state: open
included: false
display_amount: "$100.00"
@@ -563,8 +563,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-25T16:10:08.394Z'
- updated_at: '2021-10-25T16:10:08.394Z'
+ created_at: '2021-10-26T11:40:01.696Z'
+ updated_at: '2021-10-26T11:40:01.696Z'
state: open
included: false
display_amount: "$100.00"
@@ -642,8 +642,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-10-25T16:10:08.567Z'
- updated_at: '2021-10-25T16:10:08.575Z'
+ created_at: '2021-10-26T11:40:01.856Z'
+ updated_at: '2021-10-26T11:40:01.863Z'
state: open
included: false
display_amount: "$1.00"
@@ -715,8 +715,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-10-25T16:10:08.868Z'
- updated_at: '2021-10-25T16:10:08.891Z'
+ created_at: '2021-10-26T11:40:02.175Z'
+ updated_at: '2021-10-26T11:40:02.197Z'
state: open
included: false
display_amount: "$15.00"
@@ -844,8 +844,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-25T16:10:09.739Z'
- updated_at: '2021-10-25T16:10:09.739Z'
+ created_at: '2021-10-26T11:40:03.103Z'
+ updated_at: '2021-10-26T11:40:03.103Z'
relationships:
product:
data:
@@ -859,8 +859,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-25T16:10:09.853Z'
- updated_at: '2021-10-25T16:10:09.853Z'
+ created_at: '2021-10-26T11:40:03.233Z'
+ updated_at: '2021-10-26T11:40:03.233Z'
relationships:
product:
data:
@@ -917,8 +917,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-25T16:10:10.380Z'
- updated_at: '2021-10-25T16:10:10.380Z'
+ created_at: '2021-10-26T11:40:03.917Z'
+ updated_at: '2021-10-26T11:40:03.917Z'
relationships:
product:
data:
@@ -981,8 +981,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-25T16:10:10.695Z'
- updated_at: '2021-10-25T16:10:10.695Z'
+ created_at: '2021-10-26T11:40:04.129Z'
+ updated_at: '2021-10-26T11:40:04.129Z'
relationships:
product:
data:
@@ -1042,8 +1042,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-10-25T16:10:11.087Z'
- updated_at: '2021-10-25T16:10:11.087Z'
+ created_at: '2021-10-26T11:40:04.558Z'
+ updated_at: '2021-10-26T11:40:04.558Z'
relationships:
product:
data:
@@ -1153,8 +1153,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-10-25T16:10:12.057Z'
- updated_at: '2021-10-25T16:10:12.087Z'
+ created_at: '2021-10-26T11:40:05.543Z'
+ updated_at: '2021-10-26T11:40:05.573Z'
relationships:
product:
data:
@@ -1245,35 +1245,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Ullam consequuntur repellat at adipisci alias eveniet
- molestias cupiditate.
+ title: Sed aliquid architecto dolores natus totam.
meta_title:
content:
meta_description:
visible: true
- slug: ullam-consequuntur-repellat-at-adipisci-alias-eveniet-molestias-cupiditate
+ slug: sed-aliquid-architecto-dolores-natus-totam
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-25T16:10:12.519Z'
- updated_at: '2021-10-25T16:10:12.519Z'
+ created_at: '2021-10-26T11:40:06.116Z'
+ updated_at: '2021-10-26T11:40:06.116Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Voluptatum tempora sit hic minus distinctio natus.
+ title: Non autem vero doloribus itaque debitis consectetur
+ sapiente.
meta_title:
content:
meta_description:
visible: true
- slug: voluptatum-tempora-sit-hic-minus-distinctio-natus
+ slug: non-autem-vero-doloribus-itaque-debitis-consectetur-sapiente
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-25T16:10:12.524Z'
- updated_at: '2021-10-25T16:10:12.524Z'
+ created_at: '2021-10-26T11:40:06.121Z'
+ updated_at: '2021-10-26T11:40:06.121Z'
relationships:
cms_sections:
data: []
@@ -1323,18 +1323,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Eos voluptatibus dignissimos non repudiandae quisquam
- quas explicabo.
+ title: Eos eligendi unde quos iure dicta.
meta_title:
content:
meta_description:
visible: true
- slug: eos-voluptatibus-dignissimos-non-repudiandae-quisquam-quas-explicabo
+ slug: eos-eligendi-unde-quos-iure-dicta
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-25T16:10:12.639Z'
- updated_at: '2021-10-25T16:10:12.639Z'
+ created_at: '2021-10-26T11:40:06.240Z'
+ updated_at: '2021-10-26T11:40:06.240Z'
relationships:
cms_sections:
data: []
@@ -1390,17 +1389,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Saepe eum dignissimos dolor tenetur reiciendis nobis.
+ title: Ex sunt nihil delectus magni dolorem voluptates aspernatur.
meta_title:
content:
meta_description:
visible: true
- slug: saepe-eum-dignissimos-dolor-tenetur-reiciendis-nobis
+ slug: ex-sunt-nihil-delectus-magni-dolorem-voluptates-aspernatur
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-25T16:10:12.698Z'
- updated_at: '2021-10-25T16:10:12.698Z'
+ created_at: '2021-10-26T11:40:06.298Z'
+ updated_at: '2021-10-26T11:40:06.298Z'
relationships:
cms_sections:
data: []
@@ -1458,12 +1457,12 @@ paths:
content:
meta_description:
visible: true
- slug: vel-tenetur-ex-ratione-corrupti-ab-tempora-quis-mollitia
+ slug: itaque-non-optio-porro-inventore
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-10-25T16:10:12.786Z'
- updated_at: '2021-10-25T16:10:12.808Z'
+ created_at: '2021-10-26T11:40:06.391Z'
+ updated_at: '2021-10-26T11:40:06.407Z'
relationships:
cms_sections:
data: []
@@ -1577,8 +1576,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Ipsam maiores repudiandae quae voluptas pariatur totam
- recusandae nobis.
+ name: Occaecati amet eligendi nisi ipsa tenetur doloremque.
content: {}
settings:
gutters: No Gutters
@@ -1587,8 +1585,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-10-25T16:10:13.088Z'
- updated_at: '2021-10-25T16:10:13.088Z'
+ created_at: '2021-10-26T11:40:06.681Z'
+ updated_at: '2021-10-26T11:40:06.681Z'
relationships:
cms_page:
data:
@@ -1599,7 +1597,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Nihil magni officia reiciendis accusantium distinctio.
+ name: Laborum illo error vel voluptates.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1611,8 +1609,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-10-25T16:10:13.093Z'
- updated_at: '2021-10-25T16:10:13.093Z'
+ created_at: '2021-10-26T11:40:06.686Z'
+ updated_at: '2021-10-26T11:40:06.686Z'
relationships:
cms_page:
data:
@@ -1623,8 +1621,7 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Architecto et perferendis eos occaecati incidunt commodi
- eius libero.
+ name: Ipsam libero vel amet quis.
content: {}
settings:
gutters: No Gutters
@@ -1633,8 +1630,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-10-25T16:10:13.106Z'
- updated_at: '2021-10-25T16:10:13.106Z'
+ created_at: '2021-10-26T11:40:06.700Z'
+ updated_at: '2021-10-26T11:40:06.700Z'
relationships:
cms_page:
data:
@@ -1645,8 +1642,8 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Eius voluptas laborum eaque provident maxime ad non
- ducimus.
+ name: Mollitia accusantium odit corporis totam vitae explicabo
+ qui.
content: {}
settings:
gutters: No Gutters
@@ -1655,8 +1652,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:13.119Z'
- updated_at: '2021-10-25T16:10:13.119Z'
+ created_at: '2021-10-26T11:40:06.719Z'
+ updated_at: '2021-10-26T11:40:06.719Z'
relationships:
cms_page:
data:
@@ -1669,8 +1666,8 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Blanditiis vero quis magnam necessitatibus ducimus beatae
- minima quasi.
+ name: Vel magnam corporis libero iusto delectus doloribus
+ dignissimos quam.
content: {}
settings:
gutters: No Gutters
@@ -1679,8 +1676,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:13.132Z'
- updated_at: '2021-10-25T16:10:13.132Z'
+ created_at: '2021-10-26T11:40:06.731Z'
+ updated_at: '2021-10-26T11:40:06.731Z'
relationships:
cms_page:
data:
@@ -1736,7 +1733,8 @@ paths:
id: '14'
type: cms_section
attributes:
- name: Ratione iure quisquam quia incidunt laborum.
+ name: Repellendus cupiditate libero autem odit nobis facere
+ vero.
content: {}
settings:
gutters: No Gutters
@@ -1745,8 +1743,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:13.510Z'
- updated_at: '2021-10-25T16:10:13.510Z'
+ created_at: '2021-10-26T11:40:07.008Z'
+ updated_at: '2021-10-26T11:40:07.008Z'
relationships:
cms_page:
data:
@@ -1808,7 +1806,7 @@ paths:
id: '21'
type: cms_section
attributes:
- name: Possimus laudantium tenetur cupiditate illo sit repudiandae.
+ name: Vero error saepe nesciunt culpa id.
content: {}
settings:
gutters: No Gutters
@@ -1817,8 +1815,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:13.743Z'
- updated_at: '2021-10-25T16:10:13.743Z'
+ created_at: '2021-10-26T11:40:07.271Z'
+ updated_at: '2021-10-26T11:40:07.271Z'
relationships:
cms_page:
data:
@@ -1886,8 +1884,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:14.083Z'
- updated_at: '2021-10-25T16:10:14.102Z'
+ created_at: '2021-10-26T11:40:07.704Z'
+ updated_at: '2021-10-26T11:40:07.724Z'
relationships:
cms_page:
data:
@@ -1989,8 +1987,7 @@ paths:
id: '58'
type: cms_section
attributes:
- name: Tempora placeat suscipit reiciendis est ipsa accusantium
- nihil distinctio.
+ name: Beatae facilis esse quidem consequatur illum.
content: {}
settings:
gutters: No Gutters
@@ -1999,8 +1996,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-10-25T16:10:15.020Z'
- updated_at: '2021-10-25T16:10:15.039Z'
+ created_at: '2021-10-26T11:40:08.640Z'
+ updated_at: '2021-10-26T11:40:08.704Z'
relationships:
cms_page:
data:
@@ -2058,9 +2055,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-10-25T16:10:15.293Z'
+ updated_at: '2021-10-26T11:40:08.962Z'
zipcode_required: true
- created_at: '2021-10-25T16:10:15.293Z'
+ created_at: '2021-10-26T11:40:08.962Z'
relationships:
states:
data: []
@@ -2073,9 +2070,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-10-25T16:10:15.303Z'
+ updated_at: '2021-10-26T11:40:08.972Z'
zipcode_required: true
- created_at: '2021-10-25T16:10:15.303Z'
+ created_at: '2021-10-26T11:40:08.972Z'
relationships:
states:
data: []
@@ -2088,9 +2085,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-10-25T16:10:15.307Z'
+ updated_at: '2021-10-26T11:40:08.977Z'
zipcode_required: true
- created_at: '2021-10-25T16:10:15.307Z'
+ created_at: '2021-10-26T11:40:08.977Z'
relationships:
states:
data: []
@@ -2145,9 +2142,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-10-25T16:10:15.387Z'
+ updated_at: '2021-10-26T11:40:09.060Z'
zipcode_required: true
- created_at: '2021-10-25T16:10:15.387Z'
+ created_at: '2021-10-26T11:40:09.060Z'
relationships:
states:
data: []
@@ -2199,7 +2196,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: JLw9KBzBZZV54kziQwYVnwS2
+ token: LychUL9sq3LXH7CsMuf6Y4vB
access_counter: 0
relationships:
digital:
@@ -2213,7 +2210,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: nYepdymuyxKviHFq21vr3tUz
+ token: i7zRWCeU9UkGSHT3uXabENGg
access_counter: 0
relationships:
digital:
@@ -2263,7 +2260,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: 9NoFMDf3FADZHHbYHhyvoDNu
+ token: UvEEL78CmWj8ZDoKDQZCgBpV
access_counter: 0
relationships:
digital:
@@ -2322,7 +2319,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: hyX7MoXXsC3EptEWwggoyo9v
+ token: xd3XzEyWEjgUBPo3uQh3gd6S
access_counter: 0
relationships:
digital:
@@ -2375,7 +2372,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: VFmC2SAv6pp1kR64zdcB9ESw
+ token: ncESAz4PPrrvd7cH23YgiJVu
access_counter: 0
relationships:
digital:
@@ -2478,7 +2475,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: MMNszyGVuV2rarY2NJMoy5ZG
+ token: Z5GEqMKKPQDt8G2YhAQWVJDd
access_counter: 0
relationships:
digital:
@@ -2544,7 +2541,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--94d3373074383ce2ee576795aa244c3f1f68e429/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a7f98cbbcb6319b1ce4a397908a3f464831422b0/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2556,7 +2553,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--b5e5e1ab334e0dac54f17b76171dbc8e4f38bea4/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--93034171085577097029a567b503614751d8cbca/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2568,7 +2565,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--185f46499656fe57ceccc0ece229cf1f8b0977b1/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--63872143ddf02282c7a17b55392ccd09eb2e1a8d/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2623,7 +2620,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--9216ac1427950f679427ed262fcf8ec89335c485/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7e57c3a59beb72ab3892a7f595a3ea2ec9ccc1e5/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2684,7 +2681,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a50ee9e4e38807ed8af303174d99143c347e4b3c/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--26f493702b57bbf7ce336912c8a0ce90547cb59e/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2742,7 +2739,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--dffda95cd918bb600235b63c3557d5caa1f2461b/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ed5430091bec01249fd2ec4e09e905c36f3bb538/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2863,8 +2860,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-25T16:10:25.012Z'
- updated_at: '2021-10-25T16:10:25.026Z'
+ created_at: '2021-10-26T11:40:19.667Z'
+ updated_at: '2021-10-26T11:40:19.681Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -2910,8 +2907,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-25T16:10:25.079Z'
- updated_at: '2021-10-25T16:10:25.087Z'
+ created_at: '2021-10-26T11:40:19.746Z'
+ updated_at: '2021-10-26T11:40:19.755Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3000,8 +2997,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-25T16:10:25.432Z'
- updated_at: '2021-10-25T16:10:25.476Z'
+ created_at: '2021-10-26T11:40:20.105Z'
+ updated_at: '2021-10-26T11:40:20.155Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3099,8 +3096,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-10-25T16:10:25.730Z'
- updated_at: '2021-10-25T16:10:25.744Z'
+ created_at: '2021-10-26T11:40:20.381Z'
+ updated_at: '2021-10-26T11:40:20.394Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3192,8 +3189,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-10-25T16:10:26.140Z'
- updated_at: '2021-10-25T16:10:26.208Z'
+ created_at: '2021-10-26T11:40:20.775Z'
+ updated_at: '2021-10-26T11:40:20.844Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3241,10 +3238,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #133 - 319" is not available.'
+ error: 'Quantity selected of "Product #133 - 7472" is not available.'
errors:
quantity:
- - 'selected of "Product #133 - 319" is not available.'
+ - 'selected of "Product #133 - 7472" is not available.'
'404':
description: Record not found
content:
@@ -3354,8 +3351,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-10-25T16:10:27.128Z'
- updated_at: '2021-10-25T16:10:27.134Z'
+ created_at: '2021-10-26T11:40:21.935Z'
+ updated_at: '2021-10-26T11:40:21.942Z'
link:
is_container: false
is_root: false
@@ -3391,8 +3388,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-10-25T16:10:27.180Z'
- updated_at: '2021-10-25T16:10:27.186Z'
+ created_at: '2021-10-26T11:40:21.988Z'
+ updated_at: '2021-10-26T11:40:21.994Z'
link:
is_container: false
is_root: false
@@ -3428,8 +3425,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-10-25T16:10:27.231Z'
- updated_at: '2021-10-25T16:10:27.237Z'
+ created_at: '2021-10-26T11:40:22.038Z'
+ updated_at: '2021-10-26T11:40:22.044Z'
link:
is_container: false
is_root: false
@@ -3465,8 +3462,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-25T16:10:27.282Z'
- updated_at: '2021-10-25T16:10:27.288Z'
+ created_at: '2021-10-26T11:40:22.089Z'
+ updated_at: '2021-10-26T11:40:22.095Z'
link:
is_container: false
is_root: false
@@ -3502,8 +3499,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-10-25T16:10:27.340Z'
- updated_at: '2021-10-25T16:10:27.346Z'
+ created_at: '2021-10-26T11:40:22.141Z'
+ updated_at: '2021-10-26T11:40:22.147Z'
link:
is_container: false
is_root: false
@@ -3539,8 +3536,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-10-25T16:10:27.391Z'
- updated_at: '2021-10-25T16:10:27.397Z'
+ created_at: '2021-10-26T11:40:22.193Z'
+ updated_at: '2021-10-26T11:40:22.199Z'
link:
is_container: false
is_root: false
@@ -3576,8 +3573,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-10-25T16:10:27.444Z'
- updated_at: '2021-10-25T16:10:27.451Z'
+ created_at: '2021-10-26T11:40:22.242Z'
+ updated_at: '2021-10-26T11:40:22.249Z'
link:
is_container: false
is_root: false
@@ -3603,7 +3600,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Similique consequuntur dolorum recusandae ut.
+ name: Labore consectetur nam assumenda dolorum mollitia.
subtitle:
destination:
new_window: false
@@ -3613,8 +3610,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-10-25T16:10:27.082Z'
- updated_at: '2021-10-25T16:10:27.464Z'
+ created_at: '2021-10-26T11:40:21.888Z'
+ updated_at: '2021-10-26T11:40:22.263Z'
link:
is_container: true
is_root: true
@@ -3703,8 +3700,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-25T16:10:28.144Z'
- updated_at: '2021-10-25T16:10:28.152Z'
+ created_at: '2021-10-26T11:40:22.941Z'
+ updated_at: '2021-10-26T11:40:22.947Z'
link:
is_container: false
is_root: false
@@ -3790,8 +3787,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-25T16:10:28.622Z'
- updated_at: '2021-10-25T16:10:28.628Z'
+ created_at: '2021-10-26T11:40:23.388Z'
+ updated_at: '2021-10-26T11:40:23.394Z'
link:
is_container: false
is_root: false
@@ -3873,8 +3870,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-10-25T16:10:29.663Z'
- updated_at: '2021-10-25T16:10:29.703Z'
+ created_at: '2021-10-26T11:40:24.065Z'
+ updated_at: '2021-10-26T11:40:24.101Z'
link:
is_container: false
is_root: false
@@ -3999,8 +3996,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-10-25T16:10:31.713Z'
- updated_at: '2021-10-25T16:10:31.753Z'
+ created_at: '2021-10-26T11:40:25.740Z'
+ updated_at: '2021-10-26T11:40:25.779Z'
link:
is_container: false
is_root: false
@@ -4092,25 +4089,25 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-25T16:10:32.255Z'
- updated_at: '2021-10-25T16:10:32.384Z'
+ created_at: '2021-10-26T11:40:26.260Z'
+ updated_at: '2021-10-26T11:40:26.375Z'
relationships:
menu_items:
data:
- - id: '89'
- type: menu_item
- id: '87'
type: menu_item
- id: '90'
type: menu_item
+ - id: '89'
+ type: menu_item
- id: '19'
type: menu
attributes:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-10-25T16:10:32.269Z'
- updated_at: '2021-10-25T16:10:32.493Z'
+ created_at: '2021-10-26T11:40:26.274Z'
+ updated_at: '2021-10-26T11:40:26.477Z'
relationships:
menu_items:
data:
@@ -4169,8 +4166,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-25T16:10:32.879Z'
- updated_at: '2021-10-25T16:10:32.890Z'
+ created_at: '2021-10-26T11:40:26.809Z'
+ updated_at: '2021-10-26T11:40:26.819Z'
relationships:
menu_items:
data:
@@ -4234,8 +4231,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-25T16:10:32.947Z'
- updated_at: '2021-10-25T16:10:32.959Z'
+ created_at: '2021-10-26T11:40:26.876Z'
+ updated_at: '2021-10-26T11:40:26.885Z'
relationships:
menu_items:
data:
@@ -4293,8 +4290,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-10-25T16:10:33.060Z'
- updated_at: '2021-10-25T16:10:33.069Z'
+ created_at: '2021-10-26T11:40:26.984Z'
+ updated_at: '2021-10-26T11:40:26.994Z'
relationships:
menu_items:
data:
@@ -4417,8 +4414,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-10-25T16:10:33.335Z'
- updated_at: '2021-10-25T16:10:33.335Z'
+ created_at: '2021-10-26T11:40:27.257Z'
+ updated_at: '2021-10-26T11:40:27.257Z'
filterable: true
relationships:
option_values:
@@ -4429,8 +4426,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-10-25T16:10:33.339Z'
- updated_at: '2021-10-25T16:10:33.339Z'
+ created_at: '2021-10-26T11:40:27.260Z'
+ updated_at: '2021-10-26T11:40:27.260Z'
filterable: true
relationships:
option_values:
@@ -4477,8 +4474,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-10-25T16:10:33.421Z'
- updated_at: '2021-10-25T16:10:33.421Z'
+ created_at: '2021-10-26T11:40:27.351Z'
+ updated_at: '2021-10-26T11:40:27.351Z'
filterable: true
relationships:
option_values:
@@ -4531,8 +4528,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-10-25T16:10:33.475Z'
- updated_at: '2021-10-25T16:10:33.475Z'
+ created_at: '2021-10-26T11:40:27.405Z'
+ updated_at: '2021-10-26T11:40:27.405Z'
filterable: true
relationships:
option_values:
@@ -4582,8 +4579,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-10-25T16:10:33.562Z'
- updated_at: '2021-10-25T16:10:33.576Z'
+ created_at: '2021-10-26T11:40:27.486Z'
+ updated_at: '2021-10-26T11:40:27.500Z'
filterable: true
relationships:
option_values:
@@ -4707,8 +4704,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-10-25T16:10:33.768Z'
- updated_at: '2021-10-25T16:10:33.768Z'
+ created_at: '2021-10-26T11:40:27.695Z'
+ updated_at: '2021-10-26T11:40:27.695Z'
relationships:
option_type:
data:
@@ -4720,8 +4717,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-10-25T16:10:33.777Z'
- updated_at: '2021-10-25T16:10:33.777Z'
+ created_at: '2021-10-26T11:40:27.707Z'
+ updated_at: '2021-10-26T11:40:27.707Z'
relationships:
option_type:
data:
@@ -4776,8 +4773,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-10-25T16:10:33.892Z'
- updated_at: '2021-10-25T16:10:33.892Z'
+ created_at: '2021-10-26T11:40:27.801Z'
+ updated_at: '2021-10-26T11:40:27.801Z'
relationships:
option_type:
data:
@@ -4836,8 +4833,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-10-25T16:10:33.965Z'
- updated_at: '2021-10-25T16:10:33.965Z'
+ created_at: '2021-10-26T11:40:27.856Z'
+ updated_at: '2021-10-26T11:40:27.856Z'
relationships:
option_type:
data:
@@ -4895,8 +4892,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-10-25T16:10:34.084Z'
- updated_at: '2021-10-25T16:10:34.107Z'
+ created_at: '2021-10-26T11:40:27.956Z'
+ updated_at: '2021-10-26T11:40:27.971Z'
relationships:
option_type:
data:
@@ -5012,7 +5009,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R843649938
+ number: R593647058
item_total: '0.0'
total: '0.0'
state: cart
@@ -5021,10 +5018,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:34.395Z'
- updated_at: '2021-10-25T16:10:34.395Z'
+ created_at: '2021-10-26T11:40:28.198Z'
+ updated_at: '2021-10-26T11:40:28.198Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5096,7 +5093,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R275774025
+ number: R537642435
item_total: '0.0'
total: '0.0'
state: cart
@@ -5105,10 +5102,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:34.412Z'
- updated_at: '2021-10-25T16:10:34.412Z'
+ created_at: '2021-10-26T11:40:28.215Z'
+ updated_at: '2021-10-26T11:40:28.215Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5223,7 +5220,7 @@ paths:
id: '44'
type: order
attributes:
- number: R424345067
+ number: R461656793
item_total: '0.0'
total: '0.0'
state: cart
@@ -5234,8 +5231,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-10-25T16:10:34.864Z'
- updated_at: '2021-10-25T16:10:34.885Z'
+ created_at: '2021-10-26T11:40:28.612Z'
+ updated_at: '2021-10-26T11:40:28.632Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5347,7 +5344,7 @@ paths:
id: '45'
type: order
attributes:
- number: R685975549
+ number: R527857572
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5356,10 +5353,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:34.953Z'
- updated_at: '2021-10-25T16:10:35.164Z'
+ created_at: '2021-10-26T11:40:28.698Z'
+ updated_at: '2021-10-26T11:40:28.880Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5483,7 +5480,7 @@ paths:
id: '47'
type: order
attributes:
- number: R939500624
+ number: R213991125
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5494,8 +5491,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:35.477Z'
- updated_at: '2021-10-25T16:10:35.652Z'
+ created_at: '2021-10-26T11:40:29.181Z'
+ updated_at: '2021-10-26T11:40:29.344Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5669,7 +5666,7 @@ paths:
id: '52'
type: order
attributes:
- number: R899104197
+ number: R830513500
item_total: '10.0'
total: '110.0'
state: payment
@@ -5678,10 +5675,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:36.687Z'
- updated_at: '2021-10-25T16:10:36.923Z'
+ created_at: '2021-10-26T11:40:30.295Z'
+ updated_at: '2021-10-26T11:40:30.515Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5808,7 +5805,7 @@ paths:
id: '54'
type: order
attributes:
- number: R883346245
+ number: R782014536
item_total: '10.0'
total: '110.0'
state: payment
@@ -5817,10 +5814,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:37.232Z'
- updated_at: '2021-10-25T16:10:37.464Z'
+ created_at: '2021-10-26T11:40:30.801Z'
+ updated_at: '2021-10-26T11:40:31.004Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5947,19 +5944,19 @@ paths:
id: '56'
type: order
attributes:
- number: R451492357
+ number: R990849827
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-10-25T16:10:38.122Z'
+ completed_at: '2021-10-26T11:40:31.617Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-10-25T16:10:37.763Z'
- updated_at: '2021-10-25T16:10:38.122Z'
+ created_at: '2021-10-26T11:40:31.284Z'
+ updated_at: '2021-10-26T11:40:31.617Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6097,7 +6094,7 @@ paths:
id: '59'
type: order
attributes:
- number: R232763676
+ number: R745310920
item_total: '0.0'
total: '0.0'
state: cart
@@ -6106,10 +6103,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:38.657Z'
- updated_at: '2021-10-25T16:10:38.839Z'
+ created_at: '2021-10-26T11:40:32.131Z'
+ updated_at: '2021-10-26T11:40:32.312Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6231,7 +6228,7 @@ paths:
id: '61'
type: order
attributes:
- number: R217041335
+ number: R723516135
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6240,10 +6237,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:39.113Z'
- updated_at: '2021-10-25T16:10:39.261Z'
+ created_at: '2021-10-26T11:40:32.601Z'
+ updated_at: '2021-10-26T11:40:32.744Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6369,19 +6366,19 @@ paths:
id: '63'
type: order
attributes:
- number: R709493258
+ number: R131520319
item_total: '10.0'
total: '10.0'
state: canceled
adjustment_total: '0.0'
- completed_at: '2021-10-25T16:10:39.736Z'
+ completed_at: '2021-10-26T11:40:33.204Z'
payment_total: '0.0'
shipment_state: canceled
payment_state: void
special_instructions:
- created_at: '2021-10-25T16:10:39.568Z'
- updated_at: '2021-10-25T16:10:39.847Z'
+ created_at: '2021-10-26T11:40:33.021Z'
+ updated_at: '2021-10-26T11:40:33.307Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6523,7 +6520,7 @@ paths:
id: '66'
type: order
attributes:
- number: R107967579
+ number: R896646380
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6532,10 +6529,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:40.354Z'
- updated_at: '2021-10-25T16:10:40.613Z'
+ created_at: '2021-10-26T11:40:33.799Z'
+ updated_at: '2021-10-26T11:40:34.013Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6676,7 +6673,7 @@ paths:
id: '69'
type: order
attributes:
- number: R823803393
+ number: R722594104
item_total: '10.0'
total: '10.0'
state: delivery
@@ -6685,10 +6682,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-10-25T16:10:41.299Z'
- updated_at: '2021-10-25T16:10:41.563Z'
+ created_at: '2021-10-26T11:40:34.577Z'
+ updated_at: '2021-10-26T11:40:34.822Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6852,9 +6849,9 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-10-25T16:10:42.155Z'
- updated_at: '2021-10-25T16:10:42.194Z'
- number: PLJO7U1X
+ created_at: '2021-10-26T11:40:35.378Z'
+ updated_at: '2021-10-26T11:40:35.414Z'
+ number: P7K27YKF
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -6889,9 +6886,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-10-25T16:10:42.185Z'
- updated_at: '2021-10-25T16:10:42.185Z'
- number: PXTSW6G2
+ created_at: '2021-10-26T11:40:35.408Z'
+ updated_at: '2021-10-26T11:40:35.408Z'
+ number: PC6YUNDM
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -6973,9 +6970,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-10-25T16:10:42.459Z'
- updated_at: '2021-10-25T16:10:42.459Z'
- number: PY1Y8GSK
+ created_at: '2021-10-26T11:40:35.671Z'
+ updated_at: '2021-10-26T11:40:35.671Z'
+ number: P00GYJA0
cvv_response_code:
cvv_response_message:
display_amount: "$45.75"
@@ -7101,8 +7098,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-25T16:10:42.850Z'
- updated_at: '2021-10-25T16:10:42.850Z'
+ created_at: '2021-10-26T11:40:36.019Z'
+ updated_at: '2021-10-26T11:40:36.019Z'
code: POP123
relationships:
promotions:
@@ -7111,8 +7108,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-25T16:10:42.853Z'
- updated_at: '2021-10-25T16:10:42.853Z'
+ created_at: '2021-10-26T11:40:36.021Z'
+ updated_at: '2021-10-26T11:40:36.021Z'
code: POP123
relationships:
promotions:
@@ -7164,8 +7161,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-25T16:10:42.930Z'
- updated_at: '2021-10-25T16:10:42.930Z'
+ created_at: '2021-10-26T11:40:36.099Z'
+ updated_at: '2021-10-26T11:40:36.099Z'
code: 2021-BFM
relationships:
promotions:
@@ -7221,8 +7218,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-10-25T16:10:42.984Z'
- updated_at: '2021-10-25T16:10:42.984Z'
+ created_at: '2021-10-26T11:40:36.147Z'
+ updated_at: '2021-10-26T11:40:36.147Z'
code: MJO
relationships:
promotions:
@@ -7277,8 +7274,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-10-25T16:10:43.066Z'
- updated_at: '2021-10-25T16:10:43.077Z'
+ created_at: '2021-10-26T11:40:36.226Z'
+ updated_at: '2021-10-26T11:40:36.237Z'
code: 2021-Promos
relationships:
promotions:
@@ -7394,14 +7391,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #103'
- created_at: '2021-10-25T16:10:43.251Z'
- updated_at: '2021-10-25T16:10:43.251Z'
+ created_at: '2021-10-26T11:40:36.429Z'
+ updated_at: '2021-10-26T11:40:36.429Z'
- id: '104'
type: shipping_category
attributes:
name: 'ShippingCategory #104'
- created_at: '2021-10-25T16:10:43.254Z'
- updated_at: '2021-10-25T16:10:43.254Z'
+ created_at: '2021-10-26T11:40:36.432Z'
+ updated_at: '2021-10-26T11:40:36.432Z'
meta:
count: 2
total_count: 2
@@ -7449,8 +7446,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #107'
- created_at: '2021-10-25T16:10:43.332Z'
- updated_at: '2021-10-25T16:10:43.332Z'
+ created_at: '2021-10-26T11:40:36.511Z'
+ updated_at: '2021-10-26T11:40:36.511Z'
'422':
description: invalid request
content:
@@ -7502,8 +7499,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #108'
- created_at: '2021-10-25T16:10:43.384Z'
- updated_at: '2021-10-25T16:10:43.384Z'
+ created_at: '2021-10-26T11:40:36.562Z'
+ updated_at: '2021-10-26T11:40:36.562Z'
'404':
description: Record not found
content:
@@ -7554,8 +7551,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-10-25T16:10:43.477Z'
- updated_at: '2021-10-25T16:10:43.490Z'
+ created_at: '2021-10-26T11:40:36.646Z'
+ updated_at: '2021-10-26T11:40:36.660Z'
'422':
description: invalid request
content:
@@ -7678,8 +7675,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-25T16:10:43.727Z'
- updated_at: '2021-10-25T16:10:43.732Z'
+ created_at: '2021-10-26T11:40:36.908Z'
+ updated_at: '2021-10-26T11:40:36.914Z'
meta_title:
meta_description:
meta_keywords:
@@ -7713,8 +7710,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-10-25T16:10:43.779Z'
- updated_at: '2021-10-25T16:10:43.793Z'
+ created_at: '2021-10-26T11:40:36.961Z'
+ updated_at: '2021-10-26T11:40:36.966Z'
meta_title:
meta_description:
meta_keywords:
@@ -7748,8 +7745,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-10-25T16:10:43.677Z'
- updated_at: '2021-10-25T16:10:43.809Z'
+ created_at: '2021-10-26T11:40:36.859Z'
+ updated_at: '2021-10-26T11:40:36.980Z'
meta_title:
meta_description:
meta_keywords:
@@ -7826,8 +7823,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-25T16:10:44.079Z'
- updated_at: '2021-10-25T16:10:44.086Z'
+ created_at: '2021-10-26T11:40:37.230Z'
+ updated_at: '2021-10-26T11:40:37.237Z'
meta_title:
meta_description:
meta_keywords:
@@ -7908,8 +7905,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-25T16:10:44.217Z'
- updated_at: '2021-10-25T16:10:44.223Z'
+ created_at: '2021-10-26T11:40:37.359Z'
+ updated_at: '2021-10-26T11:40:37.364Z'
meta_title:
meta_description:
meta_keywords:
@@ -7991,8 +7988,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-10-25T16:10:44.480Z'
- updated_at: '2021-10-25T16:10:44.532Z'
+ created_at: '2021-10-26T11:40:37.599Z'
+ updated_at: '2021-10-26T11:40:37.636Z'
meta_title:
meta_description:
meta_keywords:
@@ -8133,9 +8130,9 @@ paths:
- id: '79'
type: user
attributes:
- created_at: '2021-10-25T16:10:45.096Z'
- updated_at: '2021-10-25T16:10:45.096Z'
+ created_at: '2021-10-26T11:40:38.163Z'
+ updated_at: '2021-10-26T11:40:38.163Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8147,9 +8144,9 @@ paths:
- id: '80'
type: user
attributes:
- created_at: '2021-10-25T16:10:45.105Z'
- updated_at: '2021-10-25T16:10:45.105Z'
+ created_at: '2021-10-26T11:40:38.174Z'
+ updated_at: '2021-10-26T11:40:38.174Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8161,9 +8158,9 @@ paths:
- id: '81'
type: user
attributes:
- created_at: '2021-10-25T16:10:45.108Z'
- updated_at: '2021-10-25T16:10:45.108Z'
+ created_at: '2021-10-26T11:40:38.177Z'
+ updated_at: '2021-10-26T11:40:38.177Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8218,9 +8215,9 @@ paths:
id: '86'
type: user
attributes:
- created_at: '2021-10-25T16:10:45.228Z'
- updated_at: '2021-10-25T16:10:45.228Z'
+ created_at: '2021-10-26T11:40:38.282Z'
+ updated_at: '2021-10-26T11:40:38.282Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8279,9 +8276,9 @@ paths:
id: '89'
type: user
attributes:
- created_at: '2021-10-25T16:10:45.309Z'
- updated_at: '2021-10-25T16:10:45.309Z'
+ created_at: '2021-10-26T11:40:38.364Z'
+ updated_at: '2021-10-26T11:40:38.364Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8340,8 +8337,8 @@ paths:
type: user
attributes:
- created_at: '2021-10-25T16:10:45.444Z'
- updated_at: '2021-10-25T16:10:45.462Z'
+ created_at: '2021-10-26T11:40:38.481Z'
+ updated_at: '2021-10-26T11:40:38.494Z'
average_order_value: []
lifetime_value: []
store_credits: []
@@ -8476,12 +8473,12 @@ paths:
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-25T16:10:45.796Z'
+ updated_at: '2021-10-26T11:40:38.810Z'
discontinue_on:
- created_at: '2021-10-25T16:10:45.787Z'
+ created_at: '2021-10-26T11:40:38.801Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #170 - 8121'
+ name: 'Product #170 - 8044'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -8516,21 +8513,21 @@ paths:
type: variant
attributes:
sku: SKU-238
- weight: '13.65'
- height: '82.95'
- depth: '109.7'
+ weight: '179.32'
+ height: '145.53'
+ depth: '86.31'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-25T16:10:45.842Z'
+ updated_at: '2021-10-26T11:40:38.856Z'
discontinue_on:
- created_at: '2021-10-25T16:10:45.831Z'
+ created_at: '2021-10-26T11:40:38.847Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #170 - 8121'
+ name: 'Product #170 - 8044'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -8567,21 +8564,21 @@ paths:
type: variant
attributes:
sku: SKU-239
- weight: '37.23'
- height: '147.67'
- depth: '95.16'
+ weight: '20.8'
+ height: '30.39'
+ depth: '18.59'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-25T16:10:45.874Z'
+ updated_at: '2021-10-26T11:40:38.890Z'
discontinue_on:
- created_at: '2021-10-25T16:10:45.864Z'
+ created_at: '2021-10-26T11:40:38.880Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #170 - 8121'
+ name: 'Product #170 - 8044'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -8667,21 +8664,21 @@ paths:
type: variant
attributes:
sku: SKU-244
- weight: '53.31'
- height: '7.4'
- depth: '14.88'
+ weight: '129.62'
+ height: '21.9'
+ depth: '196.93'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-10-25T16:10:46.219Z'
+ updated_at: '2021-10-26T11:40:39.264Z'
discontinue_on:
- created_at: '2021-10-25T16:10:46.208Z'
+ created_at: '2021-10-26T11:40:39.252Z'
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #172 - 6101'
+ name: 'Product #172 - 510'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -8793,19 +8790,23 @@ paths:
value:
data:
- id: '1'
- type: webhooks_subscriber
+ type: subscriber
attributes:
- active: true
url: https://www.url1.com/
+ active: true
subscriptions:
- "*"
+ created_at: '2021-10-26T11:40:39.814Z'
+ updated_at: '2021-10-26T11:40:39.814Z'
- id: '2'
- type: webhooks_subscriber
+ type: subscriber
attributes:
- active: true
url: https://www.url2.com/
+ active: true
subscriptions:
- "*"
+ created_at: '2021-10-26T11:40:39.816Z'
+ updated_at: '2021-10-26T11:40:39.816Z'
meta:
count: 2
total_count: 2
@@ -8843,11 +8844,14 @@ paths:
value:
data:
id: '5'
- type: webhooks_subscriber
+ type: subscriber
attributes:
- active: true
url: https://www.url5.com/
- subscriptions:
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-10-26T11:40:39.892Z'
+ updated_at: '2021-10-26T11:40:39.892Z'
'422':
description: invalid request
content:
@@ -8892,12 +8896,114 @@ paths:
value:
data:
id: '6'
- type: webhooks_subscriber
+ type: subscriber
attributes:
- active: true
url: https://www.url6.com/
+ active: true
+ subscriptions:
+ - "*"
+ created_at: '2021-10-26T11:40:39.941Z'
+ updated_at: '2021-10-26T11:40:39.941Z'
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ patch:
+ summary: Update a Webhook Subscriber
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Updates a Webhook Subscriber
+ operationId: update-webhook-subscriber
+ 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: '8'
+ type: subscriber
+ attributes:
+ url: https://www.url8.com/
+ active: true
subscriptions:
- "*"
+ created_at: '2021-10-26T11:40:40.028Z'
+ updated_at: '2021-10-26T11:40:40.028Z'
+ '422':
+ description: invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Url must be a valid URL, Url can't be blank, and Url the
+ URL must have a path
+ errors:
+ url:
+ - must be a valid URL
+ - can't be blank
+ - the URL must have a path
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/webhook_subscriber_params"
+ delete:
+ summary: Delete a Webhook Subscriber
+ tags:
+ - Webhook Subscribers
+ security:
+ - bearer_auth: []
+ description: Deletes a Webhook Subscriber
+ operationId: delete-webhook-subscriber
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Record deleted
'404':
description: Record not found
content:
@@ -8954,8 +9060,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:47.250Z'
- updated_at: '2021-10-25T16:10:47.250Z'
+ created_at: '2021-10-26T11:40:40.430Z'
+ updated_at: '2021-10-26T11:40:40.430Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -8969,8 +9075,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:47.357Z'
- updated_at: '2021-10-25T16:10:47.357Z'
+ created_at: '2021-10-26T11:40:40.513Z'
+ updated_at: '2021-10-26T11:40:40.513Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -8984,8 +9090,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:47.454Z'
- updated_at: '2021-10-25T16:10:47.454Z'
+ created_at: '2021-10-26T11:40:40.596Z'
+ updated_at: '2021-10-26T11:40:40.596Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -8999,8 +9105,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:47.549Z'
- updated_at: '2021-10-25T16:10:47.549Z'
+ created_at: '2021-10-26T11:40:40.680Z'
+ updated_at: '2021-10-26T11:40:40.680Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -9057,8 +9163,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:48.453Z'
- updated_at: '2021-10-25T16:10:48.453Z'
+ created_at: '2021-10-26T11:40:41.482Z'
+ updated_at: '2021-10-26T11:40:41.482Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -9124,8 +9230,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-10-25T16:10:48.912Z'
- updated_at: '2021-10-25T16:10:48.912Z'
+ created_at: '2021-10-26T11:40:41.851Z'
+ updated_at: '2021-10-26T11:40:41.851Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -9185,8 +9291,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-10-25T16:10:49.650Z'
- updated_at: '2021-10-25T16:10:49.665Z'
+ created_at: '2021-10-26T11:40:42.468Z'
+ updated_at: '2021-10-26T11:40:42.482Z'
display_price: "$19.99"
display_total: "$59.97"
price: '19.99'
@@ -9309,9 +9415,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-10-25T16:10:51.206Z'
- updated_at: '2021-10-25T16:10:51.206Z'
- token: ZdUT5ZoCg3z3VscCiBMb4CVr
+ created_at: '2021-10-26T11:40:43.709Z'
+ updated_at: '2021-10-26T11:40:43.709Z'
+ token: txAyvFQmdf5tqtBc7EXuyHGB
variant_included: false
relationships:
wished_items:
@@ -9326,9 +9432,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-10-25T16:10:51.209Z'
- updated_at: '2021-10-25T16:10:51.209Z'
- token: bEzbtPU1uvwjR6vGsFjL5oKc
+ created_at: '2021-10-26T11:40:43.712Z'
+ updated_at: '2021-10-26T11:40:43.712Z'
+ token: wdDa984j8EDhd32bNhrpZAAa
variant_included: false
relationships:
wished_items:
@@ -9386,9 +9492,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-10-25T16:10:52.227Z'
- updated_at: '2021-10-25T16:10:52.227Z'
- token: uHUqmEeEwyrPut46dywaWsnp
+ created_at: '2021-10-26T11:40:44.551Z'
+ updated_at: '2021-10-26T11:40:44.551Z'
+ token: nRQzrnqLFVuQsmcYY4FSH9wj
variant_included: false
relationships:
wished_items:
@@ -9448,9 +9554,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-10-25T16:10:52.288Z'
- updated_at: '2021-10-25T16:10:52.288Z'
- token: fQWuEsTByTcxXchhJ9buwuSV
+ created_at: '2021-10-26T11:40:44.616Z'
+ updated_at: '2021-10-26T11:40:44.616Z'
+ token: a4ye7RJtz1jupvaTmNqMvi9T
variant_included: false
relationships:
wished_items:
@@ -9507,9 +9613,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-10-25T16:10:52.403Z'
- updated_at: '2021-10-25T16:10:52.417Z'
- token: EnsXjoicwqoxEZzW8Mw1nEi8
+ created_at: '2021-10-26T11:40:44.721Z'
+ updated_at: '2021-10-26T11:40:44.735Z'
+ token: Pa6ig9qrycZFFXHwfrVjfMJ8
variant_included: false
relationships:
wished_items:
@@ -9774,7 +9880,9 @@ components:
subscriptions:
type: array
example:
- - order.create,order.complete,product.update
+ - order.create
+ - order.complete
+ - product.update
default: []
url:
type: string
@@ -9809,7 +9917,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-10-25 16:10:04 UTC
+ example: 2021-10-26 11:39:57 UTC
bill_address_id:
type: string
example: '1'
@@ -9877,7 +9985,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-10-25 16:10:04 UTC
+ example: 2021-10-26 11:39:57 UTC
confirmation_delivered:
type: boolean
example: true
diff --git a/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb b/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
index e9a9814064..8d7f112f76 100644
--- a/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/webhooks/subscribers_spec.rb
@@ -6,8 +6,11 @@ describe 'Platform API v2 Webhooks Subscribers spec', type: :request do
include_context 'API v2 tokens'
include_context 'Platform API v2'
+ let(:active) { true }
let(:bearer_token) { { 'Authorization' => valid_authorization } }
- let(:params) { { subscriber: { active: true, url: 'https://www.url.com/', subscriptions: ['*'] } } }
+ let(:events) { ['order.create', 'order.complete', 'product.update'] }
+ let(:params) { { subscriber: { active: true, url: url, subscriptions: events } } }
+ let(:url) { 'https://www.url.com/' }
context 'valid request' do
it 'returns status created' do
@@ -15,8 +18,14 @@ describe 'Platform API v2 Webhooks Subscribers spec', type: :request do
expect(response).to have_http_status :created
end
- it 'creates a subscriber ' do
- expect { subject }.to change { Spree::Webhooks::Subscriber.count }.from(0).to(1)
+ it 'creates a subscriber' do
+ expect { subject }.to(
+ change { Spree::Webhooks::Subscriber.count }.from(0).to(1).and(
+ change { Spree::Webhooks::Subscriber.pluck(:active, :url, :subscriptions) }.
+ from([]).
+ to([[active, url, events]])
+ )
+ )
end
end
end
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 6df2bf67a7..7018000761 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -152,7 +152,7 @@ RSpec.configure do |config|
type: :object,
properties: {
active: { type: :boolean, example: true, default: false },
- subscriptions: { type: :array, example: ['order.create,order.complete,product.update'], default: [] },
+ subscriptions: { type: :array, example: ['order.create', 'order.complete', 'product.update'], default: [] },
url: { type: :string, example: 'https://www.url.com/' }
},
'x-internal': true