lemonsqueezy

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

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 LicenseKey struct {
	ID        int32   `json:"id"`
	Status    string  `json:"status"`
	Key       string  `json:"key"`
	CreatedAt string  `json:"created_at"`
	ExpiresAt *string `json:"updated_at"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL