Skip to content

armgit / spree

Public Imported from GitHub
0

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

Add Store Credit Categories endpoints

Aleksandar Petrushevda53fcfb0284
diff --git a/api/app/controllers/spree/api/v2/platform/store_credit_categories_controller.rb b/api/app/controllers/spree/api/v2/platform/store_credit_categories_controller.rb
new file mode 100644
index 0000000000..cd8735259f
--- /dev/null
+++ b/api/app/controllers/spree/api/v2/platform/store_credit_categories_controller.rb
@@ -0,0 +1,15 @@
+module Spree
+ module Api
+ module V2
+ module Platform
+ class StoreCreditCategoriesController < ResourceController
+ private
+
+ def model_class
+ Spree::StoreCreditCategory
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/api/config/routes.rb b/api/config/routes.rb
index 7329094be9..f303ebe5a0 100644
--- a/api/config/routes.rb
+++ b/api/config/routes.rb
@@ -248,6 +248,7 @@ Spree::Core::Engine.add_routes do
# Store Credit API
resources :store_credits
+ resources :store_credit_categories
# Geo API
resources :zones
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index 79a908d3a2..4b98523b98 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -70,8 +70,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-09T11:27:13.437Z'
- updated_at: '2021-11-09T11:27:13.437Z'
+ created_at: '2021-11-10T08:37:54.033Z'
+ updated_at: '2021-11-10T08:37:54.033Z'
deleted_at:
label:
public_metadata: {}
@@ -100,8 +100,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-09T11:27:13.443Z'
- updated_at: '2021-11-09T11:27:13.443Z'
+ created_at: '2021-11-10T08:37:54.048Z'
+ updated_at: '2021-11-10T08:37:54.048Z'
deleted_at:
label:
public_metadata: {}
@@ -177,8 +177,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-09T11:27:13.798Z'
- updated_at: '2021-11-09T11:27:13.798Z'
+ created_at: '2021-11-10T08:37:54.419Z'
+ updated_at: '2021-11-10T08:37:54.419Z'
deleted_at:
label:
public_metadata: {}
@@ -274,8 +274,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-09T11:27:13.878Z'
- updated_at: '2021-11-09T11:27:13.878Z'
+ created_at: '2021-11-10T08:37:54.493Z'
+ updated_at: '2021-11-10T08:37:54.493Z'
deleted_at:
label:
public_metadata: {}
@@ -356,8 +356,8 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-09T11:27:13.978Z'
- updated_at: '2021-11-09T11:27:13.994Z'
+ created_at: '2021-11-10T08:37:54.604Z'
+ updated_at: '2021-11-10T08:37:54.617Z'
deleted_at:
label:
public_metadata: {}
@@ -503,8 +503,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-09T11:27:14.324Z'
- updated_at: '2021-11-09T11:27:14.324Z'
+ created_at: '2021-11-10T08:37:54.974Z'
+ updated_at: '2021-11-10T08:37:54.974Z'
state: open
included: false
display_amount: "$100.00"
@@ -530,8 +530,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-09T11:27:14.351Z'
- updated_at: '2021-11-09T11:27:14.351Z'
+ created_at: '2021-11-10T08:37:55.006Z'
+ updated_at: '2021-11-10T08:37:55.006Z'
state: open
included: false
display_amount: "$100.00"
@@ -604,8 +604,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-09T11:27:14.740Z'
- updated_at: '2021-11-09T11:27:14.740Z'
+ created_at: '2021-11-10T08:37:55.404Z'
+ updated_at: '2021-11-10T08:37:55.404Z'
state: open
included: false
display_amount: "$100.00"
@@ -687,8 +687,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-09T11:27:14.955Z'
- updated_at: '2021-11-09T11:27:14.983Z'
+ created_at: '2021-11-10T08:37:55.591Z'
+ updated_at: '2021-11-10T08:37:55.598Z'
state: open
included: false
display_amount: "$1.00"
@@ -766,8 +766,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-11-09T11:27:15.317Z'
- updated_at: '2021-11-09T11:27:15.335Z'
+ created_at: '2021-11-10T08:37:56.059Z'
+ updated_at: '2021-11-10T08:37:56.078Z'
state: open
included: false
display_amount: "$15.00"
@@ -907,8 +907,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-09T11:27:16.235Z'
- updated_at: '2021-11-09T11:27:16.235Z'
+ created_at: '2021-11-10T08:37:57.027Z'
+ updated_at: '2021-11-10T08:37:57.027Z'
relationships:
product:
data:
@@ -922,8 +922,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-09T11:27:16.339Z'
- updated_at: '2021-11-09T11:27:16.339Z'
+ created_at: '2021-11-10T08:37:57.154Z'
+ updated_at: '2021-11-10T08:37:57.154Z'
relationships:
product:
data:
@@ -984,8 +984,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-09T11:27:17.064Z'
- updated_at: '2021-11-09T11:27:17.064Z'
+ created_at: '2021-11-10T08:37:57.804Z'
+ updated_at: '2021-11-10T08:37:57.804Z'
relationships:
product:
data:
@@ -1052,8 +1052,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-09T11:27:17.303Z'
- updated_at: '2021-11-09T11:27:17.303Z'
+ created_at: '2021-11-10T08:37:58.070Z'
+ updated_at: '2021-11-10T08:37:58.070Z'
relationships:
product:
data:
@@ -1119,8 +1119,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-09T11:27:17.788Z'
- updated_at: '2021-11-09T11:27:17.788Z'
+ created_at: '2021-11-10T08:37:58.554Z'
+ updated_at: '2021-11-10T08:37:58.554Z'
relationships:
product:
data:
@@ -1242,8 +1242,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-11-09T11:27:18.969Z'
- updated_at: '2021-11-09T11:27:18.998Z'
+ created_at: '2021-11-10T08:37:59.749Z'
+ updated_at: '2021-11-10T08:37:59.786Z'
relationships:
product:
data:
@@ -1348,35 +1348,36 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Recusandae officia maiores suscipit quibusdam id.
+ title: Sed eveniet perspiciatis porro occaecati corporis accusantium
+ vitae temporibus.
meta_title:
content:
meta_description:
visible: true
- slug: recusandae-officia-maiores-suscipit-quibusdam-id
+ slug: sed-eveniet-perspiciatis-porro-occaecati-corporis-accusantium-vitae-temporibus
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-09T11:27:19.531Z'
- updated_at: '2021-11-09T11:27:19.531Z'
+ created_at: '2021-11-10T08:38:00.325Z'
+ updated_at: '2021-11-10T08:38:00.325Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Velit voluptatum a provident iste temporibus ratione
- quia perspiciatis.
+ title: Autem temporibus distinctio atque voluptatum nobis
+ eius alias.
meta_title:
content:
meta_description:
visible: true
- slug: velit-voluptatum-a-provident-iste-temporibus-ratione-quia-perspiciatis
+ slug: autem-temporibus-distinctio-atque-voluptatum-nobis-eius-alias
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-09T11:27:19.536Z'
- updated_at: '2021-11-09T11:27:19.536Z'
+ created_at: '2021-11-10T08:38:00.330Z'
+ updated_at: '2021-11-10T08:38:00.330Z'
relationships:
cms_sections:
data: []
@@ -1430,17 +1431,17 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Eius sunt tenetur eaque unde nemo occaecati quaerat.
+ title: Deleniti dolore odio laborum modi ratione in.
meta_title:
content:
meta_description:
visible: true
- slug: eius-sunt-tenetur-eaque-unde-nemo-occaecati-quaerat
+ slug: deleniti-dolore-odio-laborum-modi-ratione-in
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-09T11:27:19.659Z'
- updated_at: '2021-11-09T11:27:19.659Z'
+ created_at: '2021-11-10T08:38:00.468Z'
+ updated_at: '2021-11-10T08:38:00.468Z'
relationships:
cms_sections:
data: []
@@ -1506,18 +1507,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Fugiat molestiae aspernatur aliquid facere impedit
- odit commodi.
+ title: Illo nihil qui exercitationem ipsum quisquam rerum.
meta_title:
content:
meta_description:
visible: true
- slug: fugiat-molestiae-aspernatur-aliquid-facere-impedit-odit-commodi
+ slug: illo-nihil-qui-exercitationem-ipsum-quisquam-rerum
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-09T11:27:19.727Z'
- updated_at: '2021-11-09T11:27:19.727Z'
+ created_at: '2021-11-10T08:38:00.545Z'
+ updated_at: '2021-11-10T08:38:00.545Z'
relationships:
cms_sections:
data: []
@@ -1581,12 +1581,12 @@ paths:
content:
meta_description:
visible: true
- slug: quo-aspernatur-occaecati-ex-debitis-numquam-veniam-ratione
+ slug: natus-nobis-aliquid-voluptas-alias-occaecati-cum-fugiat
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-09T11:27:19.834Z'
- updated_at: '2021-11-09T11:27:19.857Z'
+ created_at: '2021-11-10T08:38:00.663Z'
+ updated_at: '2021-11-10T08:38:00.676Z'
relationships:
cms_sections:
data: []
@@ -1715,7 +1715,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Accusamus expedita vel aut asperiores fugit.
+ name: Commodi esse quas asperiores laboriosam voluptate.
content: {}
settings:
gutters: No Gutters
@@ -1724,8 +1724,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-09T11:27:20.135Z'
- updated_at: '2021-11-09T11:27:20.135Z'
+ created_at: '2021-11-10T08:38:00.979Z'
+ updated_at: '2021-11-10T08:38:00.979Z'
relationships:
cms_page:
data:
@@ -1736,7 +1736,8 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Iure quidem reprehenderit minima quisquam fugiat.
+ name: Perspiciatis maiores error odio beatae doloribus totam
+ placeat.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1748,8 +1749,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-09T11:27:20.139Z'
- updated_at: '2021-11-09T11:27:20.139Z'
+ created_at: '2021-11-10T08:38:00.985Z'
+ updated_at: '2021-11-10T08:38:00.985Z'
relationships:
cms_page:
data:
@@ -1760,7 +1761,8 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Amet aperiam possimus harum aliquam sequi omnis.
+ name: At repellat facilis aliquid possimus sit totam quisquam
+ minus.
content: {}
settings:
gutters: No Gutters
@@ -1769,8 +1771,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-09T11:27:20.154Z'
- updated_at: '2021-11-09T11:27:20.154Z'
+ created_at: '2021-11-10T08:38:00.996Z'
+ updated_at: '2021-11-10T08:38:00.996Z'
relationships:
cms_page:
data:
@@ -1781,7 +1783,7 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Ratione molestiae sapiente non optio.
+ name: Facilis corporis fuga tempore quia inventore earum accusamus.
content: {}
settings:
gutters: No Gutters
@@ -1790,8 +1792,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-09T11:27:20.166Z'
- updated_at: '2021-11-09T11:27:20.166Z'
+ created_at: '2021-11-10T08:38:01.011Z'
+ updated_at: '2021-11-10T08:38:01.011Z'
relationships:
cms_page:
data:
@@ -1804,7 +1806,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Minima quaerat nulla explicabo odio consequuntur tempora.
+ name: Ipsam sapiente minus maiores veniam.
content: {}
settings:
gutters: No Gutters
@@ -1813,8 +1815,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-09T11:27:20.178Z'
- updated_at: '2021-11-09T11:27:20.178Z'
+ created_at: '2021-11-10T08:38:01.024Z'
+ updated_at: '2021-11-10T08:38:01.024Z'
relationships:
cms_page:
data:
@@ -1874,8 +1876,8 @@ paths:
id: '13'
type: cms_section
attributes:
- name: Eos consequatur quia provident animi dolores asperiores
- eveniet.
+ name: Voluptatibus ducimus sapiente dignissimos itaque distinctio
+ aliquid.
content: {}
settings:
gutters: No Gutters
@@ -1884,8 +1886,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-11-09T11:27:20.416Z'
- updated_at: '2021-11-09T11:27:20.416Z'
+ created_at: '2021-11-10T08:38:01.301Z'
+ updated_at: '2021-11-10T08:38:01.301Z'
relationships:
cms_page:
data:
@@ -1960,7 +1962,7 @@ paths:
id: '19'
type: cms_section
attributes:
- name: Vitae optio voluptas tempora eveniet quidem minus.
+ name: Similique ipsa quia ratione eveniet adipisci deserunt.
content: {}
settings:
gutters: No Gutters
@@ -1969,8 +1971,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-09T11:27:20.606Z'
- updated_at: '2021-11-09T11:27:20.606Z'
+ created_at: '2021-11-10T08:38:01.527Z'
+ updated_at: '2021-11-10T08:38:01.527Z'
relationships:
cms_page:
data:
@@ -2044,8 +2046,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-09T11:27:20.905Z'
- updated_at: '2021-11-09T11:27:20.921Z'
+ created_at: '2021-11-10T08:38:01.874Z'
+ updated_at: '2021-11-10T08:38:01.891Z'
relationships:
cms_page:
data:
@@ -2165,9 +2167,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-09T11:27:21.545Z'
+ updated_at: '2021-11-10T08:38:02.604Z'
zipcode_required: true
- created_at: '2021-11-09T11:27:21.545Z'
+ created_at: '2021-11-10T08:38:02.604Z'
relationships:
states:
data: []
@@ -2180,9 +2182,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-09T11:27:21.553Z'
+ updated_at: '2021-11-10T08:38:02.613Z'
zipcode_required: true
- created_at: '2021-11-09T11:27:21.553Z'
+ created_at: '2021-11-10T08:38:02.613Z'
relationships:
states:
data: []
@@ -2195,9 +2197,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-09T11:27:21.556Z'
+ updated_at: '2021-11-10T08:38:02.615Z'
zipcode_required: true
- created_at: '2021-11-09T11:27:21.556Z'
+ created_at: '2021-11-10T08:38:02.615Z'
relationships:
states:
data: []
@@ -2256,9 +2258,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-09T11:27:21.642Z'
+ updated_at: '2021-11-10T08:38:02.703Z'
zipcode_required: true
- created_at: '2021-11-09T11:27:21.642Z'
+ created_at: '2021-11-10T08:38:02.703Z'
relationships:
states:
data: []
@@ -2316,7 +2318,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: 8zjcPXtzfvc4ViNjeXa2jjFk
+ token: 2HuSgvQi7o1ymTy3T3BRxe2X
access_counter: 0
relationships:
digital:
@@ -2330,7 +2332,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: 1meiSdDM3YkWrgjGeseDzj4V
+ token: xGwCGHgCVpwf62mNtHArrBsF
access_counter: 0
relationships:
digital:
@@ -2384,7 +2386,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: sg2GGb3yMWYrVJ4C1Vcdx3Q9
+ token: FQcwAa3etjGifx6nJVvnKaiu
access_counter: 0
relationships:
digital:
@@ -2447,7 +2449,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: ZudXzDxVutNErAQ9X2Xg2Aok
+ token: stojpUvF1uu6mLvWtsJQUKEB
access_counter: 0
relationships:
digital:
@@ -2506,7 +2508,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: zwFyXZiqS5K5BiMUxFL2SWnd
+ token: WC1MdKcLk9V1B1bmDU238XWu
access_counter: 0
relationships:
digital:
@@ -2621,7 +2623,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: EvYHmkSBso7N6tcrfhVZPvcE
+ token: Tg8sn1Sh9HwJYFjW8iYb4Kwo
access_counter: 0
relationships:
digital:
@@ -2693,7 +2695,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--701ae780376392414d9704ab5feaa4b7b07bbed0/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7ac8dcb37c96a4aca073d1927c8eeeb618ff6eea/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2705,7 +2707,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a7d6a346de3752133562932dc78fc2f57e99a44c/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2bed42da1cfe85dd996652aae4378a073707efef/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2717,7 +2719,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--cd0782876e24081b695d7c16f189b9198fa72cf9/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c3b9068ac0937fbddad7b697025a1ed8fb35b432/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2776,7 +2778,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c091ad058b64b28185e27504184824f05baaec94/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--3cccec0e4622c62696afe0cb299448c98bf619c6/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2841,7 +2843,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5431da7a0278300936fd7e12d54b32e613ee1fef/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4aff9dfba2af0999a7906bad86308c0f5b03fd14/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2905,7 +2907,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d7c5d4107925478f2fc4a43d819ea233f65bfbd5/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7727de02ef4b7abade21a8687b4b6858b6b690ad/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -3038,8 +3040,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-09T11:27:33.359Z'
- updated_at: '2021-11-09T11:27:33.370Z'
+ created_at: '2021-11-10T08:38:15.352Z'
+ updated_at: '2021-11-10T08:38:15.364Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3087,8 +3089,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-09T11:27:33.415Z'
- updated_at: '2021-11-09T11:27:33.422Z'
+ created_at: '2021-11-10T08:38:15.413Z'
+ updated_at: '2021-11-10T08:38:15.422Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3183,8 +3185,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-09T11:27:33.740Z'
- updated_at: '2021-11-09T11:27:33.787Z'
+ created_at: '2021-11-10T08:38:15.788Z'
+ updated_at: '2021-11-10T08:38:15.831Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3288,8 +3290,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-09T11:27:34.002Z'
- updated_at: '2021-11-09T11:27:34.011Z'
+ created_at: '2021-11-10T08:38:16.068Z'
+ updated_at: '2021-11-10T08:38:16.099Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3389,8 +3391,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-09T11:27:34.342Z'
- updated_at: '2021-11-09T11:27:34.396Z'
+ created_at: '2021-11-10T08:38:16.651Z'
+ updated_at: '2021-11-10T08:38:16.715Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3442,10 +3444,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #130 - 5339" is not available.'
+ error: 'Quantity selected of "Product #130 - 4665" is not available.'
errors:
quantity:
- - 'selected of "Product #130 - 5339" is not available.'
+ - 'selected of "Product #130 - 4665" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -3565,8 +3567,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-09T11:27:35.256Z'
- updated_at: '2021-11-09T11:27:35.263Z'
+ created_at: '2021-11-10T08:38:17.748Z'
+ updated_at: '2021-11-10T08:38:17.755Z'
link:
is_container: false
is_root: false
@@ -3602,8 +3604,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-09T11:27:35.348Z'
- updated_at: '2021-11-09T11:27:35.354Z'
+ created_at: '2021-11-10T08:38:17.846Z'
+ updated_at: '2021-11-10T08:38:17.852Z'
link:
is_container: false
is_root: false
@@ -3639,8 +3641,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-09T11:27:35.440Z'
- updated_at: '2021-11-09T11:27:35.446Z'
+ created_at: '2021-11-10T08:38:17.935Z'
+ updated_at: '2021-11-10T08:38:17.941Z'
link:
is_container: false
is_root: false
@@ -3676,8 +3678,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-09T11:27:35.537Z'
- updated_at: '2021-11-09T11:27:35.544Z'
+ created_at: '2021-11-10T08:38:18.027Z'
+ updated_at: '2021-11-10T08:38:18.034Z'
link:
is_container: false
is_root: false
@@ -3713,8 +3715,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-09T11:27:35.627Z'
- updated_at: '2021-11-09T11:27:35.633Z'
+ created_at: '2021-11-10T08:38:18.117Z'
+ updated_at: '2021-11-10T08:38:18.123Z'
link:
is_container: false
is_root: false
@@ -3750,8 +3752,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-09T11:27:35.718Z'
- updated_at: '2021-11-09T11:27:35.724Z'
+ created_at: '2021-11-10T08:38:18.208Z'
+ updated_at: '2021-11-10T08:38:18.214Z'
link:
is_container: false
is_root: false
@@ -3787,8 +3789,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-09T11:27:35.808Z'
- updated_at: '2021-11-09T11:27:35.814Z'
+ created_at: '2021-11-10T08:38:18.295Z'
+ updated_at: '2021-11-10T08:38:18.301Z'
link:
is_container: false
is_root: false
@@ -3814,7 +3816,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Pariatur dolore molestiae animi iure impedit itaque.
+ name: Mollitia adipisci provident ad fuga dolor.
subtitle:
destination:
new_window: false
@@ -3824,8 +3826,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-09T11:27:35.169Z'
- updated_at: '2021-11-09T11:27:35.826Z'
+ created_at: '2021-11-10T08:38:17.655Z'
+ updated_at: '2021-11-10T08:38:18.314Z'
link:
is_container: true
is_root: true
@@ -3918,8 +3920,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-09T11:27:36.927Z'
- updated_at: '2021-11-09T11:27:36.933Z'
+ created_at: '2021-11-10T08:38:19.473Z'
+ updated_at: '2021-11-10T08:38:19.481Z'
link:
is_container: false
is_root: false
@@ -4009,8 +4011,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-09T11:27:37.641Z'
- updated_at: '2021-11-09T11:27:37.647Z'
+ created_at: '2021-11-10T08:38:20.246Z'
+ updated_at: '2021-11-10T08:38:20.252Z'
link:
is_container: false
is_root: false
@@ -4098,8 +4100,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-09T11:27:38.810Z'
- updated_at: '2021-11-09T11:27:38.847Z'
+ created_at: '2021-11-10T08:38:21.427Z'
+ updated_at: '2021-11-10T08:38:21.462Z'
link:
is_container: false
is_root: false
@@ -4236,8 +4238,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-09T11:27:41.566Z'
- updated_at: '2021-11-09T11:27:41.601Z'
+ created_at: '2021-11-10T08:38:24.224Z'
+ updated_at: '2021-11-10T08:38:24.262Z'
link:
is_container: false
is_root: false
@@ -4341,8 +4343,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-09T11:27:42.398Z'
- updated_at: '2021-11-09T11:27:42.587Z'
+ created_at: '2021-11-10T08:38:25.049Z'
+ updated_at: '2021-11-10T08:38:25.246Z'
relationships:
menu_items:
data:
@@ -4358,8 +4360,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-09T11:27:42.411Z'
- updated_at: '2021-11-09T11:27:42.768Z'
+ created_at: '2021-11-10T08:38:25.062Z'
+ updated_at: '2021-11-10T08:38:25.426Z'
relationships:
menu_items:
data:
@@ -4422,8 +4424,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-09T11:27:43.285Z'
- updated_at: '2021-11-09T11:27:43.293Z'
+ created_at: '2021-11-10T08:38:25.940Z'
+ updated_at: '2021-11-10T08:38:25.948Z'
relationships:
menu_items:
data:
@@ -4491,8 +4493,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-09T11:27:43.365Z'
- updated_at: '2021-11-09T11:27:43.373Z'
+ created_at: '2021-11-10T08:38:26.027Z'
+ updated_at: '2021-11-10T08:38:26.036Z'
relationships:
menu_items:
data:
@@ -4556,8 +4558,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-09T11:27:43.487Z'
- updated_at: '2021-11-09T11:27:43.495Z'
+ created_at: '2021-11-10T08:38:26.177Z'
+ updated_at: '2021-11-10T08:38:26.185Z'
relationships:
menu_items:
data:
@@ -4692,8 +4694,8 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-09T11:27:43.775Z'
- updated_at: '2021-11-09T11:27:43.775Z'
+ created_at: '2021-11-10T08:38:26.484Z'
+ updated_at: '2021-11-10T08:38:26.484Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4706,8 +4708,8 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-09T11:27:43.777Z'
- updated_at: '2021-11-09T11:27:43.777Z'
+ created_at: '2021-11-10T08:38:26.487Z'
+ updated_at: '2021-11-10T08:38:26.487Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4760,8 +4762,8 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-09T11:27:43.874Z'
- updated_at: '2021-11-09T11:27:43.874Z'
+ created_at: '2021-11-10T08:38:26.582Z'
+ updated_at: '2021-11-10T08:38:26.582Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4820,8 +4822,8 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-09T11:27:43.938Z'
- updated_at: '2021-11-09T11:27:43.938Z'
+ created_at: '2021-11-10T08:38:26.645Z'
+ updated_at: '2021-11-10T08:38:26.645Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -4879,8 +4881,8 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-09T11:27:44.032Z'
- updated_at: '2021-11-09T11:27:44.043Z'
+ created_at: '2021-11-10T08:38:26.759Z'
+ updated_at: '2021-11-10T08:38:26.769Z'
filterable: true
public_metadata: {}
private_metadata: {}
@@ -5018,8 +5020,8 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-09T11:27:44.263Z'
- updated_at: '2021-11-09T11:27:44.263Z'
+ created_at: '2021-11-10T08:38:26.991Z'
+ updated_at: '2021-11-10T08:38:26.991Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5033,8 +5035,8 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-09T11:27:44.270Z'
- updated_at: '2021-11-09T11:27:44.270Z'
+ created_at: '2021-11-10T08:38:27.000Z'
+ updated_at: '2021-11-10T08:38:27.000Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5095,8 +5097,8 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-09T11:27:44.367Z'
- updated_at: '2021-11-09T11:27:44.367Z'
+ created_at: '2021-11-10T08:38:27.108Z'
+ updated_at: '2021-11-10T08:38:27.108Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5161,8 +5163,8 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-09T11:27:44.438Z'
- updated_at: '2021-11-09T11:27:44.438Z'
+ created_at: '2021-11-10T08:38:27.179Z'
+ updated_at: '2021-11-10T08:38:27.179Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5228,8 +5230,8 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-11-09T11:27:44.540Z'
- updated_at: '2021-11-09T11:27:44.553Z'
+ created_at: '2021-11-10T08:38:27.290Z'
+ updated_at: '2021-11-10T08:38:27.302Z'
public_metadata: {}
private_metadata: {}
relationships:
@@ -5359,7 +5361,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R628635020
+ number: R087278093
item_total: '0.0'
total: '0.0'
state: cart
@@ -5368,10 +5370,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:44.803Z'
- updated_at: '2021-11-09T11:27:44.803Z'
+ created_at: '2021-11-10T08:38:27.565Z'
+ updated_at: '2021-11-10T08:38:27.565Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5445,7 +5447,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R369818473
+ number: R109492435
item_total: '0.0'
total: '0.0'
state: cart
@@ -5454,10 +5456,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:44.815Z'
- updated_at: '2021-11-09T11:27:44.815Z'
+ created_at: '2021-11-10T08:38:27.580Z'
+ updated_at: '2021-11-10T08:38:27.580Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5578,7 +5580,7 @@ paths:
id: '44'
type: order
attributes:
- number: R888296862
+ number: R558463890
item_total: '0.0'
total: '0.0'
state: cart
@@ -5589,8 +5591,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-11-09T11:27:45.197Z'
- updated_at: '2021-11-09T11:27:45.214Z'
+ created_at: '2021-11-10T08:38:28.021Z'
+ updated_at: '2021-11-10T08:38:28.041Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5706,7 +5708,7 @@ paths:
id: '45'
type: order
attributes:
- number: R740967002
+ number: R407903268
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5715,10 +5717,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:45.273Z'
- updated_at: '2021-11-09T11:27:45.455Z'
+ created_at: '2021-11-10T08:38:28.108Z'
+ updated_at: '2021-11-10T08:38:28.298Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5850,7 +5852,7 @@ paths:
id: '47'
type: order
attributes:
- number: R935822382
+ number: R662066616
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5861,8 +5863,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:45.718Z'
- updated_at: '2021-11-09T11:27:45.860Z'
+ created_at: '2021-11-10T08:38:28.580Z'
+ updated_at: '2021-11-10T08:38:28.735Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6050,7 +6052,7 @@ paths:
id: '52'
type: order
attributes:
- number: R744586058
+ number: R865933094
item_total: '10.0'
total: '110.0'
state: payment
@@ -6059,10 +6061,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:46.688Z'
- updated_at: '2021-11-09T11:27:46.875Z'
+ created_at: '2021-11-10T08:38:29.637Z'
+ updated_at: '2021-11-10T08:38:29.826Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6197,7 +6199,7 @@ paths:
id: '54'
type: order
attributes:
- number: R837753886
+ number: R034095339
item_total: '10.0'
total: '110.0'
state: payment
@@ -6206,10 +6208,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:47.144Z'
- updated_at: '2021-11-09T11:27:47.315Z'
+ created_at: '2021-11-10T08:38:30.142Z'
+ updated_at: '2021-11-10T08:38:30.324Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6344,19 +6346,19 @@ paths:
id: '56'
type: order
attributes:
- number: R763839038
+ number: R332837088
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-09T11:27:47.869Z'
+ completed_at: '2021-11-10T08:38:30.918Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-09T11:27:47.567Z'
- updated_at: '2021-11-09T11:27:47.869Z'
+ created_at: '2021-11-10T08:38:30.611Z'
+ updated_at: '2021-11-10T08:38:30.918Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6502,7 +6504,7 @@ paths:
id: '59'
type: order
attributes:
- number: R943944715
+ number: R166464781
item_total: '0.0'
total: '0.0'
state: cart
@@ -6511,10 +6513,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:48.479Z'
- updated_at: '2021-11-09T11:27:48.625Z'
+ created_at: '2021-11-10T08:38:31.419Z'
+ updated_at: '2021-11-10T08:38:31.582Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6644,7 +6646,7 @@ paths:
id: '61'
type: order
attributes:
- number: R531982411
+ number: R307076425
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6653,10 +6655,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-09T11:27:48.876Z'
- updated_at: '2021-11-09T11:27:48.997Z'
+ created_at: '2021-11-10T08:38:31.866Z'
+ updated_at: '2021-11-10T08:38:31.986Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6959,8 +6961,8 @@ paths:
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-09T11:27:51.177Z'
- updated_at: '2021-11-09T11:27:51.177Z'
+ created_at: '2021-11-10T08:38:34.383Z'
+ updated_at: '2021-11-10T08:38:34.383Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -6980,8 +6982,8 @@ paths:
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-09T11:27:51.187Z'
- updated_at: '2021-11-09T11:27:51.187Z'
+ created_at: '2021-11-10T08:38:34.393Z'
+ updated_at: '2021-11-10T08:38:34.393Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7001,8 +7003,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-09T11:27:51.193Z'
- updated_at: '2021-11-09T11:27:51.193Z'
+ created_at: '2021-11-10T08:38:34.399Z'
+ updated_at: '2021-11-10T08:38:34.399Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7022,8 +7024,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-09T11:27:51.198Z'
- updated_at: '2021-11-09T11:27:51.198Z'
+ created_at: '2021-11-10T08:38:34.405Z'
+ updated_at: '2021-11-10T08:38:34.405Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7046,8 +7048,8 @@ paths:
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-09T11:27:51.204Z'
- updated_at: '2021-11-09T11:27:51.204Z'
+ created_at: '2021-11-10T08:38:34.411Z'
+ updated_at: '2021-11-10T08:38:34.411Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7117,8 +7119,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-09T11:27:51.383Z'
- updated_at: '2021-11-09T11:27:51.383Z'
+ created_at: '2021-11-10T08:38:34.612Z'
+ updated_at: '2021-11-10T08:38:34.612Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7194,8 +7196,8 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-09T11:27:51.510Z'
- updated_at: '2021-11-09T11:27:51.510Z'
+ created_at: '2021-11-10T08:38:34.755Z'
+ updated_at: '2021-11-10T08:38:34.755Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7270,8 +7272,8 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-09T11:27:51.693Z'
- updated_at: '2021-11-09T11:27:51.707Z'
+ created_at: '2021-11-10T08:38:35.109Z'
+ updated_at: '2021-11-10T08:38:35.124Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -7419,9 +7421,9 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-09T11:27:52.145Z'
- updated_at: '2021-11-09T11:27:52.171Z'
- number: PRZBNPR1
+ created_at: '2021-11-10T08:38:35.609Z'
+ updated_at: '2021-11-10T08:38:35.639Z'
+ number: P77MVRFZ
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7458,9 +7460,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-09T11:27:52.166Z'
- updated_at: '2021-11-09T11:27:52.166Z'
- number: PEHEBTK3
+ created_at: '2021-11-10T08:38:35.634Z'
+ updated_at: '2021-11-10T08:38:35.634Z'
+ number: PY8QESZ6
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7548,9 +7550,9 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-09T11:27:52.400Z'
- updated_at: '2021-11-09T11:27:52.400Z'
- number: PPAX2BOI
+ created_at: '2021-11-10T08:38:35.898Z'
+ updated_at: '2021-11-10T08:38:35.898Z'
+ number: P2HSNNZT
cvv_response_code:
cvv_response_message:
public_metadata: {}
@@ -7688,8 +7690,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-09T11:27:52.742Z'
- updated_at: '2021-11-09T11:27:52.742Z'
+ created_at: '2021-11-10T08:38:36.290Z'
+ updated_at: '2021-11-10T08:38:36.290Z'
code: POP123
relationships:
promotions:
@@ -7698,8 +7700,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-09T11:27:52.743Z'
- updated_at: '2021-11-09T11:27:52.743Z'
+ created_at: '2021-11-10T08:38:36.292Z'
+ updated_at: '2021-11-10T08:38:36.292Z'
code: POP123
relationships:
promotions:
@@ -7755,8 +7757,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-09T11:27:52.829Z'
- updated_at: '2021-11-09T11:27:52.829Z'
+ created_at: '2021-11-10T08:38:36.383Z'
+ updated_at: '2021-11-10T08:38:36.383Z'
code: 2021-BFM
relationships:
promotions:
@@ -7816,8 +7818,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-09T11:27:52.895Z'
- updated_at: '2021-11-09T11:27:52.895Z'
+ created_at: '2021-11-10T08:38:36.448Z'
+ updated_at: '2021-11-10T08:38:36.448Z'
code: MJO
relationships:
promotions:
@@ -7878,8 +7880,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-09T11:27:52.992Z'
- updated_at: '2021-11-09T11:27:53.001Z'
+ created_at: '2021-11-10T08:38:36.558Z'
+ updated_at: '2021-11-10T08:38:36.567Z'
code: 2021-Promos
relationships:
promotions:
@@ -8000,14 +8002,14 @@ paths:
type: role
attributes:
name: 'Role #1'
- created_at: '2021-11-09T11:27:53.207Z'
- updated_at: '2021-11-09T11:27:53.207Z'
+ created_at: '2021-11-10T08:38:36.789Z'
+ updated_at: '2021-11-10T08:38:36.789Z'
- id: '2'
type: role
attributes:
name: 'Role #2'
- created_at: '2021-11-09T11:27:53.209Z'
- updated_at: '2021-11-09T11:27:53.209Z'
+ created_at: '2021-11-10T08:38:36.791Z'
+ updated_at: '2021-11-10T08:38:36.791Z'
meta:
count: 2
total_count: 2
@@ -8052,8 +8054,8 @@ paths:
type: role
attributes:
name: 'Role #5'
- created_at: '2021-11-09T11:27:53.296Z'
- updated_at: '2021-11-09T11:27:53.296Z'
+ created_at: '2021-11-10T08:38:36.893Z'
+ updated_at: '2021-11-10T08:38:36.893Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8102,8 +8104,8 @@ paths:
type: role
attributes:
name: 'Role #6'
- created_at: '2021-11-09T11:27:53.355Z'
- updated_at: '2021-11-09T11:27:53.355Z'
+ created_at: '2021-11-10T08:38:36.956Z'
+ updated_at: '2021-11-10T08:38:36.956Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -8153,8 +8155,8 @@ paths:
type: role
attributes:
name: administrator
- created_at: '2021-11-09T11:27:53.455Z'
- updated_at: '2021-11-09T11:27:53.463Z'
+ created_at: '2021-11-10T08:38:37.058Z'
+ updated_at: '2021-11-10T08:38:37.067Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8278,12 +8280,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H44064496615
+ number: H32160721941
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-09T11:27:53.690Z'
- updated_at: '2021-11-09T11:27:53.695Z'
+ created_at: '2021-11-10T08:38:37.378Z'
+ updated_at: '2021-11-10T08:38:37.385Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8294,8 +8296,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$0.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$0.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8327,12 +8329,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H74585843112
+ number: H93812750600
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-09T11:27:53.734Z'
- updated_at: '2021-11-09T11:27:53.739Z'
+ created_at: '2021-11-10T08:38:37.461Z'
+ updated_at: '2021-11-10T08:38:37.468Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8343,8 +8345,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$0.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$0.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8429,12 +8431,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H91252351044
+ number: H41014097191
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-09T11:27:54.164Z'
- updated_at: '2021-11-09T11:27:54.190Z'
+ created_at: '2021-11-10T08:38:38.021Z'
+ updated_at: '2021-11-10T08:38:38.049Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8445,8 +8447,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8570,12 +8572,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H24297189907
+ number: H28024775048
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-09T11:27:55.366Z'
- updated_at: '2021-11-09T11:27:55.413Z'
+ created_at: '2021-11-10T08:38:39.448Z'
+ updated_at: '2021-11-10T08:38:39.496Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8586,8 +8588,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8676,12 +8678,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H62964635302
+ number: H61143696172
cost: '100.0'
- shipped_at: '2021-11-09T11:27:56.037Z'
+ shipped_at: '2021-11-10T08:38:40.305Z'
state: shipped
- created_at: '2021-11-09T11:27:55.991Z'
- updated_at: '2021-11-09T11:27:56.037Z'
+ created_at: '2021-11-10T08:38:40.249Z'
+ updated_at: '2021-11-10T08:38:40.305Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8692,8 +8694,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8782,12 +8784,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H35894389626
+ number: H36047429255
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-09T11:27:56.625Z'
- updated_at: '2021-11-09T11:27:56.664Z'
+ created_at: '2021-11-10T08:38:41.012Z'
+ updated_at: '2021-11-10T08:38:41.057Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8798,8 +8800,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8888,12 +8890,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H04749971676
+ number: H21531592081
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-09T11:27:57.270Z'
- updated_at: '2021-11-09T11:27:57.312Z'
+ created_at: '2021-11-10T08:38:41.825Z'
+ updated_at: '2021-11-10T08:38:41.875Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8904,8 +8906,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -8994,12 +8996,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H18373719662
+ number: H00264754606
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-09T11:27:57.902Z'
- updated_at: '2021-11-09T11:27:57.940Z'
+ created_at: '2021-11-10T08:38:42.593Z'
+ updated_at: '2021-11-10T08:38:42.634Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -9010,8 +9012,8 @@ paths:
public_metadata: {}
private_metadata: {}
display_cost: "$100.00"
- display_item_cost: "$10.00"
display_discounted_cost: "$100.00"
+ display_item_cost: "$10.00"
display_final_price: "$100.00"
display_amount: "$100.00"
relationships:
@@ -9104,14 +9106,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #116'
- created_at: '2021-11-09T11:27:58.303Z'
- updated_at: '2021-11-09T11:27:58.303Z'
+ created_at: '2021-11-10T08:38:43.038Z'
+ updated_at: '2021-11-10T08:38:43.038Z'
- id: '117'
type: shipping_category
attributes:
name: 'ShippingCategory #117'
- created_at: '2021-11-09T11:27:58.304Z'
- updated_at: '2021-11-09T11:27:58.304Z'
+ created_at: '2021-11-10T08:38:43.040Z'
+ updated_at: '2021-11-10T08:38:43.040Z'
meta:
count: 2
total_count: 2
@@ -9156,8 +9158,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-11-09T11:27:58.395Z'
- updated_at: '2021-11-09T11:27:58.395Z'
+ created_at: '2021-11-10T08:38:43.140Z'
+ updated_at: '2021-11-10T08:38:43.140Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9206,8 +9208,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #121'
- created_at: '2021-11-09T11:27:58.459Z'
- updated_at: '2021-11-09T11:27:58.459Z'
+ created_at: '2021-11-10T08:38:43.207Z'
+ updated_at: '2021-11-10T08:38:43.207Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -9257,8 +9259,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-09T11:27:58.562Z'
- updated_at: '2021-11-09T11:27:58.571Z'
+ created_at: '2021-11-10T08:38:43.314Z'
+ updated_at: '2021-11-10T08:38:43.323Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9392,8 +9394,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-09T11:27:58.788Z'
- updated_at: '2021-11-09T11:27:58.788Z'
+ created_at: '2021-11-10T08:38:43.554Z'
+ updated_at: '2021-11-10T08:38:43.554Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9418,8 +9420,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-09T11:27:58.802Z'
- updated_at: '2021-11-09T11:27:58.802Z'
+ created_at: '2021-11-10T08:38:43.571Z'
+ updated_at: '2021-11-10T08:38:43.571Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9491,8 +9493,8 @@ paths:
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-09T11:27:58.937Z'
- updated_at: '2021-11-09T11:27:58.937Z'
+ created_at: '2021-11-10T08:38:43.727Z'
+ updated_at: '2021-11-10T08:38:43.727Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9578,8 +9580,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-09T11:27:59.015Z'
- updated_at: '2021-11-09T11:27:59.015Z'
+ created_at: '2021-11-10T08:38:43.812Z'
+ updated_at: '2021-11-10T08:38:43.812Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9656,8 +9658,8 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-09T11:27:59.151Z'
- updated_at: '2021-11-09T11:27:59.172Z'
+ created_at: '2021-11-10T08:38:43.967Z'
+ updated_at: '2021-11-10T08:38:43.991Z'
deleted_at:
public_metadata: {}
private_metadata: {}
@@ -9751,6 +9753,277 @@ paths:
error: The access token is invalid
schema:
"$ref": "#/components/schemas/error"
+ "/api/v2/platform/store_credit_categories":
+ get:
+ summary: Return a list of Store Credit Categories
+ tags:
+ - Store Credit Categories
+ security:
+ - bearer_auth: []
+ description: Returns a list of Store Credit Categories
+ operationId: store-credit-categories-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: refunded
+ schema:
+ type: string
+ responses:
+ '200':
+ description: Records returned
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ - id: '2'
+ type: store_credit_category
+ attributes:
+ name: Exchange
+ created_at: '2021-11-10T08:38:44.296Z'
+ updated_at: '2021-11-10T08:38:44.296Z'
+ - id: '3'
+ type: store_credit_category
+ attributes:
+ name: Exchange
+ created_at: '2021-11-10T08:38:44.297Z'
+ updated_at: '2021-11-10T08:38:44.297Z'
+ meta:
+ count: 2
+ total_count: 2
+ total_pages: 1
+ links:
+ self: http://www.example.com/api/v2/platform/store_credit_categories?page=1&per_page=&filter[name_eq]=
+ next: http://www.example.com/api/v2/platform/store_credit_categories?filter%5Bname_eq%5D=&page=1&per_page=
+ prev: http://www.example.com/api/v2/platform/store_credit_categories?filter%5Bname_eq%5D=&page=1&per_page=
+ last: http://www.example.com/api/v2/platform/store_credit_categories?filter%5Bname_eq%5D=&page=1&per_page=
+ first: http://www.example.com/api/v2/platform/store_credit_categories?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 Store Credit Category
+ tags:
+ - Store Credit Categories
+ security:
+ - bearer_auth: []
+ description: Creates a Store Credit Category
+ operationId: create-store-credit-category
+ parameters: []
+ responses:
+ '201':
+ description: Record created
+ content:
+ application/vnd.api+json:
+ examples:
+ Example:
+ value:
+ data:
+ id: '6'
+ type: store_credit_category
+ attributes:
+ name: Exchange
+ created_at: '2021-11-10T08:38:44.388Z'
+ updated_at: '2021-11-10T08:38:44.388Z'
+ 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_store_credit_category_params"
+ "/api/v2/platform/store_credit_categories/{id}":
+ get:
+ summary: Return a Store Credit Category
+ tags:
+ - Store Credit Categories
+ security:
+ - bearer_auth: []
+ description: Returns a Store Credit Category
+ operationId: show-store-credit-category
+ 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: '7'
+ type: store_credit_category
+ attributes:
+ name: Exchange
+ created_at: '2021-11-10T08:38:44.453Z'
+ updated_at: '2021-11-10T08:38:44.453Z'
+ 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 Category
+ tags:
+ - Store Credit Categories
+ security:
+ - bearer_auth: []
+ description: Updates a Store Credit Category
+ operationId: update-store-credit-category
+ 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: '9'
+ type: store_credit_category
+ attributes:
+ name: refunded
+ created_at: '2021-11-10T08:38:44.551Z'
+ updated_at: '2021-11-10T08:38:44.561Z'
+ 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_store_credit_category_params"
+ delete:
+ summary: Delete a Store Credit Category
+ tags:
+ - Store Credit Categories
+ security:
+ - bearer_auth: []
+ description: Deletes a Store Credit Category
+ operationId: delete-store-credit-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/store_credits":
get:
summary: Return a list of Store Credits
@@ -9821,8 +10094,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-09T11:27:59.462Z'
- updated_at: '2021-11-09T11:27:59.462Z'
+ created_at: '2021-11-10T08:38:44.778Z'
+ updated_at: '2021-11-10T08:38:44.778Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -9838,7 +10111,7 @@ paths:
type: user
store_credit_category:
data:
- id: '2'
+ id: '14'
type: store_credit_category
store_credit_type:
data:
@@ -9858,8 +10131,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-09T11:27:59.472Z'
- updated_at: '2021-11-09T11:27:59.472Z'
+ created_at: '2021-11-10T08:38:44.791Z'
+ updated_at: '2021-11-10T08:38:44.791Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -9875,7 +10148,7 @@ paths:
type: user
store_credit_category:
data:
- id: '3'
+ id: '15'
type: store_credit_category
store_credit_type:
data:
@@ -9942,8 +10215,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-09T11:27:59.613Z'
- updated_at: '2021-11-09T11:27:59.613Z'
+ created_at: '2021-11-10T08:38:44.945Z'
+ updated_at: '2021-11-10T08:38:44.945Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -9959,7 +10232,7 @@ paths:
type: user
store_credit_category:
data:
- id: '6'
+ id: '18'
type: store_credit_category
store_credit_type:
data:
@@ -10047,8 +10320,8 @@ paths:
currency: USD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-09T11:27:59.693Z'
- updated_at: '2021-11-09T11:27:59.693Z'
+ created_at: '2021-11-10T08:38:45.033Z'
+ updated_at: '2021-11-10T08:38:45.033Z'
public_metadata: {}
private_metadata: {}
display_amount_used: "$0.00"
@@ -10064,7 +10337,7 @@ paths:
type: user
store_credit_category:
data:
- id: '7'
+ id: '19'
type: store_credit_category
store_credit_type:
data:
@@ -10136,8 +10409,8 @@ paths:
currency: CAD
amount_authorized: '0.0'
originator_type:
- created_at: '2021-11-09T11:27:59.819Z'
- updated_at: '2021-11-09T11:27:59.836Z'
+ created_at: '2021-11-10T08:38:45.177Z'
+ updated_at: '2021-11-10T08:38:45.199Z'
public_metadata:
loyalty_reward: true
private_metadata: {}
@@ -10154,7 +10427,7 @@ paths:
type: user
store_credit_category:
data:
- id: '9'
+ id: '21'
type: store_credit_category
store_credit_type:
data:
@@ -10303,13 +10576,13 @@ paths:
- id: '126'
type: tax_category
attributes:
- name: TaxCategory - 706655
- description: Rerum reiciendis asperiores expedita eveniet
- veritatis fugiat.
+ name: TaxCategory - 215024
+ description: Facilis asperiores consectetur quam minima culpa
+ excepturi beatae cumque.
is_default: false
deleted_at:
- created_at: '2021-11-09T11:28:00.107Z'
- updated_at: '2021-11-09T11:28:00.107Z'
+ created_at: '2021-11-10T08:38:45.500Z'
+ updated_at: '2021-11-10T08:38:45.500Z'
tax_code:
relationships:
tax_rates:
@@ -10317,12 +10590,13 @@ paths:
- id: '127'
type: tax_category
attributes:
- name: TaxCategory - 83786
- description: Nobis vel vero dignissimos porro.
+ name: TaxCategory - 204511
+ description: Cumque pariatur aperiam deleniti harum in rerum
+ nihil.
is_default: false
deleted_at:
- created_at: '2021-11-09T11:28:00.109Z'
- updated_at: '2021-11-09T11:28:00.109Z'
+ created_at: '2021-11-10T08:38:45.502Z'
+ updated_at: '2021-11-10T08:38:45.502Z'
tax_code:
relationships:
tax_rates:
@@ -10377,13 +10651,13 @@ paths:
id: '130'
type: tax_category
attributes:
- name: TaxCategory - 428541
- description: Veritatis quam ullam beatae in possimus sit cumque
- consequatur.
+ name: TaxCategory - 732259
+ description: Quas molestias atque blanditiis dolorum excepturi
+ delectus.
is_default: false
deleted_at:
- created_at: '2021-11-09T11:28:00.192Z'
- updated_at: '2021-11-09T11:28:00.192Z'
+ created_at: '2021-11-10T08:38:45.602Z'
+ updated_at: '2021-11-10T08:38:45.602Z'
tax_code:
relationships:
tax_rates:
@@ -10442,13 +10716,13 @@ paths:
id: '131'
type: tax_category
attributes:
- name: TaxCategory - 58287
- description: Possimus eaque aperiam labore suscipit cum quas
- eius.
+ name: TaxCategory - 820067
+ description: Voluptatem molestiae a ipsum labore voluptatibus
+ laudantium.
is_default: false
deleted_at:
- created_at: '2021-11-09T11:28:00.259Z'
- updated_at: '2021-11-09T11:28:00.259Z'
+ created_at: '2021-11-10T08:38:45.669Z'
+ updated_at: '2021-11-10T08:38:45.669Z'
tax_code:
relationships:
tax_rates:
@@ -10512,8 +10786,8 @@ paths:
description: Men's, women's and children's clothing
is_default: true
deleted_at:
- created_at: '2021-11-09T11:28:00.354Z'
- updated_at: '2021-11-09T11:28:00.364Z'
+ created_at: '2021-11-10T08:38:45.775Z'
+ updated_at: '2021-11-10T08:38:45.786Z'
tax_code: 1233K
relationships:
tax_rates:
@@ -10654,8 +10928,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-09T11:28:00.583Z'
- updated_at: '2021-11-09T11:28:00.583Z'
+ created_at: '2021-11-10T08:38:46.021Z'
+ updated_at: '2021-11-10T08:38:46.021Z'
name:
show_rate_in_label: true
deleted_at:
@@ -10673,8 +10947,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-09T11:28:00.589Z'
- updated_at: '2021-11-09T11:28:00.589Z'
+ created_at: '2021-11-10T08:38:46.027Z'
+ updated_at: '2021-11-10T08:38:46.027Z'
name:
show_rate_in_label: true
deleted_at:
@@ -10739,8 +11013,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-09T11:28:00.702Z'
- updated_at: '2021-11-09T11:28:00.702Z'
+ created_at: '2021-11-10T08:38:46.146Z'
+ updated_at: '2021-11-10T08:38:46.146Z'
name:
show_rate_in_label: true
deleted_at:
@@ -10812,8 +11086,8 @@ paths:
attributes:
amount: '0.1'
included_in_price: false
- created_at: '2021-11-09T11:28:00.768Z'
- updated_at: '2021-11-09T11:28:00.768Z'
+ created_at: '2021-11-10T08:38:46.217Z'
+ updated_at: '2021-11-10T08:38:46.217Z'
name:
show_rate_in_label: true
deleted_at:
@@ -10883,8 +11157,8 @@ paths:
attributes:
amount: '25.9'
included_in_price: true
- created_at: '2021-11-09T11:28:00.881Z'
- updated_at: '2021-11-09T11:28:00.896Z'
+ created_at: '2021-11-10T08:38:46.343Z'
+ updated_at: '2021-11-10T08:38:46.358Z'
name:
show_rate_in_label: true
deleted_at:
@@ -11031,8 +11305,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-09T11:28:01.238Z'
- updated_at: '2021-11-09T11:28:01.243Z'
+ created_at: '2021-11-10T08:38:46.714Z'
+ updated_at: '2021-11-10T08:38:46.720Z'
meta_title:
meta_description:
meta_keywords:
@@ -11068,8 +11342,8 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-11-09T11:28:01.328Z'
- updated_at: '2021-11-09T11:28:01.333Z'
+ created_at: '2021-11-10T08:38:46.814Z'
+ updated_at: '2021-11-10T08:38:46.819Z'
meta_title:
meta_description:
meta_keywords:
@@ -11105,8 +11379,8 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-11-09T11:28:01.149Z'
- updated_at: '2021-11-09T11:28:01.347Z'
+ created_at: '2021-11-10T08:38:46.625Z'
+ updated_at: '2021-11-10T08:38:46.832Z'
meta_title:
meta_description:
meta_keywords:
@@ -11189,8 +11463,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-09T11:28:01.717Z'
- updated_at: '2021-11-09T11:28:01.723Z'
+ created_at: '2021-11-10T08:38:47.269Z'
+ updated_at: '2021-11-10T08:38:47.275Z'
meta_title:
meta_description:
meta_keywords:
@@ -11277,8 +11551,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-09T11:28:01.895Z'
- updated_at: '2021-11-09T11:28:01.900Z'
+ created_at: '2021-11-10T08:38:47.468Z'
+ updated_at: '2021-11-10T08:38:47.474Z'
meta_title:
meta_description:
meta_keywords:
@@ -11368,8 +11642,8 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-09T11:28:02.255Z'
- updated_at: '2021-11-09T11:28:02.291Z'
+ created_at: '2021-11-10T08:38:47.874Z'
+ updated_at: '2021-11-10T08:38:47.922Z'
meta_title:
meta_description:
meta_keywords:
@@ -11525,9 +11799,9 @@ paths:
- id: '119'
type: user
attributes:
- created_at: '2021-11-09T11:28:03.062Z'
- updated_at: '2021-11-09T11:28:03.062Z'
+ created_at: '2021-11-10T08:38:48.766Z'
+ updated_at: '2021-11-10T08:38:48.766Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11541,9 +11815,9 @@ paths:
- id: '120'
type: user
attributes:
- created_at: '2021-11-09T11:28:03.070Z'
- updated_at: '2021-11-09T11:28:03.070Z'
+ created_at: '2021-11-10T08:38:48.777Z'
+ updated_at: '2021-11-10T08:38:48.777Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11557,9 +11831,9 @@ paths:
- id: '121'
type: user
attributes:
- created_at: '2021-11-09T11:28:03.073Z'
- updated_at: '2021-11-09T11:28:03.073Z'
+ created_at: '2021-11-10T08:38:48.780Z'
+ updated_at: '2021-11-10T08:38:48.780Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11620,9 +11894,9 @@ paths:
id: '126'
type: user
attributes:
- created_at: '2021-11-09T11:28:03.364Z'
- updated_at: '2021-11-09T11:28:03.364Z'
+ created_at: '2021-11-10T08:38:48.965Z'
+ updated_at: '2021-11-10T08:38:48.965Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11687,9 +11961,9 @@ paths:
id: '129'
type: user
attributes:
- created_at: '2021-11-09T11:28:03.454Z'
- updated_at: '2021-11-09T11:28:03.454Z'
+ created_at: '2021-11-10T08:38:49.073Z'
+ updated_at: '2021-11-10T08:38:49.073Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11756,8 +12030,8 @@ paths:
type: user
attributes:
- created_at: '2021-11-09T11:28:03.579Z'
- updated_at: '2021-11-09T11:28:03.591Z'
+ created_at: '2021-11-10T08:38:49.220Z'
+ updated_at: '2021-11-10T08:38:49.234Z'
public_metadata: {}
private_metadata: {}
average_order_value: []
@@ -11906,14 +12180,14 @@ paths:
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-09T11:28:03.915Z'
+ updated_at: '2021-11-10T08:38:49.746Z'
discontinue_on:
- created_at: '2021-11-09T11:28:03.907Z'
+ created_at: '2021-11-10T08:38:49.738Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 9861'
+ name: 'Product #181 - 1200'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -11948,23 +12222,23 @@ paths:
type: variant
attributes:
sku: SKU-249
- weight: '170.69'
- height: '59.95'
- depth: '16.92'
+ weight: '86.27'
+ height: '107.51'
+ depth: '101.82'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-09T11:28:03.953Z'
+ updated_at: '2021-11-10T08:38:49.789Z'
discontinue_on:
- created_at: '2021-11-09T11:28:03.944Z'
+ created_at: '2021-11-10T08:38:49.779Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 9861'
+ name: 'Product #181 - 1200'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -12001,23 +12275,23 @@ paths:
type: variant
attributes:
sku: SKU-250
- weight: '4.39'
- height: '107.73'
- depth: '58.55'
+ weight: '151.69'
+ height: '6.18'
+ depth: '140.6'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-09T11:28:03.979Z'
+ updated_at: '2021-11-10T08:38:49.822Z'
discontinue_on:
- created_at: '2021-11-09T11:28:03.970Z'
+ created_at: '2021-11-10T08:38:49.812Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 9861'
+ name: 'Product #181 - 1200'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -12107,23 +12381,23 @@ paths:
type: variant
attributes:
sku: SKU-255
- weight: '71.32'
- height: '113.34'
- depth: '157.89'
+ weight: '24.19'
+ height: '178.45'
+ depth: '97.38'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-09T11:28:04.290Z'
+ updated_at: '2021-11-10T08:38:50.203Z'
discontinue_on:
- created_at: '2021-11-09T11:28:04.281Z'
+ created_at: '2021-11-10T08:38:50.193Z'
public_metadata: {}
private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #183 - 4490'
+ name: 'Product #183 - 9721'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -12284,14 +12558,14 @@ paths:
- id: '1'
type: event
attributes:
- execution_time: 90994
+ execution_time: 26967
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url1.com/
- created_at: '2021-11-09T11:28:04.777Z'
- updated_at: '2021-11-09T11:28:04.777Z'
+ created_at: '2021-11-10T08:38:50.813Z'
+ updated_at: '2021-11-10T08:38:50.813Z'
relationships:
subscriber:
data:
@@ -12300,14 +12574,14 @@ paths:
- id: '2'
type: event
attributes:
- execution_time: 43449
+ execution_time: 80103
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url2.com/
- created_at: '2021-11-09T11:28:04.780Z'
- updated_at: '2021-11-09T11:28:04.780Z'
+ created_at: '2021-11-10T08:38:50.818Z'
+ updated_at: '2021-11-10T08:38:50.818Z'
relationships:
subscriber:
data:
@@ -12383,8 +12657,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-09T11:28:04.861Z'
- updated_at: '2021-11-09T11:28:04.861Z'
+ created_at: '2021-11-10T08:38:50.922Z'
+ updated_at: '2021-11-10T08:38:50.922Z'
- id: '6'
type: subscriber
attributes:
@@ -12392,8 +12666,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-09T11:28:04.862Z'
- updated_at: '2021-11-09T11:28:04.862Z'
+ created_at: '2021-11-10T08:38:50.924Z'
+ updated_at: '2021-11-10T08:38:50.924Z'
meta:
count: 2
total_count: 2
@@ -12441,8 +12715,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-09T11:28:04.953Z'
- updated_at: '2021-11-09T11:28:04.953Z'
+ created_at: '2021-11-10T08:38:51.021Z'
+ updated_at: '2021-11-10T08:38:51.021Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12497,8 +12771,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-09T11:28:05.014Z'
- updated_at: '2021-11-09T11:28:05.014Z'
+ created_at: '2021-11-10T08:38:51.088Z'
+ updated_at: '2021-11-10T08:38:51.088Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -12551,8 +12825,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-09T11:28:05.106Z'
- updated_at: '2021-11-09T11:28:05.106Z'
+ created_at: '2021-11-10T08:38:51.197Z'
+ updated_at: '2021-11-10T08:38:51.197Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -12673,10 +12947,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:05.507Z'
- updated_at: '2021-11-09T11:28:05.507Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:51.648Z'
+ updated_at: '2021-11-10T08:38:51.648Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12688,10 +12962,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:05.578Z'
- updated_at: '2021-11-09T11:28:05.578Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:51.725Z'
+ updated_at: '2021-11-10T08:38:51.725Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12703,10 +12977,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:05.655Z'
- updated_at: '2021-11-09T11:28:05.655Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:51.813Z'
+ updated_at: '2021-11-10T08:38:51.813Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12718,10 +12992,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:05.724Z'
- updated_at: '2021-11-09T11:28:05.724Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:51.900Z'
+ updated_at: '2021-11-10T08:38:51.900Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12780,10 +13054,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:06.258Z'
- updated_at: '2021-11-09T11:28:06.258Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:52.558Z'
+ updated_at: '2021-11-10T08:38:52.558Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12851,10 +13125,10 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-09T11:28:06.560Z'
- updated_at: '2021-11-09T11:28:06.560Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:52.943Z'
+ updated_at: '2021-11-10T08:38:52.943Z'
display_total: "$19.99"
+ display_price: "$19.99"
price: '19.99'
total: '19.99'
relationships:
@@ -12918,10 +13192,10 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-11-09T11:28:07.056Z'
- updated_at: '2021-11-09T11:28:07.066Z'
- display_price: "$19.99"
+ created_at: '2021-11-10T08:38:53.571Z'
+ updated_at: '2021-11-10T08:38:53.584Z'
display_total: "$59.97"
+ display_price: "$19.99"
price: '19.99'
total: '59.97'
relationships:
@@ -13054,9 +13328,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-11-09T11:28:08.100Z'
- updated_at: '2021-11-09T11:28:08.100Z'
- token: KZHvb2yX7ZhfozCmisyz3hFT
+ created_at: '2021-11-10T08:38:54.927Z'
+ updated_at: '2021-11-10T08:38:54.927Z'
+ token: jJuoxVHfPXrRSXrgFhuboFi5
variant_included: false
relationships:
wished_items:
@@ -13071,9 +13345,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-11-09T11:28:08.103Z'
- updated_at: '2021-11-09T11:28:08.103Z'
- token: gQ3b51QMu3Z8MSm68cXNYcxe
+ created_at: '2021-11-10T08:38:54.930Z'
+ updated_at: '2021-11-10T08:38:54.930Z'
+ token: MRjjdQXMqzLV5Bf1UX8HTbNr
variant_included: false
relationships:
wished_items:
@@ -13135,9 +13409,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-11-09T11:28:08.781Z'
- updated_at: '2021-11-09T11:28:08.781Z'
- token: Fn3rAnHYePb9d7pB6odK2mUs
+ created_at: '2021-11-10T08:38:55.806Z'
+ updated_at: '2021-11-10T08:38:55.806Z'
+ token: 2feqjvjCNahdVVhwUW1K1Rn1
variant_included: false
relationships:
wished_items:
@@ -13201,9 +13475,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-11-09T11:28:08.859Z'
- updated_at: '2021-11-09T11:28:08.859Z'
- token: 486GWKopw2VcEc6dNpa7K2dL
+ created_at: '2021-11-10T08:38:55.895Z'
+ updated_at: '2021-11-10T08:38:55.895Z'
+ token: KW8d9LFRT5S68hGYXJUsZFur
variant_included: false
relationships:
wished_items:
@@ -13266,9 +13540,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-11-09T11:28:08.999Z'
- updated_at: '2021-11-09T11:28:09.011Z'
- token: 2VhZsBysB8EoVbTowdTcRZyi
+ created_at: '2021-11-10T08:38:56.031Z'
+ updated_at: '2021-11-10T08:38:56.046Z'
+ token: k6AGd3bLZmBCHNTHoAMDgQu5
variant_included: false
relationships:
wished_items:
@@ -13395,12 +13669,13 @@ paths:
- id: '96'
type: zone
attributes:
- name: Praesentium odio autem iure sequi.
- description: At sunt itaque voluptatibus magni suscipit.
+ name: Itaque in neque hic culpa.
+ description: Assumenda deserunt culpa suscipit alias dolorum
+ ullam.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-09T11:28:09.246Z'
- updated_at: '2021-11-09T11:28:09.246Z'
+ created_at: '2021-11-10T08:38:56.359Z'
+ updated_at: '2021-11-10T08:38:56.359Z'
kind: state
relationships:
zone_members:
@@ -13408,13 +13683,13 @@ paths:
- id: '97'
type: zone
attributes:
- name: Inventore blanditiis autem rem quo odio officia consectetur.
- description: Delectus maiores ea iusto nisi sequi repellat
- quo similique.
+ name: Ipsum officia alias at fugiat reiciendis in quas est.
+ description: Voluptate reiciendis impedit modi saepe nihil
+ error asperiores.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-09T11:28:09.248Z'
- updated_at: '2021-11-09T11:28:09.248Z'
+ created_at: '2021-11-10T08:38:56.361Z'
+ updated_at: '2021-11-10T08:38:56.361Z'
kind: state
relationships:
zone_members:
@@ -13469,12 +13744,12 @@ paths:
id: '100'
type: zone
attributes:
- name: Ratione doloribus error beatae ducimus nemo sequi.
- description: Optio quidem blanditiis nisi minima.
+ name: Animi hic mollitia amet expedita.
+ description: Vel deleniti quasi reprehenderit excepturi nihil.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-09T11:28:09.341Z'
- updated_at: '2021-11-09T11:28:09.341Z'
+ created_at: '2021-11-10T08:38:56.463Z'
+ updated_at: '2021-11-10T08:38:56.463Z'
kind: state
relationships:
zone_members:
@@ -13533,12 +13808,13 @@ paths:
id: '101'
type: zone
attributes:
- name: Assumenda asperiores cumque possimus enim.
- description: Nobis quod voluptas optio laborum fuga cupiditate.
+ name: Architecto impedit odit beatae dignissimos rerum consequatur
+ officia.
+ description: Magni natus animi reiciendis nisi unde.
default_tax: false
zone_members_count: 0
- created_at: '2021-11-09T11:28:09.402Z'
- updated_at: '2021-11-09T11:28:09.402Z'
+ created_at: '2021-11-10T08:38:56.539Z'
+ updated_at: '2021-11-10T08:38:56.539Z'
kind: state
relationships:
zone_members:
@@ -13602,8 +13878,8 @@ paths:
description: The zone containing all EU countries
default_tax: false
zone_members_count: 0
- created_at: '2021-11-09T11:28:09.496Z'
- updated_at: '2021-11-09T11:28:09.506Z'
+ created_at: '2021-11-10T08:38:56.641Z'
+ updated_at: '2021-11-10T08:38:56.652Z'
kind: state
relationships:
zone_members:
@@ -13712,6 +13988,7 @@ tags:
- name: Shipments
- name: Shipping Categories
- name: Shipping Methods
+- name: Store Credit Categories
- name: Store Credits
- name: Tax Categories
- name: Tax Rates
@@ -15607,7 +15884,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-09 11:27:12 UTC
+ example: 2021-11-10 08:37:52 UTC
bill_address_id:
type: string
example: '1'
@@ -15675,7 +15952,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-09 11:27:12 UTC
+ example: 2021-11-10 08:37:52 UTC
confirmation_delivered:
type: boolean
example: true
@@ -15746,7 +16023,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-09 11:27:12 UTC
+ example: 2021-11-10 08:37:52 UTC
bill_address_id:
type: string
example: '1'
@@ -15814,7 +16091,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-09 11:27:12 UTC
+ example: 2021-11-10 08:37:52 UTC
confirmation_delivered:
type: boolean
example: true
@@ -16274,6 +16551,34 @@ components:
required:
- type
x-internal: true
+ create_store_credit_category_params:
+ type: object
+ properties:
+ store_credit_category:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ example: refunded
+ required:
+ - store_credit_category
+ x-internal: true
+ update_store_credit_category_params:
+ type: object
+ properties:
+ store_credit_category:
+ type: object
+ required:
+ - name
+ properties:
+ name:
+ type: string
+ example: refunded
+ required:
+ - store_credit_category
+ x-internal: true
create_store_credit_params:
type: object
properties:
diff --git a/api/spec/integration/api/v2/platform/store_credit_categories_spec.rb b/api/spec/integration/api/v2/platform/store_credit_categories_spec.rb
new file mode 100644
index 0000000000..0013a37a80
--- /dev/null
+++ b/api/spec/integration/api/v2/platform/store_credit_categories_spec.rb
@@ -0,0 +1,26 @@
+require 'swagger_helper'
+
+describe 'Store Credit Categories API', swagger: true do
+ include_context 'Platform API v2'
+
+ resource_name = 'Store Credit Category'
+ options = {
+ filter_examples: [{ name: 'filter[name_eq]', example: 'refunded' }]
+ }
+
+ let(:id) { create(:store_credit_category).id }
+ let(:records_list) { create_list(:store_credit_category, 2) }
+ let(:valid_create_param_value) { build(:store_credit_category).attributes }
+ let(:valid_update_param_value) do
+ {
+ name: 'refunded'
+ }
+ end
+ let(:invalid_param_value) do
+ {
+ name: ''
+ }
+ end
+
+ include_examples 'CRUD examples', resource_name, options
+end
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 5c31797910..496ad7796c 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -61,6 +61,7 @@ RSpec.configure do |config|
{ name: 'Shipments' },
{ name: 'Shipping Categories' },
{ name: 'Shipping Methods' },
+ { name: 'Store Credit Categories' },
{ name: 'Store Credits' },
{ name: 'Tax Categories' },
{ name: 'Tax Rates' },
@@ -1316,6 +1317,35 @@ RSpec.configure do |config|
'x-internal': true
},
+ # Store Credit Category
+ create_store_credit_category_params: {
+ type: :object,
+ properties: {
+ store_credit_category: {
+ type: :object,
+ required: %w[name],
+ properties: {
+ name: { type: :string, example: 'refunded' },
+ }
+ }
+ },
+ required: %w[store_credit_category],
+ 'x-internal': true
+ },
+ update_store_credit_category_params: {
+ type: :object,
+ properties: {
+ store_credit_category: {
+ type: :object,
+ required: %w[name],
+ properties: {
+ name: { type: :string, example: 'refunded' },
+ }
+ }
+ },
+ required: %w[store_credit_category],
+ 'x-internal': true
+ },
# Store Credit
create_store_credit_params: {
diff --git a/core/app/models/spree/store_credit_category.rb b/core/app/models/spree/store_credit_category.rb
index f27ff85ae0..03548c8cfd 100644
--- a/core/app/models/spree/store_credit_category.rb
+++ b/core/app/models/spree/store_credit_category.rb
@@ -7,6 +7,8 @@ module Spree
GIFT_CARD_CATEGORY_NAME = 'Gift Card'.freeze
DEFAULT_NON_EXPIRING_TYPES = [GIFT_CARD_CATEGORY_NAME]
+ self.whitelisted_ransackable_attributes = %w[name]
+
def non_expiring?
non_expiring_category_types.include? name
end