copyWith method

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

Implementation

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