Discover Packages
github.com/Jamess-Lucass/ecommerce-order-service
requests
package
Version:
v0.0.0-...-09e5bc5
Opens a new window with list of versions in this module.
Published: Sep 18, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type BasketItem struct {
ID uuid .UUID `json:"id"`
CatalogId uuid .UUID `json:"catalogId"`
Price float32 `json:"price"`
Quantity uint `json:"quantity"`
}
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 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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.