sponsorkit.models
The contribution result shape, identical in every Sponsorkit SDK.
import sponsorkit.modelsThe 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#
| Name | Kind | Summary |
|---|---|---|
CheckoutResult | class | The outcome of Sponsorkit.open_checkout(). |
Contribution | class | A sponsorship (GitHub) or order (Open Collective) to one of the targets. |
ContributionResult | class | What the current user has contributed to the configured targets. |
Frequency | type alias | One of one_time, monthly, yearly. |
Identity | class | A provider account the supporter signed in with. |
Kind | type alias | One of recurring, one_time. |
Money | class | An amount in minor units (cents) and an uppercase ISO 4217 currency. |
SponsorEntity | class | Who pays: the signed-in user or an organization they belong to. |
Status | type alias | One of active, paused, cancelled, paid, refunded, disputed, failed, pending. |
Supporter | class | The signed-in supporter. |
Tier | class | A provider tier. |