Documentation ¶
Index ¶
- func AddStripeRoutes(router *gin.RouterGroup, acctHandler gin.HandlerFunc, db *gorm.DB)
- func CheckGiftcard(db *gorm.DB) gin.HandlerFunc
- func CheckoutDeposit(db *gorm.DB) gin.HandlerFunc
- func CreateSession(db *gorm.DB) gin.HandlerFunc
- func DeleteManualDeposit(db *gorm.DB) gin.HandlerFunc
- func ExternalGeneratePDF(db *gorm.DB, config *types.MerchantConfig, payid, name, email string)
- func GetDepositOrders(c *gin.Context)
- func GetDeposits(db *gorm.DB) gin.HandlerFunc
- func GetProducts(db *gorm.DB, c *gin.Context)
- func GetSession(db *gorm.DB) gin.HandlerFunc
- func ListManualDeposits(db *gorm.DB) gin.HandlerFunc
- func SaveManualDeposit(db *gorm.DB) gin.HandlerFunc
- func StripeWebhook(db *gorm.DB) gin.HandlerFunc
- type CreateDepositCheckout
- type CreateSessionRequest
- type DepositPrice
- type DepositProduct
- type DepositSchedule
- type DepositSearchResult
- type Handler
- func (h Handler) GetPassItems(config *types.MerchantConfig, db *gorm.DB, id string) ([]types.PassItem, string, string)
- func (h Handler) GetSoldTickets(config *types.MerchantConfig, db *gorm.DB, from, to string) (interface{}, error)
- func (h Handler) ManualEntry(config *types.MerchantConfig, db *gorm.DB, entry types.Manual) (interface{}, error)
- func (h Handler) OrdersTimestamp(config *types.MerchantConfig, db *gorm.DB, timestamp string) (interface{}, error)
- func (h Handler) RedeemTickets(config *types.MerchantConfig, db *gorm.DB, data json.RawMessage) (interface{}, error)
- func (h Handler) RefundTickets(config *types.MerchantConfig, db *gorm.DB, data json.RawMessage) (interface{}, error)
- func (h Handler) TransferTickets(_ *types.MerchantConfig, db *gorm.DB, data []types.TransferReq) (interface{}, error)
- type Item
- type LineItem
- type ManualDeposit
- type ManualPayerInfo
- type Money
- type PaymentIntent
- type RefundInfo
- type TicketRedemption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStripeRoutes ¶
func AddStripeRoutes(router *gin.RouterGroup, acctHandler gin.HandlerFunc, db *gorm.DB)
func CheckGiftcard ¶
func CheckGiftcard(db *gorm.DB) gin.HandlerFunc
func CheckoutDeposit ¶
func CheckoutDeposit(db *gorm.DB) gin.HandlerFunc
func CreateSession ¶
func CreateSession(db *gorm.DB) gin.HandlerFunc
func DeleteManualDeposit ¶
func DeleteManualDeposit(db *gorm.DB) gin.HandlerFunc
func ExternalGeneratePDF ¶
func ExternalGeneratePDF(db *gorm.DB, config *types.MerchantConfig, payid, name, email string)
func GetDepositOrders ¶
func GetDeposits ¶
func GetDeposits(db *gorm.DB) gin.HandlerFunc
func GetSession ¶
func GetSession(db *gorm.DB) gin.HandlerFunc
func ListManualDeposits ¶
func ListManualDeposits(db *gorm.DB) gin.HandlerFunc
func SaveManualDeposit ¶
func SaveManualDeposit(db *gorm.DB) gin.HandlerFunc
func StripeWebhook ¶
func StripeWebhook(db *gorm.DB) gin.HandlerFunc
Types ¶
type CreateDepositCheckout ¶
type CreateSessionRequest ¶
type DepositPrice ¶
type DepositProduct ¶
type DepositProduct struct { ID uint `json:"id" gorm:"primary_key;auto_increment;"` StripeID string `json:"stripeId"` MerchantID string `json:"-" gorm:"type:varchar;not null;primary_key;"` Name string `json:"name"` Desc string `json:"desc"` Color string `json:"color"` Publish bool `json:"publish"` BoatID uint `json:"boatId"` Type string `json:"type"` Prices []DepositPrice `json:"prices"` Schedules []DepositSchedule `json:"schedules"` }
type DepositSchedule ¶
type DepositSchedule struct { ID uint `json:"id"` DepositProductID uint `json:"-"` Days pq.Int64Array `json:"days" gorm:"type:integer[]"` NotAvail pq.StringArray `json:"notAvail,nilasempty" gorm:"type:text[]"` Start string `json:"start"` End string `json:"end"` Price string `json:"price"` Minimum int `json:"minimum"` Times pq.StringArray `json:"times" gorm:"type:text[]"` }
type DepositSearchResult ¶
type Handler ¶
type Handler struct{}
func (Handler) GetPassItems ¶
func (Handler) GetSoldTickets ¶
func (Handler) ManualEntry ¶
func (Handler) OrdersTimestamp ¶
func (Handler) RedeemTickets ¶
func (h Handler) RedeemTickets(config *types.MerchantConfig, db *gorm.DB, data json.RawMessage) (interface{}, error)
func (Handler) RefundTickets ¶
func (h Handler) RefundTickets(config *types.MerchantConfig, db *gorm.DB, data json.RawMessage) (interface{}, error)
func (Handler) TransferTickets ¶
func (h Handler) TransferTickets(_ *types.MerchantConfig, db *gorm.DB, data []types.TransferReq) (interface{}, error)
type LineItem ¶
type LineItem struct { ID string `json:"id" gorm:"primary_key"` PaymentID string `json:"paymentId" gorm:"primary_key"` Acct string `json:"-"` Quantity int `json:"quantity"` Sku string `json:"sku"` Name string `json:"name"` UnitPrice string `json:"unitPrice" gorm:"type:money"` Amount string `json:"total" gorm:"type:money"` Status string `json:"status"` }
type ManualDeposit ¶
type ManualPayerInfo ¶
type PaymentIntent ¶
type RefundInfo ¶
Click to show internal directories.
Click to hide internal directories.