copyWith method

WebApiApplyBottomLineDiscountPercentRequest copyWith({
  1. String? orderId,
  2. String? purchaseOrderId,
  3. String? invoiceId,
  4. String? recType,
  5. bool? subs,
  6. double? discountPercent,
})

Implementation

WebApiApplyBottomLineDiscountPercentRequest copyWith(
    {String? orderId,
    String? purchaseOrderId,
    String? invoiceId,
    String? recType,
    bool? subs,
    double? discountPercent}) {
  return WebApiApplyBottomLineDiscountPercentRequest(
      orderId: orderId ?? this.orderId,
      purchaseOrderId: purchaseOrderId ?? this.purchaseOrderId,
      invoiceId: invoiceId ?? this.invoiceId,
      recType: recType ?? this.recType,
      subs: subs ?? this.subs,
      discountPercent: discountPercent ?? this.discountPercent);
}