Skip to content

Commit

Permalink
rename subscriptionPayment
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Dec 8, 2024
1 parent 696219d commit e95550a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tgbotapi.core/api/tgbotapi.core.api
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit e95550a

Please sign in to comment.