copyWith method

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

Implementation

MessagePaymentSuccessfulBot copyWith({
  String? currency,
  int? totalAmount,
  int? subscriptionUntilDate,
  bool? isRecurring,
  bool? isFirstRecurring,
  String? invoicePayload,
  String? shippingOptionId,
  OrderInfo? orderInfo,
  String? telegramPaymentChargeId,
  String? providerPaymentChargeId,
}) =>
    MessagePaymentSuccessfulBot(
      currency: currency ?? this.currency,
      totalAmount: totalAmount ?? this.totalAmount,
      subscriptionUntilDate:
          subscriptionUntilDate ?? this.subscriptionUntilDate,
      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,
    );