Purchase constructor

Purchase({
  1. required String purchaseId,
  2. required String productId,
  3. required String invoiceId,
  4. String? orderId,
  5. required PurchaseType purchaseType,
  6. required ProductType productType,
  7. required String description,
  8. String? purchaseTime,
  9. required int price,
  10. required String amountLabel,
  11. required String currency,
  12. required int quantity,
  13. required PurchaseStatus status,
  14. String? subscriptionToken,
  15. String? developerPayload,
})

Implementation

Purchase({
  required this.purchaseId,
  required this.productId,
  required this.invoiceId,
  this.orderId,
  required this.purchaseType,
  required this.productType,
  required this.description,
  this.purchaseTime,
  required this.price,
  required this.amountLabel,
  required this.currency,
  required this.quantity,
  required this.status,
  this.subscriptionToken,
  this.developerPayload,
});