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" )
Click to show internal directories.
Click to hide internal directories.