Skip to content

Commit 925f483

Browse files
committed
Regenerate
1 parent 505d09c commit 925f483

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4923
-6898
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# DO NOT EDIT! This file is automatically generated
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DO NOT EDIT! This file is automatically generated
22
import marshmallow
33

4-
from commercetools import types
4+
from commercetools import helpers, types
55

66
__all__ = [
77
"ApiClientDraftSchema",
@@ -34,8 +34,8 @@ class ApiClientPagedQueryResponseSchema(marshmallow.Schema):
3434
count = marshmallow.fields.Integer(allow_none=True)
3535
total = marshmallow.fields.Integer(allow_none=True, missing=None)
3636
offset = marshmallow.fields.Integer(allow_none=True)
37-
results = marshmallow.fields.Nested(
38-
nested="commercetools.schemas._api_client.ApiClientSchema",
37+
results = helpers.LazyNestedField(
38+
nested="commercetools._schemas._api_client.ApiClientSchema",
3939
unknown=marshmallow.EXCLUDE,
4040
allow_none=True,
4141
many=True,
Lines changed: 344 additions & 344 deletions
Large diffs are not rendered by default.

src/commercetools/schemas/_cart_discount.py renamed to src/commercetools/_schemas/_cart_discount.py

Lines changed: 93 additions & 93 deletions
Large diffs are not rendered by default.
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
import marshmallow
33

44
from commercetools import helpers, types
5-
from commercetools.schemas._common import (
5+
from commercetools._schemas._common import (
66
BaseResourceSchema,
77
LocalizedStringField,
88
ReferenceSchema,
99
ResourceIdentifierSchema,
1010
)
11-
from commercetools.schemas._type import FieldContainerField
11+
from commercetools._schemas._type import FieldContainerField
1212

1313
__all__ = [
1414
"CategoryAddAssetActionSchema",
@@ -49,8 +49,8 @@ class CategoryDraftSchema(marshmallow.Schema):
4949
name = LocalizedStringField(allow_none=True)
5050
slug = LocalizedStringField(allow_none=True)
5151
description = LocalizedStringField(allow_none=True, missing=None)
52-
parent = marshmallow.fields.Nested(
53-
nested="commercetools.schemas._category.CategoryResourceIdentifierSchema",
52+
parent = helpers.LazyNestedField(
53+
nested="commercetools._schemas._category.CategoryResourceIdentifierSchema",
5454
unknown=marshmallow.EXCLUDE,
5555
allow_none=True,
5656
missing=None,
@@ -70,14 +70,14 @@ class CategoryDraftSchema(marshmallow.Schema):
7070
meta_keywords = LocalizedStringField(
7171
allow_none=True, missing=None, data_key="metaKeywords"
7272
)
73-
custom = marshmallow.fields.Nested(
74-
nested="commercetools.schemas._type.CustomFieldsDraftSchema",
73+
custom = helpers.LazyNestedField(
74+
nested="commercetools._schemas._type.CustomFieldsDraftSchema",
7575
unknown=marshmallow.EXCLUDE,
7676
allow_none=True,
7777
missing=None,
7878
)
79-
assets = marshmallow.fields.Nested(
80-
nested="commercetools.schemas._common.AssetDraftSchema",
79+
assets = helpers.LazyNestedField(
80+
nested="commercetools._schemas._common.AssetDraftSchema",
8181
unknown=marshmallow.EXCLUDE,
8282
allow_none=True,
8383
many=True,
@@ -100,8 +100,8 @@ class CategoryPagedQueryResponseSchema(marshmallow.Schema):
100100
count = marshmallow.fields.Integer(allow_none=True)
101101
total = marshmallow.fields.Integer(allow_none=True, missing=None)
102102
offset = marshmallow.fields.Integer(allow_none=True)
103-
results = marshmallow.fields.Nested(
104-
nested="commercetools.schemas._category.CategorySchema",
103+
results = helpers.LazyNestedField(
104+
nested="commercetools._schemas._category.CategorySchema",
105105
unknown=marshmallow.EXCLUDE,
106106
allow_none=True,
107107
many=True,
@@ -118,8 +118,8 @@ def post_load(self, data, **kwargs):
118118
class CategoryReferenceSchema(ReferenceSchema):
119119
"""Marshmallow schema for :class:`commercetools.types.CategoryReference`."""
120120

121-
obj = marshmallow.fields.Nested(
122-
nested="commercetools.schemas._category.CategorySchema",
121+
obj = helpers.LazyNestedField(
122+
nested="commercetools._schemas._category.CategorySchema",
123123
unknown=marshmallow.EXCLUDE,
124124
allow_none=True,
125125
missing=None,
@@ -155,15 +155,15 @@ class CategorySchema(BaseResourceSchema):
155155
last_modified_at = marshmallow.fields.DateTime(
156156
allow_none=True, data_key="lastModifiedAt"
157157
)
158-
last_modified_by = marshmallow.fields.Nested(
159-
nested="commercetools.schemas._common.LastModifiedBySchema",
158+
last_modified_by = helpers.LazyNestedField(
159+
nested="commercetools._schemas._common.LastModifiedBySchema",
160160
unknown=marshmallow.EXCLUDE,
161161
allow_none=True,
162162
missing=None,
163163
data_key="lastModifiedBy",
164164
)
165-
created_by = marshmallow.fields.Nested(
166-
nested="commercetools.schemas._common.CreatedBySchema",
165+
created_by = helpers.LazyNestedField(
166+
nested="commercetools._schemas._common.CreatedBySchema",
167167
unknown=marshmallow.EXCLUDE,
168168
allow_none=True,
169169
missing=None,
@@ -172,14 +172,14 @@ class CategorySchema(BaseResourceSchema):
172172
name = LocalizedStringField(allow_none=True)
173173
slug = LocalizedStringField(allow_none=True)
174174
description = LocalizedStringField(allow_none=True, missing=None)
175-
ancestors = marshmallow.fields.Nested(
176-
nested="commercetools.schemas._category.CategoryReferenceSchema",
175+
ancestors = helpers.LazyNestedField(
176+
nested="commercetools._schemas._category.CategoryReferenceSchema",
177177
unknown=marshmallow.EXCLUDE,
178178
allow_none=True,
179179
many=True,
180180
)
181-
parent = marshmallow.fields.Nested(
182-
nested="commercetools.schemas._category.CategoryReferenceSchema",
181+
parent = helpers.LazyNestedField(
182+
nested="commercetools._schemas._category.CategoryReferenceSchema",
183183
unknown=marshmallow.EXCLUDE,
184184
allow_none=True,
185185
missing=None,
@@ -197,14 +197,14 @@ class CategorySchema(BaseResourceSchema):
197197
meta_keywords = LocalizedStringField(
198198
allow_none=True, missing=None, data_key="metaKeywords"
199199
)
200-
custom = marshmallow.fields.Nested(
201-
nested="commercetools.schemas._type.CustomFieldsSchema",
200+
custom = helpers.LazyNestedField(
201+
nested="commercetools._schemas._type.CustomFieldsSchema",
202202
unknown=marshmallow.EXCLUDE,
203203
allow_none=True,
204204
missing=None,
205205
)
206-
assets = marshmallow.fields.Nested(
207-
nested="commercetools.schemas._common.AssetSchema",
206+
assets = helpers.LazyNestedField(
207+
nested="commercetools._schemas._common.AssetSchema",
208208
unknown=marshmallow.EXCLUDE,
209209
allow_none=True,
210210
many=True,
@@ -242,28 +242,28 @@ class CategoryUpdateSchema(marshmallow.Schema):
242242
helpers.Discriminator(
243243
discriminator_field=("action", "action"),
244244
discriminator_schemas={
245-
"addAsset": "commercetools.schemas._category.CategoryAddAssetActionSchema",
246-
"changeAssetName": "commercetools.schemas._category.CategoryChangeAssetNameActionSchema",
247-
"changeAssetOrder": "commercetools.schemas._category.CategoryChangeAssetOrderActionSchema",
248-
"changeName": "commercetools.schemas._category.CategoryChangeNameActionSchema",
249-
"changeOrderHint": "commercetools.schemas._category.CategoryChangeOrderHintActionSchema",
250-
"changeParent": "commercetools.schemas._category.CategoryChangeParentActionSchema",
251-
"changeSlug": "commercetools.schemas._category.CategoryChangeSlugActionSchema",
252-
"removeAsset": "commercetools.schemas._category.CategoryRemoveAssetActionSchema",
253-
"setAssetCustomField": "commercetools.schemas._category.CategorySetAssetCustomFieldActionSchema",
254-
"setAssetCustomType": "commercetools.schemas._category.CategorySetAssetCustomTypeActionSchema",
255-
"setAssetDescription": "commercetools.schemas._category.CategorySetAssetDescriptionActionSchema",
256-
"setAssetKey": "commercetools.schemas._category.CategorySetAssetKeyActionSchema",
257-
"setAssetSources": "commercetools.schemas._category.CategorySetAssetSourcesActionSchema",
258-
"setAssetTags": "commercetools.schemas._category.CategorySetAssetTagsActionSchema",
259-
"setCustomField": "commercetools.schemas._category.CategorySetCustomFieldActionSchema",
260-
"setCustomType": "commercetools.schemas._category.CategorySetCustomTypeActionSchema",
261-
"setDescription": "commercetools.schemas._category.CategorySetDescriptionActionSchema",
262-
"setExternalId": "commercetools.schemas._category.CategorySetExternalIdActionSchema",
263-
"setKey": "commercetools.schemas._category.CategorySetKeyActionSchema",
264-
"setMetaDescription": "commercetools.schemas._category.CategorySetMetaDescriptionActionSchema",
265-
"setMetaKeywords": "commercetools.schemas._category.CategorySetMetaKeywordsActionSchema",
266-
"setMetaTitle": "commercetools.schemas._category.CategorySetMetaTitleActionSchema",
245+
"addAsset": "commercetools._schemas._category.CategoryAddAssetActionSchema",
246+
"changeAssetName": "commercetools._schemas._category.CategoryChangeAssetNameActionSchema",
247+
"changeAssetOrder": "commercetools._schemas._category.CategoryChangeAssetOrderActionSchema",
248+
"changeName": "commercetools._schemas._category.CategoryChangeNameActionSchema",
249+
"changeOrderHint": "commercetools._schemas._category.CategoryChangeOrderHintActionSchema",
250+
"changeParent": "commercetools._schemas._category.CategoryChangeParentActionSchema",
251+
"changeSlug": "commercetools._schemas._category.CategoryChangeSlugActionSchema",
252+
"removeAsset": "commercetools._schemas._category.CategoryRemoveAssetActionSchema",
253+
"setAssetCustomField": "commercetools._schemas._category.CategorySetAssetCustomFieldActionSchema",
254+
"setAssetCustomType": "commercetools._schemas._category.CategorySetAssetCustomTypeActionSchema",
255+
"setAssetDescription": "commercetools._schemas._category.CategorySetAssetDescriptionActionSchema",
256+
"setAssetKey": "commercetools._schemas._category.CategorySetAssetKeyActionSchema",
257+
"setAssetSources": "commercetools._schemas._category.CategorySetAssetSourcesActionSchema",
258+
"setAssetTags": "commercetools._schemas._category.CategorySetAssetTagsActionSchema",
259+
"setCustomField": "commercetools._schemas._category.CategorySetCustomFieldActionSchema",
260+
"setCustomType": "commercetools._schemas._category.CategorySetCustomTypeActionSchema",
261+
"setDescription": "commercetools._schemas._category.CategorySetDescriptionActionSchema",
262+
"setExternalId": "commercetools._schemas._category.CategorySetExternalIdActionSchema",
263+
"setKey": "commercetools._schemas._category.CategorySetKeyActionSchema",
264+
"setMetaDescription": "commercetools._schemas._category.CategorySetMetaDescriptionActionSchema",
265+
"setMetaKeywords": "commercetools._schemas._category.CategorySetMetaKeywordsActionSchema",
266+
"setMetaTitle": "commercetools._schemas._category.CategorySetMetaTitleActionSchema",
267267
},
268268
unknown=marshmallow.EXCLUDE,
269269
allow_none=True,
@@ -282,8 +282,8 @@ def post_load(self, data, **kwargs):
282282
class CategoryAddAssetActionSchema(CategoryUpdateActionSchema):
283283
"""Marshmallow schema for :class:`commercetools.types.CategoryAddAssetAction`."""
284284

285-
asset = marshmallow.fields.Nested(
286-
nested="commercetools.schemas._common.AssetDraftSchema",
285+
asset = helpers.LazyNestedField(
286+
nested="commercetools._schemas._common.AssetDraftSchema",
287287
unknown=marshmallow.EXCLUDE,
288288
allow_none=True,
289289
)
@@ -365,8 +365,8 @@ def post_load(self, data, **kwargs):
365365
class CategoryChangeParentActionSchema(CategoryUpdateActionSchema):
366366
"""Marshmallow schema for :class:`commercetools.types.CategoryChangeParentAction`."""
367367

368-
parent = marshmallow.fields.Nested(
369-
nested="commercetools.schemas._category.CategoryResourceIdentifierSchema",
368+
parent = helpers.LazyNestedField(
369+
nested="commercetools._schemas._category.CategoryResourceIdentifierSchema",
370370
unknown=marshmallow.EXCLUDE,
371371
allow_none=True,
372372
)
@@ -443,8 +443,8 @@ class CategorySetAssetCustomTypeActionSchema(CategoryUpdateActionSchema):
443443
asset_key = marshmallow.fields.String(
444444
allow_none=True, missing=None, data_key="assetKey"
445445
)
446-
type = marshmallow.fields.Nested(
447-
nested="commercetools.schemas._type.TypeResourceIdentifierSchema",
446+
type = helpers.LazyNestedField(
447+
nested="commercetools._schemas._type.TypeResourceIdentifierSchema",
448448
unknown=marshmallow.EXCLUDE,
449449
allow_none=True,
450450
missing=None,
@@ -506,8 +506,8 @@ class CategorySetAssetSourcesActionSchema(CategoryUpdateActionSchema):
506506
asset_key = marshmallow.fields.String(
507507
allow_none=True, missing=None, data_key="assetKey"
508508
)
509-
sources = marshmallow.fields.Nested(
510-
nested="commercetools.schemas._common.AssetSourceSchema",
509+
sources = helpers.LazyNestedField(
510+
nested="commercetools._schemas._common.AssetSourceSchema",
511511
unknown=marshmallow.EXCLUDE,
512512
allow_none=True,
513513
many=True,
@@ -562,8 +562,8 @@ def post_load(self, data, **kwargs):
562562
class CategorySetCustomTypeActionSchema(CategoryUpdateActionSchema):
563563
"""Marshmallow schema for :class:`commercetools.types.CategorySetCustomTypeAction`."""
564564

565-
type = marshmallow.fields.Nested(
566-
nested="commercetools.schemas._type.TypeResourceIdentifierSchema",
565+
type = helpers.LazyNestedField(
566+
nested="commercetools._schemas._type.TypeResourceIdentifierSchema",
567567
unknown=marshmallow.EXCLUDE,
568568
allow_none=True,
569569
missing=None,

0 commit comments

Comments
 (0)