Documentation
¶
Overview ¶
Package v1alpha1 defines the types for FYT's v1alpha1 document format.
Index ¶
- Constants
- Variables
- func Convert_core_Config_To_v1alpha1_Config(in *core.Config, out *Config, s conversion.Scope) error
- func Convert_core_Directory_To_v1alpha1_Directory(in *core.Directory, out *Directory, s conversion.Scope) error
- func Convert_core_DocumentsConfig_To_v1alpha1_DocumentsConfig(in *core.DocumentsConfig, out *DocumentsConfig, s conversion.Scope) error
- func Convert_core_InvoiceAdditionalLine_To_v1alpha1_InvoiceAdditionalLine(in *core.InvoiceAdditionalLine, out *InvoiceAdditionalLine, s conversion.Scope) error
- func Convert_core_InvoiceConfigList_To_v1alpha1_InvoiceConfigList(in *core.InvoiceConfigList, out *InvoiceConfigList, s conversion.Scope) error
- func Convert_core_InvoiceConfig_To_v1alpha1_InvoiceConfig(in *core.InvoiceConfig, out *InvoiceConfig, s conversion.Scope) error
- func Convert_core_InvoicePartyOverride_To_v1alpha1_InvoicePartyOverride(in *core.InvoicePartyOverride, out *InvoicePartyOverride, s conversion.Scope) error
- func Convert_core_InvoiceParty_To_v1alpha1_InvoiceParty(in *core.InvoiceParty, out *InvoiceParty, s conversion.Scope) error
- func Convert_core_InvoiceSettingsOverride_To_v1alpha1_InvoiceSettingsOverride(in *core.InvoiceSettingsOverride, out *InvoiceSettingsOverride, ...) error
- func Convert_core_InvoiceSettings_To_v1alpha1_InvoiceSettings(in *core.InvoiceSettings, out *InvoiceSettings, s conversion.Scope) error
- func Convert_core_InvoiceTaxOverride_To_v1alpha1_InvoiceTaxOverride(in *core.InvoiceTaxOverride, out *InvoiceTaxOverride, s conversion.Scope) error
- func Convert_core_InvoiceTax_To_v1alpha1_InvoiceTax(in *core.InvoiceTax, out *InvoiceTax, s conversion.Scope) error
- func Convert_core_ProcessingConfig_To_v1alpha1_ProcessingConfig(in *core.ProcessingConfig, out *ProcessingConfig, s conversion.Scope) error
- func Convert_core_ReportsConfig_To_v1alpha1_ReportsConfig(in *core.ReportsConfig, out *ReportsConfig, s conversion.Scope) error
- func Convert_core_TimeEntryList_To_v1alpha1_TimeEntryList(in *core.TimeEntryList, out *TimeEntryList, s conversion.Scope) error
- func Convert_core_TimeEntryStatus_To_v1alpha1_TimeEntryStatus(in *core.TimeEntryStatus, out *TimeEntryStatus, s conversion.Scope) error
- func Convert_core_TimeEntry_To_v1alpha1_TimeEntry(in *core.TimeEntry, out *TimeEntry, s conversion.Scope) error
- func Convert_v1alpha1_Config_To_core_Config(in *Config, out *core.Config, s conversion.Scope) error
- func Convert_v1alpha1_Directory_To_core_Directory(in *Directory, out *core.Directory, s conversion.Scope) error
- func Convert_v1alpha1_DocumentsConfig_To_core_DocumentsConfig(in *DocumentsConfig, out *core.DocumentsConfig, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceAdditionalLine_To_core_InvoiceAdditionalLine(in *InvoiceAdditionalLine, out *core.InvoiceAdditionalLine, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceConfigList_To_core_InvoiceConfigList(in *InvoiceConfigList, out *core.InvoiceConfigList, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceConfig_To_core_InvoiceConfig(in *InvoiceConfig, out *core.InvoiceConfig, s conversion.Scope) error
- func Convert_v1alpha1_InvoicePartyOverride_To_core_InvoicePartyOverride(in *InvoicePartyOverride, out *core.InvoicePartyOverride, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceParty_To_core_InvoiceParty(in *InvoiceParty, out *core.InvoiceParty, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceSettingsOverride_To_core_InvoiceSettingsOverride(in *InvoiceSettingsOverride, out *core.InvoiceSettingsOverride, ...) error
- func Convert_v1alpha1_InvoiceSettings_To_core_InvoiceSettings(in *InvoiceSettings, out *core.InvoiceSettings, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceTaxOverride_To_core_InvoiceTaxOverride(in *InvoiceTaxOverride, out *core.InvoiceTaxOverride, s conversion.Scope) error
- func Convert_v1alpha1_InvoiceTax_To_core_InvoiceTax(in *InvoiceTax, out *core.InvoiceTax, s conversion.Scope) error
- func Convert_v1alpha1_ProcessingConfig_To_core_ProcessingConfig(in *ProcessingConfig, out *core.ProcessingConfig, s conversion.Scope) error
- func Convert_v1alpha1_ReportsConfig_To_core_ReportsConfig(in *ReportsConfig, out *core.ReportsConfig, s conversion.Scope) error
- func Convert_v1alpha1_TimeEntryList_To_core_TimeEntryList(in *TimeEntryList, out *core.TimeEntryList, s conversion.Scope) error
- func Convert_v1alpha1_TimeEntryStatus_To_core_TimeEntryStatus(in *TimeEntryStatus, out *core.TimeEntryStatus, s conversion.Scope) error
- func Convert_v1alpha1_TimeEntry_To_core_TimeEntry(in *TimeEntry, out *core.TimeEntry, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_Config(in *Config)
- func SetDefaults_TimeEntry(in *TimeEntry)
- func SetObjectDefaults_Config(in *Config)
- func SetObjectDefaults_TimeEntry(in *TimeEntry)
- func SetObjectDefaults_TimeEntryList(in *TimeEntryList)
- type Config
- type Directory
- type DocumentsConfig
- type DuplicatePolicy
- type InvoiceAdditionalLine
- type InvoiceConfig
- type InvoiceConfigList
- type InvoiceParty
- type InvoicePartyOverride
- type InvoiceSettings
- type InvoiceSettingsOverride
- type InvoiceTax
- type InvoiceTaxOverride
- type ProcessingConfig
- type ReportsConfig
- type TaxType
- type TimeEntry
- type TimeEntryList
- type TimeEntryStatus
Constants ¶
const ( // DefaultMemberName is the report member name used when no name is specified. DefaultMemberName = "John Doe" // DefaultSupplierName is the invoice supplier name used when no name is specified. DefaultSupplierName = "John Doe" // DefaultCustomerName is the invoice customer name used when the customer is unspecified. DefaultCustomerName = "ACME Inc" // DefaultServiceDescription is the invoice service description used when unspecified. DefaultServiceDescription = "Software development" // DefaultCurrency is the invoice currency used when unspecified. DefaultCurrency = "USD" // DefaultHourlyRate is the invoice hourly rate used when unspecified. DefaultHourlyRate = "25" // DefaultMonetaryPrecision is the number of fractional digits in invoice totals. DefaultMonetaryPrecision int32 = 2 // DefaultTaxRatePercent is the former default invoice tax percentage. // // Deprecated: Set RatePercent explicitly when selecting Percentage. DefaultTaxRatePercent = "0" // DefaultOutputDirectory is the PDF output path template used when unspecified. DefaultOutputDirectory = "./documents/{{ .YearMonth }}" // DefaultShortEntryThreshold keeps threshold metric (5 minutes by default). DefaultShortEntryThreshold = time.Minute * 5 )
const GroupName = "fyt.queueb.org"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Deprecated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Deprecated: use GroupVersion instead.
Functions ¶
func Convert_core_Config_To_v1alpha1_Config ¶
Convert_core_Config_To_v1alpha1_Config is an autogenerated conversion function.
func Convert_core_Directory_To_v1alpha1_Directory ¶
func Convert_core_Directory_To_v1alpha1_Directory(in *core.Directory, out *Directory, s conversion.Scope) error
Convert_core_Directory_To_v1alpha1_Directory is an autogenerated conversion function.
func Convert_core_DocumentsConfig_To_v1alpha1_DocumentsConfig ¶
func Convert_core_DocumentsConfig_To_v1alpha1_DocumentsConfig(in *core.DocumentsConfig, out *DocumentsConfig, s conversion.Scope) error
Convert_core_DocumentsConfig_To_v1alpha1_DocumentsConfig is an autogenerated conversion function.
func Convert_core_InvoiceAdditionalLine_To_v1alpha1_InvoiceAdditionalLine ¶
func Convert_core_InvoiceAdditionalLine_To_v1alpha1_InvoiceAdditionalLine(in *core.InvoiceAdditionalLine, out *InvoiceAdditionalLine, s conversion.Scope) error
Convert_core_InvoiceAdditionalLine_To_v1alpha1_InvoiceAdditionalLine is an autogenerated conversion function.
func Convert_core_InvoiceConfigList_To_v1alpha1_InvoiceConfigList ¶
func Convert_core_InvoiceConfigList_To_v1alpha1_InvoiceConfigList(in *core.InvoiceConfigList, out *InvoiceConfigList, s conversion.Scope) error
Convert_core_InvoiceConfigList_To_v1alpha1_InvoiceConfigList is an autogenerated conversion function.
func Convert_core_InvoiceConfig_To_v1alpha1_InvoiceConfig ¶
func Convert_core_InvoiceConfig_To_v1alpha1_InvoiceConfig(in *core.InvoiceConfig, out *InvoiceConfig, s conversion.Scope) error
Convert_core_InvoiceConfig_To_v1alpha1_InvoiceConfig is an autogenerated conversion function.
func Convert_core_InvoicePartyOverride_To_v1alpha1_InvoicePartyOverride ¶
func Convert_core_InvoicePartyOverride_To_v1alpha1_InvoicePartyOverride(in *core.InvoicePartyOverride, out *InvoicePartyOverride, s conversion.Scope) error
Convert_core_InvoicePartyOverride_To_v1alpha1_InvoicePartyOverride is an autogenerated conversion function.
func Convert_core_InvoiceParty_To_v1alpha1_InvoiceParty ¶
func Convert_core_InvoiceParty_To_v1alpha1_InvoiceParty(in *core.InvoiceParty, out *InvoiceParty, s conversion.Scope) error
Convert_core_InvoiceParty_To_v1alpha1_InvoiceParty is an autogenerated conversion function.
func Convert_core_InvoiceSettingsOverride_To_v1alpha1_InvoiceSettingsOverride ¶
func Convert_core_InvoiceSettingsOverride_To_v1alpha1_InvoiceSettingsOverride(in *core.InvoiceSettingsOverride, out *InvoiceSettingsOverride, s conversion.Scope) error
Convert_core_InvoiceSettingsOverride_To_v1alpha1_InvoiceSettingsOverride is an autogenerated conversion function.
func Convert_core_InvoiceSettings_To_v1alpha1_InvoiceSettings ¶
func Convert_core_InvoiceSettings_To_v1alpha1_InvoiceSettings(in *core.InvoiceSettings, out *InvoiceSettings, s conversion.Scope) error
Convert_core_InvoiceSettings_To_v1alpha1_InvoiceSettings is an autogenerated conversion function.
func Convert_core_InvoiceTaxOverride_To_v1alpha1_InvoiceTaxOverride ¶
func Convert_core_InvoiceTaxOverride_To_v1alpha1_InvoiceTaxOverride(in *core.InvoiceTaxOverride, out *InvoiceTaxOverride, s conversion.Scope) error
Convert_core_InvoiceTaxOverride_To_v1alpha1_InvoiceTaxOverride is an autogenerated conversion function.
func Convert_core_InvoiceTax_To_v1alpha1_InvoiceTax ¶
func Convert_core_InvoiceTax_To_v1alpha1_InvoiceTax(in *core.InvoiceTax, out *InvoiceTax, s conversion.Scope) error
Convert_core_InvoiceTax_To_v1alpha1_InvoiceTax is an autogenerated conversion function.
func Convert_core_ProcessingConfig_To_v1alpha1_ProcessingConfig ¶
func Convert_core_ProcessingConfig_To_v1alpha1_ProcessingConfig(in *core.ProcessingConfig, out *ProcessingConfig, s conversion.Scope) error
Convert_core_ProcessingConfig_To_v1alpha1_ProcessingConfig is an autogenerated conversion function.
func Convert_core_ReportsConfig_To_v1alpha1_ReportsConfig ¶
func Convert_core_ReportsConfig_To_v1alpha1_ReportsConfig(in *core.ReportsConfig, out *ReportsConfig, s conversion.Scope) error
Convert_core_ReportsConfig_To_v1alpha1_ReportsConfig is an autogenerated conversion function.
func Convert_core_TimeEntryList_To_v1alpha1_TimeEntryList ¶
func Convert_core_TimeEntryList_To_v1alpha1_TimeEntryList(in *core.TimeEntryList, out *TimeEntryList, s conversion.Scope) error
Convert_core_TimeEntryList_To_v1alpha1_TimeEntryList is an autogenerated conversion function.
func Convert_core_TimeEntryStatus_To_v1alpha1_TimeEntryStatus ¶
func Convert_core_TimeEntryStatus_To_v1alpha1_TimeEntryStatus(in *core.TimeEntryStatus, out *TimeEntryStatus, s conversion.Scope) error
Convert_core_TimeEntryStatus_To_v1alpha1_TimeEntryStatus is an autogenerated conversion function.
func Convert_core_TimeEntry_To_v1alpha1_TimeEntry ¶
func Convert_core_TimeEntry_To_v1alpha1_TimeEntry(in *core.TimeEntry, out *TimeEntry, s conversion.Scope) error
Convert_core_TimeEntry_To_v1alpha1_TimeEntry is an autogenerated conversion function.
func Convert_v1alpha1_Config_To_core_Config ¶
Convert_v1alpha1_Config_To_core_Config is an autogenerated conversion function.
func Convert_v1alpha1_Directory_To_core_Directory ¶
func Convert_v1alpha1_Directory_To_core_Directory(in *Directory, out *core.Directory, s conversion.Scope) error
Convert_v1alpha1_Directory_To_core_Directory is an autogenerated conversion function.
func Convert_v1alpha1_DocumentsConfig_To_core_DocumentsConfig ¶
func Convert_v1alpha1_DocumentsConfig_To_core_DocumentsConfig(in *DocumentsConfig, out *core.DocumentsConfig, s conversion.Scope) error
Convert_v1alpha1_DocumentsConfig_To_core_DocumentsConfig is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceAdditionalLine_To_core_InvoiceAdditionalLine ¶
func Convert_v1alpha1_InvoiceAdditionalLine_To_core_InvoiceAdditionalLine(in *InvoiceAdditionalLine, out *core.InvoiceAdditionalLine, s conversion.Scope) error
Convert_v1alpha1_InvoiceAdditionalLine_To_core_InvoiceAdditionalLine is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceConfigList_To_core_InvoiceConfigList ¶
func Convert_v1alpha1_InvoiceConfigList_To_core_InvoiceConfigList(in *InvoiceConfigList, out *core.InvoiceConfigList, s conversion.Scope) error
Convert_v1alpha1_InvoiceConfigList_To_core_InvoiceConfigList is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceConfig_To_core_InvoiceConfig ¶
func Convert_v1alpha1_InvoiceConfig_To_core_InvoiceConfig(in *InvoiceConfig, out *core.InvoiceConfig, s conversion.Scope) error
Convert_v1alpha1_InvoiceConfig_To_core_InvoiceConfig is an autogenerated conversion function.
func Convert_v1alpha1_InvoicePartyOverride_To_core_InvoicePartyOverride ¶
func Convert_v1alpha1_InvoicePartyOverride_To_core_InvoicePartyOverride(in *InvoicePartyOverride, out *core.InvoicePartyOverride, s conversion.Scope) error
Convert_v1alpha1_InvoicePartyOverride_To_core_InvoicePartyOverride is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceParty_To_core_InvoiceParty ¶
func Convert_v1alpha1_InvoiceParty_To_core_InvoiceParty(in *InvoiceParty, out *core.InvoiceParty, s conversion.Scope) error
Convert_v1alpha1_InvoiceParty_To_core_InvoiceParty is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceSettingsOverride_To_core_InvoiceSettingsOverride ¶
func Convert_v1alpha1_InvoiceSettingsOverride_To_core_InvoiceSettingsOverride(in *InvoiceSettingsOverride, out *core.InvoiceSettingsOverride, s conversion.Scope) error
Convert_v1alpha1_InvoiceSettingsOverride_To_core_InvoiceSettingsOverride is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceSettings_To_core_InvoiceSettings ¶
func Convert_v1alpha1_InvoiceSettings_To_core_InvoiceSettings(in *InvoiceSettings, out *core.InvoiceSettings, s conversion.Scope) error
Convert_v1alpha1_InvoiceSettings_To_core_InvoiceSettings is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceTaxOverride_To_core_InvoiceTaxOverride ¶
func Convert_v1alpha1_InvoiceTaxOverride_To_core_InvoiceTaxOverride(in *InvoiceTaxOverride, out *core.InvoiceTaxOverride, s conversion.Scope) error
Convert_v1alpha1_InvoiceTaxOverride_To_core_InvoiceTaxOverride is an autogenerated conversion function.
func Convert_v1alpha1_InvoiceTax_To_core_InvoiceTax ¶
func Convert_v1alpha1_InvoiceTax_To_core_InvoiceTax(in *InvoiceTax, out *core.InvoiceTax, s conversion.Scope) error
Convert_v1alpha1_InvoiceTax_To_core_InvoiceTax is an autogenerated conversion function.
func Convert_v1alpha1_ProcessingConfig_To_core_ProcessingConfig ¶
func Convert_v1alpha1_ProcessingConfig_To_core_ProcessingConfig(in *ProcessingConfig, out *core.ProcessingConfig, s conversion.Scope) error
Convert_v1alpha1_ProcessingConfig_To_core_ProcessingConfig is an autogenerated conversion function.
func Convert_v1alpha1_ReportsConfig_To_core_ReportsConfig ¶
func Convert_v1alpha1_ReportsConfig_To_core_ReportsConfig(in *ReportsConfig, out *core.ReportsConfig, s conversion.Scope) error
Convert_v1alpha1_ReportsConfig_To_core_ReportsConfig is an autogenerated conversion function.
func Convert_v1alpha1_TimeEntryList_To_core_TimeEntryList ¶
func Convert_v1alpha1_TimeEntryList_To_core_TimeEntryList(in *TimeEntryList, out *core.TimeEntryList, s conversion.Scope) error
Convert_v1alpha1_TimeEntryList_To_core_TimeEntryList is an autogenerated conversion function.
func Convert_v1alpha1_TimeEntryStatus_To_core_TimeEntryStatus ¶
func Convert_v1alpha1_TimeEntryStatus_To_core_TimeEntryStatus(in *TimeEntryStatus, out *core.TimeEntryStatus, s conversion.Scope) error
Convert_v1alpha1_TimeEntryStatus_To_core_TimeEntryStatus is an autogenerated conversion function.
func Convert_v1alpha1_TimeEntry_To_core_TimeEntry ¶
func Convert_v1alpha1_TimeEntry_To_core_TimeEntry(in *TimeEntry, out *core.TimeEntry, s conversion.Scope) error
Convert_v1alpha1_TimeEntry_To_core_TimeEntry is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_Config ¶
func SetDefaults_Config(in *Config)
SetDefaults_Config sets defaults for Config object.
func SetDefaults_TimeEntry ¶
func SetDefaults_TimeEntry(in *TimeEntry)
SetDefaults_TimeEntry sets defaults for TimeEntry object.
func SetObjectDefaults_Config ¶
func SetObjectDefaults_Config(in *Config)
func SetObjectDefaults_TimeEntry ¶
func SetObjectDefaults_TimeEntry(in *TimeEntry)
func SetObjectDefaults_TimeEntryList ¶
func SetObjectDefaults_TimeEntryList(in *TimeEntryList)
Types ¶
type Config ¶
type Config struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
InputDirectories []Directory `json:"inputDirectories,omitempty"`
Reports ReportsConfig `json:"reports,omitzero"`
Processing ProcessingConfig `json:"processing,omitzero"`
Invoice InvoiceSettings `json:"invoice,omitzero"`
Documents DocumentsConfig `json:"documents,omitzero"`
}
Config keeps default configuration.
func (*Config) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Config) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Directory ¶
type Directory struct {
// Path is the filesystem path of the directory.
Path string `json:"path,omitzero"`
// Description keeps user description if it's required.
Description string `json:"description,omitzero"`
}
Directory identifies a filesystem directory with optional descriptive metadata.
func (*Directory) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Directory.
func (*Directory) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DocumentsConfig ¶
type DocumentsConfig struct {
// OutputDirectory is a Go template for the final PDF output path; defaults to ./documents/{{ .YearMonth }}.
OutputDirectory string `json:"outputDirectory,omitzero"`
// TemplatesDirectories identifies custom template directories; empty selects the bundled set.
TemplatesDirectories []Directory `json:"templatesDirectories,omitempty"`
}
DocumentsConfig selects output and template directories for PDF generation.
func (*DocumentsConfig) DeepCopy ¶
func (in *DocumentsConfig) DeepCopy() *DocumentsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocumentsConfig.
func (*DocumentsConfig) DeepCopyInto ¶
func (in *DocumentsConfig) DeepCopyInto(out *DocumentsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DuplicatePolicy ¶
type DuplicatePolicy string
DuplicatePolicy selects how proven duplicate entries are handled.
const ( // DuplicatePolicyMerge combines proven duplicates while retaining their sources. DuplicatePolicyMerge DuplicatePolicy = "Merge" // DuplicatePolicyError rejects proven duplicates. DuplicatePolicyError DuplicatePolicy = "Error" )
type InvoiceAdditionalLine ¶
type InvoiceAdditionalLine struct {
Description string `json:"description"`
// Quantity is an exact positive decimal, expressed as text.
Quantity string `json:"quantity"`
// UnitPrice is an exact non-negative decimal, expressed as text.
UnitPrice string `json:"unitPrice"`
}
InvoiceAdditionalLine describes an extra charge in the invoice currency.
func (*InvoiceAdditionalLine) DeepCopy ¶
func (in *InvoiceAdditionalLine) DeepCopy() *InvoiceAdditionalLine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceAdditionalLine.
func (*InvoiceAdditionalLine) DeepCopyInto ¶
func (in *InvoiceAdditionalLine) DeepCopyInto(out *InvoiceAdditionalLine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoiceConfig ¶
type InvoiceConfig struct {
metav1.TypeMeta `json:",inline"`
Invoice InvoiceSettingsOverride `json:"invoice"`
}
InvoiceConfig carries partial invoice settings for one document.
func (*InvoiceConfig) DeepCopy ¶
func (in *InvoiceConfig) DeepCopy() *InvoiceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceConfig.
func (*InvoiceConfig) DeepCopyInto ¶
func (in *InvoiceConfig) DeepCopyInto(out *InvoiceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InvoiceConfig) DeepCopyObject ¶
func (in *InvoiceConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InvoiceConfigList ¶
type InvoiceConfigList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []InvoiceConfig `json:"items,omitzero"`
}
InvoiceConfigList carries invoice configurations in order.
func (*InvoiceConfigList) DeepCopy ¶
func (in *InvoiceConfigList) DeepCopy() *InvoiceConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceConfigList.
func (*InvoiceConfigList) DeepCopyInto ¶
func (in *InvoiceConfigList) DeepCopyInto(out *InvoiceConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InvoiceConfigList) DeepCopyObject ¶
func (in *InvoiceConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InvoiceParty ¶
type InvoiceParty struct {
Name string `json:"name,omitzero"`
Details string `json:"details,omitzero"`
Address string `json:"address,omitzero"`
City string `json:"city,omitzero"`
Phone string `json:"phone,omitzero"`
Email string `json:"email,omitzero"`
Options map[string]string `json:"options,omitempty"`
}
InvoiceParty identifies an invoice party and carries optional contact and template data.
func (*InvoiceParty) DeepCopy ¶
func (in *InvoiceParty) DeepCopy() *InvoiceParty
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceParty.
func (*InvoiceParty) DeepCopyInto ¶
func (in *InvoiceParty) DeepCopyInto(out *InvoiceParty)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoicePartyOverride ¶
type InvoicePartyOverride struct {
Name *string `json:"name,omitempty"`
Details *string `json:"details,omitempty"`
Address *string `json:"address,omitempty"`
City *string `json:"city,omitempty"`
Phone *string `json:"phone,omitempty"`
Email *string `json:"email,omitempty"`
Options map[string]string `json:"options,omitzero"`
}
InvoicePartyOverride contains individual party fields. Options replaces the whole map.
func (*InvoicePartyOverride) DeepCopy ¶
func (in *InvoicePartyOverride) DeepCopy() *InvoicePartyOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoicePartyOverride.
func (*InvoicePartyOverride) DeepCopyInto ¶
func (in *InvoicePartyOverride) DeepCopyInto(out *InvoicePartyOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoiceSettings ¶
type InvoiceSettings struct {
// Supplier identifies the invoice supplier; its name defaults to John Doe.
Supplier InvoiceParty `json:"supplier,omitzero"`
// Customer identifies the invoice customer. An omitted or null customer defaults to ACME Inc.
Customer *InvoiceParty `json:"customer,omitzero"`
// ServiceDescription describes the billed service; defaults to Software development.
ServiceDescription string `json:"serviceDescription,omitzero"`
// Currency is the denomination of invoice monetary values.
// Defaults to USD when omitted or null. A supplied value must be nonblank.
Currency *string `json:"currency,omitempty"`
// HourlyRate is an exact non-negative decimal amount expressed as text.
// Uses digits with an optional fractional part, e.g. "25.50"; defaults to "25".
HourlyRate string `json:"hourlyRate,omitzero"`
// MonetaryPrecision is the number of fractional digits in totals, from 0 to 6 inclusive.
// Defaults to 2 when omitted or null; an explicit zero is valid.
MonetaryPrecision *int32 `json:"monetaryPrecision,omitempty"`
Tax InvoiceTax `json:"tax,omitzero"`
// PaymentInstructions contains optional multiline payment details.
PaymentInstructions string `json:"paymentInstructions,omitzero"`
// AdditionalLines are billed in the order supplied, after any hourly service.
AdditionalLines []InvoiceAdditionalLine `json:"additionalLines,omitempty"`
}
InvoiceSettings contains reusable invoice settings.
func (*InvoiceSettings) DeepCopy ¶
func (in *InvoiceSettings) DeepCopy() *InvoiceSettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceSettings.
func (*InvoiceSettings) DeepCopyInto ¶
func (in *InvoiceSettings) DeepCopyInto(out *InvoiceSettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoiceSettingsOverride ¶
type InvoiceSettingsOverride struct {
Supplier *InvoicePartyOverride `json:"supplier,omitempty"`
Customer *InvoicePartyOverride `json:"customer,omitempty"`
ServiceDescription *string `json:"serviceDescription,omitempty"`
Currency *string `json:"currency,omitempty"`
HourlyRate *string `json:"hourlyRate,omitempty"`
MonetaryPrecision *int32 `json:"monetaryPrecision,omitempty"`
Tax *InvoiceTaxOverride `json:"tax,omitempty"`
PaymentInstructions *string `json:"paymentInstructions,omitempty"`
AdditionalLines []InvoiceAdditionalLine `json:"additionalLines,omitzero"`
}
InvoiceSettingsOverride distinguishes absent fields from explicit values.
func (*InvoiceSettingsOverride) DeepCopy ¶
func (in *InvoiceSettingsOverride) DeepCopy() *InvoiceSettingsOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceSettingsOverride.
func (*InvoiceSettingsOverride) DeepCopyInto ¶
func (in *InvoiceSettingsOverride) DeepCopyInto(out *InvoiceSettingsOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoiceTax ¶
type InvoiceTax struct {
// Type is None or Percentage.
// Defaults to None when unspecified.
Type TaxType `json:"type,omitzero"`
// RatePercent is an exact non-negative decimal percentage.
// Required for Percentage. Uses digits with an optional fractional part, e.g. "7.50".
// Unused and not validated when Type is None.
RatePercent string `json:"ratePercent,omitzero"`
}
InvoiceTax describes the invoice tax regime.
func (*InvoiceTax) DeepCopy ¶
func (in *InvoiceTax) DeepCopy() *InvoiceTax
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceTax.
func (*InvoiceTax) DeepCopyInto ¶
func (in *InvoiceTax) DeepCopyInto(out *InvoiceTax)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InvoiceTaxOverride ¶
type InvoiceTaxOverride struct {
Type *TaxType `json:"type,omitempty"`
RatePercent *string `json:"ratePercent,omitempty"`
}
InvoiceTaxOverride contains individual tax fields.
func (*InvoiceTaxOverride) DeepCopy ¶
func (in *InvoiceTaxOverride) DeepCopy() *InvoiceTaxOverride
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InvoiceTaxOverride.
func (*InvoiceTaxOverride) DeepCopyInto ¶
func (in *InvoiceTaxOverride) DeepCopyInto(out *InvoiceTaxOverride)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProcessingConfig ¶
type ProcessingConfig struct {
// DuplicatePolicy selects how proven duplicates are handled: Merge or Error.
// Defaults to Merge when unspecified.
DuplicatePolicy DuplicatePolicy `json:"duplicatePolicy,omitzero"`
// ShortEntryThreshold is the warning threshold for a complete source entry.
// Defaults to 5m when unspecified; an explicit zero disables warnings.
ShortEntryThreshold *metav1.Duration `json:"shortEntryThreshold,omitempty"`
}
ProcessingConfig contains settings shared by validation, export and generation.
func (*ProcessingConfig) DeepCopy ¶
func (in *ProcessingConfig) DeepCopy() *ProcessingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProcessingConfig.
func (*ProcessingConfig) DeepCopyInto ¶
func (in *ProcessingConfig) DeepCopyInto(out *ProcessingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReportsConfig ¶
type ReportsConfig struct {
// MemberName is the display name used in both reports, independent of Invoice.Supplier.
// Defaults to John Doe when omitted or null. An explicit name must be nonblank.
MemberName *string `json:"memberName,omitempty"`
}
ReportsConfig contains settings shared by detailed and summary reports.
func (*ReportsConfig) DeepCopy ¶
func (in *ReportsConfig) DeepCopy() *ReportsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReportsConfig.
func (*ReportsConfig) DeepCopyInto ¶
func (in *ReportsConfig) DeepCopyInto(out *ReportsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TimeEntry ¶
type TimeEntry struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// Start period keeps date start period of entry, e.g. 2026-09-01 10:00
Start metav1.Time `json:"start,omitzero"`
// End keeps date end period, e.g. 2026-09-01 12:00
End metav1.Time `json:"end,omitzero"`
// Description keeps human readable description.
Description string `json:"description,omitzero"`
// Ticket is internal system ticket in a free form.
Ticket string `json:"ticket,omitzero"`
// Status keeps internal status for [TimeEntry] object.
Status TimeEntryStatus `json:"status"`
}
TimeEntry keeps a time entry for evaluating reports.
func (*TimeEntry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeEntry.
func (*TimeEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TimeEntry) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TimeEntry) GetConditions ¶
GetConditions returns resource conditions.
func (*TimeEntry) SetConditions ¶
SetConditions sets conditions
type TimeEntryList ¶
type TimeEntryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Meta keeps different meta information in string format by keys.
Meta map[string]string `json:"meta,omitempty"`
Items []TimeEntry `json:"items,omitempty"`
}
TimeEntryList represents TimeEntry objects over API.
func (*TimeEntryList) DeepCopy ¶
func (in *TimeEntryList) DeepCopy() *TimeEntryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeEntryList.
func (*TimeEntryList) DeepCopyInto ¶
func (in *TimeEntryList) DeepCopyInto(out *TimeEntryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TimeEntryList) DeepCopyObject ¶
func (in *TimeEntryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TimeEntryStatus ¶
type TimeEntryStatus struct {
// Conditions keep internal conditions for resource.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions" patchStrategy:"merge" patchMergeKey:"type"`
}
TimeEntryStatus keeps internal status for TimeEntry object. Conditions represented over `Ready` and `Failed` states. Ready and Failed should not have True status sim.
func (*TimeEntryStatus) DeepCopy ¶
func (in *TimeEntryStatus) DeepCopy() *TimeEntryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeEntryStatus.
func (*TimeEntryStatus) DeepCopyInto ¶
func (in *TimeEntryStatus) DeepCopyInto(out *TimeEntryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.