internalapi

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 82 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalAPI

func NewInternalAPI(handlerConfig handlers.HandlerConfig) *internalops.MymoveAPI

NewInternalAPI returns the internal API

func PDFProducer

func PDFProducer() runtime.Producer

PDFProducer creates a new PDF producer

Types

type ApproveMoveHandler

type ApproveMoveHandler struct {
	handlers.HandlerConfig
	services.MoveRouter
}

ApproveMoveHandler approves a move via POST /moves/{moveId}/approve

func (ApproveMoveHandler) Handle

Handle ... approves a Move from a request payload

type ApproveReimbursementHandler

type ApproveReimbursementHandler struct {
	handlers.HandlerConfig
}

ApproveReimbursementHandler approves a move via POST /reimbursement/{reimbursementId}/approve

func (ApproveReimbursementHandler) Handle

Handle ... approves a Reimbursement from a request payload

type BooleanFeatureFlagsForUserHandler

type BooleanFeatureFlagsForUserHandler struct {
	handlers.HandlerConfig
}

BooleanFeatureFlagsForUserHandler handles evaluating boolean feature flags for users

func (BooleanFeatureFlagsForUserHandler) Handle

Handle returns the boolean feature flag

type CancelMoveHandler

type CancelMoveHandler struct {
	handlers.HandlerConfig
	services.MoveRouter
}

CancelMoveHandler cancels a move via POST /moves/{moveId}/cancel

func (CancelMoveHandler) Handle

Handle ... cancels a Move from a request payload

type CreateBackupContactHandler

type CreateBackupContactHandler struct {
	handlers.HandlerConfig
}

CreateBackupContactHandler creates a new backup contact

func (CreateBackupContactHandler) Handle

Handle ... creates a new BackupContact from a request payload

type CreateDocumentHandler

type CreateDocumentHandler struct {
	handlers.HandlerConfig
}

CreateDocumentHandler creates a new document via POST /documents/

func (CreateDocumentHandler) Handle

Handle creates a new Document from a request payload

type CreateMTOShipmentHandler

type CreateMTOShipmentHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CreateMTOShipmentHandler is the handler to create MTO shipments

func (CreateMTOShipmentHandler) Handle

Handle creates the mto shipment

type CreateMovingExpenseHandler

type CreateMovingExpenseHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

func (CreateMovingExpenseHandler) Handle

Handle creates a moving expense

type CreateOrdersHandler

type CreateOrdersHandler struct {
	handlers.HandlerConfig
}

CreateOrdersHandler creates new orders via POST /orders

func (CreateOrdersHandler) Handle

Handle ... creates new Orders from a request payload

type CreatePPMUploadHandler

type CreatePPMUploadHandler struct {
	handlers.HandlerConfig
}

func (CreatePPMUploadHandler) Handle

type CreateProGearWeightTicketHandler

type CreateProGearWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CreateProGearWeightTicketHandler

func (CreateProGearWeightTicketHandler) Handle

Handle creating a progear weight ticket

type CreateServiceMemberHandler

type CreateServiceMemberHandler struct {
	handlers.HandlerConfig
}

CreateServiceMemberHandler creates a new service member via POST /serviceMember

func (CreateServiceMemberHandler) Handle

Handle ... creates a new ServiceMember from a request payload

type CreateSignedCertificationHandler

type CreateSignedCertificationHandler struct {
	handlers.HandlerConfig
}

CreateSignedCertificationHandler creates a new issue via POST /issue

func (CreateSignedCertificationHandler) Handle

Handle creates a new SignedCertification from a request payload

type CreateUploadHandler

type CreateUploadHandler struct {
	handlers.HandlerConfig
}

CreateUploadHandler creates a new upload via POST /uploads?documentId={documentId}

func (CreateUploadHandler) Handle

Handle creates a new UserUpload from a request payload

type CreateWeightTicketHandler

type CreateWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CreateWeightTicketHandler

func (CreateWeightTicketHandler) Handle

Handle creates a weight ticket Depending on the SO, may need to change the document params to weight ticket params

type DeleteMovingExpenseHandler

type DeleteMovingExpenseHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

DeleteMovingExpenseHandler

func (DeleteMovingExpenseHandler) Handle

Handle deletes a moving expense

type DeleteProGearWeightTicketHandler

type DeleteProGearWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

