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