syncano.models.billing¶
- class Coupon(**kwargs)[source]¶
Bases: syncano.models.archetypes.Model
OO wrapper around coupons link.
Variables: - name – StringField
- redeem_by – DateField
- links – HyperlinkedField
- percent_off – IntegerField
- amount_off – FloatField
- currency – ChoiceField
- duration – IntegerField
- CURRENCY_CHOICES = ({'display_name': 'USD', 'value': 'usd'},)¶
- name = None¶
- redeem_by = None¶
- links = None¶
- percent_off = None¶
- amount_off = None¶
- currency = None¶
- duration = None¶
- DoesNotExist¶
alias of CouponDoesNotExist
- pk = None¶
- please¶
- class Discount(**kwargs)[source]¶
Bases: syncano.models.archetypes.Model
OO wrapper around discounts link.
Variables: - instance – ModelField
- coupon – ModelField
- start – DateField
- end – DateField
- links – HyperlinkedField
- instance = None¶
- coupon = None¶
- start = None¶
- end = None¶
- links = None¶
- DoesNotExist¶
alias of DiscountDoesNotExist
- id = None¶
- pk = None¶
- please¶