DeleteProGearWeightTicketHandler

func (DeleteProGearWeightTicketHandler) Handle

Handle deletes a pro-gear weight ticket

type DeleteShipmentHandler

type DeleteShipmentHandler struct {
	handlers.HandlerConfig
	services.ShipmentDeleter
}

DeleteShipmentHandler soft deletes a shipment

func (DeleteShipmentHandler) Handle

Handle soft deletes a shipment

type DeleteUploadHandler

type DeleteUploadHandler struct {
	handlers.HandlerConfig
	services.UploadInformationFetcher
}

DeleteUploadHandler deletes an upload

func (DeleteUploadHandler) Handle

Handle deletes an upload

type DeleteUploadsHandler

type DeleteUploadsHandler struct {
	handlers.HandlerConfig
}

DeleteUploadsHandler deletes a collection of uploads

func (DeleteUploadsHandler) Handle

Handle deletes uploads

type DeleteWeightTicketHandler

type DeleteWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

DeleteWeightTicketHandler

func (DeleteWeightTicketHandler) Handle

Handle deletes a weight ticket

type ErrorResponse

type ErrorResponse struct {
	ErrorCode    string `json:"errorCode"`
	ErrorSummary string `json:"errorSummary"`
	ErrorLink    string `json:"errorLink"`
	ErrorID      string `json:"errorId"`
	ErrorCauses  []struct {
		ErrorSummary string `json:"errorSummary"`
	} `json:"errorCauses"`
}

type GetAllMovesHandler

type GetAllMovesHandler struct {
	handlers.HandlerConfig
}

func (GetAllMovesHandler) Handle

GetAllMovesHandler returns the current and all previous moves of a service member

type GetOktaProfileHandler

type GetOktaProfileHandler struct {
	handlers.HandlerConfig
}

GetOktaProfileHandler gets Okta Profile via GET /okta-profile

func (GetOktaProfileHandler) Handle

Handle performs a GET request from Okta API, returns values in profile object from response Could not use data from sessions since access token data does not change when profile is updated

type IndexBackupContactsHandler

type IndexBackupContactsHandler struct {
	handlers.HandlerConfig
}

IndexBackupContactsHandler returns a list of all backup contacts for a service member

func (IndexBackupContactsHandler) Handle

Handle retrieves a list of all moves in the system belonging to the logged in user

type IndexEntitlementsHandler

type IndexEntitlementsHandler struct {
	handlers.HandlerConfig
}

IndexEntitlementsHandler indexes entitlements

func (IndexEntitlementsHandler) Handle

Handle is the handler

type IndexSignedCertificationsHandler

type IndexSignedCertificationsHandler struct {
	handlers.HandlerConfig
}

IndexSignedCertificationsHandler gets all signed certifications associated with a move

func (IndexSignedCertificationsHandler) Handle

Handle gets a list of SignedCertifications for a move

type JSONDate

type JSONDate time.Time

JSONDate is a time type

func (*JSONDate) UnmarshalJSON

func (j *JSONDate) UnmarshalJSON(b []byte) error

UnmarshalJSON Dates without timestamps need custom unmarshalling

type ListMTOShipmentsHandler

type ListMTOShipmentsHandler struct {
	handlers.HandlerConfig
	services.MTOShipmentFetcher
}

ListMTOShipmentsHandler returns a list of MTO Shipments

func (ListMTOShipmentsHandler) Handle

Handle listing mto shipments for the move task order

type MoveQueueItems

type MoveQueueItems []models.MoveQueueItem

MoveQueueItems is a set of move queue items Implementation of a type and methods in order to use sort.Interface directly. This allows us to call sortQueueItemsByLastModifiedDate in the ShowQueueHandler which will sort the slice by the LastModfiedDate. Doing it this way allows us to avoid having reflect called which should act to speed the sort up.

func (MoveQueueItems) Len

func (mqi MoveQueueItems) Len() int

func (MoveQueueItems) Less

func (mqi MoveQueueItems) Less(i, j int) bool

func (MoveQueueItems) Swap

func (mqi MoveQueueItems) Swap(i, j int)

type PatchMoveHandler

type PatchMoveHandler struct {
	handlers.HandlerConfig
	services.MoveCloseoutOfficeUpdater
}

PatchMoveHandler patches a move via PATCH /moves/{moveId}

