copyWith method

InvoiceRequestMessage copyWith({
  1. String? email,
  2. String? dueDate,
  3. List<Item>? items,
  4. PayerModel? payer,
  5. String? returnUrl,
  6. String? expiredUrl,
  7. String? notificationUrl,
  8. int? taxCents,
  9. bool? enableLateFine,
  10. String? latePaymentFine,
  11. bool? enableProportionalDailyTax,
  12. int? discountCents,
  13. String? customerId,
  14. bool? ignoreDueDateMail,
  15. String? subscriptionId,
  16. String? paymentMethod,
  17. int? credits,
  18. List<Logs>? logs,
  19. bool? enableEarlyPaymentDiscount,
  20. List<EarlyPaymentDiscounts>? earlyPaymentDiscounts,
  21. List<CustomVariables>? customVariables,
})

Implementation

InvoiceRequestMessage copyWith({
  String? email,
  String? dueDate,
  List<Item>? items,
  PayerModel? payer,
  String? returnUrl,
  String? expiredUrl,
  String? notificationUrl,
  int? taxCents,
  bool? enableLateFine,
  String? latePaymentFine,
  bool? enableProportionalDailyTax,
  int? discountCents,
  String? customerId,
  bool? ignoreDueDateMail,
  String? subscriptionId,
  String? paymentMethod,
  int? credits,
  List<Logs>? logs,
  bool? enableEarlyPaymentDiscount,
  List<EarlyPaymentDiscounts>? earlyPaymentDiscounts,
  List<CustomVariables>? customVariables,
}) {
  return InvoiceRequestMessage(
    email: email ?? this.email,
    dueDate: dueDate ?? this.dueDate,
    items: items ?? this.items,
    payer: payer ?? this.payer,
    returnUrl: returnUrl ?? this.returnUrl,
    expiredUrl: expiredUrl ?? this.expiredUrl,
    notificationUrl: notificationUrl ?? this.notificationUrl,
    taxCents: taxCents ?? this.taxCents,
    enableLateFine: enableLateFine ?? this.enableLateFine,
    latePaymentFine: latePaymentFine ?? this.latePaymentFine,
    enableProportionalDailyTax: enableProportionalDailyTax ?? this.enableProportionalDailyTax,
    discountCents: discountCents ?? this.discountCents,
    customerId: customerId ?? this.customerId,
    ignoreDueDateMail: ignoreDueDateMail ?? this.ignoreDueDateMail,
    subscriptionId: subscriptionId ?? this.subscriptionId,
    paymentMethod: paymentMethod ?? this.paymentMethod,
    credits: credits ?? this.credits,
    logs: logs ?? this.logs,
    enableEarlyPaymentDiscount: enableEarlyPaymentDiscount ?? this.enableEarlyPaymentDiscount,
    earlyPaymentDiscounts: earlyPaymentDiscounts ?? this.earlyPaymentDiscounts,
    customVariables: customVariables ?? this.customVariables,
  );
}