copyWithWrapped method
WebApiModulesBillingInvoiceCreditInvoiceRequest
copyWithWrapped({
- Wrapped<
String?> ? invoiceId, - Wrapped<
double?> ? percent, - Wrapped<
double?> ? amount, - Wrapped<
bool?> ? allocate, - Wrapped<
double?> ? usageDays, - Wrapped<
String?> ? notes, - Wrapped<
bool?> ? taxOnly, - Wrapped<
DateTime?> ? creditFromDate, - Wrapped<
DateTime?> ? creditToDate, - Wrapped<
String?> ? creditMethod, - Wrapped<
bool?> ? adjustCost,
Implementation
WebApiModulesBillingInvoiceCreditInvoiceRequest copyWithWrapped(
{Wrapped<String?>? invoiceId,
Wrapped<double?>? percent,
Wrapped<double?>? amount,
Wrapped<bool?>? allocate,
Wrapped<double?>? usageDays,
Wrapped<String?>? notes,
Wrapped<bool?>? taxOnly,
Wrapped<DateTime?>? creditFromDate,
Wrapped<DateTime?>? creditToDate,
Wrapped<String?>? creditMethod,
Wrapped<bool?>? adjustCost}) {
return WebApiModulesBillingInvoiceCreditInvoiceRequest(
invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
percent: (percent != null ? percent.value : this.percent),
amount: (amount != null ? amount.value : this.amount),
allocate: (allocate != null ? allocate.value : this.allocate),
usageDays: (usageDays != null ? usageDays.value : this.usageDays),
notes: (notes != null ? notes.value : this.notes),
taxOnly: (taxOnly != null ? taxOnly.value : this.taxOnly),
creditFromDate: (creditFromDate != null
? creditFromDate.value
: this.creditFromDate),
creditToDate:
(creditToDate != null ? creditToDate.value : this.creditToDate),
creditMethod:
(creditMethod != null ? creditMethod.value : this.creditMethod),
adjustCost: (adjustCost != null ? adjustCost.value : this.adjustCost));
}