Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveLicenseKeyResponse ¶
type ActiveLicenseKeyResponse struct { Activated bool `json:"activated"` Error *string `json:"error"` LicenseKey *LicenseKey `json:"license_key"` Meta *LicenseKeyMeta `json:"meta"` }
func ActiveLicenseKey ¶
func ActiveLicenseKey(licenseKey string, instanceName string) (*ActiveLicenseKeyResponse, error)
type LicenseKey ¶
type LicenseKeyMeta ¶
type LicenseKeyMeta struct { StoreID int32 `json:"store_id"` OrderID int32 `json:"order_id"` OrderItemID int32 `json:"order_item_id"` ProductID int32 `json:"product_id"` ProductName string `json:"product_name"` VariantID int32 `json:"variant_id"` VariantName string `json:"variant_name"` CustomerID int32 `json:"customer_id"` CustomerName string `json:"customer_name"` CustomerEmail string `json:"customer_email"` }
type ValidateLicenseKeyResponse ¶
type ValidateLicenseKeyResponse struct { Valid bool `json:"valid"` Error *string `json:"error"` LicenseKey *LicenseKey `json:"license_key"` Meta *LicenseKeyMeta `json:"meta"` }
func ValidateLicenseKey ¶
func ValidateLicenseKey(licenseKey string, instanceName string) (*ValidateLicenseKeyResponse, error)
Click to show internal directories.
Click to hide internal directories.