feev2

package
v0.2.134 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeeStrategy

type FeeStrategy struct {
	AlternativeOneTimePaymentFeeStrategy *OneTimePaymentFeeStrategy
	AlternativePeriodBasedFeeStrategy    *PeriodBasedFeeStrategy
}

func (*FeeStrategy) MarshalJSON

func (a *FeeStrategy) MarshalJSON() ([]byte, error)

func (*FeeStrategy) UnmarshalJSON

func (a *FeeStrategy) UnmarshalJSON(input []byte) error

func (*FeeStrategy) Validate

func (a *FeeStrategy) Validate() error

type OneTimePaymentFeeStrategy

type OneTimePaymentFeeStrategy struct {
	Price float64 `json:"price"`
}

A strategy for fees that occur once.

func (*OneTimePaymentFeeStrategy) Validate

func (o *OneTimePaymentFeeStrategy) Validate() error

type PeriodBasedFeeStrategy

type PeriodBasedFeeStrategy struct {
	Periods []PeriodBasedFeeStrategyPeriodsItem `json:"periods"`
}

A strategy for fees that occur periodically

func (*PeriodBasedFeeStrategy) Validate

func (o *PeriodBasedFeeStrategy) Validate() error

type PeriodBasedFeeStrategyPeriodsItem

type PeriodBasedFeeStrategyPeriodsItem struct {
	FeeValidFrom  *time.Time `json:"feeValidFrom,omitempty"`
	FeeValidUntil *time.Time `json:"feeValidUntil,omitempty"`
	MonthlyPrice  float64    `json:"monthlyPrice"`
}

func (*PeriodBasedFeeStrategyPeriodsItem) Validate

type ResourceFee

type ResourceFee struct {
	FeeStrategy *FeeStrategy `json:"feeStrategy,omitempty"`
	Id          string       `json:"id"`
}

A Fee of a Resource

func (*ResourceFee) Validate

func (o *ResourceFee) Validate() error

Jump to

Keyboard shortcuts

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