Skip to main content

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

NameTypeRequiredDescription
GiftIDint64yesNon-collectible base gift ID, from starGift.id

Returns

*PaymentsStarGiftUpgradeAttributes

Possible errors

CodeTypeDescription
400STARGIFT_INVALIDThe passed gift is invalid.

References