merchantdocumentapimapper

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MerchantDocumentBaseResponseMapper

type MerchantDocumentBaseResponseMapper interface {
	// Maps a single merchant document to an HTTP API response.
	ToApiResponseMerchantDocument(doc *pb.ApiResponseMerchantDocument) *response.ApiResponseMerchantDocument
}

type MerchantDocumentCommandResponseMapper

type MerchantDocumentCommandResponseMapper interface {
	MerchantDocumentBaseResponseMapper

	ToApiResponseMerchantDocumentDeleteAt(doc *pb.ApiResponseMerchantDocumentDeleteAt) *response.ApiResponseMerchantDocumentDeleteAt

	// Maps all merchant documents to an API-compatible response.
	ToApiResponseMerchantDocumentAll(resp *pb.ApiResponseMerchantDocumentAll) *response.ApiResponseMerchantDocumentAll

	// Maps a soft-deleted single merchant document response to an API response.
	ToApiResponseMerchantDocumentDelete(resp *pb.ApiResponseMerchantDocumentDelete) *response.ApiResponseMerchantDocumentDelete
}

func NewMerchantDocumentCommandResponseMapper

func NewMerchantDocumentCommandResponseMapper() MerchantDocumentCommandResponseMapper

NewMerchantDocumentCommandResponseMapper returns a new instance of merchantDocumentCommandResponseMapepr which provides methods to map gRPC merchant document responses to HTTP API responses for command operations.

type MerchantDocumentQueryResponseMapper

type MerchantDocumentQueryResponseMapper interface {
	MerchantDocumentBaseResponseMapper

	// Maps paginated merchant document responses to an HTTP API response.
	ToApiResponsePaginationMerchantDocument(docs *pb.ApiResponsePaginationMerchantDocument) *response.ApiResponsePaginationMerchantDocument

	// Maps paginated soft-deleted merchant document responses to an HTTP API response.
	ToApiResponsePaginationMerchantDocumentDeleteAt(docs *pb.ApiResponsePaginationMerchantDocumentAt) *response.ApiResponsePaginationMerchantDocumentDeleteAt
}

func NewMerchantDocumentQueryResponseMapper

func NewMerchantDocumentQueryResponseMapper() MerchantDocumentQueryResponseMapper

type MerchantDocumentResponseMapper

type MerchantDocumentResponseMapper interface {
	QueryMapper() MerchantDocumentQueryResponseMapper
	CommandMapper() MerchantDocumentCommandResponseMapper
}

func NewMerchantDocumentResponseMapper

func NewMerchantDocumentResponseMapper() MerchantDocumentResponseMapper

Jump to

Keyboard shortcuts

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