Invoice constructor

const Invoice({
  1. required String currency,
  2. required List<LabeledPricePart> priceParts,
  3. required int subscriptionPeriod,
  4. required int maxTipAmount,
  5. required List<int> suggestedTipAmounts,
  6. required String recurringPaymentTermsOfServiceUrl,
  7. required String termsOfServiceUrl,
  8. required bool isTest,
  9. required bool needName,
  10. required bool needPhoneNumber,
  11. required bool needEmailAddress,
  12. required bool needShippingAddress,
  13. required bool sendPhoneNumberToProvider,
  14. required bool sendEmailAddressToProvider,
  15. required bool isFlexible,
})

Implementation

const Invoice({
  required this.currency,
  required this.priceParts,
  required this.subscriptionPeriod,
  required this.maxTipAmount,
  required this.suggestedTipAmounts,
  required this.recurringPaymentTermsOfServiceUrl,
  required this.termsOfServiceUrl,
  required this.isTest,
  required this.needName,
  required this.needPhoneNumber,
  required this.needEmailAddress,
  required this.needShippingAddress,
  required this.sendPhoneNumberToProvider,
  required this.sendEmailAddressToProvider,
  required this.isFlexible,
});