1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 00:27:14 +00:00

rename subscriptionPayment

This commit is contained in:
InsanusMokrassar 2024-12-08 13:24:34 +06:00
parent 696219df24
commit e95550a6eb
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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,