copyWith method

PaywayCreateTransaction copyWith({
  1. String? tranId,
  2. String? reqTime,
  3. double? amount,
  4. List<PaywayTransactionItem>? items,
  5. String? firstname,
  6. String? lastname,
  7. String? phone,
  8. String? email,
  9. String? returnUrl,
  10. String? continueSuccessUrl,
  11. String? returnParams,
  12. double? shipping,
  13. ABAPaymentOption? option,
  14. ABATransactionType? type,
  15. ABATransactionCurrency? currency,
})

Implementation

PaywayCreateTransaction copyWith({
  String? tranId,
  String? reqTime,
  double? amount,
  List<PaywayTransactionItem>? items,
  String? firstname,
  String? lastname,
  String? phone,
  String? email,
  String? returnUrl,
  String? continueSuccessUrl,
  String? returnParams,
  double? shipping,
  ABAPaymentOption? option,
  ABATransactionType? type,
  ABATransactionCurrency? currency,
}) {
  return PaywayCreateTransaction(
    tranId: tranId ?? this.tranId,
    reqTime: reqTime ?? this.reqTime,
    amount: amount ?? this.amount,
    items: items ?? this.items,
    firstname: firstname ?? this.firstname,
    lastname: lastname ?? this.lastname,
    phone: phone ?? this.phone,
    email: email ?? this.email,
    returnUrl: returnUrl ?? this.returnUrl,
    continueSuccessUrl: continueSuccessUrl ?? this.continueSuccessUrl,
    returnParams: returnParams ?? this.returnParams,
    shipping: shipping ?? this.shipping,
    option: option ?? this.option,
    type: type ?? this.type,
    currency: currency ?? this.currency,
  );
}