eblservices

package
v0.0.0-...-cc13779 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const InsertCargoItemSQL = `` /* 549-byte string literal not displayed */

InsertCargoItemSQL - Insert CargoItemSQL Query

View Source
const InsertCargoLineItemSQL = `` /* 309-byte string literal not displayed */

InsertCargoLineItemSQL - Insert CargoLineItemSQL Query

View Source
const InsertConsignmentItemSQL = `` /* 478-byte string literal not displayed */

InsertConsignmentItemSQL - Insert ConsignmentItemSQL Query

Variables

This section is empty.

Functions

func StartEblServer

func StartEblServer(log *zap.Logger, isTest bool, pwd string, dbOpt *config.DBOptions, redisOpt *config.RedisOptions, mailerOpt *config.MailerOptions, grpcServerOpt *config.GrpcServerOptions, jwtOpt *config.JWTOptions, oauthOpt *config.OauthOptions, userOpt *config.UserOptions, uptraceOpt *config.UptraceOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartEblServer - Start Ebl server

Types

type ConsignmentItemService

type ConsignmentItemService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedConsignmentItemServiceServer
	// contains filtered or unexported fields
}

ConsignmentItemService - For accessing ConsignmentItem services

func NewConsignmentItemService

func NewConsignmentItemService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *ConsignmentItemService

NewConsignmentItemService - Create ConsignmentItem service

func (*ConsignmentItemService) CrConsignmentItemStruct

func (cis *ConsignmentItemService) CrConsignmentItemStruct(ctx context.Context, consignmentItem *eblproto.ConsignmentItem, userEmail string, requestID string) (*eblstruct.ConsignmentItem, error)

CrConsignmentItemStruct - process ConsignmentItem details

func (*ConsignmentItemService) CreateCargoItem

CreateCargoItem - CreateCargoItem

func (*ConsignmentItemService) CreateConsignmentItem

CreateConsignmentItem - CreateConsignmentItem

func (*ConsignmentItemService) CreateConsignmentItemsByShippingInstructionIdAndTOs

CreateConsignmentItemsByShippingInstructionIdAndTOs - CreateConsignmentItemsByShippingInstructionIdAndTOs

func (*ConsignmentItemService) FetchConsignmentItemsTOByShippingInstructionId

FetchConsignmentItemsTOByShippingInstructionId - Get ConsignmentItemsTOByShippingInstructionID

func (*ConsignmentItemService) ProcessCargoItemRequest

func (cis *ConsignmentItemService) ProcessCargoItemRequest(ctx context.Context, in *eblproto.CreateCargoItemRequest) (*eblproto.CargoItem, error)

ProcessCargoItemRequest - ProcessCargoItemRequest

func (*ConsignmentItemService) ProcessCargoLineItemRequest

ProcessCargoLineItemRequest - ProcessCargoLineItemRequest

func (*ConsignmentItemService) ProcessConsignmentItemRequest

ProcessConsignmentItemRequest - ProcessConsignmentItemRequest

func (*ConsignmentItemService) ProcessConsignmentItemRequestFromShippingInstructionID

func (cis *ConsignmentItemService) ProcessConsignmentItemRequestFromShippingInstructionID(ctx context.Context, in *eblproto.CreateConsignmentItemRequest) (*eblproto.ConsignmentItem, error)

ProcessConsignmentItemRequestFromShippingInstructionID - ProcessConsignmentItemRequestFromShippingInstructionID

func (*ConsignmentItemService) RemoveConsignmentItemsByShippingInstructionId

RemoveConsignmentItemsByShippingInstructionId - RemoveConsignmentItemsByShippingInstructionId

type IssueRequestResponseService

type IssueRequestResponseService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedIssueRequestResponseServiceServer
	// contains filtered or unexported fields
}

IssueRequestResponseService - For accessing Issuance services

func NewIssueRequestResponseService

func NewIssueRequestResponseService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *IssueRequestResponseService

NewIssueRequestResponseService - Create Shipping service

func (*IssueRequestResponseService) CrIssuanceRequestResponseStruct

func (is *IssueRequestResponseService) CrIssuanceRequestResponseStruct(ctx context.Context, issuanceRequestResponse *eblproto.IssuanceRequestResponse, userEmail string, requestID string) (*eblstruct.IssuanceRequestResponse, error)

CrIssuanceRequestResponseStruct - process IssuanceRequestResponse details

func (*IssueRequestResponseService) CreateIssuanceRequestResponse

CreateIssuanceRequestResponse - Create IssuanceRequestResponse

