kittycad.models.invoice.Invoice
- class kittycad.models.invoice.Invoice(amount_due=<kittycad.types.Unset object>, amount_paid=<kittycad.types.Unset object>, amount_remaining=<kittycad.types.Unset object>, attempt_count=<kittycad.types.Unset object>, attempted=False, created_at=<kittycad.types.Unset object>, currency=<kittycad.types.Unset object>, customer_email=<kittycad.types.Unset object>, customer_id=<kittycad.types.Unset object>, default_payment_method=<kittycad.types.Unset object>, description=<kittycad.types.Unset object>, discounts=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, lines=<kittycad.types.Unset object>, metadata=<kittycad.types.Unset object>, number=<kittycad.types.Unset object>, paid=False, pdf=<kittycad.types.Unset object>, receipt_number=<kittycad.types.Unset object>, statement_descriptor=<kittycad.types.Unset object>, status=<kittycad.types.Unset object>, subtotal=<kittycad.types.Unset object>, tax=<kittycad.types.Unset object>, total=<kittycad.types.Unset object>, url=<kittycad.types.Unset object>)[source][source]
Bases:
object
An invoice.
Method generated by attrs for class Invoice.
- __init__(amount_due=<kittycad.types.Unset object>, amount_paid=<kittycad.types.Unset object>, amount_remaining=<kittycad.types.Unset object>, attempt_count=<kittycad.types.Unset object>, attempted=False, created_at=<kittycad.types.Unset object>, currency=<kittycad.types.Unset object>, customer_email=<kittycad.types.Unset object>, customer_id=<kittycad.types.Unset object>, default_payment_method=<kittycad.types.Unset object>, description=<kittycad.types.Unset object>, discounts=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, lines=<kittycad.types.Unset object>, metadata=<kittycad.types.Unset object>, number=<kittycad.types.Unset object>, paid=False, pdf=<kittycad.types.Unset object>, receipt_number=<kittycad.types.Unset object>, statement_descriptor=<kittycad.types.Unset object>, status=<kittycad.types.Unset object>, subtotal=<kittycad.types.Unset object>, tax=<kittycad.types.Unset object>, total=<kittycad.types.Unset object>, url=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Invoice.
Methods
__init__
([amount_due, amount_paid, ...])Method generated by attrs for class Invoice.
from_dict
(src_dict)- rtype:
TypeVar
(P
, bound= Invoice)
to_dict
()Attributes
- class Discount(coupon=<kittycad.types.Unset object>)[source]
Bases:
object
The resource representing a Discount.
Method generated by attrs for class Discount.
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'coupon': typing.Union[kittycad.types.Unset, kittycad.models.coupon.Coupon]}[source]
- __attrs_attrs__ = (Attribute(name='coupon', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.coupon.Coupon], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='coupon'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.discount', '__annotations__': {'coupon': typing.Union[kittycad.types.Unset, kittycad.models.coupon.Coupon], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'The resource representing a Discount.', 'to_dict': <function Discount.to_dict>, 'from_dict': <classmethod(<function Discount.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Discount.__getitem__>, '__setitem__': <function Discount.__setitem__>, '__delitem__': <function Discount.__delitem__>, '__contains__': <function Discount.__contains__>, '__dict__': <attribute '__dict__' of 'Discount' objects>, '__weakref__': <attribute '__weakref__' of 'Discount' objects>, '__attrs_attrs__': (Attribute(name='coupon', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.coupon.Coupon], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='coupon'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function Discount.__repr__>, '__eq__': <function Discount.__eq__>, '__ne__': <function Discount.__ne__>, '__lt__': <function Discount.__lt__>, '__le__': <function Discount.__le__>, '__gt__': <function Discount.__gt__>, '__ge__': <function Discount.__ge__>, '__hash__': None, '__init__': <function Discount.__init__>, '__match_args__': ('coupon',)})[source]
- class InvoiceLineItem(amount=<kittycad.types.Unset object>, currency=<kittycad.types.Unset object>, description=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, invoice_item=<kittycad.types.Unset object>, metadata=<kittycad.types.Unset object>)[source]
Bases:
object
An invoice line item.
Method generated by attrs for class InvoiceLineItem.
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'amount': typing.Union[kittycad.types.Unset, float], 'currency': typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], 'description': typing.Union[kittycad.types.Unset, str], 'id': typing.Union[kittycad.types.Unset, str], 'invoice_item': typing.Union[kittycad.types.Unset, str], 'metadata': typing.Union[kittycad.types.Unset, typing.Any]}[source]
- __attrs_attrs__ = (Attribute(name='amount', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount'), Attribute(name='currency', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='currency'), Attribute(name='description', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='description'), Attribute(name='id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='id'), Attribute(name='invoice_item', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='invoice_item'), Attribute(name='metadata', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='metadata'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.invoice_line_item', '__annotations__': {'amount': typing.Union[kittycad.types.Unset, float], 'currency': typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], 'description': typing.Union[kittycad.types.Unset, str], 'id': typing.Union[kittycad.types.Unset, str], 'invoice_item': typing.Union[kittycad.types.Unset, str], 'metadata': typing.Union[kittycad.types.Unset, typing.Any], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'An invoice line item.', 'to_dict': <function InvoiceLineItem.to_dict>, 'from_dict': <classmethod(<function InvoiceLineItem.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function InvoiceLineItem.__getitem__>, '__setitem__': <function InvoiceLineItem.__setitem__>, '__delitem__': <function InvoiceLineItem.__delitem__>, '__contains__': <function InvoiceLineItem.__contains__>, '__dict__': <attribute '__dict__' of 'InvoiceLineItem' objects>, '__weakref__': <attribute '__weakref__' of 'InvoiceLineItem' objects>, '__attrs_attrs__': (Attribute(name='amount', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount'), Attribute(name='currency', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='currency'), Attribute(name='description', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='description'), Attribute(name='id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='id'), Attribute(name='invoice_item', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='invoice_item'), Attribute(name='metadata', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='metadata'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function InvoiceLineItem.__repr__>, '__eq__': <function InvoiceLineItem.__eq__>, '__ne__': <function InvoiceLineItem.__ne__>, '__lt__': <function InvoiceLineItem.__lt__>, '__le__': <function InvoiceLineItem.__le__>, '__gt__': <function InvoiceLineItem.__gt__>, '__ge__': <function InvoiceLineItem.__ge__>, '__hash__': None, '__init__': <function InvoiceLineItem.__init__>, '__match_args__': ('amount', 'currency', 'description', 'id', 'invoice_item', 'metadata')})[source]
- __init__(amount=<kittycad.types.Unset object>, currency=<kittycad.types.Unset object>, description=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, invoice_item=<kittycad.types.Unset object>, metadata=<kittycad.types.Unset object>)[source]
Method generated by attrs for class InvoiceLineItem.
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'amount_due': typing.Union[kittycad.types.Unset, float], 'amount_paid': typing.Union[kittycad.types.Unset, float], 'amount_remaining': typing.Union[kittycad.types.Unset, float], 'attempt_count': typing.Union[kittycad.types.Unset, int], 'attempted': typing.Union[kittycad.types.Unset, bool], 'created_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'currency': typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], 'customer_email': typing.Union[kittycad.types.Unset, str], 'customer_id': typing.Union[kittycad.types.Unset, str], 'default_payment_method': typing.Union[kittycad.types.Unset, str], 'description': typing.Union[kittycad.types.Unset, str], 'discounts': typing.Union[kittycad.types.Unset, typing.List[kittycad.models.discount.Discount]], 'id': typing.Union[kittycad.types.Unset, str], 'lines': typing.Union[kittycad.types.Unset, typing.List[kittycad.models.invoice_line_item.InvoiceLineItem]], 'metadata': typing.Union[kittycad.types.Unset, typing.Any], 'number': typing.Union[kittycad.types.Unset, str], 'paid': typing.Union[kittycad.types.Unset, bool], 'pdf': typing.Union[kittycad.types.Unset, str], 'receipt_number': typing.Union[kittycad.types.Unset, str], 'statement_descriptor': typing.Union[kittycad.types.Unset, str], 'status': typing.Union[kittycad.types.Unset, kittycad.models.invoice_status.InvoiceStatus], 'subtotal': typing.Union[kittycad.types.Unset, float], 'tax': typing.Union[kittycad.types.Unset, float], 'total': typing.Union[kittycad.types.Unset, float], 'url': typing.Union[kittycad.types.Unset, str]}[source]
- __attrs_attrs__ = (Attribute(name='amount_due', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_due'), Attribute(name='amount_paid', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_paid'), Attribute(name='amount_remaining', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_remaining'), Attribute(name='attempt_count', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='attempt_count'), Attribute(name='attempted', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='attempted'), Attribute(name='created_at', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created_at'), Attribute(name='currency', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='currency'), Attribute(name='customer_email', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='customer_email'), Attribute(name='customer_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='customer_id'), Attribute(name='default_payment_method', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='default_payment_method'), Attribute(name='description', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='description'), Attribute(name='discounts', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.List[kittycad.models.discount.Discount]], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='discounts'), Attribute(name='id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='id'), Attribute(name='lines', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.List[kittycad.models.invoice_line_item.InvoiceLineItem]], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='lines'), Attribute(name='metadata', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='metadata'), Attribute(name='number', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='number'), Attribute(name='paid', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='paid'), Attribute(name='pdf', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='pdf'), Attribute(name='receipt_number', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='receipt_number'), Attribute(name='statement_descriptor', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='statement_descriptor'), Attribute(name='status', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.invoice_status.InvoiceStatus], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='status'), Attribute(name='subtotal', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='subtotal'), Attribute(name='tax', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tax'), Attribute(name='total', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='total'), Attribute(name='url', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='url'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.invoice', '__annotations__': {'amount_due': typing.Union[kittycad.types.Unset, float], 'amount_paid': typing.Union[kittycad.types.Unset, float], 'amount_remaining': typing.Union[kittycad.types.Unset, float], 'attempt_count': typing.Union[kittycad.types.Unset, int], 'attempted': typing.Union[kittycad.types.Unset, bool], 'created_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'currency': typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], 'customer_email': typing.Union[kittycad.types.Unset, str], 'customer_id': typing.Union[kittycad.types.Unset, str], 'default_payment_method': typing.Union[kittycad.types.Unset, str], 'description': typing.Union[kittycad.types.Unset, str], 'discounts': typing.Union[kittycad.types.Unset, typing.List[kittycad.models.discount.Discount]], 'id': typing.Union[kittycad.types.Unset, str], 'lines': typing.Union[kittycad.types.Unset, typing.List[kittycad.models.invoice_line_item.InvoiceLineItem]], 'metadata': typing.Union[kittycad.types.Unset, typing.Any], 'number': typing.Union[kittycad.types.Unset, str], 'paid': typing.Union[kittycad.types.Unset, bool], 'pdf': typing.Union[kittycad.types.Unset, str], 'receipt_number': typing.Union[kittycad.types.Unset, str], 'statement_descriptor': typing.Union[kittycad.types.Unset, str], 'status': typing.Union[kittycad.types.Unset, kittycad.models.invoice_status.InvoiceStatus], 'subtotal': typing.Union[kittycad.types.Unset, float], 'tax': typing.Union[kittycad.types.Unset, float], 'total': typing.Union[kittycad.types.Unset, float], 'url': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'An invoice.', 'Discount': <class 'kittycad.models.discount.Discount'>, 'InvoiceLineItem': <class 'kittycad.models.invoice_line_item.InvoiceLineItem'>, 'to_dict': <function Invoice.to_dict>, 'from_dict': <classmethod(<function Invoice.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Invoice.__getitem__>, '__setitem__': <function Invoice.__setitem__>, '__delitem__': <function Invoice.__delitem__>, '__contains__': <function Invoice.__contains__>, '__dict__': <attribute '__dict__' of 'Invoice' objects>, '__weakref__': <attribute '__weakref__' of 'Invoice' objects>, '__attrs_attrs__': (Attribute(name='amount_due', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_due'), Attribute(name='amount_paid', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_paid'), Attribute(name='amount_remaining', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='amount_remaining'), Attribute(name='attempt_count', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='attempt_count'), Attribute(name='attempted', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='attempted'), Attribute(name='created_at', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created_at'), Attribute(name='currency', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.currency.Currency], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='currency'), Attribute(name='customer_email', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='customer_email'), Attribute(name='customer_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='customer_id'), Attribute(name='default_payment_method', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='default_payment_method'), Attribute(name='description', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='description'), Attribute(name='discounts', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.List[kittycad.models.discount.Discount]], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='discounts'), Attribute(name='id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='id'), Attribute(name='lines', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.List[kittycad.models.invoice_line_item.InvoiceLineItem]], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='lines'), Attribute(name='metadata', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='metadata'), Attribute(name='number', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='number'), Attribute(name='paid', default=False, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='paid'), Attribute(name='pdf', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='pdf'), Attribute(name='receipt_number', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='receipt_number'), Attribute(name='statement_descriptor', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='statement_descriptor'), Attribute(name='status', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.invoice_status.InvoiceStatus], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='status'), Attribute(name='subtotal', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='subtotal'), Attribute(name='tax', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='tax'), Attribute(name='total', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='total'), Attribute(name='url', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='url'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function Invoice.__repr__>, '__eq__': <function Invoice.__eq__>, '__ne__': <function Invoice.__ne__>, '__lt__': <function Invoice.__lt__>, '__le__': <function Invoice.__le__>, '__gt__': <function Invoice.__gt__>, '__ge__': <function Invoice.__ge__>, '__hash__': None, '__init__': <function Invoice.__init__>, '__match_args__': ('amount_due', 'amount_paid', 'amount_remaining', 'attempt_count', 'attempted', 'created_at', 'currency', 'customer_email', 'customer_id', 'default_payment_method', 'description', 'discounts', 'id', 'lines', 'metadata', 'number', 'paid', 'pdf', 'receipt_number', 'statement_descriptor', 'status', 'subtotal', 'tax', 'total', 'url')})[source]
- __init__(amount_due=<kittycad.types.Unset object>, amount_paid=<kittycad.types.Unset object>, amount_remaining=<kittycad.types.Unset object>, attempt_count=<kittycad.types.Unset object>, attempted=False, created_at=<kittycad.types.Unset object>, currency=<kittycad.types.Unset object>, customer_email=<kittycad.types.Unset object>, customer_id=<kittycad.types.Unset object>, default_payment_method=<kittycad.types.Unset object>, description=<kittycad.types.Unset object>, discounts=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, lines=<kittycad.types.Unset object>, metadata=<kittycad.types.Unset object>, number=<kittycad.types.Unset object>, paid=False, pdf=<kittycad.types.Unset object>, receipt_number=<kittycad.types.Unset object>, statement_descriptor=<kittycad.types.Unset object>, status=<kittycad.types.Unset object>, subtotal=<kittycad.types.Unset object>, tax=<kittycad.types.Unset object>, total=<kittycad.types.Unset object>, url=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Invoice.
- __match_args__ = ('amount_due', 'amount_paid', 'amount_remaining', 'attempt_count', 'attempted', 'created_at', 'currency', 'customer_email', 'customer_id', 'default_payment_method', 'description', 'discounts', 'id', 'lines', 'metadata', 'number', 'paid', 'pdf', 'receipt_number', 'statement_descriptor', 'status', 'subtotal', 'tax', 'total', 'url')[source]
-
status:
Union
[Unset
,InvoiceStatus
][source]