SubscriptionEvent constructor
SubscriptionEvent({
- String id = '',
- String subscriptionId = '',
- String userId = '',
- String userName = '',
- String stripeEventType = '',
- String emxiStatus = '',
- String emxiStatusColor = 'grey',
- String planName = '',
- bool alertCOO = false,
- bool alertCEO = false,
- Map<
String, dynamic> metadata = const {}, - int createdAt = 0,
- double amount = 0,
- String currency = '',
- double stripeFees = 0,
- double stripeNet = 0,
- String invoiceId = '',
- String invoiceUrl = '',
- String chargeId = '',
- String paymentMethodBrand = '',
- String paymentMethodLast4 = '',
- String failureReason = '',
- String failureMessage = '',
- int currentPeriodEnd = 0,
- bool cancelAtPeriodEnd = false,
- String customerEmail = '',
- String couponId = '',
- 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,
});