contractv2

package
v0.2.100 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 4 Imported by: 0

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 Article struct {
	Amount            int64   `json:"amount"`
	ArticleTemplateId string  `json:"articleTemplateId"`
	Description       *string `json:"description,omitempty"`
	Id                string  `json:"id"`
	Name              string  `json:"name"`
	UnitPrice         Price   `json:"unitPrice"`
}

func (*Article) Validate

func (o *Article) Validate() error

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"`
}

func (*Contact) Validate

func (o *Contact) Validate() error

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"`
}

func (*Contract) Validate

func (o *Contract) Validate() error

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 Error

type Error struct {
	Message string `json:"message"`
	Type    string `json:"type"`
}

func (*Error) Validate

func (o *Error) Validate() error

type Price

type Price struct {
	Currency PriceCurrency `json:"currency"`
	Value    int64         `json:"value"`
}

func (*Price) Validate

func (o *Price) Validate() error

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

Jump to

Keyboard shortcuts

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