@flashbacktech/tsclient 0.4.58 → 0.4.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1313,6 +1313,19 @@ var ReferralsClient = class {
1313
1313
  async voidRedemption(redemptionId) {
1314
1314
  await this.http.post(`/admin/referrals/${redemptionId}/void`, { body: {} });
1315
1315
  }
1316
+ /**
1317
+ * Force-qualify a PENDING non-reseller redemption: grants the snapshotted
1318
+ * referrer reward + referred welcome credit immediately, bypassing the spend
1319
+ * threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
1320
+ * `reseller_code`. Platform-admin only. Returns the updated redemption.
1321
+ */
1322
+ async qualifyRedemption(redemptionId) {
1323
+ const res = await this.http.post(
1324
+ `/admin/referrals/${redemptionId}/qualify`,
1325
+ { body: {} }
1326
+ );
1327
+ return unwrapData(res);
1328
+ }
1316
1329
  };
1317
1330
 
1318
1331
  // src/modules/reseller/ResellerClient.ts