package
0.0.0-20201120173822-96123f16761f
Repository: https://github.com/gopheracademy/manager.git
Documentation: pkg.go.dev
# Functions
ClaimSlots claims N slots for an attendee.
CoverCredit adds funds to a payment to cover for receivables.
DebtBalanced returns true if all cretid notes or similar instruments have been covered or an amount if not.
NewSQLStorage returns a new Storage connected to the postgres-like db indicated by the connectionString.
NewSQLStorageFromConnection returns a new SQLStorage using the passed connection.
PayClaims assigns payments and/or credits to a set of claims.
PaymentBalanced returns true or false depending on balancing status and missing payment amount if any.
TransferClaims transfer claims from one user the the other, assuming they belong to the first.
# Constants
ATCash in this context means it is money, like a stripe payment.
ATDiscount in this context means an issued discount (represented as a fixed amount for accounting's sake).
ATReceivable in this context means it is a promise of payment.
# Structs
Attendee is a person attending one or more Slots of the Conference.
ClaimPayment represents a payment for N claims.
ErrInvalidCurrency should be returned when paying with the wrong kind of instrument for instance covering credit with credit.
EventSlot holds information for any sellable/giftable slot we have in the event for a Talk or any other activity that requires admission.
PaymentMethodConferenceDiscount represents a discount issued by the event.
PaymentMethodCreditNote represents credit extended to defer payment.
PaymentMethodMoney represents a payment in cash.
SlotClaim represents one occupancy of one slot.
SQLStorage provides a Postgres Flavored storage backend to store ticketing information.
# Interfaces
FinancialInstrument represents any kind of instrument used to cover a debt.
PurchaseStore offers functionality for persistence of ticketing models.
# Type aliases
AssetType is a type of accounting asset.