kittycad.models.invoice

Classes

Invoice(**data)

An invoice.

class kittycad.models.invoice.Invoice(**data)[source][source]

An invoice.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__abstractmethods__ = frozenset({})[source]
__annotations__ = {'__class_vars__': 'ClassVar[set[str]]', '__private_attributes__': 'ClassVar[Dict[str, ModelPrivateAttr]]', '__pydantic_complete__': 'ClassVar[bool]', '__pydantic_core_schema__': 'ClassVar[CoreSchema]', '__pydantic_custom_init__': 'ClassVar[bool]', '__pydantic_decorators__': 'ClassVar[_decorators.DecoratorInfos]', '__pydantic_extra__': 'dict[str, Any] | None', '__pydantic_fields_set__': 'set[str]', '__pydantic_generic_metadata__': 'ClassVar[_generics.PydanticGenericMetadata]', '__pydantic_parent_namespace__': 'ClassVar[Dict[str, Any] | None]', '__pydantic_post_init__': "ClassVar[None | Literal['model_post_init']]", '__pydantic_private__': 'dict[str, Any] | None', '__pydantic_root_model__': 'ClassVar[bool]', '__pydantic_serializer__': 'ClassVar[SchemaSerializer]', '__pydantic_validator__': 'ClassVar[SchemaValidator | PluggableSchemaValidator]', '__signature__': 'ClassVar[Signature]', 'amount_due': <class 'float'>, 'amount_paid': <class 'float'>, 'amount_remaining': <class 'float'>, 'attempt_count': <class 'int'>, 'attempted': <class 'bool'>, 'created_at': <class 'datetime.datetime'>, 'currency': <class 'kittycad.models.currency.Currency'>, 'customer_email': typing.Optional[str], 'customer_id': typing.Optional[str], 'default_payment_method': typing.Optional[str], 'description': typing.Optional[str], 'discounts': typing.Optional[typing.List[kittycad.models.discount.Discount]], 'id': typing.Optional[str], 'lines': typing.Optional[typing.List[kittycad.models.invoice_line_item.InvoiceLineItem]], 'metadata': typing.Dict[str, str], 'model_computed_fields': 'ClassVar[Dict[str, ComputedFieldInfo]]', 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[Dict[str, FieldInfo]]', 'number': typing.Optional[str], 'paid': <class 'bool'>, 'pdf': typing.Optional[str], 'receipt_number': typing.Optional[str], 'statement_descriptor': typing.Optional[str], 'status': typing.Optional[kittycad.models.invoice_status.InvoiceStatus], 'subtotal': <class 'float'>, 'tax': <class 'float'>, 'total': <class 'float'>, 'url': typing.Optional[str]}[source]
classmethod __class_getitem__(typevar_values)[source]
Return type:

type[BaseModel] | PydanticRecursiveRef

__class_vars__: ClassVar[set[str]] = {}[source]

The names of the class variables defined on the model.

__copy__()[source]

Returns a shallow copy of the model.

Return type:

Self

__deepcopy__(memo=None)[source]

Returns a deep copy of the model.

Return type:

Self

__delattr__(item)[source]

Implement delattr(self, name).

Return type:

Any

__dict__[source]
__eq__(other)[source]

Return self==value.

Return type:

bool

property __fields_set__: set[str][source]
classmethod __get_pydantic_core_schema__(source, handler, /)[source]

Hook into generating the model’s CoreSchema.

Parameters:
  • source (type[BaseModel]) – The class we are generating a schema for. This will generally be the same as the cls argument if this is a classmethod.

  • handler (GetCoreSchemaHandler) – A callable that calls into Pydantic’s internal CoreSchema generation logic.

Return type:

Union[AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]

Returns:

A pydantic-core CoreSchema.

classmethod __get_pydantic_json_schema__(core_schema, handler, /)[source]

Hook into generating the model’s JSON schema.

Parameters:
  • core_schema (Union[AnySchema, NoneSchema, BoolSchema, IntSchema, FloatSchema, DecimalSchema, StringSchema, BytesSchema, DateSchema, TimeSchema, DatetimeSchema, TimedeltaSchema, LiteralSchema, EnumSchema, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TupleSchema, SetSchema, FrozenSetSchema, GeneratorSchema, DictSchema, AfterValidatorFunctionSchema, BeforeValidatorFunctionSchema, WrapValidatorFunctionSchema, PlainValidatorFunctionSchema, WithDefaultSchema, NullableSchema, UnionSchema, TaggedUnionSchema, ChainSchema, LaxOrStrictSchema, JsonOrPythonSchema, TypedDictSchema, ModelFieldsSchema, ModelSchema, DataclassArgsSchema, DataclassSchema, ArgumentsSchema, CallSchema, CustomErrorSchema, JsonSchema, UrlSchema, MultiHostUrlSchema, DefinitionsSchema, DefinitionReferenceSchema, UuidSchema, ComplexSchema]) – A pydantic-core CoreSchema. You can ignore this argument and call the handler with a new CoreSchema, wrap this CoreSchema ({'type': 'nullable', 'schema': current_schema}), or just call the handler with the original schema.

  • handler (GetJsonSchemaHandler) – Call into Pydantic’s internal JSON schema generation. This will raise a pydantic.errors.PydanticInvalidForJsonSchema if JSON schema generation fails. Since this gets called by BaseModel.model_json_schema you can override the schema_generator argument to that function to change JSON schema generation globally for a type.

Return type:

Dict[str, Any]

Returns:

A JSON schema, as a Python object.

__getattr__(item)[source]
Return type:

Any

__getstate__()[source]

Helper for pickle.

Return type:

dict[Any, Any]

__hash__ = None[source]
__init__(**data)[source]

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__iter__()[source]

So dict(model) works.

Return type:

Generator[Tuple[str, Any], None, None]

__module__ = 'kittycad.models.invoice'[source]
__pretty__(fmt, **kwargs)[source]

Used by devtools (https://python-devtools.helpmanual.io/) to pretty print objects.

Return type:

Generator[Any, None, None]

__private_attributes__: ClassVar[Dict[str, ModelPrivateAttr]] = {}[source]

Metadata about the private attributes of the model.

__pydantic_complete__: ClassVar[bool] = True[source]

Whether model building is completed, or if there are still undefined fields.

__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'kittycad.models.invoice.Invoice'>, 'config': {'title': 'Invoice'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.invoice.Invoice'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.invoice.Invoice'>>]}, 'ref': 'kittycad.models.invoice.Invoice:94675541116688', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'amount_due': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'amount_paid': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'amount_remaining': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'attempt_count': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0, 'schema': {'type': 'int'}, 'type': 'default'}, 'type': 'model-field'}, 'attempted': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': False, 'schema': {'type': 'bool'}, 'type': 'default'}, 'type': 'model-field'}, 'created_at': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'microseconds_precision': 'truncate', 'type': 'datetime'}, 'type': 'model-field'}, 'currency': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 'usd', 'schema': {'function': {'function': <class 'kittycad.models.currency.Currency'>, 'type': 'no-info'}, 'schema': {'type': 'str'}, 'type': 'function-after'}, 'type': 'default'}, 'type': 'model-field'}, 'customer_email': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'customer_id': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'default_payment_method': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'description': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'discounts': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'items_schema': {'cls': <class 'kittycad.models.discount.Discount'>, 'config': {'title': 'Discount'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.discount.Discount'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.discount.Discount'>>]}, 'ref': 'kittycad.models.discount.Discount:94675540060240', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'coupon': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'cls': <class 'kittycad.models.coupon.Coupon'>, 'config': {'title': 'Coupon'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.coupon.Coupon'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.coupon.Coupon'>>]}, 'ref': 'kittycad.models.coupon.Coupon:94675525396032', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'amount_off': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'deleted': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': False, 'schema': {'type': 'bool'}, 'type': 'default'}, 'type': 'model-field'}, 'id': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'metadata': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': {}, 'schema': {'keys_schema': {'type': 'str'}, 'type': 'dict', 'values_schema': {'type': 'str'}}, 'type': 'default'}, 'type': 'model-field'}, 'name': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'percent_off': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'float'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'Coupon', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'model-field'}}, 'model_name': 'Discount', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'list'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'id': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'lines': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'items_schema': {'cls': <class 'kittycad.models.invoice_line_item.InvoiceLineItem'>, 'config': {'title': 'InvoiceLineItem'}, 'custom_init': False, 'metadata': {'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.invoice_line_item.InvoiceLineItem'>, title=None), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.invoice_line_item.InvoiceLineItem'>>]}, 'ref': 'kittycad.models.invoice_line_item.InvoiceLineItem:94675541100848', 'root_model': False, 'schema': {'computed_fields': [], 'fields': {'amount': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'currency': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 'usd', 'schema': {'function': {'function': <class 'kittycad.models.currency.Currency'>, 'type': 'no-info'}, 'schema': {'type': 'str'}, 'type': 'function-after'}, 'type': 'default'}, 'type': 'model-field'}, 'description': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'id': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'invoice_item': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'metadata': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': {}, 'schema': {'keys_schema': {'type': 'str'}, 'type': 'dict', 'values_schema': {'type': 'str'}}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'InvoiceLineItem', 'type': 'model-fields'}, 'type': 'model'}, 'type': 'list'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'metadata': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': {}, 'schema': {'keys_schema': {'type': 'str'}, 'type': 'dict', 'values_schema': {'type': 'str'}}, 'type': 'default'}, 'type': 'model-field'}, 'number': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'paid': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': False, 'schema': {'type': 'bool'}, 'type': 'default'}, 'type': 'model-field'}, 'pdf': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'receipt_number': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'statement_descriptor': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'status': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'cls': <enum 'InvoiceStatus'>, 'members': [InvoiceStatus.DRAFT, InvoiceStatus.OPEN, InvoiceStatus.PAID, InvoiceStatus.UNCOLLECTIBLE, InvoiceStatus.VOID], 'metadata': {'pydantic_js_functions': [<function GenerateSchema._enum_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.invoice_status.InvoiceStatus:94675541113696', 'sub_type': 'str', 'type': 'enum'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}, 'subtotal': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'tax': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'total': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': 0.0, 'schema': {'type': 'float'}, 'type': 'default'}, 'type': 'model-field'}, 'url': {'metadata': {'pydantic_js_annotation_functions': [<function get_json_schema_update_func.<locals>.json_schema_update_func>], 'pydantic_js_functions': []}, 'schema': {'default': None, 'schema': {'schema': {'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'Invoice', 'type': 'model-fields'}, 'type': 'model'}[source]

