SubscriptionEvent constructor

SubscriptionEvent({
  1. String id = '',
  2. String subscriptionId = '',
  3. String userId = '',
  4. String userName = '',
  5. String stripeEventType = '',
  6. String emxiStatus = '',
  7. String emxiStatusColor = 'grey',
  8. String planName = '',
  9. bool alertCOO = false,
  10. bool alertCEO = false,
  11. Map<String, dynamic> metadata = const {},
  12. int createdAt = 0,
  13. double amount = 0,
  14. String currency = '',
  15. double stripeFees = 0,
  16. double stripeNet = 0,
  17. String invoiceId = '',
  18. String invoiceUrl = '',
  19. String chargeId = '',
  20. String paymentMethodBrand = '',
  21. String paymentMethodLast4 = '',
  22. String failureReason = '',
  23. String failureMessage = '',
  24. int currentPeriodEnd = 0,
  25. bool cancelAtPeriodEnd = false,
  26. String customerEmail = '',
  27. String couponId = '',
  28. double discountPercent = 0,
})

Implementation

SubscriptionEvent({
  this.id = '',
  this.subscriptionId = '',
  this.userId = '',
  this.userName = '',
  this.stripeEventType = '',
  this.emxiStatus = '',
  this.emxiStatusColor = 'grey',
  this.planName = '',
  this.alertCOO = false,
  this.alertCEO = false,
  this.metadata = const {},
  this.createdAt = 0,
  // v2
  this.amount = 0,
  this.currency = '',
  this.stripeFees = 0,
  this.stripeNet = 0,
  this.invoiceId = '',
  this.invoiceUrl = '',
  this.chargeId = '',
  this.paymentMethodBrand = '',
  this.paymentMethodLast4 = '',
  this.failureReason = '',
  this.failureMessage = '',
  this.currentPeriodEnd = 0,
  this.cancelAtPeriodEnd = false,
  this.customerEmail = '',
  this.couponId = '',
  this.discountPercent = 0,
});