Skip to content
Sponsorkit
DocsAPIGitHub
Loading…
    Documentation
    • Introduction
    • Getting started
      • Overview
      • Quickstart
    • Install
      • Overview
      • Package managers
      • Supported platforms
      • Verify the install
      • Versions & pinning
      • Build from source
    • Concepts
      • Overview
      • Targets
      • Sign-in & sessions
      • Contribution shape
      • Statuses
      • Organization sponsorships
      • Caching & freshness
      • Error contract
      • Privacy & consent
      • Security model
    • Guides
      • Overview
      • Gate a feature or show an ad
      • Add a sponsor button to a web app
      • Use Sponsorkit in a CLI or desktop app
      • Show a sponsor nag in a CLI
      • Open checkout and detect a new contribution
      • Verify supporters on your backend
      • Testing
      • Handle errors and offline
    • Languages
      • Overview
      • JavaScript / TypeScript
        • Overview
        • Quickstart
        • Configuration
        • Sign-in
        • Contributions
        • Checkout
        • Nag
        • Testing
        • Backend verification
        • Errors and cancellation
        • Platform notes
      • .NET
        • Overview
        • Quickstart
        • Configuration
        • Sign-in
        • Contributions
        • Checkout
        • Nag
        • Testing
        • Backend verification
        • Errors & cancellation
        • Platform notes
      • Python
        • Overview
        • Quickstart
        • Configuration
        • Sign-in
        • Contributions
        • Checkout
        • Nag
        • Testing
        • Backend verification
        • Errors and cancellation
        • Platform notes
      • Go
        • Overview
        • Quickstart
        • Configuration
        • Sign-in
        • Contributions
        • Checkout
        • Nag
        • Testing
        • Backend verification
        • Errors and cancellation
        • Platform notes
      • Rust
        • Overview
        • Quickstart
        • Configuration
        • Sign-in
        • Contributions
        • Checkout
        • Nag
        • Testing
        • Backend verification
        • Errors & cancellation
        • Platform notes
    • HTTP API & protocol
      • Overview
      • HTTP API
      • Wire protocol
      • Self-hosting
      • FAQ
    • API reference
      • Overview
      • JavaScript / TypeScript
        • Overview
        • @sponsorkit/sdk
          • Overview
          • FinancialContribution
          • Sponsorkit
          • SponsorkitCore
          • SponsorkitError
          • CheckoutOptions
          • Contribution
          • ContributionResult
          • Identity
          • Money
          • Nag
          • NagDueOptions
          • NagOptions
          • NagState
          • OpenCheckoutOptions
          • SignInOptions
          • SponsorEntity
          • SponsorkitCoreOptions
          • SponsorkitOptions
          • SponsorkitStorage
          • StorageFile
          • Supporter
          • Target
          • TargetInfo
          • TargetOptions
          • TargetTier
          • WebStorageLike
          • CheckoutResult
          • ContributionKind
          • ContributionStatus
          • Env
          • FetchLike
          • Frequency
          • MockOption
          • MockPreset
          • NagPredicate
          • Provider
          • SponsorkitErrorCode
        • @sponsorkit/sdk/node
          • Overview
          • Sponsorkit
          • NodeOpenCheckoutOptions
          • NodeSignInOptions
          • SponsorkitOptions
          • SignInMethod
        • @sponsorkit/sdk/server
          • Overview
          • VerifySessionOptions
        • @sponsorkit/sdk/elements
          • Overview
          • SponsorkitBadgeElement
          • SponsorkitButtonElement
      • .NET
        • Overview
        • CheckoutOptions
        • CheckoutResult
        • CheckoutStatus
        • CheckoutUrlOptions
        • Contribution
        • ContributionKinds
        • ContributionResult
        • ContributionStatuses
        • Frequencies
        • Identity
        • ISponsorkitStorage
        • Money
        • NagOptions
        • Providers
        • SignInMethod
        • SignInOptions
        • SponsorEntity
        • SponsorkitClient
        • SponsorkitError
        • SponsorkitErrorCodes
        • SponsorkitMock
        • SponsorkitNag
        • SponsorkitOptions
        • SponsorkitServer
        • Supporter
        • Tier
        • VerifySessionOptions
      • Python
        • Overview
        • Sponsorkit
        • ContributionResult
        • Contribution
        • CheckoutResult
        • SponsorkitError
        • Nag
        • FileStorage
        • Identity
        • MemoryStorage
        • MockData
        • Money
        • SponsorEntity
        • Storage
        • Supporter
        • Target
        • Tier
        • Type aliases
          • CancelEvent
          • ErrorCode
          • Frequency
          • Kind
          • MockPreset
          • Provider
          • SignInMethod
          • Status
          • TargetsArg
        • Modules
          • sponsorkit
          • sponsorkit.client
          • sponsorkit.errors
          • sponsorkit.mock
          • sponsorkit.models
          • sponsorkit.nag
          • sponsorkit.pkce
          • sponsorkit.server
          • sponsorkit.storage
          • sponsorkit.targets
      • Go
        • Overview
        • Client
        • Options
        • Result
        • Contribution
        • Error
        • ErrorCode
        • Functions
        • Constants and variables
        • CheckoutOptions
        • CheckoutResult
        • CheckoutStatus
        • DirStorage
        • DueOption
        • Frequency
        • GetOption
        • Identity
        • Kind
        • Mock
        • Money
        • Nag
        • NagOptions
        • Provider
        • SignInMethod
        • SignInOptions
        • SponsorEntity
        • Status
        • Storage
        • Supporter
        • Targets
        • Tier
        • VerifyOption
        • Via
      • Rust
        • Overview
        • Sponsorkit
        • Options
        • Error
        • ErrorCode
        • BoxFuture
        • CheckoutOptions
        • CheckoutOutcome
        • Contribution
        • ContributionResult
        • DueOptions
        • Flag
        • Frequency
        • GetOptions
        • Identity
        • Kind
        • Mock
        • MockPreset
        • Money
        • Nag
        • NagOptions
        • OpenBrowserHook
        • PromptForCodeHook
        • Provider
        • Result
        • SignInMethod
        • SignInOptions
        • SponsorEntity
        • SponsorType
        • Status
        • Supporter
        • Target
        • Targets
        • TargetSet
        • Tier
        • Via
        • sponsorkit::server
          • Overview
          • VerifyOptions
    1. Docs
    2. API reference
    3. JavaScript / TypeScript
    4. @sponsorkit/sdk
    5. Frequency

    Frequency

    How often a contribution is charged.

    How often a contribution is charged.

    import type { Frequency } from "@sponsorkit/sdk";
    
    type Frequency = "one_time" | "monthly" | "yearly"

    Type alias, exported from @sponsorkit/sdk, @sponsorkit/sdk/node, @sponsorkit/sdk/server.

    View source on GitHub

    PreviousFetchLikeNextMockOption

    Sponsorkit is open source (MIT). No cookies, no trackers, no stored data.

    DocsProtocolSource