payments.getStarGiftUpgradeAttributes
Obtains the full list of just the collectible attributes that may appear for a gift type once it's upgraded to a collectible gift ». The result may also include starGiftAttributeModel constructors with the crafted flag set: these models are reserved for crafting » and should be filtered out from regular upgrade previews (and vice versa).
func (c *Client) PaymentsGetStarGiftUpgradeAttributes(ctx context.Context, giftid int64) (*PaymentsStarGiftUpgradeAttributes, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetStarGiftUpgradeAttributes(ctx, giftid)
if err != nil {
return err
}
_ = res // *PaymentsStarGiftUpgradeAttributes
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
GiftID | int64 | yes | Non-collectible base gift ID, from starGift.id |
Returns
*PaymentsStarGiftUpgradeAttributes
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STARGIFT_INVALID | The passed gift is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getStarGiftUpgradeAttributes#6d038b58