Documentation
¶
Overview ¶
Package billing exposes the provider-shaped v2 billing compatibility surface outside the generic ports package.
New code that wants the existing hosted-checkout, webhook, invoicing, and billing-portal contract should depend on this package explicitly instead of importing those types from ports. All identifiers here are aliases to the existing ports exports so migration stays source-compatible for the rest of v2.
This package is compatibility-sensitive, not provider-neutral. Applications that need a different billing model should define an app-owned port or use a dedicated adapter contract instead of widening the stable ports package.
Index ¶
- Constants
- type BillingPortalFlowAfterCompletion
- type BillingPortalFlowAfterCompletionType
- type BillingPortalFlowData
- type BillingPortalFlowSubscriptionUpdateConfirm
- type BillingPortalFlowSubscriptionUpdateConfirmItem
- type BillingPortalFlowType
- type BillingPortalSession
- type BillingPortalSessionInput
- type BillingProvider
- type CheckoutSession
- type CheckoutSessionRequest
- type Customer
- type CustomerAddress
- type CustomerInput
- type Invoice
- type InvoiceInput
- type InvoiceItem
- type InvoiceItemInput
- type InvoiceItemUpdate
- type PaymentMethod
- type PaymentProvider
- type Price
- type SetupIntent
- type SetupIntentInput
- type WebhookEvent
Constants ¶
View Source
const ( BillingPortalFlowTypeSubscriptionUpdateConfirm = ports.BillingPortalFlowTypeSubscriptionUpdateConfirm //nolint:staticcheck // Intentional v2 compatibility alias. BillingPortalFlowAfterCompletionTypeRedirect = ports.BillingPortalFlowAfterCompletionTypeRedirect //nolint:staticcheck // Intentional v2 compatibility alias. )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingPortalFlowAfterCompletion ¶
type BillingPortalFlowAfterCompletion = ports.BillingPortalFlowAfterCompletion //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalFlowAfterCompletionType ¶
type BillingPortalFlowAfterCompletionType = ports.BillingPortalFlowAfterCompletionType //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalFlowData ¶
type BillingPortalFlowData = ports.BillingPortalFlowData //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalFlowSubscriptionUpdateConfirm ¶
type BillingPortalFlowSubscriptionUpdateConfirm = ports.BillingPortalFlowSubscriptionUpdateConfirm //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalFlowSubscriptionUpdateConfirmItem ¶
type BillingPortalFlowSubscriptionUpdateConfirmItem = ports.BillingPortalFlowSubscriptionUpdateConfirmItem //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalFlowType ¶
type BillingPortalFlowType = ports.BillingPortalFlowType //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalSession ¶
type BillingPortalSession = ports.BillingPortalSession //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingPortalSessionInput ¶
type BillingPortalSessionInput = ports.BillingPortalSessionInput //nolint:staticcheck // Intentional v2 compatibility alias.
type BillingProvider ¶
type BillingProvider = ports.BillingProvider //nolint:staticcheck // Intentional v2 compatibility alias.
type CheckoutSession ¶
type CheckoutSession = ports.CheckoutSession //nolint:staticcheck // Intentional v2 compatibility alias.
type CheckoutSessionRequest ¶
type CheckoutSessionRequest = ports.CheckoutSessionRequest //nolint:staticcheck // Intentional v2 compatibility alias.
type CustomerAddress ¶
type CustomerAddress = ports.CustomerAddress //nolint:staticcheck // Intentional v2 compatibility alias.
type CustomerInput ¶
type CustomerInput = ports.CustomerInput //nolint:staticcheck // Intentional v2 compatibility alias.
type InvoiceInput ¶
type InvoiceInput = ports.InvoiceInput //nolint:staticcheck // Intentional v2 compatibility alias.
type InvoiceItem ¶
type InvoiceItem = ports.InvoiceItem //nolint:staticcheck // Intentional v2 compatibility alias.
type InvoiceItemInput ¶
type InvoiceItemInput = ports.InvoiceItemInput //nolint:staticcheck // Intentional v2 compatibility alias.
type InvoiceItemUpdate ¶
type InvoiceItemUpdate = ports.InvoiceItemUpdate //nolint:staticcheck // Intentional v2 compatibility alias.
type PaymentMethod ¶
type PaymentMethod = ports.PaymentMethod //nolint:staticcheck // Intentional v2 compatibility alias.
type PaymentProvider ¶
type PaymentProvider = ports.PaymentProvider //nolint:staticcheck // Intentional v2 compatibility alias.
type SetupIntent ¶
type SetupIntent = ports.SetupIntent //nolint:staticcheck // Intentional v2 compatibility alias.
type SetupIntentInput ¶
type SetupIntentInput = ports.SetupIntentInput //nolint:staticcheck // Intentional v2 compatibility alias.
type WebhookEvent ¶
type WebhookEvent = ports.WebhookEvent //nolint:staticcheck // Intentional v2 compatibility alias.
Click to show internal directories.
Click to hide internal directories.