copyWith method

  1. @override
MessagePaymentSuccessfulBot copyWith({
  1. String? currency,
  2. int? totalAmount,
  3. bool? isRecurring,
  4. bool? isFirstRecurring,
  5. String? invoicePayload,
  6. String? shippingOptionId,
  7. OrderInfo? orderInfo,
  8. String? telegramPaymentChargeId,
  9. String? providerPaymentChargeId,
})
override

Implementation

@override
MessagePaymentSuccessfulBot copyWith({
  String? currency,
  int? totalAmount,
  bool? isRecurring,
  bool? isFirstRecurring,
  String? invoicePayload,
  String? shippingOptionId,
  OrderInfo? orderInfo,
  String? telegramPaymentChargeId,
  String? providerPaymentChargeId,
}) =>
    MessagePaymentSuccessfulBot(
      currency: currency ?? this.currency,
      totalAmount: totalAmount ?? this.totalAmount,
      isRecurring: isRecurring ?? this.isRecurring,
      isFirstRecurring: isFirstRecurring ?? this.isFirstRecurring,
      invoicePayload: invoicePayload ?? this.invoicePayload,
      shippingOptionId: shippingOptionId ?? this.shippingOptionId,
      orderInfo: orderInfo ?? this.orderInfo,
      telegramPaymentChargeId:
          telegramPaymentChargeId ?? this.telegramPaymentChargeId,
      providerPaymentChargeId:
          providerPaymentChargeId ?? this.providerPaymentChargeId,
    );