Documentation ¶
Overview ¶
Package fee provides access to the club fee of the Buddy System.
Package fee provides access to the club fee of the Buddy System.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDuplicatedFee = errors.New("duplicated fee") ErrAlreadyExempted = errors.New("already exempted") )
Functions ¶
func Amount ¶
Amount returns the amount of payments of member of id.
NOTE:
It is a member-limited operation:
Only the authenticated members can access to this operation.
Types ¶
type Fee ¶
type Fee struct { Year int `json:"year" bson:"year"` Semester int `json:"semester" bson:"semester"` CarryOver int `json:"carry_over" bson:"carry_over"` Amount int `json:"amount" bson:"amount"` Logs []primitive.ObjectID `json:"logs" bson:"logs"` }
Fee represents a club fee state.
func (Fee) Create ¶
Create creates a new fee history.
NOTE:
It is a privileged operation:
Only the club managers can access to this operation.
func (*Fee) Deptors ¶
Deptors returns the list of members who did not pay the fee of year and semester.
NOTE:
It is a privileged operation:
Only the club managers can access to this operation.
func (*Fee) Exempt ¶
Exempt exempts the member of id from the fee of year and semester.
Note :
It is a privileged operation:
Only the club managers can access to this operation.
type Log ¶
type Log struct { ID primitive.ObjectID `json:"id" bson:"_id"` MemberID string `json:"member_id" bson:"member_id"` Description string `json:"description" bson:"description"` Amount int `json:"amount" bson:"amount"` Type int `json:"type" bson:"type"` CreatedAt int64 `json:"created_at,string" bson:"created_at"` }
Log represents a fees history.
Click to show internal directories.
Click to hide internal directories.