Documentation ¶
Index ¶
- type Auth
- type Cart
- type CartPayment
- type CartProduct
- type Core
- type Data
- type Digital
- type File
- type Install
- type JWT
- type Letter
- type Mail
- type Main
- type MessageMail
- type Metadata
- type Page
- type Password
- type Payment
- type PaymentSystem
- type Paypal
- type Product
- type Products
- type SMTP
- type Seo
- type SettingName
- type SignIn
- type Social
- type Spectrocoin
- type Stripe
- type UpdateClause
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct { Core Email string `json:"email"` Cart []CartProduct `json:"cart,omitempty"` AmountTotal int `json:"amount_total"` Currency string `json:"currency"` PaymentID string `json:"payment_id"` PaymentStatus litepay.Status `json:"payment_status"` PaymentSystem litepay.PaymentSystem `json:"payment_system"` }
Cart is ...
type CartPayment ¶ added in v0.1.9
type CartPayment struct { Email string `json:"email"` Provider litepay.PaymentSystem `json:"provider"` Products []CartProduct `json:"products"` }
CartPayment is ...
type CartProduct ¶
CartProduct is ...
type Core ¶
type Core struct { ID string `json:"id"` Created int64 `json:"created"` Updated int64 `json:"updated,omitempty"` }
Core is ...
type Data ¶
type Data struct { ID string `json:"id"` Content string `json:"content"` CartID string `json:"cart_id"` }
Data is ...
type Digital ¶
type Digital struct { Type string `json:"type"` Filled bool `json:"filled,omitempty"` Files []File `json:"files,omitempty"` Data []Data `json:"data,omitempty"` }
Digital is ...
type File ¶
type File struct { ID string `json:"id"` Name string `json:"name"` Ext string `json:"ext"` OrigName string `json:"orig_name,omitempty"` }
File is ...
type Install ¶
type Install struct { Email string `json:"email"` Password string `json:"password"` Domain string `json:"domain"` }
Install is ...
type Letter ¶
type Letter struct { Subject string `json:"subject"` Text string `json:"text"` Html string `json:"html"` }
Letter ...
type Mail ¶
type Mail struct { SenderName string `json:"sender_name"` SenderEmail string `json:"sender_email"` SMTP SMTP `json:"smtp"` }
Mail is ...
type Main ¶
type Main struct { SiteName string `json:"site_name"` Domain string `json:"domain"` Email string `json:"email"` }
Main is ...
type MessageMail ¶ added in v0.1.9
type MessageMail struct { To string `json:"to"` Letter Letter `json:"letter"` Data map[string]string `json:"data"` Files []File `json:"files,omitempty"` }
MessageMail ...
type Page ¶
type Page struct { Core Name string `json:"name"` Slug string `json:"slug"` Position string `json:"position,omitempty"` Content *string `json:"content,omitempty"` Active bool `json:"active"` Seo *Seo `json:"seo,omitempty"` }
Page is ...
type Payment ¶ added in v0.1.5
type Payment struct {
Currency string `json:"currency"`
}
Payment is ...
type PaymentSystem ¶ added in v0.1.5
type PaymentSystem struct { Active []string `json:"active"` Stripe Stripe `json:"stripe"` Paypal Paypal `json:"paypal"` Spectrocoin Spectrocoin `json:"spectrocoin"` }
PaymentSystem is ...
func (PaymentSystem) Validate ¶ added in v0.1.5
func (v PaymentSystem) Validate() error
Validate is ...
type Paypal ¶ added in v0.1.7
type Paypal struct { ClientID string `json:"client_id"` SecretKey string `json:"secret_key"` Active bool `json:"active"` }
Paypal is ...
type Product ¶
type Product struct { Core Name string `json:"name"` Brief string `json:"brief,omitempty"` Description string `json:"description,omitempty"` Images []File `json:"images,omitempty"` Slug string `json:"slug"` Amount int `json:"amount"` Metadata []Metadata `json:"metadata,omitempty"` Attributes []string `json:"attributes,omitempty"` Digital Digital `json:"digital,omitempty"` Active bool `json:"active"` Seo *Seo `json:"seo,omitempty"` }
Product is ...
type Products ¶
type Products struct { Total int `json:"total"` Currency string `json:"currency"` Products []Product `json:"products"` }
Products is ...
type SMTP ¶
type SMTP struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` Encryption string `json:"encryption,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
SMTP is ...
type Seo ¶ added in v0.1.3
type Seo struct { Title string `json:"title"` Keywords string `json:"keywords"` Description string `json:"description"` }
Seo is ...
type SettingName ¶
type SettingName struct { ID string `json:"id,omitempty"` Key string `json:"key"` Value any `json:"value,omitempty"` }
SettingName is ...
type Social ¶
type Social struct { Facebook string `json:"facebook,omitempty"` Instagram string `json:"instagram,omitempty"` Twitter string `json:"twitter,omitempty"` Dribbble string `json:"dribbble,omitempty"` Github string `json:"github,omitempty"` Youtube string `json:"youtube,omitempty"` Other string `json:"other,omitempty"` }
type Spectrocoin ¶ added in v0.1.5
type Spectrocoin struct { MerchantID string `json:"merchant_id"` ProjectID string `json:"project_id"` PrivateKey string `json:"private_key"` Active bool `json:"active"` }
Spectrocoin is ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.