copyWith method

ShopifySharpRefund copyWith({
  1. int? orderId,
  2. DateTime? createdAt,
  3. bool? notify,
  4. ShopifySharpShipping? shipping,
  5. String? currency,
  6. List<ShopifySharpRefundOrderAdjustment>? orderAdjustments,
  7. DateTime? processedAt,
  8. String? note,
  9. String? discrepancyReason,
  10. List<ShopifySharpRefundLineItem>? refundLineItems,
  11. List<ShopifySharpTransaction>? transactions,
  12. int? userId,
  13. List<ShopifySharpRefundDuty>? duties,
  14. List<ShopifySharpRefundDutyType>? refundDuties,
  15. ShopifySharpEntitiesReturn? $return,
  16. int? id,
  17. String? adminGraphqlApiId,
})

Implementation

ShopifySharpRefund copyWith({
  int? orderId,
  DateTime? createdAt,
  bool? notify,
  ShopifySharpShipping? shipping,
  String? currency,
  List<ShopifySharpRefundOrderAdjustment>? orderAdjustments,
  DateTime? processedAt,
  String? note,
  String? discrepancyReason,
  List<ShopifySharpRefundLineItem>? refundLineItems,
  List<ShopifySharpTransaction>? transactions,
  int? userId,
  List<ShopifySharpRefundDuty>? duties,
  List<ShopifySharpRefundDutyType>? refundDuties,
  ShopifySharpEntitiesReturn? $return,
  int? id,
  String? adminGraphqlApiId,
}) {
  return ShopifySharpRefund(
    orderId: orderId ?? this.orderId,
    createdAt: createdAt ?? this.createdAt,
    notify: notify ?? this.notify,
    shipping: shipping ?? this.shipping,
    currency: currency ?? this.currency,
    orderAdjustments: orderAdjustments ?? this.orderAdjustments,
    processedAt: processedAt ?? this.processedAt,
    note: note ?? this.note,
    discrepancyReason: discrepancyReason ?? this.discrepancyReason,
    refundLineItems: refundLineItems ?? this.refundLineItems,
    transactions: transactions ?? this.transactions,
    userId: userId ?? this.userId,
    duties: duties ?? this.duties,
    refundDuties: refundDuties ?? this.refundDuties,
    $return: $return ?? this.$return,
    id: id ?? this.id,
    adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
  );
}