copyWith method

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

Implementation

ShopifySharpRefundOrderAdjustment copyWith({
  int? orderId,
  int? refundId,
  double? amount,
  double? taxAmount,
  String? kind,
  String? reason,
  ShopifySharpPriceSet? amountSet,
  ShopifySharpPriceSet? taxAmountSet,
  int? id,
  String? adminGraphqlApiId,
}) {
  return ShopifySharpRefundOrderAdjustment(
    orderId: orderId ?? this.orderId,
    refundId: refundId ?? this.refundId,
    amount: amount ?? this.amount,
    taxAmount: taxAmount ?? this.taxAmount,
    kind: kind ?? this.kind,
    reason: reason ?? this.reason,
    amountSet: amountSet ?? this.amountSet,
    taxAmountSet: taxAmountSet ?? this.taxAmountSet,
    id: id ?? this.id,
    adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
  );
}