The core schema of the model.

__pydantic_custom_init__: ClassVar[bool] = False[source]

Whether the model has a custom __init__ method.

__pydantic_decorators__: ClassVar[_decorators.DecoratorInfos] = DecoratorInfos(validators={}, field_validators={}, root_validators={}, field_serializers={}, model_serializers={}, model_validators={}, computed_fields={})[source]

Metadata containing the decorators defined on the model. This replaces Model.__validators__ and Model.__root_validators__ from Pydantic V1.

__pydantic_extra__: dict[str, Any] | None[source]

A dictionary containing extra values, if [extra][pydantic.config.ConfigDict.extra] is set to 'allow'.

__pydantic_fields_set__: set[str][source]

The names of fields explicitly set during instantiation.

__pydantic_generic_metadata__: ClassVar[_generics.PydanticGenericMetadata] = {'args': (), 'origin': None, 'parameters': ()}[source]

Metadata for generic models; contains data used for a similar purpose to __args__, __origin__, __parameters__ in typing-module generics. May eventually be replaced by these.

classmethod __pydantic_init_subclass__(**kwargs)[source]

This is intended to behave just like __init_subclass__, but is called by ModelMetaclass only after the class is actually fully initialized. In particular, attributes like model_fields will be present when this is called.

This is necessary because __init_subclass__ will always be called by type.__new__, and it would require a prohibitively large refactor to the ModelMetaclass to ensure that type.__new__ was called in such a manner that the class would already be sufficiently initialized.

