models

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BillingWorkflowInput

type BillingWorkflowInput struct {
	CustomerID     string    `json:"customer_id"`
	SubscriptionID string    `json:"subscription_id"`
	PeriodStart    time.Time `json:"period_start"`
	PeriodEnd      time.Time `json:"period_end"`
}

BillingWorkflowInput represents the input for a billing workflow

type BillingWorkflowResult

type BillingWorkflowResult struct {
	InvoiceID string `json:"invoice_id"`
	Status    string `json:"status"`
}

BillingWorkflowResult represents the result of a billing workflow

type CalculatePriceRequest

type CalculatePriceRequest struct {
	CustomerID     string      `json:"customer_id"`
	SubscriptionID string      `json:"subscription_id"`
	UsageData      interface{} `json:"usage_data"`
}

CalculatePriceRequest represents the request to calculate price

type CalculationResult

type CalculationResult struct {
	InvoiceID   string        `json:"invoice_id"`
	TotalAmount float64       `json:"total_amount"`
	Items       []InvoiceItem `json:"items"`
}

CalculationResult represents the result of a charge calculation

type GenerateInvoiceRequest

type GenerateInvoiceRequest struct {
	CustomerID     string    `json:"customer_id"`
	SubscriptionID string    `json:"subscription_id"`
	PeriodStart    time.Time `json:"period_start"`
	PeriodEnd      time.Time `json:"period_end"`
}

GenerateInvoiceRequest represents the request to generate an invoice

type InvoiceItem

type InvoiceItem struct {
	Description string  `json:"description"`
	Amount      float64 `json:"amount"`
}

InvoiceItem represents a line item in an invoice

type PriceSyncWorkflowInput added in v1.0.23

type PriceSyncWorkflowInput struct {
	PlanID        string `json:"plan_id"`
	TenantID      string `json:"tenant_id"`
	EnvironmentID string `json:"environment_id"`
	UserID        string `json:"user_id"`
}

PriceSyncWorkflowInput represents input for the price sync workflow

func (*PriceSyncWorkflowInput) Validate added in v1.0.25

func (p *PriceSyncWorkflowInput) Validate() error

type TemporalWorkflowResult added in v1.0.25

type TemporalWorkflowResult struct {
	WorkflowID string `json:"workflow_id"`
	RunID      string `json:"run_id"`
}

Jump to

Keyboard shortcuts

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