Documentation ¶
Index ¶
- type Cart
- type CartProduct
- type Core
- type Data
- type Digital
- type File
- type Install
- type JWT
- type Letter
- type Mail
- type Main
- type Metadata
- type Page
- type Password
- type Payment
- type PaymentSystem
- type Product
- type Products
- type Renew
- type SMTP
- type Seo
- type Setting
- 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"` }
type CartProduct ¶
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"` 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"` StripeSecret string `json:"stripe_secret"` }
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 { From string `json:"from"` To string `json:"to"` Letter Letter `json:"letter"` Data map[string]string `json:"data"` Files []File `json:"files,omitempty"` }
Mail ...
type Main ¶
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 { Email string `json:"email"` Provider litepay.PaymentSystem `json:"provider"` Products []CartProduct `json:"products"` }
type PaymentSystem ¶ added in v0.1.5
type PaymentSystem struct { Active []string `json:"active"` Stripe Stripe `json:"stripe"` Spectrocoin Spectrocoin `json:"spectrocoin"` }
func (PaymentSystem) Validate ¶ added in v0.1.5
func (v PaymentSystem) Validate() error
Validate is ...
type Product ¶
type Product struct { Core Name string `json:"name"` 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 Seo ¶ added in v0.1.3
type Seo struct { Title string `json:"title"` Keywords string `json:"keywords"` Description string `json:"description"` }
Seo is ...
type Setting ¶
type SettingName ¶
type SettingName struct { ID string `json:"id,omitempty"` Key string `json:"key"` Value any `json:"value,omitempty"` }
SettingName is ...
type Social ¶
type Spectrocoin ¶ added in v0.1.5
Source Files ¶
Click to show internal directories.
Click to hide internal directories.