Added StripePlan model
This commit is contained in:
		
					parent
					
						
							
								94004a5443
							
						
					
				
			
			
				commit
				
					
						fc1ddbdd3b
					
				
			
		
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -59,3 +59,15 @@ class VMTemplate(models.Model): | ||||||
|     def create(cls, name, opennebula_vm_template_id): |     def create(cls, name, opennebula_vm_template_id): | ||||||
|         vm_template = cls(name=name, opennebula_vm_template_id=opennebula_vm_template_id) |         vm_template = cls(name=name, opennebula_vm_template_id=opennebula_vm_template_id) | ||||||
|         return vm_template |         return vm_template | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class StripePlan(models.Model): | ||||||
|  |     """ | ||||||
|  |     A model to store Data Center Light's created Stripe plans | ||||||
|  |     """ | ||||||
|  |     stripe_plan_id = models.CharField(max_length=100, null=True) | ||||||
|  | 
 | ||||||
|  |     @classmethod | ||||||
|  |     def create(cls, stripe_plan_id): | ||||||
|  |         stripe_plan = cls(stripe_plan_id=stripe_plan_id) | ||||||
|  |         return stripe_plan | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue