MCPcopy Create free account

hub / github.com/NdoleStudio/lemonsqueezy-go / functions

Functions243 in github.com/NdoleStudio/lemonsqueezy-go

↓ 102 callersFunctionWithBaseURL
WithBaseURL set's the base url for the flutterwave API
client_option.go:30
↓ 101 callersFunctionNew
New creates and returns a new Client from a slice of Option.
client.go:46
↓ 100 callersFunctionMakeTestServer
MakeTestServer creates an api server for testing
internal/helpers/test_helper.go:13
↓ 49 callersMethoddo
do carries out an HTTP request and returns a Response
client.go:112
↓ 48 callersMethodList
List returns a paginated list of files. https://docs.lemonsqueezy.com/api/files#list-all-files
files_service.go:32
↓ 46 callersMethodGet
Get returns the file with the given ID. https://docs.lemonsqueezy.com/api/files#retrieve-a-file
files_service.go:15
↓ 7 callersMethodCreate
Create a webhook. https://docs.lemonsqueezy.com/api/webhooks#create-a-webhook
webhooks_service.go:29
↓ 7 callersMethodapply
(config *clientConfig)
client_option.go:10
↓ 7 callersFunctiondefaultClientConfig
()
client_config.go:12
↓ 6 callersMethodUpdate
Update an existing webhook https://docs.lemonsqueezy.com/api/subscriptions#update-a-webhook
webhooks_service.go:82
↓ 6 callersFunctionWebhookGetResponse
WebhookGetResponse is a dummy response to the GET /v1/webhooks/:id endpoint
internal/stubs/webhook.go:108
↓ 5 callersMethodMe
Me retrieves the currently authenticated user. https://docs.lemonsqueezy.com/api/users#retrieve-the-authenticated-user
users_service.go:14
↓ 4 callersFunctionCheckoutGetResponse
CheckoutGetResponse is a dummy response to the GET /v1/checkouts/:id endpoint
internal/stubs/checkout.go:4
↓ 4 callersMethodDelete
Delete a webhook with the given ID. https://docs.lemonsqueezy.com/api/webhooks#delete-a-webhook
webhooks_service.go:110
↓ 4 callersFunctionDiscountGetResponse
DiscountGetResponse is a dummy response to the GET /v1/discounts/:id endpoint
internal/stubs/discount.go:4
↓ 2 callersMethodActivate
Activate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:15
↓ 2 callersMethodCancel
Cancel an active subscription the given ID. https://docs.lemonsqueezy.com/api/subscriptions#retrieve-a-subscription
subscriptions_service.go:74
↓ 2 callersFunctionCheckoutListResponse
CheckoutListResponse is a dummy response to GET /v1/checkouts
internal/stubs/checkout.go:95
↓ 2 callersMethodCurrentUsage
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 callersFunctionCustomerGetResponse
CustomerGetResponse is a dummy response to the GET /v1/customers/:id endpoint
internal/stubs/customer.go:4
↓ 2 callersFunctionCustomerListResponse
CustomerListResponse is a dummy response to GET /v1/customers
internal/stubs/customer.go:69
↓ 2 callersMethodDeactivate
Deactivate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:59
↓ 2 callersFunctionDiscountRedemptionGetResponse
DiscountRedemptionGetResponse is a dummy response to the GET /v1/discount-redemption/:id endpoint
internal/stubs/discount_redemption.go:4
↓ 2 callersFunctionDiscountRedemptionsListResponse
DiscountRedemptionsListResponse is a dummy response to GET /v1/discount-redemption
internal/stubs/discount_redemption.go:50
↓ 2 callersFunctionDiscountsListResponse
DiscountsListResponse is a dummy response to GET /v1/discounts
internal/stubs/discount.go:63
↓ 2 callersMethodError
Error ensures that the response can be decoded into a string inc ase it's an error response
response.go:17
↓ 2 callersFunctionFileGetResponse
FileGetResponse is a dummy response to the GET /v1/files/:id endpoint
internal/stubs/file.go:4
↓ 2 callersFunctionFilesListResponse
FilesListResponse is a dummy response to GET /v1/files
internal/stubs/file.go:47
↓ 2 callersMethodGenerate
Generate a Subscription Invoice. https://docs.lemonsqueezy.com/api/subscription-invoices/generate-subscription-invoice
subscription_invoice_service.go:62
↓ 2 callersFunctionLicenseActivateResponse
LicenseActivateResponse is a dummy response to the POST /v1/licenses/activate endpoint
internal/stubs/licenses.go:4
↓ 2 callersFunctionLicenseDeactivateResponse
LicenseDeactivateResponse is a dummy response to the POST /v1/licenses/deactivate endpoint
internal/stubs/licenses.go:76
↓ 2 callersFunctionLicenseKeyGetResponse
LicenseKeyGetResponse is a dummy response to the GET /v1/license-key/:id endpoint
internal/stubs/license_key.go:4
↓ 2 callersFunctionLicenseKeyInstanceGetResponse
LicenseKeyInstanceGetResponse is a dummy response to the GET /v1/license-key-instances/:id endpoint
internal/stubs/license_key_instance.go:4
↓ 2 callersFunctionLicenseKeyInstancesListResponse
LicenseKeyInstancesListResponse is a dummy response to GET /v1/license-key-instances
internal/stubs/license_key_instance.go:40
↓ 2 callersFunctionLicenseKeysListResponse
LicenseKeysListResponse is a dummy response to GET /v1/license-key
internal/stubs/license_key.go:82
↓ 2 callersFunctionLicenseValidateResponse
LicenseValidateResponse is a dummy response to the POST /v1/licenses/validate endpoint
internal/stubs/licenses.go:40
↓ 2 callersFunctionOrderGetResponse
OrderGetResponse is a dummy response to the GET /v1/orders/:id endpoint
internal/stubs/order.go:4
↓ 2 callersFunctionOrderItemGetResponse
OrderItemGetResponse is a dummy response to the GET /v1/order-items/:id endpoint
internal/stubs/order_item.go:4
↓ 2 callersFunctionOrderItemsListResponse
OrderItemsListResponse is a dummy response to GET /v1/order-items
internal/stubs/order_item.go:55
↓ 2 callersFunctionOrdersListResponse
OrdersListResponse is a dummy response to GET /v1/orders
internal/stubs/order.go:109
↓ 2 callersFunctionPriceGetResponse
PriceGetResponse is a dummy response to the GET /v1/prices/:id endpoint
internal/stubs/price.go:4
↓ 2 callersFunctionPriceListResponse
PriceListResponse is a dummy response to GET /v1/prices
internal/stubs/price.go:67
↓ 2 callersFunctionProductGetResponse
ProductGetResponse is a dummy response to the GET /v1/products/:id endpoint
internal/stubs/product.go:4
↓ 2 callersFunctionProductsListResponse
ProductsListResponse is a dummy response to GET /v1/products
internal/stubs/product.go:57
↓ 2 callersFunctionStoreGetResponse
StoreGetResponse returns the response for the GET /v1/stores/:id endpoint
internal/stubs/store.go:4
↓ 2 callersFunctionStoresListResponse
StoresListResponse is a dummy response for the GET /v1/stores endpoint
internal/stubs/store.go:74
↓ 2 callersFunctionSubscriptionCancelResponse
SubscriptionCancelResponse returns a dummy response to DELETE /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:377
↓ 2 callersFunctionSubscriptionGetResponse
SubscriptionGetResponse returns a dummy response to GET /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:4
↓ 2 callersFunctionSubscriptionInvoiceGetResponse
SubscriptionInvoiceGetResponse is a dummy response to the GET /v1/subscription-invoice/:id endpoint
internal/stubs/subscription_invoice.go:4
↓ 2 callersFunctionSubscriptionInvoicesGenerateResponse
SubscriptionInvoicesGenerateResponse is a dummy response to POST /v1/subscription-invoice/:id/generate-invoice
internal/stubs/subscription_invoice.go:149
↓ 2 callersFunctionSubscriptionInvoicesListResponse
SubscriptionInvoicesListResponse is a dummy response to GET /v1/subscription-invoice
internal/stubs/subscription_invoice.go:70
↓ 2 callersFunctionSubscriptionItemCurrentUsageResponse
SubscriptionItemCurrentUsageResponse returns a dummy response to GET /v1/subscription-items/:id/current-usage endpoint
internal/stubs/subscription_item.go:164
↓ 2 callersFunctionSubscriptionItemGetResponse
SubscriptionItemGetResponse returns a dummy response to GET /v1/subscription-items/:id endpoint
internal/stubs/subscription_item.go:4
↓ 2 callersFunctionSubscriptionItemUpdateResponse
SubscriptionItemUpdateResponse is a dummy response to the PATCH /v1/subscription-items/:id endpoint
internal/stubs/subscription_item.go:53
↓ 2 callersFunctionSubscriptionItemsListResponse
SubscriptionItemsListResponse returns a dummy response to GET /v1/subscription-items endpoint
internal/stubs/subscription_item.go:102
↓ 2 callersFunctionSubscriptionUpdateResponse
SubscriptionUpdateResponse is a dummy response to the PATCH /v1/subscriptions/:id endpoint
internal/stubs/subscriptions.go:113
↓ 2 callersFunctionSubscriptionsListResponse
SubscriptionsListResponse returns a list of subscription responses ordered by created at
internal/stubs/subscriptions.go:166
↓ 2 callersFunctionUsersMeResponse
UsersMeResponse is the response from the GET /v1/users/me endpoint
internal/stubs/users.go:4
↓ 2 callersMethodValidate
Validate a license key. https://docs.lemonsqueezy.com/help/licensing/license-api
licenses_service.go:37
↓ 2 callersFunctionVariantGetResponse
VariantGetResponse is a dummy response to the GET /v1/variants/:id endpoint
internal/stubs/variant.go:4
↓ 2 callersFunctionVariantsListResponse
VariantsListResponse is a dummy response to GET /v1/variants
internal/stubs/variant.go:61
↓ 2 callersFunctionWebhookRequestOrderCreated
WebhookRequestOrderCreated is a dummy webhook request
internal/stubs/webhook.go:4
↓ 2 callersFunctionWebhooksListResponse
WebhooksListResponse is a dummy response to GET /v1/webhooks
internal/stubs/webhook.go:152
↓ 2 callersFunctionWithHTTPClient
WithHTTPClient sets the underlying HTTP client used for API requests. By default, http.DefaultClient is used.
client_option.go:21
↓ 2 callersFunctionWithSigningSecret
WithSigningSecret sets the lemonsqueezy webhook signing secret used to authenticate webhook requests. https://docs.lemonsqueezy.com/api/webhooks#webho
client_option.go:48
↓ 1 callersMethodVerify
Verify the signature in webhook requests https://docs.lemonsqueezy.com/api/webhooks#signing-requests
webhooks_service.go:19
↓ 1 callersFunctionWithAPIKey
WithAPIKey sets the lemonsqueezy API used to authenticate requests. https://docs.lemonsqueezy.com/api#authentication
client_option.go:40
↓ 1 callersMethoderrorMessage
()
response.go:26
↓ 1 callersMethodnewRequest
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 callersMethodnewResponse
newResponse converts an *http.Response to *Response
client.go:139
FunctionAssertObjectEqualsJSON
AssertObjectEqualsJSON checks if the JSON representation of an object matches the expected value
internal/helpers/test_helper.go:24
MethodCreate
Create a custom checkout. https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout
checkouts_service.go:16
MethodCreate
Create a discount. https://docs.lemonsqueezy.com/api/discounts#create-a-discount
discounts_service.go:16
MethodDelete
Delete a discount with the given ID. https://docs.lemonsqueezy.com/api/discounts#delete-a-discount
discounts_service.go:70
MethodGet
Get returns the order with the given ID. https://docs.lemonsqueezy.com/api/orders#retrieve-an-order
orders_service.go:15
MethodGet
Get returns the store with the given ID. https://docs.lemonsqueezy.com/api/stores#retrieve-a-store
stores_service.go:16
MethodGet
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
MethodGet
Get returns the price with the given ID. https://docs.lemonsqueezy.com/api/prices#retrieve-a-price
prices_service.go:16
MethodGet
Get the checkout with the given ID. https://docs.lemonsqueezy.com/api/checkouts#retrieve-a-checkout
checkouts_service.go:54
MethodGet
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
MethodGet
Get returns the customer with the given ID. https://docs.lemonsqueezy.com/api/customers#retrieve-a-customer
customers_service.go:15
MethodGet
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
MethodGet
Get returns the product with the given ID. https://docs.lemonsqueezy.com/api/products#retrieve-a-product
products_service.go:15
MethodGet
Get returns the variant with the given ID. https://docs.lemonsqueezy.com/api/variants#retrieve-a-variant
variants_service.go:16
MethodGet
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
MethodGet
Get the discount with the given ID. https://docs.lemonsqueezy.com/api/discounts#retrieve-a-discount
discounts_service.go:53
MethodGet
Get the webhook with the given ID. https://docs.lemonsqueezy.com/api/webhooks#retrieve-a-webhook
webhooks_service.go:65
MethodGet
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
MethodGet
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
MethodGet
Get returns the subscription with the given ID. https://docs.lemonsqueezy.com/api/subscriptions#retrieve-a-subscription
subscriptions_service.go:57
MethodList
List returns a paginated list of orders. https://docs.lemonsqueezy.com/api/orders#list-all-orders
orders_service.go:32
MethodList
List returns a paginated list of stores. https://docs.lemonsqueezy.com/api/stores#list-all-stores
stores_service.go:33
MethodList
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
MethodList
List returns a paginated list of prices. https://docs.lemonsqueezy.com/api/prices#list-all-prices
prices_service.go:33
MethodList
List returns a paginated list of checkouts. https://docs.lemonsqueezy.com/api/checkouts#list-all-checkouts
checkouts_service.go:71
MethodList
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
MethodList
List returns a paginated list of customers. https://docs.lemonsqueezy.com/api/customers#list-all-customers
customers_service.go:32
MethodList
List a paginated list of discount redemptions. https://docs.lemonsqueezy.com/api/license-keys#list-all-license-keys
license_key_service.go:32
MethodList
List returns a paginated list of products. https://docs.lemonsqueezy.com/api/products#list-all-products
products_service.go:32
MethodList
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