GiftResaleParameters class
Describes parameters of a unique gift available for resale
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
Properties
- canBeManaged → bool
-
canBeManaged True, if the sale of the gift is managed by the current
user. If upgradedGift.uses_on_chain_resale is true, then the sale can be
canceled using getGiftOnChainDelistingTransaction, and the price can be
changed using getGiftOnChainListingTransaction if is_fixed_on_chain is
true. Otherwise, the price can be changed and the sale can be canceled
using setGiftResalePrice
final
- gramAmount → int
-
gramAmount Exact resale price of the gift, in the smallest units of TON
Grams; must be passed to getGiftOnChainPurchaseTransaction if
upgradedGift.uses_on_chain_resale is true
final
- gramCentCount → int
-
gramCentCount Resale price of the gift in 1/100 of a TON Gram
final
- gramOnly → bool
-
gramOnly True, if the gift can be bought only using Grams
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isFixedOnChain → bool
-
isFixedOnChain True, if the gift is sold on-chain using a fixed-price
sale contract
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starCount → int
-
starCount Resale price of the gift in Telegram Stars
final
Methods
-
copyWith(
{int? starCount, int? gramCentCount, int? gramAmount, bool? gramOnly, bool? isFixedOnChain, bool? canBeManaged}) → GiftResaleParameters -
Available on GiftResaleParameters, provided by the GiftResaleParametersExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → GiftResaleParameters?
Constants
- constructor → const String