api

package
v0.0.0-...-10de536 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountApiServiceInfo = newAccountApiServiceInfo()
View Source
var PaymentApiServiceInfo = newPaymentApiServiceInfo()
View Source
var WarehouseApiServiceInfo = newWarehouseServiceInfo()

Functions

This section is empty.

Types

type AccountApi

type AccountApi interface {
	GetAccount(ctx context.Context, username *domain.GetAccountRequest) (r *domain.GetAccountResponse, err error)
	CreateAccount(ctx context.Context, account *domain.ChangeAccountRequest) (r *domain.ChangeAccountResponse, err error)
	UpdateAccount(ctx context.Context, account *domain.ChangeAccountRequest) (r *domain.ChangeAccountResponse, err error)
}

type PaymentApi

type PaymentApi interface {
	ExecuteSettlement(ctx context.Context, req *domain.ExecuteSettlementRequest) (res *domain.ExecuteSettlementResponse, err error)
	UpdatePaymentState(ctx context.Context, req *domain.UpdatePaymentStateRequest) (res *domain.Empty, err error)
	UpdatePaymentStateAlias(ctx context.Context, req *domain.UpdatePaymentStateAlias) (res *domain.Empty, err error)
}

type WarehouseApi

type WarehouseApi interface {
	GetAllAdvertisements(ctx context.Context, req *domain.Empty) (res *domain.GetAllAdvertisementsResponse, err error)
	GetAllProducts(ctx context.Context, req *domain.Empty) (res *domain.GetAllProductResponse, err error)
	GetProduct(ctx context.Context, req *domain.GetProductRequest) (res *domain.GetProductResponse, err error)
	CreateProduct(ctx context.Context, req *domain.ChangeProductRequest) (res *domain.Empty, err error)
	UpdateProduct(ctx context.Context, req *domain.ChangeProductRequest) (res *domain.Empty, err error)
	RemoveProduct(ctx context.Context, req *domain.RemoveProductRequest) (res *domain.Empty, err error)
	UpdateStockpile(ctx context.Context, req *domain.UpdateStockpileRequest) (res *domain.Empty, err error)
	QueryStockpile(ctx context.Context, req *domain.QueryStockpileRequest) (res *domain.QueryStockpileResponse, err error)
	SetDeliveredStatus(ctx context.Context, req *domain.SetDeliveredStatusRequest) (res *domain.Empty, err error)
}

Jump to

Keyboard shortcuts

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