-
-
Notifications
You must be signed in to change notification settings - Fork 688
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 #1398 from TelegramBots/develop
Bot API 7.7
- Loading branch information
Showing
7 changed files
with
41 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace Telegram.Bot.Types.Payments; | ||
|
||
/// <summary>This object contains basic information about a refunded payment.</summary> | ||
public partial class RefundedPayment | ||
{ | ||
/// <summary>Three-letter ISO 4217 <a href="https://core.telegram.org/bots/payments#supported-currencies">currency</a> code, or “XTR” for payments in <a href="https://t.me/BotNews/90">Telegram Stars</a>. Currently, always “XTR”</summary> | ||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)] | ||
public string Currency { get; set; } = default!; | ||
|
||
/// <summary>Total refunded price in the <em>smallest units</em> of the currency (integer, <b>not</b> float/double). For example, for a price of <c>US$ 1.45</c>, <c><see cref="TotalAmount">TotalAmount</see> = 145</c>. See the <em>exp</em> parameter in <a href="https://core.telegram.org/bots/payments/currencies.json">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</summary> | ||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)] | ||
public int TotalAmount { get; set; } | ||
|
||
/// <summary>Bot-specified invoice payload</summary> | ||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)] | ||
public string InvoicePayload { get; set; } = default!; | ||
|
||
/// <summary>Telegram payment identifier</summary> | ||
[JsonIgnore(Condition = JsonIgnoreCondition.Never)] | ||
public string TelegramPaymentChargeId { get; set; } = default!; | ||
|
||
/// <summary><em>Optional</em>. Provider payment identifier</summary> | ||
public string? ProviderPaymentChargeId { get; set; } | ||
} |
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