arky-sdk 0.5.34 → 0.5.35

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
@@ -1314,9 +1314,10 @@ var createAudienceApi = (apiConfig) => {
1314
1314
  return apiConfig.httpClient.post(
1315
1315
  `/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribe`,
1316
1316
  {
1317
- priceId: params.priceId,
1318
- successUrl: params.successUrl,
1319
- cancelUrl: params.cancelUrl
1317
+ email: params.email,
1318
+ ...params.priceId && { priceId: params.priceId },
1319
+ ...params.successUrl && { successUrl: params.successUrl },
1320
+ ...params.cancelUrl && { cancelUrl: params.cancelUrl }
1320
1321
  },
1321
1322
  options
1322
1323
  );