copyWith method

RedeTransactionResponse copyWith({
  1. String? storeName,
  2. String? date,
  3. String? hour,
  4. double? amount,
  5. String? auto,
  6. String? nsu,
  7. String? issuerName,
  8. String? cardHolderName,
  9. String? terminalNumber,
  10. String? cv,
  11. String? aid,
  12. String? arqc,
  13. int? installments,
  14. double? installmentValue,
  15. String? document,
  16. String? operationType,
  17. String? maskedPan,
  18. String? pinTransactionId,
  19. String? paymentType,
  20. String? status,
  21. String? referenceId,
  22. String? transactionNumber,
  23. String? method,
})

Implementation

RedeTransactionResponse copyWith({
  String? storeName,
  String? date,
  String? hour,
  double? amount,
  String? auto,
  String? nsu,
  String? issuerName,
  String? cardHolderName,
  String? terminalNumber,
  String? cv,
  String? aid,
  String? arqc,
  int? installments,
  double? installmentValue,
  String? document,
  String? operationType,
  String? maskedPan,
  String? pinTransactionId,
  String? paymentType,
  String? status,
  String? referenceId,
  String? transactionNumber,
  String? method,
}) {
  return RedeTransactionResponse(
    storeName: storeName ?? this.storeName,
    date: date ?? this.date,
    hour: hour ?? this.hour,
    amount: amount ?? this.amount,
    auto: auto ?? this.auto,
    nsu: nsu ?? this.nsu,
    issuerName: issuerName ?? this.issuerName,
    cardHolderName: cardHolderName ?? this.cardHolderName,
    terminalNumber: terminalNumber ?? this.terminalNumber,
    cv: cv ?? this.cv,
    aid: aid ?? this.aid,
    arqc: arqc ?? this.arqc,
    installments: installments ?? this.installments,
    installmentValue: installmentValue ?? this.installmentValue,
    document: document ?? this.document,
    operationType: operationType ?? this.operationType,
    maskedPan: maskedPan ?? this.maskedPan,
    pinTransactionId: pinTransactionId ?? this.pinTransactionId,
    paymentType: paymentType ?? this.paymentType,
    status: status ?? this.status,
    referenceId: referenceId ?? this.referenceId,
    transactionNumber: transactionNumber ?? this.transactionNumber,
    method: method ?? this.method,
  );
}