v1

package
v0.0.0-...-e4c28f5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package v1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.16.2 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type CreateCustomerJSONRequestBody

type CreateCustomerJSONRequestBody = NewCustomerRequest

CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.

type CreateCustomerParams

type CreateCustomerParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

CreateCustomerParams defines parameters for CreateCustomer.

type CreateOrderJSONRequestBody

type CreateOrderJSONRequestBody = NewOrderRequest

CreateOrderJSONRequestBody defines body for CreateOrder for application/json ContentType.

type CreateOrderParams

type CreateOrderParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

CreateOrderParams defines parameters for CreateOrder.

type CreateProductJSONRequestBody

type CreateProductJSONRequestBody = NewProduct

CreateProductJSONRequestBody defines body for CreateProduct for application/json ContentType.

type CreateProductParams

type CreateProductParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

CreateProductParams defines parameters for CreateProduct.

type Customer

type Customer struct {
	// CreatedAt Created At details
	CreatedAt *time.Time          `json:"created_at,omitempty" validate:"rfc3339_date-time"`
	Email     openapi_types.Email `json:"email" validate:"required,email"`
	Id        uuid.UUID           `json:"id" validate:"required,id"`
	Name      string              `json:"name" validate:"required"`
	Phone     string              `json:"phone" validate:"required,e164"`

	// UpdatedAt Updated At details
	UpdatedAt *time.Time `json:"updated_at,omitempty" validate:"rfc3339_date-time"`
}

Customer defines model for Customer.

type CustomerDetails

type CustomerDetails struct {
	Email openapi_types.Email `json:"email" validate:"required,email"`
	Name  string              `json:"name" validate:"required"`
	Phone string              `json:"phone" validate:"required,e164"`
}

CustomerDetails defines model for CustomerDetails.

type CustomerID

type CustomerID = CustomerIdType

CustomerID CustomerID

type CustomerIdType

type CustomerIdType = uuid.UUID

CustomerIdType CustomerID

type DeleteCustomerByIDParams

type DeleteCustomerByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

DeleteCustomerByIDParams defines parameters for DeleteCustomerByID.

type DeleteOrderByIDParams

type DeleteOrderByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

DeleteOrderByIDParams defines parameters for DeleteOrderByID.

type DeleteProductByIDParams

type DeleteProductByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

DeleteProductByIDParams defines parameters for DeleteProductByID.

type Error

type Error struct {
	Code      int        `json:"code"`
	Domain    *string    `json:"domain,omitempty"`
	Message   string     `json:"message"`
	Reason    *string    `json:"reason,omitempty"`
	Timestamp *time.Time `json:"timestamp,omitempty"`
}

Error General API Error Response

type GetCustomerByIDParams

type GetCustomerByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetCustomerByIDParams defines parameters for GetCustomerByID.

type GetCustomersParams

