models

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: AGPL-3.0 Imports: 1 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

Jump to

Keyboard shortcuts

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