provider

package
v1.0.0-beta.186 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvoicingConfiguration

type InvoicingConfiguration struct {
	Type InvoicingProvider `json:"type"`

	OpenMeter openmetersandbox.InvoicingConfiguration
	Stripe    stripe.InvoicingConfiguration
}

func (*InvoicingConfiguration) Validate

func (c *InvoicingConfiguration) Validate() error

type InvoicingProvider

type InvoicingProvider string
var (
	InvoicingProviderOpenMeterSandbox InvoicingProvider = InvoicingProvider(TypeOpenMeterSandbox)
	InvoicingProviderStripeInvoicing  InvoicingProvider = InvoicingProvider(TypeStripe)
)

func (InvoicingProvider) Values

func (k InvoicingProvider) Values() []string

type PaymentConfiguration

type PaymentConfiguration struct {
	Type PaymentProvider `json:"type"`

	OpenMeter openmetersandbox.PaymentConfiguration
	Stripe    stripe.PaymentConfiguration
}

func (*PaymentConfiguration) Validate

func (c *PaymentConfiguration) Validate() error

type PaymentProvider

type PaymentProvider string
var (
	PaymentProviderOpenMeterSandbox PaymentProvider = "openmeter_sandbox"
	PaymentProviderStripePayments   PaymentProvider = "stripe_payments"
)

func (PaymentProvider) Values

func (k PaymentProvider) Values() []string

type TaxConfiguration

type TaxConfiguration struct {
	Type TaxProvider `json:"type"`

	OpenMeter openmetersandbox.TaxConfiguration
	Stripe    stripe.TaxConfiguration
}

func (*TaxConfiguration) Validate

func (c *TaxConfiguration) Validate() error

type TaxProvider

type TaxProvider string
var (
	TaxProviderOpenMeterSandbox TaxProvider = TaxProvider(TypeOpenMeterSandbox)
	TaxProviderStripeTax        TaxProvider = TaxProvider(TypeStripe)
)

func (TaxProvider) Values

func (k TaxProvider) Values() []string

type Type

type Type string

Type specifies the provider used for billing

const (
	// TypeOpenMeterSandbox specifies the OpenMeter billing provider, which is a dummy billing provider mostly useful for testing and
	// initial OpenMeter assessment
	TypeOpenMeterSandbox Type = "openmeter_sandbox"
	// TypeStripe specifies the Stripe billing provider, which is a real billing provider that can be used in production
	TypeStripe Type = "stripe"
)

func (Type) Values

func (t Type) Values() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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