Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateReference ¶
type AggregateReference struct {
Aggregate string `json:"aggregate"`
Domain string `json:"domain"`
Id string `json:"id"`
}
func (*AggregateReference) Validate ¶
func (o *AggregateReference) Validate() error
type Article ¶
type Contact ¶
type Contact struct {
Address commonsv2.Address `json:"address"`
Company *string `json:"company,omitempty"`
EmailAddress *string `json:"emailAddress,omitempty"`
FirstName *string `json:"firstName,omitempty"`
LastName *string `json:"lastName,omitempty"`
PhoneNumbers []string `json:"phoneNumbers,omitempty"`
Salutation commonsv2.Salutation `json:"salutation"`
Title *string `json:"title,omitempty"`
UseFormalTerm *bool `json:"useFormalTerm,omitempty"`
}
type Contract ¶
type Contract struct {
AdditionalItems []ContractItem `json:"additionalItems,omitempty"`
BaseItem ContractItem `json:"baseItem"`
ContractId string `json:"contractId"`
ContractNumber string `json:"contractNumber"`
CustomerId string `json:"customerId"`
Termination *Termination `json:"termination,omitempty"`
}
type ContractItem ¶
type ContractItem struct {
ActivationDate *time.Time `json:"activationDate,omitempty"`
AggregateReference *AggregateReference `json:"aggregateReference,omitempty"`
Articles []Article `json:"articles"`
ContractPeriod float64 `json:"contractPeriod"`
Description string `json:"description"`
FreeTrialDays *float64 `json:"freeTrialDays,omitempty"`
GroupByProjectId *string `json:"groupByProjectId,omitempty"`
InvoiceStop *time.Time `json:"invoiceStop,omitempty"`
InvoicingPeriod *float64 `json:"invoicingPeriod,omitempty"`
IsActivated bool `json:"isActivated"`
IsBaseItem bool `json:"isBaseItem"`
IsInFreeTrial *bool `json:"isInFreeTrial,omitempty"`
IsInclusive *bool `json:"isInclusive,omitempty"`
ItemId string `json:"itemId"`
NextPossibleDowngradeDate *time.Time `json:"nextPossibleDowngradeDate,omitempty"`
NextPossibleTerminationDate *time.Time `json:"nextPossibleTerminationDate,omitempty"`
NextPossibleUpgradeDate *time.Time `json:"nextPossibleUpgradeDate,omitempty"`
OrderDate *time.Time `json:"orderDate,omitempty"`
OrderId *string `json:"orderId,omitempty"`
ReplacedByItem *string `json:"replacedByItem,omitempty"`
TariffChange *TariffChange `json:"tariffChange,omitempty"`
Termination *Termination `json:"termination,omitempty"`
TotalPrice Price `json:"totalPrice"`
}
func (*ContractItem) Validate ¶
func (o *ContractItem) Validate() error
type Price ¶
type Price struct {
Currency PriceCurrency `json:"currency"`
Value int64 `json:"value"`
}
type PriceCurrency ¶
type PriceCurrency string
const PriceCurrencyEUR PriceCurrency = "EUR"
func (PriceCurrency) Validate ¶
func (e PriceCurrency) Validate() error
type TariffChange ¶
type TariffChange struct {
NewArticles []Article `json:"newArticles"`
ScheduledAtDate time.Time `json:"scheduledAtDate"`
ScheduledByUserId *string `json:"scheduledByUserId,omitempty"`
TargetDate time.Time `json:"targetDate"`
}
func (*TariffChange) Validate ¶
func (o *TariffChange) Validate() error
type Termination ¶
type Termination struct {
CancellationForbidden *bool `json:"cancellationForbidden,omitempty"`
Reason *string `json:"reason,omitempty"`
ScheduledAtDate time.Time `json:"scheduledAtDate"`
ScheduledByUserId *string `json:"scheduledByUserId,omitempty"`
TargetDate time.Time `json:"targetDate"`
}
func (*Termination) Validate ¶
func (o *Termination) Validate() error
Click to show internal directories.
Click to hide internal directories.