entitlements

package
v2.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package entitlements provides internal functionality for managing entitlemnets via combinations of pkg/entitlements and pkg/catalog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllMonthlyPrices

func AllMonthlyPrices(useSandbox bool) []entitlements.Price

AllMonthlyPrices returns prices for all monthly modules regardless of trial status

func FreeMonthlyPriceIDs

func FreeMonthlyPriceIDs(useSandbox bool) []string

FreeMonthlyPriceIDs returns Stripe price IDs for monthly prices that cost nothing. These are the modules an organization keeps when its subscription is downgraded rather than cancelled, so the organization stays active and can recover by adding a payment method

func TrialMonthlyPriceIDs

func TrialMonthlyPriceIDs(useSandbox bool) []string

TrialMonthlyPriceIDs returns Stripe price IDs for monthly prices of modules included with trial subscriptions

func TrialMonthlyPrices

func TrialMonthlyPrices(useSandbox bool) []entitlements.Price

TrialMonthlyPrices returns prices for monthly modules included with trial subscriptions

Types

This section is empty.

Directories

Path Synopsis
Package entmapping provides some builders to assist in the type mapping between Stripe + the external generic definitions in pkg/catalog and pkg/entitlements and the internal ent generated types not intended for external use, but rather as a helper for the Openlane core application
Package entmapping provides some builders to assist in the type mapping between Stripe + the external generic definitions in pkg/catalog and pkg/entitlements and the internal ent generated types not intended for external use, but rather as a helper for the Openlane core application
code generated by local feature mapping, DO NOT EDIT.
code generated by local feature mapping, DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL