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 ¶
InvoiceItem represents a line item in an invoice
Click to show internal directories.
Click to hide internal directories.