Types
GumroadCard = object visual*: string
GumroadCustomField = object
GumroadLicense = object success*: bool uses*: uint
GumroadPurchase = object seller_id*: string product_id*: string product_name*: string permalink*: string product_permalink*: string email*: string price*: int gumroad_fee*: int currency*: string quantity*: int discover_fee_charged*: bool can_contact*: bool referrer*: string card*: GumroadCard order_number*: int sale_id*: string sale_timestamp*: string purchaser_id*: string subscription_id*: Option[string] variants*: string license_key*: string is_multiseat_license*: bool ip_country*: string recurrence*: Option[string] is_gift_receiver_purchase*: bool refunded*: bool disputed*: bool dispute_won*: bool id*: string created_at*: string custom_fields*: seq[GumroadCustomField] chargebacked*: bool subscription_ended_at*: Option[string] subscription_cancelled_at*: Option[string] subscription_failed_at*: Option[string]
Procs
proc postLicense(client: GumroadClient; productId, licenseKey: string; incrementUses: Option[bool] = none(bool)): Future[ GumroadLicense] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, JsonParsingError, OpenParserJsonError, GumroadClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect, WriteIOEffect], forbids: [].}
- Verifies a license key for a specific product and optionally increments the usage count. Returns a GumroadLicense object containing the verification result and purchase details.
proc putLicenseDecrementUses(client: GumroadClient; productId, licenseKey: string): Future[ GumroadLicense] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, JsonParsingError, OpenParserJsonError, GumroadClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect, WriteIOEffect], forbids: [].}
- Decrements the usage count of a license key for a specific product.
proc putLicenseDisable(client: GumroadClient; productId, licenseKey: string): Future[ GumroadLicense] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, JsonParsingError, OpenParserJsonError, GumroadClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect, WriteIOEffect], forbids: [].}
- Disables a license key for a specific product.
proc putLicenseEnable(client: GumroadClient; productId, licenseKey: string): Future[ GumroadLicense] {....stackTrace: false, raises: [Exception, ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError, IOError, ProtocolError, JsonParsingError, OpenParserJsonError, GumroadClientError], tags: [ RootEffect, ReadIOEffect, TimeEffect, WriteIOEffect], forbids: [].}
- Enables a license key for a specific product.