This will receive the same kwargs that would be passed to the standard __init_subclass__, namely, any kwargs passed to the class definition that aren’t used internally by pydantic.

Parameters:

**kwargs (Any) – Any keyword arguments passed to the class definition that aren’t used internally by pydantic.

Return type:

None

__pydantic_parent_namespace__: ClassVar[Dict[str, Any] | None] = None[source]

Parent namespace of the model, used for automatic rebuilding of models.

__pydantic_post_init__: ClassVar[None | Literal['model_post_init']] = None[source]

The name of the post-init method for the model, if defined.

__pydantic_private__: dict[str, Any] | None[source]

Values of private attributes set on the model instance.

__pydantic_root_model__: ClassVar[bool] = False[source]

Whether the model is a [RootModel][pydantic.root_model.RootModel].

__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x0000561b5dff4710,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "statement_descriptor": SerField {                         key_py: Py(                             0x00007f1780f322b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_remaining": SerField {                         key_py: Py(                             0x00007f1780f30070,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_paid": SerField {                         key_py: Py(                             0x00007f178111ffb0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "description": SerField {                         key_py: Py(                             0x00007f1784bf86f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "customer_email": SerField {                         key_py: Py(                             0x00007f1780f30130,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "receipt_number": SerField {                         key_py: Py(                             0x00007f1780f32230,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "status": SerField {                         key_py: Py(                             0x00007f1785a3bd50,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Enum(                                                 EnumSerializer {                                                     class: Py(                                                         0x0000561b5dff3b60,                                                     ),                                                     serializer: Some(                                                         Str(                                                             StrSerializer,                                                         ),                                                     ),                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "tax": SerField {                         key_py: Py(                             0x00007f1781106be0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "customer_id": SerField {                         key_py: Py(                             0x00007f1780f300f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "currency": SerField {                         key_py: Py(                             0x00007f1784afd270,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17844757a0,                                         ),                                     ),                                     serializer: Str(                                         StrSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "created_at": SerField {                         key_py: Py(                             0x00007f17811c1670,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Datetime(                                 DatetimeSerializer,                             ),                         ),                         required: true,                     },                     "metadata": SerField {                         key_py: Py(                             0x00007f1785a3a0b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1780f336c0,                                         ),                                     ),                                     serializer: Dict(                                         DictSerializer {                                             key_serializer: Str(                                                 StrSerializer,                                             ),                                             value_serializer: Str(                                                 StrSerializer,                                             ),                                             filter: SchemaFilter {                                                 include: None,                                                 exclude: None,                                             },                                             name: "dict[str, str]",                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "lines": SerField {                         key_py: Py(                             0x00007f17859d9240,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: List(                                                 ListSerializer {                                                     item_serializer: Model(                                                         ModelSerializer {                                                             class: Py(                                                                 0x0000561b5dff0930,                                                             ),                                                             serializer: Fields(                                                                 GeneralFieldsSerializer {                                                                     fields: {                                                                         "description": SerField {                                                                             key_py: Py(                                                                                 0x00007f1784bf86f0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f1785947100,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "invoice_item": SerField {                                                                             key_py: Py(                                                                                 0x00007f1780f32df0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f1785947100,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "metadata": SerField {                                                                             key_py: Py(                                                                                 0x00007f1785a3a0b0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f178111d600,                                                                                             ),                                                                                         ),                                                                                         serializer: Dict(                                                                                             DictSerializer {                                                                                                 key_serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                                 value_serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                                 filter: SchemaFilter {                                                                                                     include: None,                                                                                                     exclude: None,                                                                                                 },                                                                                                 name: "dict[str, str]",                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "id": SerField {                                                                             key_py: Py(                                                                                 0x00007f1785a390f0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f1785947100,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "amount": SerField {                                                                             key_py: Py(                                                                                 0x00007f1784af8690,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f1781f304f0,                                                                                             ),                                                                                         ),                                                                                         serializer: Float(                                                                                             FloatSerializer {                                                                                                 inf_nan_mode: Null,                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "currency": SerField {                                                                             key_py: Py(                                                                                 0x00007f1784afd270,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007f17844757a0,                                                                                             ),                                                                                         ),                                                                                         serializer: Str(                                                                                             StrSerializer,                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                     },                                                                     computed_fields: Some(                                                                         ComputedFields(                                                                             [],                                                                         ),                                                                     ),                                                                     mode: SimpleDict,                                                                     extra_serializer: None,                                                                     filter: SchemaFilter {                                                                         include: None,                                                                         exclude: None,                                                                     },                                                                     required_fields: 6,                                                                 },                                                             ),                                                             has_extra: false,                                                             root_model: false,                                                             name: "InvoiceLineItem",                                                         },                                                     ),                                                     filter: SchemaFilter {                                                         include: None,                                                         exclude: None,                                                     },                                                     name: "list[InvoiceLineItem]",                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "discounts": SerField {                         key_py: Py(                             0x00007f1780f321f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: List(                                                 ListSerializer {                                                     item_serializer: Model(                                                         ModelSerializer {                                                             class: Py(                                                                 0x0000561b5def2850,                                                             ),                                                             serializer: Fields(                                                                 GeneralFieldsSerializer {                                                                     fields: {                                                                         "coupon": SerField {                                                                             key_py: Py(                                                                                 0x00007f17821871b0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 Model(                                                                                     ModelSerializer {                                                                                         class: Py(                                                                                             0x0000561b5d0f6640,                                                                                         ),                                                                                         serializer: Fields(                                                                                             GeneralFieldsSerializer {                                                                                                 fields: {                                                                                                     "id": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f1785a390f0,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f1785947100,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Str(                                                                                                                                 StrSerializer,                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "name": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f1785a3a388,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f1785947100,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Str(                                                                                                                                 StrSerializer,                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "percent_off": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f1781243330,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f1785947100,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Float(                                                                                                                                 FloatSerializer {                                                                                                                                     inf_nan_mode: Null,                                                                                                                                 },                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "amount_off": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f1781240830,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f1785947100,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Float(                                                                                                                                 FloatSerializer {                                                                                                                                     inf_nan_mode: Null,                                                                                                                                 },                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "deleted": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f178254e730,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f1785930d20,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Bool(                                                                                                                         BoolSerializer,                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "metadata": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007f1785a3a0b0,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007f17812aca00,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Dict(                                                                                                                         DictSerializer {                                                                                                                             key_serializer: Str(                                                                                                                                 StrSerializer,                                                                                                                             ),                                                                                                                             value_serializer: Str(                                                                                                                                 StrSerializer,                                                                                                                             ),                                                                                                                             filter: SchemaFilter {                                                                                                                                 include: None,                                                                                                                                 exclude: None,                                                                                                                             },                                                                                                                             name: "dict[str, str]",                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                 },                                                                                                 computed_fields: Some(                                                                                                     ComputedFields(                                                                                                         [],                                                                                                     ),                                                                                                 ),                                                                                                 mode: SimpleDict,                                                                                                 extra_serializer: None,                                                                                                 filter: SchemaFilter {                                                                                                     include: None,                                                                                                     exclude: None,                                                                                                 },                                                                                                 required_fields: 6,                                                                                             },                                                                                         ),                                                                                         has_extra: false,                                                                                         root_model: false,                                                                                         name: "Coupon",                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                     },                                                                     computed_fields: Some(                                                                         ComputedFields(                                                                             [],                                                                         ),                                                                     ),                                                                     mode: SimpleDict,                                                                     extra_serializer: None,                                                                     filter: SchemaFilter {                                                                         include: None,                                                                         exclude: None,                                                                     },                                                                     required_fields: 1,                                                                 },                                                             ),                                                             has_extra: false,                                                             root_model: false,                                                             name: "Discount",                                                         },                                                     ),                                                     filter: SchemaFilter {                                                         include: None,                                                         exclude: None,                                                     },                                                     name: "list[Discount]",                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "paid": SerField {                         key_py: Py(                             0x00007f17811067c0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785930d20,                                         ),                                     ),                                     serializer: Bool(                                         BoolSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "pdf": SerField {                         key_py: Py(                             0x00007f17839dd740,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "subtotal": SerField {                         key_py: Py(                             0x00007f1780f322f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "total": SerField {                         key_py: Py(                             0x00007f1784b66610,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_due": SerField {                         key_py: Py(                             0x00007f178111ff70,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f17811c7dd0,                                         ),                                     ),                                     serializer: Float(                                         FloatSerializer {                                             inf_nan_mode: Null,                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "url": SerField {                         key_py: Py(                             0x00007f178487d500,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "attempt_count": SerField {                         key_py: Py(                             0x00007f1780f300b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785a2e848,                                         ),                                     ),                                     serializer: Int(                                         IntSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "default_payment_method": SerField {                         key_py: Py(                             0x00007f1780f301b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "id": SerField {                         key_py: Py(                             0x00007f1785a390f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "attempted": SerField {                         key_py: Py(                             0x00007f1782361fb0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785930d20,                                         ),                                     ),                                     serializer: Bool(                                         BoolSerializer,                                     ),                                 },                             ),                         ),                         required: true,                     },                     "number": SerField {                         key_py: Py(                             0x00007f1785a3a730,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007f1785947100,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                 },                 computed_fields: Some(                     ComputedFields(                         [],                     ),                 ),                 mode: SimpleDict,                 extra_serializer: None,                 filter: SchemaFilter {                     include: None,                     exclude: None,                 },                 required_fields: 25,             },         ),         has_extra: false,         root_model: false,         name: "Invoice",     }, ), definitions=[])[source]

The pydantic-core SchemaSerializer used to dump instances of the model.

__pydantic_validator__: ClassVar[SchemaValidator | PluggableSchemaValidator] = SchemaValidator(title="Invoice", validator=Model(     ModelValidator {         revalidate: Never,         validator: ModelFields(             ModelFieldsValidator {                 fields: [                     Field {                         name: "amount_due",                         lookup_key: Simple {                             key: "amount_due",                             py_key: Py(                                 0x00007f1781094a70,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_due",                                         Py(                                             0x00007f17810646f0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f178111ff70,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f17811c7dd0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Float(                                     FloatValidator {                                         strict: false,                                         allow_inf_nan: true,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[float]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "amount_paid",                         lookup_key: Simple {                             key: "amount_paid",                             py_key: Py(                                 0x00007f1780f30ef0,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_paid",                                         Py(                                             0x00007f1780f30fb0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f178111ffb0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f17811c7dd0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Float(                                     FloatValidator {                                         strict: false,                                         allow_inf_nan: true,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[float]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "amount_remaining",                         lookup_key: Simple {                             key: "amount_remaining",                             py_key: Py(                                 0x00007f1780f4d4b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_remaining",                                         Py(                                             0x00007f1780f4d430,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f30070,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f17811c7dd0,                                     ),                                 ),                                 on_error: Raise,                                 validator: Float(                                     FloatValidator {                                         strict: false,                                         allow_inf_nan: true,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[float]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "attempt_count",                         lookup_key: Simple {                             key: "attempt_count",                             py_key: Py(                                 0x00007f1780f4d4f0,                             ),                             path: LookupPath(                                 [                                     S(                                         "attempt_count",                                         Py(                                             0x00007f1780f4d6f0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f300b0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785a2e848,                                     ),                                 ),                                 on_error: Raise,                                 validator: Int(                                     IntValidator {                                         strict: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[int]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "attempted",                         lookup_key: Simple {                             key: "attempted",                             py_key: Py(                                 0x00007f1780f4d470,                             ),                             path: LookupPath(                                 [                                     S(                                         "attempted",                                         Py(                                             0x00007f1780f4d370,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1782361fb0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785930d20,                                     ),                                 ),                                 on_error: Raise,                                 validator: Bool(                                     BoolValidator {                                         strict: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[bool]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "created_at",                         lookup_key: Simple {                             key: "created_at",                             py_key: Py(                                 0x00007f1780f4d670,                             ),                             path: LookupPath(                                 [                                     S(                                         "created_at",                                         Py(                                             0x00007f1780f4d070,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f17811c1670,                         ),                         validator: Datetime(                             DateTimeValidator {                                 strict: false,                                 constraints: None,                                 microseconds_precision: Truncate,                             },                         ),                         frozen: false,                     },                     Field {                         name: "currency",                         lookup_key: Simple {                             key: "currency",                             py_key: Py(                                 0x00007f1780f4cf70,                             ),                             path: LookupPath(                                 [                                     S(                                         "currency",                                         Py(                                             0x00007f1780f4d270,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1784afd270,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f17844757a0,                                     ),                                 ),                                 on_error: Raise,                                 validator: FunctionAfter(                                     FunctionAfterValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         func: Py(                                             0x0000561b5d12b2b0,                                         ),                                         config: Py(                                             0x00007f1780f58780,                                         ),                                         name: "function-after[Currency(), str]",                                         field_name: None,                                         info_arg: false,                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[function-after[Currency(), str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "customer_email",                         lookup_key: Simple {                             key: "customer_email",                             py_key: Py(                                 0x00007f1780f4d3f0,                             ),                             path: LookupPath(                                 [                                     S(                                         "customer_email",                                         Py(                                             0x00007f1780f4d530,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f30130,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         name: "nullable[str]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "customer_id",                         lookup_key: Simple {                             key: "customer_id",                             py_key: Py(                                 0x00007f1780f4d2f0,                             ),                             path: LookupPath(                                 [                                     S(                                         "customer_id",                                         Py(                                             0x00007f1780f4d2b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f300f0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         name: "nullable[str]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "default_payment_method",                         lookup_key: Simple {                             key: "default_payment_method",                             py_key: Py(                                 0x00007f1780f4d230,                             ),                             path: LookupPath(                                 [                                     S(                                         "default_payment_method",                                         Py(                                             0x00007f1780f4d0f0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f301b0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         name: "nullable[str]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "description",                         lookup_key: Simple {                             key: "description",                             py_key: Py(                                 0x00007f1780f4d5f0,                             ),                             path: LookupPath(                                 [                                     S(                                         "description",                                         Py(                                             0x00007f1780f4d330,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1784bf86f0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         name: "nullable[str]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "discounts",                         lookup_key: Simple {                             key: "discounts",                             py_key: Py(                                 0x00007f1780f4cff0,                             ),                             path: LookupPath(                                 [                                     S(                                         "discounts",                                         Py(                                             0x00007f1780f4d1b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1780f321f0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: List(                                             ListValidator {                                                 strict: false,                                                 item_validator: Some(                                                     Model(                                                         ModelValidator {                                                             revalidate: Never,                                                             validator: ModelFields(                                                                 ModelFieldsValidator {                                                                     fields: [                                                                         Field {                                                                             name: "coupon",                                                                             lookup_key: Simple {                                                                                 key: "coupon",                                                                                 py_key: Py(                                                                                     0x00007f1781105980,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "coupon",                                                                                             Py(                                                                                                 0x00007f1781105950,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007f17821871b0,                                                                             ),                                                                             validator: Model(                                                                                 ModelValidator {                                                                                     revalidate: Never,                                                                                     validator: ModelFields(                                                                                         ModelFieldsValidator {                                                                                             fields: [                                                                                                 Field {                                                                                                     name: "amount_off",                                                                                                     lookup_key: Simple {                                                                                                         key: "amount_off",                                                                                                         py_key: Py(                                                                                                             0x00007f1780f4cef0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "amount_off",                                                                                                                     Py(                                                                                                                         0x00007f1780f4d1f0,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f1781240830,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f1785947100,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Nullable(                                                                                                                 NullableValidator {                                                                                                                     validator: Float(                                                                                                                         FloatValidator {                                                                                                                             strict: false,                                                                                                                             allow_inf_nan: true,                                                                                                                         },                                                                                                                     ),                                                                                                                     name: "nullable[float]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[nullable[float]]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "deleted",                                                                                                     lookup_key: Simple {                                                                                                         key: "deleted",                                                                                                         py_key: Py(                                                                                                             0x00007f1781105fe0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "deleted",                                                                                                                     Py(                                                                                                                         0x00007f1781105f20,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f178254e730,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f1785930d20,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Bool(                                                                                                                 BoolValidator {                                                                                                                     strict: false,                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[bool]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "id",                                                                                                     lookup_key: Simple {                                                                                                         key: "id",                                                                                                         py_key: Py(                                                                                                             0x00007f17811059e0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "id",                                                                                                                     Py(                                                                                                                         0x00007f1781105d70,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f1785a390f0,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f1785947100,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Nullable(                                                                                                                 NullableValidator {                                                                                                                     validator: Str(                                                                                                                         StrValidator {                                                                                                                             strict: false,                                                                                                                             coerce_numbers_to_str: false,                                                                                                                         },                                                                                                                     ),                                                                                                                     name: "nullable[str]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[nullable[str]]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "metadata",                                                                                                     lookup_key: Simple {                                                                                                         key: "metadata",                                                                                                         py_key: Py(                                                                                                             0x00007f1780f4d3b0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "metadata",                                                                                                                     Py(                                                                                                                         0x00007f1780f4d130,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f1785a3a0b0,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f17812aca00,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Dict(                                                                                                                 DictValidator {                                                                                                                     strict: false,                                                                                                                     key_validator: Str(                                                                                                                         StrValidator {                                                                                                                             strict: false,                                                                                                                             coerce_numbers_to_str: false,                                                                                                                         },                                                                                                                     ),                                                                                                                     value_validator: Str(                                                                                                                         StrValidator {                                                                                                                             strict: false,                                                                                                                             coerce_numbers_to_str: false,                                                                                                                         },                                                                                                                     ),                                                                                                                     min_length: None,                                                                                                                     max_length: None,                                                                                                                     name: "dict[str,str]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: true,                                                                                                             name: "default[dict[str,str]]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "name",                                                                                                     lookup_key: Simple {                                                                                                         key: "name",                                                                                                         py_key: Py(                                                                                                             0x00007f1781105ad0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "name",                                                                                                                     Py(                                                                                                                         0x00007f17811068b0,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f1785a3a388,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f1785947100,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Nullable(                                                                                                                 NullableValidator {                                                                                                                     validator: Str(                                                                                                                         StrValidator {                                                                                                                             strict: false,                                                                                                                             coerce_numbers_to_str: false,                                                                                                                         },                                                                                                                     ),                                                                                                                     name: "nullable[str]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[nullable[str]]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "percent_off",                                                                                                     lookup_key: Simple {                                                                                                         key: "percent_off",                                                                                                         py_key: Py(                                                                                                             0x00007f1780f4cf30,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "percent_off",                                                                                                                     Py(                                                                                                                         0x00007f1780f4d170,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007f1781243330,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007f1785947100,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Nullable(                                                                                                                 NullableValidator {                                                                                                                     validator: Float(                                                                                                                         FloatValidator {                                                                                                                             strict: false,                                                                                                                             allow_inf_nan: true,                                                                                                                         },                                                                                                                     ),                                                                                                                     name: "nullable[float]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[nullable[float]]",                                                                                                             undefined: Py(                                                                                                                 0x00007f1783902350,                                                                                                             ),                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                             ],                                                                                             model_name: "Coupon",                                                                                             extra_behavior: Ignore,                                                                                             extras_validator: None,                                                                                             strict: false,                                                                                             from_attributes: false,                                                                                             loc_by_alias: true,                                                                                         },                                                                                     ),                                                                                     class: Py(                                                                                         0x0000561b5d0f6640,                                                                                     ),                                                                                     post_init: None,                                                                                     frozen: false,                                                                                     custom_init: false,                                                                                     root_model: false,                                                                                     undefined: Py(                                                                                         0x00007f1783902350,                                                                                     ),                                                                                     name: "Coupon",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                     ],                                                                     model_name: "Discount",                                                                     extra_behavior: Ignore,                                                                     extras_validator: None,                                                                     strict: false,                                                                     from_attributes: false,                                                                     loc_by_alias: true,                                                                 },                                                             ),                                                             class: Py(                                                                 0x0000561b5def2850,                                                             ),                                                             post_init: None,                                                             frozen: false,                                                             custom_init: false,                                                             root_model: false,                                                             undefined: Py(                                                                 0x00007f1783902350,                                                             ),                                                             name: "Discount",                                                         },                                                     ),                                                 ),                                                 min_length: None,                                                 max_length: None,                                                 name: OnceLock(                                                     "list[Discount]",                                                 ),                                                 fail_fast: false,                                             },                                         ),                                         name: "nullable[list[Discount]]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[list[Discount]]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "id",                         lookup_key: Simple {                             key: "id",                             py_key: Py(                                 0x00007f17811059b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "id",                                         Py(                                             0x00007f1781104c60,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f1785a390f0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Str(                                             StrValidator {                                                 strict: false,                                                 coerce_numbers_to_str: false,                                             },                                         ),                                         name: "nullable[str]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[str]]",                                 undefined: Py(                                     0x00007f1783902350,                                 ),                             },                         ),                         frozen: false,                     },                     Field {                         name: "lines",                         lookup_key: Simple {                             key: "lines",                             py_key: Py(                                 0x00007f17811050b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "lines",                                         Py(                                             0x00007f1781104e70,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007f17859d9240,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007f1785947100,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: List(                                             ListValidator {                                                 strict: false,                                                 item_validator: Some(                                                     Model(                                                         ModelValidator {                                                             revalidate: Never,                                                             validator: ModelFields(                                                                 ModelFieldsValidator {                                                                     fields: [                                                                         Field {                                                                             name: "amount",                                                                             lookup_key: Simple {                                                                                 key: "amount",                                                                                 py_key: Py(                                                                                     0x00007f1781104ba0,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "amount",                                                                                             Py(                                                                                                 0x00007f1781105110,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007f1784af8690,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007f1781f304f0,                                                                                         ),                                                                                     ),                                                                                     on_error: Raise,                                                                                     validator: Float(                                                                                         FloatValidator {                                                                                             strict: false,                                                                                             allow_inf_nan: true,                                                                                         },                                                                                     ),                                                                                     validate_default: false,                                                                                     copy_default: false,                                                                                     name: "default[float]",                                                                                     undefined: Py(                                                                                         0x00007f1783902350,                                                                                     ),                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                         Field {                                                                             name: "currency",                                                                             lookup_key: Simple {                                                                                 key: "currency",                                                                                 py_key: Py(                                                                                     0x00007f1780f4d0b0,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "currency",                                                                                             Py(                                                                                                 0x00007f1780f4d030,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007f1784afd270,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007f17844757a0,                                                                                         ),                                                                                     ),                                                                                     on_error: Raise,                                                                                     validator: FunctionAfter(                                                                                         FunctionAfterValidator {                                                                                             validator: Str(                                                                                                 StrValidator {                                                                                                     strict: false,                                                                                                     coerce_numbers_to_str: false,                                                                                                 },