copyWith method
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,
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,
);
}