Documentation ¶
Index ¶
- type Cashback
- type CashbackPersister
- type H2H
- type H2HPersister
- type ParamPersister
- type Parameter
- type Partner
- func (p *Partner) Add(data model.Partner) *model.TechnicalError
- func (p *Partner) CountByIdentifier(data model.Partner) (*int, *model.TechnicalError)
- func (p *Partner) FindActiveByCodeAndApiKey(code string, key string) (*model.Partner, *model.TechnicalError)
- func (p *Partner) FindActiveByEmail(email string) (*model.Partner, *model.TechnicalError)
- type PartnerPersister
- type Tier
- func (t *Tier) Add(tier model.Tier) *model.TechnicalError
- func (t *Tier) CountExpire() (*int, *model.TechnicalError)
- func (t *Tier) Expire(expired time.Time) *model.TechnicalError
- func (t *Tier) FindByPartnerMsisdn(pid int64, msisdn string) (*model.Tier, *model.TechnicalError)
- func (t *Tier) Update(tier model.Tier) *model.TechnicalError
- type TierPersister
- type Transaction
- func (t *Transaction) Add(trx model.Transaction) (*int64, *model.TechnicalError)
- func (t *Transaction) CountByPartner(inp *model.SearchRequest) (*int, *model.TechnicalError)
- func (t *Transaction) DetailByPartner(inp *model.FindByIdRequest) (*model.PartnerTransactionProjection, *model.TechnicalError)
- func (t *Transaction) SearchByPartner(inp *model.SearchRequest) ([]model.PartnerTransactionProjection, *model.TechnicalError)
- type TransactionPersister
- type Workflow
- type WorkflowPersister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CashbackPersister ¶
type CashbackPersister interface {
Add(cashback model.Cashback) *model.TechnicalError
}
func NewCashback ¶
func NewCashback(c Cashback) CashbackPersister
type H2H ¶
func (*H2H) Pricelists ¶
func (h2h *H2H) Pricelists() ([]model.H2HPricingsProjection, *model.TechnicalError)
func (*H2H) Providers ¶
func (h2h *H2H) Providers() ([]model.H2HProvider, *model.TechnicalError)
type H2HPersister ¶
type H2HPersister interface { Providers() ([]model.H2HProvider, *model.TechnicalError) Pricelists() ([]model.H2HPricingsProjection, *model.TechnicalError) }
func NewH2H ¶
func NewH2H(h2h H2H) H2HPersister
type ParamPersister ¶
type ParamPersister interface {
FindByParamGroup(g string) ([]*model.Parameter, *model.TechnicalError)
}
func NewParameter ¶
func NewParameter(p Parameter) ParamPersister
type Parameter ¶
func (*Parameter) FindByParamGroup ¶
type Partner ¶
func (*Partner) CountByIdentifier ¶
func (*Partner) FindActiveByCodeAndApiKey ¶
func (*Partner) FindActiveByEmail ¶
type PartnerPersister ¶
type PartnerPersister interface { Add(m model.Partner) *model.TechnicalError CountByIdentifier(m model.Partner) (*int, *model.TechnicalError) FindActiveByCodeAndApiKey(code string, key string) (*model.Partner, *model.TechnicalError) FindActiveByEmail(email string) (*model.Partner, *model.TechnicalError) }
func NewPartner ¶
func NewPartner(p Partner) PartnerPersister
type Tier ¶
func (*Tier) CountExpire ¶
func (t *Tier) CountExpire() (*int, *model.TechnicalError)
func (*Tier) FindByPartnerMsisdn ¶
type TierPersister ¶
type TierPersister interface { FindByPartnerMsisdn(pid int64, msisdn string) (*model.Tier, *model.TechnicalError) Add(tier model.Tier) *model.TechnicalError Update(tier model.Tier) *model.TechnicalError Expire(expired time.Time) *model.TechnicalError CountExpire() (*int, *model.TechnicalError) }
func NewTier ¶
func NewTier(t Tier) TierPersister
type Transaction ¶
func (*Transaction) Add ¶
func (t *Transaction) Add(trx model.Transaction) (*int64, *model.TechnicalError)
func (*Transaction) CountByPartner ¶
func (t *Transaction) CountByPartner(inp *model.SearchRequest) (*int, *model.TechnicalError)
func (*Transaction) DetailByPartner ¶
func (t *Transaction) DetailByPartner(inp *model.FindByIdRequest) (*model.PartnerTransactionProjection, *model.TechnicalError)
func (*Transaction) SearchByPartner ¶
func (t *Transaction) SearchByPartner(inp *model.SearchRequest) ([]model.PartnerTransactionProjection, *model.TechnicalError)
type TransactionPersister ¶
type TransactionPersister interface { Add(trx model.Transaction) (*int64, *model.TechnicalError) SearchByPartner(inp *model.SearchRequest) ([]model.PartnerTransactionProjection, *model.TechnicalError) CountByPartner(inp *model.SearchRequest) (*int, *model.TechnicalError) DetailByPartner(inp *model.FindByIdRequest) (*model.PartnerTransactionProjection, *model.TechnicalError) }
func NewTransaction ¶
func NewTransaction(t Transaction) TransactionPersister
type Workflow ¶
func (*Workflow) FindCashbackByTransaction ¶
func (*Workflow) FindRewardTiers ¶
func (w *Workflow) FindRewardTiers() ([]model.WfRewardTierProjection, *model.TechnicalError)
type WorkflowPersister ¶
type WorkflowPersister interface { FindCashbackByTransaction(qty int, trx decimal.Decimal) (*decimal.Decimal, *model.TechnicalError) FindRewardTiers() ([]model.WfRewardTierProjection, *model.TechnicalError) }
func NewWorkflow ¶
func NewWorkflow(w Workflow) WorkflowPersister
Click to show internal directories.
Click to hide internal directories.