package
1.2.6
Repository: https://github.com/ftchinese/ftacademy.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BuildStmtListOrdersCMS retrieve multiple rows of order for CMS.
BuildStmtOrder retrieve a row from order table withTeam - if true, add team_id to where clause when used by an admin.
GenerateLicence creates a new/renewed licence.
No description provided by the author
NewLicenceTransaction creates a new LicenceTransaction for each copy newly created or renewed.
NewOrderFilter creates a default OrderFilter.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StmtBulkLicenceTxn build the SQL to bulk insert into licence_queue table.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StmtCreateOrder is used to save a row of Order.
No description provided by the author
No description provided by the author
No description provided by the author
StmtListLicenceTxn retrieves all queued licence of a specific price of an order.
StmtListOrders retrieves a list of orders for an admin.
StmtListTxnToConfirm retrieve a licence queue and the price to bulk process licence creation/renewal.
StmtLockLicenceTxn locks a row in licence queue when payment is confirmed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CartItem describes an item user put into shopping cart.
CartItemSchema is used to save/retrieve CartItem into table order_item.
No description provided by the author
CMSOrderRow is a row in the order table that is slightly different from the version used by admin.
ExpandedLicenceJSON is used to implement sql.Valuer interface so that we could save it directly as JSON.
GroupedLicenceTxn groups LicenceTransaction for the specified price group of an order.
No description provided by the author
LicenceGenParams contains the data required to generate a new licence.
No description provided by the author
Order is what a shopping cart should create.
OrderFilter is used to hold the WHERE clause when retrieving a list orders.
OrderInputSchema is db schema to save a shopping cart.
OrderItem is a summary of CartItem.
OrderList contains a list of orders.
No description provided by the author
No description provided by the author
No description provided by the author
Payment describes the details of an order's payment.
No description provided by the author
PaymentOffer describes how discount is used for a price of specific kind.
PriceOfLicenceTxn maps the LicenceTransaction id to the price it used.
ShoppingCart is used to hold data submitted by client.
No description provided by the author

# Type aliases

BulkLicenceTxn is used to build the values part of bulk insert, together with StmtBulkLicenceTxn.
ExpLicenceListJSON is used to save a list of ExpandedLicence as JSON.
OrderItemListJSON is used to save a list of OrderItem.
Status represents the current payment status of an order.