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.

__init__ uses __pydantic_self__ instead of the more common self for the first arg 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]', '__signature__': 'ClassVar[Signature]', 'amount_due': typing.Optional[float], 'amount_paid': typing.Optional[float], 'amount_remaining': typing.Optional[float], 'attempt_count': typing.Optional[int], 'attempted': typing.Optional[bool], 'created_at': <class 'datetime.datetime'>, 'currency': typing.Optional[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.Optional[typing.Dict[str, str]], 'model_config': 'ClassVar[ConfigDict]', 'model_fields': 'ClassVar[dict[str, FieldInfo]]', 'number': typing.Optional[str], 'paid': typing.Optional[bool], 'pdf': typing.Optional[str], 'receipt_number': typing.Optional[str], 'statement_descriptor': typing.Optional[str], 'status': typing.Optional[kittycad.models.invoice_status.InvoiceStatus], 'subtotal': typing.Optional[float], 'tax': typing.Optional[float], 'total': typing.Optional[float], 'url': typing.Optional[str]}[source]
classmethod __class_getitem__(typevar_values)[source]
__class_vars__: ClassVar[set[str]] = {}[source]
__copy__()[source]

Returns a shallow copy of the model.

Return type:

Model

__deepcopy__(memo=None)[source]

Returns a deep copy of the model.

Return type:

Model

__delattr__(item)[source]

Implement delattr(self, name).

Return type:

Any

__dict__[source]
__eq__(other)[source]

Return self==value.

Return type:

bool

__fields__ = {'amount_due': FieldInfo(annotation=Union[float, NoneType], required=False), 'amount_paid': FieldInfo(annotation=Union[float, NoneType], required=False), 'amount_remaining': FieldInfo(annotation=Union[float, NoneType], required=False), 'attempt_count': FieldInfo(annotation=Union[int, NoneType], required=False), 'attempted': FieldInfo(annotation=Union[bool, NoneType], required=False), 'created_at': FieldInfo(annotation=datetime, required=True), 'currency': FieldInfo(annotation=Union[Currency, NoneType], required=False), 'customer_email': FieldInfo(annotation=Union[str, NoneType], required=False), 'customer_id': FieldInfo(annotation=Union[str, NoneType], required=False), 'default_payment_method': FieldInfo(annotation=Union[str, NoneType], required=False), 'description': FieldInfo(annotation=Union[str, NoneType], required=False), 'discounts': FieldInfo(annotation=Union[List[kittycad.models.discount.Discount], NoneType], required=False), 'id': FieldInfo(annotation=Union[str, NoneType], required=False), 'lines': FieldInfo(annotation=Union[List[kittycad.models.invoice_line_item.InvoiceLineItem], NoneType], required=False), 'metadata': FieldInfo(annotation=Union[Dict[str, str], NoneType], required=False), 'number': FieldInfo(annotation=Union[str, NoneType], required=False), 'paid': FieldInfo(annotation=Union[bool, NoneType], required=False), 'pdf': FieldInfo(annotation=Union[str, NoneType], required=False), 'receipt_number': FieldInfo(annotation=Union[str, NoneType], required=False), 'statement_descriptor': FieldInfo(annotation=Union[str, NoneType], required=False), 'status': FieldInfo(annotation=Union[InvoiceStatus, NoneType], required=False), 'subtotal': FieldInfo(annotation=Union[float, NoneType], required=False), 'tax': FieldInfo(annotation=Union[float, NoneType], required=False), 'total': FieldInfo(annotation=Union[float, NoneType], required=False), 'url': FieldInfo(annotation=Union[str, NoneType], required=False)}[source]
property __fields_set__: set[str][source]
classmethod __get_pydantic_core_schema__(_BaseModel__source, _BaseModel__handler)[source]

Hook into generating the model’s CoreSchema.

Parameters:
  • __source – The class we are generating a schema for. This will generally be the same as the cls argument if this is a classmethod.

  • __handler – Call into Pydantic’s internal JSON schema generation. 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, IsInstanceSchema, IsSubclassSchema, CallableSchema, ListSchema, TuplePositionalSchema, TupleVariableSchema, 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]

Returns:

A pydantic-core CoreSchema.

classmethod __get_pydantic_json_schema__(_BaseModel__core_schema, _BaseModel__handler)[source]

Hook into generating the model’s JSON schema.

Parameters:
  • __core_schema – 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 – 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]
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.

__init__ uses __pydantic_self__ instead of the more common self for the first arg to allow self as a field name.

__iter__()[source]

So dict(model) works.

Return type:

TupleGenerator

