model

package
v0.0.0-...-7fb8cde Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	ID             string `json:"id" firestore:"id,omitempty"`
	CustomerNumber string `json:"customerNumber" firestore:"customerNumber,omitempty"`
	Name           string `json:"name" firestore:"name,omitempty"`
	Surname        string `json:"surname" firestore:"surname,omitempty"`
	UserOrderId    string `json:"userOrderId" firestore:"userOrderId,omitempty"`
}

type EtsyProductData

type EtsyProductData struct {
	Count   int              `json:"count"`
	Results []ListingProduct `json:"results"`
}

type Listing

type Listing struct {
	Id int `json:"listing_id"`
}

type ListingData

type ListingData struct {
	Count   int       `json:"count"`
	Results []Listing `json:"results"`
}

type ListingProduct

type ListingProduct struct {
	Id            int            `json:"listing_id"`
	Title         string         `json:"title"`
	Description   string         `json:"description"`
	Quantity      int            `json:"quantity"`
	ShopSectionId int            `json:"shop_section_id"`
	Tags          []string       `json:"tags"`
	Price         Price          `json:"price"`
	Url           string         `json:"url"`
	Images        []ProductImage `json:"images"`
}

type ListingVariation

type ListingVariation struct {
	Id      int    `json:"property_id"`
	ValueId int    `json:"value_id"`
	Value   string `json:"value"`
	ImageId int    `json:"image_id"`
}

type News

type News struct {
	ID        string `json:"id" firestore:"id,omitempty"`
	Title     string `json:"title" firestore:"title,omitempty"`
	Teaser    string `json:"teaser" firestore:"teaser,omitempty"`
	Message   string `json:"message" firestore:"message,omitempty"`
	Available bool   `json:"available" firestore:"available,omitempty"`
}

type Order

type Order struct {
	ID           string `json:"id" firestore:"id,omitempty"`
	User         string `json:"user" firestore:"user,omitempty"`
	Payment      string `json:"payment" firestore:"payment,omitempty"`
	ProductName  string `json:"productName" firestore:"productName,omitempty"`
	ProductId    string `json:"productId" firestore:"productId,omitempty"`
	Variation    string `json:"variation" firestore:"variation,omitempty"`
	Price        string `json:"price" firestore:"price,omitempty"`
	Quantity     string `json:"quantity" firestore:"quantity,omitempty"`
	Status       string `json:"status" firestore:"status,omitempty"`
	Email        string `json:"email" firestore:"email,omitempty"`
	Name         string `json:"name" firestore:"name,omitempty"`
	AddressLine1 string `json:"addressline1" firestore:"addressline1,omitempty"`
	AddressLine2 string `json:"addressline2" firestore:"addressline2,omitempty"`
	City         string `json:"city" firestore:"city,omitempty"`
	InvoiceId    string `json:"invoiceId" firestore:"invoiceId,omitempty"`
}

type Price

type Price struct {
	Amount        int    `json:"amount"`
	Divisor       int    `json:"divisor"`
	Currency_Code string `json:"currency_code"`
}

type Product

type Product struct {
	Id            int            `json:"id"`
	Title         string         `json:"title"`
	Description   string         `json:"description"`
	Quantity      int            `json:"quantity"`
	ShopSectionId int            `json:"shop_section_id"`
	Tags          []string       `json:"tags"`
	Price         Price          `json:"price"`
	Url           string         `json:"url"`
	Images        []ProductImage `json:"images"`
}

type ProductImage

type ProductImage struct {
	Url_full    string `json:"url_fullxfull"`
	Url_75x75   string `json:"url_75x75"`
	Url_170x135 string `json:"url_170x135"`
	Url_570xN   string `json:"url_570xN"`
}

type Section

type Section struct {
	Id    int    `json:"id"`
	Title string `json:"title"`
}

type SectionData

type SectionData struct {
	Count   int              `json:"count"`
	Results []SectionListing `json:"results"`
}

type SectionListing

type SectionListing struct {
	Id    int    `json:"shop_section_id"`
	Title string `json:"title"`
}

type Variation

type Variation struct {
	Id         int    `json:"id"`
	PropertyId int    `json:"property_id"`
	ValueId    int    `json:"value_id"`
	Value      string `json:"value"`
	ImageId    int    `json:"image_id"`
}

type VariationData

type VariationData struct {
	Count   int                `json:"count"`
	Results []ListingVariation `json:"results"`
}

type Variations

type Variations struct {
	Id         int         `json:"id"`
	Variations []Variation `json:"variations"`
}

Jump to

Keyboard shortcuts

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