merchantdocumentapimapper

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 3 Imported by: 0

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 added in v1.0.13

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