odoo

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OdooAPIClient

type OdooAPIClient struct {
	// contains filtered or unexported fields
}

func NewOdooAPIClient

func NewOdooAPIClient(ctx context.Context, odooURL string, oauthTokenURL string, oauthClientId string, oauthClientSecret string, logger logr.Logger) *OdooAPIClient

func NewOdooAPIWithClient

func NewOdooAPIWithClient(odooURL string, client *http.Client, logger logr.Logger) *OdooAPIClient

func (OdooAPIClient) SendData

type OdooMeteredBillingRecord

type OdooMeteredBillingRecord struct {
	ProductID            string    `json:"product_id"`
	InstanceID           string    `json:"instance_id"`
	ItemDescription      string    `json:"item_description,omitempty"`
	ItemGroupDescription string    `json:"item_group_description,omitempty"`
	SalesOrderID         string    `json:"sales_order_id"`
	UnitID               string    `json:"unit_id"`
	ConsumedUnits        float64   `json:"consumed_units"`
	Timerange            Timerange `json:"timerange"`
}

type Timerange

type Timerange struct {
	From time.Time
	To   time.Time
}

func (Timerange) MarshalJSON

func (t Timerange) MarshalJSON() ([]byte, error)

func (*Timerange) UnmarshalJSON

func (t *Timerange) UnmarshalJSON([]byte) error

Jump to

Keyboard shortcuts

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