copyWith method
ShopifySharpTransaction
copyWith({
- double? amount,
- String? authorization,
- DateTime? authorizationExpiresAt,
- DateTime? createdAt,
- int? deviceId,
- String? gateway,
- String? sourceName,
- String? source,
- ShopifySharpPaymentDetails? paymentDetails,
- String? kind,
- int? orderId,
- dynamic receipt,
- String? errorCode,
- String? status,
- bool? test,
- int? userId,
- String? currency,
- String? message,
- int? locationId,
- int? parentId,
- DateTime? processedAt,
- double? maximumRefundable,
- ShopifySharpCurrencyExchangeAdjustment? currencyExchangeAdjustment,
- ShopifySharpPaymentsRefundAttributes? paymentsRefundAttributes,
- String? paymentId,
- ShopifySharpPriceSet? totalUnsettledSet,
- int? id,
- String? adminGraphqlApiId,
Implementation
ShopifySharpTransaction copyWith({
double? amount,
String? authorization,
DateTime? authorizationExpiresAt,
DateTime? createdAt,
int? deviceId,
String? gateway,
String? sourceName,
String? source,
ShopifySharpPaymentDetails? paymentDetails,
String? kind,
int? orderId,
dynamic receipt,
String? errorCode,
String? status,
bool? test,
int? userId,
String? currency,
String? message,
int? locationId,
int? parentId,
DateTime? processedAt,
double? maximumRefundable,
ShopifySharpCurrencyExchangeAdjustment? currencyExchangeAdjustment,
ShopifySharpPaymentsRefundAttributes? paymentsRefundAttributes,
String? paymentId,
ShopifySharpPriceSet? totalUnsettledSet,
int? id,
String? adminGraphqlApiId,
}) {
return ShopifySharpTransaction(
amount: amount ?? this.amount,
authorization: authorization ?? this.authorization,
authorizationExpiresAt:
authorizationExpiresAt ?? this.authorizationExpiresAt,
createdAt: createdAt ?? this.createdAt,
deviceId: deviceId ?? this.deviceId,
gateway: gateway ?? this.gateway,
sourceName: sourceName ?? this.sourceName,
source: source ?? this.source,
paymentDetails: paymentDetails ?? this.paymentDetails,
kind: kind ?? this.kind,
orderId: orderId ?? this.orderId,
receipt: receipt ?? this.receipt,
errorCode: errorCode ?? this.errorCode,
status: status ?? this.status,
test: test ?? this.test,
userId: userId ?? this.userId,
currency: currency ?? this.currency,
message: message ?? this.message,
locationId: locationId ?? this.locationId,
parentId: parentId ?? this.parentId,
processedAt: processedAt ?? this.processedAt,
maximumRefundable: maximumRefundable ?? this.maximumRefundable,
currencyExchangeAdjustment:
currencyExchangeAdjustment ?? this.currencyExchangeAdjustment,
paymentsRefundAttributes:
paymentsRefundAttributes ?? this.paymentsRefundAttributes,
paymentId: paymentId ?? this.paymentId,
totalUnsettledSet: totalUnsettledSet ?? this.totalUnsettledSet,
id: id ?? this.id,
adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
);
}