func (*IssueRequestResponseService) UpdateIssuanceRequestResponse

UpdateIssuanceRequestResponse - Update IssuanceRequestResponse

type IssueRequestService

type IssueRequestService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedIssueRequestServiceServer
	// contains filtered or unexported fields
}

IssueRequestService - For accessing Issuance services

func NewIssueRequestService

func NewIssueRequestService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *IssueRequestService

NewIssueRequestService - Create Shipping service

func (*IssueRequestService) CrEblVisualizationStruct

func (is *IssueRequestService) CrEblVisualizationStruct(ctx context.Context, eblVisualization *eblproto.EblVisualization, userEmail string, requestID string) (*eblstruct.EblVisualization, error)

CrEblVisualizationStruct - process EblVisualization details

func (*IssueRequestService) CrIssuanceRequestStruct

func (is *IssueRequestService) CrIssuanceRequestStruct(ctx context.Context, issuanceRequest *eblproto.IssuanceRequest, userEmail string, requestID string) (*eblstruct.IssuanceRequest, error)

CrIssuanceRequestStruct - process IssuanceRequest details

func (*IssueRequestService) CrIssuePartyStruct

func (is *IssueRequestService) CrIssuePartyStruct(ctx context.Context, issueParty *eblproto.IssueParty, userEmail string, requestID string) (*eblstruct.IssueParty, error)

CrIssuePartyStruct - process IssueParty details

func (*IssueRequestService) CrIssuePartySupportingCodeStruct

func (is *IssueRequestService) CrIssuePartySupportingCodeStruct(ctx context.Context, issuePartySupportingCode *eblproto.IssuePartySupportingCode, userEmail string, requestID string) (*eblstruct.IssuePartySupportingCode, error)

CrIssuePartySupportingCodeStruct - process IssuePartySupportingCode details

func (*IssueRequestService) CreateEblVisualization

CreateEblVisualization - Create EblVisualization

func (*IssueRequestService) CreateIssuanceRequest

CreateIssuanceRequest - Create IssuanceRequest

func (*IssueRequestService) CreateIssueParty

CreateIssueParty - Create IssueParty

func (*IssueRequestService) CreateIssuePartySupportingCode

CreateIssuePartySupportingCode - Create IssuePartySupportingCode

func (*IssueRequestService) GetIssueParties

GetIssueParties - Get IssueParties

func (*IssueRequestService) GetIssueParty

GetIssueParty - Get IssueParty

func (*IssueRequestService) GetIssuePartyByPk

GetIssuePartyByPk - Get IssueParty By Primary key(Id)

func (*IssueRequestService) UpdateEblVisualization

UpdateEblVisualization - Update EblVisualization

func (*IssueRequestService) UpdateIssuanceRequest

UpdateIssuanceRequest - Update IssuanceRequest

func (*IssueRequestService) UpdateIssueParty

UpdateIssueParty - Update IssueParty

func (*IssueRequestService) UpdateIssuePartySupportingCode

UpdateIssuePartySupportingCode - Update IssuePartySupportingCode

type ShippingInstructionService

type ShippingInstructionService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedShippingInstructionServiceServer
	// contains filtered or unexported fields
}

ShippingInstructionService - For accessing Shipping Instruction services

func NewShippingInstructionService

func NewShippingInstructionService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *ShippingInstructionService

NewShippingInstructionService - Create Shipping Instruction service

func (*ShippingInstructionService) CreateShippingInstruction

CreateShippingInstruction - Create ShippingInstruction

func (*ShippingInstructionService) FindById

FindById - Get FindById

func (*ShippingInstructionService) FindByReference

FindByReference - Get FindByReference

func (*ShippingInstructionService) GetShippingInstructionByPk

GetShippingInstructionByPk - Get ShippingInstruction By Primary key(Id)

func (*ShippingInstructionService) GetShippingInstructions

GetShippingInstructions - Get ShippingInstructions

func (*ShippingInstructionService) UpdateShippingInstructionByShippingInstructionReference

UpdateShippingInstructionByShippingInstructionReference - UpdateShippingInstructionByShippingInstructionReference

type ShippingInstructionSummaryService

type ShippingInstructionSummaryService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedShippingInstructionSummaryServiceServer
	// contains filtered or unexported fields
}

ShippingInstructionSummaryService - For accessing Shipping Instruction Summary services

func NewShippingInstructionSummaryService

func NewShippingInstructionSummaryService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *ShippingInstructionSummaryService

NewShippingInstructionSummaryService - Create Shipping Instruction Summary service

func (*ShippingInstructionSummaryService) CreateShippingInstructionSummary

