kittycad.models.discount

Classes

Discount([coupon])

The resource representing a Discount.

class kittycad.models.discount.Discount(coupon=<kittycad.types.Unset object>)[source][source]

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]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__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]
__eq__(other)[source]

Method generated by attrs for class Discount.

__ge__(other)[source]

Method generated by attrs for class Discount.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class Discount.

__hash__ = None[source]
__init__(coupon=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Discount.

__le__(other)[source]

Method generated by attrs for class Discount.

__lt__(other)[source]

Method generated by attrs for class Discount.

__match_args__ = ('coupon',)[source]
__module__ = 'kittycad.models.discount'[source]
__ne__(other)[source]

Method generated by attrs for class Discount.

__repr__()[source]

Method generated by attrs for class Discount.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
coupon: Union[Unset, Coupon][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(PJ, bound= Discount)

to_dict()[source][source]
Return type:

Dict[str, Any]