Skip to content

armgit / spree

Public Imported from GitHub
0

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

SD-1450 As a Platform API application I can set public and private metadata for all resources (#11465)

Aleksandar Petrushev53ab7a48621b
diff --git a/api/app/controllers/spree/api/v2/platform/resource_controller.rb b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
index ceb16cc016..6877c1e30e 100644
--- a/api/app/controllers/spree/api/v2/platform/resource_controller.rb
+++ b/api/app/controllers/spree/api/v2/platform/resource_controller.rb
@@ -110,7 +110,15 @@ module Spree
[]
end
- model_class.json_api_permitted_attributes + store_ids
+ model_class.json_api_permitted_attributes + store_ids + metadata_params
+ end
+
+ def metadata_params
+ if model_class.include?(Metadata)
+ [{ public_metadata: {}, private_metadata: {} }]
+ else
+ []
+ end
end
def permitted_resource_params
diff --git a/api/app/serializers/spree/api/v2/platform/payment_method_serializer.rb b/api/app/serializers/spree/api/v2/platform/payment_method_serializer.rb
index 0ad2f1d003..86f2a8238a 100644
--- a/api/app/serializers/spree/api/v2/platform/payment_method_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/payment_method_serializer.rb
@@ -3,7 +3,8 @@ module Spree
module V2
module Platform
class PaymentMethodSerializer < BaseSerializer
- attributes :name, :type, :description, :active, :display_on, :auto_capture, :position, :created_at, :updated_at, :deleted_at
+ attributes :name, :type, :description, :active, :display_on, :auto_capture, :position,
+ :created_at, :updated_at, :deleted_at, :public_metadata, :private_metadata
attribute :preferences do |payment_method|
payment_method.preferences
diff --git a/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb b/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb
index 15af7b20a4..42c9961263 100644
--- a/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/shipping_method_serializer.rb
@@ -3,7 +3,7 @@ module Spree
module V2
module Platform
class ShippingMethodSerializer < BaseSerializer
- attributes :name, :code, :admin_name, :display_on, :tracking_url, :created_at, :updated_at, :deleted_at
+ attributes :name, :code, :admin_name, :display_on, :tracking_url, :created_at, :updated_at, :deleted_at, :public_metadata, :private_metadata
has_many :shipping_categories
has_many :shipping_rates
diff --git a/api/app/serializers/spree/api/v2/platform/user_serializer.rb b/api/app/serializers/spree/api/v2/platform/user_serializer.rb
index 20d0c2830c..966f80130a 100644
--- a/api/app/serializers/spree/api/v2/platform/user_serializer.rb
+++ b/api/app/serializers/spree/api/v2/platform/user_serializer.rb
@@ -5,7 +5,7 @@ module Spree
class UserSerializer < BaseSerializer
set_type :user
- attributes :email, :created_at, :updated_at
+ attributes :email, :created_at, :updated_at, :public_metadata, :private_metadata
attribute :average_order_value do |user, params|
price_stats(user.report_values_for(:average_order_value, params[:store]))
diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yaml
index f2bc228442..fd7a493a5a 100644
--- a/api/docs/v2/platform/index.yaml
+++ b/api/docs/v2/platform/index.yaml
@@ -70,10 +70,12 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-03T11:02:29.755Z'
- updated_at: '2021-11-03T11:02:29.755Z'
+ created_at: '2021-11-05T11:29:22.224Z'
+ updated_at: '2021-11-05T11:29:22.224Z'
deleted_at:
label:
+ public_metadata: {}
+ private_metadata: {}
relationships:
country:
data:
@@ -98,10 +100,12 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-03T11:02:29.758Z'
- updated_at: '2021-11-03T11:02:29.758Z'
+ created_at: '2021-11-05T11:29:22.231Z'
+ updated_at: '2021-11-05T11:29:22.231Z'
deleted_at:
label:
+ public_metadata: {}
+ private_metadata: {}
relationships:
country:
data:
@@ -173,10 +177,12 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-03T11:02:29.967Z'
- updated_at: '2021-11-03T11:02:29.967Z'
+ created_at: '2021-11-05T11:29:22.581Z'
+ updated_at: '2021-11-05T11:29:22.581Z'
deleted_at:
label:
+ public_metadata: {}
+ private_metadata: {}
relationships:
country:
data:
@@ -268,10 +274,12 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-03T11:02:30.013Z'
- updated_at: '2021-11-03T11:02:30.013Z'
+ created_at: '2021-11-05T11:29:22.650Z'
+ updated_at: '2021-11-05T11:29:22.650Z'
deleted_at:
label:
+ public_metadata: {}
+ private_metadata: {}
relationships:
country:
data:
@@ -348,10 +356,12 @@ paths:
state_name:
alternative_phone: 555-555-0199
company: Company
- created_at: '2021-11-03T11:02:30.086Z'
- updated_at: '2021-11-03T11:02:30.095Z'
+ created_at: '2021-11-05T11:29:22.761Z'
+ updated_at: '2021-11-05T11:29:22.773Z'
deleted_at:
label:
+ public_metadata: {}
+ private_metadata: {}
relationships:
country:
data:
@@ -493,8 +503,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-03T11:02:30.341Z'
- updated_at: '2021-11-03T11:02:30.341Z'
+ created_at: '2021-11-05T11:29:23.116Z'
+ updated_at: '2021-11-05T11:29:23.116Z'
state: open
included: false
display_amount: "$100.00"
@@ -520,8 +530,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-03T11:02:30.365Z'
- updated_at: '2021-11-03T11:02:30.365Z'
+ created_at: '2021-11-05T11:29:23.148Z'
+ updated_at: '2021-11-05T11:29:23.148Z'
state: open
included: false
display_amount: "$100.00"
@@ -594,8 +604,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-03T11:02:30.703Z'
- updated_at: '2021-11-03T11:02:30.703Z'
+ created_at: '2021-11-05T11:29:23.554Z'
+ updated_at: '2021-11-05T11:29:23.554Z'
state: open
included: false
display_amount: "$100.00"
@@ -677,8 +687,8 @@ paths:
label: Shipping
mandatory:
eligible: true
- created_at: '2021-11-03T11:02:30.829Z'
- updated_at: '2021-11-03T11:02:30.834Z'
+ created_at: '2021-11-05T11:29:23.742Z'
+ updated_at: '2021-11-05T11:29:23.750Z'
state: open
included: false
display_amount: "$1.00"
@@ -756,8 +766,8 @@ paths:
label: New label
mandatory:
eligible: true
- created_at: '2021-11-03T11:02:31.024Z'
- updated_at: '2021-11-03T11:02:31.044Z'
+ created_at: '2021-11-05T11:29:24.061Z'
+ updated_at: '2021-11-05T11:29:24.079Z'
state: open
included: false
display_amount: "$15.00"
@@ -897,8 +907,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-03T11:02:31.580Z'
- updated_at: '2021-11-03T11:02:31.580Z'
+ created_at: '2021-11-05T11:29:25.031Z'
+ updated_at: '2021-11-05T11:29:25.031Z'
relationships:
product:
data:
@@ -912,8 +922,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-03T11:02:31.660Z'
- updated_at: '2021-11-03T11:02:31.660Z'
+ created_at: '2021-11-05T11:29:25.152Z'
+ updated_at: '2021-11-05T11:29:25.152Z'
relationships:
product:
data:
@@ -974,8 +984,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-03T11:02:32.137Z'
- updated_at: '2021-11-03T11:02:32.137Z'
+ created_at: '2021-11-05T11:29:25.841Z'
+ updated_at: '2021-11-05T11:29:25.841Z'
relationships:
product:
data:
@@ -1042,8 +1052,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-03T11:02:32.315Z'
- updated_at: '2021-11-03T11:02:32.315Z'
+ created_at: '2021-11-05T11:29:26.130Z'
+ updated_at: '2021-11-05T11:29:26.130Z'
relationships:
product:
data:
@@ -1109,8 +1119,8 @@ paths:
type: classification
attributes:
position: 1
- created_at: '2021-11-03T11:02:32.640Z'
- updated_at: '2021-11-03T11:02:32.640Z'
+ created_at: '2021-11-05T11:29:26.786Z'
+ updated_at: '2021-11-05T11:29:26.786Z'
relationships:
product:
data:
@@ -1232,8 +1242,8 @@ paths:
type: classification
attributes:
position: 2
- created_at: '2021-11-03T11:02:33.492Z'
- updated_at: '2021-11-03T11:02:33.514Z'
+ created_at: '2021-11-05T11:29:28.046Z'
+ updated_at: '2021-11-05T11:29:28.075Z'
relationships:
product:
data:
@@ -1338,34 +1348,35 @@ paths:
- id: '1'
type: cms_page
attributes:
- title: Enim ullam pariatur nisi nobis.
+ title: Quasi magnam eligendi perferendis eos possimus dolor.
meta_title:
content:
meta_description:
visible: true
- slug: enim-ullam-pariatur-nisi-nobis
+ slug: quasi-magnam-eligendi-perferendis-eos-possimus-dolor
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-03T11:02:33.878Z'
- updated_at: '2021-11-03T11:02:33.878Z'
+ created_at: '2021-11-05T11:29:28.776Z'
+ updated_at: '2021-11-05T11:29:28.776Z'
relationships:
cms_sections:
data: []
- id: '2'
type: cms_page
attributes:
- title: Illo adipisci dolorem quaerat maiores qui odio at.
+ title: Dolorum recusandae dolorem earum magni fugit quisquam
+ unde.
meta_title:
content:
meta_description:
visible: true
- slug: illo-adipisci-dolorem-quaerat-maiores-qui-odio-at
+ slug: dolorum-recusandae-dolorem-earum-magni-fugit-quisquam-unde
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-03T11:02:33.882Z'
- updated_at: '2021-11-03T11:02:33.882Z'
+ created_at: '2021-11-05T11:29:28.782Z'
+ updated_at: '2021-11-05T11:29:28.782Z'
relationships:
cms_sections:
data: []
@@ -1419,17 +1430,18 @@ paths:
id: '5'
type: cms_page
attributes:
- title: Consequatur veniam ex natus suscipit.
+ title: Corporis in earum suscipit ipsum quos possimus perferendis
+ molestiae.
meta_title:
content:
meta_description:
visible: true
- slug: consequatur-veniam-ex-natus-suscipit
+ slug: corporis-in-earum-suscipit-ipsum-quos-possimus-perferendis-molestiae
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-03T11:02:33.968Z'
- updated_at: '2021-11-03T11:02:33.968Z'
+ created_at: '2021-11-05T11:29:28.915Z'
+ updated_at: '2021-11-05T11:29:28.915Z'
relationships:
cms_sections:
data: []
@@ -1495,18 +1507,17 @@ paths:
id: '6'
type: cms_page
attributes:
- title: Beatae eligendi qui totam quis laudantium optio distinctio
- cum.
+ title: Incidunt laborum aut a harum facilis.
meta_title:
content:
meta_description:
visible: true
- slug: beatae-eligendi-qui-totam-quis-laudantium-optio-distinctio-cum
+ slug: incidunt-laborum-aut-a-harum-facilis
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-03T11:02:34.019Z'
- updated_at: '2021-11-03T11:02:34.019Z'
+ created_at: '2021-11-05T11:29:28.997Z'
+ updated_at: '2021-11-05T11:29:28.997Z'
relationships:
cms_sections:
data: []
@@ -1570,12 +1581,12 @@ paths:
content:
meta_description:
visible: true
- slug: sed-neque-voluptas-deleniti-et-inventore-optio
+ slug: illo-non-repellendus-molestiae-voluptatum-corrupti-ab
type: Spree::Cms::Pages::StandardPage
locale: en
deleted_at:
- created_at: '2021-11-03T11:02:34.084Z'
- updated_at: '2021-11-03T11:02:34.092Z'
+ created_at: '2021-11-05T11:29:29.104Z'
+ updated_at: '2021-11-05T11:29:29.117Z'
relationships:
cms_sections:
data: []
@@ -1704,7 +1715,7 @@ paths:
- id: '1'
type: cms_section
attributes:
- name: Veniam reprehenderit officiis hic sapiente maxime.
+ name: Odio hic sint reiciendis iste.
content: {}
settings:
gutters: No Gutters
@@ -1713,8 +1724,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Taxon
- created_at: '2021-11-03T11:02:34.271Z'
- updated_at: '2021-11-03T11:02:34.271Z'
+ created_at: '2021-11-05T11:29:29.415Z'
+ updated_at: '2021-11-05T11:29:29.415Z'
relationships:
cms_page:
data:
@@ -1725,7 +1736,8 @@ paths:
- id: '2'
type: cms_section
attributes:
- name: Commodi nesciunt numquam aliquam voluptates maiores.
+ name: Enim pariatur tenetur aperiam facilis minus esse maiores
+ expedita.
content:
link_type_one: Spree::Taxon
link_type_two: Spree::Taxon
@@ -1737,8 +1749,8 @@ paths:
type: Spree::Cms::Sections::ImageGallery
position: 2
linked_resource_type:
- created_at: '2021-11-03T11:02:34.275Z'
- updated_at: '2021-11-03T11:02:34.275Z'
+ created_at: '2021-11-05T11:29:29.420Z'
+ updated_at: '2021-11-05T11:29:29.420Z'
relationships:
cms_page:
data:
@@ -1749,8 +1761,8 @@ paths:
- id: '3'
type: cms_section
attributes:
- name: Illum deleniti voluptatum iure deserunt quam consectetur
- eius.
+ name: Optio commodi amet asperiores repellendus impedit eius
+ numquam.
content: {}
settings:
gutters: No Gutters
@@ -1759,8 +1771,8 @@ paths:
type: Spree::Cms::Sections::FeaturedArticle
position: 3
linked_resource_type: Spree::Taxon
- created_at: '2021-11-03T11:02:34.283Z'
- updated_at: '2021-11-03T11:02:34.283Z'
+ created_at: '2021-11-05T11:29:29.432Z'
+ updated_at: '2021-11-05T11:29:29.432Z'
relationships:
cms_page:
data:
@@ -1771,7 +1783,7 @@ paths:
- id: '4'
type: cms_section
attributes:
- name: Illo blanditiis odit maiores incidunt magnam.
+ name: Quae sequi ipsa quod alias.
content: {}
settings:
gutters: No Gutters
@@ -1780,8 +1792,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-03T11:02:34.290Z'
- updated_at: '2021-11-03T11:02:34.290Z'
+ created_at: '2021-11-05T11:29:29.448Z'
+ updated_at: '2021-11-05T11:29:29.448Z'
relationships:
cms_page:
data:
@@ -1794,7 +1806,7 @@ paths:
- id: '5'
type: cms_section
attributes:
- name: Eum sint nemo soluta repellendus eligendi accusamus.
+ name: Animi dolorem cupiditate laborum assumenda nulla.
content: {}
settings:
gutters: No Gutters
@@ -1803,8 +1815,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 5
linked_resource_type: Spree::Product
- created_at: '2021-11-03T11:02:34.296Z'
- updated_at: '2021-11-03T11:02:34.296Z'
+ created_at: '2021-11-05T11:29:29.460Z'
+ updated_at: '2021-11-05T11:29:29.460Z'
relationships:
cms_page:
data:
@@ -1864,7 +1876,7 @@ paths:
id: '13'
type: cms_section
attributes:
- name: Harum illum repellat odit quas itaque.
+ name: Neque maiores ex porro tempore nemo iste atque.
content: {}
settings:
gutters: No Gutters
@@ -1873,8 +1885,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 3
linked_resource_type: Spree::Product
- created_at: '2021-11-03T11:02:34.461Z'
- updated_at: '2021-11-03T11:02:34.461Z'
+ created_at: '2021-11-05T11:29:29.736Z'
+ updated_at: '2021-11-05T11:29:29.736Z'
relationships:
cms_page:
data:
@@ -1949,7 +1961,8 @@ paths:
id: '19'
type: cms_section
attributes:
- name: Vero vel quaerat nemo magni hic ea illo cum.
+ name: Veniam neque dolorum porro aliquam distinctio dolore
+ libero quis.
content: {}
settings:
gutters: No Gutters
@@ -1958,8 +1971,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 4
linked_resource_type: Spree::Product
- created_at: '2021-11-03T11:02:34.672Z'
- updated_at: '2021-11-03T11:02:34.672Z'
+ created_at: '2021-11-05T11:29:30.098Z'
+ updated_at: '2021-11-05T11:29:30.098Z'
relationships:
cms_page:
data:
@@ -2033,8 +2046,8 @@ paths:
type: Spree::Cms::Sections::HeroImage
position: 1
linked_resource_type: Spree::Product
- created_at: '2021-11-03T11:02:34.881Z'
- updated_at: '2021-11-03T11:02:34.892Z'
+ created_at: '2021-11-05T11:29:30.443Z'
+ updated_at: '2021-11-05T11:29:30.460Z'
relationships:
cms_page:
data:
@@ -2154,9 +2167,9 @@ paths:
name: United States of America
numcode: 840
states_required: true
- updated_at: '2021-11-03T11:02:35.345Z'
+ updated_at: '2021-11-05T11:29:31.332Z'
zipcode_required: true
- created_at: '2021-11-03T11:02:35.345Z'
+ created_at: '2021-11-05T11:29:31.332Z'
relationships:
states:
data: []
@@ -2169,9 +2182,9 @@ paths:
name: NAME_2
numcode: 840
states_required: false
- updated_at: '2021-11-03T11:02:35.350Z'
+ updated_at: '2021-11-05T11:29:31.340Z'
zipcode_required: true
- created_at: '2021-11-03T11:02:35.350Z'
+ created_at: '2021-11-05T11:29:31.340Z'
relationships:
states:
data: []
@@ -2184,9 +2197,9 @@ paths:
name: NAME_3
numcode: 840
states_required: false
- updated_at: '2021-11-03T11:02:35.352Z'
+ updated_at: '2021-11-05T11:29:31.343Z'
zipcode_required: true
- created_at: '2021-11-03T11:02:35.352Z'
+ created_at: '2021-11-05T11:29:31.343Z'
relationships:
states:
data: []
@@ -2245,9 +2258,9 @@ paths:
name: NAME_6
numcode: 840
states_required: false
- updated_at: '2021-11-03T11:02:35.405Z'
+ updated_at: '2021-11-05T11:29:31.436Z'
zipcode_required: true
- created_at: '2021-11-03T11:02:35.405Z'
+ created_at: '2021-11-05T11:29:31.436Z'
relationships:
states:
data: []
@@ -2305,7 +2318,7 @@ paths:
- id: '1'
type: digital_link
attributes:
- token: KiBmeGiHmhpPJvt7t2AmTz4s
+ token: RNXJau3uSXC6q67dRqsNrbqE
access_counter: 0
relationships:
digital:
@@ -2319,7 +2332,7 @@ paths:
- id: '2'
type: digital_link
attributes:
- token: yRrbkBH5aVnyWMABzTf6vX9t
+ token: pqaxQrriSYYJcb8pR85BYjbi
access_counter: 0
relationships:
digital:
@@ -2373,7 +2386,7 @@ paths:
id: '5'
type: digital_link
attributes:
- token: jBAmgDnzTMWkVuqpNcC65aDB
+ token: GePp7kYXQQ2uCKv1odXhvM1L
access_counter: 0
relationships:
digital:
@@ -2436,7 +2449,7 @@ paths:
id: '6'
type: digital_link
attributes:
- token: qgjeVysvgLHGD5pgDNumzCit
+ token: ZH69ydPbdXTz9GASEoS2Rm1p
access_counter: 0
relationships:
digital:
@@ -2495,7 +2508,7 @@ paths:
id: '8'
type: digital_link
attributes:
- token: wTALoAmmaBoqU3oq1K5iguhJ
+ token: DjFYBcUTiASaRX1PpiPyqqfQ
access_counter: 0
relationships:
digital:
@@ -2610,7 +2623,7 @@ paths:
id: '13'
type: digital_link
attributes:
- token: ZpDEyiEUPhsdioxZPUYtXqRU
+ token: GNDxhRd8Cor5ChTizu8pY7Qq
access_counter: 0
relationships:
digital:
@@ -2682,7 +2695,7 @@ paths:
- id: '15'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7068626d70aa8c180fd961f26cdd4e449e7b34a7/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBJdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--701ae780376392414d9704ab5feaa4b7b07bbed0/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2694,7 +2707,7 @@ paths:
- id: '16'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0a04fbab30a7c6e2c4e9f9c2e8bf0c1095244c2c/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a7d6a346de3752133562932dc78fc2f57e99a44c/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2706,7 +2719,7 @@ paths:
- id: '17'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--23a31a7317ef6db70f5395a70c05320a3fb149ac/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBKUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--cd0782876e24081b695d7c16f189b9198fa72cf9/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2765,7 +2778,7 @@ paths:
id: '24'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--11b46e9ec4ad663736ae938d13056a21907a3884/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBMQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--c091ad058b64b28185e27504184824f05baaec94/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -2830,7 +2843,7 @@ paths:
id: '28'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--396ec1b385c56f8b7b18fbc6420046ad9a4015a9/thinking-cat.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBNQT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5431da7a0278300936fd7e12d54b32e613ee1fef/thinking-cat.jpg"
content_type: image/jpeg
filename: thinking-cat.jpg
byte_size: 18090
@@ -2894,7 +2907,7 @@ paths:
id: '36'
type: digital
attributes:
- url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ff4acd7b7f42a036bece89f343c26bf7b91af26b/icon_256x256.jpg"
+ url: "/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBPdz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d7c5d4107925478f2fc4a43d819ea233f65bfbd5/icon_256x256.jpg"
content_type: image/png
filename: icon_256x256.jpg
byte_size: 818
@@ -3027,8 +3040,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-03T11:02:43.237Z'
- updated_at: '2021-11-03T11:02:43.244Z'
+ created_at: '2021-11-05T11:29:44.174Z'
+ updated_at: '2021-11-05T11:29:44.187Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3038,6 +3051,8 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_price: "$10.00"
single_display_amount: "$10.00"
display_discounted_amount: "$10.00"
@@ -3074,8 +3089,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-03T11:02:43.270Z'
- updated_at: '2021-11-03T11:02:43.274Z'
+ created_at: '2021-11-05T11:29:44.241Z'
+ updated_at: '2021-11-05T11:29:44.250Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3085,6 +3100,8 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_price: "$10.00"
single_display_amount: "$10.00"
display_discounted_amount: "$10.00"
@@ -3168,8 +3185,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-03T11:02:43.534Z'
- updated_at: '2021-11-03T11:02:43.628Z'
+ created_at: '2021-11-05T11:29:44.609Z'
+ updated_at: '2021-11-05T11:29:44.653Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3179,6 +3196,8 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_price: "$10.00"
single_display_amount: "$10.00"
display_discounted_amount: "$10.00"
@@ -3271,8 +3290,8 @@ paths:
attributes:
quantity: 1
price: '10.0'
- created_at: '2021-11-03T11:02:43.764Z'
- updated_at: '2021-11-03T11:02:43.770Z'
+ created_at: '2021-11-05T11:29:44.884Z'
+ updated_at: '2021-11-05T11:29:44.895Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3282,6 +3301,8 @@ paths:
pre_tax_amount: '10.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_price: "$10.00"
single_display_amount: "$10.00"
display_discounted_amount: "$10.00"
@@ -3370,8 +3391,8 @@ paths:
attributes:
quantity: 4
price: '10.0'
- created_at: '2021-11-03T11:02:44.009Z'
- updated_at: '2021-11-03T11:02:44.050Z'
+ created_at: '2021-11-05T11:29:45.267Z'
+ updated_at: '2021-11-05T11:29:45.330Z'
currency: USD
cost_price: '17.0'
adjustment_total: '0.0'
@@ -3381,6 +3402,8 @@ paths:
pre_tax_amount: '40.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_price: "$10.00"
single_display_amount: "$10.00"
display_discounted_amount: "$40.00"
@@ -3421,10 +3444,10 @@ paths:
examples:
Example:
value:
- error: 'Quantity selected of "Product #130 - 5681" is not available.'
+ error: 'Quantity selected of "Product #130 - 3667" is not available.'
errors:
quantity:
- - 'selected of "Product #130 - 5681" is not available.'
+ - 'selected of "Product #130 - 3667" is not available.'
schema:
"$ref": "#/components/schemas/validation_errors"
'404':
@@ -3544,8 +3567,8 @@ paths:
lft: 2
rgt: 3
depth: 1
- created_at: '2021-11-03T11:02:44.639Z'
- updated_at: '2021-11-03T11:02:44.644Z'
+ created_at: '2021-11-05T11:29:46.261Z'
+ updated_at: '2021-11-05T11:29:46.283Z'
link:
is_container: false
is_root: false
@@ -3581,8 +3604,8 @@ paths:
lft: 4
rgt: 5
depth: 1
- created_at: '2021-11-03T11:02:44.701Z'
- updated_at: '2021-11-03T11:02:44.706Z'
+ created_at: '2021-11-05T11:29:46.373Z'
+ updated_at: '2021-11-05T11:29:46.380Z'
link:
is_container: false
is_root: false
@@ -3618,8 +3641,8 @@ paths:
lft: 6
rgt: 7
depth: 1
- created_at: '2021-11-03T11:02:44.767Z'
- updated_at: '2021-11-03T11:02:44.771Z'
+ created_at: '2021-11-05T11:29:46.468Z'
+ updated_at: '2021-11-05T11:29:46.475Z'
link:
is_container: false
is_root: false
@@ -3655,8 +3678,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-03T11:02:44.828Z'
- updated_at: '2021-11-03T11:02:44.833Z'
+ created_at: '2021-11-05T11:29:46.560Z'
+ updated_at: '2021-11-05T11:29:46.567Z'
link:
is_container: false
is_root: false
@@ -3692,8 +3715,8 @@ paths:
lft: 10
rgt: 11
depth: 1
- created_at: '2021-11-03T11:02:44.896Z'
- updated_at: '2021-11-03T11:02:44.900Z'
+ created_at: '2021-11-05T11:29:46.651Z'
+ updated_at: '2021-11-05T11:29:46.657Z'
link:
is_container: false
is_root: false
@@ -3729,8 +3752,8 @@ paths:
lft: 12
rgt: 13
depth: 1
- created_at: '2021-11-03T11:02:44.959Z'
- updated_at: '2021-11-03T11:02:44.963Z'
+ created_at: '2021-11-05T11:29:46.742Z'
+ updated_at: '2021-11-05T11:29:46.749Z'
link:
is_container: false
is_root: false
@@ -3766,8 +3789,8 @@ paths:
lft: 14
rgt: 15
depth: 1
- created_at: '2021-11-03T11:02:45.019Z'
- updated_at: '2021-11-03T11:02:45.024Z'
+ created_at: '2021-11-05T11:29:46.836Z'
+ updated_at: '2021-11-05T11:29:46.842Z'
link:
is_container: false
is_root: false
@@ -3793,7 +3816,7 @@ paths:
- id: '1'
type: menu_item
attributes:
- name: Amet ad dolorum id nesciunt libero impedit.
+ name: Eius maiores aspernatur fugit at deleniti.
subtitle:
destination:
new_window: false
@@ -3803,8 +3826,8 @@ paths:
lft: 1
rgt: 16
depth: 0
- created_at: '2021-11-03T11:02:44.580Z'
- updated_at: '2021-11-03T11:02:45.035Z'
+ created_at: '2021-11-05T11:29:46.174Z'
+ updated_at: '2021-11-05T11:29:46.855Z'
link:
is_container: true
is_root: true
@@ -3897,8 +3920,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-03T11:02:45.767Z'
- updated_at: '2021-11-03T11:02:45.771Z'
+ created_at: '2021-11-05T11:29:47.964Z'
+ updated_at: '2021-11-05T11:29:47.970Z'
link:
is_container: false
is_root: false
@@ -3988,8 +4011,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-03T11:02:46.274Z'
- updated_at: '2021-11-03T11:02:46.278Z'
+ created_at: '2021-11-05T11:29:48.736Z'
+ updated_at: '2021-11-05T11:29:48.743Z'
link:
is_container: false
is_root: false
@@ -4077,8 +4100,8 @@ paths:
lft: 8
rgt: 9
depth: 1
- created_at: '2021-11-03T11:02:47.078Z'
- updated_at: '2021-11-03T11:02:47.102Z'
+ created_at: '2021-11-05T11:29:49.939Z'
+ updated_at: '2021-11-05T11:29:49.976Z'
link:
is_container: false
is_root: false
@@ -4215,8 +4238,8 @@ paths:
lft: 5
rgt: 6
depth: 2
- created_at: '2021-11-03T11:02:48.956Z'
- updated_at: '2021-11-03T11:02:48.981Z'
+ created_at: '2021-11-05T11:29:52.752Z'
+ updated_at: '2021-11-05T11:29:52.789Z'
link:
is_container: false
is_root: false
@@ -4320,8 +4343,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-03T11:02:49.500Z'
- updated_at: '2021-11-03T11:02:49.636Z'
+ created_at: '2021-11-05T11:29:53.580Z'
+ updated_at: '2021-11-05T11:29:53.780Z'
relationships:
menu_items:
data:
@@ -4337,8 +4360,8 @@ paths:
name: Footer Menu
location: footer
locale: en
- created_at: '2021-11-03T11:02:49.509Z'
- updated_at: '2021-11-03T11:02:49.783Z'
+ created_at: '2021-11-05T11:29:53.593Z'
+ updated_at: '2021-11-05T11:29:53.965Z'
relationships:
menu_items:
data:
@@ -4401,8 +4424,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-03T11:02:50.127Z'
- updated_at: '2021-11-03T11:02:50.132Z'
+ created_at: '2021-11-05T11:29:54.481Z'
+ updated_at: '2021-11-05T11:29:54.489Z'
relationships:
menu_items:
data:
@@ -4470,8 +4493,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-03T11:02:50.184Z'
- updated_at: '2021-11-03T11:02:50.190Z'
+ created_at: '2021-11-05T11:29:54.580Z'
+ updated_at: '2021-11-05T11:29:54.589Z'
relationships:
menu_items:
data:
@@ -4535,8 +4558,8 @@ paths:
name: Main Menu
location: header
locale: en
- created_at: '2021-11-03T11:02:50.264Z'
- updated_at: '2021-11-03T11:02:50.270Z'
+ created_at: '2021-11-05T11:29:54.719Z'
+ updated_at: '2021-11-05T11:29:54.728Z'
relationships:
menu_items:
data:
@@ -4671,9 +4694,11 @@ paths:
name: foo-size-68
presentation: Size
position: 1
- created_at: '2021-11-03T11:02:50.463Z'
- updated_at: '2021-11-03T11:02:50.463Z'
+ created_at: '2021-11-05T11:29:55.028Z'
+ updated_at: '2021-11-05T11:29:55.028Z'
filterable: true
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_values:
data: []
@@ -4683,9 +4708,11 @@ paths:
name: foo-size-69
presentation: Size
position: 2
- created_at: '2021-11-03T11:02:50.465Z'
- updated_at: '2021-11-03T11:02:50.465Z'
+ created_at: '2021-11-05T11:29:55.030Z'
+ updated_at: '2021-11-05T11:29:55.030Z'
filterable: true
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_values:
data: []
@@ -4735,9 +4762,11 @@ paths:
name: foo-size-72
presentation: Size
position: 1
- created_at: '2021-11-03T11:02:50.523Z'
- updated_at: '2021-11-03T11:02:50.523Z'
+ created_at: '2021-11-05T11:29:55.124Z'
+ updated_at: '2021-11-05T11:29:55.124Z'
filterable: true
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_values:
data: []
@@ -4793,9 +4822,11 @@ paths:
name: foo-size-73
presentation: Size
position: 1
- created_at: '2021-11-03T11:02:50.566Z'
- updated_at: '2021-11-03T11:02:50.566Z'
+ created_at: '2021-11-05T11:29:55.193Z'
+ updated_at: '2021-11-05T11:29:55.193Z'
filterable: true
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_values:
data: []
@@ -4850,9 +4881,11 @@ paths:
name: Size-X
presentation: Size
position: 1
- created_at: '2021-11-03T11:02:50.627Z'
- updated_at: '2021-11-03T11:02:50.636Z'
+ created_at: '2021-11-05T11:29:55.296Z'
+ updated_at: '2021-11-05T11:29:55.308Z'
filterable: true
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_values:
data: []
@@ -4987,8 +5020,10 @@ paths:
position: 1
name: Size-68
presentation: S
- created_at: '2021-11-03T11:02:50.782Z'
- updated_at: '2021-11-03T11:02:50.782Z'
+ created_at: '2021-11-05T11:29:55.546Z'
+ updated_at: '2021-11-05T11:29:55.546Z'
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_type:
data:
@@ -5000,8 +5035,10 @@ paths:
position: 1
name: Size-69
presentation: S
- created_at: '2021-11-03T11:02:50.787Z'
- updated_at: '2021-11-03T11:02:50.787Z'
+ created_at: '2021-11-05T11:29:55.553Z'
+ updated_at: '2021-11-05T11:29:55.553Z'
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_type:
data:
@@ -5060,8 +5097,10 @@ paths:
position: 1
name: Size-72
presentation: S
- created_at: '2021-11-03T11:02:50.852Z'
- updated_at: '2021-11-03T11:02:50.852Z'
+ created_at: '2021-11-05T11:29:55.653Z'
+ updated_at: '2021-11-05T11:29:55.653Z'
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_type:
data:
@@ -5124,8 +5163,10 @@ paths:
position: 1
name: Size-73
presentation: S
- created_at: '2021-11-03T11:02:50.891Z'
- updated_at: '2021-11-03T11:02:50.891Z'
+ created_at: '2021-11-05T11:29:55.717Z'
+ updated_at: '2021-11-05T11:29:55.717Z'
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_type:
data:
@@ -5189,8 +5230,10 @@ paths:
position: 1
name: M
presentation: S
- created_at: '2021-11-03T11:02:50.961Z'
- updated_at: '2021-11-03T11:02:50.969Z'
+ created_at: '2021-11-05T11:29:55.830Z'
+ updated_at: '2021-11-05T11:29:55.842Z'
+ public_metadata: {}
+ private_metadata: {}
relationships:
option_type:
data:
@@ -5318,7 +5361,7 @@ paths:
- id: '40'
type: order
attributes:
- number: R441718787
+ number: R380038600
item_total: '0.0'
total: '0.0'
state: cart
@@ -5327,10 +5370,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:51.212Z'
- updated_at: '2021-11-03T11:02:51.212Z'
+ created_at: '2021-11-05T11:29:56.104Z'
+ updated_at: '2021-11-05T11:29:56.104Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5346,6 +5389,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5402,7 +5447,7 @@ paths:
- id: '41'
type: order
attributes:
- number: R773561139
+ number: R955484449
item_total: '0.0'
total: '0.0'
state: cart
@@ -5411,10 +5456,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:51.220Z'
- updated_at: '2021-11-03T11:02:51.220Z'
+ created_at: '2021-11-05T11:29:56.119Z'
+ updated_at: '2021-11-05T11:29:56.119Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5430,6 +5475,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5533,7 +5580,7 @@ paths:
id: '44'
type: order
attributes:
- number: R903897198
+ number: R622405309
item_total: '0.0'
total: '0.0'
state: cart
@@ -5544,8 +5591,8 @@ paths:
payment_state:
email:
special_instructions:
- created_at: '2021-11-03T11:02:51.482Z'
- updated_at: '2021-11-03T11:02:51.497Z'
+ created_at: '2021-11-05T11:29:56.535Z'
+ updated_at: '2021-11-05T11:29:56.555Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -5561,6 +5608,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -5659,7 +5708,7 @@ paths:
id: '45'
type: order
attributes:
- number: R025699839
+ number: R163331113
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5668,10 +5717,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:51.536Z'
- updated_at: '2021-11-03T11:02:51.692Z'
+ created_at: '2021-11-05T11:29:56.634Z'
+ updated_at: '2021-11-05T11:29:56.842Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5687,6 +5736,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5801,7 +5852,7 @@ paths:
id: '47'
type: order
attributes:
- number: R287690890
+ number: R057214802
item_total: '10.0'
total: '110.0'
state: delivery
@@ -5812,8 +5863,8 @@ paths:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:51.872Z'
- updated_at: '2021-11-03T11:02:51.956Z'
+ created_at: '2021-11-05T11:29:57.145Z'
+ updated_at: '2021-11-05T11:29:57.285Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -5829,6 +5880,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -5999,7 +6052,7 @@ paths:
id: '52'
type: order
attributes:
- number: R707222577
+ number: R322989713
item_total: '10.0'
total: '110.0'
state: payment
@@ -6008,10 +6061,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:52.513Z'
- updated_at: '2021-11-03T11:02:52.646Z'
+ created_at: '2021-11-05T11:29:58.211Z'
+ updated_at: '2021-11-05T11:29:58.407Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6027,6 +6080,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6144,7 +6199,7 @@ paths:
id: '54'
type: order
attributes:
- number: R321469258
+ number: R504473077
item_total: '10.0'
total: '110.0'
state: payment
@@ -6153,10 +6208,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:52.838Z'
- updated_at: '2021-11-03T11:02:52.958Z'
+ created_at: '2021-11-05T11:29:58.708Z'
+ updated_at: '2021-11-05T11:29:58.892Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6172,6 +6227,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6289,19 +6346,19 @@ paths:
id: '56'
type: order
attributes:
- number: R949927585
+ number: R129781155
item_total: '10.0'
total: '110.0'
state: complete
adjustment_total: '0.0'
- completed_at: '2021-11-03T11:02:53.330Z'
+ completed_at: '2021-11-05T11:29:59.618Z'
payment_total: '0.0'
shipment_state: pending
payment_state: balance_due
special_instructions:
- created_at: '2021-11-03T11:02:53.127Z'
- updated_at: '2021-11-03T11:02:53.330Z'
+ created_at: '2021-11-05T11:29:59.316Z'
+ updated_at: '2021-11-05T11:29:59.618Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6317,6 +6374,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6445,7 +6504,7 @@ paths:
id: '59'
type: order
attributes:
- number: R364308130
+ number: R933032985
item_total: '0.0'
total: '0.0'
state: cart
@@ -6454,10 +6513,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:53.625Z'
- updated_at: '2021-11-03T11:02:53.726Z'
+ created_at: '2021-11-05T11:30:00.139Z'
+ updated_at: '2021-11-05T11:30:00.296Z'
currency: USD
last_ip_address:
shipment_total: '0.0'
@@ -6473,6 +6532,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$0.00"
display_item_total: "$0.00"
display_tax_total: "$0.00"
@@ -6585,7 +6646,7 @@ paths:
id: '61'
type: order
attributes:
- number: R352605383
+ number: R748115898
item_total: '10.0'
total: '110.0'
state: delivery
@@ -6594,10 +6655,10 @@ paths:
payment_total: '0.0'
shipment_state:
payment_state:
special_instructions:
- created_at: '2021-11-03T11:02:53.987Z'
- updated_at: '2021-11-03T11:02:54.064Z'
+ created_at: '2021-11-05T11:30:00.577Z'
+ updated_at: '2021-11-05T11:30:00.703Z'
currency: USD
last_ip_address:
shipment_total: '100.0'
@@ -6613,6 +6674,8 @@ paths:
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
store_owner_notification_delivered:
+ public_metadata: {}
+ private_metadata: {}
display_outstanding_balance: "$110.00"
display_item_total: "$10.00"
display_tax_total: "$0.00"
@@ -6898,9 +6961,11 @@ paths:
display_on: both
auto_capture:
position: 1
- created_at: '2021-11-03T11:02:55.629Z'
- updated_at: '2021-11-03T11:02:55.629Z'
+ created_at: '2021-11-05T11:30:03.089Z'
+ updated_at: '2021-11-05T11:30:03.089Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences: {}
relationships:
stores:
@@ -6917,9 +6982,11 @@ paths:
display_on: both
auto_capture:
position: 2
- created_at: '2021-11-03T11:02:55.635Z'
- updated_at: '2021-11-03T11:02:55.635Z'
+ created_at: '2021-11-05T11:30:03.099Z'
+ updated_at: '2021-11-05T11:30:03.099Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences: {}
relationships:
stores:
@@ -6936,9 +7003,11 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-03T11:02:55.638Z'
- updated_at: '2021-11-03T11:02:55.638Z'
+ created_at: '2021-11-05T11:30:03.104Z'
+ updated_at: '2021-11-05T11:30:03.104Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences: {}
relationships:
stores:
@@ -6955,9 +7024,11 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-03T11:02:55.641Z'
- updated_at: '2021-11-03T11:02:55.641Z'
+ created_at: '2021-11-05T11:30:03.110Z'
+ updated_at: '2021-11-05T11:30:03.110Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences:
dummy_key: PUBLICKEY123
server: test
@@ -6977,9 +7048,11 @@ paths:
display_on: both
auto_capture:
position: 5
- created_at: '2021-11-03T11:02:55.645Z'
- updated_at: '2021-11-03T11:02:55.645Z'
+ created_at: '2021-11-05T11:30:03.116Z'
+ updated_at: '2021-11-05T11:30:03.116Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences:
dummy_key: PUBLICKEY123
server: test
@@ -7046,9 +7119,11 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-03T11:02:55.755Z'
- updated_at: '2021-11-03T11:02:55.755Z'
+ created_at: '2021-11-05T11:30:03.301Z'
+ updated_at: '2021-11-05T11:30:03.301Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences:
dummy_key: PUBLICKEY123
server: test
@@ -7121,9 +7196,11 @@ paths:
display_on: both
auto_capture:
position: 4
- created_at: '2021-11-03T11:02:55.832Z'
- updated_at: '2021-11-03T11:02:55.832Z'
+ created_at: '2021-11-05T11:30:03.448Z'
+ updated_at: '2021-11-05T11:30:03.448Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences:
dummy_key: PUBLICKEY123
server: test
@@ -7195,9 +7272,11 @@ paths:
display_on: both
auto_capture:
position: 3
- created_at: '2021-11-03T11:02:56.026Z'
- updated_at: '2021-11-03T11:02:56.037Z'
+ created_at: '2021-11-05T11:30:03.653Z'
+ updated_at: '2021-11-05T11:30:03.669Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
preferences:
dummy_key: UPDATED-DUMMY-KEY-123
server: production
@@ -7342,11 +7421,13 @@ paths:
state: invalid
response_code: '12345'
avs_response:
- created_at: '2021-11-03T11:02:56.322Z'
- updated_at: '2021-11-03T11:02:56.338Z'
- number: PGKBRB4P
+ created_at: '2021-11-05T11:30:04.125Z'
+ updated_at: '2021-11-05T11:30:04.155Z'
+ number: PJF02RSC
cvv_response_code:
cvv_response_message:
+ public_metadata: {}
+ private_metadata: {}
display_amount: "$45.75"
relationships:
order:
@@ -7379,11 +7460,13 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-03T11:02:56.335Z'
- updated_at: '2021-11-03T11:02:56.335Z'
- number: PAX0GJ8S
+ created_at: '2021-11-05T11:30:04.150Z'
+ updated_at: '2021-11-05T11:30:04.150Z'
+ number: P7YVWPLW
cvv_response_code:
cvv_response_message:
+ public_metadata: {}
+ private_metadata: {}
display_amount: "$45.75"
relationships:
order:
@@ -7467,11 +7550,13 @@ paths:
state: checkout
response_code: '12345'
avs_response:
- created_at: '2021-11-03T11:02:56.498Z'
- updated_at: '2021-11-03T11:02:56.498Z'
- number: P3SL80UT
+ created_at: '2021-11-05T11:30:04.401Z'
+ updated_at: '2021-11-05T11:30:04.401Z'
+ number: P3SSQUW4
cvv_response_code:
cvv_response_message:
+ public_metadata: {}
+ private_metadata: {}
display_amount: "$45.75"
relationships:
order:
@@ -7605,8 +7690,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-03T11:02:56.725Z'
- updated_at: '2021-11-03T11:02:56.725Z'
+ created_at: '2021-11-05T11:30:04.757Z'
+ updated_at: '2021-11-05T11:30:04.757Z'
code: POP123
relationships:
promotions:
@@ -7615,8 +7700,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-03T11:02:56.727Z'
- updated_at: '2021-11-03T11:02:56.727Z'
+ created_at: '2021-11-05T11:30:04.758Z'
+ updated_at: '2021-11-05T11:30:04.758Z'
code: POP123
relationships:
promotions:
@@ -7672,8 +7757,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-03T11:02:56.781Z'
- updated_at: '2021-11-03T11:02:56.781Z'
+ created_at: '2021-11-05T11:30:04.845Z'
+ updated_at: '2021-11-05T11:30:04.845Z'
code: 2021-BFM
relationships:
promotions:
@@ -7733,8 +7818,8 @@ paths:
type: promotion_category
attributes:
name: Promotion Category
- created_at: '2021-11-03T11:02:56.822Z'
- updated_at: '2021-11-03T11:02:56.822Z'
+ created_at: '2021-11-05T11:30:04.908Z'
+ updated_at: '2021-11-05T11:30:04.908Z'
code: MJO
relationships:
promotions:
@@ -7795,8 +7880,8 @@ paths:
type: promotion_category
attributes:
name: 2021 Promotions
- created_at: '2021-11-03T11:02:56.879Z'
- updated_at: '2021-11-03T11:02:56.885Z'
+ created_at: '2021-11-05T11:30:05.023Z'
+ updated_at: '2021-11-05T11:30:05.031Z'
code: 2021-Promos
relationships:
promotions:
@@ -7924,12 +8009,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H88441639968
+ number: H29326421302
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-03T11:02:57.020Z'
- updated_at: '2021-11-03T11:02:57.023Z'
+ created_at: '2021-11-05T11:30:05.252Z'
+ updated_at: '2021-11-05T11:30:05.256Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7937,6 +8022,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
display_final_price: "$100.00"
@@ -7971,12 +8058,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H79094597173
+ number: H21611995524
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-03T11:02:57.054Z'
- updated_at: '2021-11-03T11:02:57.057Z'
+ created_at: '2021-11-05T11:30:05.302Z'
+ updated_at: '2021-11-05T11:30:05.307Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -7984,6 +8071,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$0.00"
display_final_price: "$100.00"
@@ -8071,12 +8160,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H84499342587
+ number: H60035200587
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-03T11:02:57.354Z'
- updated_at: '2021-11-03T11:02:57.371Z'
+ created_at: '2021-11-05T11:30:05.769Z'
+ updated_at: '2021-11-05T11:30:05.798Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8084,6 +8173,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8210,12 +8301,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H37402224501
+ number: H78624579901
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-03T11:02:58.286Z'
- updated_at: '2021-11-03T11:02:58.317Z'
+ created_at: '2021-11-05T11:30:07.146Z'
+ updated_at: '2021-11-05T11:30:07.192Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8223,6 +8314,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8314,12 +8407,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H66701052891
+ number: H36706825202
cost: '100.0'
- shipped_at: '2021-11-03T11:02:58.757Z'
+ shipped_at: '2021-11-05T11:30:08.120Z'
state: shipped
- created_at: '2021-11-03T11:02:58.723Z'
- updated_at: '2021-11-03T11:02:58.757Z'
+ created_at: '2021-11-05T11:30:08.060Z'
+ updated_at: '2021-11-05T11:30:08.120Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8327,6 +8420,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8418,12 +8513,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H02358142093
+ number: H52646027720
cost: '100.0'
shipped_at:
state: canceled
- created_at: '2021-11-03T11:02:59.162Z'
- updated_at: '2021-11-03T11:02:59.189Z'
+ created_at: '2021-11-05T11:30:08.965Z'
+ updated_at: '2021-11-05T11:30:09.010Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8431,6 +8526,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8522,12 +8619,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H77557291835
+ number: H12073028234
cost: '100.0'
shipped_at:
state: ready
- created_at: '2021-11-03T11:02:59.605Z'
- updated_at: '2021-11-03T11:02:59.635Z'
+ created_at: '2021-11-05T11:30:09.705Z'
+ updated_at: '2021-11-05T11:30:09.754Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8535,6 +8632,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8626,12 +8725,12 @@ paths:
type: shipment
attributes:
tracking: U10000
- number: H16944195478
+ number: H80261464874
cost: '100.0'
shipped_at:
state: pending
- created_at: '2021-11-03T11:03:00.127Z'
- updated_at: '2021-11-03T11:03:00.154Z'
+ created_at: '2021-11-05T11:30:10.417Z'
+ updated_at: '2021-11-05T11:30:10.474Z'
adjustment_total: '0.0'
additional_tax_total: '0.0'
promo_total: '0.0'
@@ -8639,6 +8738,8 @@ paths:
pre_tax_amount: '0.0'
taxable_adjustment_total: '0.0'
non_taxable_adjustment_total: '0.0'
+ public_metadata: {}
+ private_metadata: {}
display_discounted_cost: "$100.00"
display_item_cost: "$10.00"
display_final_price: "$100.00"
@@ -8734,14 +8835,14 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #116'
- created_at: '2021-11-03T11:03:00.404Z'
- updated_at: '2021-11-03T11:03:00.404Z'
+ created_at: '2021-11-05T11:30:10.944Z'
+ updated_at: '2021-11-05T11:30:10.944Z'
- id: '117'
type: shipping_category
attributes:
name: 'ShippingCategory #117'
- created_at: '2021-11-03T11:03:00.405Z'
- updated_at: '2021-11-03T11:03:00.405Z'
+ created_at: '2021-11-05T11:30:10.945Z'
+ updated_at: '2021-11-05T11:30:10.945Z'
meta:
count: 2
total_count: 2
@@ -8786,8 +8887,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #120'
- created_at: '2021-11-03T11:03:00.461Z'
- updated_at: '2021-11-03T11:03:00.461Z'
+ created_at: '2021-11-05T11:30:11.035Z'
+ updated_at: '2021-11-05T11:30:11.035Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -8836,8 +8937,8 @@ paths:
type: shipping_category
attributes:
name: 'ShippingCategory #121'
- created_at: '2021-11-03T11:03:00.501Z'
- updated_at: '2021-11-03T11:03:00.501Z'
+ created_at: '2021-11-05T11:30:11.104Z'
+ updated_at: '2021-11-05T11:30:11.104Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -8887,8 +8988,8 @@ paths:
type: shipping_category
attributes:
name: Default
- created_at: '2021-11-03T11:03:00.561Z'
- updated_at: '2021-11-03T11:03:00.567Z'
+ created_at: '2021-11-05T11:30:11.217Z'
+ updated_at: '2021-11-05T11:30:11.226Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -9022,9 +9123,11 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-03T11:03:00.706Z'
- updated_at: '2021-11-03T11:03:00.706Z'
+ created_at: '2021-11-05T11:30:11.453Z'
+ updated_at: '2021-11-05T11:30:11.453Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
relationships:
shipping_categories:
data:
@@ -9046,9 +9149,11 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-03T11:03:00.715Z'
- updated_at: '2021-11-03T11:03:00.715Z'
+ created_at: '2021-11-05T11:30:11.473Z'
+ updated_at: '2021-11-05T11:30:11.473Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
relationships:
shipping_categories:
data:
@@ -9117,9 +9222,11 @@ paths:
admin_name: DHL Express- Zone A
display_on: both
tracking_url:
- created_at: '2021-11-03T11:03:00.796Z'
- updated_at: '2021-11-03T11:03:00.796Z'
+ created_at: '2021-11-05T11:30:11.617Z'
+ updated_at: '2021-11-05T11:30:11.617Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
relationships:
shipping_categories:
data:
@@ -9202,9 +9309,11 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-03T11:03:00.848Z'
- updated_at: '2021-11-03T11:03:00.848Z'
+ created_at: '2021-11-05T11:30:11.741Z'
+ updated_at: '2021-11-05T11:30:11.741Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
relationships:
shipping_categories:
data:
@@ -9278,9 +9387,11 @@ paths:
admin_name:
display_on: both
tracking_url:
- created_at: '2021-11-03T11:03:00.930Z'
- updated_at: '2021-11-03T11:03:00.945Z'
+ created_at: '2021-11-05T11:30:11.905Z'
+ updated_at: '2021-11-05T11:30:11.928Z'
deleted_at:
+ public_metadata: {}
+ private_metadata: {}
relationships:
shipping_categories:
data:
@@ -9428,12 +9539,14 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-03T11:03:01.204Z'
- updated_at: '2021-11-03T11:03:01.207Z'
+ created_at: '2021-11-05T11:30:12.349Z'
+ updated_at: '2021-11-05T11:30:12.355Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
+ public_metadata: {}
+ private_metadata: {}
pretty_name: taxonomy_16 -> taxon_16
seo_title: taxon_16
is_root: false
@@ -9463,12 +9576,14 @@ paths:
lft: 4
rgt: 5
description:
- created_at: '2021-11-03T11:03:01.267Z'
- updated_at: '2021-11-03T11:03:01.271Z'
+ created_at: '2021-11-05T11:30:12.461Z'
+ updated_at: '2021-11-05T11:30:12.466Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
+ public_metadata: {}
+ private_metadata: {}
pretty_name: taxonomy_16 -> taxon_17
seo_title: taxon_17
is_root: false
@@ -9498,12 +9613,14 @@ paths:
lft: 1
rgt: 6
description:
- created_at: '2021-11-03T11:03:01.137Z'
- updated_at: '2021-11-03T11:03:01.281Z'
+ created_at: '2021-11-05T11:30:12.252Z'
+ updated_at: '2021-11-05T11:30:12.480Z'
meta_title:
meta_description:
meta_keywords:
depth: 0
+ public_metadata: {}
+ private_metadata: {}
pretty_name: taxonomy_16
seo_title: taxonomy_16
is_root: true
@@ -9580,12 +9697,14 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-03T11:03:01.528Z'
- updated_at: '2021-11-03T11:03:01.533Z'
+ created_at: '2021-11-05T11:30:12.848Z'
+ updated_at: '2021-11-05T11:30:12.854Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
+ public_metadata: {}
+ private_metadata: {}
pretty_name: taxonomy_18 -> taxon_20
seo_title: taxon_20
is_root: false
@@ -9666,12 +9785,14 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-03T11:03:01.646Z'
- updated_at: '2021-11-03T11:03:01.650Z'
+ created_at: '2021-11-05T11:30:13.058Z'
+ updated_at: '2021-11-05T11:30:13.064Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
+ public_metadata: {}
+ private_metadata: {}
pretty_name: taxonomy_19 -> taxon_21
seo_title: taxon_21
is_root: false
@@ -9755,12 +9876,15 @@ paths:
lft: 2
rgt: 3
description:
- created_at: '2021-11-03T11:03:01.888Z'
- updated_at: '2021-11-03T11:03:01.915Z'
+ created_at: '2021-11-05T11:30:13.406Z'
+ updated_at: '2021-11-05T11:30:13.442Z'
meta_title:
meta_description:
meta_keywords:
depth: 1
+ public_metadata:
+ profitability: 3
+ private_metadata: {}
pretty_name: taxonomy_21 -> T-Shirts
seo_title: T-Shirts
is_root: false
@@ -9909,9 +10033,11 @@ paths:
- id: '97'
type: user
attributes:
- created_at: '2021-11-03T11:03:02.513Z'
- updated_at: '2021-11-03T11:03:02.513Z'
+ created_at: '2021-11-05T11:30:14.228Z'
+ updated_at: '2021-11-05T11:30:14.228Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9923,9 +10049,11 @@ paths:
- id: '98'
type: user
attributes:
- created_at: '2021-11-03T11:03:02.518Z'
- updated_at: '2021-11-03T11:03:02.518Z'
+ created_at: '2021-11-05T11:30:14.238Z'
+ updated_at: '2021-11-05T11:30:14.238Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9937,9 +10065,11 @@ paths:
- id: '99'
type: user
attributes:
- created_at: '2021-11-03T11:03:02.520Z'
- updated_at: '2021-11-03T11:03:02.520Z'
+ created_at: '2021-11-05T11:30:14.240Z'
+ updated_at: '2021-11-05T11:30:14.240Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -9998,9 +10128,11 @@ paths:
id: '104'
type: user
attributes:
- created_at: '2021-11-03T11:03:02.601Z'
- updated_at: '2021-11-03T11:03:02.601Z'
+ created_at: '2021-11-05T11:30:14.421Z'
+ updated_at: '2021-11-05T11:30:14.421Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10063,9 +10195,11 @@ paths:
id: '107'
type: user
attributes:
- created_at: '2021-11-03T11:03:02.652Z'
- updated_at: '2021-11-03T11:03:02.652Z'
+ created_at: '2021-11-05T11:30:14.529Z'
+ updated_at: '2021-11-05T11:30:14.529Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10130,8 +10264,10 @@ paths:
type: user
attributes:
- created_at: '2021-11-03T11:03:02.732Z'
- updated_at: '2021-11-03T11:03:02.741Z'
+ created_at: '2021-11-05T11:30:14.657Z'
+ updated_at: '2021-11-05T11:30:14.670Z'
+ public_metadata: {}
+ private_metadata: {}
average_order_value: []
lifetime_value: []
store_credits: []
@@ -10278,12 +10414,14 @@ paths:
position: 1
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-03T11:03:02.968Z'
+ updated_at: '2021-11-05T11:30:15.051Z'
discontinue_on:
- created_at: '2021-11-03T11:03:02.963Z'
+ created_at: '2021-11-05T11:30:15.042Z'
+ public_metadata: {}
+ private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 4572'
+ name: 'Product #181 - 533'
options_text: ''
total_on_hand: 0
purchasable: true
@@ -10318,21 +10456,23 @@ paths:
type: variant
attributes:
sku: SKU-249
- weight: '185.26'
- height: '175.51'
- depth: '6.65'
+ weight: '95.18'
+ height: '88.5'
+ depth: '90.78'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-03T11:03:02.997Z'
+ updated_at: '2021-11-05T11:30:15.099Z'
discontinue_on:
- created_at: '2021-11-03T11:03:02.991Z'
+ created_at: '2021-11-05T11:30:15.088Z'
+ public_metadata: {}
+ private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 4572'
+ name: 'Product #181 - 533'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10369,21 +10509,23 @@ paths:
type: variant
attributes:
sku: SKU-250
- weight: '197.57'
- height: '171.69'
- depth: '166.14'
+ weight: '75.74'
+ height: '42.46'
+ depth: '155.79'
deleted_at:
is_master: false
cost_price: '17.0'
position: 3
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-03T11:03:03.016Z'
+ updated_at: '2021-11-05T11:30:15.135Z'
discontinue_on:
- created_at: '2021-11-03T11:03:03.009Z'
+ created_at: '2021-11-05T11:30:15.125Z'
+ public_metadata: {}
+ private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #181 - 4572'
+ name: 'Product #181 - 533'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10473,21 +10615,23 @@ paths:
type: variant
attributes:
sku: SKU-255
- weight: '37.28'
- height: '26.22'
- depth: '192.91'
+ weight: '43.7'
+ height: '197.47'
+ depth: '98.48'
deleted_at:
is_master: false
cost_price: '17.0'
position: 2
cost_currency: USD
track_inventory: true
- updated_at: '2021-11-03T11:03:03.234Z'
+ updated_at: '2021-11-05T11:30:15.505Z'
discontinue_on:
- created_at: '2021-11-03T11:03:03.228Z'
+ created_at: '2021-11-05T11:30:15.495Z'
+ public_metadata: {}
+ private_metadata: {}
display_compare_at_price:
display_price: "$19.99"
- name: 'Product #183 - 6109'
+ name: 'Product #183 - 2431'
options_text: 'Size: S'
total_on_hand: 0
purchasable: true
@@ -10648,14 +10792,14 @@ paths:
- id: '1'
type: event
attributes:
- execution_time: 37576
+ execution_time: 97071
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url1.com/
- created_at: '2021-11-03T11:03:03.680Z'
- updated_at: '2021-11-03T11:03:03.680Z'
+ created_at: '2021-11-05T11:30:16.244Z'
+ updated_at: '2021-11-05T11:30:16.244Z'
relationships:
subscriber:
data:
@@ -10664,14 +10808,14 @@ paths:
- id: '2'
type: event
attributes:
- execution_time: 76145
+ execution_time: 92841
name: order.canceled
request_errors: ''
response_code: '200'
success: true
url: https://www.url2.com/
- created_at: '2021-11-03T11:03:03.684Z'
- updated_at: '2021-11-03T11:03:03.684Z'
+ created_at: '2021-11-05T11:30:16.247Z'
+ updated_at: '2021-11-05T11:30:16.247Z'
relationships:
subscriber:
data:
@@ -10747,8 +10891,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-03T11:03:03.745Z'
- updated_at: '2021-11-03T11:03:03.745Z'
+ created_at: '2021-11-05T11:30:16.341Z'
+ updated_at: '2021-11-05T11:30:16.341Z'
- id: '6'
type: subscriber
attributes:
@@ -10756,8 +10900,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-03T11:03:03.746Z'
- updated_at: '2021-11-03T11:03:03.746Z'
+ created_at: '2021-11-05T11:30:16.343Z'
+ updated_at: '2021-11-05T11:30:16.343Z'
meta:
count: 2
total_count: 2
@@ -10805,8 +10949,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-03T11:03:03.798Z'
- updated_at: '2021-11-03T11:03:03.798Z'
+ created_at: '2021-11-05T11:30:16.439Z'
+ updated_at: '2021-11-05T11:30:16.439Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -10861,8 +11005,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-03T11:03:03.835Z'
- updated_at: '2021-11-03T11:03:03.835Z'
+ created_at: '2021-11-05T11:30:16.501Z'
+ updated_at: '2021-11-05T11:30:16.501Z'
schema:
"$ref": "#/components/schemas/resource"
'404':
@@ -10915,8 +11059,8 @@ paths:
active: true
subscriptions:
- "*"
- created_at: '2021-11-03T11:03:03.897Z'
- updated_at: '2021-11-03T11:03:03.897Z'
+ created_at: '2021-11-05T11:30:16.597Z'
+ updated_at: '2021-11-05T11:30:16.597Z'
schema:
"$ref": "#/components/schemas/resource"
'422':
@@ -11037,8 +11181,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.163Z'
- updated_at: '2021-11-03T11:03:04.163Z'
+ created_at: '2021-11-05T11:30:17.049Z'
+ updated_at: '2021-11-05T11:30:17.049Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11052,8 +11196,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.212Z'
- updated_at: '2021-11-03T11:03:04.212Z'
+ created_at: '2021-11-05T11:30:17.134Z'
+ updated_at: '2021-11-05T11:30:17.134Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11067,8 +11211,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.258Z'
- updated_at: '2021-11-03T11:03:04.258Z'
+ created_at: '2021-11-05T11:30:17.222Z'
+ updated_at: '2021-11-05T11:30:17.222Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11082,8 +11226,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.304Z'
- updated_at: '2021-11-03T11:03:04.304Z'
+ created_at: '2021-11-05T11:30:17.301Z'
+ updated_at: '2021-11-05T11:30:17.301Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11144,8 +11288,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.770Z'
- updated_at: '2021-11-03T11:03:04.770Z'
+ created_at: '2021-11-05T11:30:17.962Z'
+ updated_at: '2021-11-05T11:30:17.962Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11215,8 +11359,8 @@ paths:
type: wished_item
attributes:
quantity: 1
- created_at: '2021-11-03T11:03:04.983Z'
- updated_at: '2021-11-03T11:03:04.983Z'
+ created_at: '2021-11-05T11:30:18.321Z'
+ updated_at: '2021-11-05T11:30:18.321Z'
display_price: "$19.99"
display_total: "$19.99"
price: '19.99'
@@ -11282,8 +11426,8 @@ paths:
type: wished_item
attributes:
quantity: 3
- created_at: '2021-11-03T11:03:05.320Z'
- updated_at: '2021-11-03T11:03:05.329Z'
+ created_at: '2021-11-05T11:30:18.883Z'
+ updated_at: '2021-11-05T11:30:18.894Z'
display_price: "$19.99"
display_total: "$59.97"
price: '19.99'
@@ -11418,9 +11562,9 @@ paths:
name: Black Friday
is_private: true
is_default: false
- created_at: '2021-11-03T11:03:06.035Z'
- updated_at: '2021-11-03T11:03:06.035Z'
- token: BveCWJKL5oe3m2NqvJzAsTeG
+ created_at: '2021-11-05T11:30:20.078Z'
+ updated_at: '2021-11-05T11:30:20.078Z'
+ token: oRf3ZN4KjxvbPodajVe7aeNd
variant_included: false
relationships:
wished_items:
@@ -11435,9 +11579,9 @@ paths:
name: Birthday
is_private: true
is_default: false
- created_at: '2021-11-03T11:03:06.037Z'
- updated_at: '2021-11-03T11:03:06.037Z'
- token: MRz6sBZJ8ex5erYTFBJNcXcj
+ created_at: '2021-11-05T11:30:20.080Z'
+ updated_at: '2021-11-05T11:30:20.080Z'
+ token: uByr8ZCMRhHpJY6TB8gcLDb1
variant_included: false
relationships:
wished_items:
@@ -11499,9 +11643,9 @@ paths:
name: Wishlist_26
is_private: true
is_default: false
- created_at: '2021-11-03T11:03:06.486Z'
- updated_at: '2021-11-03T11:03:06.486Z'
- token: qi7ZtGeDCpqmYGSyUnjBPBz7
+ created_at: '2021-11-05T11:30:20.843Z'
+ updated_at: '2021-11-05T11:30:20.843Z'
+ token: 6Ld93JKaLHrRU2vd9u6ozvNy
variant_included: false
relationships:
wished_items:
@@ -11565,9 +11709,9 @@ paths:
name: My Wishlist
is_private: true
is_default: false
- created_at: '2021-11-03T11:03:06.535Z'
- updated_at: '2021-11-03T11:03:06.535Z'
- token: ZG2ihvWyZM2S9h7nsgqQFtuP
+ created_at: '2021-11-05T11:30:20.916Z'
+ updated_at: '2021-11-05T11:30:20.916Z'
+ token: xNuTT9BxGvZaT2Ug99Kr5CGQ
variant_included: false
relationships:
wished_items:
@@ -11630,9 +11774,9 @@ paths:
name: My Super Wishlist
is_private: true
is_default: false
- created_at: '2021-11-03T11:03:06.605Z'
- updated_at: '2021-11-03T11:03:06.613Z'
- token: a5HxXePc8Smg57Zv56RYnHZ1
+ created_at: '2021-11-05T11:30:21.051Z'
+ updated_at: '2021-11-05T11:30:21.062Z'
+ token: rhHufUQzDv1sELtPf8kBdtUh
variant_included: false
relationships:
wished_items:
@@ -11807,6 +11951,15 @@ components:
example: Vendo Cloud Inc
user_id:
type: string
+ public_metadata:
+ type: object
+ example:
+ distance_from_nearest_city_in_km: 10
+ location_type: building
+ private_metadata:
+ type: object
+ example:
+ close_to_shop: true
required:
- address
x-internal: true
@@ -11856,6 +12009,15 @@ components:
example: Vendo Cloud Inc
user_id:
type: string
+ public_metadata:
+ type: object
+ example:
+ distance_from_city_in_km: 10
+ location_type: building
+ private_metadata:
+ type: object
+ example:
+ close_to_shop: true
required:
- address
x-internal: true
@@ -13279,6 +13441,10 @@ components:
quantity:
type: integer
example: 2
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- line_item
x-internal: true
@@ -13510,6 +13676,10 @@ components:
presentation:
type: string
example: Color
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- option_type
x-internal: true
@@ -13525,6 +13695,10 @@ components:
presentation:
type: string
example: Color
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- option_type
x-internal: true
@@ -13543,6 +13717,10 @@ components:
presentation:
type: string
example: Red
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- option_value
x-internal: true
@@ -13558,6 +13736,10 @@ components:
presentation:
type: string
example: Red
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- option_value
x-internal: true
@@ -13593,7 +13775,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-03 11:02:29 UTC
+ example: 2021-11-05 11:29:21 UTC
bill_address_id:
type: string
example: '1'
@@ -13661,7 +13843,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-03 11:02:29 UTC
+ example: 2021-11-05 11:29:21 UTC
confirmation_delivered:
type: boolean
example: true
@@ -13693,6 +13875,10 @@ components:
type: array
items:
"$ref": "#/components/schemas/update_line_item_params"
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- order
x-internal: true
@@ -13728,7 +13914,7 @@ components:
completed_at:
type: string
format: date_time
- example: 2021-11-03 11:02:29 UTC
+ example: 2021-11-05 11:29:21 UTC
bill_address_id:
type: string
example: '1'
@@ -13796,7 +13982,7 @@ components:
approved_at:
type: string
format: date_time
- example: 2021-11-03 11:02:29 UTC
+ example: 2021-11-05 11:29:21 UTC
confirmation_delivered:
type: boolean
example: true
@@ -13828,6 +14014,10 @@ components:
type: array
items:
"$ref": "#/components/schemas/update_line_item_params"
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- order
x-internal: true
@@ -13868,6 +14058,10 @@ components:
allOf:
- type: string
example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- payment_method
x-internal: true
@@ -13906,6 +14100,10 @@ components:
allOf:
- type: string
example: '2'
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- payment_method
x-internal: true
@@ -13984,6 +14182,10 @@ components:
type: string
taxon_ids:
type: string
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- product
x-internal: true
@@ -14039,6 +14241,10 @@ components:
type: string
taxon_ids:
type: string
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- product
x-internal: true
@@ -14144,6 +14350,10 @@ components:
example: '2'
calculator_attributes:
"$ref": "#/components/schemas/shipping_calculator_params"
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- shipping_method
x-internal: true
@@ -14183,6 +14393,10 @@ components:
example: '2'
calculator_attributes:
"$ref": "#/components/schemas/shipping_calculator_params"
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- shipping_method
x-internal: true
@@ -14217,6 +14431,14 @@ components:
type: string
name:
type: string
+ public_metadata:
+ type: object
+ example:
+ ability_to_recycle: 90%
+ private_metadata:
+ type: object
+ example:
+ profitability: 2
required:
- taxon
x-internal: true
@@ -14232,6 +14454,10 @@ components:
type: string
name:
type: string
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- taxon
x-internal: true
@@ -14255,6 +14481,10 @@ components:
type: string
bill_address_id:
type: string
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- user
x-internal: true
@@ -14274,6 +14504,10 @@ components:
type: string
bill_address_id:
type: string
+ public_metadata:
+ type: object
+ private_metadata:
+ type: object
required:
- user
x-internal: true
diff --git a/api/spec/integration/api/v2/platform/taxons_spec.rb b/api/spec/integration/api/v2/platform/taxons_spec.rb
index 737ba98840..3acf256317 100644
--- a/api/spec/integration/api/v2/platform/taxons_spec.rb
+++ b/api/spec/integration/api/v2/platform/taxons_spec.rb
@@ -16,7 +16,8 @@ describe 'Taxons API', swagger: true do
let(:valid_create_param_value) { build(:taxon, taxonomy: taxonomy).attributes }
let(:valid_update_param_value) do
{
- name: 'T-Shirts'
+ name: 'T-Shirts',
+ public_metadata: { 'profitability' => 3 }
}
end
let(:invalid_param_value) do
diff --git a/api/spec/requests/spree/api/v2/platform/taxons_spec.rb b/api/spec/requests/spree/api/v2/platform/taxons_spec.rb
index 9fb86b07d3..c7b81aab92 100644
--- a/api/spec/requests/spree/api/v2/platform/taxons_spec.rb
+++ b/api/spec/requests/spree/api/v2/platform/taxons_spec.rb
@@ -80,4 +80,92 @@ describe 'Platform API v2 Taxons API' do
end
end
end
+
+ shared_examples 'a resource containing metadata' do
+ describe 'public metadata' do
+ let(:metadata_params) { { public_metadata: public_metadata_params } }
+
+ describe 'string entry' do
+ let(:public_metadata_params) { { ability_to_recycle: '60%' } }
+
+ it 'adds the metadata property' do
+ expect(json_response['data']['attributes']['public_metadata']['ability_to_recycle']).to eq('60%')
+ end
+ end
+
+ describe 'number entry' do
+ let(:public_metadata_params) { { profitability: 3.4 } }
+
+ it { expect(json_response['data']['attributes']['public_metadata']['profitability']).to eq('3.4') }
+ end
+
+ describe 'boolean entry' do
+ let(:public_metadata_params) { { in_foreign_country: true } }
+
+ it { expect(json_response['data']['attributes']['public_metadata']['in_foreign_country']).to eq('true') }
+ end
+
+ describe 'array entry' do
+ let(:public_metadata_params) { { top_years: %w[2011 2016 2020] } }
+
+ it { expect(json_response['data']['attributes']['public_metadata']['top_years']).to eq(%w[2011 2016 2020]) }
+ end
+ end
+
+ describe 'private metadata' do
+ let(:metadata_params) { { private_metadata: private_metadata_params } }
+
+ describe 'string entry' do
+ let(:private_metadata_params) { { ability_to_recycle: '60%' } }
+
+ it { expect(json_response['data']['attributes']['private_metadata']['ability_to_recycle']).to eq('60%') }
+ end
+
+ describe 'number entry' do
+ let(:private_metadata_params) { { profitability: 3.4 } }
+
+ it { expect(json_response['data']['attributes']['private_metadata']['profitability']).to eq('3.4') }
+ end
+
+ describe 'boolean entry' do
+ let(:private_metadata_params) { { in_foreign_country: false } }
+
+ it { expect(json_response['data']['attributes']['private_metadata']['in_foreign_country']).to eq('false') }
+ end
+
+ describe 'array entry' do
+ let(:private_metadata_params) { { top_years: %w[2011 2016 2020] } }
+
+ it { expect(json_response['data']['attributes']['private_metadata']['top_years']).to eq(%w[2011 2016 2020]) }
+ end
+ end
+ end
+
+ describe 'taxons#update for metadata' do
+ let!(:taxon) { create(:taxon, name: 'T-Shirts', taxonomy: taxonomy) }
+
+ before do
+ patch "/api/v2/platform/taxons/#{taxon.id}",
+ headers: bearer_token,
+ params: { taxon: metadata_params }
+ end
+
+ it_behaves_like 'a resource containing metadata'
+ end
+
+ describe 'taxons#create for metadata' do
+ before do
+ post '/api/v2/platform/taxons/',
+ headers: bearer_token,
+ params: {
+ taxon: {
+ name: 'Tires',
+ taxonomy_id: taxonomy.id,
+ parent_id: taxonomy.root.id
+ }.merge(metadata_params)
+ }
+ end
+
+ it_behaves_like 'a resource containing metadata'
+ end
end
diff --git a/api/spec/serializers/spree/api/v2/platform/payment_method_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/payment_method_serializer_spec.rb
index 0cf48d5237..500a5a56bc 100644
--- a/api/spec/serializers/spree/api/v2/platform/payment_method_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/payment_method_serializer_spec.rb
@@ -31,7 +31,9 @@ describe Spree::Api::V2::Platform::PaymentMethodSerializer do
dummy_key: 'PUBLICKEY123',
server: 'test',
test_mode: true
- }
+ },
+ public_metadata: {},
+ private_metadata: {}
},
relationships: {
stores: {
diff --git a/api/spec/serializers/spree/api/v2/platform/shipping_method_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/shipping_method_serializer_spec.rb
index 0e8030d130..9abeb09870 100644
--- a/api/spec/serializers/spree/api/v2/platform/shipping_method_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/shipping_method_serializer_spec.rb
@@ -26,7 +26,9 @@ describe Spree::Api::V2::Platform::ShippingMethodSerializer do
tracking_url: resource.tracking_url,
deleted_at: resource.deleted_at,
created_at: resource.created_at,
- updated_at: resource.updated_at
+ updated_at: resource.updated_at,
+ public_metadata: {},
+ private_metadata: {}
},
relationships: {
calculator: {
diff --git a/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb b/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
index ab492f30dd..fa4a3fdf83 100644
--- a/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
+++ b/api/spec/serializers/spree/api/v2/platform/user_serializer_spec.rb
@@ -21,7 +21,9 @@ describe Spree::Api::V2::Platform::UserSerializer do
lifetime_value: [],
store_credits: [],
created_at: user.created_at,
- updated_at: user.updated_at
+ updated_at: user.updated_at,
+ public_metadata: {},
+ private_metadata: {}
},
relationships: {
bill_address: {
@@ -57,7 +59,9 @@ describe Spree::Api::V2::Platform::UserSerializer do
lifetime_value: [{ amount: '110.00', currency: 'USD' }, { amount: '110.00', currency: 'EUR' }],
store_credits: [{ amount: '100.00', currency: 'USD' }, { amount: '90.00', currency: 'EUR' }],
created_at: user.created_at,
- updated_at: user.updated_at
+ updated_at: user.updated_at,
+ public_metadata: {},
+ private_metadata: {}
})
end
end
diff --git a/api/spec/swagger_helper.rb b/api/spec/swagger_helper.rb
index 6e5b8b4efb..c62cf13bb0 100644
--- a/api/spec/swagger_helper.rb
+++ b/api/spec/swagger_helper.rb
@@ -98,7 +98,9 @@ RSpec.configure do |config|
lastname: { type: :string, example: 'Snow' },
label: { type: :string, example: 'My home address' },
company: { type: :string, example: 'Vendo Cloud Inc' },
- user_id: { type: :string }
+ user_id: { type: :string },
+ public_metadata: { type: :object, example: { 'distance_from_nearest_city_in_km' => 10, 'location_type' => 'building' } },
+ private_metadata: { type: :object, example: { 'close_to_shop' => true } }
}
}
},
@@ -124,7 +126,9 @@ RSpec.configure do |config|
lastname: { type: :string, example: 'Snow' },
label: { type: :string, example: 'My home address' },
company: { type: :string, example: 'Vendo Cloud Inc' },
- user_id: { type: :string }
+ user_id: { type: :string },
+ public_metadata: { type: :object, example: { 'distance_from_city_in_km' => 10, 'location_type' => 'building' } },
+ private_metadata: { type: :object, example: { 'close_to_shop' => true } }
}
}
},
@@ -699,7 +703,9 @@ RSpec.configure do |config|
properties: {
order_id: { type: :string, example: '1' },
variant_id: { type: :string, example: '1' },
- quantity: { type: :integer, example: 2 }
+ quantity: { type: :integer, example: 2 },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -827,7 +833,9 @@ RSpec.configure do |config|
required: %w[name presentation],
properties: {
name: { type: :string, example: 'color' },
- presentation: { type: :string, example: 'Color' }
+ presentation: { type: :string, example: 'Color' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -841,7 +849,9 @@ RSpec.configure do |config|
type: :object,
properties: {
name: { type: :string, example: 'color' },
- presentation: { type: :string, example: 'Color' }
+ presentation: { type: :string, example: 'Color' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -858,7 +868,9 @@ RSpec.configure do |config|
required: %w[name presentation],
properties: {
name: { type: :string, example: 'red' },
- presentation: { type: :string, example: 'Red' }
+ presentation: { type: :string, example: 'Red' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -872,7 +884,9 @@ RSpec.configure do |config|
type: :object,
properties: {
name: { type: :string, example: 'red' },
- presentation: { type: :string, example: 'Red' }
+ presentation: { type: :string, example: 'Red' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -923,7 +937,9 @@ RSpec.configure do |config|
line_items_attributes: {
type: :array,
items: { '$ref': '#/components/schemas/update_line_item_params' }
- }
+ },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -972,7 +988,9 @@ RSpec.configure do |config|
line_items_attributes: {
type: :array,
items: { '$ref': '#/components/schemas/update_line_item_params' }
- }
+ },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1001,7 +1019,9 @@ RSpec.configure do |config|
{ type: :string, example: '2' }
]
}
- }
+ },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1027,7 +1047,9 @@ RSpec.configure do |config|
{ type: :string, example: '2' }
]
}
- }
+ },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1082,7 +1104,9 @@ RSpec.configure do |config|
cost_price: { type: :string },
compare_at_price: { type: :string },
option_type_ids: { type: :string },
- taxon_ids: { type: :string }
+ taxon_ids: { type: :string },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1117,7 +1141,9 @@ RSpec.configure do |config|
cost_price: { type: :string },
compare_at_price: { type: :string },
option_type_ids: { type: :string },
- taxon_ids: { type: :string }
+ taxon_ids: { type: :string },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1210,6 +1236,8 @@ RSpec.configure do |config|
}
},
calculator_attributes: { '$ref': '#/components/schemas/shipping_calculator_params' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1237,6 +1265,8 @@ RSpec.configure do |config|
}
},
calculator_attributes: { '$ref': '#/components/schemas/shipping_calculator_params' },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1262,7 +1292,9 @@ RSpec.configure do |config|
properties: {
taxonomy_id: { type: :string },
parent_id: { type: :string },
- name: { type: :string }
+ name: { type: :string },
+ public_metadata: { type: :object, example: { 'ability_to_recycle' => '90%' } },
+ private_metadata: { type: :object, example: { 'profitability' => 2 } }
}
}
},
@@ -1277,7 +1309,9 @@ RSpec.configure do |config|
properties: {
taxonomy_id: { type: :string },
parent_id: { type: :string },
- name: { type: :string }
+ name: { type: :string },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1298,6 +1332,8 @@ RSpec.configure do |config|
password_confirmation: { type: :string },
ship_address_id: { type: :string },
bill_address_id: { type: :string },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},
@@ -1315,6 +1351,8 @@ RSpec.configure do |config|
password_confirmation: { type: :string },
ship_address_id: { type: :string },
bill_address_id: { type: :string },
+ public_metadata: { type: :object },
+ private_metadata: { type: :object }
}
}
},