-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #390 from mircoianese/api_v7.7
BOT API v7.7
- Loading branch information
Showing
6 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
library/src/main/java/com/pengrad/telegrambot/model/RefundedPayment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
package com.pengrad.telegrambot.model; | ||
|
||
import com.pengrad.telegrambot.model.stars.StarTransaction; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
public class RefundedPayment implements Serializable { | ||
|
||
private final static long serialVersionUID = 0L; | ||
|
||
private String currency; | ||
|
||
private Integer total_amount; | ||
|
||
private String invoice_payload; | ||
|
||
private String telegram_payment_charge_id; | ||
|
||
private String provider_payment_charge_id; | ||
|
||
public String currency() { | ||
return currency; | ||
} | ||
|
||
public Integer totalAmount() { | ||
return total_amount; | ||
} | ||
|
||
public String invoicePayload() { | ||
return invoice_payload; | ||
} | ||
|
||
public String telegramPaymentChargeId() { | ||
return telegram_payment_charge_id; | ||
} | ||
|
||
public String providerPaymentChargeId() { | ||
return provider_payment_charge_id; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
|
||
RefundedPayment that = (RefundedPayment) o; | ||
return Objects.equals(currency, that.currency) && | ||
Objects.equals(total_amount, that.total_amount) && | ||
Objects.equals(invoice_payload, that.invoice_payload) && | ||
Objects.equals(telegram_payment_charge_id, that.telegram_payment_charge_id) && | ||
Objects.equals(provider_payment_charge_id, that.provider_payment_charge_id); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(currency, total_amount, invoice_payload, telegram_payment_charge_id, provider_payment_charge_id); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "RefundedPayment{" + | ||
"currency='" + currency + "'," + | ||
"total_amount='" + total_amount + "'," + | ||
"invoice_payload='" + invoice_payload + "'," + | ||
"telegram_payment_charge_id='" + telegram_payment_charge_id + "'," + | ||
"provider_payment_charge_id='" + provider_payment_charge_id + "'" + | ||
'}'; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters