copyWith method
WebApiModulesBillingInvoiceCreditInvoiceRequest
copyWith(
{ - String? invoiceId,
- double? percent,
- double? amount,
- bool? allocate,
- double? usageDays,
- String? notes,
- bool? taxOnly,
- DateTime? creditFromDate,
- DateTime? creditToDate,
- String? creditMethod,
- bool? adjustCost,
})
Implementation
WebApiModulesBillingInvoiceCreditInvoiceRequest copyWith(
{String? invoiceId,
double? percent,
double? amount,
bool? allocate,
double? usageDays,
String? notes,
bool? taxOnly,
DateTime? creditFromDate,
DateTime? creditToDate,
String? creditMethod,
bool? adjustCost}) {
return WebApiModulesBillingInvoiceCreditInvoiceRequest(
invoiceId: invoiceId ?? this.invoiceId,
percent: percent ?? this.percent,
amount: amount ?? this.amount,
allocate: allocate ?? this.allocate,
usageDays: usageDays ?? this.usageDays,
notes: notes ?? this.notes,
taxOnly: taxOnly ?? this.taxOnly,
creditFromDate: creditFromDate ?? this.creditFromDate,
creditToDate: creditToDate ?? this.creditToDate,
creditMethod: creditMethod ?? this.creditMethod,
adjustCost: adjustCost ?? this.adjustCost);
}