copyWithWrapped method

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