type GetCustomersParams struct {
	Page  *Page  `form:"page,omitempty" json:"page,omitempty" schema:"page" validate:"omitempty,gte=0"`
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty" schema:"limit" validate:"omitempty,gte=0"`

	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetCustomersParams defines parameters for GetCustomers.

type GetLivenessParams

type GetLivenessParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetLivenessParams defines parameters for GetLiveness.

type GetOrderByIDParams

type GetOrderByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetOrderByIDParams defines parameters for GetOrderByID.

type GetOrdersParams

type GetOrdersParams struct {
	Page  *Page  `form:"page,omitempty" json:"page,omitempty" schema:"page" validate:"omitempty,gte=0"`
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty" schema:"limit" validate:"omitempty,gte=0"`

	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetOrdersParams defines parameters for GetOrders.

type GetProductByIDParams

type GetProductByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetProductByIDParams defines parameters for GetProductByID.

type GetProductsParams

type GetProductsParams struct {
	Page  *Page  `form:"page,omitempty" json:"page,omitempty" schema:"page" validate:"omitempty,gte=0"`
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty" schema:"limit" validate:"omitempty,gte=0"`

	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetProductsParams defines parameters for GetProducts.

type GetReadinessParams

type GetReadinessParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

GetReadinessParams defines parameters for GetReadiness.

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type Limit

type Limit = int

Limit defines model for limit.

type Liveness

type Liveness struct {
	Message *string         `json:"message,omitempty" validate:"required"`
	Status  *LivenessStatus `json:"status,omitempty" validate:"required,oneof=UP DOWN"`
}

Liveness defines model for Liveness.

type LivenessStatus

type LivenessStatus string

LivenessStatus defines model for Liveness.Status.

const (
	DOWN LivenessStatus = "DOWN"
	UP   LivenessStatus = "UP"
)

Defines values for LivenessStatus.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type N400

type N400 = interface{}

N400 Bad Request

type N401

type N401 = interface{}

N401 Unauthorized

type N403

type N403 = interface{}

N403 Forbidden

type N404

type N404 = interface{}

N404 Not Found

type N500

type N500 = interface{}

N500 Internal Server Error

type NewCustomerRequest

type NewCustomerRequest struct {
	Email openapi_types.Email `json:"email"`
	Name  string              `json:"name"`
	Phone string              `json:"phone" validate:"e164"`
}

NewCustomerRequest defines model for NewCustomerRequest.

type NewOrderRequest

type NewOrderRequest struct {
	Customer CustomerDetails `json:"customer"`
	Products []NewProduct    `json:"products"`

	// Taxes Order Taxes details
	Taxes *float64 `json:"taxes,omitempty"`

	// Total Order Total details
	Total *float64 `json:"total,omitempty"`
}

NewOrderRequest New Order Request details

type NewProduct

type NewProduct struct {
	Description *string `json:"description,omitempty"`
	Name        string  `json:"name"`
	UnitPrice   float64 `json:"unit_price"`
}

NewProduct defines model for NewProduct.

type Order

type Order struct {
	// CreatedAt Created At details
	CreatedAt *time.Time `json:"created_at,omitempty" validate:"rfc3339_date-time"`
	Customer  Customer   `json:"customer"`
	Id        uuid.UUID  `json:"id" validate:"required,id"`
	Products  []Product  `json:"products"`

	// Status Order Status details
	Status OrderStatus `json:"status" validate:"required,oneof=PENDING AWAITING_PICKUP IN_TRANSIT DELIVERED CANCELLED RETURNED DISPUTED"`

	// Taxes Order Taxes details
	Taxes *float64 `json:"taxes,omitempty"`

	// Total Order Total details
	Total *float64 `json:"total,omitempty"`

	// UpdatedAt Updated At details
	UpdatedAt *time.Time `json:"updated_at,omitempty" validate:"rfc3339_date-time"`
}

Order defines model for Order.

type OrderID

type OrderID = OrderIdType

OrderID OrderID

type OrderIdType

type OrderIdType = uuid.UUID

OrderIdType OrderID

type OrderStatus

type OrderStatus string

OrderStatus Order Status details

const (
	AWAITINGPICKUP OrderStatus = "AWAITING_PICKUP"
	CANCELLED      OrderStatus = "CANCELLED"
	DELIVERED      OrderStatus = "DELIVERED"
	DISPUTED       OrderStatus = "DISPUTED"
	INTRANSIT      OrderStatus = "IN_TRANSIT"
	PENDING        OrderStatus = "PENDING"
	RETURNED       OrderStatus = "RETURNED"
)

Defines values for OrderStatus.

type OrdersServer

type OrdersServer struct {
	Log *zerolog.Logger
	// contains filtered or unexported fields
}

func NewOrdersServer

func NewOrdersServer(log *zerolog.Logger, build string, storage *Repository) *OrdersServer

NewOrdersServer constructs a new OrdersServer.

func (*OrdersServer) CreateCustomer

func (o *OrdersServer) CreateCustomer(c *gin.Context, params CreateCustomerParams)

CreateCustomer creates a new customer

func (*OrdersServer) CreateOrder

func (o *OrdersServer) CreateOrder(c *gin.Context, params CreateOrderParams)

CreateOrder creates a new order

func (*OrdersServer) CreateProduct

func (o *OrdersServer) CreateProduct(c *gin.Context, params CreateProductParams)

CreateProduct creates a new product

func (*OrdersServer) DeleteCustomerByID

func (o *OrdersServer) DeleteCustomerByID(c *gin.Context, customerID CustomerID, params DeleteCustomerByIDParams)

DeleteCustomerByID deletes a customer by ID

func (*OrdersServer) DeleteOrderByID

func (o *OrdersServer) DeleteOrderByID(c *gin.Context, orderID OrderID, params DeleteOrderByIDParams)

DeleteOrderByID deletes an order by ID

func (*OrdersServer) DeleteProductByID

func (o *OrdersServer) DeleteProductByID(c *gin.Context, productID ProductID, params DeleteProductByIDParams)

DeleteProductByID deletes a product by ID

func (*OrdersServer) GetCustomerByID

func (o *OrdersServer) GetCustomerByID(c *gin.Context, customerID CustomerID, params GetCustomerByIDParams)

GetCustomerByID returns a customer by ID

func (*OrdersServer) GetCustomers

func (o *OrdersServer) GetCustomers(c *gin.Context, params GetCustomersParams)

GetCustomers returns a list of customers

func (*OrdersServer) GetLiveness

func (o *OrdersServer) GetLiveness(c *gin.Context, params GetLivenessParams)

GetLiveness returns a 200 OK response

func (*OrdersServer) GetOrderByID

func (o *OrdersServer) GetOrderByID(c *gin.Context, orderID OrderID, params GetOrderByIDParams)

GetOrderByID returns an order by ID

func (*OrdersServer) GetOrders

func (o *OrdersServer) GetOrders(c *gin.Context, params GetOrdersParams)

GetOrders returns a list of orders

func (*OrdersServer) GetProductByID

func (o *OrdersServer) GetProductByID(c *gin.Context, productID ProductID, params GetProductByIDParams)

GetProductByID returns a product by ID

func (*OrdersServer) GetProducts

func (o *OrdersServer) GetProducts(c *gin.Context, params GetProductsParams)

GetProducts returns a list of products

func (*OrdersServer) GetReadiness

func (o *OrdersServer) GetReadiness(c *gin.Context, params GetReadinessParams)

GetReadiness returns a 200 OK response

func (*OrdersServer) UpdateCustomerByID

func (o *OrdersServer) UpdateCustomerByID(c *gin.Context, customerID CustomerID, params UpdateCustomerByIDParams)

UpdateCustomerByID updates a customer by ID

func (*OrdersServer) UpdateOrderByID

func (o *OrdersServer) UpdateOrderByID(c *gin.Context, orderID OrderID, params UpdateOrderByIDParams)

UpdateOrderByID updates an order by ID

func (*OrdersServer) UpdateProductByID

func (o *OrdersServer) UpdateProductByID(c *gin.Context, productID ProductID, params UpdateProductByIDParams)

UpdateProductByID updates a product by ID

type Page

type Page = int

Page defines model for page.

type Product

type Product struct {
	// CreatedAt Created At details
	CreatedAt *time.Time `json:"created_at,omitempty" validate:"rfc3339_date-time"`

	// Description Product Description details
	Description *string   `json:"description,omitempty"`
	Id          uuid.UUID `json:"id" validate:"required,id"`

	// Name Product Name details
	Name      string  `json:"name" validate:"required"`
	UnitPrice float64 `json:"unit_price"`

	// UpdatedAt Updated At details
	UpdatedAt *time.Time `json:"updated_at,omitempty" validate:"rfc3339_date-time"`
}

Product defines model for Product.

type ProductID

type ProductID = ProductIdType

ProductID ProductID

type ProductIdType

type ProductIdType = uuid.UUID

ProductIdType ProductID

type Repository

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

Repository provides all functions to execute database queries and transactions.

func NewRepository

func NewRepository(log *zerolog.Logger, firestoreClient *firestore.Client) (*Repository, error)

NewRepository creates a new store.

func (*Repository) DeleteCustomerByID

func (r *Repository) DeleteCustomerByID(ctx context.Context, id string) error

DeleteCustomerByID deletes a single customer

func (*Repository) DeleteOrderByID

func (r *Repository) DeleteOrderByID(ctx context.Context, id string) error

DeleteOrderByID deletes a single order

func (*Repository) DeleteProductByID

func (r *Repository) DeleteProductByID(ctx context.Context, id string) error

DeleteProductByID deletes a single product

func (*Repository) GetCustomerByID

func (r *Repository) GetCustomerByID(ctx context.Context, id string) (Customer, error)

GetCustomerByID returns a single customer

func (*Repository) GetCustomers

func (r *Repository) GetCustomers(ctx context.Context) ([]Customer, error)

GetCustomers returns all customers

func (*Repository) GetOrderByID

func (r *Repository) GetOrderByID(ctx context.Context, id string) (Order, error)

GetOrderByID returns a single order

func (*Repository) GetOrders

func (r *Repository) GetOrders(ctx context.Context) ([]Order, error)

GetOrders returns all orders

func (*Repository) GetProductByID

func (r *Repository) GetProductByID(ctx context.Context, id string) (Product, error)

GetProductByID returns a single product

func (*Repository) GetProducts

func (r *Repository) GetProducts(ctx context.Context) ([]Product, error)

GetProducts returns all products

func (*Repository) PostCustomer

func (r *Repository) PostCustomer(ctx context.Context, customer Customer) (Customer, error)

PostCustomer creates a customer

func (*Repository) PostOrder

func (r *Repository) PostOrder(ctx context.Context, order Order) (Order, error)

PostOrder creates an order

func (*Repository) PostProduct

func (r *Repository) PostProduct(ctx context.Context, product Product) (Product, error)

PostProduct creates a product

func (*Repository) UpdateCustomerByID

func (r *Repository) UpdateCustomerByID(ctx context.Context, customer Customer) (Customer, error)

UpdateCustomerByID updates a single customer

func (*Repository) UpdateOrderByID

func (r *Repository) UpdateOrderByID(ctx context.Context, order Order) (Order, error)

UpdateOrderByID updates a single order

func (*Repository) UpdateProductByID

func (r *Repository) UpdateProductByID(ctx context.Context, product Product) (Product, error)

UpdateProductByID updates a single product

type ServerInterface

type ServerInterface interface {
	// Get all customers
	// (GET /customers)
	GetCustomers(c *gin.Context, params GetCustomersParams)
	// Create a new customer
	// (POST /customers)
	CreateCustomer(c *gin.Context, params CreateCustomerParams)
	// Delete a customer
	// (DELETE /customers/{customerID})
	DeleteCustomerByID(c *gin.Context, customerID CustomerID, params DeleteCustomerByIDParams)
	// Get a specific customer by ID
	// (GET /customers/{customerID})
	GetCustomerByID(c *gin.Context, customerID CustomerID, params GetCustomerByIDParams)
	// Update an existing customer
	// (PUT /customers/{customerID})
	UpdateCustomerByID(c *gin.Context, customerID CustomerID, params UpdateCustomerByIDParams)
	// Get liveness status
	// (GET /liveness)
	GetLiveness(c *gin.Context, params GetLivenessParams)
	// Get all orders
	// (GET /orders)
	GetOrders(c *gin.Context, params GetOrdersParams)
	// Create a new order
	// (POST /orders)
	CreateOrder(c *gin.Context, params CreateOrderParams)
	// Delete an order
	// (DELETE /orders/{orderID})
	DeleteOrderByID(c *gin.Context, orderID OrderID, params DeleteOrderByIDParams)
	// Get a specific order by ID
	// (GET /orders/{orderID})
	GetOrderByID(c *gin.Context, orderID OrderID, params GetOrderByIDParams)
	// Update an existing order
	// (PUT /orders/{orderID})
	UpdateOrderByID(c *gin.Context, orderID OrderID, params UpdateOrderByIDParams)
	// Get all products
	// (GET /products)
	GetProducts(c *gin.Context, params GetProductsParams)
	// Create a new product
	// (POST /products)
	CreateProduct(c *gin.Context, params CreateProductParams)
	// Delete a product
	// (DELETE /products/{productID})
	DeleteProductByID(c *gin.Context, productID ProductID, params DeleteProductByIDParams)
	// Get a specific product by ID
	// (GET /products/{productID})
	GetProductByID(c *gin.Context, productID ProductID, params GetProductByIDParams)
	// Update an existing product
	// (PUT /products/{productID})
	UpdateProductByID(c *gin.Context, productID ProductID, params UpdateProductByIDParams)
	// Get readiness status
	// (GET /readiness)
	GetReadiness(c *gin.Context, params GetReadinessParams)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandler       func(*gin.Context, error, int)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) CreateCustomer

func (siw *ServerInterfaceWrapper) CreateCustomer(c *gin.Context)

CreateCustomer operation middleware

func (*ServerInterfaceWrapper) CreateOrder

func (siw *ServerInterfaceWrapper) CreateOrder(c *gin.Context)

CreateOrder operation middleware

func (*ServerInterfaceWrapper) CreateProduct

func (siw *ServerInterfaceWrapper) CreateProduct(c *gin.Context)

CreateProduct operation middleware

func (*ServerInterfaceWrapper) DeleteCustomerByID

func (siw *ServerInterfaceWrapper) DeleteCustomerByID(c *gin.Context)

DeleteCustomerByID operation middleware

func (*ServerInterfaceWrapper) DeleteOrderByID

func (siw *ServerInterfaceWrapper) DeleteOrderByID(c *gin.Context)

DeleteOrderByID operation middleware

func (*ServerInterfaceWrapper) DeleteProductByID

func (siw *ServerInterfaceWrapper) DeleteProductByID(c *gin.Context)

DeleteProductByID operation middleware

func (*ServerInterfaceWrapper) GetCustomerByID

func (siw *ServerInterfaceWrapper) GetCustomerByID(c *gin.Context)

GetCustomerByID operation middleware

func (*ServerInterfaceWrapper) GetCustomers

func (siw *ServerInterfaceWrapper) GetCustomers(c *gin.Context)

GetCustomers operation middleware

func (*ServerInterfaceWrapper) GetLiveness

func (siw *ServerInterfaceWrapper) GetLiveness(c *gin.Context)

GetLiveness operation middleware

func (*ServerInterfaceWrapper) GetOrderByID

func (siw *ServerInterfaceWrapper) GetOrderByID(c *gin.Context)

GetOrderByID operation middleware

func (*ServerInterfaceWrapper) GetOrders

func (siw *ServerInterfaceWrapper) GetOrders(c *gin.Context)

GetOrders operation middleware

func (*ServerInterfaceWrapper) GetProductByID

func (siw *ServerInterfaceWrapper) GetProductByID(c *gin.Context)

GetProductByID operation middleware

func (*ServerInterfaceWrapper) GetProducts

func (siw *ServerInterfaceWrapper) GetProducts(c *gin.Context)

GetProducts operation middleware

func (*ServerInterfaceWrapper) GetReadiness

func (siw *ServerInterfaceWrapper) GetReadiness(c *gin.Context)

GetReadiness operation middleware

func (*ServerInterfaceWrapper) UpdateCustomerByID

func (siw *ServerInterfaceWrapper) UpdateCustomerByID(c *gin.Context)

UpdateCustomerByID operation middleware

func (*ServerInterfaceWrapper) UpdateOrderByID

func (siw *ServerInterfaceWrapper) UpdateOrderByID(c *gin.Context)

UpdateOrderByID operation middleware

func (*ServerInterfaceWrapper) UpdateProductByID

func (siw *ServerInterfaceWrapper) UpdateProductByID(c *gin.Context)

UpdateProductByID operation middleware

type Store

type Store interface {
	GetCustomers(ctx context.Context) ([]Customer, error)
	PostCustomer(ctx context.Context, customer Customer) (Customer, error)
	GetCustomerByID(ctx context.Context, id string) (Customer, error)
	DeleteCustomerByID(ctx context.Context, id string) error
	UpdateCustomerByID(ctx context.Context, customer Customer) (Customer, error)
	GetOrders(ctx context.Context) ([]Order, error)
	PostOrder(ctx context.Context, order Order) (Order, error)
	GetOrderByID(ctx context.Context, id string) (Order, error)
	DeleteOrderByID(ctx context.Context, id string) error
	UpdateOrderByID(ctx context.Context, order Order) (Order, error)
	GetProducts(ctx context.Context) ([]Product, error)
	PostProduct(ctx context.Context, product Product) (Product, error)
	GetProductByID(ctx context.Context, id string) (Product, error)
	DeleteProductByID(ctx context.Context, id string) error
	UpdateProductByID(ctx context.Context, product Product) (Product, error)
}

Store provides all functions to execute database queries and transactions.

type UpdateCustomerByIDJSONRequestBody

type UpdateCustomerByIDJSONRequestBody = Customer

UpdateCustomerByIDJSONRequestBody defines body for UpdateCustomerByID for application/json ContentType.

type UpdateCustomerByIDParams

type UpdateCustomerByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

UpdateCustomerByIDParams defines parameters for UpdateCustomerByID.

type UpdateOrderByIDJSONRequestBody

type UpdateOrderByIDJSONRequestBody = Order

UpdateOrderByIDJSONRequestBody defines body for UpdateOrderByID for application/json ContentType.

type UpdateOrderByIDParams

type UpdateOrderByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

UpdateOrderByIDParams defines parameters for UpdateOrderByID.

type UpdateProductByIDJSONRequestBody

type UpdateProductByIDJSONRequestBody = Product

UpdateProductByIDJSONRequestBody defines body for UpdateProductByID for application/json ContentType.

type UpdateProductByIDParams

type UpdateProductByIDParams struct {
	// XRequestID X-Request-ID
	XRequestID *XRequestID `json:"xRequestID,omitempty"`
}

UpdateProductByIDParams defines parameters for UpdateProductByID.

type XRequestID

type XRequestID = XRequestIdType

XRequestID X-RequestID

type XRequestIdType

type XRequestIdType = uuid.UUID

XRequestIdType X-RequestID

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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