transformers

package
Version: v0.0.0-...-6017348 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PayableResourceDBToRequest

func PayableResourceDBToRequest(payableDao *models.PayableResourceDao) *models.PayableResource

PayableResourceDBToRequest will take the Dao version of a payable resource and convert to an request version

func PayableResourceDaoToCreatedResponse

func PayableResourceDaoToCreatedResponse(model *models.PayableResourceDao) *models.CreatedPayableResource

PayableResourceDaoToCreatedResponse will transform a payable resource dao that has successfully been created into a http response entity

func PayableResourceRequestToDB

func PayableResourceRequestToDB(req *models.PayableRequest) *models.PayableResourceDao

PayableResourceRequestToDB will take the input request from the REST call and transform it to a dao ready for insertion into the database

func PayableResourceToPaymentDetails

func PayableResourceToPaymentDetails(payable *models.PayableResource) *models.PaymentDetails

PayableResourceToPaymentDetails will create a PaymentDetails resource (for integrating into payment service) from an LFP PayableResource

Types

This section is empty.

Jump to

Keyboard shortcuts

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