func (PatchMoveHandler) Handle

Handle ... patches a Move from a request payload

type PatchServiceMemberHandler

type PatchServiceMemberHandler struct {
	handlers.HandlerConfig
}

PatchServiceMemberHandler patches a serviceMember via PATCH /serviceMembers/{serviceMemberId}

func (PatchServiceMemberHandler) Handle

Handle ... patches a new ServiceMember from a request payload

type QueueSitData

type QueueSitData struct {
	ID              uuid.UUID `json:"id"`
	Status          string    `json:"status"`
	ActualStartDate JSONDate  `json:"actual_start_date"`
	OutDate         JSONDate  `json:"out_date"`
	Location        string    `json:"location"`
}

QueueSitData is SIT data in a queue

type ResubmitPPMShipmentDocumentationHandler

type ResubmitPPMShipmentDocumentationHandler struct {
	handlers.HandlerConfig
	services.PPMShipmentUpdatedSubmitter
}

ResubmitPPMShipmentDocumentationHandler is the handler to resubmit PPM shipment documentation

func (ResubmitPPMShipmentDocumentationHandler) Handle

Handle updates a customer's PPM shipment payment signature and re-routes the shipment to the service counselor.

type SearchDutyLocationsHandler

type SearchDutyLocationsHandler struct {
	handlers.HandlerConfig
}

SearchDutyLocationsHandler returns a list of all issues

func (SearchDutyLocationsHandler) Handle

Handle returns a list of locations based on the search query

type ShowAddressHandler

type ShowAddressHandler struct {
	handlers.HandlerConfig
}

ShowAddressHandler returns an address

func (ShowAddressHandler) Handle

Handle returns a address given an addressId

type ShowAvailableMoveDatesHandler

type ShowAvailableMoveDatesHandler struct {
	handlers.HandlerConfig
}

ShowAvailableMoveDatesHandler returns the available move dates starting at a given date.

func (ShowAvailableMoveDatesHandler) Handle

Handle returns the available move dates.

type ShowBackupContactHandler

type ShowBackupContactHandler struct {
	handlers.HandlerConfig
}

ShowBackupContactHandler returns a backup contact for a user and backup contact ID

func (ShowBackupContactHandler) Handle

Handle retrieves a backup contact in the system belonging to the logged in user given backup contact ID

type ShowDocumentHandler

type ShowDocumentHandler struct {
	handlers.HandlerConfig
}

ShowDocumentHandler shows a document via GETT /documents/:document_id

func (ShowDocumentHandler) Handle

Handle creates a new Document from a request payload

type ShowDutyLocationTransportationOfficeHandler

type ShowDutyLocationTransportationOfficeHandler struct {
	handlers.HandlerConfig
}

ShowDutyLocationTransportationOfficeHandler returns the transportation office for a duty location ID

func (ShowDutyLocationTransportationOfficeHandler) Handle

Handle retrieves the transportation office in the system for a given duty location ID

type ShowLoggedInUserHandler

type ShowLoggedInUserHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

ShowLoggedInUserHandler returns the logged in user

func (ShowLoggedInUserHandler) Handle

Handle returns the logged in user

type ShowMoveHandler

type ShowMoveHandler struct {
	handlers.HandlerConfig
}

ShowMoveHandler returns a move for a user and move ID

func (ShowMoveHandler) Handle

Handle retrieves a move in the system belonging to the logged in user given move ID

type ShowOrdersHandler

type ShowOrdersHandler struct {
	handlers.HandlerConfig
}

ShowOrdersHandler returns orders for a user and order ID

func (ShowOrdersHandler) Handle

Handle retrieves orders in the system belonging to the logged in user given order ID

type ShowPaymentPacketHandler

type ShowPaymentPacketHandler struct {
	handlers.HandlerConfig
	services.PaymentPacketCreator
}

ShowPaymentPacketHandler returns a PPM Payment Packet PDF

func (ShowPaymentPacketHandler) Handle

Handle returns a generated PDF

type ShowQueueHandler

type ShowQueueHandler struct {
	handlers.HandlerConfig
}

ShowQueueHandler returns a list of all MoveQueueItems in the moves queue

func (ShowQueueHandler) Handle

Handle retrieves a list of all MoveQueueItems in the system in the moves queue

type ShowServiceMemberHandler

