CharityDonation

@Serializable
data class CharityDonation(val id: String, val campaignId: String, val userId: String, val userLogin: String, val userName: String, val amount: CharityAmount)

Represents a donation to a charity campaign.

See also

Constructors

Link copied to clipboard
constructor(id: String, campaignId: String, userId: String, userLogin: String, userName: String, amount: CharityAmount)

Properties

Link copied to clipboard

an object that contains the amount of money that the user donated.

Link copied to clipboard
@SerialName(value = "campaign_id")
val campaignId: String

an ID that identifies the charity campaign that the donation applies to.

Link copied to clipboard
val id: String

an ID that identifies the donation. The ID is unique across campaigns.

Link copied to clipboard
@SerialName(value = "user_id")
val userId: String

an ID that identifies a user that donated money to the campaign.

Link copied to clipboard
@SerialName(value = "user_login")
val userLogin: String

the user's login name.

Link copied to clipboard
@SerialName(value = "user_name")
val userName: String

the user's display name.