Documentation ¶
Overview ¶
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
Index ¶
- type Account
- type Asset
- type Auth
- type Ledger
- type MockAccount
- func (m *MockAccount) Create(organizationID, ledgerID, portfolioID string, inp mmodel.CreateAccountInput) (*mmodel.Account, error)
- func (m *MockAccount) Delete(organizationID, ledgerID, portfolioID, accountID string) error
- func (m *MockAccount) EXPECT() *MockAccountMockRecorder
- func (m *MockAccount) Get(organizationID, ledgerID, portfolioID string, limit, page int) (*mmodel.Accounts, error)
- func (m *MockAccount) GetByID(organizationID, ledgerID, portfolioID, accountID string) (*mmodel.Account, error)
- func (m *MockAccount) Update(organizationID, ledgerID, portfolioID, accountID string, ...) (*mmodel.Account, error)
- type MockAccountMockRecorder
- func (mr *MockAccountMockRecorder) Create(organizationID, ledgerID, portfolioID, inp any) *gomock.Call
- func (mr *MockAccountMockRecorder) Delete(organizationID, ledgerID, portfolioID, accountID any) *gomock.Call
- func (mr *MockAccountMockRecorder) Get(organizationID, ledgerID, portfolioID, limit, page any) *gomock.Call
- func (mr *MockAccountMockRecorder) GetByID(organizationID, ledgerID, portfolioID, accountID any) *gomock.Call
- func (mr *MockAccountMockRecorder) Update(organizationID, ledgerID, portfolioID, accountID, inp any) *gomock.Call
- type MockAsset
- func (m *MockAsset) Create(organizationID, ledgerID string, inp mmodel.CreateAssetInput) (*mmodel.Asset, error)
- func (m *MockAsset) Delete(organizationID, ledgerID, assetID string) error
- func (m *MockAsset) EXPECT() *MockAssetMockRecorder
- func (m *MockAsset) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Assets, error)
- func (m *MockAsset) GetByID(organizationID, ledgerID, assetID string) (*mmodel.Asset, error)
- func (m *MockAsset) Update(organizationID, ledgerID, assetID string, inp mmodel.UpdateAssetInput) (*mmodel.Asset, error)
- type MockAssetMockRecorder
- func (mr *MockAssetMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
- func (mr *MockAssetMockRecorder) Delete(organizationID, ledgerID, assetID any) *gomock.Call
- func (mr *MockAssetMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
- func (mr *MockAssetMockRecorder) GetByID(organizationID, ledgerID, assetID any) *gomock.Call
- func (mr *MockAssetMockRecorder) Update(organizationID, ledgerID, assetID, inp any) *gomock.Call
- type MockAuth
- type MockAuthMockRecorder
- type MockLedger
- func (m *MockLedger) Create(organizationID string, inp mmodel.CreateLedgerInput) (*mmodel.Ledger, error)
- func (m *MockLedger) Delete(organizationID, ledgerID string) error
- func (m *MockLedger) EXPECT() *MockLedgerMockRecorder
- func (m *MockLedger) Get(organizationID string, limit, page int) (*mmodel.Ledgers, error)
- func (m *MockLedger) GetByID(organizationID, ledgerID string) (*mmodel.Ledger, error)
- func (m *MockLedger) Update(organizationID, ledgerID string, inp mmodel.UpdateLedgerInput) (*mmodel.Ledger, error)
- type MockLedgerMockRecorder
- func (mr *MockLedgerMockRecorder) Create(organizationID, inp any) *gomock.Call
- func (mr *MockLedgerMockRecorder) Delete(organizationID, ledgerID any) *gomock.Call
- func (mr *MockLedgerMockRecorder) Get(organizationID, limit, page any) *gomock.Call
- func (mr *MockLedgerMockRecorder) GetByID(organizationID, ledgerID any) *gomock.Call
- func (mr *MockLedgerMockRecorder) Update(organizationID, ledgerID, inp any) *gomock.Call
- type MockOrganization
- func (m *MockOrganization) Create(org mmodel.CreateOrganizationInput) (*mmodel.Organization, error)
- func (m *MockOrganization) Delete(organizationID string) error
- func (m *MockOrganization) EXPECT() *MockOrganizationMockRecorder
- func (m *MockOrganization) Get(limit, page int) (*mmodel.Organizations, error)
- func (m *MockOrganization) GetByID(organizationID string) (*mmodel.Organization, error)
- func (m *MockOrganization) Update(organizationID string, orgInput mmodel.UpdateOrganizationInput) (*mmodel.Organization, error)
- type MockOrganizationMockRecorder
- func (mr *MockOrganizationMockRecorder) Create(org any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) Delete(organizationID any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) Get(limit, page any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) GetByID(organizationID any) *gomock.Call
- func (mr *MockOrganizationMockRecorder) Update(organizationID, orgInput any) *gomock.Call
- type MockPortfolio
- func (m *MockPortfolio) Create(organizationID, ledgerID string, inp mmodel.CreatePortfolioInput) (*mmodel.Portfolio, error)
- func (m *MockPortfolio) Delete(organizationID, ledgerID, portfolioID string) error
- func (m *MockPortfolio) EXPECT() *MockPortfolioMockRecorder
- func (m *MockPortfolio) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Portfolios, error)
- func (m *MockPortfolio) GetByID(organizationID, ledgerID, portfolioID string) (*mmodel.Portfolio, error)
- func (m *MockPortfolio) Update(organizationID, ledgerID, portfolioID string, inp mmodel.UpdatePortfolioInput) (*mmodel.Portfolio, error)
- type MockPortfolioMockRecorder
- func (mr *MockPortfolioMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
- func (mr *MockPortfolioMockRecorder) Delete(organizationID, ledgerID, portfolioID any) *gomock.Call
- func (mr *MockPortfolioMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
- func (mr *MockPortfolioMockRecorder) GetByID(organizationID, ledgerID, portfolioID any) *gomock.Call
- func (mr *MockPortfolioMockRecorder) Update(organizationID, ledgerID, portfolioID, inp any) *gomock.Call
- type MockProduct
- func (m *MockProduct) Create(organizationID, ledgerID string, inp mmodel.CreateProductInput) (*mmodel.Product, error)
- func (m *MockProduct) Delete(organizationID, ledgerID, productID string) error
- func (m *MockProduct) EXPECT() *MockProductMockRecorder
- func (m *MockProduct) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Products, error)
- func (m *MockProduct) GetByID(organizationID, ledgerID, productID string) (*mmodel.Product, error)
- func (m *MockProduct) Update(organizationID, ledgerID, productID string, inp mmodel.UpdateProductInput) (*mmodel.Product, error)
- type MockProductMockRecorder
- func (mr *MockProductMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
- func (mr *MockProductMockRecorder) Delete(organizationID, ledgerID, productID any) *gomock.Call
- func (mr *MockProductMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
- func (mr *MockProductMockRecorder) GetByID(organizationID, ledgerID, productID any) *gomock.Call
- func (mr *MockProductMockRecorder) Update(organizationID, ledgerID, productID, inp any) *gomock.Call
- type Organization
- type Portfolio
- type Product
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v1.29.0
type Account interface { Create(organizationID, ledgerID, portfolioID string, inp mmodel.CreateAccountInput) (*mmodel.Account, error) Get(organizationID, ledgerID, portfolioID string, limit, page int) (*mmodel.Accounts, error) GetByID(organizationID, ledgerID, portfolioID, accountID string) (*mmodel.Account, error) Update(organizationID, ledgerID, portfolioID, accountID string, inp mmodel.UpdateAccountInput) (*mmodel.Account, error) Delete(organizationID, ledgerID, portfolioID, accountID string) error }
type Asset ¶ added in v1.27.0
type Asset interface { Create(organizationID, ledgerID string, inp mmodel.CreateAssetInput) (*mmodel.Asset, error) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Assets, error) GetByID(organizationID, ledgerID, assetID string) (*mmodel.Asset, error) Update(organizationID, ledgerID, assetID string, inp mmodel.UpdateAssetInput) (*mmodel.Asset, error) Delete(organizationID, ledgerID, assetID string) error }
type Auth ¶
type Auth interface { AuthenticateWithCredentials(username, password string) (*model.TokenResponse, error) ExchangeToken(code string) (*model.TokenResponse, error) }
type Ledger ¶ added in v1.26.0
type Ledger interface { Create(organizationID string, inp mmodel.CreateLedgerInput) (*mmodel.Ledger, error) Get(organizationID string, limit, page int) (*mmodel.Ledgers, error) GetByID(organizationID, ledgerID string) (*mmodel.Ledger, error) Update(organizationID, ledgerID string, inp mmodel.UpdateLedgerInput) (*mmodel.Ledger, error) Delete(organizationID, ledgerID string) error }
type MockAccount ¶ added in v1.29.0
type MockAccount struct {
// contains filtered or unexported fields
}
MockAccount is a mock of Account interface.
func NewMockAccount ¶ added in v1.29.0
func NewMockAccount(ctrl *gomock.Controller) *MockAccount
NewMockAccount creates a new mock instance.
func (*MockAccount) Create ¶ added in v1.29.0
func (m *MockAccount) Create(organizationID, ledgerID, portfolioID string, inp mmodel.CreateAccountInput) (*mmodel.Account, error)
Create mocks base method.
func (*MockAccount) Delete ¶ added in v1.29.0
func (m *MockAccount) Delete(organizationID, ledgerID, portfolioID, accountID string) error
Delete mocks base method.
func (*MockAccount) EXPECT ¶ added in v1.29.0
func (m *MockAccount) EXPECT() *MockAccountMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccount) Get ¶ added in v1.29.0
func (m *MockAccount) Get(organizationID, ledgerID, portfolioID string, limit, page int) (*mmodel.Accounts, error)
Get mocks base method.
func (*MockAccount) GetByID ¶ added in v1.29.0
func (m *MockAccount) GetByID(organizationID, ledgerID, portfolioID, accountID string) (*mmodel.Account, error)
GetByID mocks base method.
func (*MockAccount) Update ¶ added in v1.29.0
func (m *MockAccount) Update(organizationID, ledgerID, portfolioID, accountID string, inp mmodel.UpdateAccountInput) (*mmodel.Account, error)
Update mocks base method.
type MockAccountMockRecorder ¶ added in v1.29.0
type MockAccountMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountMockRecorder is the mock recorder for MockAccount.
func (*MockAccountMockRecorder) Create ¶ added in v1.29.0
func (mr *MockAccountMockRecorder) Create(organizationID, ledgerID, portfolioID, inp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockAccountMockRecorder) Delete ¶ added in v1.29.0
func (mr *MockAccountMockRecorder) Delete(organizationID, ledgerID, portfolioID, accountID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAccountMockRecorder) Get ¶ added in v1.29.0
func (mr *MockAccountMockRecorder) Get(organizationID, ledgerID, portfolioID, limit, page any) *gomock.Call
Get indicates an expected call of Get.
type MockAsset ¶ added in v1.27.0
type MockAsset struct {
// contains filtered or unexported fields
}
MockAsset is a mock of Asset interface.
func NewMockAsset ¶ added in v1.27.0
func NewMockAsset(ctrl *gomock.Controller) *MockAsset
NewMockAsset creates a new mock instance.
func (*MockAsset) Create ¶ added in v1.27.0
func (m *MockAsset) Create(organizationID, ledgerID string, inp mmodel.CreateAssetInput) (*mmodel.Asset, error)
Create mocks base method.
func (*MockAsset) EXPECT ¶ added in v1.27.0
func (m *MockAsset) EXPECT() *MockAssetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAssetMockRecorder ¶ added in v1.27.0
type MockAssetMockRecorder struct {
// contains filtered or unexported fields
}
MockAssetMockRecorder is the mock recorder for MockAsset.
func (*MockAssetMockRecorder) Create ¶ added in v1.27.0
func (mr *MockAssetMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockAssetMockRecorder) Delete ¶ added in v1.27.0
func (mr *MockAssetMockRecorder) Delete(organizationID, ledgerID, assetID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAssetMockRecorder) Get ¶ added in v1.27.0
func (mr *MockAssetMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
Get indicates an expected call of Get.
type MockAuth ¶ added in v1.22.0
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶ added in v1.22.0
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) AuthenticateWithCredentials ¶ added in v1.22.0
func (m *MockAuth) AuthenticateWithCredentials(username, password string) (*model.TokenResponse, error)
AuthenticateWithCredentials mocks base method.
func (*MockAuth) EXPECT ¶ added in v1.22.0
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) ExchangeToken ¶ added in v1.22.0
func (m *MockAuth) ExchangeToken(code string) (*model.TokenResponse, error)
ExchangeToken mocks base method.
type MockAuthMockRecorder ¶ added in v1.22.0
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) AuthenticateWithCredentials ¶ added in v1.22.0
func (mr *MockAuthMockRecorder) AuthenticateWithCredentials(username, password any) *gomock.Call
AuthenticateWithCredentials indicates an expected call of AuthenticateWithCredentials.
func (*MockAuthMockRecorder) ExchangeToken ¶ added in v1.22.0
func (mr *MockAuthMockRecorder) ExchangeToken(code any) *gomock.Call
ExchangeToken indicates an expected call of ExchangeToken.
type MockLedger ¶ added in v1.26.0
type MockLedger struct {
// contains filtered or unexported fields
}
MockLedger is a mock of Ledger interface.
func NewMockLedger ¶ added in v1.26.0
func NewMockLedger(ctrl *gomock.Controller) *MockLedger
NewMockLedger creates a new mock instance.
func (*MockLedger) Create ¶ added in v1.26.0
func (m *MockLedger) Create(organizationID string, inp mmodel.CreateLedgerInput) (*mmodel.Ledger, error)
Create mocks base method.
func (*MockLedger) Delete ¶ added in v1.27.0
func (m *MockLedger) Delete(organizationID, ledgerID string) error
Delete mocks base method.
func (*MockLedger) EXPECT ¶ added in v1.26.0
func (m *MockLedger) EXPECT() *MockLedgerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLedger) GetByID ¶ added in v1.26.0
func (m *MockLedger) GetByID(organizationID, ledgerID string) (*mmodel.Ledger, error)
GetByID mocks base method.
func (*MockLedger) Update ¶ added in v1.27.0
func (m *MockLedger) Update(organizationID, ledgerID string, inp mmodel.UpdateLedgerInput) (*mmodel.Ledger, error)
Update mocks base method.
type MockLedgerMockRecorder ¶ added in v1.26.0
type MockLedgerMockRecorder struct {
// contains filtered or unexported fields
}
MockLedgerMockRecorder is the mock recorder for MockLedger.
func (*MockLedgerMockRecorder) Create ¶ added in v1.26.0
func (mr *MockLedgerMockRecorder) Create(organizationID, inp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockLedgerMockRecorder) Delete ¶ added in v1.27.0
func (mr *MockLedgerMockRecorder) Delete(organizationID, ledgerID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockLedgerMockRecorder) Get ¶ added in v1.26.0
func (mr *MockLedgerMockRecorder) Get(organizationID, limit, page any) *gomock.Call
Get indicates an expected call of Get.
type MockOrganization ¶ added in v1.25.0
type MockOrganization struct {
// contains filtered or unexported fields
}
MockOrganization is a mock of Organization interface.
func NewMockOrganization ¶ added in v1.25.0
func NewMockOrganization(ctrl *gomock.Controller) *MockOrganization
NewMockOrganization creates a new mock instance.
func (*MockOrganization) Create ¶ added in v1.25.0
func (m *MockOrganization) Create(org mmodel.CreateOrganizationInput) (*mmodel.Organization, error)
Create mocks base method.
func (*MockOrganization) Delete ¶ added in v1.26.0
func (m *MockOrganization) Delete(organizationID string) error
Delete mocks base method.
func (*MockOrganization) EXPECT ¶ added in v1.25.0
func (m *MockOrganization) EXPECT() *MockOrganizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrganization) Get ¶ added in v1.25.0
func (m *MockOrganization) Get(limit, page int) (*mmodel.Organizations, error)
Get mocks base method.
func (*MockOrganization) GetByID ¶ added in v1.25.0
func (m *MockOrganization) GetByID(organizationID string) (*mmodel.Organization, error)
GetByID mocks base method.
func (*MockOrganization) Update ¶ added in v1.26.0
func (m *MockOrganization) Update(organizationID string, orgInput mmodel.UpdateOrganizationInput) (*mmodel.Organization, error)
Update mocks base method.
type MockOrganizationMockRecorder ¶ added in v1.25.0
type MockOrganizationMockRecorder struct {
// contains filtered or unexported fields
}
MockOrganizationMockRecorder is the mock recorder for MockOrganization.
func (*MockOrganizationMockRecorder) Create ¶ added in v1.25.0
func (mr *MockOrganizationMockRecorder) Create(org any) *gomock.Call
Create indicates an expected call of Create.
func (*MockOrganizationMockRecorder) Delete ¶ added in v1.26.0
func (mr *MockOrganizationMockRecorder) Delete(organizationID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockOrganizationMockRecorder) Get ¶ added in v1.25.0
func (mr *MockOrganizationMockRecorder) Get(limit, page any) *gomock.Call
Get indicates an expected call of Get.
type MockPortfolio ¶ added in v1.27.0
type MockPortfolio struct {
// contains filtered or unexported fields
}
MockPortfolio is a mock of Portfolio interface.
func NewMockPortfolio ¶ added in v1.27.0
func NewMockPortfolio(ctrl *gomock.Controller) *MockPortfolio
NewMockPortfolio creates a new mock instance.
func (*MockPortfolio) Create ¶ added in v1.27.0
func (m *MockPortfolio) Create(organizationID, ledgerID string, inp mmodel.CreatePortfolioInput) (*mmodel.Portfolio, error)
Create mocks base method.
func (*MockPortfolio) Delete ¶ added in v1.27.0
func (m *MockPortfolio) Delete(organizationID, ledgerID, portfolioID string) error
Delete mocks base method.
func (*MockPortfolio) EXPECT ¶ added in v1.27.0
func (m *MockPortfolio) EXPECT() *MockPortfolioMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPortfolio) Get ¶ added in v1.27.0
func (m *MockPortfolio) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Portfolios, error)
Get mocks base method.
func (*MockPortfolio) GetByID ¶ added in v1.27.0
func (m *MockPortfolio) GetByID(organizationID, ledgerID, portfolioID string) (*mmodel.Portfolio, error)
GetByID mocks base method.
func (*MockPortfolio) Update ¶ added in v1.27.0
func (m *MockPortfolio) Update(organizationID, ledgerID, portfolioID string, inp mmodel.UpdatePortfolioInput) (*mmodel.Portfolio, error)
Update mocks base method.
type MockPortfolioMockRecorder ¶ added in v1.27.0
type MockPortfolioMockRecorder struct {
// contains filtered or unexported fields
}
MockPortfolioMockRecorder is the mock recorder for MockPortfolio.
func (*MockPortfolioMockRecorder) Create ¶ added in v1.27.0
func (mr *MockPortfolioMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockPortfolioMockRecorder) Delete ¶ added in v1.27.0
func (mr *MockPortfolioMockRecorder) Delete(organizationID, ledgerID, portfolioID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockPortfolioMockRecorder) Get ¶ added in v1.27.0
func (mr *MockPortfolioMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
Get indicates an expected call of Get.
type MockProduct ¶ added in v1.28.0
type MockProduct struct {
// contains filtered or unexported fields
}
MockProduct is a mock of Product interface.
func NewMockProduct ¶ added in v1.28.0
func NewMockProduct(ctrl *gomock.Controller) *MockProduct
NewMockProduct creates a new mock instance.
func (*MockProduct) Create ¶ added in v1.28.0
func (m *MockProduct) Create(organizationID, ledgerID string, inp mmodel.CreateProductInput) (*mmodel.Product, error)
Create mocks base method.
func (*MockProduct) Delete ¶ added in v1.29.0
func (m *MockProduct) Delete(organizationID, ledgerID, productID string) error
Delete mocks base method.
func (*MockProduct) EXPECT ¶ added in v1.28.0
func (m *MockProduct) EXPECT() *MockProductMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProduct) Get ¶ added in v1.29.0
func (m *MockProduct) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Products, error)
Get mocks base method.
func (*MockProduct) GetByID ¶ added in v1.29.0
func (m *MockProduct) GetByID(organizationID, ledgerID, productID string) (*mmodel.Product, error)
GetByID mocks base method.
func (*MockProduct) Update ¶ added in v1.29.0
func (m *MockProduct) Update(organizationID, ledgerID, productID string, inp mmodel.UpdateProductInput) (*mmodel.Product, error)
Update mocks base method.
type MockProductMockRecorder ¶ added in v1.28.0
type MockProductMockRecorder struct {
// contains filtered or unexported fields
}
MockProductMockRecorder is the mock recorder for MockProduct.
func (*MockProductMockRecorder) Create ¶ added in v1.28.0
func (mr *MockProductMockRecorder) Create(organizationID, ledgerID, inp any) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductMockRecorder) Delete ¶ added in v1.29.0
func (mr *MockProductMockRecorder) Delete(organizationID, ledgerID, productID any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockProductMockRecorder) Get ¶ added in v1.29.0
func (mr *MockProductMockRecorder) Get(organizationID, ledgerID, limit, page any) *gomock.Call
Get indicates an expected call of Get.
type Organization ¶ added in v1.25.0
type Organization interface { Create(org mmodel.CreateOrganizationInput) (*mmodel.Organization, error) Get(limit, page int) (*mmodel.Organizations, error) GetByID(organizationID string) (*mmodel.Organization, error) Update(organizationID string, orgInput mmodel.UpdateOrganizationInput) (*mmodel.Organization, error) Delete(organizationID string) error }
type Portfolio ¶ added in v1.27.0
type Portfolio interface { Create(organizationID, ledgerID string, inp mmodel.CreatePortfolioInput) (*mmodel.Portfolio, error) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Portfolios, error) GetByID(organizationID, ledgerID, portfolioID string) (*mmodel.Portfolio, error) Update(organizationID, ledgerID, portfolioID string, inp mmodel.UpdatePortfolioInput) (*mmodel.Portfolio, error) Delete(organizationID, ledgerID, portfolioID string) error }
type Product ¶ added in v1.28.0
type Product interface { Create(organizationID, ledgerID string, inp mmodel.CreateProductInput) (*mmodel.Product, error) Get(organizationID, ledgerID string, limit, page int) (*mmodel.Products, error) GetByID(organizationID, ledgerID, productID string) (*mmodel.Product, error) Update(organizationID, ledgerID, productID string, inp mmodel.UpdateProductInput) (*mmodel.Product, error) Delete(organizationID, ledgerID, productID string) error }