sponsorkit.models

The contribution result shape, identical in every Sponsorkit SDK.

import sponsorkit.models

The contribution result shape, identical in every Sponsorkit SDK.

Attributes use snake_case; ContributionResult.to_dict() and Contribution.to_dict() produce the camelCase JSON used on the wire and in the local storage file.

Exports#

NameKindSummary
CheckoutResultclassThe outcome of Sponsorkit.open_checkout().
ContributionclassA sponsorship (GitHub) or order (Open Collective) to one of the targets.
ContributionResultclassWhat the current user has contributed to the configured targets.
Frequencytype aliasOne of one_time, monthly, yearly.
IdentityclassA provider account the supporter signed in with.
Kindtype aliasOne of recurring, one_time.
MoneyclassAn amount in minor units (cents) and an uppercase ISO 4217 currency.
SponsorEntityclassWho pays: the signed-in user or an organization they belong to.
Statustype aliasOne of active, paused, cancelled, paid, refunded, disputed, failed, pending.
SupporterclassThe signed-in supporter.
TierclassA provider tier.