copyWithWrapped method

ShopifySharpRefundOrderAdjustment copyWithWrapped({
  1. Wrapped<int?>? orderId,
  2. Wrapped<int?>? refundId,
  3. Wrapped<double?>? amount,
  4. Wrapped<double?>? taxAmount,
  5. Wrapped<String?>? kind,
  6. Wrapped<String?>? reason,
  7. Wrapped<ShopifySharpPriceSet?>? amountSet,
  8. Wrapped<ShopifySharpPriceSet?>? taxAmountSet,
  9. Wrapped<int?>? id,
  10. Wrapped<String?>? adminGraphqlApiId,
})

Implementation

ShopifySharpRefundOrderAdjustment copyWithWrapped({
  Wrapped<int?>? orderId,
  Wrapped<int?>? refundId,
  Wrapped<double?>? amount,
  Wrapped<double?>? taxAmount,
  Wrapped<String?>? kind,
  Wrapped<String?>? reason,
  Wrapped<ShopifySharpPriceSet?>? amountSet,
  Wrapped<ShopifySharpPriceSet?>? taxAmountSet,
  Wrapped<int?>? id,
  Wrapped<String?>? adminGraphqlApiId,
}) {
  return ShopifySharpRefundOrderAdjustment(
    orderId: (orderId != null ? orderId.value : this.orderId),
    refundId: (refundId != null ? refundId.value : this.refundId),
    amount: (amount != null ? amount.value : this.amount),
    taxAmount: (taxAmount != null ? taxAmount.value : this.taxAmount),
    kind: (kind != null ? kind.value : this.kind),
    reason: (reason != null ? reason.value : this.reason),
    amountSet: (amountSet != null ? amountSet.value : this.amountSet),
    taxAmountSet: (taxAmountSet != null
        ? taxAmountSet.value
        : this.taxAmountSet),
    id: (id != null ? id.value : this.id),
    adminGraphqlApiId: (adminGraphqlApiId != null
        ? adminGraphqlApiId.value
        : this.adminGraphqlApiId),
  );
}