SGSubscription constructor

SGSubscription({
  1. required String? activeOfferId,
  2. required SGBillinPeriodUnit? billingPeriodUnit,
  3. required int? billingPeriodNumberOfUnit,
  4. required String? expirationReason,
  5. required int? expiresAt,
  6. required String? gateway,
  7. required String? gatewayPriceIdentifier,
  8. required String? gatewayProductIdentifier,
  9. required String? gatewaySubscriptionIdentifier,
  10. required int? gracePeriodScheduledExpiry,
  11. required bool? isInBillingRetryPeriod,
  12. required bool? isInGracePeriod,
  13. required bool? isInTrialPeriod,
  14. required bool? isLifetime,
  15. required bool? isPaused,
  16. required bool? isRefund,
  17. required int? isSandbox,
  18. required int? lastRenewedAt,
  19. required String? latestTransactionId,
  20. required int? nextRenewalAt,
  21. required SGOfferType? offerType,
  22. required int? pauseEndsAt,
  23. required int? pauseStartsAt,
  24. required String? status,
  25. required int? subscriptionStartsAt,
  26. required int? unsubscribedAt,
  27. 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,
  });