mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 08:37:12 +00:00
rename subscriptionPayment
This commit is contained in:
parent
696219df24
commit
e95550a6eb
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user