__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]
__pydantic_complete__: ClassVar[bool] = True[source]
__pydantic_core_schema__: ClassVar[CoreSchema] = {'cls': <class 'kittycad.models.invoice.Invoice'>, 'config': {'title': 'Invoice'}, 'custom_init': False, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False, 'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.invoice.Invoice'>), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.invoice.Invoice'>>]}, 'ref': 'kittycad.models.invoice.Invoice:93825018112880', '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'int'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'bool'}, 'type': 'nullable'}, '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': {'metadata': {'pydantic_js_annotation_functions': [<bound method InnerSchemaValidator.__get_pydantic_json_schema__ of InnerSchemaValidator(core_schema={'type': 'datetime', 'microseconds_precision': 'truncate', 'metadata': {'pydantic_js_annotation_functions': [...]}}, js_schema=None, js_core_schema=None, js_schema_update=None)>]}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'function': {'function': <class 'kittycad.models.currency.Currency'>, 'type': 'no-info'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}, 'type': 'function-after'}, 'type': 'nullable'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'items_schema': {'cls': <class 'kittycad.models.discount.Discount'>, 'config': {'title': 'Discount'}, 'custom_init': False, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False, 'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.discount.Discount'>), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.discount.Discount'>>]}, 'ref': 'kittycad.models.discount.Discount:93825017313776', '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.internal.needs_apply_discriminated_union': False, 'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.coupon.Coupon'>), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.coupon.Coupon'>>]}, 'ref': 'kittycad.models.coupon.Coupon:93825016917632', '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'bool'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'strict': False, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'items_schema': {'cls': <class 'kittycad.models.invoice_line_item.InvoiceLineItem'>, 'config': {'title': 'InvoiceLineItem'}, 'custom_init': False, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False, 'pydantic_js_annotation_functions': [], 'pydantic_js_functions': [functools.partial(<function modify_model_json_schema>, cls=<class 'kittycad.models.invoice_line_item.InvoiceLineItem'>), <bound method BaseModel.__get_pydantic_json_schema__ of <class 'kittycad.models.invoice_line_item.InvoiceLineItem'>>]}, 'ref': 'kittycad.models.invoice_line_item.InvoiceLineItem:93825018082208', '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'function': {'function': <class 'kittycad.models.currency.Currency'>, 'type': 'no-info'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}, 'type': 'function-after'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'keys_schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'strict': False, 'type': 'dict', 'values_schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'InvoiceLineItem', 'type': 'model-fields'}, 'type': 'model'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'strict': False, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'keys_schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'strict': False, 'type': 'dict', 'values_schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}}, 'type': 'nullable'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'bool'}, 'type': 'nullable'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'lax_schema': {'steps': [{'type': 'str'}, {'type': 'function-plain', 'function': {'type': 'no-info', 'function': <function get_enum_core_schema.<locals>.to_enum>}}], 'type': 'chain'}, 'metadata': {'pydantic.internal.needs_apply_discriminated_union': False, 'pydantic_js_functions': [<function get_enum_core_schema.<locals>.get_json_schema>]}, 'ref': 'kittycad.models.invoice_status.InvoiceStatus:93825018107600', 'strict_schema': {'json_schema': {'function': {'function': <function get_enum_core_schema.<locals>.to_enum>, 'type': 'no-info'}, 'schema': {'type': 'str'}, 'type': 'function-after'}, 'python_schema': {'cls': <enum 'InvoiceStatus'>, 'type': 'is-instance'}, 'type': 'json-or-python'}, 'type': 'lax-or-strict'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': None, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'float'}, 'type': 'nullable'}, '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': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'schema': {'metadata': {'pydantic.internal.needs_apply_discriminated_union': False}, 'type': 'str'}, 'type': 'nullable'}, 'type': 'default'}, 'type': 'model-field'}}, 'model_name': 'Invoice', 'type': 'model-fields'}, 'type': 'model'}[source]
__pydantic_custom_init__: ClassVar[bool] = False[source]
__pydantic_decorators__: ClassVar[_decorators.DecoratorInfos] = DecoratorInfos(validators={}, field_validators={}, root_validators={}, field_serializers={}, model_serializers={}, model_validators={}, computed_fields={})[source]
__pydantic_extra__: dict[str, Any] | None[source]
__pydantic_fields_set__: set[str][source]
__pydantic_generic_metadata__: ClassVar[_generics.PydanticGenericMetadata] = {'args': (), 'origin': None, 'parameters': ()}[source]
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] = {'BaseModel': <pydantic._internal._model_construction._PydanticWeakRef object>, 'Currency': <pydantic._internal._model_construction._PydanticWeakRef object>, 'Dict': <pydantic._internal._model_construction._PydanticWeakRef object>, 'Discount': <pydantic._internal._model_construction._PydanticWeakRef object>, 'InvoiceLineItem': <pydantic._internal._model_construction._PydanticWeakRef object>, 'InvoiceStatus': <pydantic._internal._model_construction._PydanticWeakRef object>, 'List': <pydantic._internal._model_construction._PydanticWeakRef object>, 'Optional': <pydantic._internal._model_construction._PydanticWeakRef object>, '__builtins__': {'ArithmeticError': <class 'ArithmeticError'>, 'AssertionError': <class 'AssertionError'>, 'AttributeError': <class 'AttributeError'>, 'BaseException': <class 'BaseException'>, 'BlockingIOError': <class 'BlockingIOError'>, 'BrokenPipeError': <class 'BrokenPipeError'>, 'BufferError': <class 'BufferError'>, 'BytesWarning': <class 'BytesWarning'>, 'ChildProcessError': <class 'ChildProcessError'>, 'ConnectionAbortedError': <class 'ConnectionAbortedError'>, 'ConnectionError': <class 'ConnectionError'>, 'ConnectionRefusedError': <class 'ConnectionRefusedError'>, 'ConnectionResetError': <class 'ConnectionResetError'>, 'DeprecationWarning': <class 'DeprecationWarning'>, 'EOFError': <class 'EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class 'OSError'>, 'Exception': <class 'Exception'>, 'False': False, 'FileExistsError': <class 'FileExistsError'>, 'FileNotFoundError': <class 'FileNotFoundError'>, 'FloatingPointError': <class 'FloatingPointError'>, 'FutureWarning': <class 'FutureWarning'>, 'GeneratorExit': <class 'GeneratorExit'>, 'IOError': <class 'OSError'>, 'ImportError': <class 'ImportError'>, 'ImportWarning': <class 'ImportWarning'>, 'IndentationError': <class 'IndentationError'>, 'IndexError': <class 'IndexError'>, 'InterruptedError': <class 'InterruptedError'>, 'IsADirectoryError': <class 'IsADirectoryError'>, 'KeyError': <class 'KeyError'>, 'KeyboardInterrupt': <class 'KeyboardInterrupt'>, 'LookupError': <class 'LookupError'>, 'MemoryError': <class 'MemoryError'>, 'ModuleNotFoundError': <class 'ModuleNotFoundError'>, 'NameError': <class 'NameError'>, 'None': None, 'NotADirectoryError': <class 'NotADirectoryError'>, 'NotImplemented': NotImplemented, 'NotImplementedError': <class 'NotImplementedError'>, 'OSError': <class 'OSError'>, 'OverflowError': <class 'OverflowError'>, 'PendingDeprecationWarning': <class 'PendingDeprecationWarning'>, 'PermissionError': <class 'PermissionError'>, 'ProcessLookupError': <class 'ProcessLookupError'>, 'RecursionError': <class 'RecursionError'>, 'ReferenceError': <class 'ReferenceError'>, 'ResourceWarning': <class 'ResourceWarning'>, 'RuntimeError': <class 'RuntimeError'>, 'RuntimeWarning': <class 'RuntimeWarning'>, 'StopAsyncIteration': <class 'StopAsyncIteration'>, 'StopIteration': <class 'StopIteration'>, 'SyntaxError': <class 'SyntaxError'>, 'SyntaxWarning': <class 'SyntaxWarning'>, 'SystemError': <class 'SystemError'>, 'SystemExit': <class 'SystemExit'>, 'TabError': <class 'TabError'>, 'TimeoutError': <class 'TimeoutError'>, 'True': True, 'TypeError': <class 'TypeError'>, 'UnboundLocalError': <class 'UnboundLocalError'>, 'UnicodeDecodeError': <class 'UnicodeDecodeError'>, 'UnicodeEncodeError': <class 'UnicodeEncodeError'>, 'UnicodeError': <class 'UnicodeError'>, 'UnicodeTranslateError': <class 'UnicodeTranslateError'>, 'UnicodeWarning': <class 'UnicodeWarning'>, 'UserWarning': <class 'UserWarning'>, 'ValueError': <class 'ValueError'>, 'Warning': <class 'Warning'>, 'ZeroDivisionError': <class 'ZeroDivisionError'>, '__build_class__': <built-in function __build_class__>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__loader__': <class '_frozen_importlib.BuiltinImporter'>, '__name__': 'builtins', '__package__': '', '__spec__': ModuleSpec(name='builtins', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in'), 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'ascii': <built-in function ascii>, 'bin': <built-in function bin>, 'bool': <class 'bool'>, 'breakpoint': <built-in function breakpoint>, 'bytearray': <class 'bytearray'>, 'bytes': <class 'bytes'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <class 'classmethod'>, 'compile': <built-in function compile>, 'complex': <class 'complex'>, 'copyright': Copyright (c) 2001-2023 Python Software Foundation. All Rights Reserved.  Copyright (c) 2000 BeOpen.com. All Rights Reserved.  Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved.  Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands     for supporting Python development.  See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <class 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <class 'enumerate'>, 'eval': <built-in function eval>, 'exec': <built-in function exec>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'filter': <class 'filter'>, 'float': <class 'float'>, 'format': <built-in function format>, 'frozenset': <class 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <class 'int'>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <class 'list'>, 'locals': <built-in function locals>, 'map': <class 'map'>, 'max': <built-in function max>, 'memoryview': <class 'memoryview'>, 'min': <built-in function min>, 'next': <built-in function next>, 'object': <class 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'print': <built-in function print>, 'property': <class 'property'>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'range': <class 'range'>, 'repr': <built-in function repr>, 'reversed': <class 'reversed'>, 'round': <built-in function round>, 'set': <class 'set'>, 'setattr': <built-in function setattr>, 'slice': <class 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <class 'staticmethod'>, 'str': <class 'str'>, 'sum': <built-in function sum>, 'super': <class 'super'>, 'tuple': <class 'tuple'>, 'type': <class 'type'>, 'vars': <built-in function vars>, 'zip': <class 'zip'>}, '__cached__': '/home/user/src/kittycad/models/__pycache__/invoice.cpython-39.pyc', '__doc__': <pydantic._internal._model_construction._PydanticWeakRef object>, '__file__': '/home/user/src/kittycad/models/invoice.py', '__loader__': <pydantic._internal._model_construction._PydanticWeakRef object>, '__name__': 'kittycad.models.invoice', '__package__': 'kittycad.models', '__spec__': <pydantic._internal._model_construction._PydanticWeakRef object>, 'datetime': <pydantic._internal._model_construction._PydanticWeakRef object>}[source]
__pydantic_post_init__: ClassVar[None | Literal['model_post_init']] = None[source]
__pydantic_private__: dict[str, Any] | None[source]
__pydantic_root_model__: ClassVar[bool] = False[source]
__pydantic_serializer__: ClassVar[SchemaSerializer] = SchemaSerializer(serializer=Model(     ModelSerializer {         class: Py(             0x0000555556e02b70,         ),         serializer: Fields(             GeneralFieldsSerializer {                 fields: {                     "pdf": SerField {                         key_py: Py(                             0x00007ffffe856070,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "paid": SerField {                         key_py: Py(                             0x00007fffe10bb470,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Bool(                                                 BoolSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "total": SerField {                         key_py: Py(                             0x00007fffff763c30,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_paid": SerField {                         key_py: Py(                             0x00007fffe10c2e30,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "attempt_count": SerField {                         key_py: Py(                             0x00007fffe10c2db0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Int(                                                 IntSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "metadata": SerField {                         key_py: Py(                             0x00007fffff760630,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Dict(                                                 DictSerializer {                                                     key_serializer: Str(                                                         StrSerializer,                                                     ),                                                     value_serializer: Str(                                                         StrSerializer,                                                     ),                                                     filter: SchemaFilter {                                                         include: None,                                                         exclude: None,                                                     },                                                     name: "dict[str, str]",                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "customer_email": SerField {                         key_py: Py(                             0x00007fffe10c2df0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "receipt_number": SerField {                         key_py: Py(                             0x00007fffe10bbdf0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "currency": SerField {                         key_py: Py(                             0x00007fffff57e670,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "created_at": SerField {                         key_py: Py(                             0x00007fffe12ecdf0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             Datetime(                                 DatetimeSerializer,                             ),                         ),                         required: true,                     },                     "default_payment_method": SerField {                         key_py: Py(                             0x00007fffe10c1210,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "id": SerField {                         key_py: Py(                             0x00007fffff8eb3b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_remaining": SerField {                         key_py: Py(                             0x00007fffe10c1260,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "number": SerField {                         key_py: Py(                             0x00007fffff69de30,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "lines": SerField {                         key_py: Py(                             0x00007fffff8c2470,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: List(                                                 ListSerializer {                                                     item_serializer: Model(                                                         ModelSerializer {                                                             class: Py(                                                                 0x0000555556dfb3a0,                                                             ),                                                             serializer: Fields(                                                                 GeneralFieldsSerializer {                                                                     fields: {                                                                         "amount": SerField {                                                                             key_py: Py(                                                                                 0x00007fffff57ee30,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Float(                                                                                                     FloatSerializer {                                                                                                         inf_nan_mode: Null,                                                                                                     },                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "currency": SerField {                                                                             key_py: Py(                                                                                 0x00007fffff57e670,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "id": SerField {                                                                             key_py: Py(                                                                                 0x00007fffff8eb3b0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "metadata": SerField {                                                                             key_py: Py(                                                                                 0x00007fffff760630,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Dict(                                                                                                     DictSerializer {                                                                                                         key_serializer: Str(                                                                                                             StrSerializer,                                                                                                         ),                                                                                                         value_serializer: Str(                                                                                                             StrSerializer,                                                                                                         ),                                                                                                         filter: SchemaFilter {                                                                                                             include: None,                                                                                                             exclude: None,                                                                                                         },                                                                                                         name: "dict[str, str]",                                                                                                     },                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "description": SerField {                                                                             key_py: Py(                                                                                 0x00007fffff6df4b0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         serializer: Nullable(                                                                                             NullableSerializer {                                                                                                 serializer: Str(                                                                                                     StrSerializer,                                                                                                 ),                                                                                             },                                                                                         ),                                                                                     },                                                                                 ),                                                                             ),                                                                             required: true,                                                                         },                                                                         "invoice_item": SerField {                                                                             key_py: Py(                                                                                 0x00007fffe10bb630,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 WithDefault(                                                                                     WithDefaultSerializer {                                                                                         default: Default(                                                                                             Py(                                                                                                 0x00007ffffff85420,                                                                                             ),                                                                                         ),                                                                                         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: 6,                                                                 },                                                             ),                                                             has_extra: false,                                                             root_model: false,                                                             name: "InvoiceLineItem",                                                         },                                                     ),                                                     filter: SchemaFilter {                                                         include: None,                                                         exclude: None,                                                     },                                                     name: "list[InvoiceLineItem]",                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "status": SerField {                         key_py: Py(                             0x00007fffff6e27f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: JsonOrPython(                                                 JsonOrPythonSerializer {                                                     json: Str(                                                         StrSerializer,                                                     ),                                                     python: Any(                                                         AnySerializer,                                                     ),                                                     name: "json-or-python[json=str, python=any]",                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "attempted": SerField {                         key_py: Py(                             0x00007ffffceae8b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Bool(                                                 BoolSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "subtotal": SerField {                         key_py: Py(                             0x00007fffe10bbaf0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "tax": SerField {                         key_py: Py(                             0x00007fffe10bbb30,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "customer_id": SerField {                         key_py: Py(                             0x00007fffe10c2b70,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "url": SerField {                         key_py: Py(                             0x00007fffff249470,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "statement_descriptor": SerField {                         key_py: Py(                             0x00007fffe10c1a80,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "description": SerField {                         key_py: Py(                             0x00007fffff6df4b0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Str(                                                 StrSerializer,                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "amount_due": SerField {                         key_py: Py(                             0x00007fffe10c2c30,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: Float(                                                 FloatSerializer {                                                     inf_nan_mode: Null,                                                 },                                             ),                                         },                                     ),                                 },                             ),                         ),                         required: true,                     },                     "discounts": SerField {                         key_py: Py(                             0x00007fffe11272f0,                         ),                         alias: None,                         alias_py: None,                         serializer: Some(                             WithDefault(                                 WithDefaultSerializer {                                     default: Default(                                         Py(                                             0x00007ffffff85420,                                         ),                                     ),                                     serializer: Nullable(                                         NullableSerializer {                                             serializer: List(                                                 ListSerializer {                                                     item_serializer: Model(                                                         ModelSerializer {                                                             class: Py(                                                                 0x0000555556d3f9f0,                                                             ),                                                             serializer: Fields(                                                                 GeneralFieldsSerializer {                                                                     fields: {                                                                         "coupon": SerField {                                                                             key_py: Py(                                                                                 0x00007fffe1c814b0,                                                                             ),                                                                             alias: None,                                                                             alias_py: None,                                                                             serializer: Some(                                                                                 Model(                                                                                     ModelSerializer {                                                                                         class: Py(                                                                                             0x0000555556cdee80,                                                                                         ),                                                                                         serializer: Fields(                                                                                             GeneralFieldsSerializer {                                                                                                 fields: {                                                                                                     "deleted": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007ffffcd635f0,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007ffffff85420,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Bool(                                                                                                                                 BoolSerializer,                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "id": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007fffff8eb3b0,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007ffffff85420,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Str(                                                                                                                                 StrSerializer,                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "percent_off": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007fffe1247d30,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007ffffff85420,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Float(                                                                                                                                 FloatSerializer {                                                                                                                                     inf_nan_mode: Null,                                                                                                                                 },                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                     "amount_off": SerField {                                                                                                         key_py: Py(                                                                                                             0x00007fffe13289f0,                                                                                                         ),                                                                                                         alias: None,                                                                                                         alias_py: None,                                                                                                         serializer: Some(                                                                                                             WithDefault(                                                                                                                 WithDefaultSerializer {                                                                                                                     default: Default(                                                                                                                         Py(                                                                                                                             0x00007ffffff85420,                                                                                                                         ),                                                                                                                     ),                                                                                                                     serializer: Nullable(                                                                                                                         NullableSerializer {                                                                                                                             serializer: Float(                                                                                                                                 FloatSerializer {                                                                                                                                     inf_nan_mode: Null,                                                                                                                                 },                                                                                                                             ),                                                                                                                         },                                                                                                                     ),                                                                                                                 },                                                                                                             ),                                                                                                         ),                                                                                                         required: true,                                                                                                     },                                                                                                 },                                                                                                 computed_fields: Some(                                                                                                     ComputedFields(                                                                                                         [],                                                                                                     ),                                                                                                 ),                                                                                                 mode: SimpleDict,                                                                                                 extra_serializer: None,                                                                                                 filter: SchemaFilter {                                                                                                     include: None,                                                                                                     exclude: None,                                                                                                 },                                                                                                 required_fields: 4,                                                                                             },                                                                                         ),                                                                                         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,                     },                 },                 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]
__pydantic_validator__: ClassVar[SchemaValidator] = 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(                                 0x00007fffe10c2c30,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_due",                                         Py(                                             0x00007fffe10c2c30,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c2c30,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "amount_paid",                         lookup_key: Simple {                             key: "amount_paid",                             py_key: Py(                                 0x00007fffe10c2e30,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_paid",                                         Py(                                             0x00007fffe10c2e30,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c2e30,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "amount_remaining",                         lookup_key: Simple {                             key: "amount_remaining",                             py_key: Py(                                 0x00007fffe10c1260,                             ),                             path: LookupPath(                                 [                                     S(                                         "amount_remaining",                                         Py(                                             0x00007fffe10c1260,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c1260,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "attempt_count",                         lookup_key: Simple {                             key: "attempt_count",                             py_key: Py(                                 0x00007fffe10c2db0,                             ),                             path: LookupPath(                                 [                                     S(                                         "attempt_count",                                         Py(                                             0x00007fffe10c2db0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c2db0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Int(                                             IntValidator {                                                 strict: false,                                             },                                         ),                                         name: "nullable[int]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[int]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "attempted",                         lookup_key: Simple {                             key: "attempted",                             py_key: Py(                                 0x00007ffffceae8b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "attempted",                                         Py(                                             0x00007ffffceae8b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007ffffceae8b0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: Bool(                                             BoolValidator {                                                 strict: false,                                             },                                         ),                                         name: "nullable[bool]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[bool]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "created_at",                         lookup_key: Simple {                             key: "created_at",                             py_key: Py(                                 0x00007fffe12ecdf0,                             ),                             path: LookupPath(                                 [                                     S(                                         "created_at",                                         Py(                                             0x00007fffe12ecdf0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe12ecdf0,                         ),                         validator: Datetime(                             DateTimeValidator {                                 strict: false,                                 constraints: None,                                 microseconds_precision: Truncate,                             },                         ),                         frozen: false,                     },                     Field {                         name: "currency",                         lookup_key: Simple {                             key: "currency",                             py_key: Py(                                 0x00007fffff57e670,                             ),                             path: LookupPath(                                 [                                     S(                                         "currency",                                         Py(                                             0x00007fffff57e670,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffff57e670,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 on_error: Raise,                                 validator: Nullable(                                     NullableValidator {                                         validator: FunctionAfter(                                             FunctionAfterValidator {                                                 validator: Str(                                                     StrValidator {                                                         strict: false,                                                         coerce_numbers_to_str: false,                                                     },                                                 ),                                                 func: Py(                                                     0x0000555556d181d0,                                                 ),                                                 config: Py(                                                     0x00007fffe1086740,                                                 ),                                                 name: "function-after[Currency(), str]",                                                 field_name: None,                                                 info_arg: false,                                             },                                         ),                                         name: "nullable[function-after[Currency(), str]]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[function-after[Currency(), str]]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "customer_email",                         lookup_key: Simple {                             key: "customer_email",                             py_key: Py(                                 0x00007fffe10c2df0,                             ),                             path: LookupPath(                                 [                                     S(                                         "customer_email",                                         Py(                                             0x00007fffe10c2df0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c2df0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "customer_id",                         lookup_key: Simple {                             key: "customer_id",                             py_key: Py(                                 0x00007fffe10c2b70,                             ),                             path: LookupPath(                                 [                                     S(                                         "customer_id",                                         Py(                                             0x00007fffe10c2b70,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c2b70,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "default_payment_method",                         lookup_key: Simple {                             key: "default_payment_method",                             py_key: Py(                                 0x00007fffe10c1210,                             ),                             path: LookupPath(                                 [                                     S(                                         "default_payment_method",                                         Py(                                             0x00007fffe10c1210,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe10c1210,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "description",                         lookup_key: Simple {                             key: "description",                             py_key: Py(                                 0x00007fffff6df4b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "description",                                         Py(                                             0x00007fffff6df4b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffff6df4b0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "discounts",                         lookup_key: Simple {                             key: "discounts",                             py_key: Py(                                 0x00007fffe11272f0,                             ),                             path: LookupPath(                                 [                                     S(                                         "discounts",                                         Py(                                             0x00007fffe11272f0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffe11272f0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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(                                                                                     0x00007fffe1c814b0,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "coupon",                                                                                             Py(                                                                                                 0x00007fffe1c814b0,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffe1c814b0,                                                                             ),                                                                             validator: Model(                                                                                 ModelValidator {                                                                                     revalidate: Never,                                                                                     validator: ModelFields(                                                                                         ModelFieldsValidator {                                                                                             fields: [                                                                                                 Field {                                                                                                     name: "amount_off",                                                                                                     lookup_key: Simple {                                                                                                         key: "amount_off",                                                                                                         py_key: Py(                                                                                                             0x00007fffe13289f0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "amount_off",                                                                                                                     Py(                                                                                                                         0x00007fffe13289f0,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007fffe13289f0,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007ffffff85420,                                                                                                                 ),                                                                                                             ),                                                                                                             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]]",                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "deleted",                                                                                                     lookup_key: Simple {                                                                                                         key: "deleted",                                                                                                         py_key: Py(                                                                                                             0x00007ffffcd635f0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "deleted",                                                                                                                     Py(                                                                                                                         0x00007ffffcd635f0,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007ffffcd635f0,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007ffffff85420,                                                                                                                 ),                                                                                                             ),                                                                                                             on_error: Raise,                                                                                                             validator: Nullable(                                                                                                                 NullableValidator {                                                                                                                     validator: Bool(                                                                                                                         BoolValidator {                                                                                                                             strict: false,                                                                                                                         },                                                                                                                     ),                                                                                                                     name: "nullable[bool]",                                                                                                                 },                                                                                                             ),                                                                                                             validate_default: false,                                                                                                             copy_default: false,                                                                                                             name: "default[nullable[bool]]",                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "id",                                                                                                     lookup_key: Simple {                                                                                                         key: "id",                                                                                                         py_key: Py(                                                                                                             0x00007fffff8eb3b0,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "id",                                                                                                                     Py(                                                                                                                         0x00007fffff8eb3b0,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007fffff8eb3b0,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007ffffff85420,                                                                                                                 ),                                                                                                             ),                                                                                                             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]]",                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                                 Field {                                                                                                     name: "percent_off",                                                                                                     lookup_key: Simple {                                                                                                         key: "percent_off",                                                                                                         py_key: Py(                                                                                                             0x00007fffe1247d30,                                                                                                         ),                                                                                                         path: LookupPath(                                                                                                             [                                                                                                                 S(                                                                                                                     "percent_off",                                                                                                                     Py(                                                                                                                         0x00007fffe1247d30,                                                                                                                     ),                                                                                                                 ),                                                                                                             ],                                                                                                         ),                                                                                                     },                                                                                                     name_py: Py(                                                                                                         0x00007fffe1247d30,                                                                                                     ),                                                                                                     validator: WithDefault(                                                                                                         WithDefaultValidator {                                                                                                             default: Default(                                                                                                                 Py(                                                                                                                     0x00007ffffff85420,                                                                                                                 ),                                                                                                             ),                                                                                                             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]]",                                                                                                         },                                                                                                     ),                                                                                                     frozen: false,                                                                                                 },                                                                                             ],                                                                                             model_name: "Coupon",                                                                                             extra_behavior: Ignore,                                                                                             extras_validator: None,                                                                                             strict: false,                                                                                             from_attributes: false,                                                                                             loc_by_alias: true,                                                                                         },                                                                                     ),                                                                                     class: Py(                                                                                         0x0000555556cdee80,                                                                                     ),                                                                                     post_init: None,                                                                                     frozen: false,                                                                                     custom_init: false,                                                                                     root_model: false,                                                                                     name: "Coupon",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                     ],                                                                     model_name: "Discount",                                                                     extra_behavior: Ignore,                                                                     extras_validator: None,                                                                     strict: false,                                                                     from_attributes: false,                                                                     loc_by_alias: true,                                                                 },                                                             ),                                                             class: Py(                                                                 0x0000555556d3f9f0,                                                             ),                                                             post_init: None,                                                             frozen: false,                                                             custom_init: false,                                                             root_model: false,                                                             name: "Discount",                                                         },                                                     ),                                                 ),                                                 min_length: None,                                                 max_length: None,                                                 name: OnceLock(                                                     "list[Discount]",                                                 ),                                             },                                         ),                                         name: "nullable[list[Discount]]",                                     },                                 ),                                 validate_default: false,                                 copy_default: false,                                 name: "default[nullable[list[Discount]]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "id",                         lookup_key: Simple {                             key: "id",                             py_key: Py(                                 0x00007fffff8eb3b0,                             ),                             path: LookupPath(                                 [                                     S(                                         "id",                                         Py(                                             0x00007fffff8eb3b0,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffff8eb3b0,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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]]",                             },                         ),                         frozen: false,                     },                     Field {                         name: "lines",                         lookup_key: Simple {                             key: "lines",                             py_key: Py(                                 0x00007fffff8c2470,                             ),                             path: LookupPath(                                 [                                     S(                                         "lines",                                         Py(                                             0x00007fffff8c2470,                                         ),                                     ),                                 ],                             ),                         },                         name_py: Py(                             0x00007fffff8c2470,                         ),                         validator: WithDefault(                             WithDefaultValidator {                                 default: Default(                                     Py(                                         0x00007ffffff85420,                                     ),                                 ),                                 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(                                                                                     0x00007fffff57ee30,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "amount",                                                                                             Py(                                                                                                 0x00007fffff57ee30,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffff57ee30,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007ffffff85420,                                                                                         ),                                                                                     ),                                                                                     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]]",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                         Field {                                                                             name: "currency",                                                                             lookup_key: Simple {                                                                                 key: "currency",                                                                                 py_key: Py(                                                                                     0x00007fffff57e670,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "currency",                                                                                             Py(                                                                                                 0x00007fffff57e670,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffff57e670,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007ffffff85420,                                                                                         ),                                                                                     ),                                                                                     on_error: Raise,                                                                                     validator: Nullable(                                                                                         NullableValidator {                                                                                             validator: FunctionAfter(                                                                                                 FunctionAfterValidator {                                                                                                     validator: Str(                                                                                                         StrValidator {                                                                                                             strict: false,                                                                                                             coerce_numbers_to_str: false,                                                                                                         },                                                                                                     ),                                                                                                     func: Py(                                                                                                         0x0000555556d181d0,                                                                                                     ),                                                                                                     config: Py(                                                                                                         0x00007fffe1082500,                                                                                                     ),                                                                                                     name: "function-after[Currency(), str]",                                                                                                     field_name: None,                                                                                                     info_arg: false,                                                                                                 },                                                                                             ),                                                                                             name: "nullable[function-after[Currency(), str]]",                                                                                         },                                                                                     ),                                                                                     validate_default: false,                                                                                     copy_default: false,                                                                                     name: "default[nullable[function-after[Currency(), str]]]",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                         Field {                                                                             name: "description",                                                                             lookup_key: Simple {                                                                                 key: "description",                                                                                 py_key: Py(                                                                                     0x00007fffff6df4b0,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "description",                                                                                             Py(                                                                                                 0x00007fffff6df4b0,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffff6df4b0,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007ffffff85420,                                                                                         ),                                                                                     ),                                                                                     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]]",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                         Field {                                                                             name: "id",                                                                             lookup_key: Simple {                                                                                 key: "id",                                                                                 py_key: Py(                                                                                     0x00007fffff8eb3b0,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "id",                                                                                             Py(                                                                                                 0x00007fffff8eb3b0,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffff8eb3b0,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007ffffff85420,                                                                                         ),                                                                                     ),                                                                                     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]]",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },                                                                         Field {                                                                             name: "invoice_item",                                                                             lookup_key: Simple {                                                                                 key: "invoice_item",                                                                                 py_key: Py(                                                                                     0x00007fffe10bb630,                                                                                 ),                                                                                 path: LookupPath(                                                                                     [                                                                                         S(                                                                                             "invoice_item",                                                                                             Py(                                                                                                 0x00007fffe10bb630,                                                                                             ),                                                                                         ),                                                                                     ],                                                                                 ),                                                                             },                                                                             name_py: Py(                                                                                 0x00007fffe10bb630,                                                                             ),                                                                             validator: WithDefault(                                                                                 WithDefaultValidator {                                                                                     default: Default(                                                                                         Py(                                                                                             0x00007ffffff85420,                                                                                         ),                                                                                     ),                                                                                     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]]",                                                                                 },                                                                             ),                                                                             frozen: false,                                                                         },