Longbridge OpenAPI SDK
    Preparing search index...

    Class RewardRecord

    A reward record from the reward center (prize redemption secrets coupon_secret, cash card codes cash_card_code and shipping contacts are not modelled)

    Index
    • get rewardType(): RewardType

      Reward type: named after the first detail object the server sent (cash, card, prize, in that order), else the server's reward_type code

      Returns RewardType

    • get rewardTypeRaw(): number | null

      The server's numeric code of reward_type, also when it is a code this SDK does not know (reward_type is then Unknown); null when the value is missing or is not a code

      Returns number | null

    • get recordId(): string

      Record ID

      Returns string

    • get activityTitle(): string

      Title of the activity that granted the reward

      Returns string

    • get title(): string

      Reward title

      Returns string

    • get description(): string

      Reward description

      Returns string

    • get cardType(): string

      Coupon type (coupon rewards), e.g. commission

      Returns string

    • get cardStatusRaw(): number | null

      The server's numeric code of card_status, also when it is a code this SDK does not know (card_status is then Unknown); null when the value is missing or is not a code

      Returns number | null

    • get prizeType(): number | null

      Prize type code (gift rewards; 0 = physical goods), none when not set

      Returns number | null

    • get currency(): string

      Currency

      Returns string

    • get statusRaw(): number | null

      The server's numeric code of status, also when it is a code this SDK does not know (status is then Unknown); null when the value is missing or is not a code

      Returns number | null

    • get deliverStatusRaw(): number | null

      The server's numeric code of deliver_status (e.g. 11 where deliver_status reads AddressFilled), also when it is a code this SDK does not know (deliver_status is then Unknown); null when the value is missing or is not a code

      Returns number | null

    • get exitStatus(): number

      Exit status code, as returned by the server

      Returns number

    • get sendTime(): Date | null

      Time the reward was sent

      Returns Date | null

    • get startTime(): Date | null

      Start time

      Returns Date | null

    • get endTime(): Date | null

      End time

      Returns Date | null

    • get effectiveTime(): Date | null

      Effective time

      Returns Date | null

    • get receiveDeadline(): Date | null

      Deadline to claim the reward

      Returns Date | null

    • Returns string

    • Returns any