CreateShippingInstructionSummary - Create ShippingInstructionSummary

func (*ShippingInstructionSummaryService) GetShippingInstructionSummaries

GetShippingInstructionSummaries - Get ShippingInstructionSummaries

type ShippingService

type ShippingService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedShippingServiceServer
	// contains filtered or unexported fields
}

ShippingService - For accessing Shipping services

func NewShippingService

func NewShippingService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *ShippingService

NewShippingService - Create Shipping service

func (*ShippingService) CrTransportStruct

func (ss *ShippingService) CrTransportStruct(ctx context.Context, transport *eblproto.Transport, userEmail string, requestID string) (*eblstruct.Transport, error)

CrTransportStruct - process Transport details

func (*ShippingService) CreateShipment

CreateShipment - Create Shipping

func (*ShippingService) CreateTransport

CreateTransport - Create Transport

func (*ShippingService) FindCarrierBookingReferenceByShippingInstructionId

FindCarrierBookingReferenceByShippingInstructionId - FindCarrierBookingReferenceByShippingInstructionId

func (*ShippingService) GetShipment

GetShipment - Get Shipping

func (*ShippingService) GetShipmentByPk

GetShipmentByPk - Get Shipping By Primary key(Id)

func (*ShippingService) GetShipments

GetShipments - Get Shippings

func (*ShippingService) GetTransport

GetTransport - Get Transport

func (*ShippingService) GetTransportByPk

GetTransportByPk - Get Transport By Primary key(Id)

func (*ShippingService) GetTransports

GetTransports - Get Transports

type SurrenderRequestAnswerService

type SurrenderRequestAnswerService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedSurrenderRequestAnswerServiceServer
	// contains filtered or unexported fields
}

SurrenderRequestAnswerService - For accessing Surrender services

func NewSurrenderRequestAnswerService

func NewSurrenderRequestAnswerService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *SurrenderRequestAnswerService

NewSurrenderRequestAnswerService - Create Shipping service

func (*SurrenderRequestAnswerService) CrSurrenderRequestAnswerStruct

func (ss *SurrenderRequestAnswerService) CrSurrenderRequestAnswerStruct(ctx context.Context, surrenderRequestAnswer *eblproto.SurrenderRequestAnswer, userEmail string, requestID string) (*eblstruct.SurrenderRequestAnswer, error)

CrSurrenderRequestAnswerStruct - process SurrenderRequestAnswer details

func (*SurrenderRequestAnswerService) CreateSurrenderRequestAnswer

CreateSurrenderRequestAnswer - Create SurrenderRequestAnswer

func (*SurrenderRequestAnswerService) UpdateSurrenderRequestAnswer

UpdateSurrenderRequestAnswer - Update SurrenderRequestAnswer

type SurrenderRequestService

type SurrenderRequestService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedSurrenderRequestServiceServer
	// contains filtered or unexported fields
}

SurrenderRequestService - For accessing Surrender services

func NewSurrenderRequestService

func NewSurrenderRequestService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *SurrenderRequestService

NewSurrenderRequestService - Create Shipping service

func (*SurrenderRequestService) CrEndorsementChainLinkStruct

func (ss *SurrenderRequestService) CrEndorsementChainLinkStruct(ctx context.Context, endorsementChainLink *eblproto.EndorsementChainLink, userEmail string, requestID string) (*eblstruct.EndorsementChainLink, error)

CrEndorsementChainLinkStruct - process EndorsementChainLink details

func (*SurrenderRequestService) CrSurrenderRequestStruct

func (ss *SurrenderRequestService) CrSurrenderRequestStruct(ctx context.Context, surrenderRequest *eblproto.SurrenderRequest, userEmail string, requestID string) (*eblstruct.SurrenderRequest, error)

CrSurrenderRequestStruct - process SurrenderRequest details

func (*SurrenderRequestService) CrTransactionPartyStruct

func (ss *SurrenderRequestService) CrTransactionPartyStruct(ctx context.Context, transactionParty *eblproto.TransactionParty, userEmail string, requestID string) (*eblstruct.TransactionParty, error)

CrTransactionPartyStruct - process TransactionParty details

func (*SurrenderRequestService) CrTransactionPartySupportingCodeStruct

func (ss *SurrenderRequestService) CrTransactionPartySupportingCodeStruct(ctx context.Context, transactionPartySupportingCode *eblproto.TransactionPartySupportingCode, userEmail string, requestID string) (*eblstruct.TransactionPartySupportingCode, error)

CrTransactionPartySupportingCodeStruct - process TransactionPartySupportingCode details

