Documentation
¶
Index ¶
- type API
- func (api *API) CheckUserExists(c *gin.Context)
- func (api *API) CreateApplicant(ctx *gin.Context)
- func (api *API) CreateInquiry(ctx *gin.Context)
- func (api *API) CreatePaymentIntent(c *gin.Context)
- func (api *API) CreateProduct(c *gin.Context)
- func (api *API) CreateUser(c *gin.Context)
- func (api *API) GetAllApplicants(ctx *gin.Context)
- func (api *API) GetApplicantById(ctx *gin.Context)
- func (api *API) GetInquiries(ctx *gin.Context)
- func (api *API) GetInquiry(ctx *gin.Context)
- func (api *API) GetObjectURL(bucketName, key string) string
- func (api *API) GetProduct(c *gin.Context)
- func (api *API) GetProducts(c *gin.Context)
- func (api *API) GetQrCodeByUserIdAndTransactionId(ctx *gin.Context)
- func (api *API) GetTransaction(c *gin.Context)
- func (api *API) GetTransactions(c *gin.Context)
- func (api *API) GetUser(c *gin.Context)
- func (api *API) GetUsers(c *gin.Context)
- func (api *API) Run()
- func (api *API) SendApplicantEmail(c *gin.Context)
- func (api *API) SendApplicationElatedMail(req Applicant) error
- func (api *API) SendApplicationMail(req Applicant) error
- func (api *API) SendBetaMail(req BetaList) error
- func (api *API) SendBetaRegistrationEmail(c *gin.Context)
- func (api *API) SendContactUsEmail(c *gin.Context)
- func (api *API) SendContactUsMail(req ContactUs) error
- func (api *API) SendMail(req Mail) error
- func (api *API) SendQr(c *gin.Context)
- func (api *API) SendQrCodeMail(db *gorm.DB, c *gin.Context, user models.User, transaction models.Transaction, ...) error
- func (api *API) SubmitPaymentIntent(c *gin.Context)
- func (api *API) UnsubscribeUser(c *gin.Context)
- func (api *API) UpdatePaymentIntent(c *gin.Context)
- func (api *API) UploadAttachment(file *multipart.FileHeader) (string, error)
- func (api *API) UploadQRCode(qrCode []byte, userId string) (string, string, error)
- func (api *API) Webhook(c *gin.Context)
- type Applicant
- type BetaList
- type ContactUs
- type CreatePaymentIntentRequest
- type Mail
- type SubmitPaymentIntentRequest
- type UpdatePaymentIntentRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPIWithVersion ¶
func (*API) CheckUserExists ¶
func (*API) CreateApplicant ¶
func (*API) CreateInquiry ¶
func (*API) CreatePaymentIntent ¶
func (*API) CreateProduct ¶
func (*API) CreateUser ¶
func (*API) GetAllApplicants ¶
func (*API) GetApplicantById ¶
func (*API) GetInquiries ¶
func (*API) GetInquiry ¶
func (*API) GetObjectURL ¶
GetObjectURL retrieves the URL of the object stored in S3.
func (*API) GetProduct ¶
func (*API) GetProducts ¶
func (*API) GetQrCodeByUserIdAndTransactionId ¶
func (*API) GetTransaction ¶
func (*API) GetTransactions ¶
func (*API) SendApplicantEmail ¶
func (*API) SendApplicationElatedMail ¶
func (*API) SendApplicationMail ¶
func (*API) SendBetaMail ¶
func (*API) SendBetaRegistrationEmail ¶
func (*API) SendContactUsEmail ¶
func (*API) SendContactUsMail ¶
func (*API) SendQrCodeMail ¶
func (*API) SubmitPaymentIntent ¶
func (*API) UnsubscribeUser ¶
func (*API) UpdatePaymentIntent ¶
func (*API) UploadAttachment ¶
func (api *API) UploadAttachment(file *multipart.FileHeader) (string, error)
func (*API) UploadQRCode ¶
type SubmitPaymentIntentRequest ¶
type SubmitPaymentIntentRequest struct {
PIsecret string `json:"pi_secret" binding:"required"`
}
type UpdatePaymentIntentRequest ¶
type UpdatePaymentIntentRequest struct { ClientSecret string `json:"client_secret" binding:"required"` ProductID uuid.UUID `json:"product_id" binding:"required"` FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` Email string `json:"email" binding:"required"` ZipCode string `json:"zip_code" binding:"required"` IsJoining string `json:"is_joining" binding:"required"` }
Click to show internal directories.
Click to hide internal directories.