Update datacenterlight StripePlan further

- Add field amount to stripeplan
    - Add field interval to stripeplan
This commit is contained in:
PCoder 2019-04-20 12:22:49 +02:00
commit c8e35e63f0
2 changed files with 27 additions and 0 deletions

View file

@ -104,6 +104,8 @@ class StripePlan(models.Model):
"""
stripe_plan_id = models.CharField(max_length=256, null=True)
stripe_plan_name = models.CharField(max_length=512, default="", null=True)
amount = models.PositiveIntegerField(default=0)
interval = models.CharField(max_length=128, default="", null=True)
@classmethod
def create(cls, stripe_plan_id):