CollectionEvent constructor
CollectionEvent({
- String id = '',
- String userId = '',
- String userEmail = '',
- String userName = '',
- String userPhone = '',
- String type = '',
- String invoiceId = '',
- String subscriptionId = '',
- double amount = 0.0,
- String currency = 'MXN',
- int attemptNumber = 0,
- bool whatsappSent = false,
- String whatsappMessageId = '',
- int escalationLevel = 1,
- int createdAt = 0,
- String failureReason = '',
- String failureMessage = '',
- String paymentMethodBrand = '',
- String paymentMethodLast4 = '',
- String planName = '',
- 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,
});