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.

SD-1471 Geo API - Add States endpoints to Platform API (#11475)

Aleksandar Petrushev2b1af493b1a0
diff --git a/api/app/controllers/spree/api/v2/platform/states_controller.rb b/api/app/controllers/spree/api/v2/platform/states_controller.rb
new file mode 100644
index 0000000000..96bce0f222
--- /dev/null
+++ b/api/app/controllers/spree/api/v2/platform/states_controller.rb
@@ -0,0 +1,19 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ class StatesController < ResourceController
+ private
+
+ def model_class
+ Spree::State
+ end
+
+ def scope_includes
+ [:country]
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index bf07c5ad8a..411d758096 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -70,8 +70,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-20T17:53:09.533Z'
- updated_at: '2021-11-20T17:53:09.533Z'
+ created_at: '2021-11-24T15:42:23.373Z'
+ updated_at: '2021-11-24T15:42:23.373Z'
deleted_at:
label:
public_metadata: {}
@@ -100,8 +100,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-20T17:53:09.537Z'
- updated_at: '2021-11-20T17:53:09.537Z'
+ created_at: '2021-11-24T15:42:23.382Z'
+ updated_at: '2021-11-24T15:42:23.382Z'
deleted_at:
label:
public_metadata: {}
@@ -177,8 +177,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-20T17:53:09.744Z'
- updated_at: '2021-11-20T17:53:09.744Z'
+ created_at: '2021-11-24T15:42:23.775Z'
+ updated_at: '2021-11-24T15:42:23.775Z'
deleted_at:
label:
public_metadata: {}
@@ -274,8 +274,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-20T17:53:09.791Z'
- updated_at: '2021-11-20T17:53:09.791Z'
+ created_at: '2021-11-24T15:42:23.873Z'
+ updated_at: '2021-11-24T15:42:23.873Z'
deleted_at:
label:
public_metadata: {}
@@ -356,8 +356,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-20T17:53:09.876Z'
- updated_at: '2021-11-20T17:53:09.884Z'
+ created_at: '2021-11-24T15:42:23.990Z'
+ updated_at: '2021-11-24T15:42:24.002Z'
deleted_at:
label:
public_metadata: {}
@@ -503,8 +503,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-20T17:53:10.143Z'
- updated_at: '2021-11-20T17:53:10.143Z'
+ created_at: '2021-11-24T15:42:24.390Z'
+ updated_at: '2021-11-24T15:42:24.390Z'
state: open
included: false
display_amount: "$100.00"
@@ -530,8 +530,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-20T17:53:10.165Z'
- updated_at: '2021-11-20T17:53:10.165Z'
+ created_at: '2021-11-24T15:42:24.426Z'
+ updated_at: '2021-11-24T15:42:24.426Z'
state: open
included: false
display_amount: "$100.00"
@@ -604,8 +604,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-20T17:53:10.522Z'
- updated_at: '2021-11-20T17:53:10.522Z'
+ created_at: '2021-11-24T15:42:24.857Z'
+ updated_at: '2021-11-24T15:42:24.857Z'
state: open
included: false
display_amount: "$100.00"
@@ -687,8 +687,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-20T17:53:10.660Z'
- updated_at: '2021-11-20T17:53:10.665Z'
+ created_at: '2021-11-24T15:42:25.090Z'
+ updated_at: '2021-11-24T15:42:25.097Z'
state: open
included: false
display_amount: "$1.00"
@@ -766,8 +766,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-11-20T17:53:10.954Z'
- updated_at: '2021-11-20T17:53:10.967Z'
+ created_at: '2021-11-24T15:42:25.491Z'
+ updated_at: '2021-11-24T15:42:25.546Z'
state: open
included: false
display_amount: "$15.00"
@@ -907,8 +907,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-20T17:53:11.540Z'
- updated_at: '2021-11-20T17:53:11.540Z'
+ created_at: '2021-11-24T15:42:26.753Z'
+ updated_at: '2021-11-24T15:42:26.753Z'
relationships:
product:
data:
@@ -922,8 +922,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-20T17:53:11.625Z'
- updated_at: '2021-11-20T17:53:11.625Z'
+ created_at: '2021-11-24T15:42:26.894Z'
+ updated_at: '2021-11-24T15:42:26.894Z'
relationships:
product:
data:
@@ -984,8 +984,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-20T17:53:12.099Z'
- updated_at: '2021-11-20T17:53:12.099Z'
+ created_at: '2021-11-24T15:42:27.672Z'
+ updated_at: '2021-11-24T15:42:27.672Z'
relationships:
product:
data:
@@ -1052,8 +1052,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-20T17:53:12.272Z'
- updated_at: '2021-11-20T17:53:12.272Z'
+ created_at: '2021-11-24T15:42:27.973Z'
+ updated_at: '2021-11-24T15:42:27.973Z'
relationships:
product:
data:
@@ -1119,8 +1119,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-20T17:53:12.603Z'
- updated_at: '2021-11-20T17:53:12.603Z'
+ created_at: '2021-11-24T15:42:28.755Z'
+ updated_at: '2021-11-24T15:42:28.755Z'
relationships:
product:
data:
@@ -1264,34 +1264,34 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Debitis doloremque provident maiores autem.
+ title: Nisi earum aspernatur asperiores ipsam eligendi.
meta_title:
content:
meta_description:
visible: true
- slug: debitis-doloremque-provident-maiores-autem
+ slug: nisi-earum-aspernatur-asperiores-ipsam-eligendi
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-20T17:53:13.339Z'
- updated_at: '2021-11-20T17:53:13.339Z'
+ created_at: '2021-11-24T15:42:30.097Z'
+ updated_at: '2021-11-24T15:42:30.097Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Veritatis quas quod distinctio necessitatibus.
+ title: Cumque a mollitia quis esse laboriosam similique pariatur.
meta_title:
content:
meta_description:
visible: true
- slug: veritatis-quas-quod-distinctio-necessitatibus
+ slug: cumque-a-mollitia-quis-esse-laboriosam-similique-pariatur
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-20T17:53:13.343Z'
- updated_at: '2021-11-20T17:53:13.343Z'
+ created_at: '2021-11-24T15:42:30.103Z'
+ updated_at: '2021-11-24T15:42:30.103Z'
relationships:
cms_sections:
data: []
@@ -1345,17 +1345,18 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Animi mollitia nihil minima dicta facilis nesciunt.
+ title: Ipsa reprehenderit sapiente eius maiores consequatur
+ voluptatem hic tempore.
meta_title:
content:
meta_description:
visible: true
- slug: animi-mollitia-nihil-minima-dicta-facilis-nesciunt
+ slug: ipsa-reprehenderit-sapiente-eius-maiores-consequatur-voluptatem-hic-tempore
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-20T17:53:13.431Z'
- updated_at: '2021-11-20T17:53:13.431Z'
+ created_at: '2021-11-24T15:42:30.285Z'
+ updated_at: '2021-11-24T15:42:30.285Z'
relationships:
cms_sections:
data: []
@@ -1421,18 +1422,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Dolorum sapiente totam soluta recusandae delectus accusantium
- similique.
+ title: Deserunt doloremque numquam distinctio quibusdam.
meta_title:
content:
meta_description:
visible: true
- slug: dolorum-sapiente-totam-soluta-recusandae-delectus-accusantium-similique
+ slug: deserunt-doloremque-numquam-distinctio-quibusdam
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-20T17:53:13.488Z'
- updated_at: '2021-11-20T17:53:13.488Z'
+ created_at: '2021-11-24T15:42:30.387Z'
+ updated_at: '2021-11-24T15:42:30.387Z'
relationships:
cms_sections:
data: []
@@ -1496,12 +1496,12 @@ paths:
content:
meta_description:
visible: true
- slug: saepe-asperiores-adipisci-neque-expedita-minus-suscipit-tempore-itaque
+ slug: et-vitae-accusamus-laboriosam-adipisci-voluptates
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-20T17:53:13.561Z'
- updated_at: '2021-11-20T17:53:13.571Z'
+ created_at: '2021-11-24T15:42:30.524Z'
+ updated_at: '2021-11-24T15:42:30.540Z'
relationships:
cms_sections:
data: []
@@ -1630,8 +1630,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Accusamus fuga est suscipit reiciendis repellat libero
- incidunt numquam.
+ name: Aliquam qui quod in inventore natus.
content: {}
settings:
gutters: No Gutters
@@ -1640,8 +1639,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-20T17:53:13.777Z'
- updated_at: '2021-11-20T17:53:13.777Z'
+ created_at: '2021-11-24T15:42:30.898Z'
+ updated_at: '2021-11-24T15:42:30.898Z'
relationships:
cms_page:
data:
@@ -1652,8 +1651,7 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Dolorum tempora illum nulla temporibus natus dolore
- ut laudantium.
+ name: Architecto veritatis eos suscipit aliquam saepe.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1665,8 +1663,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-20T17:53:13.781Z'
- updated_at: '2021-11-20T17:53:13.781Z'
+ created_at: '2021-11-24T15:42:30.903Z'
+ updated_at: '2021-11-24T15:42:30.903Z'
relationships:
cms_page:
data:
@@ -1677,8 +1675,7 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Occaecati quas nisi omnis illum dolores maxime quod
- distinctio.
+ name: Tenetur libero qui eius reiciendis praesentium.
content: {}
settings:
gutters: No Gutters
@@ -1687,8 +1684,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-20T17:53:13.789Z'
- updated_at: '2021-11-20T17:53:13.789Z'
+ created_at: '2021-11-24T15:42:30.917Z'
+ updated_at: '2021-11-24T15:42:30.917Z'
relationships:
cms_page:
data:
@@ -1699,7 +1696,8 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Modi labore quas facere fugiat repudiandae ipsam officia.
+ name: Impedit recusandae necessitatibus ex dolore totam porro
+ earum in.
content: {}
settings:
gutters: No Gutters
@@ -1708,8 +1706,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-20T17:53:13.796Z'
- updated_at: '2021-11-20T17:53:13.796Z'
+ created_at: '2021-11-24T15:42:30.934Z'
+ updated_at: '2021-11-24T15:42:30.934Z'
relationships:
cms_page:
data:
@@ -1722,7 +1720,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Quo cumque fugit minus velit distinctio.
+ name: Adipisci repellendus et sequi quas laudantium ullam.
content: {}
settings:
gutters: No Gutters
@@ -1731,8 +1729,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-20T17:53:13.803Z'
- updated_at: '2021-11-20T17:53:13.803Z'
+ created_at: '2021-11-24T15:42:30.946Z'
+ updated_at: '2021-11-24T15:42:30.946Z'
relationships:
cms_page:
data:
@@ -1792,7 +1790,7 @@ paths:
id: '13'
type: cms_section
attributes:
- name: Nesciunt id tempore quis in.
+ name: Eius at minima id incidunt.
content: {}
settings:
gutters: No Gutters
@@ -1801,8 +1799,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-11-20T17:53:13.969Z'
- updated_at: '2021-11-20T17:53:13.969Z'
+ created_at: '2021-11-24T15:42:31.299Z'
+ updated_at: '2021-11-24T15:42:31.299Z'
relationships:
cms_page:
data:
@@ -1877,7 +1875,7 @@ paths:
id: '19'
type: cms_section
attributes:
- name: Atque minus rerum animi cupiditate eligendi tenetur.
+ name: Quasi tenetur expedita velit voluptatum impedit.
content: {}
settings:
gutters: No Gutters
@@ -1886,8 +1884,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-20T17:53:14.116Z'
- updated_at: '2021-11-20T17:53:14.116Z'
+ created_at: '2021-11-24T15:42:31.595Z'
+ updated_at: '2021-11-24T15:42:31.595Z'
relationships:
cms_page:
data:
@@ -1961,8 +1959,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-20T17:53:14.337Z'
- updated_at: '2021-11-20T17:53:14.348Z'
+ created_at: '2021-11-24T15:42:31.984Z'
+ updated_at: '2021-11-24T15:42:32.002Z'
relationships:
cms_page:
data:
@@ -2082,9 +2080,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-20T17:53:14.817Z'
+ updated_at: '2021-11-24T15:42:32.873Z'
zipcode_required: true
- created_at: '2021-11-20T17:53:14.817Z'
+ created_at: '2021-11-24T15:42:32.873Z'
relationships:
states:
data: []
@@ -2097,9 +2095,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-20T17:53:14.822Z'
+ updated_at: '2021-11-24T15:42:32.881Z'
zipcode_required: true
- created_at: '2021-11-20T17:53:14.822Z'
+ created_at: '2021-11-24T15:42:32.881Z'
relationships:
states:
data: []
@@ -2112,9 +2110,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-20T17:53:14.824Z'
+ updated_at: '2021-11-24T15:42:32.884Z'
zipcode_required: true
- created_at: '2021-11-20T17:53:14.824Z'
+ created_at: '2021-11-24T15:42:32.884Z'
relationships:
states:
data: []
@@ -2173,9 +2171,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-20T17:53:14.888Z'
+ updated_at: '2021-11-24T15:42:32.994Z'
zipcode_required: true
- created_at: '2021-11-20T17:53:14.888Z'
+ created_at: '2021-11-24T15:42:32.994Z'
relationships:
states:
data: []
@@ -2233,7 +2231,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: FxpqpKAoJjsNnb4Fbr2FxDBM
+ token: ypHggNKsHQihoAvbh9JkY8EX
access_counter: 0
relationships:
digital:
@@ -2247,7 +2245,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: AjdSjUaHk1hv2LKyQ6PHEZGS
+ token: nkxFNmvj893y2Y6LAX9xNXGu
access_counter: 0
relationships:
digital:
@@ -2301,7 +2299,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: dCunxKsJon7AuvtZAjp2wwgF
+ token: gHREWWgKT7kQ7DTeDBUphdYb
access_counter: 0
relationships:
digital:
@@ -2364,7 +2362,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: KumHyagg3jVxtKJ8KLQxHVXv
+ token: 5SMns3nJpd2BiVywoPptcE3Q
access_counter: 0
relationships:
digital:
@@ -2423,7 +2421,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: BxWTZh7qYSjCWUYfMCnx44gS
+ token: AYEdtWusFHRDuHLJgwKcu4D6
access_counter: 0
relationships:
digital:
@@ -2538,7 +2536,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: mJt3XFSazKafZBuEiVnXdKWP
+ token: ZpYbYtb6VKpSacepJ3tKdoF7
access_counter: 0
relationships:
digital:
@@ -2610,7 +2608,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--00cf0618709a74ee0770d61bb35b6447c1d20f3d/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--139889339da605b73416a7b84e0e5978f974c889/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2622,7 +2620,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--edfeb03501feb2a4cdd61d9386d95cfe54300cc3/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--41f6331d4c5177a4f37da7d04fe69467cd773301/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2634,7 +2632,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--91f94b946efda64a6ad39c2030b33a8ca6f082c4/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f7d6d648dc4bb29032d46648c28547974a4c2754/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2693,7 +2691,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5fdded0a4dbeeb26d3f49e6765e6c01cd73b2893/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBLUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--52590f82a73468b5fe5a4ade78c290e564de329b/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2758,7 +2756,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c110df7f2b6e238b4175bc288853b0712cb3fae1/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--39595a1e731b502858309ee8c2772fc796f406cc/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2822,7 +2820,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2b44cc4636360e4ca9d843783196df466e0b298f/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--da0a36cb1f998ff6c37283f117552f561f570413/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2955,8 +2953,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-20T17:53:23.360Z'
- updated_at: '2021-11-20T17:53:23.368Z'
+ created_at: '2021-11-24T15:42:49.257Z'
+ updated_at: '2021-11-24T15:42:49.270Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3004,8 +3002,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-20T17:53:23.416Z'
- updated_at: '2021-11-20T17:53:23.421Z'
+ created_at: '2021-11-24T15:42:49.352Z'
+ updated_at: '2021-11-24T15:42:49.362Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3100,8 +3098,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-20T17:53:23.668Z'
- updated_at: '2021-11-20T17:53:23.715Z'
+ created_at: '2021-11-24T15:42:49.963Z'
+ updated_at: '2021-11-24T15:42:50.028Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3205,8 +3203,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-20T17:53:23.882Z'
- updated_at: '2021-11-20T17:53:23.889Z'
+ created_at: '2021-11-24T15:42:50.377Z'
+ updated_at: '2021-11-24T15:42:50.389Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3306,8 +3304,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-20T17:53:24.173Z'
- updated_at: '2021-11-20T17:53:24.215Z'
+ created_at: '2021-11-24T15:42:50.921Z'
+ updated_at: '2021-11-24T15:42:50.986Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3359,10 +3357,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #127 - 5094" is not available.'
+ error: 'Quantity selected of "Product #127 - 7152" is not available.'
errors:
quantity:
- - 'selected of "Product #127 - 5094" is not available.'
+ - 'selected of "Product #127 - 7152" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -3482,8 +3480,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-20T17:53:24.925Z'
- updated_at: '2021-11-20T17:53:24.929Z'
+ created_at: '2021-11-24T15:42:52.080Z'
+ updated_at: '2021-11-24T15:42:52.087Z'
link:
is_container: false
is_root: false
@@ -3519,8 +3517,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-20T17:53:24.984Z'
- updated_at: '2021-11-20T17:53:24.989Z'
+ created_at: '2021-11-24T15:42:52.174Z'
+ updated_at: '2021-11-24T15:42:52.181Z'
link:
is_container: false
is_root: false
@@ -3556,8 +3554,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-20T17:53:25.043Z'
- updated_at: '2021-11-20T17:53:25.047Z'
+ created_at: '2021-11-24T15:42:52.267Z'
+ updated_at: '2021-11-24T15:42:52.273Z'
link:
is_container: false
is_root: false
@@ -3593,8 +3591,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-20T17:53:25.100Z'
- updated_at: '2021-11-20T17:53:25.104Z'
+ created_at: '2021-11-24T15:42:52.379Z'
+ updated_at: '2021-11-24T15:42:52.386Z'
link:
is_container: false
is_root: false
@@ -3630,8 +3628,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-20T17:53:25.157Z'
- updated_at: '2021-11-20T17:53:25.162Z'
+ created_at: '2021-11-24T15:42:52.477Z'
+ updated_at: '2021-11-24T15:42:52.483Z'
link:
is_container: false
is_root: false
@@ -3667,8 +3665,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-20T17:53:25.216Z'
- updated_at: '2021-11-20T17:53:25.221Z'
+ created_at: '2021-11-24T15:42:52.571Z'
+ updated_at: '2021-11-24T15:42:52.577Z'
link:
is_container: false
is_root: false
@@ -3704,8 +3702,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-20T17:53:25.274Z'
- updated_at: '2021-11-20T17:53:25.278Z'
+ created_at: '2021-11-24T15:42:52.698Z'
+ updated_at: '2021-11-24T15:42:52.705Z'
link:
is_container: false
is_root: false
@@ -3731,7 +3729,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Id harum delectus aliquam sunt.
+ name: Voluptate quaerat delectus officiis quos similique unde.
subtitle:
destination:
new_window: false
@@ -3741,8 +3739,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-20T17:53:24.866Z'
- updated_at: '2021-11-20T17:53:25.289Z'
+ created_at: '2021-11-24T15:42:51.992Z'
+ updated_at: '2021-11-24T15:42:52.720Z'
link:
is_container: true
is_root: true
@@ -3835,8 +3833,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-20T17:53:26.089Z'
- updated_at: '2021-11-20T17:53:26.092Z'
+ created_at: '2021-11-24T15:42:53.878Z'
+ updated_at: '2021-11-24T15:42:53.884Z'
link:
is_container: false
is_root: false
@@ -3926,8 +3924,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-20T17:53:26.564Z'
- updated_at: '2021-11-20T17:53:26.569Z'
+ created_at: '2021-11-24T15:42:54.664Z'
+ updated_at: '2021-11-24T15:42:54.671Z'
link:
is_container: false
is_root: false
@@ -4015,8 +4013,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-20T17:53:27.315Z'
- updated_at: '2021-11-20T17:53:27.341Z'
+ created_at: '2021-11-24T15:42:55.952Z'
+ updated_at: '2021-11-24T15:42:55.991Z'
link:
is_container: false
is_root: false
@@ -4153,8 +4151,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-20T17:53:29.147Z'
- updated_at: '2021-11-20T17:53:29.174Z'
+ created_at: '2021-11-24T15:42:58.960Z'
+ updated_at: '2021-11-24T15:42:59.003Z'
link:
is_container: false
is_root: false
@@ -4258,8 +4256,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-20T17:53:29.682Z'
- updated_at: '2021-11-20T17:53:29.804Z'
+ created_at: '2021-11-24T15:42:59.899Z'
+ updated_at: '2021-11-24T15:43:00.107Z'
relationships:
menu_items:
data:
@@ -4275,8 +4273,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-20T17:53:29.692Z'
- updated_at: '2021-11-20T17:53:29.916Z'
+ created_at: '2021-11-24T15:42:59.914Z'
+ updated_at: '2021-11-24T15:43:00.365Z'
relationships:
menu_items:
data:
@@ -4339,8 +4337,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-20T17:53:30.259Z'
- updated_at: '2021-11-20T17:53:30.265Z'
+ created_at: '2021-11-24T15:43:00.975Z'
+ updated_at: '2021-11-24T15:43:00.984Z'
relationships:
menu_items:
data:
@@ -4408,8 +4406,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-20T17:53:30.316Z'
- updated_at: '2021-11-20T17:53:30.323Z'
+ created_at: '2021-11-24T15:43:01.079Z'
+ updated_at: '2021-11-24T15:43:01.089Z'
relationships:
menu_items:
data:
@@ -4473,8 +4471,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-20T17:53:30.414Z'
- updated_at: '2021-11-20T17:53:30.421Z'
+ created_at: '2021-11-24T15:43:01.247Z'
+ updated_at: '2021-11-24T15:43:01.258Z'
relationships:
menu_items:
data:
@@ -4609,8 +4607,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-20T17:53:30.632Z'
- updated_at: '2021-11-20T17:53:30.632Z'
+ created_at: '2021-11-24T15:43:01.845Z'
+ updated_at: '2021-11-24T15:43:01.845Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4623,8 +4621,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-20T17:53:30.633Z'
- updated_at: '2021-11-20T17:53:30.633Z'
+ created_at: '2021-11-24T15:43:01.848Z'
+ updated_at: '2021-11-24T15:43:01.848Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4677,8 +4675,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-20T17:53:30.703Z'
- updated_at: '2021-11-20T17:53:30.703Z'
+ created_at: '2021-11-24T15:43:01.957Z'
+ updated_at: '2021-11-24T15:43:01.957Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4737,8 +4735,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-20T17:53:30.750Z'
- updated_at: '2021-11-20T17:53:30.750Z'
+ created_at: '2021-11-24T15:43:02.036Z'
+ updated_at: '2021-11-24T15:43:02.036Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4796,8 +4794,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-20T17:53:30.825Z'
- updated_at: '2021-11-20T17:53:30.832Z'
+ created_at: '2021-11-24T15:43:02.167Z'
+ updated_at: '2021-11-24T15:43:02.179Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4935,8 +4933,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-20T17:53:31.000Z'
- updated_at: '2021-11-20T17:53:31.000Z'
+ created_at: '2021-11-24T15:43:02.442Z'
+ updated_at: '2021-11-24T15:43:02.442Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -4950,8 +4948,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-20T17:53:31.006Z'
- updated_at: '2021-11-20T17:53:31.006Z'
+ created_at: '2021-11-24T15:43:02.451Z'
+ updated_at: '2021-11-24T15:43:02.451Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5012,8 +5010,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-20T17:53:31.078Z'
- updated_at: '2021-11-20T17:53:31.078Z'
+ created_at: '2021-11-24T15:43:02.575Z'
+ updated_at: '2021-11-24T15:43:02.575Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5078,8 +5076,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-20T17:53:31.132Z'
- updated_at: '2021-11-20T17:53:31.132Z'
+ created_at: '2021-11-24T15:43:02.661Z'
+ updated_at: '2021-11-24T15:43:02.661Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5145,8 +5143,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-11-20T17:53:31.211Z'
- updated_at: '2021-11-20T17:53:31.220Z'
+ created_at: '2021-11-24T15:43:02.818Z'
+ updated_at: '2021-11-24T15:43:02.839Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5276,7 +5274,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R592691915
+ number: R551052114
item_total: '0.0'
total: '0.0'
state: cart
@@ -5285,10 +5283,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:31.414Z'
- updated_at: '2021-11-20T17:53:31.414Z'
+ created_at: '2021-11-24T15:43:03.156Z'
+ updated_at: '2021-11-24T15:43:03.156Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5362,7 +5360,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R027085600
+ number: R114628306
item_total: '0.0'
total: '0.0'
state: cart
@@ -5371,10 +5369,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:31.425Z'
- updated_at: '2021-11-20T17:53:31.425Z'
+ created_at: '2021-11-24T15:43:03.174Z'
+ updated_at: '2021-11-24T15:43:03.174Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5495,7 +5493,7 @@ paths:
id: '44'
type: order
attributes:
- number: R138995331
+ number: R613872216
item_total: '0.0'
total: '0.0'
state: cart
@@ -5506,8 +5504,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-11-20T17:53:31.768Z'
- updated_at: '2021-11-20T17:53:31.786Z'
+ created_at: '2021-11-24T15:43:03.817Z'
+ updated_at: '2021-11-24T15:43:03.842Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5623,7 +5621,7 @@ paths:
id: '45'
type: order
attributes:
- number: R901738069
+ number: R507120421
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5632,10 +5630,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:31.832Z'
- updated_at: '2021-11-20T17:53:32.006Z'
+ created_at: '2021-11-24T15:43:03.928Z'
+ updated_at: '2021-11-24T15:43:04.215Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5767,7 +5765,7 @@ paths:
id: '47'
type: order
attributes:
- number: R013186351
+ number: R544858657
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5778,8 +5776,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:32.221Z'
- updated_at: '2021-11-20T17:53:32.318Z'
+ created_at: '2021-11-24T15:43:04.597Z'
+ updated_at: '2021-11-24T15:43:04.762Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5967,7 +5965,7 @@ paths:
id: '52'
type: order
attributes:
- number: R787216872
+ number: R961691621
item_total: '10.0'
total: '110.0'
state: payment
@@ -5976,10 +5974,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:33.027Z'
- updated_at: '2021-11-20T17:53:33.175Z'
+ created_at: '2021-11-24T15:43:05.901Z'
+ updated_at: '2021-11-24T15:43:06.131Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6114,7 +6112,7 @@ paths:
id: '54'
type: order
attributes:
- number: R748045494
+ number: R695940966
item_total: '10.0'
total: '110.0'
state: payment
@@ -6123,10 +6121,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:33.394Z'
- updated_at: '2021-11-20T17:53:33.537Z'
+ created_at: '2021-11-24T15:43:06.484Z'
+ updated_at: '2021-11-24T15:43:06.724Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6261,19 +6259,19 @@ paths:
id: '56'
type: order
attributes:
- number: R752975406
+ number: R938950850
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-20T17:53:33.975Z'
+ completed_at: '2021-11-24T15:43:07.604Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-20T17:53:33.731Z'
- updated_at: '2021-11-20T17:53:33.975Z'
+ created_at: '2021-11-24T15:43:07.218Z'
+ updated_at: '2021-11-24T15:43:07.604Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6419,7 +6417,7 @@ paths:
id: '59'
type: order
attributes:
- number: R433543027
+ number: R705453662
item_total: '0.0'
total: '0.0'
state: cart
@@ -6428,10 +6426,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:34.315Z'
- updated_at: '2021-11-20T17:53:34.432Z'
+ created_at: '2021-11-24T15:43:08.212Z'
+ updated_at: '2021-11-24T15:43:08.384Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6561,7 +6559,7 @@ paths:
id: '61'
type: order
attributes:
- number: R703853379
+ number: R108043857
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6570,10 +6568,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-20T17:53:34.626Z'
- updated_at: '2021-11-20T17:53:34.711Z'
+ created_at: '2021-11-24T15:43:08.801Z'
+ updated_at: '2021-11-24T15:43:08.958Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6876,8 +6874,8 @@ paths:
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-20T17:53:36.556Z'
- updated_at: '2021-11-20T17:53:36.558Z'
+ created_at: '2021-11-24T15:43:12.190Z'
+ updated_at: '2021-11-24T15:43:12.193Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6897,8 +6895,8 @@ paths:
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-20T17:53:36.565Z'
- updated_at: '2021-11-20T17:53:36.567Z'
+ created_at: '2021-11-24T15:43:12.204Z'
+ updated_at: '2021-11-24T15:43:12.207Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6918,8 +6916,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-20T17:53:36.571Z'
- updated_at: '2021-11-20T17:53:36.573Z'
+ created_at: '2021-11-24T15:43:12.214Z'
+ updated_at: '2021-11-24T15:43:12.217Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6939,8 +6937,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-20T17:53:36.577Z'
- updated_at: '2021-11-20T17:53:36.579Z'
+ created_at: '2021-11-24T15:43:12.223Z'
+ updated_at: '2021-11-24T15:43:12.226Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6963,8 +6961,8 @@ paths:
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-20T17:53:36.583Z'
- updated_at: '2021-11-20T17:53:36.590Z'
+ created_at: '2021-11-24T15:43:12.233Z'
+ updated_at: '2021-11-24T15:43:12.237Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7034,8 +7032,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-20T17:53:36.724Z'
- updated_at: '2021-11-20T17:53:36.728Z'
+ created_at: '2021-11-24T15:43:12.472Z'
+ updated_at: '2021-11-24T15:43:12.485Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7111,8 +7109,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-20T17:53:36.831Z'
- updated_at: '2021-11-20T17:53:36.834Z'
+ created_at: '2021-11-24T15:43:12.698Z'
+ updated_at: '2021-11-24T15:43:12.701Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7187,8 +7185,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-20T17:53:36.987Z'
- updated_at: '2021-11-20T17:53:37.000Z'
+ created_at: '2021-11-24T15:43:12.958Z'
+ updated_at: '2021-11-24T15:43:12.979Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7336,9 +7334,9 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-20T17:53:37.352Z'
- updated_at: '2021-11-20T17:53:37.372Z'
- number: PRASJ9ID
+ created_at: '2021-11-24T15:43:13.569Z'
+ updated_at: '2021-11-24T15:43:13.601Z'
+ number: P6DC914Y
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7375,9 +7373,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-20T17:53:37.369Z'
- updated_at: '2021-11-20T17:53:37.369Z'
- number: P4G2HUP6
+ created_at: '2021-11-24T15:43:13.596Z'
+ updated_at: '2021-11-24T15:43:13.596Z'
+ number: PXPPMY4Q
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7465,9 +7463,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-20T17:53:37.559Z'
- updated_at: '2021-11-20T17:53:37.559Z'
- number: PTT4JUOQ
+ created_at: '2021-11-24T15:43:13.929Z'
+ updated_at: '2021-11-24T15:43:13.929Z'
+ number: PFHOBYFL
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7601,8 +7599,8 @@ paths:
position:
type:
deleted_at:
- created_at: '2021-11-20T17:53:37.830Z'
- updated_at: '2021-11-20T17:53:37.830Z'
+ created_at: '2021-11-24T15:43:14.419Z'
+ updated_at: '2021-11-24T15:43:14.419Z'
relationships:
promotion:
data:
@@ -7614,8 +7612,8 @@ paths:
position:
type:
deleted_at:
- created_at: '2021-11-20T17:53:37.830Z'
- updated_at: '2021-11-20T17:53:37.830Z'
+ created_at: '2021-11-24T15:43:14.420Z'
+ updated_at: '2021-11-24T15:43:14.420Z'
relationships:
promotion:
data:
@@ -7674,8 +7672,8 @@ paths:
position:
type:
deleted_at:
- created_at: '2021-11-20T17:53:37.919Z'
- updated_at: '2021-11-20T17:53:37.919Z'
+ created_at: '2021-11-24T15:43:14.578Z'
+ updated_at: '2021-11-24T15:43:14.578Z'
relationships:
promotion:
data:
@@ -7725,8 +7723,8 @@ paths:
position:
type:
deleted_at:
- created_at: '2021-11-20T17:53:37.950Z'
- updated_at: '2021-11-20T17:53:37.950Z'
+ created_at: '2021-11-24T15:43:14.634Z'
+ updated_at: '2021-11-24T15:43:14.634Z'
relationships:
promotion:
data:
@@ -7790,8 +7788,8 @@ paths:
position:
type: Spree::Promotion::Actions::CreateAdjustment
deleted_at:
- created_at: '2021-11-20T17:53:38.044Z'
- updated_at: '2021-11-20T17:53:38.051Z'
+ created_at: '2021-11-24T15:43:14.798Z'
+ updated_at: '2021-11-24T15:43:14.807Z'
relationships:
promotion:
data:
@@ -7913,8 +7911,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-20T17:53:38.215Z'
- updated_at: '2021-11-20T17:53:38.215Z'
+ created_at: '2021-11-24T15:43:15.078Z'
+ updated_at: '2021-11-24T15:43:15.078Z'
code: POP123
relationships:
promotions:
@@ -7923,8 +7921,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-20T17:53:38.217Z'
- updated_at: '2021-11-20T17:53:38.217Z'
+ created_at: '2021-11-24T15:43:15.080Z'
+ updated_at: '2021-11-24T15:43:15.080Z'
code: POP123
relationships:
promotions:
@@ -7980,8 +7978,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-20T17:53:38.282Z'
- updated_at: '2021-11-20T17:53:38.282Z'
+ created_at: '2021-11-24T15:43:15.186Z'
+ updated_at: '2021-11-24T15:43:15.186Z'
code: 2021-BFM
relationships:
promotions:
@@ -8041,8 +8039,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-20T17:53:38.327Z'
- updated_at: '2021-11-20T17:53:38.327Z'
+ created_at: '2021-11-24T15:43:15.259Z'
+ updated_at: '2021-11-24T15:43:15.259Z'
code: MJO
relationships:
promotions:
@@ -8103,8 +8101,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-20T17:53:38.400Z'
- updated_at: '2021-11-20T17:53:38.407Z'
+ created_at: '2021-11-24T15:43:15.390Z'
+ updated_at: '2021-11-24T15:43:15.400Z'
code: 2021-Promos
relationships:
promotions:
@@ -8232,8 +8230,8 @@ paths:
type: promotion_rule
attributes:
type:
- created_at: '2021-11-20T17:53:38.572Z'
- updated_at: '2021-11-20T17:53:38.572Z'
+ created_at: '2021-11-24T15:43:15.839Z'
+ updated_at: '2021-11-24T15:43:15.839Z'
code:
preferences: {}
relationships:
@@ -8245,8 +8243,8 @@ paths:
type: promotion_rule
attributes:
type:
- created_at: '2021-11-20T17:53:38.574Z'
- updated_at: '2021-11-20T17:53:38.574Z'
+ created_at: '2021-11-24T15:43:15.842Z'
+ updated_at: '2021-11-24T15:43:15.842Z'
code:
preferences: {}
relationships:
@@ -8305,8 +8303,8 @@ paths:
type: promotion_rule
attributes:
type:
- created_at: '2021-11-20T17:53:38.663Z'
- updated_at: '2021-11-20T17:53:38.663Z'
+ created_at: '2021-11-24T15:43:15.991Z'
+ updated_at: '2021-11-24T15:43:15.991Z'
code:
preferences: {}
relationships:
@@ -8356,8 +8354,8 @@ paths:
type: promotion_rule
attributes:
type:
- created_at: '2021-11-20T17:53:38.694Z'
- updated_at: '2021-11-20T17:53:38.694Z'
+ created_at: '2021-11-24T15:43:16.041Z'
+ updated_at: '2021-11-24T15:43:16.041Z'
code:
preferences: {}
relationships:
@@ -8421,8 +8419,8 @@ paths:
type: promotion_rule
attributes:
type: Spree::Promotion::Rules::Country
- created_at: '2021-11-20T17:53:38.874Z'
- updated_at: '2021-11-20T17:53:38.882Z'
+ created_at: '2021-11-24T15:43:16.203Z'
+ updated_at: '2021-11-24T15:43:16.215Z'
code:
preferences: {}
relationships:
@@ -8555,8 +8553,8 @@ paths:
code:
advertise: false
path:
- created_at: '2021-11-20T17:53:39.056Z'
- updated_at: '2021-11-20T17:53:39.057Z'
+ created_at: '2021-11-24T15:43:16.539Z'
+ updated_at: '2021-11-24T15:43:16.543Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8583,8 +8581,8 @@ paths:
code:
advertise: false
path:
- created_at: '2021-11-20T17:53:39.067Z'
- updated_at: '2021-11-20T17:53:39.069Z'
+ created_at: '2021-11-24T15:43:16.568Z'
+ updated_at: '2021-11-24T15:43:16.570Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8615,8 +8613,8 @@ paths:
code:
advertise: false
path:
- created_at: '2021-11-20T17:53:39.084Z'
- updated_at: '2021-11-20T17:53:39.086Z'
+ created_at: '2021-11-24T15:43:16.602Z'
+ updated_at: '2021-11-24T15:43:16.605Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8647,8 +8645,8 @@ paths:
code:
advertise: false
path:
- created_at: '2021-11-20T17:53:39.096Z'
- updated_at: '2021-11-20T17:53:39.098Z'
+ created_at: '2021-11-24T15:43:16.625Z'
+ updated_at: '2021-11-24T15:43:16.628Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8719,8 +8717,8 @@ paths:
type: promotion
attributes:
description: First 1000 Customers Save 20%
- expires_at: '2021-11-24T17:53:39.288Z'
- starts_at: '2021-11-20T17:53:39.288Z'
+ expires_at: '2021-11-28T15:43:16.979Z'
+ starts_at: '2021-11-24T15:43:16.979Z'
name: Black Friday 20% Off
type: Spree::Promotion
usage_limit: 1000
@@ -8728,8 +8726,8 @@ paths:
code: BLK-20
advertise: true
path: "/black-fri/today"
- created_at: '2021-11-20T17:53:39.305Z'
- updated_at: '2021-11-20T17:53:39.308Z'
+ created_at: '2021-11-24T15:43:17.005Z'
+ updated_at: '2021-11-24T15:43:17.011Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8813,8 +8811,8 @@ paths:
code:
advertise: false
path:
- created_at: '2021-11-20T17:53:39.489Z'
- updated_at: '2021-11-20T17:53:39.491Z'
+ created_at: '2021-11-24T15:43:17.344Z'
+ updated_at: '2021-11-24T15:43:17.348Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -8899,8 +8897,8 @@ paths:
code: RAND-10
advertise: false
path:
- created_at: '2021-11-20T17:53:39.772Z'
- updated_at: '2021-11-20T17:53:39.791Z'
+ created_at: '2021-11-24T15:43:17.838Z'
+ updated_at: '2021-11-24T15:43:17.870Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -9043,14 +9041,14 @@ paths:
type: role
attributes:
name: 'Role #1'
- created_at: '2021-11-20T17:53:40.379Z'
- updated_at: '2021-11-20T17:53:40.379Z'
+ created_at: '2021-11-24T15:43:19.079Z'
+ updated_at: '2021-11-24T15:43:19.079Z'
- id: '2'
type: role
attributes:
name: 'Role #2'
- created_at: '2021-11-20T17:53:40.381Z'
- updated_at: '2021-11-20T17:53:40.381Z'
+ created_at: '2021-11-24T15:43:19.081Z'
+ updated_at: '2021-11-24T15:43:19.081Z'
meta:
count: 2
total_count: 2
@@ -9095,8 +9093,8 @@ paths:
type: role
attributes:
name: 'Role #5'
- created_at: '2021-11-20T17:53:40.448Z'
- updated_at: '2021-11-20T17:53:40.448Z'
+ created_at: '2021-11-24T15:43:19.187Z'
+ updated_at: '2021-11-24T15:43:19.187Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9145,8 +9143,8 @@ paths:
type: role
attributes:
name: 'Role #6'
- created_at: '2021-11-20T17:53:40.492Z'
- updated_at: '2021-11-20T17:53:40.492Z'
+ created_at: '2021-11-24T15:43:19.278Z'
+ updated_at: '2021-11-24T15:43:19.278Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -9196,8 +9194,8 @@ paths:
type: role
attributes:
name: administrator
- created_at: '2021-11-20T17:53:40.643Z'
- updated_at: '2021-11-20T17:53:40.650Z'
+ created_at: '2021-11-24T15:43:19.405Z'
+ updated_at: '2021-11-24T15:43:19.415Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9321,12 +9319,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H79977841140
+ number: H60748640473
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:40.822Z'
- updated_at: '2021-11-20T17:53:40.825Z'
+ created_at: '2021-11-24T15:43:19.721Z'
+ updated_at: '2021-11-24T15:43:19.727Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9371,12 +9369,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H69150925990
+ number: H63681298587
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:40.855Z'
- updated_at: '2021-11-20T17:53:40.858Z'
+ created_at: '2021-11-24T15:43:19.774Z'
+ updated_at: '2021-11-24T15:43:19.779Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9468,12 +9466,12 @@ paths:
type: shipment
attributes:
tracking:
- number: H49327775114
+ number: H29651117604
cost: '0.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:41.128Z'
- updated_at: '2021-11-20T17:53:41.146Z'
+ created_at: '2021-11-24T15:43:20.376Z'
+ updated_at: '2021-11-24T15:43:20.397Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9565,12 +9563,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H22670401837
+ number: H43524633896
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:41.412Z'
- updated_at: '2021-11-20T17:53:41.431Z'
+ created_at: '2021-11-24T15:43:20.849Z'
+ updated_at: '2021-11-24T15:43:20.881Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9669,12 +9667,12 @@ paths:
type: shipment
attributes:
tracking: MY-TRACKING-NUMBER-1234
- number: H31214788105
+ number: H98361204739
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:41.890Z'
- updated_at: '2021-11-20T17:53:41.924Z'
+ created_at: '2021-11-24T15:43:21.798Z'
+ updated_at: '2021-11-24T15:43:21.844Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9830,12 +9828,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H51769050969
+ number: H28423981000
cost: '0.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:43.128Z'
- updated_at: '2021-11-20T17:53:43.224Z'
+ created_at: '2021-11-24T15:43:23.749Z'
+ updated_at: '2021-11-24T15:43:23.908Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9947,12 +9945,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H43130327267
+ number: H29873703290
cost: '0.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:44.336Z'
- updated_at: '2021-11-20T17:53:44.468Z'
+ created_at: '2021-11-24T15:43:25.946Z'
+ updated_at: '2021-11-24T15:43:26.181Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10059,12 +10057,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H04584486214
+ number: H46966720148
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-20T17:53:44.970Z'
- updated_at: '2021-11-20T17:53:45.001Z'
+ created_at: '2021-11-24T15:43:27.048Z'
+ updated_at: '2021-11-24T15:43:27.112Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10166,12 +10164,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H56689170178
+ number: H66339785538
cost: '100.0'
- shipped_at: '2021-11-20T17:53:45.475Z'
+ shipped_at: '2021-11-24T15:43:28.111Z'
state: shipped
- created_at: '2021-11-20T17:53:45.441Z'
- updated_at: '2021-11-20T17:53:45.475Z'
+ created_at: '2021-11-24T15:43:28.056Z'
+ updated_at: '2021-11-24T15:43:28.111Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10273,12 +10271,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H81215602216
+ number: H06534811764
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-20T17:53:45.910Z'
- updated_at: '2021-11-20T17:53:45.937Z'
+ created_at: '2021-11-24T15:43:28.860Z'
+ updated_at: '2021-11-24T15:43:28.905Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10380,12 +10378,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H74804518971
+ number: H98561808747
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-20T17:53:46.485Z'
- updated_at: '2021-11-20T17:53:46.516Z'
+ created_at: '2021-11-24T15:43:29.695Z'
+ updated_at: '2021-11-24T15:43:29.744Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10487,12 +10485,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H86778732934
+ number: H26677599515
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-20T17:53:47.140Z'
- updated_at: '2021-11-20T17:53:47.167Z'
+ created_at: '2021-11-24T15:43:30.995Z'
+ updated_at: '2021-11-24T15:43:31.046Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -10598,14 +10596,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #124'
- created_at: '2021-11-20T17:53:47.430Z'
- updated_at: '2021-11-20T17:53:47.430Z'
+ created_at: '2021-11-24T15:43:31.522Z'
+ updated_at: '2021-11-24T15:43:31.522Z'
- id: '125'
type: shipping_category
attributes:
name: 'ShippingCategory #125'
- created_at: '2021-11-20T17:53:47.431Z'
- updated_at: '2021-11-20T17:53:47.431Z'
+ created_at: '2021-11-24T15:43:31.524Z'
+ updated_at: '2021-11-24T15:43:31.524Z'
meta:
count: 2
total_count: 2
@@ -10650,8 +10648,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #128'
- created_at: '2021-11-20T17:53:47.497Z'
- updated_at: '2021-11-20T17:53:47.497Z'
+ created_at: '2021-11-24T15:43:31.633Z'
+ updated_at: '2021-11-24T15:43:31.633Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10700,8 +10698,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #129'
- created_at: '2021-11-20T17:53:47.541Z'
- updated_at: '2021-11-20T17:53:47.541Z'
+ created_at: '2021-11-24T15:43:31.715Z'
+ updated_at: '2021-11-24T15:43:31.715Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -10751,8 +10749,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-20T17:53:47.691Z'
- updated_at: '2021-11-20T17:53:47.698Z'
+ created_at: '2021-11-24T15:43:31.825Z'
+ updated_at: '2021-11-24T15:43:31.835Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10886,8 +10884,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-20T17:53:47.852Z'
- updated_at: '2021-11-20T17:53:47.852Z'
+ created_at: '2021-11-24T15:43:32.104Z'
+ updated_at: '2021-11-24T15:43:32.104Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -10912,8 +10910,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-20T17:53:47.861Z'
- updated_at: '2021-11-20T17:53:47.861Z'
+ created_at: '2021-11-24T15:43:32.121Z'
+ updated_at: '2021-11-24T15:43:32.121Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -10985,8 +10983,8 @@ paths:
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-20T17:53:47.954Z'
- updated_at: '2021-11-20T17:53:47.954Z'
+ created_at: '2021-11-24T15:43:32.281Z'
+ updated_at: '2021-11-24T15:43:32.281Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -11072,8 +11070,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-20T17:53:48.009Z'
- updated_at: '2021-11-20T17:53:48.009Z'
+ created_at: '2021-11-24T15:43:32.403Z'
+ updated_at: '2021-11-24T15:43:32.403Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -11150,8 +11148,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-20T17:53:48.105Z'
- updated_at: '2021-11-20T17:53:48.118Z'
+ created_at: '2021-11-24T15:43:32.728Z'
+ updated_at: '2021-11-24T15:43:32.750Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -11245,6 +11243,152 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
+ "/api/v2/platform/states":
+ get:
+ summary: Returns a list of States
+ tags:
+ - States
+ security:
+ - bearer_auth: []
+ operationId: states-list
+ description: Returns a list of States
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: country
+ schema:
+ type: string
+ - name: filter[country_id_eq]
+ in: query
+ description: ''
+ example: '4'
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '221'
+ type: state
+ attributes:
+ name: STATE_NAME_221
+ abbr: STATE_ABBR_221
+ updated_at: '2021-11-24T15:43:33.110Z'
+ created_at: '2021-11-24T15:43:33.110Z'
+ relationships:
+ country:
+ data:
+ id: '380'
+ type: country
+ - id: '222'
+ type: state
+ attributes:
+ name: STATE_NAME_222
+ abbr: STATE_ABBR_222
+ updated_at: '2021-11-24T15:43:33.112Z'
+ created_at: '2021-11-24T15:43:33.112Z'
+ relationships:
+ country:
+ data:
+ id: '380'
+ type: country
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/states?page=1&per_page=&include=&filter[country_id_eq]=
+ next: http://www.example.com/api/v2/platform/states?filter%5Bcountry_id_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/states?filter%5Bcountry_id_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/states?filter%5Bcountry_id_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/states?filter%5Bcountry_id_eq%5D=&include=&page=1&per_page=
+ schema:
+ "$ref": "#/components/schemas/resources_list"
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ schema:
+ "$ref": "#/components/schemas/error"
+ "/api/v2/platform/states/{id}":
+ get:
+ summary: Returns a State
+ tags:
+ - States
+ security:
+ - bearer_auth: []
+ operationId: show-state
+ description: Returns a State
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '225'
+ type: state
+ attributes:
+ name: STATE_NAME_225
+ abbr: STATE_ABBR_225
+ updated_at: '2021-11-24T15:43:33.204Z'
+ created_at: '2021-11-24T15:43:33.204Z'
+ relationships:
+ country:
+ data:
+ id: '382'
+ type: country
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ schema:
+ "$ref": "#/components/schemas/error"
+ '401':
+ description: Authentication Failed
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The access token is invalid
+ schema:
+ "$ref": "#/components/schemas/error"
"/api/v2/platform/stock_items":
get:
summary: Return a list of Stock Items
@@ -11285,8 +11429,8 @@ paths:
type: stock_item
attributes:
count_on_hand: 0
- created_at: '2021-11-20T17:53:48.353Z'
- updated_at: '2021-11-20T17:53:48.392Z'
+ created_at: '2021-11-24T15:43:33.386Z'
+ updated_at: '2021-11-24T15:43:33.451Z'
backorderable: false
deleted_at:
is_available: false
@@ -11303,8 +11447,8 @@ paths:
type: stock_item
attributes:
count_on_hand: 10
- created_at: '2021-11-20T17:53:48.401Z'
- updated_at: '2021-11-20T17:53:48.413Z'
+ created_at: '2021-11-24T15:43:33.468Z'
+ updated_at: '2021-11-24T15:43:33.484Z'
backorderable: true
deleted_at:
is_available: true
@@ -11368,8 +11512,8 @@ paths:
type: stock_item
attributes:
count_on_hand: 0
- created_at: '2021-11-20T17:53:48.666Z'
- updated_at: '2021-11-20T17:53:48.666Z'
+ created_at: '2021-11-24T15:43:33.886Z'
+ updated_at: '2021-11-24T15:43:33.886Z'
backorderable: false
deleted_at:
is_available: false
@@ -11439,8 +11583,8 @@ paths:
type: stock_item
attributes:
count_on_hand: 10
- created_at: '2021-11-20T17:53:48.765Z'
- updated_at: '2021-11-20T17:53:48.777Z'
+ created_at: '2021-11-24T15:43:34.040Z'
+ updated_at: '2021-11-24T15:43:34.058Z'
backorderable: true
deleted_at:
is_available: true
@@ -11509,8 +11653,8 @@ paths:
type: stock_item
attributes:
count_on_hand: 200
- created_at: '2021-11-20T17:53:48.970Z'
- updated_at: '2021-11-20T17:53:48.999Z'
+ created_at: '2021-11-24T15:43:34.530Z'
+ updated_at: '2021-11-24T15:43:34.577Z'
backorderable: true
deleted_at:
is_available: true
@@ -11639,9 +11783,9 @@ paths:
- id: '216'
type: stock_location
attributes:
- name: Tandra O'Kon
- created_at: '2021-11-20T17:53:49.504Z'
- updated_at: '2021-11-20T17:53:49.504Z'
+ name: Arica Powlowski
+ created_at: '2021-11-24T15:43:35.257Z'
+ updated_at: '2021-11-24T15:43:35.257Z'
default: false
address1: 1600 Pennsylvania Ave NW
address2:
@@ -11656,14 +11800,14 @@ paths:
relationships:
country:
data:
- id: '394'
+ id: '399'
type: country
- id: '217'
type: stock_location
attributes:
- name: Genaro Gerlach
- created_at: '2021-11-20T17:53:49.507Z'
- updated_at: '2021-11-20T17:53:49.507Z'
+ name: Ja Durgan
+ created_at: '2021-11-24T15:43:35.263Z'
+ updated_at: '2021-11-24T15:43:35.263Z'
default: false
address1: 1600 Pennsylvania Ave NW
address2:
@@ -11678,7 +11822,7 @@ paths:
relationships:
country:
data:
- id: '394'
+ id: '399'
type: country
meta:
count: 2
@@ -11730,9 +11874,9 @@ paths:
id: '220'
type: stock_location
attributes:
- name: Naomi Mraz
- created_at: '2021-11-20T17:53:49.580Z'
- updated_at: '2021-11-20T17:53:49.580Z'
+ name: Florrie Gerlach
+ created_at: '2021-11-24T15:43:35.383Z'
+ updated_at: '2021-11-24T15:43:35.383Z'
default: false
address1: 1600 Pennsylvania Ave NW
address2:
@@ -11747,7 +11891,7 @@ paths:
relationships:
country:
data:
- id: '396'
+ id: '401'
type: country
schema:
"$ref": "#/components/schemas/resource"
@@ -11803,9 +11947,9 @@ paths:
id: '221'
type: stock_location
attributes:
- name: Shery Lindgren
- created_at: '2021-11-20T17:53:49.627Z'
- updated_at: '2021-11-20T17:53:49.627Z'
+ name: Christine Orn
+ created_at: '2021-11-24T15:43:35.462Z'
+ updated_at: '2021-11-24T15:43:35.462Z'
default: false
address1: 1600 Pennsylvania Ave NW
address2:
@@ -11820,7 +11964,7 @@ paths:
relationships:
country:
data:
- id: '398'
+ id: '403'
type: country
schema:
"$ref": "#/components/schemas/resource"
@@ -11878,8 +12022,8 @@ paths:
type: stock_location
attributes:
name: Warehouse 3
- created_at: '2021-11-20T17:53:49.706Z'
- updated_at: '2021-11-20T17:53:49.714Z'
+ created_at: '2021-11-24T15:43:35.600Z'
+ updated_at: '2021-11-24T15:43:35.613Z'
default: true
address1: South Street 8/2
address2:
@@ -11894,7 +12038,7 @@ paths:
relationships:
country:
data:
- id: '401'
+ id: '406'
type: country
schema:
"$ref": "#/components/schemas/resource"
@@ -12012,14 +12156,14 @@ paths:
type: store_credit_category
attributes:
name: Exchange
- created_at: '2021-11-20T17:53:49.882Z'
- updated_at: '2021-11-20T17:53:49.882Z'
+ created_at: '2021-11-24T15:43:36.069Z'
+ updated_at: '2021-11-24T15:43:36.069Z'
- id: '3'
type: store_credit_category
attributes:
name: Exchange
- created_at: '2021-11-20T17:53:49.883Z'
- updated_at: '2021-11-20T17:53:49.883Z'
+ created_at: '2021-11-24T15:43:36.070Z'
+ updated_at: '2021-11-24T15:43:36.070Z'
meta:
count: 2
total_count: 2
@@ -12064,8 +12208,8 @@ paths:
type: store_credit_category
attributes:
name: Exchange
- created_at: '2021-11-20T17:53:49.946Z'
- updated_at: '2021-11-20T17:53:49.946Z'
+ created_at: '2021-11-24T15:43:36.169Z'
+ updated_at: '2021-11-24T15:43:36.169Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12114,8 +12258,8 @@ paths:
type: store_credit_category
attributes:
name: Exchange
- created_at: '2021-11-20T17:53:49.985Z'
- updated_at: '2021-11-20T17:53:49.985Z'
+ created_at: '2021-11-24T15:43:36.246Z'
+ updated_at: '2021-11-24T15:43:36.246Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -12165,8 +12309,8 @@ paths:
type: store_credit_category
attributes:
name: refunded
- created_at: '2021-11-20T17:53:50.055Z'
- updated_at: '2021-11-20T17:53:50.061Z'
+ created_at: '2021-11-24T15:43:36.358Z'
+ updated_at: '2021-11-24T15:43:36.367Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12278,15 +12422,15 @@ paths:
attributes:
name: Expiring
priority: 1
- created_at: '2021-11-20T17:53:50.202Z'
- updated_at: '2021-11-20T17:53:50.202Z'
+ created_at: '2021-11-24T15:43:36.618Z'
+ updated_at: '2021-11-24T15:43:36.618Z'
- id: '3'
type: store_credit_type
attributes:
name: Expiring
priority: 1
- created_at: '2021-11-20T17:53:50.205Z'
- updated_at: '2021-11-20T17:53:50.205Z'
+ created_at: '2021-11-24T15:43:36.619Z'
+ updated_at: '2021-11-24T15:43:36.619Z'
meta:
count: 2
total_count: 2
@@ -12332,8 +12476,8 @@ paths:
attributes:
name: Expiring
priority: 1
- created_at: '2021-11-20T17:53:50.261Z'
- updated_at: '2021-11-20T17:53:50.261Z'
+ created_at: '2021-11-24T15:43:36.724Z'
+ updated_at: '2021-11-24T15:43:36.724Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12383,8 +12527,8 @@ paths:
attributes:
name: Expiring
priority: 1
- created_at: '2021-11-20T17:53:50.302Z'
- updated_at: '2021-11-20T17:53:50.302Z'
+ created_at: '2021-11-24T15:43:36.835Z'
+ updated_at: '2021-11-24T15:43:36.835Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -12435,8 +12579,8 @@ paths:
attributes:
name: default
priority: 1
- created_at: '2021-11-20T17:53:50.371Z'
- updated_at: '2021-11-20T17:53:50.377Z'
+ created_at: '2021-11-24T15:43:36.968Z'
+ updated_at: '2021-11-24T15:43:36.978Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12584,8 +12728,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-20T17:53:50.615Z'
- updated_at: '2021-11-20T17:53:50.615Z'
+ created_at: '2021-11-24T15:43:37.232Z'
+ updated_at: '2021-11-24T15:43:37.232Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -12621,8 +12765,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-20T17:53:50.621Z'
- updated_at: '2021-11-20T17:53:50.621Z'
+ created_at: '2021-11-24T15:43:37.245Z'
+ updated_at: '2021-11-24T15:43:37.245Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -12705,8 +12849,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-20T17:53:50.708Z'
- updated_at: '2021-11-20T17:53:50.708Z'
+ created_at: '2021-11-24T15:43:37.416Z'
+ updated_at: '2021-11-24T15:43:37.416Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -12810,8 +12954,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-20T17:53:50.767Z'
- updated_at: '2021-11-20T17:53:50.767Z'
+ created_at: '2021-11-24T15:43:37.696Z'
+ updated_at: '2021-11-24T15:43:37.696Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -12899,8 +13043,8 @@ paths:
currency: CAD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-20T17:53:50.854Z'
- updated_at: '2021-11-20T17:53:50.864Z'
+ created_at: '2021-11-24T15:43:37.854Z'
+ updated_at: '2021-11-24T15:43:37.876Z'
public_metadata:
loyalty_reward: true
private_metadata: {}
@@ -13066,13 +13210,13 @@ paths:
- id: '144'
type: tax_category
attributes:
- name: TaxCategory - 817843
- description: Possimus accusantium totam ex assumenda facere
- tenetur facilis doloribus.
+ name: TaxCategory - 733750
+ description: Magnam iusto omnis fuga expedita quidem et mollitia
+ tempora.
is_default: false
deleted_at:
- created_at: '2021-11-20T17:53:51.048Z'
- updated_at: '2021-11-20T17:53:51.048Z'
+ created_at: '2021-11-24T15:43:38.206Z'
+ updated_at: '2021-11-24T15:43:38.206Z'
tax_code:
relationships:
tax_rates:
@@ -13080,13 +13224,12 @@ paths:
- id: '145'
type: tax_category
attributes:
- name: TaxCategory - 749441
- description: Modi nihil quas asperiores fuga nostrum beatae
- sint.
+ name: TaxCategory - 598905
+ description: Natus illo occaecati optio magnam beatae amet.
is_default: false
deleted_at:
- created_at: '2021-11-20T17:53:51.049Z'
- updated_at: '2021-11-20T17:53:51.049Z'
+ created_at: '2021-11-24T15:43:38.208Z'
+ updated_at: '2021-11-24T15:43:38.208Z'
tax_code:
relationships:
tax_rates:
@@ -13141,13 +13284,12 @@ paths:
id: '148'
type: tax_category
attributes:
- name: TaxCategory - 537062
- description: Nobis cum molestias adipisci laboriosam nemo
- velit totam.
+ name: TaxCategory - 836841
+ description: Quidem sapiente quod maiores vero eum fuga accusamus.
is_default: false
deleted_at:
- created_at: '2021-11-20T17:53:51.113Z'
- updated_at: '2021-11-20T17:53:51.113Z'
+ created_at: '2021-11-24T15:43:38.320Z'
+ updated_at: '2021-11-24T15:43:38.320Z'
tax_code:
relationships:
tax_rates:
@@ -13206,13 +13348,12 @@ paths:
id: '149'
type: tax_category
attributes:
- name: TaxCategory - 402113
- description: Repellendus nobis minima doloremque similique
- harum.
+ name: TaxCategory - 450091
+ description: Vel modi saepe ipsum nostrum exercitationem.
is_default: false
deleted_at:
- created_at: '2021-11-20T17:53:51.159Z'
- updated_at: '2021-11-20T17:53:51.159Z'
+ created_at: '2021-11-24T15:43:38.399Z'
+ updated_at: '2021-11-24T15:43:38.399Z'
tax_code:
relationships:
tax_rates:
@@ -13276,8 +13417,8 @@ paths:
description: Men's, women's and children's clothing
is_default: true
deleted_at:
- created_at: '2021-11-20T17:53:51.231Z'
- updated_at: '2021-11-20T17:53:51.239Z'
+ created_at: '2021-11-24T15:43:38.697Z'
+ updated_at: '2021-11-24T15:43:38.707Z'
tax_code: 1233K
relationships:
tax_rates:
@@ -13418,8 +13559,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-20T17:53:51.479Z'
- updated_at: '2021-11-20T17:53:51.479Z'
+ created_at: '2021-11-24T15:43:38.967Z'
+ updated_at: '2021-11-24T15:43:38.967Z'
name:
show_rate_in_label: true
deleted_at:
@@ -13437,8 +13578,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-20T17:53:51.483Z'
- updated_at: '2021-11-20T17:53:51.483Z'
+ created_at: '2021-11-24T15:43:38.974Z'
+ updated_at: '2021-11-24T15:43:38.974Z'
name:
show_rate_in_label: true
deleted_at:
@@ -13503,8 +13644,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-20T17:53:51.555Z'
- updated_at: '2021-11-20T17:53:51.555Z'
+ created_at: '2021-11-24T15:43:39.110Z'
+ updated_at: '2021-11-24T15:43:39.110Z'
name:
show_rate_in_label: true
deleted_at:
@@ -13576,8 +13717,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-20T17:53:51.609Z'
- updated_at: '2021-11-20T17:53:51.609Z'
+ created_at: '2021-11-24T15:43:39.198Z'
+ updated_at: '2021-11-24T15:43:39.198Z'
name:
show_rate_in_label: true
deleted_at:
@@ -13647,8 +13788,8 @@ paths:
attributes:
amount: '25.9'
included_in_price: true
- created_at: '2021-11-20T17:53:51.688Z'
- updated_at: '2021-11-20T17:53:51.697Z'
+ created_at: '2021-11-24T15:43:39.531Z'
+ updated_at: '2021-11-24T15:43:39.548Z'
name:
show_rate_in_label: true
deleted_at:
@@ -13784,8 +13925,8 @@ paths:
type: taxonomy
attributes:
name: taxonomy_13
- created_at: '2021-11-20T17:53:51.883Z'
- updated_at: '2021-11-20T17:53:51.898Z'
+ created_at: '2021-11-24T15:43:39.841Z'
+ updated_at: '2021-11-24T15:43:39.863Z'
position: 1
public_metadata: {}
private_metadata: {}
@@ -13802,8 +13943,8 @@ paths:
type: taxonomy
attributes:
name: taxonomy_14
- created_at: '2021-11-20T17:53:51.899Z'
- updated_at: '2021-11-20T17:53:51.915Z'
+ created_at: '2021-11-24T15:43:39.867Z'
+ updated_at: '2021-11-24T15:43:39.889Z'
position: 2
public_metadata: {}
private_metadata: {}
@@ -13867,8 +14008,8 @@ paths:
type: taxonomy
attributes:
name: taxonomy_17
- created_at: '2021-11-20T17:53:52.018Z'
- updated_at: '2021-11-20T17:53:52.018Z'
+ created_at: '2021-11-24T15:43:40.056Z'
+ updated_at: '2021-11-24T15:43:40.056Z'
position: 1
public_metadata: {}
private_metadata: {}
@@ -13936,8 +14077,8 @@ paths:
type: taxonomy
attributes:
name: taxonomy_18
- created_at: '2021-11-20T17:53:52.080Z'
- updated_at: '2021-11-20T17:53:52.097Z'
+ created_at: '2021-11-24T15:43:40.159Z'
+ updated_at: '2021-11-24T15:43:40.185Z'
position: 1
public_metadata: {}
private_metadata: {}
@@ -14006,8 +14147,8 @@ paths:
type: taxonomy
attributes:
name: Categories
- created_at: '2021-11-20T17:53:52.193Z'
- updated_at: '2021-11-20T17:53:52.216Z'
+ created_at: '2021-11-24T15:43:40.504Z'
+ updated_at: '2021-11-24T15:43:40.539Z'
position: 1
public_metadata:
balanced: true
@@ -14146,6 +14287,43 @@ paths:
Example:
value:
data:
+ - id: '38'
+ type: taxon
+ attributes:
+ position: 0
+ name: Shorts
+ permalink: taxonomy-25/shorts
+ lft: 2
+ rgt: 3
+ description:
+ created_at: '2021-11-24T15:43:41.045Z'
+ updated_at: '2021-11-24T15:43:41.051Z'
+ meta_title:
+ meta_description:
+ meta_keywords:
+ depth: 1
+ public_metadata: {}
+ private_metadata: {}
+ pretty_name: taxonomy_25 -> Shorts
+ seo_title: Shorts
+ is_root: false
+ is_child: true
+ is_leaf: true
+ relationships:
+ parent:
+ data:
+ id: '37'
+ type: taxon
+ taxonomy:
+ data:
+ id: '25'
+ type: taxonomy
+ children:
+ data: []
+ image:
+ data:
+ id: '89'
+ type: taxon_image
- id: '39'
type: taxon
attributes:
@@ -14155,8 +14333,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-11-20T17:53:52.707Z'
- updated_at: '2021-11-20T17:53:52.711Z'
+ created_at: '2021-11-24T15:43:41.143Z'
+ updated_at: '2021-11-24T15:43:41.149Z'
meta_title:
meta_description:
meta_keywords:
@@ -14192,8 +14370,8 @@ paths:
lft: 6
rgt: 7
description:
- created_at: '2021-11-20T17:53:52.766Z'
- updated_at: '2021-11-20T17:53:52.770Z'
+ created_at: '2021-11-24T15:43:41.242Z'
+ updated_at: '2021-11-24T15:43:41.249Z'
meta_title:
meta_description:
meta_keywords:
@@ -14229,8 +14407,8 @@ paths:
lft: 1
rgt: 8
description:
- created_at: '2021-11-20T17:53:52.565Z'
- updated_at: '2021-11-20T17:53:52.779Z'
+ created_at: '2021-11-24T15:43:40.953Z'
+ updated_at: '2021-11-24T15:43:41.263Z'
meta_title:
meta_description:
meta_keywords:
@@ -14259,43 +14437,6 @@ paths:
type: taxon
image:
data:
- - id: '38'
- type: taxon
- attributes:
- position: 0
- name: Shorts
- permalink: taxonomy-25/shorts
- lft: 2
- rgt: 3
- description:
- created_at: '2021-11-20T17:53:52.648Z'
- updated_at: '2021-11-20T17:53:52.652Z'
- meta_title:
- meta_description:
- meta_keywords:
- depth: 1
- public_metadata: {}
- private_metadata: {}
- pretty_name: taxonomy_25 -> Shorts
- seo_title: Shorts
- is_root: false
- is_child: true
- is_leaf: true
- relationships:
- parent:
- data:
- id: '37'
- type: taxon
- taxonomy:
- data:
- id: '25'
- type: taxonomy
- children:
- data: []
- image:
- data:
- id: '89'
- type: taxon_image
meta:
count: 4
total_count: 4
@@ -14352,8 +14493,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-11-20T17:53:53.144Z'
- updated_at: '2021-11-20T17:53:53.148Z'
+ created_at: '2021-11-24T15:43:41.872Z'
+ updated_at: '2021-11-24T15:43:41.879Z'
meta_title:
meta_description:
meta_keywords:
@@ -14431,24 +14572,24 @@ paths:
Example:
value:
data:
- id: '52'
+ id: '53'
type: taxon
attributes:
position: 0
name: taxon_18
- permalink: taxonomy-29/taxon-18
- lft: 4
- rgt: 5
+ permalink: taxonomy-30/taxon-18
+ lft: 6
+ rgt: 7
description:
- created_at: '2021-11-20T17:53:53.409Z'
- updated_at: '2021-11-20T17:53:53.413Z'
+ created_at: '2021-11-24T15:43:42.543Z'
+ updated_at: '2021-11-24T15:43:42.551Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_29 -> taxon_18
+ pretty_name: taxonomy_30 -> taxon_18
seo_title: taxon_18
is_root: false
is_child: true
@@ -14456,11 +14597,11 @@ paths:
relationships:
parent:
data:
- id: '50'
+ id: '52'
type: taxon
taxonomy:
data:
- id: '29'
+ id: '30'
type: taxonomy
children:
data: []
@@ -14522,17 +14663,17 @@ paths:
Example:
value:
data:
- id: '60'
+ id: '63'
type: taxon
attributes:
position: 0
name: T-Shirts
- permalink: taxonomy-32/taxon-20
- lft: 4
- rgt: 5
+ permalink: taxonomy-35/taxon-20
+ lft: 6
+ rgt: 7
description:
- created_at: '2021-11-20T17:53:53.840Z'
- updated_at: '2021-11-20T17:53:53.866Z'
+ created_at: '2021-11-24T15:43:43.293Z'
+ updated_at: '2021-11-24T15:43:43.332Z'
meta_title:
meta_description:
meta_keywords:
@@ -14540,7 +14681,7 @@ paths:
public_metadata:
profitability: 3
private_metadata: {}
- pretty_name: taxonomy_32 -> T-Shirts
+ pretty_name: taxonomy_35 -> T-Shirts
seo_title: T-Shirts
is_root: false
is_child: true
@@ -14548,11 +14689,11 @@ paths:
relationships:
parent:
data:
- id: '58'
+ id: '62'
type: taxon
taxonomy:
data:
- id: '32'
+ id: '35'
type: taxonomy
children:
data: []
@@ -14661,24 +14802,24 @@ paths:
Example:
value:
data:
- id: '79'
+ id: '87'
type: taxon
attributes:
position: 0
name: taxon_25
- permalink: taxonomy-39/shorts/taxon-25
+ permalink: taxonomy-47/taxon-25
lft: 3
rgt: 4
description:
- created_at: '2021-11-20T17:53:54.960Z'
- updated_at: '2021-11-20T17:53:54.992Z'
+ created_at: '2021-11-24T15:43:45.108Z'
+ updated_at: '2021-11-24T15:43:45.147Z'
meta_title:
meta_description:
meta_keywords:
depth: 2
public_metadata: {}
private_metadata: {}
- pretty_name: taxonomy_39 -> Shorts -> taxon_25
+ pretty_name: taxonomy_46 -> Shorts -> taxon_25
seo_title: taxon_25
is_root: false
is_child: true
@@ -14686,11 +14827,11 @@ paths:
relationships:
parent:
data:
- id: '78'
+ id: '85'
type: taxon
taxonomy:
data:
- id: '39'
+ id: '47'
type: taxonomy
children:
data: []
@@ -14776,9 +14917,9 @@ paths:
- id: '129'
type: user
attributes:
- created_at: '2021-11-20T17:53:55.287Z'
- updated_at: '2021-11-20T17:53:55.287Z'
+ created_at: '2021-11-24T15:43:45.685Z'
+ updated_at: '2021-11-24T15:43:45.685Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -14792,9 +14933,9 @@ paths:
- id: '130'
type: user
attributes:
- created_at: '2021-11-20T17:53:55.294Z'
- updated_at: '2021-11-20T17:53:55.294Z'
+ created_at: '2021-11-24T15:43:45.695Z'
+ updated_at: '2021-11-24T15:43:45.695Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -14808,9 +14949,9 @@ paths:
- id: '131'
type: user
attributes:
- created_at: '2021-11-20T17:53:55.295Z'
- updated_at: '2021-11-20T17:53:55.295Z'
+ created_at: '2021-11-24T15:43:45.698Z'
+ updated_at: '2021-11-24T15:43:45.698Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -14871,9 +15012,9 @@ paths:
id: '136'
type: user
attributes:
- created_at: '2021-11-20T17:53:55.372Z'
- updated_at: '2021-11-20T17:53:55.372Z'
+ created_at: '2021-11-24T15:43:45.840Z'
+ updated_at: '2021-11-24T15:43:45.840Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -14938,9 +15079,9 @@ paths:
id: '139'
type: user
attributes:
- created_at: '2021-11-20T17:53:55.428Z'
- updated_at: '2021-11-20T17:53:55.428Z'
+ created_at: '2021-11-24T15:43:45.945Z'
+ updated_at: '2021-11-24T15:43:45.945Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -15007,8 +15148,8 @@ paths:
type: user
attributes:
- created_at: '2021-11-20T17:53:55.511Z'
- updated_at: '2021-11-20T17:53:55.519Z'
+ created_at: '2021-11-24T15:43:46.115Z'
+ updated_at: '2021-11-24T15:43:46.131Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -15157,14 +15298,14 @@ paths:
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-20T17:53:55.755Z'
+ updated_at: '2021-11-24T15:43:46.514Z'
discontinue_on:
- created_at: '2021-11-20T17:53:55.755Z'
+ created_at: '2021-11-24T15:43:46.514Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #202 - 426'
+ name: 'Product #202 - 4046'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -15199,23 +15340,23 @@ paths:
type: variant
attributes:
sku: SKU-273
- weight: '116.24'
- height: '71.96'
- depth: '161.9'
+ weight: '15.64'
+ height: '133.36'
+ depth: '43.83'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-20T17:53:55.795Z'
+ updated_at: '2021-11-24T15:43:46.579Z'
discontinue_on:
- created_at: '2021-11-20T17:53:55.790Z'
+ created_at: '2021-11-24T15:43:46.569Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #202 - 426'
+ name: 'Product #202 - 4046'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -15252,23 +15393,23 @@ paths:
type: variant
attributes:
sku: SKU-274
- weight: '199.15'
- height: '91.33'
- depth: '8.56'
+ weight: '99.88'
+ height: '25.64'
+ depth: '199.16'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-20T17:53:55.820Z'
+ updated_at: '2021-11-24T15:43:46.635Z'
discontinue_on:
- created_at: '2021-11-20T17:53:55.816Z'
+ created_at: '2021-11-24T15:43:46.628Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #202 - 426'
+ name: 'Product #202 - 4046'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -15358,23 +15499,23 @@ paths:
type: variant
attributes:
sku: SKU-279
- weight: '74.88'
- height: '43.45'
- depth: '24.19'
+ weight: '157.36'
+ height: '141.31'
+ depth: '177.54'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-20T17:53:56.063Z'
+ updated_at: '2021-11-24T15:43:47.121Z'
discontinue_on:
- created_at: '2021-11-20T17:53:56.059Z'
+ created_at: '2021-11-24T15:43:47.115Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #204 - 1909'
+ name: 'Product #204 - 7322'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -15535,14 +15676,14 @@ paths:
- id: '1'
type: event
attributes:
- execution_time: 50920
+ execution_time: 88786
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url1.com/
- created_at: '2021-11-20T17:53:56.460Z'
- updated_at: '2021-11-20T17:53:56.460Z'
+ created_at: '2021-11-24T15:43:47.777Z'
+ updated_at: '2021-11-24T15:43:47.777Z'
relationships:
subscriber:
data:
@@ -15551,14 +15692,14 @@ paths:
- id: '2'
type: event
attributes:
- execution_time: 53483
+ execution_time: 72945
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url2.com/
- created_at: '2021-11-20T17:53:56.464Z'
- updated_at: '2021-11-20T17:53:56.464Z'
+ created_at: '2021-11-24T15:43:47.781Z'
+ updated_at: '2021-11-24T15:43:47.781Z'
relationships:
subscriber:
data:
@@ -15634,8 +15775,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-20T17:53:56.532Z'
- updated_at: '2021-11-20T17:53:56.532Z'
+ created_at: '2021-11-24T15:43:47.887Z'
+ updated_at: '2021-11-24T15:43:47.887Z'
- id: '6'
type: subscriber
attributes:
@@ -15643,8 +15784,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-20T17:53:56.533Z'
- updated_at: '2021-11-20T17:53:56.533Z'
+ created_at: '2021-11-24T15:43:47.888Z'
+ updated_at: '2021-11-24T15:43:47.888Z'
meta:
count: 2
total_count: 2
@@ -15692,8 +15833,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-20T17:53:56.589Z'
- updated_at: '2021-11-20T17:53:56.589Z'
+ created_at: '2021-11-24T15:43:47.987Z'
+ updated_at: '2021-11-24T15:43:47.987Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -15748,8 +15889,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-20T17:53:56.630Z'
- updated_at: '2021-11-20T17:53:56.630Z'
+ created_at: '2021-11-24T15:43:48.066Z'
+ updated_at: '2021-11-24T15:43:48.066Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -15802,8 +15943,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-20T17:53:56.696Z'
- updated_at: '2021-11-20T17:53:56.696Z'
+ created_at: '2021-11-24T15:43:48.194Z'
+ updated_at: '2021-11-24T15:43:48.194Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -15924,8 +16065,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:56.989Z'
- updated_at: '2021-11-20T17:53:56.989Z'
+ created_at: '2021-11-24T15:43:48.693Z'
+ updated_at: '2021-11-24T15:43:48.693Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -15939,8 +16080,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:57.046Z'
- updated_at: '2021-11-20T17:53:57.046Z'
+ created_at: '2021-11-24T15:43:48.790Z'
+ updated_at: '2021-11-24T15:43:48.790Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -15954,8 +16095,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:57.101Z'
- updated_at: '2021-11-20T17:53:57.101Z'
+ created_at: '2021-11-24T15:43:48.888Z'
+ updated_at: '2021-11-24T15:43:48.888Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -15969,8 +16110,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:57.156Z'
- updated_at: '2021-11-20T17:53:57.156Z'
+ created_at: '2021-11-24T15:43:48.985Z'
+ updated_at: '2021-11-24T15:43:48.985Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -16031,8 +16172,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:57.585Z'
- updated_at: '2021-11-20T17:53:57.585Z'
+ created_at: '2021-11-24T15:43:49.746Z'
+ updated_at: '2021-11-24T15:43:49.746Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -16102,8 +16243,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-20T17:53:57.841Z'
- updated_at: '2021-11-20T17:53:57.841Z'
+ created_at: '2021-11-24T15:43:50.178Z'
+ updated_at: '2021-11-24T15:43:50.178Z'
display_total: "$19.99"
display_price: "$19.99"
price: '19.99'
@@ -16169,8 +16310,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-11-20T17:53:58.242Z'
- updated_at: '2021-11-20T17:53:58.250Z'
+ created_at: '2021-11-24T15:43:50.865Z'
+ updated_at: '2021-11-24T15:43:50.877Z'
display_total: "$59.97"
display_price: "$19.99"
price: '19.99'
@@ -16305,9 +16446,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-11-20T17:53:59.107Z'
- updated_at: '2021-11-20T17:53:59.107Z'
- token: se22wQAnUviUBUPCLCH7kdLf
+ created_at: '2021-11-24T15:43:52.346Z'
+ updated_at: '2021-11-24T15:43:52.346Z'
+ token: 9qyHC4WmEfKoY9hymNNTCU1x
variant_included: false
relationships:
wished_items:
@@ -16322,9 +16463,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-11-20T17:53:59.108Z'
- updated_at: '2021-11-20T17:53:59.108Z'
- token: eBaReS4vUky6mRLhi9AjzCRF
+ created_at: '2021-11-24T15:43:52.348Z'
+ updated_at: '2021-11-24T15:43:52.348Z'
+ token: xkjnN9iwUmQBhV5b98JYGBU6
variant_included: false
relationships:
wished_items:
@@ -16386,9 +16527,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-11-20T17:53:59.651Z'
- updated_at: '2021-11-20T17:53:59.651Z'
- token: KDy2gGqAEikFyocBDhnmzfzP
+ created_at: '2021-11-24T15:43:53.348Z'
+ updated_at: '2021-11-24T15:43:53.348Z'
+ token: 8N6bhUJK9nastcpTQ4333N2x
variant_included: false
relationships:
wished_items:
@@ -16452,9 +16593,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-11-20T17:53:59.701Z'
- updated_at: '2021-11-20T17:53:59.701Z'
- token: dLXrD9dzc5VJavDCS5WzxngM
+ created_at: '2021-11-24T15:43:53.453Z'
+ updated_at: '2021-11-24T15:43:53.453Z'
+ token: 1EafpHudU12ETGCMjaXFnaw4
variant_included: false
relationships:
wished_items:
@@ -16517,9 +16658,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-11-20T17:53:59.777Z'
- updated_at: '2021-11-20T17:53:59.785Z'
- token: Cq1cVXxHctTUWjsi7YyTtE1s
+ created_at: '2021-11-24T15:43:53.629Z'
+ updated_at: '2021-11-24T15:43:53.643Z'
+ token: 57ws3DydCxND7wsDFdaXUcY1
variant_included: false
relationships:
wished_items:
@@ -16646,14 +16787,12 @@ paths:
- id: '113'
type: zone
attributes:
- name: Quae veritatis dolor eius voluptatum necessitatibus
- itaque.
- description: Praesentium totam laudantium occaecati eum modi
- ut maiores quos.
+ name: Expedita pariatur a porro sint voluptates.
+ description: Earum praesentium expedita impedit veniam.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-20T17:53:59.958Z'
- updated_at: '2021-11-20T17:53:59.958Z'
+ created_at: '2021-11-24T15:43:53.973Z'
+ updated_at: '2021-11-24T15:43:53.973Z'
kind: state
relationships:
zone_members:
@@ -16661,13 +16800,12 @@ paths:
- id: '114'
type: zone
attributes:
- name: Perferendis voluptates omnis tempora velit praesentium
- recusandae.
- description: Eius accusamus officia natus sapiente.
+ name: Amet minima veniam dolor necessitatibus reiciendis.
+ description: Incidunt debitis odit laboriosam repudiandae.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-20T17:53:59.960Z'
- updated_at: '2021-11-20T17:53:59.960Z'
+ created_at: '2021-11-24T15:43:53.974Z'
+ updated_at: '2021-11-24T15:43:53.974Z'
kind: state
relationships:
zone_members:
@@ -16722,13 +16860,12 @@ paths:
id: '117'
type: zone
attributes:
- name: Qui in labore ratione rem rerum doloribus.
- description: Explicabo voluptate itaque aut recusandae quas
- nesciunt.
+ name: Ullam voluptatibus excepturi dicta enim.
+ description: Incidunt praesentium provident consequatur reiciendis.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-20T17:54:00.018Z'
- updated_at: '2021-11-20T17:54:00.018Z'
+ created_at: '2021-11-24T15:43:54.079Z'
+ updated_at: '2021-11-24T15:43:54.079Z'
kind: state
relationships:
zone_members:
@@ -16787,13 +16924,13 @@ paths:
id: '118'
type: zone
attributes:
- name: Eaque saepe reiciendis accusamus voluptate dignissimos
- exercitationem aliquam enim.
- description: Rerum minus aut consequatur dicta.
+ name: Natus maiores officia eligendi esse.
+ description: Ipsa nesciunt libero repellendus fugit fugiat
+ alias explicabo recusandae.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-20T17:54:00.066Z'
- updated_at: '2021-11-20T17:54:00.066Z'
+ created_at: '2021-11-24T15:43:54.155Z'
+ updated_at: '2021-11-24T15:43:54.155Z'
kind: state
relationships:
zone_members:
@@ -16857,8 +16994,8 @@ paths:
description: The zone containing all EU countries
default_tax: false
zone_members_count: 0
- created_at: '2021-11-20T17:54:00.133Z'
- updated_at: '2021-11-20T17:54:00.140Z'
+ created_at: '2021-11-24T15:43:54.287Z'
+ updated_at: '2021-11-24T15:43:54.298Z'
kind: state
relationships:
zone_members:
@@ -18870,7 +19007,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-20 17:53:08 UTC
+ example: 2021-11-24 15:42:22 UTC
bill_address_id:
type: string
example: '1'
@@ -18938,7 +19075,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-20 17:53:08 UTC
+ example: 2021-11-24 15:42:22 UTC
confirmation_delivered:
type: boolean
example: true
@@ -19009,7 +19146,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-20 17:53:08 UTC
+ example: 2021-11-24 15:42:22 UTC
bill_address_id:
type: string
example: '1'
@@ -19077,7 +19214,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-20 17:53:08 UTC
+ example: 2021-11-24 15:42:22 UTC
confirmation_delivered:
type: boolean
example: true
diff --git a/api/spec/integration/api/v2/platform/states_spec.rb b/api/spec/integration/api/v2/platform/states_spec.rb
new file mode 100644
index 0000000000..a1a28c6ff4
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/states_spec.rb
@@ -0,0 +1,38 @@
+require 'swagger_helper'
+
+describe 'States API', swagger: true do
+ include_context 'Platform API v2'
+
+ path '/api/v2/platform/states' do
+ get 'Returns a list of States' do
+ tags 'States'
+ security [ bearer_auth: [] ]
+ operationId 'states-list'
+ description 'Returns a list of States'
+ before { create_list(:state, 2) }
+
+ include_context 'jsonapi pagination'
+ json_api_include_parameter('country')
+ json_api_filter_parameter([{ name: 'filter[country_id_eq]', example: '4' }])
+
+ it_behaves_like 'records returned'
+ it_behaves_like 'authentication failed'
+ end
+ end
+
+ path '/api/v2/platform/states/{id}' do
+ let(:id) { create(:state).id }
+
+ get 'Returns a State' do
+ tags 'States'
+ security [ bearer_auth: [] ]
+ operationId 'show-state'
+ description 'Returns a State'
+ parameter name: :id, in: :path, type: :string
+
+ it_behaves_like 'record found'
+ it_behaves_like 'record not found'
+ it_behaves_like 'authentication failed'
+ end
+ end
+end
diff --git a/core/app/models/spree/state.rb b/core/app/models/spree/state.rb
index 9ade151561..10fd3f0ef9 100644
--- a/core/app/models/spree/state.rb
+++ b/core/app/models/spree/state.rb
@@ -14,7 +14,7 @@ module Spree
validates :country, :name, presence: true
validates :name, :abbr, uniqueness: { case_sensitive: false, scope: :country_id }, allow_blank: true
- self.whitelisted_ransackable_attributes = %w(abbr)
+ self.whitelisted_ransackable_attributes = %w(abbr country_id name)
def self.find_all_by_name_or_abbr(name_or_abbr)
where('name = ? OR abbr = ?', name_or_abbr, name_or_abbr)
diff --git a/core/spec/models/spree/state_spec.rb b/core/spec/models/spree/state_spec.rb
index 22a510f80e..a353e4073c 100644
--- a/core/spec/models/spree/state_spec.rb
+++ b/core/spec/models/spree/state_spec.rb
@@ -13,6 +13,6 @@ describe Spree::State, type: :model do
end
describe 'whitelisted_ransackable_attributes' do
- it { expect(Spree::State.whitelisted_ransackable_attributes).to eq(%w(abbr)) }
+ it { expect(Spree::State.whitelisted_ransackable_attributes).to eq(%w(abbr country_id name)) }
end
end