Skip to content

0.11.0

Latest

Choose a tag to compare

@endore8 endore8 released this 28 Aug 08:36

What's Changed

  • Added an affiliate apply link API, so you can send a user into the affiliate application flow with attribution back to them:

    • Referrals.createAffiliateApplyLink(groupSlug:) async + completion-based public methods, returning the link as a String
    • Mirrored on ReferralsObservableObject with a new affiliateApplyLinkState (.none / .loading / .success / .failure) and isLoading / isSuccess / isFailure / link / errorObjects accessors, matching claimCodeState / grantRewardState / withdrawCreditsState
    • groupSlug is optional — omit it to link to the app's default affiliate group
    • Note: the link carries a short-lived token identifying the user, so request it when the user asks to apply rather than ahead of time
  • Regenerated the OpenAPI client against the latest API:

    • User.affiliate — the user's affiliate standing on this app, or nil if they are not one. Exposes status (pending / withdrawn / approved / rejected / archived / deactivated / banned), codes (code plus an optional codeLink) and stats (claims, conversions, and earnings in USD cents)
    • New public models for codes and affiliate analytics: Code, CodeEntity, CodeAffiliate, CodeReferralUser, CodePromoCode, AffiliateAnalytics, AffiliateAnalyticsEntry, AffiliateAnalyticsMetrics, AffiliatePlatform, Pagination, and the Receiver*Reward family
    • The backing GET /codes/{code} and GET /analytics/affiliates endpoints are generated but not yet surfaced on Referrals

Full Changelog: 0.10.0...0.11.0