requests

package
v0.0.0-...-09e5bc5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basket

type Basket struct {
	ID    uuid.UUID    `json:"id"`
	Items []BasketItem `json:"items"`
}

type BasketItem

type BasketItem struct {
	ID        uuid.UUID `json:"id"`
	CatalogId uuid.UUID `json:"catalogId"`
	Price     float32   `json:"price"`
	Quantity  uint      `json:"quantity"`
}

type CreateOrderRequest

type CreateOrderRequest struct {
	Address     string    `json:"address"`
	Email       string    `json:"email"`
	Name        string    `json:"name"`
	PhoneNumber string    `json:"phoneNumber"`
	UserId      uuid.UUID `json:"userId"`
	Basket      Basket    `json:"basket"`
}

type Email

type Email struct {
	To      []string `json:"to"`
	From    string   `json:"from"`
	CC      []string `json:"cc,omitempty"`
	BCC     []string `json:"bcc,omitempty"`
	Subject string   `json:"subject"`
	Body    string   `json:"body"`
}

Jump to

Keyboard shortcuts

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