type ShowServiceMemberHandler struct {
	handlers.HandlerConfig
}

ShowServiceMemberHandler returns a serviceMember for a user and service member ID

func (ShowServiceMemberHandler) Handle

Handle retrieves a service member in the system belonging to the logged in user given service member ID

type ShowServiceMemberOrdersHandler

type ShowServiceMemberOrdersHandler struct {
	handlers.HandlerConfig
}

ShowServiceMemberOrdersHandler returns latest orders for a logged in serviceMember

func (ShowServiceMemberOrdersHandler) Handle

Handle retrieves orders for a logged in service member

type SubmitAmendedOrdersHandler

type SubmitAmendedOrdersHandler struct {
	handlers.HandlerConfig
	services.MoveRouter
}

SubmitAmendedOrdersHandler approves a move via POST /moves/{moveId}/submit

func (SubmitAmendedOrdersHandler) Handle

Handle ... submit a move to TOO for approval

type SubmitMoveHandler

type SubmitMoveHandler struct {
	handlers.HandlerConfig
	services.MoveRouter
}

SubmitMoveHandler approves a move via POST /moves/{moveId}/submit

func (SubmitMoveHandler) Handle

Handle ... submit a move to TOO for approval

type SubmitPPMShipmentDocumentationHandler

type SubmitPPMShipmentDocumentationHandler struct {
	handlers.HandlerConfig
	services.PPMShipmentNewSubmitter
}

SubmitPPMShipmentDocumentationHandler is the handler to save a PPMShipment signature and route the PPM shipment to the office

func (SubmitPPMShipmentDocumentationHandler) Handle

Handle saves a new customer signature for PPMShipment documentation submission and routes PPM shipment to the service counselor.

type UpdateBackupContactHandler

type UpdateBackupContactHandler struct {
	handlers.HandlerConfig
}

UpdateBackupContactHandler updates a backup contact with a new one

func (UpdateBackupContactHandler) Handle

Handle ... updates a BackupContact from a request payload

type UpdateMTOShipmentHandler

type UpdateMTOShipmentHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMTOShipmentHandler is the handler to update MTO shipments

func (UpdateMTOShipmentHandler) Handle

Handle updates the mto shipment

type UpdateMovingExpenseHandler

type UpdateMovingExpenseHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMovingExpenseHandler struct

func (UpdateMovingExpenseHandler) Handle

type UpdateOktaProfileHandler

type UpdateOktaProfileHandler struct {
	handlers.HandlerConfig
}

GetOktaProfileHandler gets Okta Profile via GET /okta-profile

func (UpdateOktaProfileHandler) Handle

Handle implements okta_profile.UpdateOktaInfoHandler following the API call docs here: https://developer.okta.com/docs/reference/api/oidc/#client-authentication-methods

type UpdateOrdersHandler

type UpdateOrdersHandler struct {
	handlers.HandlerConfig
}

UpdateOrdersHandler updates an order via PUT /orders/{orderId}

func (UpdateOrdersHandler) Handle

Handle ... updates an order from a request payload

type UpdateProGearWeightTicketHandler

type UpdateProGearWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateProGearWeightTicketHandler

func (UpdateProGearWeightTicketHandler) Handle

type UpdateWeightTicketHandler

type UpdateWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateWeightTicketHandler

func (UpdateWeightTicketHandler) Handle

type UploadAmendedOrdersHandler

type UploadAmendedOrdersHandler struct {
	handlers.HandlerConfig
	services.OrderUpdater
}

UploadAmendedOrdersHandler uploads amended orders to an order via PATCH /orders/{orderId}/upload_amended_orders

func (UploadAmendedOrdersHandler) Handle

Handle updates an order to attach amended orders from a request payload

type ValidatePostalCodeWithRateDataHandler

type ValidatePostalCodeWithRateDataHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

ValidatePostalCodeWithRateDataHandler has the service validator

func (ValidatePostalCodeWithRateDataHandler) Handle

Handle should call the service validator and rescue expected errors and return false to valid

type VariantFeatureFlagsForUserHandler

type VariantFeatureFlagsForUserHandler struct {
	handlers.HandlerConfig
}

VariantFeatureFlagsForUserHandler handles evaluating variant feature flags for users

func (VariantFeatureFlagsForUserHandler) Handle

Handle returns the boolean feature flag

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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