copyWithWrapped method

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

Implementation

WebApiApplyBottomLineDiscountPercentRequest copyWithWrapped(
    {Wrapped<String?>? orderId,
    Wrapped<String?>? purchaseOrderId,
    Wrapped<String?>? invoiceId,
    Wrapped<String?>? recType,
    Wrapped<bool?>? subs,
    Wrapped<double?>? discountPercent}) {
  return WebApiApplyBottomLineDiscountPercentRequest(
      orderId: (orderId != null ? orderId.value : this.orderId),
      purchaseOrderId: (purchaseOrderId != null
          ? purchaseOrderId.value
          : this.purchaseOrderId),
      invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
      recType: (recType != null ? recType.value : this.recType),
      subs: (subs != null ? subs.value : this.subs),
      discountPercent: (discountPercent != null
          ? discountPercent.value
          : this.discountPercent));
}