subos-frontend 1.0.113 → 1.0.114

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.js CHANGED
@@ -155,8 +155,8 @@ var plansApi = {
155
155
  planCode,
156
156
  currency,
157
157
  returnUrl: (options == null ? void 0 : options.returnUrl) ?? `${window.location.origin}/payment-success`,
158
- cancelUrl: (options == null ? void 0 : options.cancelUrl) ?? `${window.location.origin}/payment-cancel`
159
- // billableMetricCode: options?.billableMetricCode,
158
+ cancelUrl: (options == null ? void 0 : options.cancelUrl) ?? `${window.location.origin}/payment-cancel`,
159
+ applyDefaultCoupon: options == null ? void 0 : options.applyDefaultCoupon
160
160
  };
161
161
  if (externalId) payload.externalId = externalId;
162
162
  if (options == null ? void 0 : options.couponCode) payload.couponCode = options.couponCode;
@@ -709,8 +709,8 @@ var usePlans = () => {
709
709
  externalId,
710
710
  currency,
711
711
  returnUrl: options == null ? void 0 : options.returnUrl,
712
- cancelUrl: options == null ? void 0 : options.cancelUrl
713
- // billableMetricCode: "CANDIDATES"
712
+ cancelUrl: options == null ? void 0 : options.cancelUrl,
713
+ applyDefaultCoupon: options == null ? void 0 : options.applyDefaultCoupon
714
714
  });
715
715
  if (response.success && ((_a = response.data) == null ? void 0 : _a.checkoutUrl)) {
716
716
  window.location.href = response.data.checkoutUrl;