copyWithWrapped method
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,
})
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),
);
}