@@ -16,6 +16,9 @@ public class SuccessfulPayment implements Serializable {
1616 private OrderInfo order_info ;
1717 private String telegram_payment_charge_id ;
1818 private String provider_payment_charge_id ;
19+ private Integer subscription_expiration_date ;
20+ private Boolean is_recurring ;
21+ private Boolean is_first_recurring ;
1922
2023 public String currency () {
2124 return currency ;
@@ -41,6 +44,18 @@ public String telegramPaymentChargeId() {
4144 return telegram_payment_charge_id ;
4245 }
4346
47+ public Integer subscriptionExpirationDate () {
48+ return subscription_expiration_date ;
49+ }
50+
51+ public Boolean isRecurring () {
52+ return is_recurring ;
53+ }
54+
55+ public Boolean isFirstRecurring () {
56+ return is_first_recurring ;
57+ }
58+
4459 public String providerPaymentChargeId () {
4560 return provider_payment_charge_id ;
4661 }
@@ -61,6 +76,13 @@ public boolean equals(Object o) {
6176 if (order_info != null ? !order_info .equals (that .order_info ) : that .order_info != null ) return false ;
6277 if (telegram_payment_charge_id != null ? !telegram_payment_charge_id .equals (that .telegram_payment_charge_id ) : that .telegram_payment_charge_id != null )
6378 return false ;
79+ if (subscription_expiration_date != null ? !subscription_expiration_date .equals (that .subscription_expiration_date ) : that .subscription_expiration_date != null )
80+ return false ;
81+ if (is_recurring != null ? !is_recurring .equals (that .is_recurring ) : that .is_recurring != null )
82+ return false ;
83+ if (is_first_recurring != null ? !is_first_recurring .equals (that .is_first_recurring ) : that .is_first_recurring != null )
84+ return false ;
85+
6486 return provider_payment_charge_id != null ? provider_payment_charge_id .equals (that .provider_payment_charge_id ) : that .provider_payment_charge_id == null ;
6587
6688 }
@@ -74,6 +96,9 @@ public int hashCode() {
7496 result = 31 * result + (order_info != null ? order_info .hashCode () : 0 );
7597 result = 31 * result + (telegram_payment_charge_id != null ? telegram_payment_charge_id .hashCode () : 0 );
7698 result = 31 * result + (provider_payment_charge_id != null ? provider_payment_charge_id .hashCode () : 0 );
99+ result = 31 * result + (subscription_expiration_date != null ? subscription_expiration_date .hashCode () : 0 );
100+ result = 31 * result + (is_recurring != null ? is_recurring .hashCode () : 0 );
101+ result = 31 * result + (is_first_recurring != null ? is_first_recurring .hashCode () : 0 );
77102 return result ;
78103 }
79104
@@ -87,6 +112,9 @@ public String toString() {
87112 ", order_info=" + order_info +
88113 ", telegram_payment_charge_id='" + telegram_payment_charge_id + '\'' +
89114 ", provider_payment_charge_id='" + provider_payment_charge_id + '\'' +
115+ ", subscription_expiration_date='" + subscription_expiration_date + '\'' +
116+ ", is_recurring='" + is_recurring + '\'' +
117+ ", is_first_recurring='" + is_first_recurring + '\'' +
90118 '}' ;
91119 }
92120}
0 commit comments