kittycad.models.coupon.Coupon

class kittycad.models.coupon.Coupon(amount_off=<kittycad.types.Unset object>, deleted=False, id=<kittycad.types.Unset object>, percent_off=<kittycad.types.Unset object>)[source][source]

Bases: object

The resource representing a Coupon.

Method generated by attrs for class Coupon.

__init__(amount_off=<kittycad.types.Unset object>, deleted=False, id=<kittycad.types.Unset object>, percent_off=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Coupon.

Methods

__init__([amount_off, deleted, id, percent_off])

Method generated by attrs for class Coupon.

from_dict(src_dict)

rtype:

TypeVar(PC, bound= Coupon)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

amount_off

deleted

id

percent_off

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'amount_off': typing.Union[kittycad.types.Unset, float], 'deleted': typing.Union[kittycad.types.Unset, bool], 'id': typing.Union[kittycad.types.Unset, str], 'percent_off': typing.Union[kittycad.types.Unset, float]}[source]
__attrs_attrs__ = (Attribute(name='amount_off', 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_off'), Attribute(name='deleted', 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='deleted'), 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='percent_off', 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='percent_off'), 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.coupon', '__annotations__': {'amount_off': typing.Union[kittycad.types.Unset, float], 'deleted': typing.Union[kittycad.types.Unset, bool], 'id': typing.Union[kittycad.types.Unset, str], 'percent_off': typing.Union[kittycad.types.Unset, float], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'The resource representing a Coupon.', 'to_dict': <function Coupon.to_dict>, 'from_dict': <classmethod(<function Coupon.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Coupon.__getitem__>, '__setitem__': <function Coupon.__setitem__>, '__delitem__': <function Coupon.__delitem__>, '__contains__': <function Coupon.__contains__>, '__dict__': <attribute '__dict__' of 'Coupon' objects>, '__weakref__': <attribute '__weakref__' of 'Coupon' objects>, '__attrs_attrs__': (Attribute(name='amount_off', 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_off'), Attribute(name='deleted', 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='deleted'), 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='percent_off', 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='percent_off'), 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 Coupon.__repr__>, '__eq__': <function Coupon.__eq__>, '__ne__': <function Coupon.__ne__>, '__lt__': <function Coupon.__lt__>, '__le__': <function Coupon.__le__>, '__gt__': <function Coupon.__gt__>, '__ge__': <function Coupon.__ge__>, '__hash__': None, '__init__': <function Coupon.__init__>, '__match_args__': ('amount_off', 'deleted', 'id', 'percent_off')})[source]
__eq__(other)[source]

Method generated by attrs for class Coupon.

__ge__(other)[source]

Method generated by attrs for class Coupon.

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

Any

__gt__(other)[source]

Method generated by attrs for class Coupon.

__hash__ = None[source]
__init__(amount_off=<kittycad.types.Unset object>, deleted=False, id=<kittycad.types.Unset object>, percent_off=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Coupon.

__le__(other)[source]

Method generated by attrs for class Coupon.

__lt__(other)[source]

Method generated by attrs for class Coupon.

__match_args__ = ('amount_off', 'deleted', 'id', 'percent_off')[source]
__module__ = 'kittycad.models.coupon'[source]
__ne__(other)[source]

Method generated by attrs for class Coupon.

__repr__()[source]

Method generated by attrs for class Coupon.

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

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
amount_off: Union[Unset, float][source]
deleted: Union[Unset, bool][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(PC, bound= Coupon)

id: Union[Unset, str][source]
percent_off: Union[Unset, float][source]
to_dict()[source][source]
Return type:

Dict[str, Any]