-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
61,467 additions
and
13 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
31 changes: 31 additions & 0 deletions
31
core/src/generated/kotlin/io/heapy/kotbot/bot/model/AffiliateInfo.kt
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,31 @@ | ||
package io.heapy.kotbot.bot.model | ||
|
||
import kotlin.Int | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* Contains information about the affiliate that received a commission via this transaction. | ||
*/ | ||
@Serializable | ||
public data class AffiliateInfo( | ||
/** | ||
* *Optional*. The bot or the user that received an affiliate commission if it was received by a bot or a user | ||
*/ | ||
public val affiliate_user: User? = null, | ||
/** | ||
* *Optional*. The chat that received an affiliate commission if it was received by a chat | ||
*/ | ||
public val affiliate_chat: Chat? = null, | ||
/** | ||
* The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users | ||
*/ | ||
public val commission_per_mille: Int, | ||
/** | ||
* Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds | ||
*/ | ||
public val amount: Int, | ||
/** | ||
* *Optional*. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds | ||
*/ | ||
public val nanostar_amount: Int? = null, | ||
) |
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
24 changes: 24 additions & 0 deletions
24
core/src/generated/kotlin/io/heapy/kotbot/bot/model/TransactionPartnerAffiliateProgram.kt
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 @@ | ||
package io.heapy.kotbot.bot.model | ||
|
||
import kotlin.Int | ||
import kotlin.String | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* Describes the affiliate program that issued the affiliate commission received via this transaction. | ||
*/ | ||
@Serializable | ||
public data class TransactionPartnerAffiliateProgram( | ||
/** | ||
* Type of the transaction partner, always "affiliate_program" | ||
*/ | ||
public val type: String, | ||
/** | ||
* *Optional*. Information about the bot that sponsored the affiliate program | ||
*/ | ||
public val sponsor_user: User? = null, | ||
/** | ||
* The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users | ||
*/ | ||
public val commission_per_mille: Int, | ||
) : TransactionPartner |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
group=io.heapy.kotbot | ||
version=1.1.0 | ||
version=1.2.0 | ||
kotlin.code.style=official |