products

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, oauth2 *clientcredentials.Config, overrideSvr ...string) (*clients.Client[Product], error)

Types

type Media

type Media struct {
	ExternalIDs []string `json:"externalIDs,omitempty" bson:"externalIDs,omitempty"`
	Name        string   `json:"name,omitempty" bson:"name,omitempty"`
	ProductCode string   `json:"productCode" bson:"productCode"`
	Type        string   `json:"type" bson:"type"`
	TypeCode    string   `json:"typeCode" bson:"typeCode"`
}

type Product

type Product struct {
	ID          string    `json:"productID" bson:"productID"`
	Category    string    `json:"category" bson:"category"`
	CreatedAt   time.Time `json:"createdAt" bson:"createdAt"`
	Description string    `json:"description,omitempty" bson:"description,omitempty"`
	ExternalIDs []string  `json:"externalIDs,omitempty" bson:"externalIDs,omitempty"`
	IsDigital   bool      `json:"isDigital" bson:"isDigital"`
	Media       []Media   `json:"media,omitempty" bson:"media,omitempty"`
	Name        string    `json:"name" bson:"name"`
	UpdatedAt   time.Time `json:"updatedAt" bson:"updatedAt"`
}

Jump to

Keyboard shortcuts

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