CreateEndorsementChainLink - Create EndorsementChainLink

func (*SurrenderRequestService) CreateSurrenderRequest

CreateSurrenderRequest - Create SurrenderRequest

func (*SurrenderRequestService) CreateTransactionParty

CreateTransactionParty - Create TransactionParty

func (*SurrenderRequestService) CreateTransactionPartySupportingCode

CreateTransactionPartySupportingCode - Create TransactionPartySupportingCode

func (*SurrenderRequestService) GetTransactionParties

GetTransactionParties - Get TransactionParties

func (*SurrenderRequestService) GetTransactionParty

GetTransactionParty - Get TransactionParty

func (*SurrenderRequestService) GetTransactionPartyByPk

GetTransactionPartyByPk - Get TransactionParty By Primary key(Id)

UpdateEndorsementChainLink - Update EndorsementChainLink

func (*SurrenderRequestService) UpdateSurrenderRequest

UpdateSurrenderRequest - Update SurrenderRequest

func (*SurrenderRequestService) UpdateTransactionParty

UpdateTransactionParty - Update TransactionParty

func (*SurrenderRequestService) UpdateTransactionPartySupportingCode

UpdateTransactionPartySupportingCode - Update TransactionPartySupportingCode

type TransportDocumentService

type TransportDocumentService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient partyproto.UserServiceClient
	eblproto.UnimplementedTransportDocumentServiceServer
	// contains filtered or unexported fields
}

TransportDocumentService - For accessing Transport Document services

func NewTransportDocumentService

func NewTransportDocumentService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient partyproto.UserServiceClient) *TransportDocumentService

NewTransportDocumentService - Create Transport Document service

func (*TransportDocumentService) ApproveTransportDocument

ApproveTransportDocument - Approve TransportDocument

func (*TransportDocumentService) CrTransportDocumentStruct

func (tds *TransportDocumentService) CrTransportDocumentStruct(ctx context.Context, transportDocument *eblproto.TransportDocument, userEmail string, requestID string) (*eblstruct.TransportDocument, error)

CrTransportDocumentStruct - process TransportDocument details

func (*TransportDocumentService) CrTransportDocumentSummaryStruct

func (tds *TransportDocumentService) CrTransportDocumentSummaryStruct(ctx context.Context, transportDocumentSummary *eblproto.TransportDocumentSummary, userEmail string, requestID string) (*eblstruct.TransportDocumentSummary, error)

CrTransportDocumentSummaryStruct - process TransportDocumentSummary details

func (*TransportDocumentService) CreateTransportDocument

CreateTransportDocument - Create TransportDocument

func (*TransportDocumentService) CreateTransportDocumentFromShippingInstructionTO

CreateTransportDocumentFromShippingInstructionTO - Create TransportDocumentFromShippingInstructionTO

func (*TransportDocumentService) CreateTransportDocumentSummary

CreateTransportDocumentSummary - Create TransportDocumentSummary

func (*TransportDocumentService) FindByTransportDocumentReference

FindByTransportDocumentReference - Find By TransportDocumentReference

func (*TransportDocumentService) FindTransportDocumentById

FindTransportDocumentById - FindTransportDocumentById

func (*TransportDocumentService) GetTransportDocumentByPk

GetTransportDocumentByPk - Get TransportDocument By Primary key(Id)

func (*TransportDocumentService) GetTransportDocumentStruct

func (tds *TransportDocumentService) GetTransportDocumentStruct(ctx context.Context, in *commonproto.GetRequest, transportDocumentTmp eblstruct.TransportDocument) (*eblproto.TransportDocument, error)

GetTransportDocumentStruct - Get TransportDocument header

func (*TransportDocumentService) GetTransportDocumentSummaries

GetTransportDocumentSummaries - Get TransportDocumentSummaries

func (*TransportDocumentService) GetTransportDocumentSummaryByPk

GetTransportDocumentSummaryByPk - Get TransportDocumentSummary By Primary key(Id)

func (*TransportDocumentService) GetTransportDocumentSummaryStruct

func (tds *TransportDocumentService) GetTransportDocumentSummaryStruct(ctx context.Context, in *commonproto.GetRequest, transportDocumentSummaryTmp eblstruct.TransportDocumentSummary) (*eblproto.TransportDocumentSummary, error)

GetTransportDocumentSummaryStruct - Get TransportDocumentSummary header

func (*TransportDocumentService) GetTransportDocuments

GetTransportDocuments - Get TransportDocuments

Jump to

Keyboard shortcuts

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