dao

package
v0.0.0-...-de95c55 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package dao is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	CreateEshuResource(dao *models.EshuResourceDao) error
	CreatePaymentTransactionsResource(dao *models.PaymentTransactionsResourceDao) error
	CreateRefundResource(dao *models.RefundResourceDao) error
}

DAO provides access to the database

func NewPaymentReconciliationDAOService

func NewPaymentReconciliationDAOService(cfg *config.Config) DAO

type MockDAO

type MockDAO struct {
	// contains filtered or unexported fields
}

MockDAO is a mock of DAO interface

func NewMockDAO

func NewMockDAO(ctrl *gomock.Controller) *MockDAO

NewMockDAO creates a new mock instance

func (*MockDAO) CreateEshuResource

func (m *MockDAO) CreateEshuResource(dao *models.EshuResourceDao) error

CreateEshuResource mocks base method

func (*MockDAO) CreatePaymentTransactionsResource

func (m *MockDAO) CreatePaymentTransactionsResource(dao *models.PaymentTransactionsResourceDao) error

CreatePaymentTransactionsResource mocks base method

func (*MockDAO) CreateRefundResource

func (m *MockDAO) CreateRefundResource(dao *models.RefundResourceDao) error

CreateRefundResource mocks base method

func (*MockDAO) EXPECT

func (m *MockDAO) EXPECT() *MockDAOMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockDAOMockRecorder

type MockDAOMockRecorder struct {
	// contains filtered or unexported fields
}

MockDAOMockRecorder is the mock recorder for MockDAO

func (*MockDAOMockRecorder) CreateEshuResource

func (mr *MockDAOMockRecorder) CreateEshuResource(dao interface{}) *gomock.Call

CreateEshuResource indicates an expected call of CreateEshuResource

func (*MockDAOMockRecorder) CreatePaymentTransactionsResource

func (mr *MockDAOMockRecorder) CreatePaymentTransactionsResource(dao interface{}) *gomock.Call

CreatePaymentTransactionsResource indicates an expected call of CreatePaymentTransactionsResource

func (*MockDAOMockRecorder) CreateRefundResource

func (mr *MockDAOMockRecorder) CreateRefundResource(dao interface{}) *gomock.Call

CreateRefundResource indicates an expected call of CreateRefundResource

type MongoDatabaseInterface

type MongoDatabaseInterface interface {
	Collection(name string, opts ...*options.CollectionOptions) *mongo.Collection
}

MongoDatabaseInterface is an interface that describes the mongodb driver

type MongoService

type MongoService struct {
	TransactionsCollection string
	ProductsCollection     string
	RefundsCollection      string
	// contains filtered or unexported fields
}

MongoService is an implementation of the Service interface using MongoDB as the backend driver.

func (*MongoService) CreateEshuResource

func (m *MongoService) CreateEshuResource(eshuResource *models.EshuResourceDao) error

CreateEshuResource will store the eshu file details into the database

func (*MongoService) CreatePaymentTransactionsResource

func (m *MongoService) CreatePaymentTransactionsResource(paymentTransactionsResource *models.PaymentTransactionsResourceDao) error

CreatePaymentTransactionsResource will store the payment_transaction file details into the database

func (*MongoService) CreateRefundResource

func (m *MongoService) CreateRefundResource(refundResource *models.RefundResourceDao) error

CreateRefundResource will store the refund file details into the database

Jump to

Keyboard shortcuts

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