copyWith method

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

Implementation

WebApiApplyBottomLineDiscountPercentRequest copyWith({
  String? orderId,
  String? purchaseOrderId,
  String? invoiceId,
  String? recType,
  bool? subs,
  double? discountPercent,
  String? moduleType,
}) {
  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,
    moduleType: moduleType ?? this.moduleType,
  );
}