LemonSqueezy class

Constructors

LemonSqueezy.new()

Properties

dio ↔ Dio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelSubscription(String subscriptionId) Future<void>
createCustomCheckout({required int customPrice, required List<int> enabledVariants, String? buttonColor, String? discountCode, Map<String, dynamic>? customData, String? expiresAt, bool preview = false}) Future<Map<String, dynamic>>
createCustomer(String name, String email, {String? city, String? region, String? country}) Future<Map>
createDiscount({required String name, required String code, required int amount, required String amountType, int? storeId, bool isLimitedToProducts = false, bool isLimitedRedemptions = false, int maxRedemptions = 0, String? startsAt, String? expiresAt, String duration = "once", int durationInMonths = 1, bool testMode = false, List<int>? variantIds}) Future<Map<String, dynamic>>
createUsageRecord(int quantity, {int? subscriptionItemId, String action = 'increment'}) Future<Map<String, dynamic>>
createWebhook({required String url, required List<String> events, required String secret, bool testMode = false}) Future<Map<String, dynamic>>
deleteDiscount(int id) Future<void>
deleteWebhook(String webhookId) Future<void>
generateSubscriptionInvoice(String subscriptionId, {String? name, String? address, String? city, String? state, String? zipCode, String? country, String? notes}) Future<void>
getACustomer(String customerID) Future<Map>
Retrieve a customer
getAFile(String fileID) Future<Map>
getAOrder(String orderID) Future<Map>
getAOrderItem(String orderItemID) Future<Map>
getAPrice(String priceID) Future<Map>
getAProduct(String productID) Future<Map>
getAStore(String storeID) Future<Map>
Retrieve a store
getAVariant(String variantID) Future<Map>
getSubscriptionInvoice(String invoiceId) Future<void>
getSubscriptionItem(String id, String apiKey) Future<void>
getSubscriptionItemUsage(String itemId, String apiKey) Future<void>
getUser() Future<Map>
Retrieve the authenticated user
listAllCustomers() Future<Map>
listAllDiscountRedemptions({int? discountId, int? orderId}) Future<Map<String, dynamic>>
listAllDiscounts({int? storeId}) Future<Map<String, dynamic>>
listAllFiles(String? fileID) Future<Map>
List all stores
listAllLicenseKeyInstances({int? licenseKeyId}) Future<Map<String, dynamic>>
listAllLicenseKeys({int? storeId, int? orderId, int? orderItemId, int? productId, String? status}) Future<Map<String, dynamic>>
listAllOrderItems({int? orderId, int? productId, int? variantId}) Future<Map<String, dynamic>>
listAllOrders({int? storeId, String? userEmail}) Future<Map<String, dynamic>>
List all stores
listAllPrices(String? variantId) Future<Map>
List all stores
listAllProducts() Future<Map>
List all stores
listAllStores() Future<Map>
List all stores
listAllUsageRecords({int? subscriptionItemId}) Future<Map<String, dynamic>>
listAllVariants() Future<Map>
List all stores
listCheckouts({int? storeId, int? variantId}) Future<Map<String, dynamic>>
listSubscriptionInvoices({String? storeId, String? status, bool? refunded, String? subscriptionId}) Future<void>
listSubscriptionItems({String? subscriptionId, String? priceId, String? apiKey}) Future<void>
listSubscriptions({String? storeId, String? orderId, String? orderItemId, String? productId, String? variantId, String? userEmail, String? status}) Future<void>
listWebhooks({String? storeId}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveCheckout(String checkoutId) Future<Map<String, dynamic>>
retrieveDiscount(int id) Future<Map<String, dynamic>>
retrieveDiscountRedemption(int id) Future<Map<String, dynamic>>
retrieveLicenseKey(int id) Future<Map<String, dynamic>>
retrieveLicenseKeyInstance(int id) Future<Map<String, dynamic>>
retrieveSubscription(String subscriptionId) Future<void>
retrieveUsageRecord(int id) Future<Map<String, dynamic>>
retrieveWebhook(String webhookId) Future<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited
updateCustomer(int id, {String? name, String? email, String? city, String? region, String? country, String? status}) Future<Map<String, dynamic>>
updateLicenseKey(int id, {int? activationLimit, bool? disabled}) Future<void>
updateSubscription(String subscriptionId, Map<String, dynamic> subscriptionData) Future<void>
updateSubscriptionItem(String itemId, int quantity, bool invoiceImmediately, bool disableProrations, String apiKey) Future<void>
updateWebhook(String webhookId, List<String> events) Future<Map<String, dynamic>>

Operators

operator ==(Object other) bool
The equality operator.
inherited