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