Contribution
A sponsorship (GitHub) or order (Open Collective), normalized.
On this page
A sponsorship (GitHub) or order (Open Collective), normalized.
import type { Contribution } from "@sponsorkit/sdk";
interface Contribution { … }Interface, exported from @sponsorkit/sdk, @sponsorkit/sdk/node, @sponsorkit/sdk/server.
Properties#
id#
id: stringStable id: con_<provider>_<hash>.
provider#
provider: ProviderType: Provider
target#
target: stringTarget string, e.g. github:octocat.
sponsor#
sponsor: SponsorEntityType: SponsorEntity
via#
via: "direct" | "organization"kind#
kind: ContributionKindType: ContributionKind
frequency#
frequency: FrequencyType: Frequency
status#
status: ContributionStatusType: ContributionStatus
amount#
amount: MoneyType: Money
tier#
tier: { id: string; name: string } | nullflags#
flags: "via_patreon"[]private#
private: booleanstartedAt#
startedAt: string | nullendedAt#
endedAt: string | nulllastChargedAt#
lastChargedAt: string | nullnextChargeAt#
nextChargeAt: string | nulltotalContributed#
totalContributed: Money | nullType: Money