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