Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NdoleStudio/lemonsqueezy-go
/ functions
Functions
243 in github.com/NdoleStudio/lemonsqueezy-go
⨍
Functions
243
◇
Types & classes
112
↓ 102 callers
Function
WithBaseURL
WithBaseURL set's the base url for the flutterwave API
client_option.go:30
↓ 101 callers
Function
New
New creates and returns a new Client from a slice of Option.
client.go:46
↓ 100 callers
Function
MakeTestServer
MakeTestServer creates an api server for testing
internal/helpers/test_helper.go:13
↓ 49 callers
Method
do
do carries out an HTTP request and returns a Response
client.go:112
↓ 48 callers
Method
List
List returns a paginated list of files. https://docs.lemonsqueezy.com/api/files#list-all-files
files_service.go:32
↓ 46 callers
Method
Get
Get returns the file with the given ID. https://docs.lemonsqueezy.com/api/files#retrieve-a-file
files_service.go:15
↓ 7 callers
Method
Create
Create a webhook. https://docs.lemonsqueezy.com/api/webhooks#create-a-webhook
webhooks_service.go:29
↓ 7 callers
Method
apply
(config *clientConfig)
client_option.go:10
↓ 7 callers
Function
defaultClientConfig
()
client_config.go:12
↓ 6 callers
Method
Update
Update an existing webhook https://docs.lemonsqueezy.com/api/subscriptions#update-a-webhook
webhooks_service.go:82
↓ 6 callers
Function
WebhookGetResponse
WebhookGetResponse is a dummy response to the GET /v1/webhooks/:id endpoint
internal/stubs/webhook.go:108
↓ 5 callers
Method
Me
Me retrieves the currently authenticated user. https://docs.lemonsqueezy.com/api/users#retrieve-the-authenticated-user
users_service.go:14
↓ 4 callers
Function
CheckoutGetResponse
CheckoutGetResponse is a dummy response to the GET /v1/checkouts/:id endpoint
internal/stubs/checkout.go:4
↓ 4 callers
Method
Delete
Delete a webhook with the given ID. https://docs.lemonsqueezy.com/api/webhooks#delete-a-webhook
webhooks_service.go:110
↓ 4 callers
Function
DiscountGetResponse
DiscountGetResponse is a dummy response to the GET /v1/discounts/:id endpoint
internal/stubs/discount.go:4
↓ 2 callers
Method
Activate
Activate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:15
↓ 2 callers
Method
Cancel
Cancel an active subscription the given ID. https://docs.lemonsqueezy.com/api/subscriptions#retrieve-a-subscription
subscriptions_service.go:74
↓ 2 callers
Function
CheckoutListResponse
CheckoutListResponse is a dummy response to GET /v1/checkouts
internal/stubs/checkout.go:95
↓ 2 callers
Method
CurrentUsage
Current usage returns a subscription item's current usage with the given ID. https://docs.lemonsqueezy.com/api/subscription-items#retrieve-a-subscrip
subscription_items_service.go:89
↓ 2 callers
Function
CustomerGetResponse
CustomerGetResponse is a dummy response to the GET /v1/customers/:id endpoint
internal/stubs/customer.go:4
↓ 2 callers
Function
CustomerListResponse
CustomerListResponse is a dummy response to GET /v1/customers
internal/stubs/customer.go:69
↓ 2 callers
Method
Deactivate
Deactivate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:59
↓ 2 callers
Function
DiscountRedemptionGetResponse
DiscountRedemptionGetResponse is a dummy response to the GET /v1/discount-redemption/:id endpoint
internal/stubs/discount_redemption.go:4
↓ 2 callers
Function
DiscountRedemptionsListResponse
DiscountRedemptionsListResponse is a dummy response to GET /v1/discount-redemption
internal/stubs/discount_redemption.go:50
↓ 2 callers
Function
DiscountsListResponse
DiscountsListResponse is a dummy response to GET /v1/discounts
internal/stubs/discount.go:63
↓ 2 callers
Method
Error
Error ensures that the response can be decoded into a string inc ase it's an error response
response.go:17
↓ 2 callers
Function
FileGetResponse
FileGetResponse is a dummy response to the GET /v1/files/:id endpoint
internal/stubs/file.go:4
↓ 2 callers
Function
FilesListResponse
FilesListResponse is a dummy response to GET /v1/files
internal/stubs/file.go:47
↓ 2 callers
Method
Generate
Generate a Subscription Invoice. https://docs.lemonsqueezy.com/api/subscription-invoices/generate-subscription-invoice
subscription_invoice_service.go:62
↓ 2 callers
Function
LicenseActivateResponse
LicenseActivateResponse is a dummy response to the POST /v1/licenses/activate endpoint
internal/stubs/licenses.go:4
↓ 2 callers
Function
LicenseDeactivateResponse
LicenseDeactivateResponse is a dummy response to the POST /v1/licenses/deactivate endpoint
internal/stubs/licenses.go:76
↓ 2 callers
Function
LicenseKeyGetResponse
LicenseKeyGetResponse is a dummy response to the GET /v1/license-key/:id endpoint
internal/stubs/license_key.go:4
↓ 2 callers
Function
LicenseKeyInstanceGetResponse
LicenseKeyInstanceGetResponse is a dummy response to the GET /v1/license-key-instances/:id endpoint
internal/stubs/license_key_instance.go:4
↓ 2 callers
Function
LicenseKeyInstancesListResponse
LicenseKeyInstancesListResponse is a dummy response to GET /v1/license-key-instances
internal/stubs/license_key_instance.go:40
↓ 2 callers
Function
LicenseKeysListResponse
LicenseKeysListResponse is a dummy response to GET /v1/license-key
internal/stubs/license_key.go:82
↓ 2 callers
Function
LicenseValidateResponse
LicenseValidateResponse is a dummy response to the POST /v1/licenses/validate endpoint
internal/stubs/licenses.go:40
↓ 2 callers
Function
OrderGetResponse
OrderGetResponse is a dummy response to the GET /v1/orders/:id endpoint
internal/stubs/order.go:4
↓ 2 callers
Function
OrderItemGetResponse
OrderItemGetResponse is a dummy response to the GET /v1/order-items/:id endpoint
internal/stubs/order_item.go:4
↓ 2 callers
Function
OrderItemsListResponse
OrderItemsListResponse is a dummy response to GET /v1/order-items
internal/stubs/order_item.go:55
↓ 2 callers
Function
OrdersListResponse
OrdersListResponse is a dummy response to GET /v1/orders
internal/stubs/order.go:109
↓ 2 callers
Function
PriceGetResponse
PriceGetResponse is a dummy response to the GET /v1/prices/:id endpoint
internal/stubs/price.go:4
↓ 2 callers
Function
PriceListResponse
PriceListResponse is a dummy response to GET /v1/prices
internal/stubs/price.go:67
↓ 2 callers
Function
ProductGetResponse
ProductGetResponse is a dummy response to the GET /v1/products/:id endpoint
internal/stubs/product.go:4
↓ 2 callers
Function
ProductsListResponse
ProductsListResponse is a dummy response to GET /v1/products
internal/stubs/product.go:57
↓ 2 callers
Function
StoreGetResponse
StoreGetResponse returns the response for the GET /v1/stores/:id endpoint
internal/stubs/store.go:4
↓ 2 callers
Function
StoresListResponse
StoresListResponse is a dummy response for the GET /v1/stores endpoint
internal/stubs/store.go:74
↓ 2 callers
Function
SubscriptionCancelResponse
SubscriptionCancelResponse returns a dummy response to DELETE /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:377
↓ 2 callers
Function
SubscriptionGetResponse
SubscriptionGetResponse returns a dummy response to GET /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:4
↓ 2 callers
Function
SubscriptionInvoiceGetResponse
SubscriptionInvoiceGetResponse is a dummy response to the GET /v1/subscription-invoice/:id endpoint
internal/stubs/subscription_invoice.go:4
↓ 2 callers
Function
SubscriptionInvoicesGenerateResponse
SubscriptionInvoicesGenerateResponse is a dummy response to POST /v1/subscription-invoice/:id/generate-invoice
internal/stubs/subscription_invoice.go:149
↓ 2 callers
Function
SubscriptionInvoicesListResponse
SubscriptionInvoicesListResponse is a dummy response to GET /v1/subscription-invoice
internal/stubs/subscription_invoice.go:70
↓ 2 callers
Function
SubscriptionItemCurrentUsageResponse
SubscriptionItemCurrentUsageResponse returns a dummy response to GET /v1/subscription-items/:id/current-usage endpoint
internal/stubs/subscription_item.go:164
↓ 2 callers
Function
SubscriptionItemGetResponse
SubscriptionItemGetResponse returns a dummy response to GET /v1/subscription-items/:id endpoint
internal/stubs/subscription_item.go:4
↓ 2 callers
Function
SubscriptionItemUpdateResponse
SubscriptionItemUpdateResponse is a dummy response to the PATCH /v1/subscription-items/:id endpoint
internal/stubs/subscription_item.go:53
↓ 2 callers
Function
SubscriptionItemsListResponse
SubscriptionItemsListResponse returns a dummy response to GET /v1/subscription-items endpoint
internal/stubs/subscription_item.go:102
↓ 2 callers
Function
SubscriptionUpdateResponse
SubscriptionUpdateResponse is a dummy response to the PATCH /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:113
↓ 2 callers
Function
SubscriptionsListResponse
SubscriptionsListResponse returns a list of subscription responses ordered by created at
internal/stubs/subscriptions.go:166
↓ 2 callers
Function
UsersMeResponse
UsersMeResponse is the response from the GET /v1/users/me endpoint
internal/stubs/users.go:4
↓ 2 callers
Method
Validate
Validate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:37
↓ 2 callers
Function
VariantGetResponse
VariantGetResponse is a dummy response to the GET /v1/variants/:id endpoint
internal/stubs/variant.go:4
↓ 2 callers
Function
VariantsListResponse
VariantsListResponse is a dummy response to GET /v1/variants
internal/stubs/variant.go:61
↓ 2 callers
Function
WebhookRequestOrderCreated
WebhookRequestOrderCreated is a dummy webhook request
internal/stubs/webhook.go:4
↓ 2 callers
Function
WebhooksListResponse
WebhooksListResponse is a dummy response to GET /v1/webhooks
internal/stubs/webhook.go:152
↓ 2 callers
Function
WithHTTPClient
WithHTTPClient sets the underlying HTTP client used for API requests. By default, http.DefaultClient is used.
client_option.go:21
↓ 2 callers
Function
WithSigningSecret
WithSigningSecret sets the lemonsqueezy webhook signing secret used to authenticate webhook requests. https://docs.lemonsqueezy.com/api/webhooks#webho
client_option.go:48
↓ 1 callers
Method
Verify
Verify the signature in webhook requests https://docs.lemonsqueezy.com/api/webhooks#signing-requests
webhooks_service.go:19
↓ 1 callers
Function
WithAPIKey
WithAPIKey sets the lemonsqueezy API used to authenticate requests. https://docs.lemonsqueezy.com/api#authentication
client_option.go:40
↓ 1 callers
Method
errorMessage
()
response.go:26
↓ 1 callers
Method
newRequest
newRequest creates an API request. A relative URL can be provided in uri, in which case it is resolved relative to the BaseURL of the Client. URI's sh
client.go:87
↓ 1 callers
Method
newResponse
newResponse converts an *http.Response to *Response
client.go:139
Function
AssertObjectEqualsJSON
AssertObjectEqualsJSON checks if the JSON representation of an object matches the expected value
internal/helpers/test_helper.go:24
Method
Create
Create a custom checkout. https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout
checkouts_service.go:16
Method
Create
Create a discount. https://docs.lemonsqueezy.com/api/discounts#create-a-discount
discounts_service.go:16
Method
Delete
Delete a discount with the given ID. https://docs.lemonsqueezy.com/api/discounts#delete-a-discount
discounts_service.go:70
Method
Get
Get returns the order with the given ID. https://docs.lemonsqueezy.com/api/orders#retrieve-an-order
orders_service.go:15
Method
Get
Get returns the store with the given ID. https://docs.lemonsqueezy.com/api/stores#retrieve-a-store
stores_service.go:16
Method
Get
Get returns the subscription item with the given ID. https://docs.lemonsqueezy.com/api/subscription-items#retrieve-a-subscription-item
subscription_items_service.go:72
Method
Get
Get returns the price with the given ID. https://docs.lemonsqueezy.com/api/prices#retrieve-a-price
prices_service.go:16
Method
Get
Get the checkout with the given ID. https://docs.lemonsqueezy.com/api/checkouts#retrieve-a-checkout
checkouts_service.go:54
Method
Get
Get retrieves the license key instance with the given ID. https://docs.lemonsqueezy.com/api/license-key-instances#retrieve-a-license-key-instance
license_key_instance_service.go:15
Method
Get
Get returns the customer with the given ID. https://docs.lemonsqueezy.com/api/customers#retrieve-a-customer
customers_service.go:15
Method
Get
Get retrieves the license key with the given ID. https://docs.lemonsqueezy.com/api/license-keys#retrieve-a-license-key
license_key_service.go:15
Method
Get
Get returns the product with the given ID. https://docs.lemonsqueezy.com/api/products#retrieve-a-product
products_service.go:15
Method
Get
Get returns the variant with the given ID. https://docs.lemonsqueezy.com/api/variants#retrieve-a-variant
variants_service.go:16
Method
Get
Get returns the subscription invoice with the given ID. https://docs.lemonsqueezy.com/api/subscription-invoices#retrieve-a-subscription-invoice
subscription_invoice_service.go:17
Method
Get
Get the discount with the given ID. https://docs.lemonsqueezy.com/api/discounts#retrieve-a-discount
discounts_service.go:53
Method
Get
Get the webhook with the given ID. https://docs.lemonsqueezy.com/api/webhooks#retrieve-a-webhook
webhooks_service.go:65
Method
Get
Get returns the order-item with the given ID. https://docs.lemonsqueezy.com/api/order-items#retrieve-an-order-item
order_items_service.go:15
Method
Get
Get returns the discount redemption with the given ID. https://docs.lemonsqueezy.com/api/discount-redemptions#retrieve-a-discount-redemption
discount_redemption_service.go:15
Method
Get
Get returns the subscription with the given ID. https://docs.lemonsqueezy.com/api/subscriptions#retrieve-a-subscription
subscriptions_service.go:57
Method
List
List returns a paginated list of orders. https://docs.lemonsqueezy.com/api/orders#list-all-orders
orders_service.go:32
Method
List
List returns a paginated list of stores. https://docs.lemonsqueezy.com/api/stores#list-all-stores
stores_service.go:33
Method
List
List returns a paginated list of subscription items you can add extra query params to your request https://docs.lemonsqueezy.com/api/subscriptions#li
subscription_items_service.go:41
Method
List
List returns a paginated list of prices. https://docs.lemonsqueezy.com/api/prices#list-all-prices
prices_service.go:33
Method
List
List returns a paginated list of checkouts. https://docs.lemonsqueezy.com/api/checkouts#list-all-checkouts
checkouts_service.go:71
Method
List
List a paginated list of license key instances. https://docs.lemonsqueezy.com/api/license-key-instances#list-all-license-key-instances
license_key_instance_service.go:32
Method
List
List returns a paginated list of customers. https://docs.lemonsqueezy.com/api/customers#list-all-customers
customers_service.go:32
Method
List
List a paginated list of discount redemptions. https://docs.lemonsqueezy.com/api/license-keys#list-all-license-keys
license_key_service.go:32
Method
List
List returns a paginated list of products. https://docs.lemonsqueezy.com/api/products#list-all-products
products_service.go:32
Method
List
List returns a paginated list of variants. https://docs.lemonsqueezy.com/api/variants#list-all-variants
variants_service.go:33
next →
1–100 of 243, ranked by callers