service

package
v0.0.0-...-84b52ed Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) GetAutoRefundsCSV

func (m *MockService) GetAutoRefundsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetAutoRefundsCSV mocks base method

func (*MockService) GetProductsCSV

func (m *MockService) GetProductsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetProductsCSV mocks base method

func (*MockService) GetRefundsCSV

func (m *MockService) GetRefundsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetRefundsCSV mocks base method

func (*MockService) GetTransactionsCSV

func (m *MockService) GetTransactionsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetTransactionsCSV mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) GetAutoRefundsCSV

func (mr *MockServiceMockRecorder) GetAutoRefundsCSV(reconciliationMetaData interface{}) *gomock.Call

GetAutoRefundsCSV indicates an expected call of GetRefundsCSV

func (*MockServiceMockRecorder) GetProductsCSV

func (mr *MockServiceMockRecorder) GetProductsCSV(reconciliationMetaData interface{}) *gomock.Call

GetProductsCSV indicates an expected call of GetProductsCSV

func (*MockServiceMockRecorder) GetRefundsCSV

func (mr *MockServiceMockRecorder) GetRefundsCSV(reconciliationMetaData interface{}) *gomock.Call

GetRefundsCSV indicates an expected call of GetRefundsCSV

func (*MockServiceMockRecorder) GetTransactionsCSV

func (mr *MockServiceMockRecorder) GetTransactionsCSV(reconciliationMetaData interface{}) *gomock.Call

GetTransactionsCSV indicates an expected call of GetTransactionsCSV

type Service

type Service interface {
	GetTransactionsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)
	GetProductsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)
	GetRefundsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)
}

Service provides functionality by which to fetch payment reconciliation CSV's

type ServiceImpl

type ServiceImpl struct {
	Config *config.Config
	DAO    dao.DAO
}

ServiceImpl provides a concrete implementation of the Service interface

func New

func New(cfg *config.Config) *ServiceImpl

New returns a new, concrete implementation of the Service interface

func (*ServiceImpl) GetProductsCSV

func (s *ServiceImpl) GetProductsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetProductsCSV retrieves products data and constructs a CSV

func (*ServiceImpl) GetRefundsCSV

func (s *ServiceImpl) GetRefundsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetRefundsCSV retrieves refunds data and constructs a CSV

func (*ServiceImpl) GetTransactionsCSV

func (s *ServiceImpl) GetTransactionsCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetTransactionsCSV retrieves transactions data and constructs a CSV

Jump to

Keyboard shortcuts

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