Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Ranme metadata fields in models

fowczarek67a46a37f7df
diff --git a/saleor/account/migrations/0039_auto_20200221_0257.py b/saleor/account/migrations/0039_auto_20200221_0257.py
new file mode 100644
index 0000000000..a821fb6437
--- /dev/null
+++ b/saleor/account/migrations/0039_auto_20200221_0257.py
@@ -0,0 +1,27 @@
+# Generated by Django 2.2.10 on 2020-02-21 08:57
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("account", "0038_auto_20200123_0034"),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name="serviceaccount", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="serviceaccount",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="user", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="user", old_name="private_meta", new_name="private_metadata",
+ ),
+ ]
diff --git a/saleor/checkout/migrations/0025_auto_20200221_0257.py b/saleor/checkout/migrations/0025_auto_20200221_0257.py
new file mode 100644
index 0000000000..1d24163fd1
--- /dev/null
+++ b/saleor/checkout/migrations/0025_auto_20200221_0257.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.10 on 2020-02-21 08:57
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("checkout", "0024_auto_20200120_0154"),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name="checkout", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="checkout", old_name="private_meta", new_name="private_metadata",
+ ),
+ ]
diff --git a/saleor/checkout/utils.py b/saleor/checkout/utils.py
index 6dc7cb4048..f5afd361e3 100644
--- a/saleor/checkout/utils.py
+++ b/saleor/checkout/utils.py
@@ -742,8 +742,8 @@ def create_order(
checkout.payments.update(order=order)
# copy metadata from the checkout into the new order
- order.meta = checkout.meta
- order.private_meta = checkout.private_meta
+ order.metadata = checkout.metadata
+ order.private_metadata = checkout.private_metadata
order.save()
order_created(order=order, user=user)
diff --git a/saleor/core/migrations/0001_migrate_metadata.py b/saleor/core/migrations/0001_migrate_metadata.py
index c12741a43a..55683c7af2 100644
--- a/saleor/core/migrations/0001_migrate_metadata.py
+++ b/saleor/core/migrations/0001_migrate_metadata.py
@@ -5,14 +5,14 @@ from django.db import migrations
def flatten_model_metadata(model_with_metadata):
updated_fields = []
- public_meta = model_with_metadata.meta
- private_meta = model_with_metadata.private_meta
+ public_meta = model_with_metadata.metadata
+ private_meta = model_with_metadata.private_metadata
if public_meta:
- model_with_metadata.meta = flatten_metadata(public_meta)
- updated_fields.append("meta")
+ model_with_metadata.metadata = flatten_metadata(public_meta)
+ updated_fields.append("metadata")
if private_meta:
- model_with_metadata.private_meta = flatten_metadata(private_meta)
- updated_fields.append("private_meta")
+ model_with_metadata.private_metadata = flatten_metadata(private_meta)
+ updated_fields.append("private_metadata")
if updated_fields:
model_with_metadata.save(update_fields=updated_fields)
@@ -104,10 +104,10 @@ def flatten_users_metadata(apps, _schema_editor):
class Migration(migrations.Migration):
dependencies = [
- ("account", "0038_auto_20200123_0034"),
- ("checkout", "0024_auto_20200120_0154"),
- ("order", "0077_auto_20191118_0606"),
- ("product", "0111_auto_20191209_0437"),
+ ("account", "0039_auto_20200221_0257"),
+ ("checkout", "0025_auto_20200221_0257"),
+ ("order", "0078_auto_20200221_0257"),
+ ("product", "0115_auto_20200221_0257"),
]
operations = [
diff --git a/saleor/core/models.py b/saleor/core/models.py
index 838b96f41f..f4990177c3 100644
--- a/saleor/core/models.py
+++ b/saleor/core/models.py
@@ -75,40 +75,40 @@ class PublishableModel(models.Model):
class ModelWithMetadata(models.Model):
- private_meta = JSONField(
+ private_metadata = JSONField(
blank=True, null=True, default=dict, encoder=CustomJsonEncoder
)
- meta = JSONField(blank=True, null=True, default=dict, encoder=CustomJsonEncoder)
+ metadata = JSONField(blank=True, null=True, default=dict, encoder=CustomJsonEncoder)
class Meta:
abstract = True
def get_value_from_private_metadata(self, key: str, default: Any = None) -> Any:
- return self.private_meta.get(key, default)
+ return self.private_metadata.get(key, default)
def store_value_in_private_metadata(self, items: dict):
- if not self.private_meta:
- self.private_meta = {}
- self.private_meta.update(items)
+ if not self.private_metadata:
+ self.private_metadata = {}
+ self.private_metadata.update(items)
def clear_private_metadata(self):
- self.private_meta = {}
+ self.private_metadata = {}
def delete_value_from_private_metadata(self, key: str):
- if key in self.private_meta:
- del self.private_meta[key]
+ if key in self.private_metadata:
+ del self.private_metadata[key]
def get_value_from_metadata(self, key: str, default: Any = None) -> Any:
- return self.meta.get(key, default)
+ return self.metadata.get(key, default)
def store_value_in_metadata(self, items: dict):
- if not self.meta:
- self.meta = {}
- self.meta.update(items)
+ if not self.metadata:
+ self.metadata = {}
+ self.metadata.update(items)
def clear_metadata(self):
- self.meta = {}
+ self.metadata = {}
def delete_value_from_metadata(self, key: str):
- if key in self.meta:
- del self.meta[key]
+ if key in self.metadata:
+ del self.metadata[key]
diff --git a/saleor/core/utils/anonymization.py b/saleor/core/utils/anonymization.py
index 39e59f7cfd..2a6f1dde90 100644
--- a/saleor/core/utils/anonymization.py
+++ b/saleor/core/utils/anonymization.py
@@ -57,8 +57,8 @@ def anonymize_order(order: "Order") -> "Order":
anonymized_order.shipping_address = generate_fake_address()
anonymized_order.billing_address = generate_fake_address()
anonymized_order.customer_note = fake.paragraph()
- anonymized_order.meta = fake.pystruct(count=1)
- anonymized_order.private_meta = fake.pystruct(count=1)
+ anonymized_order.metadata = fake.pystruct(count=1)
+ anonymized_order.private_metadata = fake.pystruct(count=1)
return anonymized_order
@@ -77,6 +77,6 @@ def anonymize_checkout(checkout: "Checkout") -> "Checkout":
anonymized_checkout.shipping_address = generate_fake_address()
anonymized_checkout.billing_address = generate_fake_address()
anonymized_checkout.note = fake.paragraph()
- anonymized_checkout.meta = fake.pystruct(count=1)
- anonymized_checkout.private_meta = fake.pystruct(count=1)
+ anonymized_checkout.metadata = fake.pystruct(count=1)
+ anonymized_checkout.private_metadata = fake.pystruct(count=1)
return anonymized_checkout
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.py
index 22d1e4a267..cb7538f13f 100644
--- a/saleor/graphql/account/types.py
+++ b/saleor/graphql/account/types.py
@@ -234,7 +234,6 @@ class ServiceAccount(CountableDjangoObjectType):
return resolve_meta(root, info)
@staticmethod
- @permission_required(AccountPermissions.MANAGE_SERVICE_ACCOUNTS)
def resolve_private_meta(root: models.ServiceAccount, _info):
return resolve_private_meta(root, _info)
diff --git a/saleor/graphql/meta/deprecated/resolvers.py b/saleor/graphql/meta/deprecated/resolvers.py
index 5b50bfe017..357df32e8a 100644
--- a/saleor/graphql/meta/deprecated/resolvers.py
+++ b/saleor/graphql/meta/deprecated/resolvers.py
@@ -1,7 +1,7 @@
# Deprecated we should remove it in #5221
def resolve_private_meta(root, _info):
- return [root.private_meta]
+ return [root.private_metadata]
def resolve_meta(root, _info):
- return [root.meta]
+ return [root.metadata]
diff --git a/saleor/graphql/meta/mutations.py b/saleor/graphql/meta/mutations.py
index bb0dbe07dc..5c123c858c 100644
--- a/saleor/graphql/meta/mutations.py
+++ b/saleor/graphql/meta/mutations.py
@@ -114,7 +114,7 @@ class UpdateMetadata(BaseMetadataMutation):
metadata = data.pop("input")
item = {metadata.key: metadata.value}
instance.store_value_in_metadata(items=item)
- instance.save(update_fields=["meta"])
+ instance.save(update_fields=["metadata"])
return cls.success_response(instance)
@@ -135,7 +135,7 @@ class DeleteMetadata(BaseMetadataMutation):
if instance:
metadata_key = data.pop("key")
instance.delete_value_from_metadata(metadata_key)
- instance.save(update_fields=["meta"])
+ instance.save(update_fields=["metadata"])
return cls.success_response(instance)
@@ -160,7 +160,7 @@ class UpdatePrivateMetadata(BaseMetadataMutation):
metadata = data.pop("input")
item = {metadata.key: metadata.value}
instance.store_value_in_private_metadata(items=item)
- instance.save(update_fields=["private_meta"])
+ instance.save(update_fields=["private_metadata"])
return cls.success_response(instance)
@@ -181,5 +181,5 @@ class DeletePrivateMetadata(BaseMetadataMutation):
if instance:
metadata_key = data.pop("key")
instance.delete_value_from_private_metadata(metadata_key)
- instance.save(update_fields=["private_meta"])
+ instance.save(update_fields=["private_metadata"])
return cls.success_response(instance)
diff --git a/saleor/graphql/meta/resolvers.py b/saleor/graphql/meta/resolvers.py
index c1e86a02a0..74df84e481 100644
--- a/saleor/graphql/meta/resolvers.py
+++ b/saleor/graphql/meta/resolvers.py
@@ -61,4 +61,4 @@ def resolve_private_metadata(root: ModelWithMetadata, info):
if not requester.has_perms(required_permission):
raise PermissionDenied()
- return resolve_metadata(root.private_meta)
+ return resolve_metadata(root.private_metadata)
diff --git a/saleor/graphql/meta/types.py b/saleor/graphql/meta/types.py
index a2ed09e118..576bd92033 100644
--- a/saleor/graphql/meta/types.py
+++ b/saleor/graphql/meta/types.py
@@ -48,7 +48,7 @@ class ObjectWithMetadata(graphene.Interface):
@staticmethod
def resolve_metadata(root: ModelWithMetadata, _info):
- return resolve_metadata(root.meta)
+ return resolve_metadata(root.metadata)
@staticmethod
def resolve_private_metadata(root: ModelWithMetadata, info):
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index 7637a857b0..3ecd2e9bd8 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -1343,12 +1343,9 @@ class ProductTypeCreate(ModelMutation):
# FIXME tax_rate logic should be dropped after we remove tax_rate from input
tax_rate = cleaned_input.pop("tax_rate", "")
if tax_rate:
- if "taxes" not in instance.meta:
- instance.meta["taxes"] = {}
- instance.meta["taxes"]["vatlayer"] = {
- "code": tax_rate,
- "description": tax_rate,
- }
+ instance.store_value_in_metadata(
+ {"vatlayer.code": tax_rate, "description": tax_rate}
+ )
info.context.extensions.assign_tax_code_to_object_meta(instance, tax_rate)
tax_code = cleaned_input.pop("tax_code", "")
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index 2fa550c0ef..c3d372d3ab 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -501,7 +501,13 @@ class Product(CountableDjangoObjectType):
@staticmethod
@gql_optimizer.resolver_hints(
prefetch_related=("variants", "collections"),
- only=["publication_date", "charge_taxes", "price_amount", "currency", "meta"],
+ only=[
+ "publication_date",
+ "charge_taxes",
+ "price_amount",
+ "currency",
+ "metadata",
+ ],
)
def resolve_pricing(root: models.Product, info):
context = info.context
@@ -529,7 +535,13 @@ class Product(CountableDjangoObjectType):
@staticmethod
@gql_optimizer.resolver_hints(
prefetch_related=("variants", "collections"),
- only=["publication_date", "charge_taxes", "price_amount", "currency", "meta"],
+ only=[
+ "publication_date",
+ "charge_taxes",
+ "price_amount",
+ "currency",
+ "metadata",
+ ],
)
def resolve_price(root: models.Product, info):
price_range = root.get_price_range(info.context.discounts)
@@ -657,8 +669,7 @@ class ProductType(CountableDjangoObjectType):
# FIXME this resolver should be dropped after we drop tax_rate from API
if not hasattr(root, "meta"):
return None
- tax = root.meta.get("taxes", {}).get("vatlayer", {})
- return tax.get("code")
+ return root.get_value_from_metadata("vatlayer.code")
@staticmethod
@gql_optimizer.resolver_hints(
diff --git a/saleor/order/migrations/0078_auto_20200221_0257.py b/saleor/order/migrations/0078_auto_20200221_0257.py
new file mode 100644
index 0000000000..745af41308
--- /dev/null
+++ b/saleor/order/migrations/0078_auto_20200221_0257.py
@@ -0,0 +1,27 @@
+# Generated by Django 2.2.10 on 2020-02-21 08:57
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("order", "0077_auto_20191118_0606"),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name="fulfillment", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="fulfillment",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="order", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="order", old_name="private_meta", new_name="private_metadata",
+ ),
+ ]
diff --git a/saleor/payment/utils.py b/saleor/payment/utils.py
index 64e5b4769c..9f7d422afe 100644
--- a/saleor/payment/utils.py
+++ b/saleor/payment/utils.py
@@ -250,7 +250,7 @@ def store_customer_id(user: User, gateway: str, customer_id: str):
"""Store customer_id in users private meta for desired gateway."""
meta_key = prepare_key_for_gateway_customer_id(gateway)
user.store_value_in_private_metadata(items={meta_key: customer_id})
- user.save(update_fields=["private_meta"])
+ user.save(update_fields=["private_metadata"])
def prepare_key_for_gateway_customer_id(gateway_name: str) -> str:
diff --git a/saleor/product/migrations/0115_auto_20200221_0257.py b/saleor/product/migrations/0115_auto_20200221_0257.py
new file mode 100644
index 0000000000..15a6f1227b
--- /dev/null
+++ b/saleor/product/migrations/0115_auto_20200221_0257.py
@@ -0,0 +1,65 @@
+# Generated by Django 2.2.10 on 2020-02-21 08:57
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("product", "0114_auto_20200129_0815"),
+ ]
+
+ operations = [
+ migrations.RenameField(
+ model_name="attribute", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="attribute",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="category", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="category", old_name="private_meta", new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="collection", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="collection",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="digitalcontent", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="digitalcontent",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="product", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="product", old_name="private_meta", new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="producttype", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="producttype",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ migrations.RenameField(
+ model_name="productvariant", old_name="meta", new_name="metadata",
+ ),
+ migrations.RenameField(
+ model_name="productvariant",
+ old_name="private_meta",
+ new_name="private_metadata",
+ ),
+ ]
diff --git a/saleor/static/populatedb_data.json b/saleor/static/populatedb_data.json
index c0a7000c60..592f02d6f8 100644
--- a/saleor/static/populatedb_data.json
+++ b/saleor/static/populatedb_data.json
@@ -3,8 +3,8 @@
"model": "product.category",
"pk": 7,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Accessories",
@@ -37,8 +37,8 @@
"model": "product.category",
"pk": 8,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Groceries",
@@ -71,8 +71,8 @@
"model": "product.category",
"pk": 9,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Apparel",
@@ -105,8 +105,8 @@
"model": "product.category",
"pk": 10,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "T-shirts",
@@ -126,8 +126,8 @@
"model": "product.category",
"pk": 11,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Polo Shirts",
@@ -147,8 +147,8 @@
"model": "product.category",
"pk": 12,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Hoodies",
@@ -168,8 +168,8 @@
"model": "product.category",
"pk": 13,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Footwear",
@@ -189,8 +189,8 @@
"model": "product.category",
"pk": 14,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Juices",
@@ -210,8 +210,8 @@
"model": "product.category",
"pk": 15,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Alcohol",
@@ -231,8 +231,8 @@
"model": "product.category",
"pk": 20,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Paints",
@@ -252,8 +252,8 @@
"model": "product.category",
"pk": 22,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": "",
"seo_description": "",
"name": "Homewares",
@@ -273,14 +273,10 @@
"model": "product.producttype",
"pk": 7,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Paint",
"slug": "paint",
@@ -294,14 +290,10 @@
"model": "product.producttype",
"pk": 8,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Music",
"slug": "music",
@@ -315,14 +307,10 @@
"model": "product.producttype",
"pk": 9,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Juice",
"slug": "juice",
@@ -336,14 +324,10 @@
"model": "product.producttype",
"pk": 10,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Wine",
"slug": "wine",
@@ -357,14 +341,10 @@
"model": "product.producttype",
"pk": 11,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Beer",
"slug": "beer",
@@ -378,14 +358,10 @@
"model": "product.producttype",
"pk": 12,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Cushion",
"slug": "cushion",
@@ -399,14 +375,10 @@
"model": "product.producttype",
"pk": 13,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Shoe",
"slug": "shoe",
@@ -420,14 +392,10 @@
"model": "product.producttype",
"pk": 14,
"fields": {
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"name": "Top (clothing)",
"slug": "top-clothing",
@@ -443,8 +411,8 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
+ "private_metadata": {},
+ "metadata": {
"taxes": {
"vatlayer": {
"code": "standard",
@@ -487,14 +455,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "The rich, deep hue of space dust. Vacuum packed and airlocked for long-lasting freshness of color.",
@@ -531,14 +495,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "",
@@ -575,14 +535,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "There is life in outer space. This vibrant light speed yellow paint brings life to any surface. Goes on easy and dries at light speed.",
@@ -619,14 +575,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Turquoise is the new black. No more gloomy night skies, brighten up your evenings with hyperspace paint.",
@@ -663,14 +615,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Fell from a tree straight into the bottle. No additives, no preservatives, just the refreshing taste of pure sun-kissed Californian oranges.",
@@ -707,14 +655,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Fell straight from the tree, on to Newton\u2019s head, then into the bottle. The autumn taste of English apples. Brought to you by gravity.",
@@ -751,14 +695,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Improve your eyesight the natural way with 100% pure, squeezed carrot juice. The sweet, orange nectar of Mother Earth.",
@@ -795,14 +735,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Build your protein the natural way, with exotic banana juice made from ripe fruit and packed with all the goodness of the tropical sun.",
@@ -839,14 +775,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "I can\u2019t stand pineapples, so this one is not for me. They have a weird, fluffy, tangy taste. But if it is your kind of thing, then knock yourself out.",
@@ -883,14 +815,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Did you know falling coconuts kill 150 people a year? But did you know that coconut juice is the new superfood? You win some, you lose some.",
@@ -927,14 +855,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Is it a bird? Is it a plane? No! It\u2019s some jacked dude who just sucked down a bottle of our brand new power juice! Look at him go!",
@@ -971,14 +895,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Brussel sprouts, spinach, peas, kale, lettuce, cabbage, zucchini, more brussel sprouts. All the greens you\u2019ll ever need in one delicious juice.",
@@ -1015,14 +935,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Bean there, drunk that! The energy drink for the health-conscious. Brand new bean juice; from allotment to bottle in under 8 hours.",
@@ -1059,14 +975,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "A fine, mature red with a hint of blackberry, an undertone of the alkaline Burgundy soil, a delicate aftertaste of burnt garlic, and a whole lot of grapes.",
@@ -1103,14 +1015,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Watch the slow setting sun of a wild summer evening sink into the horizon as you sip white wine that tastes like bittersweet memories of halcyon days.",
@@ -1147,14 +1055,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Find your sea legs and then lose the power to use them with extra strong seaman\u2019s lager. Don\u2019t drink and sail, me hearties!",
@@ -1191,14 +1095,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Best beer on the seven seas. A dark ale for when the dark clouds gather overhead. The nutty nautical taste that sailors love.",
@@ -1235,14 +1135,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Add a little color to your life with a Saleor parrot cushion. Turns any old sofa into a rainbow of classy interior design.",
@@ -1279,14 +1175,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Minimalist interiors need simple, sleek soft furnishings. Don\u2019t parrot what others do, set your own monochrome trends with Saleor designs.",
@@ -1323,14 +1215,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Mellow yellow. Step into summer with Saleor. Every time your head goes down, you see these beauties, and your mood bounces right back up.",
@@ -1367,14 +1255,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "PE at school wouldn\u2019t have been such a drag with these on your feet. Slip on the style and stride tall with Saleor branded plimsolls. PE now stands for pretty elegant.",
@@ -1411,14 +1295,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Pay homage to the music and art of Joy Division and Peter Saville, but with a Mirumee twist. Perfect live transmission apparel for dead souls.",
@@ -1455,14 +1335,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Ever have those days where you feel a bit geometric? Can't quite shape yourself up right? Show your different sides with a Saleor styles.",
@@ -1499,14 +1375,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Polo? Yolo\u2026 so don\u2019t waste time on the wrong apparel. Choose a polo shirt that looks as good as you feel.",
@@ -1543,14 +1415,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Wondering if this will look as good on you as it does on the screen? The answer is yes. A quality polo with smart styling.",
@@ -1587,14 +1455,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "They say polo is the sport of kings. Or was that stamp collecting? Either way, this shirt is fit for a king of Saturday night.",
@@ -1631,14 +1495,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "One style fits all. Get a look that works even when you are taking it easy. Relaxed wear for the masses.",
@@ -1675,14 +1535,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "A classic tee for a timeless look, at a great price. Feel like a million bucks without breaking the bank.",
@@ -1719,14 +1575,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Want to look like you just fell out of bed? Sometimes style can be effortless. Throw it on get on with having a good day.",
@@ -1763,14 +1615,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Your t-shirt is your second skin. It\u2019s the version of you that you show to the world. Wear one that flows with your movements and is built to last.",
@@ -1807,14 +1655,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Special offer. Buy a hood and get a free jet black sweater attached. Perfect for when you are up to no good.",
@@ -1851,14 +1695,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Special offer. Buy a superhero blue sweater and get a free hood attached. Ideal for when you are out saving the world.",
@@ -1895,14 +1735,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Who dunnit? It was Colonel Mustard, in the dining room, with the lead piping, wearing this hot as mustard hoodie.",
@@ -1939,14 +1775,10 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {
- "taxes": {
- "vatlayer": {
- "code": "standard",
- "description": ""
- }
- }
+ "private_metadata": {},
+ "metadata": {
+ "vatlayer.code": "standard",
+ "vatlayer.description": ""
},
"seo_title": "",
"seo_description": "Get your slouch on and be seen with a whiter than white hoodie straight from the streets. Relaxed stylin\u2019 and profilin\u2019 with flair.",
@@ -1981,8 +1813,8 @@
"model": "product.productvariant",
"pk": 171,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "546451996",
"name": "1l",
"currency": "USD",
@@ -1999,8 +1831,8 @@
"model": "product.productvariant",
"pk": 172,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "546451997",
"name": "2.5l",
"currency": "USD",
@@ -2017,8 +1849,8 @@
"model": "product.productvariant",
"pk": 173,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "546451999",
"name": "5l",
"currency": "USD",
@@ -2035,8 +1867,8 @@
"model": "product.productvariant",
"pk": 174,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223591",
"name": "1l",
"currency": "USD",
@@ -2053,8 +1885,8 @@
"model": "product.productvariant",
"pk": 175,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223599",
"name": "2.5l",
"currency": "USD",
@@ -2071,8 +1903,8 @@
"model": "product.productvariant",
"pk": 176,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223594",
"name": "5l",
"currency": "USD",
@@ -2089,8 +1921,8 @@
"model": "product.productvariant",
"pk": 177,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223582",
"name": "1l",
"currency": "USD",
@@ -2107,8 +1939,8 @@
"model": "product.productvariant",
"pk": 178,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223583",
"name": "2.5l",
"currency": "USD",
@@ -2125,8 +1957,8 @@
"model": "product.productvariant",
"pk": 179,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223584",
"name": "5l",
"currency": "USD",
@@ -2143,8 +1975,8 @@
"model": "product.productvariant",
"pk": 180,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998323582",
"name": "1l",
"currency": "USD",
@@ -2161,8 +1993,8 @@
"model": "product.productvariant",
"pk": 181,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998323583",
"name": "2.5l",
"currency": "USD",
@@ -2179,8 +2011,8 @@
"model": "product.productvariant",
"pk": 182,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998323584",
"name": "5l",
"currency": "USD",
@@ -2197,8 +2029,8 @@
"model": "product.productvariant",
"pk": 183,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998423582",
"name": "1l",
"currency": "USD",
@@ -2215,8 +2047,8 @@
"model": "product.productvariant",
"pk": 184,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998423583",
"name": "2.5l",
"currency": "USD",
@@ -2233,8 +2065,8 @@
"model": "product.productvariant",
"pk": 185,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998423585",
"name": "5l",
"currency": "USD",
@@ -2251,8 +2083,8 @@
"model": "product.productvariant",
"pk": 190,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "988323582",
"name": "500ml",
"currency": "USD",
@@ -2269,8 +2101,8 @@
"model": "product.productvariant",
"pk": 191,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "938323582",
"name": "1l",
"currency": "USD",
@@ -2287,8 +2119,8 @@
"model": "product.productvariant",
"pk": 192,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "988323522",
"name": "2l",
"currency": "USD",
@@ -2305,8 +2137,8 @@
"model": "product.productvariant",
"pk": 193,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "12312312321",
"name": "",
"currency": "USD",
@@ -2323,8 +2155,8 @@
"model": "product.productvariant",
"pk": 194,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "1231998121",
"name": "",
"currency": "USD",
@@ -2341,8 +2173,8 @@
"model": "product.productvariant",
"pk": 195,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "98616712",
"name": "",
"currency": "USD",
@@ -2359,8 +2191,8 @@
"model": "product.productvariant",
"pk": 196,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "98616713",
"name": "",
"currency": "USD",
@@ -2377,8 +2209,8 @@
"model": "product.productvariant",
"pk": 197,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "698223582",
"name": "45cm x 45cm",
"currency": "USD",
@@ -2395,8 +2227,8 @@
"model": "product.productvariant",
"pk": 198,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "698223581",
"name": "55cm x 55cm",
"currency": "USD",
@@ -2413,8 +2245,8 @@
"model": "product.productvariant",
"pk": 199,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "987126191",
"name": "45cm x 45cm",
"currency": "USD",
@@ -2431,8 +2263,8 @@
"model": "product.productvariant",
"pk": 200,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "998223590",
"name": "55cm x 55cm",
"currency": "USD",
@@ -2449,8 +2281,8 @@
"model": "product.productvariant",
"pk": 202,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "93855755",
"name": "500ml",
"currency": "USD",
@@ -2467,8 +2299,8 @@
"model": "product.productvariant",
"pk": 203,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "43226647",
"name": "1l",
"currency": "USD",
@@ -2485,8 +2317,8 @@
"model": "product.productvariant",
"pk": 204,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "80884671",
"name": "2l",
"currency": "USD",
@@ -2503,8 +2335,8 @@
"model": "product.productvariant",
"pk": 205,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "67882967",
"name": "500ml",
"currency": "USD",
@@ -2521,8 +2353,8 @@
"model": "product.productvariant",
"pk": 206,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "14925419",
"name": "1l",
"currency": "USD",
@@ -2539,8 +2371,8 @@
"model": "product.productvariant",
"pk": 207,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "62426105",
"name": "2l",
"currency": "USD",
@@ -2557,8 +2389,8 @@
"model": "product.productvariant",
"pk": 208,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "45328412",
"name": "500ml",
"currency": "USD",
@@ -2575,8 +2407,8 @@
"model": "product.productvariant",
"pk": 209,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "27512590",
"name": "1l",
"currency": "USD",
@@ -2593,8 +2425,8 @@
"model": "product.productvariant",
"pk": 210,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "40636347",
"name": "2l",
"currency": "USD",
@@ -2611,8 +2443,8 @@
"model": "product.productvariant",
"pk": 211,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "43200242",
"name": "500ml",
"currency": "USD",
@@ -2629,8 +2461,8 @@
"model": "product.productvariant",
"pk": 212,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "79129513",
"name": "1l",
"currency": "USD",
@@ -2647,8 +2479,8 @@
"model": "product.productvariant",
"pk": 213,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "75799450",
"name": "2l",
"currency": "USD",
@@ -2665,8 +2497,8 @@
"model": "product.productvariant",
"pk": 214,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "3944859",
"name": "500ml",
"currency": "USD",
@@ -2683,8 +2515,8 @@
"model": "product.productvariant",
"pk": 215,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "5829405",
"name": "1l",
"currency": "USD",
@@ -2701,8 +2533,8 @@
"model": "product.productvariant",
"pk": 216,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "84725784",
"name": "2l",
"currency": "USD",
@@ -2719,8 +2551,8 @@
"model": "product.productvariant",
"pk": 217,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "70058446",
"name": "500ml",
"currency": "USD",
@@ -2737,8 +2569,8 @@
"model": "product.productvariant",
"pk": 218,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "94044081",
"name": "1l",
"currency": "USD",
@@ -2755,8 +2587,8 @@
"model": "product.productvariant",
"pk": 219,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "80696397",
"name": "2l",
"currency": "USD",
@@ -2773,8 +2605,8 @@
"model": "product.productvariant",
"pk": 220,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "60752428",
"name": "500ml",
"currency": "USD",
@@ -2791,8 +2623,8 @@
"model": "product.productvariant",
"pk": 221,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "81470859",
"name": "1l",
"currency": "USD",
@@ -2809,8 +2641,8 @@
"model": "product.productvariant",
"pk": 222,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "30635751",
"name": "2l",
"currency": "USD",
@@ -2827,8 +2659,8 @@
"model": "product.productvariant",
"pk": 223,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "57211177",
"name": "500ml",
"currency": "USD",
@@ -2845,8 +2677,8 @@
"model": "product.productvariant",
"pk": 224,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "57423879",
"name": "1l",
"currency": "USD",
@@ -2863,8 +2695,8 @@
"model": "product.productvariant",
"pk": 225,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "21438542",
"name": "2l",
"currency": "USD",
@@ -2881,8 +2713,8 @@
"model": "product.productvariant",
"pk": 242,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "398323583",
"name": "39",
"currency": "USD",
@@ -2899,8 +2731,8 @@
"model": "product.productvariant",
"pk": 243,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "398323584",
"name": "40",
"currency": "USD",
@@ -2917,8 +2749,8 @@
"model": "product.productvariant",
"pk": 244,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "398323585",
"name": "41",
"currency": "USD",
@@ -2935,8 +2767,8 @@
"model": "product.productvariant",
"pk": 245,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "398323586",
"name": "42",
"currency": "USD",
@@ -2953,8 +2785,8 @@
"model": "product.productvariant",
"pk": 246,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "398323588",
"name": "43",
"currency": "USD",
@@ -2971,8 +2803,8 @@
"model": "product.productvariant",
"pk": 247,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "993223583",
"name": "40",
"currency": "USD",
@@ -2989,8 +2821,8 @@
"model": "product.productvariant",
"pk": 248,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "978223582",
"name": "41",
"currency": "USD",
@@ -3007,8 +2839,8 @@
"model": "product.productvariant",
"pk": 249,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "918323583",
"name": "40",
"currency": "USD",
@@ -3025,8 +2857,8 @@
"model": "product.productvariant",
"pk": 250,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "918223582",
"name": "45",
"currency": "USD",
@@ -3043,8 +2875,8 @@
"model": "product.productvariant",
"pk": 251,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "988323583",
"name": "S",
"currency": "USD",
@@ -3061,8 +2893,8 @@
"model": "product.productvariant",
"pk": 252,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "338223582",
"name": "M",
"currency": "USD",
@@ -3079,8 +2911,8 @@
"model": "product.productvariant",
"pk": 253,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "118223591",
"name": "L",
"currency": "USD",
@@ -3097,8 +2929,8 @@
"model": "product.productvariant",
"pk": 254,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "448323583",
"name": "XL",
"currency": "USD",
@@ -3115,8 +2947,8 @@
"model": "product.productvariant",
"pk": 255,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "3128223583",
"name": "XXL",
"currency": "USD",
@@ -3133,8 +2965,8 @@
"model": "product.productvariant",
"pk": 256,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "29716755",
"name": "S",
"currency": "USD",
@@ -3151,8 +2983,8 @@
"model": "product.productvariant",
"pk": 257,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "66594736",
"name": "M",
"currency": "USD",
@@ -3169,8 +3001,8 @@
"model": "product.productvariant",
"pk": 258,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "50269944",
"name": "L",
"currency": "USD",
@@ -3187,8 +3019,8 @@
"model": "product.productvariant",
"pk": 259,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "31352185",
"name": "XL",
"currency": "USD",
@@ -3205,8 +3037,8 @@
"model": "product.productvariant",
"pk": 260,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "85364796",
"name": "XXL",
"currency": "USD",
@@ -3223,8 +3055,8 @@
"model": "product.productvariant",
"pk": 261,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "44026421",
"name": "S",
"currency": "USD",
@@ -3241,8 +3073,8 @@
"model": "product.productvariant",
"pk": 262,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "90892602",
"name": "M",
"currency": "USD",
@@ -3259,8 +3091,8 @@
"model": "product.productvariant",
"pk": 263,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "59014392",
"name": "L",
"currency": "USD",
@@ -3277,8 +3109,8 @@
"model": "product.productvariant",
"pk": 264,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "43659438",
"name": "XL",
"currency": "USD",
@@ -3295,8 +3127,8 @@
"model": "product.productvariant",
"pk": 265,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "60597697",
"name": "XXL",
"currency": "USD",
@@ -3313,8 +3145,8 @@
"model": "product.productvariant",
"pk": 266,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "26592266",
"name": "S",
"currency": "USD",
@@ -3331,8 +3163,8 @@
"model": "product.productvariant",
"pk": 267,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "36260498",
"name": "M",
"currency": "USD",
@@ -3349,8 +3181,8 @@
"model": "product.productvariant",
"pk": 268,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "37558859",
"name": "L",
"currency": "USD",
@@ -3367,8 +3199,8 @@
"model": "product.productvariant",
"pk": 269,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "19402012",
"name": "XL",
"currency": "USD",
@@ -3385,8 +3217,8 @@
"model": "product.productvariant",
"pk": 270,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "17570141",
"name": "XXL",
"currency": "USD",
@@ -3403,8 +3235,8 @@
"model": "product.productvariant",
"pk": 271,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "98530976",
"name": "S",
"currency": "USD",
@@ -3421,8 +3253,8 @@
"model": "product.productvariant",
"pk": 272,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "46806935",
"name": "M",
"currency": "USD",
@@ -3439,8 +3271,8 @@
"model": "product.productvariant",
"pk": 273,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "71103052",
"name": "L",
"currency": "USD",
@@ -3457,8 +3289,8 @@
"model": "product.productvariant",
"pk": 274,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "84812015",
"name": "XL",
"currency": "USD",
@@ -3475,8 +3307,8 @@
"model": "product.productvariant",
"pk": 275,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "89820261",
"name": "XXL",
"currency": "USD",
@@ -3493,8 +3325,8 @@
"model": "product.productvariant",
"pk": 276,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "81115323",
"name": "S",
"currency": "USD",
@@ -3511,8 +3343,8 @@
"model": "product.productvariant",
"pk": 277,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "38254631",
"name": "M",
"currency": "USD",
@@ -3529,8 +3361,8 @@
"model": "product.productvariant",
"pk": 278,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "11511539",
"name": "L",
"currency": "USD",
@@ -3547,8 +3379,8 @@
"model": "product.productvariant",
"pk": 279,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "84192227",
"name": "XL",
"currency": "USD",
@@ -3565,8 +3397,8 @@
"model": "product.productvariant",
"pk": 280,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "91642659",
"name": "XXL",
"currency": "USD",
@@ -3583,8 +3415,8 @@
"model": "product.productvariant",
"pk": 281,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "76491340",
"name": "S",
"currency": "USD",
@@ -3601,8 +3433,8 @@
"model": "product.productvariant",
"pk": 282,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "55101176",
"name": "M",
"currency": "USD",
@@ -3619,8 +3451,8 @@
"model": "product.productvariant",
"pk": 283,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "28094954",
"name": "L",
"currency": "USD",
@@ -3637,8 +3469,8 @@
"model": "product.productvariant",
"pk": 284,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "40232182",
"name": "XL",
"currency": "USD",
@@ -3655,8 +3487,8 @@
"model": "product.productvariant",
"pk": 285,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "21522631",
"name": "XXL",
"currency": "USD",
@@ -3673,8 +3505,8 @@
"model": "product.productvariant",
"pk": 286,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "29810068",
"name": "S",
"currency": "USD",
@@ -3691,8 +3523,8 @@
"model": "product.productvariant",
"pk": 287,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "57917658",
"name": "M",
"currency": "USD",
@@ -3709,8 +3541,8 @@
"model": "product.productvariant",
"pk": 288,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "42680611",
"name": "L",
"currency": "USD",
@@ -3727,8 +3559,8 @@
"model": "product.productvariant",
"pk": 289,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "72289815",
"name": "XL",
"currency": "USD",
@@ -3745,8 +3577,8 @@
"model": "product.productvariant",
"pk": 290,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "98653891",
"name": "XXL",
"currency": "USD",
@@ -3763,8 +3595,8 @@
"model": "product.productvariant",
"pk": 291,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "77306807",
"name": "S",
"currency": "USD",
@@ -3781,8 +3613,8 @@
"model": "product.productvariant",
"pk": 292,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "68848129",
"name": "M",
"currency": "USD",
@@ -3799,8 +3631,8 @@
"model": "product.productvariant",
"pk": 293,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "35342696",
"name": "L",
"currency": "USD",
@@ -3817,8 +3649,8 @@
"model": "product.productvariant",
"pk": 294,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "98935349",
"name": "XL",
"currency": "USD",
@@ -3835,8 +3667,8 @@
"model": "product.productvariant",
"pk": 295,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "45179543",
"name": "XXL",
"currency": "USD",
@@ -3853,8 +3685,8 @@
"model": "product.productvariant",
"pk": 296,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "62783187",
"name": "S",
"currency": "USD",
@@ -3871,8 +3703,8 @@
"model": "product.productvariant",
"pk": 297,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "91406604",
"name": "M",
"currency": "USD",
@@ -3889,8 +3721,8 @@
"model": "product.productvariant",
"pk": 298,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "22119503",
"name": "L",
"currency": "USD",
@@ -3907,8 +3739,8 @@
"model": "product.productvariant",
"pk": 299,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "19230637",
"name": "XL",
"currency": "USD",
@@ -3925,8 +3757,8 @@
"model": "product.productvariant",
"pk": 300,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "61630747",
"name": "XXL",
"currency": "USD",
@@ -3943,8 +3775,8 @@
"model": "product.productvariant",
"pk": 301,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "15744278",
"name": "S",
"currency": "USD",
@@ -3961,8 +3793,8 @@
"model": "product.productvariant",
"pk": 302,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "21599567",
"name": "M",
"currency": "USD",
@@ -3979,8 +3811,8 @@
"model": "product.productvariant",
"pk": 303,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "65363253",
"name": "L",
"currency": "USD",
@@ -3997,8 +3829,8 @@
"model": "product.productvariant",
"pk": 304,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "51987722",
"name": "XL",
"currency": "USD",
@@ -4015,8 +3847,8 @@
"model": "product.productvariant",
"pk": 305,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "43313080",
"name": "XXL",
"currency": "USD",
@@ -4033,8 +3865,8 @@
"model": "product.productvariant",
"pk": 306,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "33963052",
"name": "S",
"currency": "USD",
@@ -4051,8 +3883,8 @@
"model": "product.productvariant",
"pk": 307,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "66846240",
"name": "M",
"currency": "USD",
@@ -4069,8 +3901,8 @@
"model": "product.productvariant",
"pk": 308,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "55365141",
"name": "L",
"currency": "USD",
@@ -4087,8 +3919,8 @@
"model": "product.productvariant",
"pk": 309,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "73186143",
"name": "XL",
"currency": "USD",
@@ -4105,8 +3937,8 @@
"model": "product.productvariant",
"pk": 310,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "42651772",
"name": "XXL",
"currency": "USD",
@@ -4123,8 +3955,8 @@
"model": "product.productvariant",
"pk": 311,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "70760297",
"name": "S",
"currency": "USD",
@@ -4141,8 +3973,8 @@
"model": "product.productvariant",
"pk": 312,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "36334412",
"name": "M",
"currency": "USD",
@@ -4159,8 +3991,8 @@
"model": "product.productvariant",
"pk": 313,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "35994675",
"name": "L",
"currency": "USD",
@@ -4177,8 +4009,8 @@
"model": "product.productvariant",
"pk": 314,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "10404946",
"name": "XL",
"currency": "USD",
@@ -4195,8 +4027,8 @@
"model": "product.productvariant",
"pk": 315,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"sku": "45507483",
"name": "XXL",
"currency": "USD",
@@ -5940,8 +5772,8 @@
"model": "product.attribute",
"pk": 13,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "size",
"name": "Size",
"input_type": "dropdown",
@@ -5958,8 +5790,8 @@
"model": "product.attribute",
"pk": 14,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "color",
"name": "Color",
"input_type": "dropdown",
@@ -5976,8 +5808,8 @@
"model": "product.attribute",
"pk": 15,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "bottle-size",
"name": "Bottle Size",
"input_type": "dropdown",
@@ -5994,8 +5826,8 @@
"model": "product.attribute",
"pk": 16,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "flavor",
"name": "Flavor",
"input_type": "dropdown",
@@ -6012,8 +5844,8 @@
"model": "product.attribute",
"pk": 18,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "bucket-size",
"name": "Bucket Size",
"input_type": "dropdown",
@@ -6030,8 +5862,8 @@
"model": "product.attribute",
"pk": 19,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "medium",
"name": "Medium",
"input_type": "dropdown",
@@ -6048,8 +5880,8 @@
"model": "product.attribute",
"pk": 20,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "volume",
"name": "Volume",
"input_type": "dropdown",
@@ -6066,8 +5898,8 @@
"model": "product.attribute",
"pk": 21,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "abv",
"name": "ABV",
"input_type": "dropdown",
@@ -6084,8 +5916,8 @@
"model": "product.attribute",
"pk": 22,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "cushion-size",
"name": "Cushion Size",
"input_type": "dropdown",
@@ -6102,8 +5934,8 @@
"model": "product.attribute",
"pk": 23,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "material",
"name": "Material",
"input_type": "dropdown",
@@ -6120,8 +5952,8 @@
"model": "product.attribute",
"pk": 24,
"fields": {
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"slug": "shoe-size",
"name": "Shoe size",
"input_type": "dropdown",
@@ -7246,8 +7078,8 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": null,
"seo_description": null,
"name": "Summer collection",
@@ -7277,8 +7109,8 @@
"fields": {
"publication_date": null,
"is_published": true,
- "private_meta": {},
- "meta": {},
+ "private_metadata": {},
+ "metadata": {},
"seo_title": null,
"seo_description": null,
"name": "Winter sale",
diff --git a/saleor/webhook/payloads.py b/saleor/webhook/payloads.py
index 408295caa7..c1470b25ed 100644
--- a/saleor/webhook/payloads.py
+++ b/saleor/webhook/payloads.py
@@ -85,8 +85,8 @@ def generate_order_payload(order: "Order"):
"discount_name",
"translated_discount_name",
"weight",
- "private_meta",
- "meta",
+ "private_metadata",
+ "metadata",
)
order_data = serializer.serialize(
[order],
@@ -114,8 +114,8 @@ def generate_checkout_payload(checkout: "Checkout"):
"currency",
"discount_amount",
"discount_name",
- "private_meta",
- "meta",
+ "private_metadata",
+ "metadata",
)
user_fields = ("email", "first_name", "last_name")
shipping_method_fields = ("name", "type", "currency", "price_amount")
@@ -149,8 +149,8 @@ def generate_customer_payload(customer: "User"):
"last_name",
"is_active",
"date_joined",
- "private_meta",
- "meta",
+ "private_metadata",
+ "metadata",
],
additional_fields={
"default_shipping_address": (
@@ -181,8 +181,8 @@ def generate_product_payload(product: "Product"):
"weight",
"publication_date",
"is_published",
- "private_meta",
- "meta",
+ "private_metadata",
+ "metadata",
)
product_variant_fields = (
"sku",
@@ -193,8 +193,8 @@ def generate_product_payload(product: "Product"):
"quantity",
"quantity_allocated",
"cost_price_amount",
- "private_meta",
- "meta",
+ "private_metadata",
+ "metadata",
)
product_payload = serializer.serialize(
[product],
diff --git a/tests/api/test_checkout.py b/tests/api/test_checkout.py
index 12ce2ca298..f04514a0df 100644
--- a/tests/api/test_checkout.py
+++ b/tests/api/test_checkout.py
@@ -1235,8 +1235,8 @@ def test_checkout_complete(
order = Order.objects.first()
assert order.token == order_token
assert order.total.gross == total.gross - gift_current_balance
- assert order.meta == checkout.meta
- assert order.private_meta == checkout.private_meta
+ assert order.metadata == checkout.metadata
+ assert order.private_metadata == checkout.private_metadata
order_line = order.lines.first()
assert checkout_line_quantity == order_line.quantity
diff --git a/tests/api/test_fulfillment.py b/tests/api/test_fulfillment.py
index 8b8dd06813..73298dc909 100644
--- a/tests/api/test_fulfillment.py
+++ b/tests/api/test_fulfillment.py
@@ -458,7 +458,7 @@ def test_fulfillment_update_metadata_user_has_permission(
errors = content["data"]["orderFulfillmentUpdateMeta"]["errors"]
assert len(errors) == 0
fulfillment.refresh_from_db()
- assert fulfillment.meta == {str(staff_user): "bar"}
+ assert fulfillment.metadata == {str(staff_user): "bar"}
def test_fulfillment_update_private_metadata_user_has_no_permission(
@@ -499,7 +499,7 @@ def test_fulfillment_update_private_metadata_user_has_permission(
errors = content["data"]["orderFulfillmentUpdatePrivateMeta"]["errors"]
assert len(errors) == 0
fulfillment.refresh_from_db()
- assert fulfillment.private_meta == {str(staff_user): "bar"}
+ assert fulfillment.private_metadata == {str(staff_user): "bar"}
def test_fulfillment_clear_meta_user_has_no_permission(
diff --git a/tests/api/test_meta_mutations.py b/tests/api/test_meta_mutations.py
index 85657d4e7b..be7c6e1f0b 100644
--- a/tests/api/test_meta_mutations.py
+++ b/tests/api/test_meta_mutations.py
@@ -376,7 +376,7 @@ def test_add_public_metadata_for_service_account(
def test_update_public_metadata_for_item(api_client, checkout):
# given
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["meta"])
+ checkout.save(update_fields=["metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -482,7 +482,7 @@ def test_delete_public_metadata_for_customer_as_staff(
):
# given
customer_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- customer_user.save(update_fields=["meta"])
+ customer_user.save(update_fields=["metadata"])
customer_id = graphene.Node.to_global_id("User", customer_user.pk)
# when
@@ -501,7 +501,7 @@ def test_delete_public_metadata_for_customer_as_service_account(
):
# given
customer_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- customer_user.save(update_fields=["meta"])
+ customer_user.save(update_fields=["metadata"])
customer_id = graphene.Node.to_global_id("User", customer_user.pk)
# when
@@ -521,7 +521,7 @@ def test_delete_public_metadata_for_other_staff_as_staff(
# given
assert admin_user.pk != staff_api_client.user.pk
admin_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- admin_user.save(update_fields=["meta"])
+ admin_user.save(update_fields=["metadata"])
admin_id = graphene.Node.to_global_id("User", admin_user.pk)
# when
@@ -540,7 +540,7 @@ def test_delete_public_metadata_for_staff_as_service_account(
):
# given
admin_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- admin_user.save(update_fields=["meta"])
+ admin_user.save(update_fields=["metadata"])
admin_id = graphene.Node.to_global_id("User", admin_user.pk)
# when
@@ -558,7 +558,7 @@ def test_delete_public_metadata_for_myself_as_customer(user_api_client):
# given
customer = user_api_client.user
customer.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- customer.save(update_fields=["meta"])
+ customer.save(update_fields=["metadata"])
customer_id = graphene.Node.to_global_id("User", customer.pk)
# when
@@ -576,7 +576,7 @@ def test_delete_public_metadata_for_myself_as_staff(staff_api_client):
# given
staff = staff_api_client.user
staff.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- staff.save(update_fields=["meta"])
+ staff.save(update_fields=["metadata"])
staff_id = graphene.Node.to_global_id("User", staff.pk)
# when
@@ -593,7 +593,7 @@ def test_delete_public_metadata_for_myself_as_staff(staff_api_client):
def test_delete_public_metadata_for_checkout(api_client, checkout):
# given
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["meta"])
+ checkout.save(update_fields=["metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -610,7 +610,7 @@ def test_delete_public_metadata_for_checkout(api_client, checkout):
def test_delete_public_metadata_for_order(api_client, order):
# given
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["meta"])
+ order.save(update_fields=["metadata"])
order_id = graphene.Node.to_global_id("Order", order.pk)
# when
@@ -627,7 +627,7 @@ def test_delete_public_metadata_for_order(api_client, order):
def test_delete_public_metadata_for_draft_order(api_client, draft_order):
# given
draft_order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- draft_order.save(update_fields=["meta"])
+ draft_order.save(update_fields=["metadata"])
draft_order_id = graphene.Node.to_global_id("Order", draft_order.pk)
# when
@@ -646,7 +646,7 @@ def test_delete_public_metadata_for_attribute(
):
# given
color_attribute.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- color_attribute.save(update_fields=["meta"])
+ color_attribute.save(update_fields=["metadata"])
attribute_id = graphene.Node.to_global_id("Attribute", color_attribute.pk)
# when
@@ -665,7 +665,7 @@ def test_delete_public_metadata_for_category(
):
# given
category.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- category.save(update_fields=["meta"])
+ category.save(update_fields=["metadata"])
category_id = graphene.Node.to_global_id("Category", category.pk)
# when
@@ -684,7 +684,7 @@ def test_delete_public_metadata_for_collection(
):
# given
collection.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- collection.save(update_fields=["meta"])
+ collection.save(update_fields=["metadata"])
collection_id = graphene.Node.to_global_id("Collection", collection.pk)
# when
@@ -703,7 +703,7 @@ def test_delete_public_metadata_for_digital_content(
):
# given
digital_content.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- digital_content.save(update_fields=["meta"])
+ digital_content.save(update_fields=["metadata"])
digital_content_id = graphene.Node.to_global_id(
"DigitalContent", digital_content.pk
)
@@ -727,7 +727,7 @@ def test_delete_public_metadata_for_fulfillment(
):
# given
fulfillment.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- fulfillment.save(update_fields=["meta"])
+ fulfillment.save(update_fields=["metadata"])
fulfillment_id = graphene.Node.to_global_id("Fulfillment", fulfillment.pk)
# when
@@ -746,7 +746,7 @@ def test_delete_public_metadata_for_product(
):
# given
product.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product.save(update_fields=["meta"])
+ product.save(update_fields=["metadata"])
product_id = graphene.Node.to_global_id("Product", product.pk)
# when
@@ -765,7 +765,7 @@ def test_delete_public_metadata_for_product_type(
):
# given
product_type.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product_type.save(update_fields=["meta"])
+ product_type.save(update_fields=["metadata"])
product_type_id = graphene.Node.to_global_id("ProductType", product_type.pk)
# when
@@ -784,7 +784,7 @@ def test_delete_public_metadata_for_product_variant(
):
# given
variant.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- variant.save(update_fields=["meta"])
+ variant.save(update_fields=["metadata"])
variant_id = graphene.Node.to_global_id("ProductVariant", variant.pk)
# when
@@ -857,7 +857,7 @@ def test_delete_public_metadata_for_item_without_meta(api_client, address):
def test_delete_public_metadata_for_not_exist_key(api_client, checkout):
# given
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["meta"])
+ checkout.save(update_fields=["metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -876,7 +876,7 @@ def test_delete_public_metadata_for_one_key(api_client, checkout):
checkout.store_value_in_metadata(
{PUBLIC_KEY: PUBLIC_VALUE, "to_clear": PUBLIC_VALUE},
)
- checkout.save(update_fields=["meta"])
+ checkout.save(update_fields=["metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -1272,7 +1272,7 @@ def test_update_private_metadata_for_item(
):
# given
checkout.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_KEY})
- checkout.save(update_fields=["private_meta"])
+ checkout.save(update_fields=["private_metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -1384,7 +1384,7 @@ def test_delete_private_metadata_for_customer_as_staff(
):
# given
customer_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- customer_user.save(update_fields=["private_meta"])
+ customer_user.save(update_fields=["private_metadata"])
customer_id = graphene.Node.to_global_id("User", customer_user.pk)
# when
@@ -1403,7 +1403,7 @@ def test_delete_private_metadata_for_customer_as_service_account(
):
# given
customer_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- customer_user.save(update_fields=["private_meta"])
+ customer_user.save(update_fields=["private_metadata"])
customer_id = graphene.Node.to_global_id("User", customer_user.pk)
# when
@@ -1423,7 +1423,7 @@ def test_delete_private_metadata_for_other_staff_as_staff(
# given
assert admin_user.pk != staff_api_client.user.pk
admin_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- admin_user.save(update_fields=["private_meta"])
+ admin_user.save(update_fields=["private_metadata"])
admin_id = graphene.Node.to_global_id("User", admin_user.pk)
# when
@@ -1442,7 +1442,7 @@ def test_delete_private_metadata_for_staff_as_service_account(
):
# given
admin_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- admin_user.save(update_fields=["private_meta"])
+ admin_user.save(update_fields=["private_metadata"])
admin_id = graphene.Node.to_global_id("User", admin_user.pk)
# when
@@ -1460,7 +1460,7 @@ def test_delete_private_metadata_for_myself_as_customer_no_permission(user_api_c
# given
customer = user_api_client.user
customer.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- customer.save(update_fields=["private_meta"])
+ customer.save(update_fields=["private_metadata"])
variables = {
"id": graphene.Node.to_global_id("User", customer.pk),
"key": PRIVATE_KEY,
@@ -1481,7 +1481,7 @@ def test_delete_private_metadata_for_myself_as_staff_no_permission(
# given
staff = staff_api_client.user
staff.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- staff.save(update_fields=["private_meta"])
+ staff.save(update_fields=["private_metadata"])
variables = {
"id": graphene.Node.to_global_id("User", staff.pk),
"key": PRIVATE_KEY,
@@ -1503,7 +1503,7 @@ def test_delete_private_metadata_for_checkout(
):
# given
checkout.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- checkout.save(update_fields=["private_meta"])
+ checkout.save(update_fields=["private_metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -1522,7 +1522,7 @@ def test_delete_private_metadata_for_order(
):
# given
order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- order.save(update_fields=["private_meta"])
+ order.save(update_fields=["private_metadata"])
order_id = graphene.Node.to_global_id("Order", order.pk)
# when
@@ -1541,7 +1541,7 @@ def test_delete_private_metadata_for_draft_order(
):
# given
draft_order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- draft_order.save(update_fields=["private_meta"])
+ draft_order.save(update_fields=["private_metadata"])
draft_order_id = graphene.Node.to_global_id("Order", draft_order.pk)
# when
@@ -1560,7 +1560,7 @@ def test_delete_private_metadata_for_attribute(
):
# given
color_attribute.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- color_attribute.save(update_fields=["private_meta"])
+ color_attribute.save(update_fields=["private_metadata"])
attribute_id = graphene.Node.to_global_id("Attribute", color_attribute.pk)
# when
@@ -1579,7 +1579,7 @@ def test_delete_private_metadata_for_category(
):
# given
category.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- category.save(update_fields=["private_meta"])
+ category.save(update_fields=["private_metadata"])
category_id = graphene.Node.to_global_id("Category", category.pk)
# when
@@ -1598,7 +1598,7 @@ def test_delete_private_metadata_for_collection(
):
# given
collection.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- collection.save(update_fields=["private_meta"])
+ collection.save(update_fields=["private_metadata"])
collection_id = graphene.Node.to_global_id("Collection", collection.pk)
# when
@@ -1617,7 +1617,7 @@ def test_delete_private_metadata_for_digital_content(
):
# given
digital_content.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- digital_content.save(update_fields=["private_meta"])
+ digital_content.save(update_fields=["private_metadata"])
digital_content_id = graphene.Node.to_global_id(
"DigitalContent", digital_content.pk
)
@@ -1643,7 +1643,7 @@ def test_delete_private_metadata_for_fulfillment(
):
# given
fulfillment.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- fulfillment.save(update_fields=["private_meta"])
+ fulfillment.save(update_fields=["private_metadata"])
fulfillment_id = graphene.Node.to_global_id("Fulfillment", fulfillment.pk)
# when
@@ -1662,7 +1662,7 @@ def test_delete_private_metadata_for_product(
):
# given
product.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product.save(update_fields=["private_meta"])
+ product.save(update_fields=["private_metadata"])
product_id = graphene.Node.to_global_id("Product", product.pk)
# when
@@ -1681,7 +1681,7 @@ def test_delete_private_metadata_for_product_type(
):
# given
product_type.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product_type.save(update_fields=["private_meta"])
+ product_type.save(update_fields=["private_metadata"])
product_type_id = graphene.Node.to_global_id("ProductType", product_type.pk)
# when
@@ -1700,7 +1700,7 @@ def test_delete_private_metadata_for_product_variant(
):
# given
variant.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- variant.save(update_fields=["private_meta"])
+ variant.save(update_fields=["private_metadata"])
variant_id = graphene.Node.to_global_id("ProductVariant", variant.pk)
# when
@@ -1779,7 +1779,7 @@ def test_delete_private_metadata_for_not_exist_key(
):
# given
checkout.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- checkout.save(update_fields=["private_meta"])
+ checkout.save(update_fields=["private_metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
@@ -1804,7 +1804,7 @@ def test_delete_private_metadata_for_one_key(
checkout.store_value_in_private_metadata(
{PRIVATE_KEY: PRIVATE_VALUE, "to_clear": PRIVATE_VALUE},
)
- checkout.save(update_fields=["private_meta"])
+ checkout.save(update_fields=["private_metadata"])
checkout_id = graphene.Node.to_global_id("Checkout", checkout.pk)
# when
diff --git a/tests/api/test_meta_queries.py b/tests/api/test_meta_queries.py
index edd981455e..810c9506a7 100644
--- a/tests/api/test_meta_queries.py
+++ b/tests/api/test_meta_queries.py
@@ -25,7 +25,7 @@ def test_query_public_meta_for_me_as_customer(user_api_client):
# given
me = user_api_client.user
me.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- me.save(update_fields=["meta"])
+ me.save(update_fields=["metadata"])
# when
response = user_api_client.post_graphql(QUERY_SELF_PUBLIC_META)
@@ -41,7 +41,7 @@ def test_query_public_meta_for_me_as_staff(staff_api_client):
# given
me = staff_api_client.user
me.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- me.save(update_fields=["meta"])
+ me.save(update_fields=["metadata"])
# when
response = staff_api_client.post_graphql(QUERY_SELF_PUBLIC_META)
@@ -70,7 +70,7 @@ def test_query_public_meta_for_customer_as_staff(
):
# given
customer_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- customer_user.save(update_fields=["meta"])
+ customer_user.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("User", customer_user.pk)}
# when
@@ -90,7 +90,7 @@ def test_query_public_meta_for_customer_as_service_account(
):
# given
customer_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- customer_user.save(update_fields=["meta"])
+ customer_user.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("User", customer_user.pk)}
# when
@@ -110,7 +110,7 @@ def test_query_public_meta_for_staff_as_other_staff(
):
# given
admin_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- admin_user.save(update_fields=["meta"])
+ admin_user.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("User", admin_user.pk)}
# when
@@ -130,7 +130,7 @@ def test_query_public_meta_for_staff_as_service_account(
):
# given
admin_user.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- admin_user.save(update_fields=["meta"])
+ admin_user.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("User", admin_user.pk)}
# when
@@ -160,7 +160,7 @@ QUERY_CHECKOUT_PUBLIC_META = """
def test_query_public_meta_for_checkout_as_anonymous_user(api_client, checkout):
# given
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["meta"])
+ checkout.save(update_fields=["metadata"])
variables = {"token": checkout.pk}
# when
@@ -179,7 +179,7 @@ def test_query_public_meta_for_other_customer_checkout_as_anonymous_user(
# given
checkout.user = customer_user
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["user", "meta"])
+ checkout.save(update_fields=["user", "metadata"])
variables = {"token": checkout.pk}
# when
@@ -194,7 +194,7 @@ def test_query_public_meta_for_checkout_as_customer(user_api_client, checkout):
# given
checkout.user = user_api_client.user
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["user", "meta"])
+ checkout.save(update_fields=["user", "metadata"])
variables = {"token": checkout.pk}
# when
@@ -213,7 +213,7 @@ def test_query_public_meta_for_checkout_as_staff(
# given
checkout.user = customer_user
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["user", "meta"])
+ checkout.save(update_fields=["user", "metadata"])
variables = {"token": checkout.pk}
# when
@@ -237,7 +237,7 @@ def test_query_public_meta_for_checkout_as_service_account(
# given
checkout.user = customer_user
checkout.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- checkout.save(update_fields=["user", "meta"])
+ checkout.save(update_fields=["user", "metadata"])
variables = {"token": checkout.pk}
# when
@@ -270,7 +270,7 @@ QUERY_ORDER_BY_TOKEN_PUBLIC_META = """
def test_query_public_meta_for_order_by_token_as_anonymous_user(api_client, order):
# given
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["meta"])
+ order.save(update_fields=["metadata"])
variables = {"token": order.token}
# when
@@ -287,7 +287,7 @@ def test_query_public_meta_for_order_by_token_as_customer(user_api_client, order
# given
order.user = user_api_client.user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"token": order.token}
# when
@@ -306,7 +306,7 @@ def test_query_public_meta_for_order_by_token_as_staff(
# given
order.user = customer_user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"token": order.token}
# when
@@ -330,7 +330,7 @@ def test_query_public_meta_for_order_by_token_as_service_account(
# given
order.user = customer_user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"token": order.token}
# when
@@ -375,7 +375,7 @@ def test_query_public_meta_for_order_as_customer(user_api_client, order):
# given
order.user = user_api_client.user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", order.pk)}
# when
@@ -391,7 +391,7 @@ def test_query_public_meta_for_order_as_staff(
# given
order.user = customer_user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", order.pk)}
# when
@@ -415,7 +415,7 @@ def test_query_public_meta_for_order_as_service_account(
# given
order.user = customer_user
order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- order.save(update_fields=["user", "meta"])
+ order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", order.pk)}
# when
@@ -460,7 +460,7 @@ def test_query_public_meta_for_draft_order_as_customer(user_api_client, draft_or
# given
draft_order.user = user_api_client.user
draft_order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- draft_order.save(update_fields=["user", "meta"])
+ draft_order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -476,7 +476,7 @@ def test_query_public_meta_for_draft_order_as_staff(
# given
draft_order.user = customer_user
draft_order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- draft_order.save(update_fields=["user", "meta"])
+ draft_order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -500,7 +500,7 @@ def test_query_public_meta_for_draft_order_as_service_account(
# given
draft_order.user = customer_user
draft_order.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- draft_order.save(update_fields=["user", "meta"])
+ draft_order.save(update_fields=["user", "metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -538,7 +538,7 @@ def test_query_public_meta_for_fulfillment_as_anonymous_user(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- fulfillment.save(update_fields=["meta"])
+ fulfillment.save(update_fields=["metadata"])
variables = {"token": fulfilled_order.token}
# when
@@ -557,7 +557,7 @@ def test_query_public_meta_for_fulfillment_as_customer(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- fulfillment.save(update_fields=["meta"])
+ fulfillment.save(update_fields=["metadata"])
fulfilled_order.user = user_api_client.user
fulfilled_order.save(update_fields=["user"])
variables = {"token": fulfilled_order.token}
@@ -578,7 +578,7 @@ def test_query_public_meta_for_fulfillment_as_staff(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- fulfillment.save(update_fields=["meta"])
+ fulfillment.save(update_fields=["metadata"])
fulfilled_order.user = customer_user
fulfilled_order.save(update_fields=["user"])
variables = {"token": fulfilled_order.token}
@@ -604,7 +604,7 @@ def test_query_public_meta_for_fulfillment_as_service_account(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- fulfillment.save(update_fields=["meta"])
+ fulfillment.save(update_fields=["metadata"])
fulfilled_order.user = customer_user
fulfilled_order.save(update_fields=["user"])
variables = {"token": fulfilled_order.token}
@@ -639,7 +639,7 @@ QUERY_ATTRIBUTE_PUBLIC_META = """
def test_query_public_meta_for_attribute_as_anonymous_user(api_client, color_attribute):
# given
color_attribute.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- color_attribute.save(update_fields=["meta"])
+ color_attribute.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -655,7 +655,7 @@ def test_query_public_meta_for_attribute_as_anonymous_user(api_client, color_att
def test_query_public_meta_for_attribute_as_customer(user_api_client, color_attribute):
# given
color_attribute.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- color_attribute.save(update_fields=["meta"])
+ color_attribute.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -673,7 +673,7 @@ def test_query_public_meta_for_attribute_as_staff(
):
# given
color_attribute.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- color_attribute.save(update_fields=["meta"])
+ color_attribute.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -696,7 +696,7 @@ def test_query_public_meta_for_attribute_as_service_account(
):
# given
color_attribute.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- color_attribute.save(update_fields=["meta"])
+ color_attribute.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -729,7 +729,7 @@ QUERY_CATEGORY_PUBLIC_META = """
def test_query_public_meta_for_category_as_anonymous_user(api_client, category):
# given
category.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- category.save(update_fields=["meta"])
+ category.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -745,7 +745,7 @@ def test_query_public_meta_for_category_as_anonymous_user(api_client, category):
def test_query_public_meta_for_category_as_customer(user_api_client, category):
# given
category.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- category.save(update_fields=["meta"])
+ category.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -763,7 +763,7 @@ def test_query_public_meta_for_category_as_staff(
):
# given
category.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- category.save(update_fields=["meta"])
+ category.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -786,7 +786,7 @@ def test_query_public_meta_for_category_as_service_account(
):
# given
category.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- category.save(update_fields=["meta"])
+ category.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -819,7 +819,7 @@ QUERY_COLLECTION_PUBLIC_META = """
def test_query_public_meta_for_collection_as_anonymous_user(api_client, collection):
# given
collection.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- collection.save(update_fields=["meta"])
+ collection.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -835,7 +835,7 @@ def test_query_public_meta_for_collection_as_anonymous_user(api_client, collecti
def test_query_public_meta_for_collection_as_customer(user_api_client, collection):
# given
collection.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- collection.save(update_fields=["meta"])
+ collection.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -853,7 +853,7 @@ def test_query_public_meta_for_collection_as_staff(
):
# given
collection.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- collection.save(update_fields=["meta"])
+ collection.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -876,7 +876,7 @@ def test_query_public_meta_for_collection_as_service_account(
):
# given
collection.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- collection.save(update_fields=["meta"])
+ collection.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -924,7 +924,7 @@ def test_query_public_meta_for_digital_content_as_customer(
):
# given
digital_content.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- digital_content.save(update_fields=["meta"])
+ digital_content.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -941,7 +941,7 @@ def test_query_public_meta_for_digital_content_as_staff(
):
# given
digital_content.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- digital_content.save(update_fields=["meta"])
+ digital_content.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -964,7 +964,7 @@ def test_query_public_meta_for_digital_content_as_service_account(
):
# given
digital_content.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- digital_content.save(update_fields=["meta"])
+ digital_content.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -997,7 +997,7 @@ QUERY_PRODUCT_PUBLIC_META = """
def test_query_public_meta_for_product_as_anonymous_user(api_client, product):
# given
product.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product.save(update_fields=["meta"])
+ product.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -1013,7 +1013,7 @@ def test_query_public_meta_for_product_as_anonymous_user(api_client, product):
def test_query_public_meta_for_product_as_customer(user_api_client, product):
# given
product.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product.save(update_fields=["meta"])
+ product.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -1031,7 +1031,7 @@ def test_query_public_meta_for_product_as_staff(
):
# given
product.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product.save(update_fields=["meta"])
+ product.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -1054,7 +1054,7 @@ def test_query_public_meta_for_product_as_service_account(
):
# given
product.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product.save(update_fields=["meta"])
+ product.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -1087,7 +1087,7 @@ QUERY_PRODUCT_TYPE_PUBLIC_META = """
def test_query_public_meta_for_product_type_as_anonymous_user(api_client, product_type):
# given
product_type.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product_type.save(update_fields=["meta"])
+ product_type.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -1103,7 +1103,7 @@ def test_query_public_meta_for_product_type_as_anonymous_user(api_client, produc
def test_query_public_meta_for_product_type_as_customer(user_api_client, product_type):
# given
product_type.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product_type.save(update_fields=["meta"])
+ product_type.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -1121,7 +1121,7 @@ def test_query_public_meta_for_product_type_as_staff(
):
# given
product_type.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product_type.save(update_fields=["meta"])
+ product_type.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -1144,7 +1144,7 @@ def test_query_public_meta_for_product_type_as_service_account(
):
# given
product_type.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- product_type.save(update_fields=["meta"])
+ product_type.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -1177,7 +1177,7 @@ QUERY_PRODUCT_VARIANT_PUBLIC_META = """
def test_query_public_meta_for_product_variant_as_anonymous_user(api_client, variant):
# given
variant.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- variant.save(update_fields=["meta"])
+ variant.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -1193,7 +1193,7 @@ def test_query_public_meta_for_product_variant_as_anonymous_user(api_client, var
def test_query_public_meta_for_product_variant_as_customer(user_api_client, variant):
# given
variant.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- variant.save(update_fields=["meta"])
+ variant.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -1213,7 +1213,7 @@ def test_query_public_meta_for_product_variant_as_staff(
):
# given
variant.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- variant.save(update_fields=["meta"])
+ variant.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -1236,7 +1236,7 @@ def test_query_public_meta_for_product_variant_as_service_account(
):
# given
variant.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- variant.save(update_fields=["meta"])
+ variant.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -1299,7 +1299,7 @@ def test_query_public_meta_for_service_account_as_staff(
):
# given
service_account.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- service_account.save(update_fields=["meta"])
+ service_account.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ServiceAccount", service_account.pk)}
# when
@@ -1322,7 +1322,7 @@ def test_query_public_meta_for_service_account_as_service_account(
):
# given
service_account.store_value_in_metadata({PUBLIC_KEY: PUBLIC_VALUE})
- service_account.save(update_fields=["meta"])
+ service_account.save(update_fields=["metadata"])
variables = {"id": graphene.Node.to_global_id("ServiceAccount", service_account.pk)}
# when
@@ -1382,7 +1382,7 @@ def test_query_private_meta_for_me_as_staff_with_manage_staff(
# given
me = staff_api_client.user
me.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- me.save(update_fields=["private_meta"])
+ me.save(update_fields=["private_metadata"])
# when
response = staff_api_client.post_graphql(
@@ -1413,7 +1413,7 @@ def test_query_private_meta_for_customer_as_staff(
):
# given
customer_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- customer_user.save(update_fields=["private_meta"])
+ customer_user.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("User", customer_user.pk)}
# when
@@ -1433,7 +1433,7 @@ def test_query_private_meta_for_customer_as_service_account(
):
# given
customer_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- customer_user.save(update_fields=["private_meta"])
+ customer_user.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("User", customer_user.pk)}
# when
@@ -1453,7 +1453,7 @@ def test_query_private_meta_for_staff_as_other_staff(
):
# given
admin_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- admin_user.save(update_fields=["private_meta"])
+ admin_user.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("User", admin_user.pk)}
# when
@@ -1473,7 +1473,7 @@ def test_query_private_meta_for_staff_as_service_account(
):
# given
admin_user.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- admin_user.save(update_fields=["private_meta"])
+ admin_user.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("User", admin_user.pk)}
# when
@@ -1546,7 +1546,7 @@ def test_query_private_meta_for_checkout_as_staff(
# given
checkout.user = customer_user
checkout.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- checkout.save(update_fields=["user", "private_meta"])
+ checkout.save(update_fields=["user", "private_metadata"])
variables = {"token": checkout.pk}
# when
@@ -1570,7 +1570,7 @@ def test_query_private_meta_for_checkout_as_service_account(
# given
checkout.user = customer_user
checkout.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- checkout.save(update_fields=["user", "private_meta"])
+ checkout.save(update_fields=["user", "private_metadata"])
variables = {"token": checkout.pk}
# when
@@ -1632,7 +1632,7 @@ def test_query_private_meta_for_order_by_token_as_staff(
# given
order.user = customer_user
order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- order.save(update_fields=["user", "private_meta"])
+ order.save(update_fields=["user", "private_metadata"])
variables = {"token": order.token}
# when
@@ -1656,7 +1656,7 @@ def test_query_private_meta_for_order_by_token_as_service_account(
# given
order.user = customer_user
order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- order.save(update_fields=["user", "private_meta"])
+ order.save(update_fields=["user", "private_metadata"])
variables = {"token": order.token}
# when
@@ -1716,7 +1716,7 @@ def test_query_private_meta_for_order_as_staff(
# given
order.user = customer_user
order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- order.save(update_fields=["user", "private_meta"])
+ order.save(update_fields=["user", "private_metadata"])
variables = {"id": graphene.Node.to_global_id("Order", order.pk)}
# when
@@ -1740,7 +1740,7 @@ def test_query_private_meta_for_order_as_service_account(
# given
order.user = customer_user
order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- order.save(update_fields=["user", "private_meta"])
+ order.save(update_fields=["user", "private_metadata"])
variables = {"id": graphene.Node.to_global_id("Order", order.pk)}
# when
@@ -1785,7 +1785,7 @@ def test_query_private_meta_for_draft_order_as_customer(user_api_client, draft_o
# given
draft_order.user = user_api_client.user
draft_order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- draft_order.save(update_fields=["user", "private_meta"])
+ draft_order.save(update_fields=["user", "private_metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -1801,7 +1801,7 @@ def test_query_private_meta_for_draft_order_as_staff(
# given
draft_order.user = customer_user
draft_order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- draft_order.save(update_fields=["user", "private_meta"])
+ draft_order.save(update_fields=["user", "private_metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -1825,7 +1825,7 @@ def test_query_private_meta_for_draft_order_as_service_account(
# given
draft_order.user = customer_user
draft_order.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- draft_order.save(update_fields=["user", "private_meta"])
+ draft_order.save(update_fields=["user", "private_metadata"])
variables = {"id": graphene.Node.to_global_id("Order", draft_order.pk)}
# when
@@ -1891,7 +1891,7 @@ def test_query_private_meta_for_fulfillment_as_staff(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- fulfillment.save(update_fields=["private_meta"])
+ fulfillment.save(update_fields=["private_metadata"])
fulfilled_order.user = customer_user
fulfilled_order.save(update_fields=["user"])
variables = {"token": fulfilled_order.token}
@@ -1917,7 +1917,7 @@ def test_query_private_meta_for_fulfillment_as_service_account(
# given
fulfillment = fulfilled_order.fulfillments.first()
fulfillment.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- fulfillment.save(update_fields=["private_meta"])
+ fulfillment.save(update_fields=["private_metadata"])
fulfilled_order.user = customer_user
fulfilled_order.save(update_fields=["user"])
variables = {"token": fulfilled_order.token}
@@ -1978,7 +1978,7 @@ def test_query_private_meta_for_attribute_as_staff(
):
# given
color_attribute.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- color_attribute.save(update_fields=["private_meta"])
+ color_attribute.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -2001,7 +2001,7 @@ def test_query_private_meta_for_attribute_as_service_account(
):
# given
color_attribute.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- color_attribute.save(update_fields=["private_meta"])
+ color_attribute.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Attribute", color_attribute.pk)}
# when
@@ -2058,7 +2058,7 @@ def test_query_private_meta_for_category_as_staff(
):
# given
category.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- category.save(update_fields=["private_meta"])
+ category.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -2081,7 +2081,7 @@ def test_query_private_meta_for_category_as_service_account(
):
# given
category.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- category.save(update_fields=["private_meta"])
+ category.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Category", category.pk)}
# when
@@ -2138,7 +2138,7 @@ def test_query_private_meta_for_collection_as_staff(
):
# given
collection.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- collection.save(update_fields=["private_meta"])
+ collection.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -2161,7 +2161,7 @@ def test_query_private_meta_for_collection_as_service_account(
):
# given
collection.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- collection.save(update_fields=["private_meta"])
+ collection.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Collection", collection.pk)}
# when
@@ -2209,7 +2209,7 @@ def test_query_private_meta_for_digital_content_as_customer(
):
# given
digital_content.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- digital_content.save(update_fields=["private_meta"])
+ digital_content.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -2226,7 +2226,7 @@ def test_query_private_meta_for_digital_content_as_staff(
):
# given
digital_content.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- digital_content.save(update_fields=["private_meta"])
+ digital_content.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -2249,7 +2249,7 @@ def test_query_private_meta_for_digital_content_as_service_account(
):
# given
digital_content.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- digital_content.save(update_fields=["private_meta"])
+ digital_content.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("DigitalContent", digital_content.pk)}
# when
@@ -2306,7 +2306,7 @@ def test_query_private_meta_for_product_as_staff(
):
# given
product.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product.save(update_fields=["private_meta"])
+ product.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -2329,7 +2329,7 @@ def test_query_private_meta_for_product_as_service_account(
):
# given
product.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product.save(update_fields=["private_meta"])
+ product.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("Product", product.pk)}
# when
@@ -2388,7 +2388,7 @@ def test_query_private_meta_for_product_type_as_staff(
):
# given
product_type.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product_type.save(update_fields=["private_meta"])
+ product_type.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -2411,7 +2411,7 @@ def test_query_private_meta_for_product_type_as_service_account(
):
# given
product_type.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- product_type.save(update_fields=["private_meta"])
+ product_type.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductType", product_type.pk)}
# when
@@ -2444,7 +2444,7 @@ QUERY_PRODUCT_VARIANT_PRIVATE_META = """
def test_query_private_meta_for_product_variant_as_anonymous_user(api_client, variant):
# given
variant.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- variant.save(update_fields=["private_meta"])
+ variant.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -2457,7 +2457,7 @@ def test_query_private_meta_for_product_variant_as_anonymous_user(api_client, va
def test_query_private_meta_for_product_variant_as_customer(user_api_client, variant):
# given
variant.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- variant.save(update_fields=["private_meta"])
+ variant.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -2474,7 +2474,7 @@ def test_query_private_meta_for_product_variant_as_staff(
):
# given
variant.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- variant.save(update_fields=["private_meta"])
+ variant.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -2497,7 +2497,7 @@ def test_query_private_meta_for_product_variant_as_service_account(
):
# given
variant.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- variant.save(update_fields=["private_meta"])
+ variant.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ProductVariant", variant.pk)}
# when
@@ -2560,7 +2560,7 @@ def test_query_private_meta_for_service_account_as_staff(
):
# given
service_account.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- service_account.save(update_fields=["private_meta"])
+ service_account.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ServiceAccount", service_account.pk)}
# when
@@ -2583,7 +2583,7 @@ def test_query_private_meta_for_service_account_as_service_account(
):
# given
service_account.store_value_in_private_metadata({PRIVATE_KEY: PRIVATE_VALUE})
- service_account.save(update_fields=["private_meta"])
+ service_account.save(update_fields=["private_metadata"])
variables = {"id": graphene.Node.to_global_id("ServiceAccount", service_account.pk)}
# when
diff --git a/tests/api/test_payment.py b/tests/api/test_payment.py
index 62797aba83..676fffe915 100644
--- a/tests/api/test_payment.py
+++ b/tests/api/test_payment.py
@@ -585,7 +585,7 @@ def test_store_payment_gateway_meta(customer_user, braintree_customer_id):
meta_key = "BRAINTREE.customer_id"
META = {meta_key: braintree_customer_id}
store_customer_id(customer_user, gateway_name, braintree_customer_id)
- assert customer_user.private_meta == META
+ assert customer_user.private_metadata == META
customer_user.refresh_from_db()
assert fetch_customer_id(customer_user, gateway_name) == braintree_customer_id
diff --git a/tests/extensions/plugins/test_vatlayer.py b/tests/extensions/plugins/test_vatlayer.py
index f557c51ddb..9f20ad88d5 100644
--- a/tests/extensions/plugins/test_vatlayer.py
+++ b/tests/extensions/plugins/test_vatlayer.py
@@ -432,7 +432,7 @@ def test_apply_taxes_to_product(vatlayer, settings, variant, discount_info):
settings.PLUGINS = ["saleor.extensions.plugins.vatlayer.plugin.VatlayerPlugin"]
country = Country("PL")
manager = get_extensions_manager()
- variant.product.meta = {
+ variant.product.metadata = {
"vatlayer.code": "standard",
"vatlayer.description": "standard",
}
diff --git a/tests/test_webhook_payloads.py b/tests/test_webhook_payloads.py
index 8c6be4234b..bad420d79f 100644
--- a/tests/test_webhook_payloads.py
+++ b/tests/test_webhook_payloads.py
@@ -19,8 +19,8 @@ def _remove_anonymized_order_data(order_data: dict) -> dict:
del order_data[0]["user_email"]
del order_data[0]["billing_address"]
del order_data[0]["shipping_address"]
- del order_data[0]["meta"]
- del order_data[0]["private_meta"]
+ del order_data[0]["metadata"]
+ del order_data[0]["private_metadata"]
return order_data
@@ -53,8 +53,8 @@ def test_generate_sample_payload_order(
order.shipping_address.street_address_1
!= payload[0]["shipping_address"]["street_address_1"]
)
- assert order.meta != payload[0]["meta"]
- assert order.private_meta != payload[0]["private_meta"]
+ assert order.metadata != payload[0]["metadata"]
+ assert order.private_metadata != payload[0]["private_metadata"]
# Remove anonymized data
payload = _remove_anonymized_order_data(payload)
order_payload = _remove_anonymized_order_data(order_payload)
@@ -99,8 +99,8 @@ def _remove_anonymized_checkout_data(checkout_data: dict) -> dict:
del checkout_data[0]["email"]
del checkout_data[0]["billing_address"]
del checkout_data[0]["shipping_address"]
- del checkout_data[0]["meta"]
- del checkout_data[0]["private_meta"]
+ del checkout_data[0]["metadata"]
+ del checkout_data[0]["private_metadata"]
return checkout_data
@@ -121,8 +121,8 @@ def test_generate_sample_checkout_payload(user_checkout_with_items):
!= payload[0]["shipping_address"]["street_address_1"]
)
assert "note" not in payload[0]
- assert checkout.meta != payload[0]["meta"]
- assert checkout.private_meta != payload[0]["private_meta"]
+ assert checkout.metadata != payload[0]["metadata"]
+ assert checkout.private_metadata != payload[0]["private_metadata"]
# Remove anonymized data
payload = _remove_anonymized_checkout_data(payload)
checkout_payload = _remove_anonymized_checkout_data(checkout_payload)