From e95550a6ebe1abb88e5c63b641f5c2e0f81fa819 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 8 Dec 2024 13:24:34 +0600 Subject: [PATCH] rename subscriptionPayment --- tgbotapi.core/api/tgbotapi.core.api | 2 +- .../dev/inmo/tgbotapi/types/payments/SuccessfulPayment.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tgbotapi.core/api/tgbotapi.core.api b/tgbotapi.core/api/tgbotapi.core.api index 9f005a2efb..681361e16a 100644 --- a/tgbotapi.core/api/tgbotapi.core.api +++ b/tgbotapi.core/api/tgbotapi.core.api @@ -25111,10 +25111,10 @@ public final class dev/inmo/tgbotapi/types/payments/SuccessfulPayment : dev/inmo public final fun getRecurringInfo ()Ldev/inmo/tgbotapi/types/payments/RecurringInfo; public final fun getShippingOptionId ()Ljava/lang/String; public final fun getSubscriptionExpirationDate ()Ldev/inmo/tgbotapi/types/TelegramDate; - public final fun getSubscriptionPayment ()Ljava/lang/Boolean; public final fun getTelegramPaymentChargeId-voYifgM ()Ljava/lang/String; public fun hashCode ()I public final fun isFirstPeriodPayment ()Ljava/lang/Boolean; + public final fun isSubscriptionPayment ()Ljava/lang/Boolean; public fun toString ()Ljava/lang/String; } diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/SuccessfulPayment.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/SuccessfulPayment.kt index 04c3bb22ad..ebf4d9a2c8 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/SuccessfulPayment.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/types/payments/SuccessfulPayment.kt @@ -16,7 +16,7 @@ data class SuccessfulPayment( @SerialName(subscriptionExpirationDateField) val subscriptionExpirationDate: TelegramDate? = null, @SerialName(isRecurringField) - val subscriptionPayment: Boolean? = null, + val isSubscriptionPayment: Boolean? = null, @SerialName(isFirstRecurringField) val isFirstPeriodPayment: Boolean? = null, @SerialName(telegramPaymentChargeIdField) @@ -29,7 +29,7 @@ data class SuccessfulPayment( val orderInfo: OrderInfo? = null ) : Amounted, Currencied { val recurringInfo: RecurringInfo? by lazy { - if (subscriptionPayment == true && subscriptionExpirationDate != null) { + if (isSubscriptionPayment == true && subscriptionExpirationDate != null) { RecurringInfo( subscriptionExpirationDate, isFirstPeriodPayment == true,