copyWith method

ShopifySharpTransaction copyWith({
  1. double? amount,
  2. String? authorization,
  3. DateTime? authorizationExpiresAt,
  4. DateTime? createdAt,
  5. int? deviceId,
  6. String? gateway,
  7. String? sourceName,
  8. String? source,
  9. ShopifySharpPaymentDetails? paymentDetails,
  10. String? kind,
  11. int? orderId,
  12. dynamic receipt,
  13. String? errorCode,
  14. String? status,
  15. bool? test,
  16. int? userId,
  17. String? currency,
  18. String? message,
  19. int? locationId,
  20. int? parentId,
  21. DateTime? processedAt,
  22. double? maximumRefundable,
  23. ShopifySharpCurrencyExchangeAdjustment? currencyExchangeAdjustment,
  24. ShopifySharpPaymentsRefundAttributes? paymentsRefundAttributes,
  25. String? paymentId,
  26. ShopifySharpPriceSet? totalUnsettledSet,
  27. int? id,
  28. 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,
  );
}