CollectionEvent constructor

CollectionEvent({
  1. String id = '',
  2. String userId = '',
  3. String userEmail = '',
  4. String userName = '',
  5. String userPhone = '',
  6. String type = '',
  7. String invoiceId = '',
  8. String subscriptionId = '',
  9. double amount = 0.0,
  10. String currency = 'MXN',
  11. int attemptNumber = 0,
  12. bool whatsappSent = false,
  13. String whatsappMessageId = '',
  14. int escalationLevel = 1,
  15. int createdAt = 0,
  16. String failureReason = '',
  17. String failureMessage = '',
  18. String paymentMethodBrand = '',
  19. String paymentMethodLast4 = '',
  20. String planName = '',
  21. int nextRetryDate = 0,
})

Implementation

CollectionEvent({
  this.id = '',
  this.userId = '',
  this.userEmail = '',
  this.userName = '',
  this.userPhone = '',
  this.type = '',
  this.invoiceId = '',
  this.subscriptionId = '',
  this.amount = 0.0,
  this.currency = 'MXN',
  this.attemptNumber = 0,
  this.whatsappSent = false,
  this.whatsappMessageId = '',
  this.escalationLevel = 1,
  this.createdAt = 0,
  // v2
  this.failureReason = '',
  this.failureMessage = '',
  this.paymentMethodBrand = '',
  this.paymentMethodLast4 = '',
  this.planName = '',
  this.nextRetryDate = 0,
});