1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 08:37:12 +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 getRecurringInfo ()Ldev/inmo/tgbotapi/types/payments/RecurringInfo;
public final fun getShippingOptionId ()Ljava/lang/String; public final fun getShippingOptionId ()Ljava/lang/String;
public final fun getSubscriptionExpirationDate ()Ldev/inmo/tgbotapi/types/TelegramDate; 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 final fun getTelegramPaymentChargeId-voYifgM ()Ljava/lang/String;
public fun hashCode ()I public fun hashCode ()I
public final fun isFirstPeriodPayment ()Ljava/lang/Boolean; public final fun isFirstPeriodPayment ()Ljava/lang/Boolean;
public final fun isSubscriptionPayment ()Ljava/lang/Boolean;
public fun toString ()Ljava/lang/String; public fun toString ()Ljava/lang/String;
} }

View File

@ -16,7 +16,7 @@ data class SuccessfulPayment(
@SerialName(subscriptionExpirationDateField) @SerialName(subscriptionExpirationDateField)
val subscriptionExpirationDate: TelegramDate? = null, val subscriptionExpirationDate: TelegramDate? = null,
@SerialName(isRecurringField) @SerialName(isRecurringField)
val subscriptionPayment: Boolean? = null, val isSubscriptionPayment: Boolean? = null,
@SerialName(isFirstRecurringField) @SerialName(isFirstRecurringField)
val isFirstPeriodPayment: Boolean? = null, val isFirstPeriodPayment: Boolean? = null,
@SerialName(telegramPaymentChargeIdField) @SerialName(telegramPaymentChargeIdField)
@ -29,7 +29,7 @@ data class SuccessfulPayment(
val orderInfo: OrderInfo? = null val orderInfo: OrderInfo? = null
) : Amounted, Currencied { ) : Amounted, Currencied {
val recurringInfo: RecurringInfo? by lazy { val recurringInfo: RecurringInfo? by lazy {
if (subscriptionPayment == true && subscriptionExpirationDate != null) { if (isSubscriptionPayment == true && subscriptionExpirationDate != null) {
RecurringInfo( RecurringInfo(
subscriptionExpirationDate, subscriptionExpirationDate,
isFirstPeriodPayment == true, isFirstPeriodPayment == true,