SGSubscription constructor
SGSubscription({
- required String? activeOfferId,
- required SGBillinPeriodUnit? billingPeriodUnit,
- required int? billingPeriodNumberOfUnit,
- required String? expirationReason,
- required int? expiresAt,
- required String? gateway,
- required String? gatewayPriceIdentifier,
- required String? gatewayProductIdentifier,
- required String? gatewaySubscriptionIdentifier,
- required int? gracePeriodScheduledExpiry,
- required bool? isInBillingRetryPeriod,
- required bool? isInGracePeriod,
- required bool? isInTrialPeriod,
- required bool? isLifetime,
- required bool? isPaused,
- required bool? isRefund,
- required int? isSandbox,
- required int? lastRenewedAt,
- required String? latestTransactionId,
- required int? nextRenewalAt,
- required SGOfferType? offerType,
- required int? pauseEndsAt,
- required int? pauseStartsAt,
- required String? status,
- required int? subscriptionStartsAt,
- required int? unsubscribedAt,
- required bool? willAutoRenew,
Implementation
SGSubscription({
required this.activeOfferId,
required this.billingPeriodUnit,
required this.billingPeriodNumberOfUnit,
required this.expirationReason,
required this.expiresAt,
required this.gateway,
required this.gatewayPriceIdentifier,
required this.gatewayProductIdentifier,
required this.gatewaySubscriptionIdentifier,
required this.gracePeriodScheduledExpiry,
required this.isInBillingRetryPeriod,
required this.isInGracePeriod,
required this.isInTrialPeriod,
required this.isLifetime,
required this.isPaused,
required this.isRefund,
required this.isSandbox,
required this.lastRenewedAt,
required this.latestTransactionId,
required this.nextRenewalAt,
required this.offerType,
required this.pauseEndsAt,
required this.pauseStartsAt,
required this.status,
required this.subscriptionStartsAt,
required this.unsubscribedAt,
required this.willAutoRenew,
});