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.

Merge with main and resolve conflicts

Aleksandar Petrushev0dbcc7115cb7
diff --cc api/docs/v2/platform/index.yaml
index 5513714c52,ee15b42a17..79a908d3a2
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@@ -70,8 -70,8 +70,8 @@@ paths
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-08T13:41:21.533Z'
- updated_at: '2021-11-08T13:41:21.533Z'
- created_at: '2021-11-08T15:17:40.804Z'
- updated_at: '2021-11-08T15:17:40.804Z'
++ created_at: '2021-11-09T11:27:13.437Z'
++ updated_at: '2021-11-09T11:27:13.437Z'
deleted_at:
label:
public_metadata: {}
@@@ -100,8 -100,8 +100,8 @@@
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-08T13:41:21.541Z'
- updated_at: '2021-11-08T13:41:21.541Z'
- created_at: '2021-11-08T15:17:40.813Z'
- updated_at: '2021-11-08T15:17:40.813Z'
++ created_at: '2021-11-09T11:27:13.443Z'
++ updated_at: '2021-11-09T11:27:13.443Z'
deleted_at:
label:
public_metadata: {}
@@@ -177,8 -177,8 +177,8 @@@
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-08T13:41:21.917Z'
- updated_at: '2021-11-08T13:41:21.917Z'
- created_at: '2021-11-08T15:17:41.149Z'
- updated_at: '2021-11-08T15:17:41.149Z'
++ created_at: '2021-11-09T11:27:13.798Z'
++ updated_at: '2021-11-09T11:27:13.798Z'
deleted_at:
label:
public_metadata: {}
@@@ -274,8 -274,8 +274,8 @@@
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-08T13:41:21.997Z'
- updated_at: '2021-11-08T13:41:21.997Z'
- created_at: '2021-11-08T15:17:41.229Z'
- updated_at: '2021-11-08T15:17:41.229Z'
++ created_at: '2021-11-09T11:27:13.878Z'
++ updated_at: '2021-11-09T11:27:13.878Z'
deleted_at:
label:
public_metadata: {}
@@@ -356,8 -356,8 +356,8 @@@
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-08T13:41:22.192Z'
- updated_at: '2021-11-08T13:41:22.245Z'
- created_at: '2021-11-08T15:17:41.474Z'
- updated_at: '2021-11-08T15:17:41.486Z'
++ created_at: '2021-11-09T11:27:13.978Z'
++ updated_at: '2021-11-09T11:27:13.994Z'
deleted_at:
label:
public_metadata: {}
@@@ -503,8 -503,8 +503,8 @@@
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-08T13:41:22.604Z'
- updated_at: '2021-11-08T13:41:22.604Z'
- created_at: '2021-11-08T15:17:41.831Z'
- updated_at: '2021-11-08T15:17:41.831Z'
++ created_at: '2021-11-09T11:27:14.324Z'
++ updated_at: '2021-11-09T11:27:14.324Z'
state: open
included: false
display_amount: "$100.00"
@@@ -530,8 -530,8 +530,8 @@@
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-08T13:41:22.636Z'
- updated_at: '2021-11-08T13:41:22.636Z'
- created_at: '2021-11-08T15:17:41.864Z'
- updated_at: '2021-11-08T15:17:41.864Z'
++ created_at: '2021-11-09T11:27:14.351Z'
++ updated_at: '2021-11-09T11:27:14.351Z'
state: open
included: false
display_amount: "$100.00"
@@@ -604,8 -604,8 +604,8 @@@
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-08T13:41:23.025Z'
- updated_at: '2021-11-08T13:41:23.025Z'
- created_at: '2021-11-08T15:17:42.266Z'
- updated_at: '2021-11-08T15:17:42.266Z'
++ created_at: '2021-11-09T11:27:14.740Z'
++ updated_at: '2021-11-09T11:27:14.740Z'
state: open
included: false
display_amount: "$100.00"
@@@ -687,8 -687,8 +687,8 @@@
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-08T13:41:23.198Z'
- updated_at: '2021-11-08T13:41:23.206Z'
- created_at: '2021-11-08T15:17:42.454Z'
- updated_at: '2021-11-08T15:17:42.462Z'
++ created_at: '2021-11-09T11:27:14.955Z'
++ updated_at: '2021-11-09T11:27:14.983Z'
state: open
included: false
display_amount: "$1.00"
@@@ -766,8 -766,8 +766,8 @@@
label: New label
mandatory:
eligible: true
- created_at: '2021-11-08T13:41:23.516Z'
- updated_at: '2021-11-08T13:41:23.534Z'
- created_at: '2021-11-08T15:17:42.768Z'
- updated_at: '2021-11-08T15:17:42.787Z'
++ created_at: '2021-11-09T11:27:15.317Z'
++ updated_at: '2021-11-09T11:27:15.335Z'
state: open
included: false
display_amount: "$15.00"
@@@ -907,8 -907,8 +907,8 @@@
type: classification
attributes:
position: 1
- created_at: '2021-11-08T13:41:24.352Z'
- updated_at: '2021-11-08T13:41:24.352Z'
- created_at: '2021-11-08T15:17:43.617Z'
- updated_at: '2021-11-08T15:17:43.617Z'
++ created_at: '2021-11-09T11:27:16.235Z'
++ updated_at: '2021-11-09T11:27:16.235Z'
relationships:
product:
data:
@@@ -922,8 -922,8 +922,8 @@@
type: classification
attributes:
position: 1
- created_at: '2021-11-08T13:41:24.465Z'
- updated_at: '2021-11-08T13:41:24.465Z'
- created_at: '2021-11-08T15:17:43.733Z'
- updated_at: '2021-11-08T15:17:43.733Z'
++ created_at: '2021-11-09T11:27:16.339Z'
++ updated_at: '2021-11-09T11:27:16.339Z'
relationships:
product:
data:
@@@ -984,8 -984,8 +984,8 @@@
type: classification
attributes:
position: 1
- created_at: '2021-11-08T13:41:25.166Z'
- updated_at: '2021-11-08T13:41:25.166Z'
- created_at: '2021-11-08T15:17:44.448Z'
- updated_at: '2021-11-08T15:17:44.448Z'
++ created_at: '2021-11-09T11:27:17.064Z'
++ updated_at: '2021-11-09T11:27:17.064Z'
relationships:
product:
data:
@@@ -1052,8 -1052,8 +1052,8 @@@
type: classification
attributes:
position: 1
- created_at: '2021-11-08T13:41:25.576Z'
- updated_at: '2021-11-08T13:41:25.576Z'
- created_at: '2021-11-08T15:17:44.716Z'
- updated_at: '2021-11-08T15:17:44.716Z'
++ created_at: '2021-11-09T11:27:17.303Z'
++ updated_at: '2021-11-09T11:27:17.303Z'
relationships:
product:
data:
@@@ -1119,8 -1119,8 +1119,8 @@@
type: classification
attributes:
position: 1
- created_at: '2021-11-08T13:41:26.083Z'
- updated_at: '2021-11-08T13:41:26.083Z'
- created_at: '2021-11-08T15:17:45.234Z'
- updated_at: '2021-11-08T15:17:45.234Z'
++ created_at: '2021-11-09T11:27:17.788Z'
++ updated_at: '2021-11-09T11:27:17.788Z'
relationships:
product:
data:
@@@ -1242,8 -1242,8 +1242,8 @@@
type: classification
attributes:
position: 2
- created_at: '2021-11-08T13:41:27.350Z'
- updated_at: '2021-11-08T13:41:27.379Z'
- created_at: '2021-11-08T15:17:46.500Z'
- updated_at: '2021-11-08T15:17:46.528Z'
++ created_at: '2021-11-09T11:27:18.969Z'
++ updated_at: '2021-11-09T11:27:18.998Z'
relationships:
product:
data:
@@@ -1348,35 -1348,34 +1348,35 @@@
- id: '1'
type: cms_page
attributes:
- title: Delectus deleniti laudantium eos distinctio exercitationem
- asperiores rerum.
- title: Nemo cumque cum hic nulla modi beatae esse.
++ title: Recusandae officia maiores suscipit quibusdam id.
meta_title:
content:
meta_description:
visible: true
- slug: delectus-deleniti-laudantium-eos-distinctio-exercitationem-asperiores-rerum
- slug: nemo-cumque-cum-hic-nulla-modi-beatae-esse
++ slug: recusandae-officia-maiores-suscipit-quibusdam-id
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-08T13:41:27.937Z'
- updated_at: '2021-11-08T13:41:27.937Z'
- created_at: '2021-11-08T15:17:47.088Z'
- updated_at: '2021-11-08T15:17:47.088Z'
++ created_at: '2021-11-09T11:27:19.531Z'
++ updated_at: '2021-11-09T11:27:19.531Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Ipsum natus blanditiis illo velit dolorem.
- title: Inventore fugit totam voluptatem quo voluptatibus aspernatur.
++ title: Velit voluptatum a provident iste temporibus ratione
++ quia perspiciatis.
meta_title:
content:
meta_description:
visible: true
- slug: ipsum-natus-blanditiis-illo-velit-dolorem
- slug: inventore-fugit-totam-voluptatem-quo-voluptatibus-aspernatur
++ slug: velit-voluptatum-a-provident-iste-temporibus-ratione-quia-perspiciatis
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-08T13:41:27.942Z'
- updated_at: '2021-11-08T13:41:27.942Z'
- created_at: '2021-11-08T15:17:47.094Z'
- updated_at: '2021-11-08T15:17:47.094Z'
++ created_at: '2021-11-09T11:27:19.536Z'
++ updated_at: '2021-11-09T11:27:19.536Z'
relationships:
cms_sections:
data: []
@@@ -1430,17 -1429,18 +1430,17 @@@
id: '5'
type: cms_page
attributes:
- title: Aut dignissimos quasi atque provident numquam.
- title: Eum id pariatur quia vero voluptatum facere dolorem
- provident.
++ title: Eius sunt tenetur eaque unde nemo occaecati quaerat.
meta_title:
content:
meta_description:
visible: true
- slug: aut-dignissimos-quasi-atque-provident-numquam
- slug: eum-id-pariatur-quia-vero-voluptatum-facere-dolorem-provident
++ slug: eius-sunt-tenetur-eaque-unde-nemo-occaecati-quaerat
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-08T13:41:28.075Z'
- updated_at: '2021-11-08T13:41:28.075Z'
- created_at: '2021-11-08T15:17:47.230Z'
- updated_at: '2021-11-08T15:17:47.230Z'
++ created_at: '2021-11-09T11:27:19.659Z'
++ updated_at: '2021-11-09T11:27:19.659Z'
relationships:
cms_sections:
data: []
@@@ -1506,17 -1506,18 +1506,18 @@@
id: '6'
type: cms_page
attributes:
- title: Quos ratione reiciendis doloribus nemo delectus ea.
- title: In harum consequatur distinctio occaecati sint dicta
- cupiditate nesciunt.
++ title: Fugiat molestiae aspernatur aliquid facere impedit
++ odit commodi.
meta_title:
content:
meta_description:
visible: true
- slug: quos-ratione-reiciendis-doloribus-nemo-delectus-ea
- slug: in-harum-consequatur-distinctio-occaecati-sint-dicta-cupiditate-nesciunt
++ slug: fugiat-molestiae-aspernatur-aliquid-facere-impedit-odit-commodi
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-08T13:41:28.148Z'
- updated_at: '2021-11-08T13:41:28.148Z'
- created_at: '2021-11-08T15:17:47.301Z'
- updated_at: '2021-11-08T15:17:47.301Z'
++ created_at: '2021-11-09T11:27:19.727Z'
++ updated_at: '2021-11-09T11:27:19.727Z'
relationships:
cms_sections:
data: []
@@@ -1580,12 -1581,12 +1581,12 @@@
content:
meta_description:
visible: true
- slug: voluptate-cum-iste-hic-labore-enim-rem
- slug: exercitationem-rem-amet-animi-dolor-quos-temporibus-quaerat-minima
++ slug: quo-aspernatur-occaecati-ex-debitis-numquam-veniam-ratione
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-08T13:41:28.272Z'
- updated_at: '2021-11-08T13:41:28.286Z'
- created_at: '2021-11-08T15:17:47.428Z'
- updated_at: '2021-11-08T15:17:47.443Z'
++ created_at: '2021-11-09T11:27:19.834Z'
++ updated_at: '2021-11-09T11:27:19.857Z'
relationships:
cms_sections:
data: []
@@@ -1714,7 -1715,7 +1715,7 @@@
- id: '1'
type: cms_section
attributes:
- name: Debitis et quo libero iusto blanditiis delectus eaque.
- name: Commodi illo minus natus nihil quaerat ad.
++ name: Accusamus expedita vel aut asperiores fugit.
content: {}
settings:
gutters: No Gutters
@@@ -1723,8 -1724,8 +1724,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-08T13:41:28.591Z'
- updated_at: '2021-11-08T13:41:28.591Z'
- created_at: '2021-11-08T15:17:47.755Z'
- updated_at: '2021-11-08T15:17:47.755Z'
++ created_at: '2021-11-09T11:27:20.135Z'
++ updated_at: '2021-11-09T11:27:20.135Z'
relationships:
cms_page:
data:
@@@ -1735,7 -1736,7 +1736,7 @@@
- id: '2'
type: cms_section
attributes:
- name: Optio perspiciatis veritatis quos tempore.
- name: Quaerat dolor placeat pariatur explicabo.
++ name: Iure quidem reprehenderit minima quisquam fugiat.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@@ -1747,8 -1748,8 +1748,8 @@@
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-08T13:41:28.596Z'
- updated_at: '2021-11-08T13:41:28.596Z'
- created_at: '2021-11-08T15:17:47.760Z'
- updated_at: '2021-11-08T15:17:47.760Z'
++ created_at: '2021-11-09T11:27:20.139Z'
++ updated_at: '2021-11-09T11:27:20.139Z'
relationships:
cms_page:
data:
@@@ -1759,8 -1760,8 +1760,7 @@@
- id: '3'
type: cms_section
attributes:
- name: Hic veritatis commodi quis eaque esse fugit accusamus
- corporis.
- name: Quas fugit accusamus fugiat asperiores molestiae illo
- aut.
++ name: Amet aperiam possimus harum aliquam sequi omnis.
content: {}
settings:
gutters: No Gutters
@@@ -1769,8 -1770,8 +1769,8 @@@
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-08T13:41:28.608Z'
- updated_at: '2021-11-08T13:41:28.608Z'
- created_at: '2021-11-08T15:17:47.772Z'
- updated_at: '2021-11-08T15:17:47.772Z'
++ created_at: '2021-11-09T11:27:20.154Z'
++ updated_at: '2021-11-09T11:27:20.154Z'
relationships:
cms_page:
data:
@@@ -1781,7 -1782,8 +1781,7 @@@
- id: '4'
type: cms_section
attributes:
- name: Reprehenderit non quia vitae neque.
- name: Necessitatibus aperiam consequatur nihil nemo perspiciatis
- fugiat officiis.
++ name: Ratione molestiae sapiente non optio.
content: {}
settings:
gutters: No Gutters
@@@ -1790,8 -1792,8 +1790,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-08T13:41:28.622Z'
- updated_at: '2021-11-08T13:41:28.622Z'
- created_at: '2021-11-08T15:17:47.793Z'
- updated_at: '2021-11-08T15:17:47.793Z'
++ created_at: '2021-11-09T11:27:20.166Z'
++ updated_at: '2021-11-09T11:27:20.166Z'
relationships:
cms_page:
data:
@@@ -1804,7 -1806,8 +1804,7 @@@
- id: '5'
type: cms_section
attributes:
- name: Nam harum non sit exercitationem ea.
- name: Deserunt soluta amet itaque iure alias nam molestiae
- provident.
++ name: Minima quaerat nulla explicabo odio consequuntur tempora.
content: {}
settings:
gutters: No Gutters
@@@ -1813,8 -1816,8 +1813,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-08T13:41:28.636Z'
- updated_at: '2021-11-08T13:41:28.636Z'
- created_at: '2021-11-08T15:17:47.805Z'
- updated_at: '2021-11-08T15:17:47.805Z'
++ created_at: '2021-11-09T11:27:20.178Z'
++ updated_at: '2021-11-09T11:27:20.178Z'
relationships:
cms_page:
data:
@@@ -1874,7 -1877,8 +1874,8 @@@
id: '13'
type: cms_section
attributes:
- name: Ipsum enim maiores quas voluptatibus sapiente.
- name: Cupiditate culpa asperiores quam quisquam molestiae
- deserunt.
++ name: Eos consequatur quia provident animi dolores asperiores
++ eveniet.
content: {}
settings:
gutters: No Gutters
@@@ -1883,8 -1887,8 +1884,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-11-08T13:41:28.902Z'
- updated_at: '2021-11-08T13:41:28.902Z'
- created_at: '2021-11-08T15:17:48.078Z'
- updated_at: '2021-11-08T15:17:48.078Z'
++ created_at: '2021-11-09T11:27:20.416Z'
++ updated_at: '2021-11-09T11:27:20.416Z'
relationships:
cms_page:
data:
@@@ -1959,7 -1963,7 +1960,7 @@@
id: '19'
type: cms_section
attributes:
- name: Aliquid quisquam quas explicabo provident deserunt.
- name: Enim ipsa earum cum unde libero.
++ name: Vitae optio voluptas tempora eveniet quidem minus.
content: {}
settings:
gutters: No Gutters
@@@ -1968,8 -1972,8 +1969,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-08T13:41:29.129Z'
- updated_at: '2021-11-08T13:41:29.129Z'
- created_at: '2021-11-08T15:17:48.319Z'
- updated_at: '2021-11-08T15:17:48.319Z'
++ created_at: '2021-11-09T11:27:20.606Z'
++ updated_at: '2021-11-09T11:27:20.606Z'
relationships:
cms_page:
data:
@@@ -2043,8 -2047,8 +2044,8 @@@
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-08T13:41:29.479Z'
- updated_at: '2021-11-08T13:41:29.495Z'
- created_at: '2021-11-08T15:17:48.676Z'
- updated_at: '2021-11-08T15:17:48.697Z'
++ created_at: '2021-11-09T11:27:20.905Z'
++ updated_at: '2021-11-09T11:27:20.921Z'
relationships:
cms_page:
data:
@@@ -2164,9 -2168,9 +2165,9 @@@
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-08T13:41:30.208Z'
- updated_at: '2021-11-08T15:17:49.415Z'
++ updated_at: '2021-11-09T11:27:21.545Z'
zipcode_required: true
- created_at: '2021-11-08T13:41:30.208Z'
- created_at: '2021-11-08T15:17:49.415Z'
++ created_at: '2021-11-09T11:27:21.545Z'
relationships:
states:
data: []
@@@ -2179,9 -2183,9 +2180,9 @@@
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-08T13:41:30.216Z'
- updated_at: '2021-11-08T15:17:49.423Z'
++ updated_at: '2021-11-09T11:27:21.553Z'
zipcode_required: true
- created_at: '2021-11-08T13:41:30.216Z'
- created_at: '2021-11-08T15:17:49.423Z'
++ created_at: '2021-11-09T11:27:21.553Z'
relationships:
states:
data: []
@@@ -2194,9 -2198,9 +2195,9 @@@
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-08T13:41:30.218Z'
- updated_at: '2021-11-08T15:17:49.426Z'
++ updated_at: '2021-11-09T11:27:21.556Z'
zipcode_required: true
- created_at: '2021-11-08T13:41:30.218Z'
- created_at: '2021-11-08T15:17:49.426Z'
++ created_at: '2021-11-09T11:27:21.556Z'
relationships:
states:
data: []
@@@ -2255,9 -2259,9 +2256,9 @@@
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-08T13:41:30.314Z'
- updated_at: '2021-11-08T15:17:49.516Z'
++ updated_at: '2021-11-09T11:27:21.642Z'
zipcode_required: true
- created_at: '2021-11-08T13:41:30.314Z'
- created_at: '2021-11-08T15:17:49.516Z'
++ created_at: '2021-11-09T11:27:21.642Z'
relationships:
states:
data: []
@@@ -2315,7 -2319,7 +2316,7 @@@
- id: '1'
type: digital_link
attributes:
- token: PvfuCVwEcGKvLxvnM6FVZ93P
- token: d9pqxPRg2spQXH5zJDJVsSXL
++ token: 8zjcPXtzfvc4ViNjeXa2jjFk
access_counter: 0
relationships:
digital:
@@@ -2329,7 -2333,7 +2330,7 @@@
- id: '2'
type: digital_link
attributes:
- token: cnps5VupLXPMUGG6G7atcWQk
- token: emZLoGa6SNd8Z2wmH62P3mvi
++ token: 1meiSdDM3YkWrgjGeseDzj4V
access_counter: 0
relationships:
digital:
@@@ -2383,7 -2387,7 +2384,7 @@@
id: '5'
type: digital_link
attributes:
- token: NoEv1aRpKzyq6nLqkLziE1H7
- token: hBSMnSbqvkVZP14AfvPUydRR
++ token: sg2GGb3yMWYrVJ4C1Vcdx3Q9
access_counter: 0
relationships:
digital:
@@@ -2446,7 -2450,7 +2447,7 @@@
id: '6'
type: digital_link
attributes:
- token: D8EzmoeufQdECdZJbmewADMN
- token: Ppud9NNAKa9dqvxewNubwGNZ
++ token: ZudXzDxVutNErAQ9X2Xg2Aok
access_counter: 0
relationships:
digital:
@@@ -2505,7 -2509,7 +2506,7 @@@
id: '8'
type: digital_link
attributes:
- token: nEnawiWfWiTJs11jmaKmYEUd
- token: L79Y2AFK1w8oN1xPyXdhhpyx
++ token: zwFyXZiqS5K5BiMUxFL2SWnd
access_counter: 0
relationships:
digital:
@@@ -2620,7 -2624,7 +2621,7 @@@
id: '13'
type: digital_link
attributes:
- token: d17cNycqTPFhUQBp6PHghhLw
- token: et9Fn6FqkGyZztUyMkpRZdsc
++ token: EvYHmkSBso7N6tcrfhVZPvcE
access_counter: 0
relationships:
digital:
@@@ -3037,8 -3041,8 +3038,8 @@@
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-08T13:41:43.171Z'
- updated_at: '2021-11-08T13:41:43.183Z'
- created_at: '2021-11-08T15:18:03.356Z'
- updated_at: '2021-11-08T15:18:03.368Z'
++ created_at: '2021-11-09T11:27:33.359Z'
++ updated_at: '2021-11-09T11:27:33.370Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@@ -3086,8 -3090,8 +3087,8 @@@
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-08T13:41:43.231Z'
- updated_at: '2021-11-08T13:41:43.239Z'
- created_at: '2021-11-08T15:18:03.416Z'
- updated_at: '2021-11-08T15:18:03.425Z'
++ created_at: '2021-11-09T11:27:33.415Z'
++ updated_at: '2021-11-09T11:27:33.422Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@@ -3182,8 -3186,8 +3183,8 @@@
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-08T13:41:43.597Z'
- updated_at: '2021-11-08T13:41:43.640Z'
- created_at: '2021-11-08T15:18:03.805Z'
- updated_at: '2021-11-08T15:18:03.849Z'
++ created_at: '2021-11-09T11:27:33.740Z'
++ updated_at: '2021-11-09T11:27:33.787Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@@ -3287,8 -3291,8 +3288,8 @@@
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-08T13:41:43.880Z'
- updated_at: '2021-11-08T13:41:43.891Z'
- created_at: '2021-11-08T15:18:04.080Z'
- updated_at: '2021-11-08T15:18:04.092Z'
++ created_at: '2021-11-09T11:27:34.002Z'
++ updated_at: '2021-11-09T11:27:34.011Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@@ -3388,8 -3392,8 +3389,8 @@@
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-08T13:41:44.267Z'
- updated_at: '2021-11-08T13:41:44.324Z'
- created_at: '2021-11-08T15:18:04.456Z'
- updated_at: '2021-11-08T15:18:04.523Z'
++ created_at: '2021-11-09T11:27:34.342Z'
++ updated_at: '2021-11-09T11:27:34.396Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@@ -3441,10 -3445,10 +3442,10 @@@
examples:
Example:
value:
- error: 'Quantity selected of "Product #130 - 4167" is not available.'
- error: 'Quantity selected of "Product #130 - 8562" is not available.'
++ error: 'Quantity selected of "Product #130 - 5339" is not available.'
errors:
quantity:
- - 'selected of "Product #130 - 4167" is not available.'
- - 'selected of "Product #130 - 8562" is not available.'
++ - 'selected of "Product #130 - 5339" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@@ -3564,8 -3568,8 +3565,8 @@@
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-08T13:41:45.281Z'
- updated_at: '2021-11-08T13:41:45.288Z'
- created_at: '2021-11-08T15:18:05.483Z'
- updated_at: '2021-11-08T15:18:05.490Z'
++ created_at: '2021-11-09T11:27:35.256Z'
++ updated_at: '2021-11-09T11:27:35.263Z'
link:
is_container: false
is_root: false
@@@ -3601,8 -3605,8 +3602,8 @@@
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-08T13:41:45.379Z'
- updated_at: '2021-11-08T13:41:45.385Z'
- created_at: '2021-11-08T15:18:05.591Z'
- updated_at: '2021-11-08T15:18:05.598Z'
++ created_at: '2021-11-09T11:27:35.348Z'
++ updated_at: '2021-11-09T11:27:35.354Z'
link:
is_container: false
is_root: false
@@@ -3638,8 -3642,8 +3639,8 @@@
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-08T13:41:45.472Z'
- updated_at: '2021-11-08T13:41:45.478Z'
- created_at: '2021-11-08T15:18:05.685Z'
- updated_at: '2021-11-08T15:18:05.691Z'
++ created_at: '2021-11-09T11:27:35.440Z'
++ updated_at: '2021-11-09T11:27:35.446Z'
link:
is_container: false
is_root: false
@@@ -3675,8 -3679,8 +3676,8 @@@
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-08T13:41:45.564Z'
- updated_at: '2021-11-08T13:41:45.571Z'
- created_at: '2021-11-08T15:18:05.781Z'
- updated_at: '2021-11-08T15:18:05.788Z'
++ created_at: '2021-11-09T11:27:35.537Z'
++ updated_at: '2021-11-09T11:27:35.544Z'
link:
is_container: false
is_root: false
@@@ -3712,8 -3716,8 +3713,8 @@@
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-08T13:41:45.656Z'
- updated_at: '2021-11-08T13:41:45.662Z'
- created_at: '2021-11-08T15:18:05.874Z'
- updated_at: '2021-11-08T15:18:05.882Z'
++ created_at: '2021-11-09T11:27:35.627Z'
++ updated_at: '2021-11-09T11:27:35.633Z'
link:
is_container: false
is_root: false
@@@ -3749,8 -3753,8 +3750,8 @@@
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-08T13:41:45.749Z'
- updated_at: '2021-11-08T13:41:45.754Z'
- created_at: '2021-11-08T15:18:05.971Z'
- updated_at: '2021-11-08T15:18:05.979Z'
++ created_at: '2021-11-09T11:27:35.718Z'
++ updated_at: '2021-11-09T11:27:35.724Z'
link:
is_container: false
is_root: false
@@@ -3786,8 -3790,8 +3787,8 @@@
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-08T13:41:45.839Z'
- updated_at: '2021-11-08T13:41:45.862Z'
- created_at: '2021-11-08T15:18:06.068Z'
- updated_at: '2021-11-08T15:18:06.074Z'
++ created_at: '2021-11-09T11:27:35.808Z'
++ updated_at: '2021-11-09T11:27:35.814Z'
link:
is_container: false
is_root: false
@@@ -3813,7 -3817,7 +3814,7 @@@
- id: '1'
type: menu_item
attributes:
- name: Neque exercitationem dolores odio dolorum delectus fugiat.
- name: Dolorem voluptatum eius rem aspernatur.
++ name: Pariatur dolore molestiae animi iure impedit itaque.
subtitle:
destination:
new_window: false
@@@ -3823,8 -3827,8 +3824,8 @@@
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-08T13:41:45.194Z'
- updated_at: '2021-11-08T13:41:45.878Z'
- created_at: '2021-11-08T15:18:05.395Z'
- updated_at: '2021-11-08T15:18:06.090Z'
++ created_at: '2021-11-09T11:27:35.169Z'
++ updated_at: '2021-11-09T11:27:35.826Z'
link:
is_container: true
is_root: true
@@@ -3917,8 -3921,8 +3918,8 @@@
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-08T13:41:47.155Z'
- updated_at: '2021-11-08T13:41:47.161Z'
- created_at: '2021-11-08T15:18:07.219Z'
- updated_at: '2021-11-08T15:18:07.226Z'
++ created_at: '2021-11-09T11:27:36.927Z'
++ updated_at: '2021-11-09T11:27:36.933Z'
link:
is_container: false
is_root: false
@@@ -4008,8 -4012,8 +4009,8 @@@
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-08T13:41:47.930Z'
- updated_at: '2021-11-08T13:41:47.937Z'
- created_at: '2021-11-08T15:18:07.983Z'
- updated_at: '2021-11-08T15:18:07.990Z'
++ created_at: '2021-11-09T11:27:37.641Z'
++ updated_at: '2021-11-09T11:27:37.647Z'
link:
is_container: false
is_root: false
@@@ -4097,8 -4101,8 +4098,8 @@@
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-08T13:41:49.147Z'
- updated_at: '2021-11-08T13:41:49.182Z'
- created_at: '2021-11-08T15:18:09.260Z'
- updated_at: '2021-11-08T15:18:09.297Z'
++ created_at: '2021-11-09T11:27:38.810Z'
++ updated_at: '2021-11-09T11:27:38.847Z'
link:
is_container: false
is_root: false
@@@ -4235,8 -4239,8 +4236,8 @@@
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-08T13:41:51.975Z'
- updated_at: '2021-11-08T13:41:52.013Z'
- created_at: '2021-11-08T15:18:12.199Z'
- updated_at: '2021-11-08T15:18:12.240Z'
++ created_at: '2021-11-09T11:27:41.566Z'
++ updated_at: '2021-11-09T11:27:41.601Z'
link:
is_container: false
is_root: false
@@@ -4340,8 -4344,8 +4341,8 @@@
name: Main Menu
location: header
locale: en
- created_at: '2021-11-08T13:41:52.823Z'
- updated_at: '2021-11-08T13:41:53.029Z'
- created_at: '2021-11-08T15:18:13.061Z'
- updated_at: '2021-11-08T15:18:13.263Z'
++ created_at: '2021-11-09T11:27:42.398Z'
++ updated_at: '2021-11-09T11:27:42.587Z'
relationships:
menu_items:
data:
@@@ -4357,8 -4361,8 +4358,8 @@@
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-08T13:41:52.835Z'
- updated_at: '2021-11-08T13:41:53.211Z'
- created_at: '2021-11-08T15:18:13.075Z'
- updated_at: '2021-11-08T15:18:13.460Z'
++ created_at: '2021-11-09T11:27:42.411Z'
++ updated_at: '2021-11-09T11:27:42.768Z'
relationships:
menu_items:
data:
@@@ -4421,8 -4425,8 +4422,8 @@@
name: Main Menu
location: header
locale: en
- created_at: '2021-11-08T13:41:53.752Z'
- updated_at: '2021-11-08T13:41:53.760Z'
- created_at: '2021-11-08T15:18:14.007Z'
- updated_at: '2021-11-08T15:18:14.016Z'
++ created_at: '2021-11-09T11:27:43.285Z'
++ updated_at: '2021-11-09T11:27:43.293Z'
relationships:
menu_items:
data:
@@@ -4490,8 -4494,8 +4491,8 @@@
name: Main Menu
location: header
locale: en
- created_at: '2021-11-08T13:41:53.837Z'
- updated_at: '2021-11-08T13:41:53.845Z'
- created_at: '2021-11-08T15:18:14.098Z'
- updated_at: '2021-11-08T15:18:14.108Z'
++ created_at: '2021-11-09T11:27:43.365Z'
++ updated_at: '2021-11-09T11:27:43.373Z'
relationships:
menu_items:
data:
@@@ -4555,8 -4559,8 +4556,8 @@@
name: Main Menu
location: header
locale: en
- created_at: '2021-11-08T13:41:53.986Z'
- updated_at: '2021-11-08T13:41:53.994Z'
- created_at: '2021-11-08T15:18:14.237Z'
- updated_at: '2021-11-08T15:18:14.250Z'
++ created_at: '2021-11-09T11:27:43.487Z'
++ updated_at: '2021-11-09T11:27:43.495Z'
relationships:
menu_items:
data:
@@@ -4691,8 -4695,8 +4692,8 @@@
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-08T13:41:54.283Z'
- updated_at: '2021-11-08T13:41:54.283Z'
- created_at: '2021-11-08T15:18:14.575Z'
- updated_at: '2021-11-08T15:18:14.575Z'
++ created_at: '2021-11-09T11:27:43.775Z'
++ updated_at: '2021-11-09T11:27:43.775Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@@ -4705,8 -4709,8 +4706,8 @@@
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-08T13:41:54.286Z'
- updated_at: '2021-11-08T13:41:54.286Z'
- created_at: '2021-11-08T15:18:14.577Z'
- updated_at: '2021-11-08T15:18:14.577Z'
++ created_at: '2021-11-09T11:27:43.777Z'
++ updated_at: '2021-11-09T11:27:43.777Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@@ -4759,8 -4763,8 +4760,8 @@@
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-08T13:41:54.382Z'
- updated_at: '2021-11-08T13:41:54.382Z'
- created_at: '2021-11-08T15:18:14.676Z'
- updated_at: '2021-11-08T15:18:14.676Z'
++ created_at: '2021-11-09T11:27:43.874Z'
++ updated_at: '2021-11-09T11:27:43.874Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@@ -4819,8 -4823,8 +4820,8 @@@
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-08T13:41:54.448Z'
- updated_at: '2021-11-08T13:41:54.448Z'
- created_at: '2021-11-08T15:18:14.744Z'
- updated_at: '2021-11-08T15:18:14.744Z'
++ created_at: '2021-11-09T11:27:43.938Z'
++ updated_at: '2021-11-09T11:27:43.938Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@@ -4878,8 -4882,8 +4879,8 @@@
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-08T13:41:54.560Z'
- updated_at: '2021-11-08T13:41:54.570Z'
- created_at: '2021-11-08T15:18:14.856Z'
- updated_at: '2021-11-08T15:18:14.867Z'
++ created_at: '2021-11-09T11:27:44.032Z'
++ updated_at: '2021-11-09T11:27:44.043Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@@ -5017,8 -5021,8 +5018,8 @@@
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-08T13:41:54.800Z'
- updated_at: '2021-11-08T13:41:54.800Z'
- created_at: '2021-11-08T15:18:15.105Z'
- updated_at: '2021-11-08T15:18:15.105Z'
++ created_at: '2021-11-09T11:27:44.263Z'
++ updated_at: '2021-11-09T11:27:44.263Z'
public_metadata: {}
private_metadata: {}
relationships:
@@@ -5032,8 -5036,8 +5033,8 @@@
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-08T13:41:54.808Z'
- updated_at: '2021-11-08T13:41:54.808Z'
- created_at: '2021-11-08T15:18:15.113Z'
- updated_at: '2021-11-08T15:18:15.113Z'
++ created_at: '2021-11-09T11:27:44.270Z'
++ updated_at: '2021-11-09T11:27:44.270Z'
public_metadata: {}
private_metadata: {}
relationships:
@@@ -5094,8 -5098,8 +5095,8 @@@
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-08T13:41:54.912Z'
- updated_at: '2021-11-08T13:41:54.912Z'
- created_at: '2021-11-08T15:18:15.217Z'
- updated_at: '2021-11-08T15:18:15.217Z'
++ created_at: '2021-11-09T11:27:44.367Z'
++ updated_at: '2021-11-09T11:27:44.367Z'
public_metadata: {}
private_metadata: {}
relationships:
@@@ -5160,8 -5164,8 +5161,8 @@@
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-08T13:41:54.977Z'
- updated_at: '2021-11-08T13:41:54.977Z'
- created_at: '2021-11-08T15:18:15.297Z'
- updated_at: '2021-11-08T15:18:15.297Z'
++ created_at: '2021-11-09T11:27:44.438Z'
++ updated_at: '2021-11-09T11:27:44.438Z'
public_metadata: {}
private_metadata: {}
relationships:
@@@ -5227,8 -5231,8 +5228,8 @@@
position: 1
name: M
presentation: S
- created_at: '2021-11-08T13:41:55.099Z'
- updated_at: '2021-11-08T13:41:55.111Z'
- created_at: '2021-11-08T15:18:15.410Z'
- updated_at: '2021-11-08T15:18:15.422Z'
++ created_at: '2021-11-09T11:27:44.540Z'
++ updated_at: '2021-11-09T11:27:44.553Z'
public_metadata: {}
private_metadata: {}
relationships:
@@@ -5358,7 -5362,7 +5359,7 @@@
- id: '40'
type: order
attributes:
- number: R136264553
- number: R741041176
++ number: R628635020
item_total: '0.0'
total: '0.0'
state: cart
@@@ -5367,10 -5371,10 +5368,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:55.366Z'
- updated_at: '2021-11-08T13:41:55.366Z'
- created_at: '2021-11-08T15:18:15.686Z'
- updated_at: '2021-11-08T15:18:15.686Z'
++ created_at: '2021-11-09T11:27:44.803Z'
++ updated_at: '2021-11-09T11:27:44.803Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@@ -5401,11 -5405,11 +5402,11 @@@
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -5444,7 -5448,7 +5445,7 @@@
- id: '41'
type: order
attributes:
- number: R221885376
- number: R133945741
++ number: R369818473
item_total: '0.0'
total: '0.0'
state: cart
@@@ -5453,10 -5457,10 +5454,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:55.385Z'
- updated_at: '2021-11-08T13:41:55.385Z'
- created_at: '2021-11-08T15:18:15.702Z'
- updated_at: '2021-11-08T15:18:15.702Z'
++ created_at: '2021-11-09T11:27:44.815Z'
++ updated_at: '2021-11-09T11:27:44.815Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@@ -5487,11 -5491,11 +5488,11 @@@
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -5577,7 -5581,7 +5578,7 @@@
id: '44'
type: order
attributes:
- number: R159168054
- number: R142516546
++ number: R888296862
item_total: '0.0'
total: '0.0'
state: cart
@@@ -5588,8 -5592,8 +5589,8 @@@
payment_state:
email:
special_instructions:
- created_at: '2021-11-08T13:41:55.793Z'
- updated_at: '2021-11-08T13:41:55.818Z'
- created_at: '2021-11-08T15:18:16.131Z'
- updated_at: '2021-11-08T15:18:16.154Z'
++ created_at: '2021-11-09T11:27:45.197Z'
++ updated_at: '2021-11-09T11:27:45.214Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@@ -5620,11 -5624,11 +5621,11 @@@
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -5705,7 -5709,7 +5706,7 @@@
id: '45'
type: order
attributes:
- number: R872505684
- number: R797008104
++ number: R740967002
item_total: '10.0'
total: '110.0'
state: delivery
@@@ -5714,10 -5718,10 +5715,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:55.886Z'
- updated_at: '2021-11-08T13:41:56.064Z'
- created_at: '2021-11-08T15:18:16.226Z'
- updated_at: '2021-11-08T15:18:16.411Z'
++ created_at: '2021-11-09T11:27:45.273Z'
++ updated_at: '2021-11-09T11:27:45.455Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -5748,11 -5752,11 +5749,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -5849,7 -5853,7 +5850,7 @@@
id: '47'
type: order
attributes:
- number: R780342568
- number: R197706282
++ number: R935822382
item_total: '10.0'
total: '110.0'
state: delivery
@@@ -5860,8 -5864,8 +5861,8 @@@
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:56.381Z'
- updated_at: '2021-11-08T13:41:56.521Z'
- created_at: '2021-11-08T15:18:16.733Z'
- updated_at: '2021-11-08T15:18:16.886Z'
++ created_at: '2021-11-09T11:27:45.718Z'
++ updated_at: '2021-11-09T11:27:45.860Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -5892,11 -5896,11 +5893,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6049,7 -6053,7 +6050,7 @@@
id: '52'
type: order
attributes:
- number: R493527898
- number: R899326450
++ number: R744586058
item_total: '10.0'
total: '110.0'
state: payment
@@@ -6058,10 -6062,10 +6059,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:57.450Z'
- updated_at: '2021-11-08T13:41:57.639Z'
- created_at: '2021-11-08T15:18:18.001Z'
- updated_at: '2021-11-08T15:18:18.216Z'
++ created_at: '2021-11-09T11:27:46.688Z'
++ updated_at: '2021-11-09T11:27:46.875Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -6092,11 -6096,11 +6093,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6196,7 -6200,7 +6197,7 @@@
id: '54'
type: order
attributes:
- number: R168049079
- number: R936016062
++ number: R837753886
item_total: '10.0'
total: '110.0'
state: payment
@@@ -6205,10 -6209,10 +6206,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:57.934Z'
- updated_at: '2021-11-08T13:41:58.126Z'
- created_at: '2021-11-08T15:18:18.547Z'
- updated_at: '2021-11-08T15:18:18.772Z'
++ created_at: '2021-11-09T11:27:47.144Z'
++ updated_at: '2021-11-09T11:27:47.315Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -6239,11 -6243,11 +6240,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6343,19 -6347,19 +6344,19 @@@
id: '56'
type: order
attributes:
- number: R464001013
- number: R291271768
++ number: R763839038
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-08T13:41:58.722Z'
- completed_at: '2021-11-08T15:18:19.362Z'
++ completed_at: '2021-11-09T11:27:47.869Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-08T13:41:58.399Z'
- updated_at: '2021-11-08T13:41:58.722Z'
- created_at: '2021-11-08T15:18:19.045Z'
- updated_at: '2021-11-08T15:18:19.362Z'
++ created_at: '2021-11-09T11:27:47.567Z'
++ updated_at: '2021-11-09T11:27:47.869Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -6386,11 -6390,11 +6387,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6501,7 -6505,7 +6502,7 @@@
id: '59'
type: order
attributes:
- number: R185479670
- number: R647280035
++ number: R943944715
item_total: '0.0'
total: '0.0'
state: cart
@@@ -6510,10 -6514,10 +6511,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:59.238Z'
- updated_at: '2021-11-08T13:41:59.394Z'
- created_at: '2021-11-08T15:18:19.865Z'
- updated_at: '2021-11-08T15:18:20.019Z'
++ created_at: '2021-11-09T11:27:48.479Z'
++ updated_at: '2021-11-09T11:27:48.625Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@@ -6544,11 -6548,11 +6545,11 @@@
display_ship_total: "$0.00"
display_shipment_total: "$0.00"
display_total: "$0.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$0.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6643,7 -6647,7 +6644,7 @@@
id: '61'
type: order
attributes:
- number: R260084636
- number: R196770148
++ number: R531982411
item_total: '10.0'
total: '110.0'
state: delivery
@@@ -6652,10 -6656,10 +6653,10 @@@
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-08T13:41:59.680Z'
- updated_at: '2021-11-08T13:41:59.804Z'
- created_at: '2021-11-08T15:18:20.308Z'
- updated_at: '2021-11-08T15:18:20.438Z'
++ created_at: '2021-11-09T11:27:48.876Z'
++ updated_at: '2021-11-09T11:27:48.997Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@@ -6686,11 -6690,11 +6687,11 @@@
display_ship_total: "$100.00"
display_shipment_total: "$100.00"
display_total: "$110.00"
- display_total_available_store_credit: "$0.00"
-- display_store_credit_remaining_after_capture: "$0.00"
display_total_applicable_store_credit: "$0.00"
display_total_applied_store_credit: "$0.00"
display_order_total_after_store_credit: "$110.00"
+ display_total_available_store_credit: "$0.00"
++ display_store_credit_remaining_after_capture: "$0.00"
relationships:
user:
data:
@@@ -6958,8 -6962,8 +6959,8 @@@
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-08T13:42:02.796Z'
- updated_at: '2021-11-08T13:42:02.796Z'
- created_at: '2021-11-08T15:18:22.890Z'
- updated_at: '2021-11-08T15:18:22.890Z'
++ created_at: '2021-11-09T11:27:51.177Z'
++ updated_at: '2021-11-09T11:27:51.177Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -6979,8 -6983,8 +6980,8 @@@
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-08T13:42:02.814Z'
- updated_at: '2021-11-08T13:42:02.814Z'
- created_at: '2021-11-08T15:18:22.900Z'
- updated_at: '2021-11-08T15:18:22.900Z'
++ created_at: '2021-11-09T11:27:51.187Z'
++ updated_at: '2021-11-09T11:27:51.187Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7000,8 -7004,8 +7001,8 @@@
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-08T13:42:02.825Z'
- updated_at: '2021-11-08T13:42:02.825Z'
- created_at: '2021-11-08T15:18:22.907Z'
- updated_at: '2021-11-08T15:18:22.907Z'
++ created_at: '2021-11-09T11:27:51.193Z'
++ updated_at: '2021-11-09T11:27:51.193Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7021,8 -7025,8 +7022,8 @@@
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-08T13:42:02.836Z'
- updated_at: '2021-11-08T13:42:02.836Z'
- created_at: '2021-11-08T15:18:22.913Z'
- updated_at: '2021-11-08T15:18:22.913Z'
++ created_at: '2021-11-09T11:27:51.198Z'
++ updated_at: '2021-11-09T11:27:51.198Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7045,8 -7049,8 +7046,8 @@@
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-08T13:42:02.847Z'
- updated_at: '2021-11-08T13:42:02.847Z'
- created_at: '2021-11-08T15:18:22.920Z'
- updated_at: '2021-11-08T15:18:22.920Z'
++ created_at: '2021-11-09T11:27:51.204Z'
++ updated_at: '2021-11-09T11:27:51.204Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7116,8 -7120,8 +7117,8 @@@
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-08T13:42:03.391Z'
- updated_at: '2021-11-08T13:42:03.391Z'
- created_at: '2021-11-08T15:18:23.135Z'
- updated_at: '2021-11-08T15:18:23.135Z'
++ created_at: '2021-11-09T11:27:51.383Z'
++ updated_at: '2021-11-09T11:27:51.383Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7193,8 -7197,8 +7194,8 @@@
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-08T13:42:03.552Z'
- updated_at: '2021-11-08T13:42:03.552Z'
- created_at: '2021-11-08T15:18:23.276Z'
- updated_at: '2021-11-08T15:18:23.276Z'
++ created_at: '2021-11-09T11:27:51.510Z'
++ updated_at: '2021-11-09T11:27:51.510Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7269,8 -7273,8 +7270,8 @@@
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-08T13:42:03.820Z'
- updated_at: '2021-11-08T13:42:03.842Z'
- created_at: '2021-11-08T15:18:23.472Z'
- updated_at: '2021-11-08T15:18:23.488Z'
++ created_at: '2021-11-09T11:27:51.693Z'
++ updated_at: '2021-11-09T11:27:51.707Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -7418,9 -7422,9 +7419,9 @@@
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-08T13:42:04.835Z'
- updated_at: '2021-11-08T13:42:04.876Z'
- number: PHEVNJLB
- created_at: '2021-11-08T15:18:23.977Z'
- updated_at: '2021-11-08T15:18:24.007Z'
- number: PS7WMFE0
++ created_at: '2021-11-09T11:27:52.145Z'
++ updated_at: '2021-11-09T11:27:52.171Z'
++ number: PRZBNPR1
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@@ -7457,9 -7461,9 +7458,9 @@@
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-08T13:42:04.868Z'
- updated_at: '2021-11-08T13:42:04.868Z'
- number: PZ4OZB9Y
- created_at: '2021-11-08T15:18:24.002Z'
- updated_at: '2021-11-08T15:18:24.002Z'
- number: PS2D9K0O
++ created_at: '2021-11-09T11:27:52.166Z'
++ updated_at: '2021-11-09T11:27:52.166Z'
++ number: PEHEBTK3
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@@ -7547,9 -7551,9 +7548,9 @@@
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-08T13:42:05.537Z'
- updated_at: '2021-11-08T13:42:05.537Z'
- number: P5M0UAFI
- created_at: '2021-11-08T15:18:24.268Z'
- updated_at: '2021-11-08T15:18:24.268Z'
- number: PW8TW80F
++ created_at: '2021-11-09T11:27:52.400Z'
++ updated_at: '2021-11-09T11:27:52.400Z'
++ number: PPAX2BOI
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@@ -7687,8 -7691,8 +7688,8 @@@
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-08T13:42:06.173Z'
- updated_at: '2021-11-08T13:42:06.173Z'
- created_at: '2021-11-08T15:18:24.645Z'
- updated_at: '2021-11-08T15:18:24.645Z'
++ created_at: '2021-11-09T11:27:52.742Z'
++ updated_at: '2021-11-09T11:27:52.742Z'
code: POP123
relationships:
promotions:
@@@ -7697,8 -7701,8 +7698,8 @@@
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-08T13:42:06.175Z'
- updated_at: '2021-11-08T13:42:06.175Z'
- created_at: '2021-11-08T15:18:24.647Z'
- updated_at: '2021-11-08T15:18:24.647Z'
++ created_at: '2021-11-09T11:27:52.743Z'
++ updated_at: '2021-11-09T11:27:52.743Z'
code: POP123
relationships:
promotions:
@@@ -7754,8 -7758,8 +7755,8 @@@
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-08T13:42:06.271Z'
- updated_at: '2021-11-08T13:42:06.271Z'
- created_at: '2021-11-08T15:18:24.734Z'
- updated_at: '2021-11-08T15:18:24.734Z'
++ created_at: '2021-11-09T11:27:52.829Z'
++ updated_at: '2021-11-09T11:27:52.829Z'
code: 2021-BFM
relationships:
promotions:
@@@ -7815,8 -7819,8 +7816,8 @@@
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-08T13:42:06.337Z'
- updated_at: '2021-11-08T13:42:06.337Z'
- created_at: '2021-11-08T15:18:24.806Z'
- updated_at: '2021-11-08T15:18:24.806Z'
++ created_at: '2021-11-09T11:27:52.895Z'
++ updated_at: '2021-11-09T11:27:52.895Z'
code: MJO
relationships:
promotions:
@@@ -7877,8 -7881,8 +7878,8 @@@
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-08T13:42:06.450Z'
- updated_at: '2021-11-08T13:42:06.459Z'
- created_at: '2021-11-08T15:18:24.919Z'
- updated_at: '2021-11-08T15:18:24.928Z'
++ created_at: '2021-11-09T11:27:52.992Z'
++ updated_at: '2021-11-09T11:27:53.001Z'
code: 2021-Promos
relationships:
promotions:
@@@ -7960,6 -7964,277 +7961,277 @@@
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
+ "/api/v2/platform/roles":
+ get:
+ summary: Return a list of Roles
+ tags:
+ - Roles
+ security:
+ - bearer_auth: []
+ description: Returns a list of Roles
+ operationId: roles-list
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: filter[name_eq]
+ in: query
+ description: ''
+ example: admin
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '1'
+ type: role
+ attributes:
+ name: 'Role #1'
- created_at: '2021-11-08T15:18:25.297Z'
- updated_at: '2021-11-08T15:18:25.297Z'
++ created_at: '2021-11-09T11:27:53.207Z'
++ updated_at: '2021-11-09T11:27:53.207Z'
+ - id: '2'
+ type: role
+ attributes:
+ name: 'Role #2'
- created_at: '2021-11-08T15:18:25.299Z'
- updated_at: '2021-11-08T15:18:25.299Z'
++ created_at: '2021-11-09T11:27:53.209Z'
++ updated_at: '2021-11-09T11:27:53.209Z'
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/roles?page=1&per_page=&filter[name_eq]=
+ next: http://www.example.com/api/v2/platform/roles?filter%5Bname_eq%5D=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/roles?filter%5Bname_eq%5D=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/roles?filter%5Bname_eq%5D=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/roles?filter%5Bname_eq%5D=&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"
+ post:
+ summary: Create a Role
+ tags:
+ - Roles
+ security:
+ - bearer_auth: []
+ description: Creates a Role
+ operationId: create-role
+ parameters: []
+ responses:
+ '201':
+ description: Record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '5'
+ type: role
+ attributes:
+ name: 'Role #5'
- created_at: '2021-11-08T15:18:25.397Z'
- updated_at: '2021-11-08T15:18:25.397Z'
++ created_at: '2021-11-09T11:27:53.296Z'
++ updated_at: '2021-11-09T11:27:53.296Z'
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank
+ errors:
+ name:
+ - can't be blank
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/create_role_params"
+ "/api/v2/platform/roles/{id}":
+ get:
+ summary: Return a Role
+ tags:
+ - Roles
+ security:
+ - bearer_auth: []
+ description: Returns a Role
+ operationId: show-role
+ 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: '6'
+ type: role
+ attributes:
+ name: 'Role #6'
- created_at: '2021-11-08T15:18:25.459Z'
- updated_at: '2021-11-08T15:18:25.459Z'
++ created_at: '2021-11-09T11:27:53.355Z'
++ updated_at: '2021-11-09T11:27:53.355Z'
+ 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"
+ patch:
+ summary: Update a Role
+ tags:
+ - Roles
+ security:
+ - bearer_auth: []
+ description: Updates a Role
+ operationId: update-role
+ 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: role
+ attributes:
+ name: administrator
- created_at: '2021-11-08T15:18:25.555Z'
- updated_at: '2021-11-08T15:18:25.564Z'
++ created_at: '2021-11-09T11:27:53.455Z'
++ updated_at: '2021-11-09T11:27:53.463Z'
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank
+ errors:
+ name:
+ - can't be blank
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ '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"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/update_role_params"
+ delete:
+ summary: Delete a Role
+ tags:
+ - Roles
+ security:
+ - bearer_auth: []
+ description: Deletes a Role
+ operationId: delete-role
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Record deleted
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ 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/shipments":
get:
summary: Return a list of Shipments
@@@ -8006,12 -8281,12 +8278,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H32072739964
- number: H78041163696
++ number: H44064496615
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-08T13:42:06.762Z'
- updated_at: '2021-11-08T13:42:06.768Z'
- created_at: '2021-11-08T15:18:25.806Z'
- updated_at: '2021-11-08T15:18:25.810Z'
++ created_at: '2021-11-09T11:27:53.690Z'
++ updated_at: '2021-11-09T11:27:53.695Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8022,8 -8297,8 +8294,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8055,12 -8330,12 +8327,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H07566324744
- number: H27823566859
++ number: H74585843112
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-08T13:42:06.820Z'
- updated_at: '2021-11-08T13:42:06.825Z'
- created_at: '2021-11-08T15:18:25.855Z'
- updated_at: '2021-11-08T15:18:25.860Z'
++ created_at: '2021-11-09T11:27:53.734Z'
++ updated_at: '2021-11-09T11:27:53.739Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8071,8 -8346,8 +8343,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8157,12 -8432,12 +8429,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H65215921729
- number: H20858024056
++ number: H91252351044
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-08T13:42:07.857Z'
- updated_at: '2021-11-08T13:42:07.889Z'
- created_at: '2021-11-08T15:18:26.338Z'
- updated_at: '2021-11-08T15:18:26.376Z'
++ created_at: '2021-11-09T11:27:54.164Z'
++ updated_at: '2021-11-09T11:27:54.190Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8173,8 -8448,8 +8445,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8298,12 -8573,12 +8570,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H28559934911
- number: H02485827676
++ number: H24297189907
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-08T13:42:09.889Z'
- updated_at: '2021-11-08T13:42:09.958Z'
- created_at: '2021-11-08T15:18:27.809Z'
- updated_at: '2021-11-08T15:18:27.867Z'
++ created_at: '2021-11-09T11:27:55.366Z'
++ updated_at: '2021-11-09T11:27:55.413Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8314,8 -8589,8 +8586,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8404,12 -8679,12 +8676,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H79654102319
- number: H71236205853
++ number: H62964635302
cost: '100.0'
- shipped_at: '2021-11-08T13:42:10.898Z'
- shipped_at: '2021-11-08T15:18:28.576Z'
++ shipped_at: '2021-11-09T11:27:56.037Z'
state: shipped
- created_at: '2021-11-08T13:42:10.841Z'
- updated_at: '2021-11-08T13:42:10.898Z'
- created_at: '2021-11-08T15:18:28.524Z'
- updated_at: '2021-11-08T15:18:28.576Z'
++ created_at: '2021-11-09T11:27:55.991Z'
++ updated_at: '2021-11-09T11:27:56.037Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8420,8 -8695,8 +8692,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8510,12 -8785,12 +8782,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H49080576108
- number: H83042622495
++ number: H35894389626
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-08T13:42:11.887Z'
- updated_at: '2021-11-08T13:42:11.961Z'
- created_at: '2021-11-08T15:18:29.234Z'
- updated_at: '2021-11-08T15:18:29.274Z'
++ created_at: '2021-11-09T11:27:56.625Z'
++ updated_at: '2021-11-09T11:27:56.664Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8526,8 -8801,8 +8798,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8616,12 -8891,12 +8888,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H90538090585
- number: H36395903719
++ number: H04749971676
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-08T13:42:13.790Z'
- updated_at: '2021-11-08T13:42:13.981Z'
- created_at: '2021-11-08T15:18:29.941Z'
- updated_at: '2021-11-08T15:18:29.985Z'
++ created_at: '2021-11-09T11:27:57.270Z'
++ updated_at: '2021-11-09T11:27:57.312Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8632,8 -8907,8 +8904,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8722,12 -8997,12 +8994,12 @@@
type: shipment
attributes:
tracking: U10000
- number: H88989060708
- number: H71956341575
++ number: H18373719662
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-08T13:42:14.879Z'
- updated_at: '2021-11-08T13:42:14.926Z'
- created_at: '2021-11-08T15:18:30.667Z'
- updated_at: '2021-11-08T15:18:30.714Z'
++ created_at: '2021-11-09T11:27:57.902Z'
++ updated_at: '2021-11-09T11:27:57.940Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@@ -8738,8 -9013,8 +9010,8 @@@
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
-- display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
++ display_discounted_cost: "$100.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@@ -8832,14 -9107,14 +9104,14 @@@
type: shipping_category
attributes:
name: 'ShippingCategory #116'
- created_at: '2021-11-08T13:42:15.415Z'
- updated_at: '2021-11-08T13:42:15.415Z'
- created_at: '2021-11-08T15:18:31.118Z'
- updated_at: '2021-11-08T15:18:31.118Z'
++ created_at: '2021-11-09T11:27:58.303Z'
++ updated_at: '2021-11-09T11:27:58.303Z'
- id: '117'
type: shipping_category
attributes:
name: 'ShippingCategory #117'
- created_at: '2021-11-08T13:42:15.417Z'
- updated_at: '2021-11-08T13:42:15.417Z'
- created_at: '2021-11-08T15:18:31.120Z'
- updated_at: '2021-11-08T15:18:31.120Z'
++ created_at: '2021-11-09T11:27:58.304Z'
++ updated_at: '2021-11-09T11:27:58.304Z'
meta:
count: 2
total_count: 2
@@@ -8884,8 -9159,8 +9156,8 @@@
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-11-08T13:42:15.517Z'
- updated_at: '2021-11-08T13:42:15.517Z'
- created_at: '2021-11-08T15:18:31.208Z'
- updated_at: '2021-11-08T15:18:31.208Z'
++ created_at: '2021-11-09T11:27:58.395Z'
++ updated_at: '2021-11-09T11:27:58.395Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -8934,8 -9209,8 +9206,8 @@@
type: shipping_category
attributes:
name: 'ShippingCategory #121'
- created_at: '2021-11-08T13:42:15.597Z'
- updated_at: '2021-11-08T13:42:15.597Z'
- created_at: '2021-11-08T15:18:31.285Z'
- updated_at: '2021-11-08T15:18:31.285Z'
++ created_at: '2021-11-09T11:27:58.459Z'
++ updated_at: '2021-11-09T11:27:58.459Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@@ -8985,8 -9260,8 +9257,8 @@@
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-08T13:42:15.701Z'
- updated_at: '2021-11-08T13:42:15.710Z'
- created_at: '2021-11-08T15:18:31.383Z'
- updated_at: '2021-11-08T15:18:31.393Z'
++ created_at: '2021-11-09T11:27:58.562Z'
++ updated_at: '2021-11-09T11:27:58.571Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -9120,8 -9395,8 +9392,8 @@@
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-08T13:42:16.070Z'
- updated_at: '2021-11-08T13:42:16.070Z'
- created_at: '2021-11-08T15:18:31.627Z'
- updated_at: '2021-11-08T15:18:31.627Z'
++ created_at: '2021-11-09T11:27:58.788Z'
++ updated_at: '2021-11-09T11:27:58.788Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -9146,8 -9421,8 +9418,8 @@@
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-08T13:42:16.089Z'
- updated_at: '2021-11-08T13:42:16.089Z'
- created_at: '2021-11-08T15:18:31.648Z'
- updated_at: '2021-11-08T15:18:31.648Z'
++ created_at: '2021-11-09T11:27:58.802Z'
++ updated_at: '2021-11-09T11:27:58.802Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -9219,8 -9494,8 +9491,8 @@@
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-08T13:42:16.253Z'
- updated_at: '2021-11-08T13:42:16.253Z'
- created_at: '2021-11-08T15:18:31.788Z'
- updated_at: '2021-11-08T15:18:31.788Z'
++ created_at: '2021-11-09T11:27:58.937Z'
++ updated_at: '2021-11-09T11:27:58.937Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -9306,8 -9581,8 +9578,8 @@@
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-08T13:42:16.363Z'
- updated_at: '2021-11-08T13:42:16.363Z'
- created_at: '2021-11-08T15:18:31.875Z'
- updated_at: '2021-11-08T15:18:31.875Z'
++ created_at: '2021-11-09T11:27:59.015Z'
++ updated_at: '2021-11-09T11:27:59.015Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -9384,8 -9659,8 +9656,8 @@@
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-08T13:42:16.521Z'
- updated_at: '2021-11-08T13:42:16.546Z'
- created_at: '2021-11-08T15:18:32.012Z'
- updated_at: '2021-11-08T15:18:32.036Z'
++ created_at: '2021-11-09T11:27:59.151Z'
++ updated_at: '2021-11-09T11:27:59.172Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@@ -9479,140 -9754,446 +9751,942 @@@
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
+ "/api/v2/platform/store_credits":
+ get:
+ summary: Return a list of Store Credits
+ tags:
+ - Store Credits
+ security:
+ - bearer_auth: []
+ description: Returns a list of Store Credits
+ operationId: store-credits-list
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: user,created_by,category,credit_type
+ schema:
+ type: string
+ - name: filter[user_id_eq]
+ in: query
+ description: ''
- example: 5
++ example: '5'
+ schema:
+ type: string
+ - name: filter[created_by_id_eq]
+ in: query
+ description: ''
- example: 2
++ example: '2'
+ schema:
+ type: string
+ - name: filter[amount_gteq]
+ in: query
+ description: ''
+ example: 50.0
+ schema:
+ type: string
+ - name: filter[currency_eq]
+ in: query
+ description: ''
+ example: USD
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '2'
+ type: store_credit
+ attributes:
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
- created_at: '2021-11-08T13:42:16.868Z'
- updated_at: '2021-11-08T13:42:16.868Z'
++ created_at: '2021-11-09T11:27:59.462Z'
++ updated_at: '2021-11-09T11:27:59.462Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
+ relationships:
+ user:
+ data:
+ id: '97'
+ type: user
+ created_by:
+ data:
+ id: '98'
+ type: user
+ store_credit_category:
+ data:
+ id: '2'
+ type: store_credit_category
+ store_credit_type:
+ data:
+ id: '2'
+ type: store_credit_type
+ store_credit_events:
+ data:
+ - id: '3'
+ type: store_credit_event
+ - id: '3'
+ type: store_credit
+ attributes:
+ amount: '150.0'
+ amount_used: '0.0'
+ memo:
+ deleted_at:
+ currency: USD
+ amount_authorized: '0.0'
+ originator_type:
- created_at: '2021-11-08T13:42:16.884Z'
- updated_at: '2021-11-08T13:42:16.884Z'
++ created_at: '2021-11-09T11:27:59.472Z'
++ updated_at: '2021-11-09T11:27:59.472Z'
+ public_metadata: {}
+ private_metadata: {}
+ display_amount_used: "$0.00"
+ display_amount: "$150.00"
+ relationships:
+ user:
+ data:
+ id: '97'
+ type: user
+ created_by:
+ data:
+ id: '99'
+ type: user
+ store_credit_category:
+ data:
+ id: '3'
+ type: store_credit_category
+ store_credit_type:
+ data:
- id: '3'
- type: store_credit_type
- store_credit_events:
++ id: '3'
++ type: store_credit_type
++ store_credit_events:
++ data:
++ - id: '4'
++ type: store_credit_event
++ meta:
++ count: 2
++ total_count: 2
++ total_pages: 1
++ links:
++ self: http://www.example.com/api/v2/platform/store_credits?page=1&per_page=&include=&filter[user_id_eq]=&filter[created_by_id_eq]=&filter[amount_gteq]=&filter[currency_eq]=
++ next: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
++ prev: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
++ last: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_id_eq%5D=&include=&page=1&per_page=
++ first: http://www.example.com/api/v2/platform/store_credits?filter%5Bamount_gteq%5D=&filter%5Bcreated_by_id_eq%5D=&filter%5Bcurrency_eq%5D=&filter%5Buser_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"
++ post:
++ summary: Create a Store Credit
++ tags:
++ - Store Credits
++ security:
++ - bearer_auth: []
++ description: Creates a Store Credit
++ operationId: create-store-credit
++ parameters:
++ - name: include
++ in: query
++ description: 'Select which associated resources you would like to fetch, see:
++ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
++ example: user,created_by,category,credit_type
++ schema:
++ type: string
++ responses:
++ '201':
++ description: Record created
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ data:
++ id: '6'
++ type: store_credit
++ attributes:
++ amount: '150.0'
++ amount_used: '0.0'
++ memo:
++ deleted_at:
++ currency: USD
++ amount_authorized: '0.0'
++ originator_type:
++ created_at: '2021-11-09T11:27:59.613Z'
++ updated_at: '2021-11-09T11:27:59.613Z'
++ public_metadata: {}
++ private_metadata: {}
++ display_amount_used: "$0.00"
++ display_amount: "$150.00"
++ relationships:
++ user:
++ data:
++ id: '103'
++ type: user
++ created_by:
++ data:
++ id: '104'
++ type: user
++ store_credit_category:
++ data:
++ id: '6'
++ type: store_credit_category
++ store_credit_type:
++ data:
++ id: '6'
++ type: store_credit_type
++ store_credit_events:
++ data:
++ - id: '7'
++ type: store_credit_event
++ schema:
++ "$ref": "#/components/schemas/resource"
++ '422':
++ description: Invalid request
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ error: User can't be blank, Category can't be blank, Credit type
++ can't be blank, Created by can't be blank, Currency can't be
++ blank, Amount must be greater than 0, Amount used Cannot be
++ greater than amount., and Amount authorized Exceeds total credits.
++ errors:
++ user:
++ - can't be blank
++ category:
++ - can't be blank
++ credit_type:
++ - can't be blank
++ created_by:
++ - can't be blank
++ currency:
++ - can't be blank
++ amount:
++ - must be greater than 0
++ amount_used:
++ - Cannot be greater than amount.
++ amount_authorized:
++ - Exceeds total credits.
++ schema:
++ "$ref": "#/components/schemas/validation_errors"
++ requestBody:
++ content:
++ application/json:
++ schema:
++ "$ref": "#/components/schemas/create_store_credit_params"
++ "/api/v2/platform/store_credits/{id}":
++ get:
++ summary: Return a Store Credit
++ tags:
++ - Store Credits
++ security:
++ - bearer_auth: []
++ description: Returns a Store Credit
++ operationId: show-store-credit
++ parameters:
++ - name: id
++ in: path
++ required: true
++ schema:
++ type: string
++ - name: include
++ in: query
++ description: 'Select which associated resources you would like to fetch, see:
++ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
++ example: user,created_by,category,credit_type
++ schema:
++ type: string
++ responses:
++ '200':
++ description: Record found
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ data:
++ id: '7'
++ type: store_credit
++ attributes:
++ amount: '150.0'
++ amount_used: '0.0'
++ memo:
++ deleted_at:
++ currency: USD
++ amount_authorized: '0.0'
++ originator_type:
++ created_at: '2021-11-09T11:27:59.693Z'
++ updated_at: '2021-11-09T11:27:59.693Z'
++ public_metadata: {}
++ private_metadata: {}
++ display_amount_used: "$0.00"
++ display_amount: "$150.00"
++ relationships:
++ user:
++ data:
++ id: '105'
++ type: user
++ created_by:
++ data:
++ id: '106'
++ type: user
++ store_credit_category:
++ data:
++ id: '7'
++ type: store_credit_category
++ store_credit_type:
++ data:
++ id: '7'
++ type: store_credit_type
++ store_credit_events:
++ data:
++ - id: '8'
++ type: store_credit_event
++ 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"
++ patch:
++ summary: Update a Store Credit
++ tags:
++ - Store Credits
++ security:
++ - bearer_auth: []
++ description: Updates a Store Credit
++ operationId: update-store-credit
++ parameters:
++ - name: id
++ in: path
++ required: true
++ schema:
++ type: string
++ - name: include
++ in: query
++ description: 'Select which associated resources you would like to fetch, see:
++ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
++ example: user,created_by,category,credit_type
++ schema:
++ type: string
++ responses:
++ '200':
++ description: Record updated
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ data:
++ id: '9'
++ type: store_credit
++ attributes:
++ amount: '500.0'
++ amount_used: '0.0'
++ memo: The user is awarded
++ deleted_at:
++ currency: CAD
++ amount_authorized: '0.0'
++ originator_type:
++ created_at: '2021-11-09T11:27:59.819Z'
++ updated_at: '2021-11-09T11:27:59.836Z'
++ public_metadata:
++ loyalty_reward: true
++ private_metadata: {}
++ display_amount_used: "$0.00"
++ display_amount: "$500.00"
++ relationships:
++ user:
++ data:
++ id: '109'
++ type: user
++ created_by:
++ data:
++ id: '110'
++ type: user
++ store_credit_category:
++ data:
++ id: '9'
++ type: store_credit_category
++ store_credit_type:
++ data:
++ id: '9'
++ type: store_credit_type
++ store_credit_events:
++ data:
++ - id: '10'
++ type: store_credit_event
++ schema:
++ "$ref": "#/components/schemas/resource"
++ '422':
++ description: Invalid request
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ error: Amount must be greater than 0, Amount used Cannot be greater
++ than amount., and Amount authorized Exceeds total credits.
++ errors:
++ amount:
++ - must be greater than 0
++ amount_used:
++ - Cannot be greater than amount.
++ amount_authorized:
++ - Exceeds total credits.
++ schema:
++ "$ref": "#/components/schemas/validation_errors"
++ '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"
++ requestBody:
++ content:
++ application/json:
++ schema:
++ "$ref": "#/components/schemas/update_store_credit_params"
++ delete:
++ summary: Delete a Store Credit
++ tags:
++ - Store Credits
++ security:
++ - bearer_auth: []
++ description: Deletes a Store Credit
++ operationId: delete-store-credit
++ parameters:
++ - name: id
++ in: path
++ required: true
++ schema:
++ type: string
++ responses:
++ '204':
++ description: Record deleted
++ '404':
++ description: Record not found
++ content:
++ application/vnd.api+json:
++ examples:
++ Example:
++ value:
++ error: The resource you were looking for could not be found.
++ 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/tax_categories":
+ get:
+ summary: Return a list of Tax Categories
+ tags:
+ - Tax Categories
+ security:
+ - bearer_auth: []
+ description: Returns a list of Tax Categories
+ operationId: tax-categories-list
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: tax_rates
+ schema:
+ type: string
+ - name: filter[name_eq]
+ in: query
+ description: ''
+ example: Clothing
+ schema:
+ type: string
+ - name: filter[is_default_true]
+ in: query
+ description: ''
+ example: 1
+ schema:
+ type: string
+ - name: filter[tax_code_eq]
+ in: query
+ description: ''
+ example: 1257L
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '126'
+ type: tax_category
+ attributes:
- name: TaxCategory - 647345
- description: Quidem esse quibusdam non officiis ducimus hic
- nisi rem.
++ name: TaxCategory - 706655
++ description: Rerum reiciendis asperiores expedita eveniet
++ veritatis fugiat.
+ is_default: false
+ deleted_at:
- created_at: '2021-11-08T15:18:32.484Z'
- updated_at: '2021-11-08T15:18:32.484Z'
++ created_at: '2021-11-09T11:28:00.107Z'
++ updated_at: '2021-11-09T11:28:00.107Z'
+ tax_code:
+ relationships:
+ tax_rates:
+ data: []
+ - id: '127'
+ type: tax_category
+ attributes:
- name: TaxCategory - 284386
- description: Sint autem velit cupiditate reiciendis officia
- inventore atque.
++ name: TaxCategory - 83786
++ description: Nobis vel vero dignissimos porro.
+ is_default: false
+ deleted_at:
- created_at: '2021-11-08T15:18:32.487Z'
- updated_at: '2021-11-08T15:18:32.487Z'
++ created_at: '2021-11-09T11:28:00.109Z'
++ updated_at: '2021-11-09T11:28:00.109Z'
+ tax_code:
+ relationships:
+ tax_rates:
+ data: []
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/tax_categories?page=1&per_page=&include=&filter[name_eq]=&filter[is_default_true]=&filter[tax_code_eq]=
+ next: http://www.example.com/api/v2/platform/tax_categories?filter%5Bis_default_true%5D=&filter%5Bname_eq%5D=&filter%5Btax_code_eq%5D=&include=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/tax_categories?filter%5Bis_default_true%5D=&filter%5Bname_eq%5D=&filter%5Btax_code_eq%5D=&include=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/tax_categories?filter%5Bis_default_true%5D=&filter%5Bname_eq%5D=&filter%5Btax_code_eq%5D=&include=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/tax_categories?filter%5Bis_default_true%5D=&filter%5Bname_eq%5D=&filter%5Btax_code_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"
+ post:
+ summary: Create a Tax Category
+ tags:
+ - Tax Categories
+ security:
+ - bearer_auth: []
+ description: Creates a Tax Category
+ operationId: create-tax-category
+ parameters:
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: tax_rates
+ schema:
+ type: string
+ responses:
+ '201':
+ description: Record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '130'
+ type: tax_category
+ attributes:
- name: TaxCategory - 344693
- description: A alias qui quasi molestiae id rem praesentium.
++ name: TaxCategory - 428541
++ description: Veritatis quam ullam beatae in possimus sit cumque
++ consequatur.
+ is_default: false
+ deleted_at:
- created_at: '2021-11-08T15:18:32.583Z'
- updated_at: '2021-11-08T15:18:32.583Z'
++ created_at: '2021-11-09T11:28:00.192Z'
++ updated_at: '2021-11-09T11:28:00.192Z'
+ tax_code:
+ relationships:
+ tax_rates:
+ data: []
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank
+ errors:
+ name:
+ - can't be blank
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/create_tax_category_params"
+ "/api/v2/platform/tax_categories/{id}":
+ get:
+ summary: Return a Tax Category
+ tags:
+ - Tax Categories
+ security:
+ - bearer_auth: []
+ description: Returns a Tax Category
+ operationId: show-tax-category
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: tax_rates
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '131'
+ type: tax_category
+ attributes:
- name: TaxCategory - 705374
- description: Velit quibusdam aspernatur eligendi facere.
++ name: TaxCategory - 58287
++ description: Possimus eaque aperiam labore suscipit cum quas
++ eius.
+ is_default: false
+ deleted_at:
- created_at: '2021-11-08T15:18:32.654Z'
- updated_at: '2021-11-08T15:18:32.654Z'
++ created_at: '2021-11-09T11:28:00.259Z'
++ updated_at: '2021-11-09T11:28:00.259Z'
+ tax_code:
+ relationships:
+ tax_rates:
+ data: []
+ 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"
+ patch:
+ summary: Update a Tax Category
+ tags:
+ - Tax Categories
+ security:
+ - bearer_auth: []
+ description: Updates a Tax Category
+ operationId: update-tax-category
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: tax_rates
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Record updated
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '133'
+ type: tax_category
+ attributes:
+ name: Clothing
+ description: Men's, women's and children's clothing
+ is_default: true
+ deleted_at:
- created_at: '2021-11-08T15:18:32.770Z'
- updated_at: '2021-11-08T15:18:32.780Z'
++ created_at: '2021-11-09T11:28:00.354Z'
++ updated_at: '2021-11-09T11:28:00.364Z'
+ tax_code: 1233K
+ relationships:
+ tax_rates:
+ data: []
+ schema:
+ "$ref": "#/components/schemas/resource"
+ '422':
+ description: Invalid request
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: Name can't be blank
+ errors:
+ name:
+ - can't be blank
+ schema:
+ "$ref": "#/components/schemas/validation_errors"
+ '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"
+ requestBody:
+ content:
+ application/json:
+ schema:
+ "$ref": "#/components/schemas/update_tax_category_params"
+ delete:
+ summary: Delete a Tax Category
+ tags:
+ - Tax Categories
+ security:
+ - bearer_auth: []
+ description: Deletes a Tax Category
+ operationId: delete-tax-category
+ parameters:
+ - name: id
+ in: path
+ required: true
+ schema:
+ type: string
+ responses:
+ '204':
+ description: Record deleted
+ '404':
+ description: Record not found
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ error: The resource you were looking for could not be found.
+ 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/tax_rates":
+ get:
+ summary: Return a list of Tax Rates
+ tags:
+ - Tax Rates
+ security:
+ - bearer_auth: []
+ description: Returns a list of Tax Rates
+ operationId: tax-rates-list
+ parameters:
+ - name: page
+ in: query
+ example: 1
+ schema:
+ type: integer
+ - name: per_page
+ in: query
+ example: 50
+ schema:
+ type: integer
+ - name: include
+ in: query
+ description: 'Select which associated resources you would like to fetch, see:
+ <a href="https://jsonapi.org/format/#fetching-includes">https://jsonapi.org/format/#fetching-includes</a>'
+ example: zone,tax_category
+ schema:
+ type: string
+ - name: filter[zone_id_eq]
+ in: query
+ description: ''
+ example: '3'
+ schema:
+ type: string
+ - name: filter[amount_gt]
+ in: query
+ description: ''
+ example: '0.05'
+ schema:
+ type: string
+ - name: filter[tax_category_id_eq]
+ in: query
+ description: ''
+ example: '1'
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '12'
+ type: tax_rate
+ attributes:
+ amount: '0.1'
+ included_in_price: false
- created_at: '2021-11-08T15:18:33.002Z'
- updated_at: '2021-11-08T15:18:33.002Z'
++ created_at: '2021-11-09T11:28:00.583Z'
++ updated_at: '2021-11-09T11:28:00.583Z'
+ name:
+ show_rate_in_label: true
+ deleted_at:
+ relationships:
+ zone:
+ data:
+ id: '82'
+ type: zone
+ tax_category:
+ data:
+ id: '138'
+ type: tax_category
+ - id: '13'
+ type: tax_rate
+ attributes:
+ amount: '0.1'
+ included_in_price: false
- created_at: '2021-11-08T15:18:33.007Z'
- updated_at: '2021-11-08T15:18:33.007Z'
++ created_at: '2021-11-09T11:28:00.589Z'
++ updated_at: '2021-11-09T11:28:00.589Z'
+ name:
+ show_rate_in_label: true
+ deleted_at:
+ relationships:
+ zone:
+ data:
+ id: '83'
+ type: zone
+ tax_category:
data:
- - id: '4'
- type: store_credit_event
+ id: '138'
+ type: tax_category
meta:
count: 2
total_count: 2
@@@ -9660,43 -10241,23 +10734,23 @@@
Example:
value:
data:
- id: '6'
- type: store_credit
+ id: '16'
+ type: tax_rate
attributes:
- amount: '150.0'
- amount_used: '0.0'
- memo:
+ amount: '0.1'
+ included_in_price: false
- created_at: '2021-11-08T15:18:33.120Z'
- updated_at: '2021-11-08T15:18:33.120Z'
++ created_at: '2021-11-09T11:28:00.702Z'
++ updated_at: '2021-11-09T11:28:00.702Z'
+ name:
+ show_rate_in_label: true
deleted_at:
- currency: USD
- amount_authorized: '0.0'
- originator_type:
- created_at: '2021-11-08T13:42:17.057Z'
- updated_at: '2021-11-08T13:42:17.057Z'
- public_metadata: {}
- private_metadata: {}
- display_amount_used: "$0.00"
- display_amount: "$150.00"
relationships:
- user:
- data:
- id: '103'
- type: user
- created_by:
- data:
- id: '104'
- type: user
- store_credit_category:
- data:
- id: '6'
- type: store_credit_category
- store_credit_type:
+ zone:
data:
- id: '6'
- type: store_credit_type
- store_credit_events:
+ tax_category:
data:
- - id: '7'
- type: store_credit_event
+ id: '140'
+ type: tax_category
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -9765,43 -10314,25 +10807,25 @@@
Example:
value:
data:
- id: '7'
- type: store_credit
+ id: '17'
+ type: tax_rate
attributes:
- amount: '150.0'
- amount_used: '0.0'
- memo:
+ amount: '0.1'
+ included_in_price: false
- created_at: '2021-11-08T15:18:33.195Z'
- updated_at: '2021-11-08T15:18:33.195Z'
++ created_at: '2021-11-09T11:28:00.768Z'
++ updated_at: '2021-11-09T11:28:00.768Z'
+ name:
+ show_rate_in_label: true
deleted_at:
- currency: USD
- amount_authorized: '0.0'
- originator_type:
- created_at: '2021-11-08T13:42:17.165Z'
- updated_at: '2021-11-08T13:42:17.165Z'
- public_metadata: {}
- private_metadata: {}
- display_amount_used: "$0.00"
- display_amount: "$150.00"
relationships:
- user:
- data:
- id: '105'
- type: user
- created_by:
- data:
- id: '106'
- type: user
- store_credit_category:
- data:
- id: '7'
- type: store_credit_category
- store_credit_type:
+ zone:
data:
- id: '7'
- type: store_credit_type
- store_credit_events:
+ id: '86'
+ type: zone
+ tax_category:
data:
- - id: '8'
- type: store_credit_event
+ id: '141'
+ type: tax_category
schema:
"$ref": "#/components/schemas/resource"
'404':
@@@ -9854,44 -10385,25 +10878,25 @@@
Example:
value:
data:
- id: '9'
- type: store_credit
+ id: '19'
+ type: tax_rate
attributes:
- amount: '500.0'
- amount_used: '0.0'
- memo: The user is awarded
+ amount: '25.9'
+ included_in_price: true
- created_at: '2021-11-08T15:18:33.311Z'
- updated_at: '2021-11-08T15:18:33.325Z'
++ created_at: '2021-11-09T11:28:00.881Z'
++ updated_at: '2021-11-09T11:28:00.896Z'
+ name:
+ show_rate_in_label: true
deleted_at:
- currency: CAD
- amount_authorized: '0.0'
- originator_type:
- created_at: '2021-11-08T13:42:17.309Z'
- updated_at: '2021-11-08T13:42:17.336Z'
- public_metadata:
- loyalty_reward: true
- private_metadata: {}
- display_amount_used: "$0.00"
- display_amount: "$500.00"
relationships:
- user:
- data:
- id: '109'
- type: user
- created_by:
- data:
- id: '110'
- type: user
- store_credit_category:
- data:
- id: '9'
- type: store_credit_category
- store_credit_type:
+ zone:
data:
- id: '9'
- type: store_credit_type
- store_credit_events:
+ id: '89'
+ type: zone
+ tax_category:
data:
- - id: '10'
- type: store_credit_event
+ id: '143'
+ type: tax_category
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -10031,8 -10538,8 +11031,8 @@@
lft: 2
rgt: 3
description:
- created_at: '2021-11-08T13:42:17.745Z'
- updated_at: '2021-11-08T13:42:17.751Z'
- created_at: '2021-11-08T15:18:33.676Z'
- updated_at: '2021-11-08T15:18:33.681Z'
++ created_at: '2021-11-09T11:28:01.238Z'
++ updated_at: '2021-11-09T11:28:01.243Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10068,8 -10575,8 +11068,8 @@@
lft: 4
rgt: 5
description:
- created_at: '2021-11-08T13:42:17.842Z'
- updated_at: '2021-11-08T13:42:17.847Z'
- created_at: '2021-11-08T15:18:33.767Z'
- updated_at: '2021-11-08T15:18:33.773Z'
++ created_at: '2021-11-09T11:28:01.328Z'
++ updated_at: '2021-11-09T11:28:01.333Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10105,8 -10612,8 +11105,8 @@@
lft: 1
rgt: 6
description:
- created_at: '2021-11-08T13:42:17.650Z'
- updated_at: '2021-11-08T13:42:17.863Z'
- created_at: '2021-11-08T15:18:33.591Z'
- updated_at: '2021-11-08T15:18:33.786Z'
++ created_at: '2021-11-09T11:28:01.149Z'
++ updated_at: '2021-11-09T11:28:01.347Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10189,8 -10696,8 +11189,8 @@@
lft: 2
rgt: 3
description:
- created_at: '2021-11-08T13:42:18.704Z'
- updated_at: '2021-11-08T13:42:18.715Z'
- created_at: '2021-11-08T15:18:34.164Z'
- updated_at: '2021-11-08T15:18:34.170Z'
++ created_at: '2021-11-09T11:28:01.717Z'
++ updated_at: '2021-11-09T11:28:01.723Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10277,8 -10784,8 +11277,8 @@@
lft: 2
rgt: 3
description:
- created_at: '2021-11-08T13:42:18.941Z'
- updated_at: '2021-11-08T13:42:18.947Z'
- created_at: '2021-11-08T15:18:34.355Z'
- updated_at: '2021-11-08T15:18:34.361Z'
++ created_at: '2021-11-09T11:28:01.895Z'
++ updated_at: '2021-11-09T11:28:01.900Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10368,8 -10875,8 +11368,8 @@@
lft: 2
rgt: 3
description:
- created_at: '2021-11-08T13:42:19.352Z'
- updated_at: '2021-11-08T13:42:19.393Z'
- created_at: '2021-11-08T15:18:34.724Z'
- updated_at: '2021-11-08T15:18:34.761Z'
++ created_at: '2021-11-09T11:28:02.255Z'
++ updated_at: '2021-11-09T11:28:02.291Z'
meta_title:
meta_description:
meta_keywords:
@@@ -10522,12 -11029,12 +11522,12 @@@
Example:
value:
data:
- - id: '97'
+ - id: '119'
type: user
attributes:
- created_at: '2021-11-08T13:42:20.225Z'
- updated_at: '2021-11-08T13:42:20.225Z'
- created_at: '2021-11-08T15:18:35.535Z'
- updated_at: '2021-11-08T15:18:35.535Z'
++ created_at: '2021-11-09T11:28:03.062Z'
++ updated_at: '2021-11-09T11:28:03.062Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10538,12 -11045,12 +11538,12 @@@
data:
ship_address:
data:
- - id: '98'
+ - id: '120'
type: user
attributes:
- created_at: '2021-11-08T13:42:20.237Z'
- updated_at: '2021-11-08T13:42:20.237Z'
- created_at: '2021-11-08T15:18:35.547Z'
- updated_at: '2021-11-08T15:18:35.547Z'
++ created_at: '2021-11-09T11:28:03.070Z'
++ updated_at: '2021-11-09T11:28:03.070Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10554,12 -11061,12 +11554,12 @@@
data:
ship_address:
data:
- - id: '99'
+ - id: '121'
type: user
attributes:
- created_at: '2021-11-08T13:42:20.241Z'
- updated_at: '2021-11-08T13:42:20.241Z'
- created_at: '2021-11-08T15:18:35.551Z'
- updated_at: '2021-11-08T15:18:35.551Z'
++ created_at: '2021-11-09T11:28:03.073Z'
++ updated_at: '2021-11-09T11:28:03.073Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10617,12 -11124,12 +11617,12 @@@
Example:
value:
data:
- id: '104'
+ id: '126'
type: user
attributes:
- created_at: '2021-11-08T13:42:20.376Z'
- updated_at: '2021-11-08T13:42:20.376Z'
- created_at: '2021-11-08T15:18:35.686Z'
- updated_at: '2021-11-08T15:18:35.686Z'
++ created_at: '2021-11-09T11:28:03.364Z'
++ updated_at: '2021-11-09T11:28:03.364Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10684,12 -11191,12 +11684,12 @@@
Example:
value:
data:
- id: '107'
+ id: '129'
type: user
attributes:
- created_at: '2021-11-08T13:42:20.519Z'
- updated_at: '2021-11-08T13:42:20.519Z'
- created_at: '2021-11-08T15:18:35.774Z'
- updated_at: '2021-11-08T15:18:35.774Z'
++ created_at: '2021-11-09T11:28:03.454Z'
++ updated_at: '2021-11-09T11:28:03.454Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10756,8 -11263,8 +11756,8 @@@
type: user
attributes:
- created_at: '2021-11-08T13:42:20.661Z'
- updated_at: '2021-11-08T13:42:20.673Z'
- created_at: '2021-11-08T15:18:35.915Z'
- updated_at: '2021-11-08T15:18:35.926Z'
++ created_at: '2021-11-09T11:28:03.579Z'
++ updated_at: '2021-11-09T11:28:03.591Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@@ -10906,14 -11413,14 +11906,14 @@@
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-08T13:42:21.097Z'
- updated_at: '2021-11-08T15:18:36.265Z'
++ updated_at: '2021-11-09T11:28:03.915Z'
discontinue_on:
- created_at: '2021-11-08T13:42:21.087Z'
- created_at: '2021-11-08T15:18:36.257Z'
++ created_at: '2021-11-09T11:28:03.907Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 8934'
- name: 'Product #181 - 9728'
++ name: 'Product #181 - 9861'
options_text: ''
total_on_hand: 0
purchasable: true
@@@ -10948,23 -11455,23 +11948,23 @@@
type: variant
attributes:
sku: SKU-249
- weight: '48.4'
- height: '85.48'
- depth: '79.77'
- weight: '159.57'
- height: '182.38'
- depth: '136.17'
++ weight: '170.69'
++ height: '59.95'
++ depth: '16.92'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-08T13:42:21.140Z'
- updated_at: '2021-11-08T15:18:36.307Z'
++ updated_at: '2021-11-09T11:28:03.953Z'
discontinue_on:
- created_at: '2021-11-08T13:42:21.129Z'
- created_at: '2021-11-08T15:18:36.297Z'
++ created_at: '2021-11-09T11:28:03.944Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 8934'
- name: 'Product #181 - 9728'
++ name: 'Product #181 - 9861'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@@ -11001,23 -11508,23 +12001,23 @@@
type: variant
attributes:
sku: SKU-250
- weight: '115.24'
- height: '169.12'
- depth: '132.61'
- weight: '112.78'
- height: '165.94'
- depth: '14.61'
++ weight: '4.39'
++ height: '107.73'
++ depth: '58.55'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-08T13:42:21.200Z'
- updated_at: '2021-11-08T15:18:36.339Z'
++ updated_at: '2021-11-09T11:28:03.979Z'
discontinue_on:
- created_at: '2021-11-08T13:42:21.190Z'
- created_at: '2021-11-08T15:18:36.329Z'
++ created_at: '2021-11-09T11:28:03.970Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 8934'
- name: 'Product #181 - 9728'
++ name: 'Product #181 - 9861'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@@ -11107,23 -11614,23 +12107,23 @@@
type: variant
attributes:
sku: SKU-255
- weight: '197.35'
- height: '33.87'
- depth: '55.38'
- weight: '33.0'
- height: '98.3'
- depth: '170.71'
++ weight: '71.32'
++ height: '113.34'
++ depth: '157.89'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-08T13:42:21.592Z'
- updated_at: '2021-11-08T15:18:36.698Z'
++ updated_at: '2021-11-09T11:28:04.290Z'
discontinue_on:
- created_at: '2021-11-08T13:42:21.582Z'
- created_at: '2021-11-08T15:18:36.689Z'
++ created_at: '2021-11-09T11:28:04.281Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #183 - 2404'
- name: 'Product #183 - 2883'
++ name: 'Product #183 - 4490'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@@ -11284,14 -11791,14 +12284,14 @@@
- id: '1'
type: event
attributes:
- execution_time: 89252
- execution_time: 94066
++ execution_time: 90994
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url1.com/
- created_at: '2021-11-08T13:42:22.159Z'
- updated_at: '2021-11-08T13:42:22.159Z'
- created_at: '2021-11-08T15:18:37.256Z'
- updated_at: '2021-11-08T15:18:37.256Z'
++ created_at: '2021-11-09T11:28:04.777Z'
++ updated_at: '2021-11-09T11:28:04.777Z'
relationships:
subscriber:
data:
@@@ -11300,14 -11807,14 +12300,14 @@@
- id: '2'
type: event
attributes:
- execution_time: 35583
- execution_time: 19815
++ execution_time: 43449
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url2.com/
- created_at: '2021-11-08T13:42:22.162Z'
- updated_at: '2021-11-08T13:42:22.162Z'
- created_at: '2021-11-08T15:18:37.260Z'
- updated_at: '2021-11-08T15:18:37.260Z'
++ created_at: '2021-11-09T11:28:04.780Z'
++ updated_at: '2021-11-09T11:28:04.780Z'
relationships:
subscriber:
data:
@@@ -11383,8 -11890,8 +12383,8 @@@
active: true
subscriptions:
- "*"
- created_at: '2021-11-08T13:42:22.512Z'
- updated_at: '2021-11-08T13:42:22.512Z'
- created_at: '2021-11-08T15:18:37.359Z'
- updated_at: '2021-11-08T15:18:37.359Z'
++ created_at: '2021-11-09T11:28:04.861Z'
++ updated_at: '2021-11-09T11:28:04.861Z'
- id: '6'
type: subscriber
attributes:
@@@ -11392,8 -11899,8 +12392,8 @@@
active: true
subscriptions:
- "*"
- created_at: '2021-11-08T13:42:22.515Z'
- updated_at: '2021-11-08T13:42:22.515Z'
- created_at: '2021-11-08T15:18:37.360Z'
- updated_at: '2021-11-08T15:18:37.360Z'
++ created_at: '2021-11-09T11:28:04.862Z'
++ updated_at: '2021-11-09T11:28:04.862Z'
meta:
count: 2
total_count: 2
@@@ -11441,8 -11948,8 +12441,8 @@@
active: true
subscriptions:
- "*"
- created_at: '2021-11-08T13:42:22.621Z'
- updated_at: '2021-11-08T13:42:22.621Z'
- created_at: '2021-11-08T15:18:37.448Z'
- updated_at: '2021-11-08T15:18:37.448Z'
++ created_at: '2021-11-09T11:28:04.953Z'
++ updated_at: '2021-11-09T11:28:04.953Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -11497,8 -12004,8 +12497,8 @@@
active: true
subscriptions:
- "*"
- created_at: '2021-11-08T13:42:22.687Z'
- updated_at: '2021-11-08T13:42:22.687Z'
- created_at: '2021-11-08T15:18:37.512Z'
- updated_at: '2021-11-08T15:18:37.512Z'
++ created_at: '2021-11-09T11:28:05.014Z'
++ updated_at: '2021-11-09T11:28:05.014Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@@ -11551,8 -12058,8 +12551,8 @@@
active: true
subscriptions:
- "*"
- created_at: '2021-11-08T13:42:22.807Z'
- updated_at: '2021-11-08T13:42:22.807Z'
- created_at: '2021-11-08T15:18:37.622Z'
- updated_at: '2021-11-08T15:18:37.622Z'
++ created_at: '2021-11-09T11:28:05.106Z'
++ updated_at: '2021-11-09T11:28:05.106Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@@ -11673,8 -12180,8 +12673,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:23.365Z'
- updated_at: '2021-11-08T13:42:23.365Z'
- created_at: '2021-11-08T15:18:38.036Z'
- updated_at: '2021-11-08T15:18:38.036Z'
++ created_at: '2021-11-09T11:28:05.507Z'
++ updated_at: '2021-11-09T11:28:05.507Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11688,8 -12195,8 +12688,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:23.469Z'
- updated_at: '2021-11-08T13:42:23.469Z'
- created_at: '2021-11-08T15:18:38.113Z'
- updated_at: '2021-11-08T15:18:38.113Z'
++ created_at: '2021-11-09T11:28:05.578Z'
++ updated_at: '2021-11-09T11:28:05.578Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11703,8 -12210,8 +12703,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:23.551Z'
- updated_at: '2021-11-08T13:42:23.551Z'
- created_at: '2021-11-08T15:18:38.194Z'
- updated_at: '2021-11-08T15:18:38.194Z'
++ created_at: '2021-11-09T11:28:05.655Z'
++ updated_at: '2021-11-09T11:28:05.655Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11718,8 -12225,8 +12718,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:23.643Z'
- updated_at: '2021-11-08T13:42:23.643Z'
- created_at: '2021-11-08T15:18:38.269Z'
- updated_at: '2021-11-08T15:18:38.269Z'
++ created_at: '2021-11-09T11:28:05.724Z'
++ updated_at: '2021-11-09T11:28:05.724Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11780,8 -12287,8 +12780,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:24.347Z'
- updated_at: '2021-11-08T13:42:24.347Z'
- created_at: '2021-11-08T15:18:39.073Z'
- updated_at: '2021-11-08T15:18:39.073Z'
++ created_at: '2021-11-09T11:28:06.258Z'
++ updated_at: '2021-11-09T11:28:06.258Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11851,8 -12358,8 +12851,8 @@@
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-08T13:42:24.849Z'
- updated_at: '2021-11-08T13:42:24.849Z'
- created_at: '2021-11-08T15:18:39.486Z'
- updated_at: '2021-11-08T15:18:39.486Z'
++ created_at: '2021-11-09T11:28:06.560Z'
++ updated_at: '2021-11-09T11:28:06.560Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@@ -11918,8 -12425,8 +12918,8 @@@
type: wished_item
attributes:
quantity: 3
- created_at: '2021-11-08T13:42:25.515Z'
- updated_at: '2021-11-08T13:42:25.527Z'
- created_at: '2021-11-08T15:18:40.065Z'
- updated_at: '2021-11-08T15:18:40.076Z'
++ created_at: '2021-11-09T11:28:07.056Z'
++ updated_at: '2021-11-09T11:28:07.066Z'
display_price: "$19.99"
display_total: "$59.97"
price: '19.99'
@@@ -12054,9 -12561,9 +13054,9 @@@
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-11-08T13:42:27.058Z'
- updated_at: '2021-11-08T13:42:27.058Z'
- token: dB7kJXjQBQ37S7Re52MKxAJx
- created_at: '2021-11-08T15:18:41.268Z'
- updated_at: '2021-11-08T15:18:41.268Z'
- token: EmZp9faqzV5xBqRHcrcXt4Ex
++ created_at: '2021-11-09T11:28:08.100Z'
++ updated_at: '2021-11-09T11:28:08.100Z'
++ token: KZHvb2yX7ZhfozCmisyz3hFT
variant_included: false
relationships:
wished_items:
@@@ -12071,9 -12578,9 +13071,9 @@@
name: Birthday
is_private: true
is_default: false
- created_at: '2021-11-08T13:42:27.062Z'
- updated_at: '2021-11-08T13:42:27.062Z'
- token: 5suMCx825UjXnCXVSudfAy7n
- created_at: '2021-11-08T15:18:41.270Z'
- updated_at: '2021-11-08T15:18:41.270Z'
- token: mV37HuqBrj9C1WL5SZbuvoop
++ created_at: '2021-11-09T11:28:08.103Z'
++ updated_at: '2021-11-09T11:28:08.103Z'
++ token: gQ3b51QMu3Z8MSm68cXNYcxe
variant_included: false
relationships:
wished_items:
@@@ -12135,9 -12642,9 +13135,9 @@@
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-11-08T13:42:28.278Z'
- updated_at: '2021-11-08T13:42:28.278Z'
- token: thyAYmCXfpdcAchBgnVYbD23
- created_at: '2021-11-08T15:18:42.076Z'
- updated_at: '2021-11-08T15:18:42.076Z'
- token: dwyVxx1A8ozThKKAxabGYi4R
++ created_at: '2021-11-09T11:28:08.781Z'
++ updated_at: '2021-11-09T11:28:08.781Z'
++ token: Fn3rAnHYePb9d7pB6odK2mUs
variant_included: false
relationships:
wished_items:
@@@ -12201,9 -12708,9 +13201,9 @@@
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-11-08T13:42:28.387Z'
- updated_at: '2021-11-08T13:42:28.387Z'
- token: LVTm8bj6sBJ5rfoWY8quYhhT
- created_at: '2021-11-08T15:18:42.160Z'
- updated_at: '2021-11-08T15:18:42.160Z'
- token: XfnTFx2vsbk7CoGDehsKzMwT
++ created_at: '2021-11-09T11:28:08.859Z'
++ updated_at: '2021-11-09T11:28:08.859Z'
++ token: 486GWKopw2VcEc6dNpa7K2dL
variant_included: false
relationships:
wished_items:
@@@ -12266,9 -12773,9 +13266,9 @@@
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-11-08T13:42:28.561Z'
- updated_at: '2021-11-08T13:42:28.576Z'
- token: uNU63uVD94kW1jTxpTosfQm1
- created_at: '2021-11-08T15:18:42.284Z'
- updated_at: '2021-11-08T15:18:42.296Z'
- token: KAn8YXMHYPdc9vorrmwWRJZZ
++ created_at: '2021-11-09T11:28:08.999Z'
++ updated_at: '2021-11-09T11:28:09.011Z'
++ token: 2VhZsBysB8EoVbTowdTcRZyi
variant_included: false
relationships:
wished_items:
@@@ -12392,30 -12899,31 +13392,29 @@@
Example:
value:
data:
- - id: '82'
+ - id: '96'
type: zone
attributes:
- name: Aut tempore iure dignissimos adipisci.
- description: Corrupti voluptates recusandae provident cupiditate
- officiis deserunt.
- name: Mollitia temporibus quam quas repudiandae.
- description: Quibusdam illo ipsum neque rem laborum voluptates
- debitis repellat.
++ name: Praesentium odio autem iure sequi.
++ description: At sunt itaque voluptatibus magni suscipit.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-08T13:42:28.941Z'
- updated_at: '2021-11-08T13:42:28.941Z'
- created_at: '2021-11-08T15:18:42.725Z'
- updated_at: '2021-11-08T15:18:42.725Z'
++ created_at: '2021-11-09T11:28:09.246Z'
++ updated_at: '2021-11-09T11:28:09.246Z'
kind: state
relationships:
zone_members:
data: []
- - id: '83'
+ - id: '97'
type: zone
attributes:
- name: Aut eveniet ab culpa aliquam alias impedit nostrum.
- description: Fuga laudantium unde similique ipsum aut minima
- cumque porro.
- name: Nostrum quas sed reprehenderit suscipit voluptatem repudiandae
- minima.
- description: Deleniti nobis modi placeat molestias unde quasi
- alias natus.
++ name: Inventore blanditiis autem rem quo odio officia consectetur.
++ description: Delectus maiores ea iusto nisi sequi repellat
++ quo similique.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-08T13:42:28.944Z'
- updated_at: '2021-11-08T13:42:28.944Z'
- created_at: '2021-11-08T15:18:42.727Z'
- updated_at: '2021-11-08T15:18:42.727Z'
++ created_at: '2021-11-09T11:28:09.248Z'
++ updated_at: '2021-11-09T11:28:09.248Z'
kind: state
relationships:
zone_members:
@@@ -12467,15 -12975,16 +13466,15 @@@
Example:
value:
data:
- id: '86'
+ id: '100'
type: zone
attributes:
- name: Soluta repellendus quia praesentium odit illum.
- description: Voluptatem vel soluta dicta consequuntur itaque.
- name: Perferendis tenetur saepe possimus consequatur voluptatem
- alias.
- description: Dolorem cupiditate reprehenderit omnis quas earum.
++ name: Ratione doloribus error beatae ducimus nemo sequi.
++ description: Optio quidem blanditiis nisi minima.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-08T13:42:29.072Z'
- updated_at: '2021-11-08T13:42:29.072Z'
- created_at: '2021-11-08T15:18:42.821Z'
- updated_at: '2021-11-08T15:18:42.821Z'
++ created_at: '2021-11-09T11:28:09.341Z'
++ updated_at: '2021-11-09T11:28:09.341Z'
kind: state
relationships:
zone_members:
@@@ -12531,17 -13040,15 +13530,15 @@@
Example:
value:
data:
- id: '87'
+ id: '101'
type: zone
attributes:
- name: Possimus eos occaecati repellendus adipisci accusamus
- minus natus.
- description: Deleniti perferendis minima architecto ullam
- nam.
- name: Labore reiciendis soluta eligendi recusandae ea alias.
- description: Cupiditate aperiam sit deserunt a.
++ name: Assumenda asperiores cumque possimus enim.
++ description: Nobis quod voluptas optio laborum fuga cupiditate.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-08T13:42:29.152Z'
- updated_at: '2021-11-08T13:42:29.152Z'
- created_at: '2021-11-08T15:18:42.883Z'
- updated_at: '2021-11-08T15:18:42.883Z'
++ created_at: '2021-11-09T11:28:09.402Z'
++ updated_at: '2021-11-09T11:28:09.402Z'
kind: state
relationships:
zone_members:
@@@ -12605,8 -13112,8 +13602,8 @@@
description: The zone containing all EU countries
default_tax: false
zone_members_count: 0
- created_at: '2021-11-08T13:42:29.294Z'
- updated_at: '2021-11-08T13:42:29.308Z'
- created_at: '2021-11-08T15:18:42.989Z'
- updated_at: '2021-11-08T15:18:42.999Z'
++ created_at: '2021-11-09T11:28:09.496Z'
++ updated_at: '2021-11-09T11:28:09.506Z'
kind: state
relationships:
zone_members:
@@@ -12714,7 -13222,8 +13712,9 @@@ tags
- name: Shipments
- name: Shipping Categories
- name: Shipping Methods
+- name: Store Credits
+ - name: Tax Categories
+ - name: Tax Rates
- name: Taxons
- name: Users
- name: Webhook Events
@@@ -14607,7 -15116,7 +15607,7 @@@ components
completed_at:
type: string
format: date_time
- example: 2021-11-08 13:41:20 UTC
- example: 2021-11-08 15:17:39 UTC
++ example: 2021-11-09 11:27:12 UTC
bill_address_id:
type: string
example: '1'
@@@ -14675,7 -15184,7 +15675,7 @@@
approved_at:
type: string
format: date_time
- example: 2021-11-08 13:41:20 UTC
- example: 2021-11-08 15:17:39 UTC
++ example: 2021-11-09 11:27:12 UTC
confirmation_delivered:
type: boolean
example: true
@@@ -14746,7 -15255,7 +15746,7 @@@
completed_at:
type: string
format: date_time
- example: 2021-11-08 13:41:20 UTC
- example: 2021-11-08 15:17:39 UTC
++ example: 2021-11-09 11:27:12 UTC
bill_address_id:
type: string
example: '1'
@@@ -14814,7 -15323,7 +15814,7 @@@
approved_at:
type: string
format: date_time
- example: 2021-11-08 13:41:20 UTC
- example: 2021-11-08 15:17:39 UTC
++ example: 2021-11-09 11:27:12 UTC
confirmation_delivered:
type: boolean
example: true
@@@ -15248,120 -15783,136 +16274,250 @@@
required:
- type
x-internal: true
+ create_store_credit_params:
+ type: object
+ properties:
+ store_credit:
+ type: object
+ required:
+ - user_id
+ - category_id
+ - type_id
+ - created_by_id
+ - currency
+ - store_id
+ - amount
+ properties:
+ user_id:
+ type: string
+ example: '2'
+ category_id:
+ type: string
+ example: '4'
+ created_by_id:
+ type: string
+ example: '5'
+ amount:
+ type: number
+ example: 25.0
+ amount_used:
+ type: number
+ example: 10.0
+ memo:
+ type: string
+ example: This credit was given as a refund
+ currency:
+ type: string
+ example: USD
+ amount_authorized:
+ type: number
+ example: 15.5
+ originator_id:
+ type: string
+ example: '3'
+ originator_type:
+ type: string
+ example: Refund
+ type_id:
+ type: string
+ example: '1'
+ store_id:
+ type: string
+ example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
+ required:
+ - store_credit
+ x-internal: true
+ update_store_credit_params:
+ type: object
+ properties:
+ store_credit:
+ type: object
+ required:
+ - user_id
+ - category_id
+ - type_id
+ - created_by_id
+ - currency
+ - store_id
+ - amount
+ properties:
+ user_id:
+ type: string
+ example: '2'
+ category_id:
+ type: string
+ example: '4'
+ created_by_id:
+ type: string
+ example: '5'
+ amount:
+ type: number
+ example: 25.0
+ amount_used:
+ type: number
+ example: 10.0
+ memo:
+ type: string
+ example: This credit was given as a refund
+ currency:
+ type: string
+ example: USD
+ amount_authorized:
+ type: number
+ example: 15.5
+ originator_id:
+ type: string
+ example: '3'
+ originator_type:
+ type: string
+ example: Refund
+ type_id:
+ type: string
+ example: '1'
+ store_id:
+ type: string
+ example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
+ required:
+ - store_credit
+ x-internal: true
+ create_tax_category_params:
+ type: object
+ properties:
+ tax_category:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ example: Clothing
+ is_default:
+ type: boolean
+ example: true
+ tax_code:
+ type: string
+ example: 1257L
+ description:
+ type: string
+ example: Men's, women's and children's branded clothing
+ required:
+ - tax_category
+ x-internal: true
+ update_tax_category_params:
+ type: object
+ properties:
+ tax_category:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ example: Clothing
+ is_default:
+ type: boolean
+ example: true
+ tax_code:
+ type: string
+ example: 1257L
+ description:
+ type: string
+ example: Men's, women's and children's branded clothing
+ required:
+ - tax_category
+ x-internal: true
+ create_tax_rate_params:
+ type: object
+ properties:
+ tax_rate:
+ type: object
+ required:
+ - amount
+ - calculator_attributes
+ - tax_category_id
+ properties:
+ amount:
+ type: number
+ example: 0.05
+ zone_id:
+ type: string
+ example: '2'
+ tax_category_id:
+ type: string
+ example: '1'
+ included_in_price:
+ type: boolean
+ example: true
+ name:
+ type: string
+ example: California
+ show_rate_in_label:
+ type: boolean
+ example: false
+ calculator_attributes:
+ type: object
+ properties:
+ type:
+ type: string
+ example: Spree::Calculator::FlatRate
+ preferences:
+ type: object
+ example:
+ amount: 0
+ currency: USD
+ required:
+ - tax_rate
+ x-internal: true
+ update_tax_rate_params:
+ type: object
+ properties:
+ tax_rate:
+ type: object
+ required:
+ - amount
+ - calculator_attributes
+ - tax_category_id
+ properties:
+ amount:
+ type: number
+ example: 0.05
+ zone_id:
+ type: string
+ example: '2'
+ tax_category_id:
+ type: string
+ example: '1'
+ included_in_price:
+ type: boolean
+ example: true
+ name:
+ type: string
+ example: California
+ show_rate_in_label:
+ type: boolean
+ example: false
+ calculator_attributes:
+ type: object
+ properties:
+ type:
+ type: string
+ example: Spree::Calculator::FlatRate
+ preferences:
+ type: object
+ example:
+ amount: 0
+ currency: USD
+ required:
+ - tax_rate
+ x-internal: true
create_taxon_params:
type: object
properties:
diff --cc api/spec/swagger_helper.rb
index 3beaba13d4,c7e4ab429f..5c31797910
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@@ -61,7 -61,8 +61,9 @@@ RSpec.configure do |config
{ name: 'Shipments' },
{ name: 'Shipping Categories' },
{ name: 'Shipping Methods' },
+ { name: 'Store Credits' },
+ { name: 'Tax Categories' },
+ { name: 'Tax Rates' },
{ name: 'Taxons' },
{ name: 'Users' },
{ name: 'Webhook Events' },
@@@ -1314,62 -1315,102 +1316,159 @@@
'x-internal': true
},
++
+ # Store Credit
+ create_store_credit_params: {
+ type: :object,
+ properties: {
+ store_credit: {
+ type: :object,
+ required: %w[user_id category_id type_id created_by_id currency store_id amount],
+ properties: {
+ user_id: { type: :string, example: '2' },
+ category_id: { type: :string, example: '4' },
+ created_by_id: { type: :string, example: '5' },
+ amount: { type: :number, example: 25.0 },
+ amount_used: { type: :number, example: 10.0 },
+ memo: { type: :string, example: 'This credit was given as a refund' },
+ currency: { type: :string, example: 'USD' },
+ amount_authorized: { type: :number, example: 15.5 },
+ originator_id: { type: :string, example: '3' },
+ originator_type: { type: :string, example: 'Refund' },
+ type_id: { type: :string, example: '1' },
+ store_id: { type: :string, example: '2' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
+ }
+ }
+ },
+ required: %w[store_credit],
+ 'x-internal': true
+ },
+ update_store_credit_params: {
+ type: :object,
+ properties: {
+ store_credit: {
+ type: :object,
+ required: %w[user_id category_id type_id created_by_id currency store_id amount],
+ properties: {
+ user_id: { type: :string, example: '2' },
+ category_id: { type: :string, example: '4' },
+ created_by_id: { type: :string, example: '5' },
+ amount: { type: :number, example: 25.0 },
+ amount_used: { type: :number, example: 10.0 },
+ memo: { type: :string, example: 'This credit was given as a refund' },
+ currency: { type: :string, example: 'USD' },
+ amount_authorized: { type: :number, example: 15.5 },
+ originator_id: { type: :string, example: '3' },
+ originator_type: { type: :string, example: 'Refund' },
+ type_id: { type: :string, example: '1' },
+ store_id: { type: :string, example: '2' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
+ }
+ }
+ },
+ required: %w[store_credit],
+ 'x-internal': true
+ },
+
+ # Tax Category
+ create_tax_category_params: {
+ type: :object,
+ properties: {
+ tax_category: {
+ type: :object,
+ required: %w[name],
+ properties: {
+ name: { type: :string, example: 'Clothing' },
+ is_default: { type: :boolean, example: true },
+ tax_code: { type: :string, example: '1257L' },
+ description: { type: :string, example: "Men's, women's and children's branded clothing" }
+ }
+ }
+ },
+ required: %w[tax_category],
+ 'x-internal': true
+ },
+ update_tax_category_params: {
+ type: :object,
+ properties: {
+ tax_category: {
+ type: :object,
+ required: %w[name],
+ properties: {
+ name: { type: :string, example: 'Clothing' },
+ is_default: { type: :boolean, example: true },
+ tax_code: { type: :string, example: '1257L' },
+ description: { type: :string, example: "Men's, women's and children's branded clothing" }
+ }
+ }
+ },
+ required: %w[tax_category],
+ 'x-internal': true
+ },
+
+ # Tax Rate
+ create_tax_rate_params: {
+ type: :object,
+ properties: {
+ tax_rate: {
+ type: :object,
+ required: %w[amount calculator_attributes tax_category_id],
+ properties: {
+ amount: { type: :number, example: 0.05 },
+ zone_id: { type: :string, example: '2' },
+ tax_category_id: { type: :string, example: '1' },
+ included_in_price: { type: :boolean, example: true },
+ name: { type: :string, example: 'California' },
+ show_rate_in_label: { type: :boolean, example: false },
+ calculator_attributes: {
+ type: :object,
+ properties: {
+ type: { type: :string, example: 'Spree::Calculator::FlatRate' },
+ preferences: {
+ type: :object,
+ example: { amount: 0, currency: 'USD' }
+ },
+ }
+ }
+ }
+ }
+ },
+ required: %w[tax_rate],
+ 'x-internal': true
+ },
+ update_tax_rate_params: {
+ type: :object,
+ properties: {
+ tax_rate: {
+ type: :object,
+ required: %w[amount calculator_attributes tax_category_id],
+ properties: {
+ amount: { type: :number, example: 0.05 },
+ zone_id: { type: :string, example: '2' },
+ tax_category_id: { type: :string, example: '1' },
+ included_in_price: { type: :boolean, example: true },
+ name: { type: :string, example: 'California' },
+ show_rate_in_label: { type: :boolean, example: false },
+ calculator_attributes: {
+ type: :object,
+ properties: {
+ type: { type: :string, example: 'Spree::Calculator::FlatRate' },
+ preferences: {
+ type: :object,
+ example: { amount: 0, currency: 'USD' }
+ },
+ }
+ }
+ }
+ }
+ },
+ required: %w[tax_rate],
+ 'x-internal': true
+ },
+
# Taxon
create_taxon_params: {
type: :object,