@billingos/sdk 0.1.5 → 0.1.6

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.d.cts CHANGED
@@ -2546,8 +2546,13 @@ interface PricingTableProps {
2546
2546
  footerText?: string | null;
2547
2547
  /** Render only the cards — no section wrapper, header, or footer text */
2548
2548
  compact?: boolean;
2549
+ /**
2550
+ * Enable Adaptive Pricing — lets customers pay in their local currency (~150 countries).
2551
+ * Defaults to true.
2552
+ */
2553
+ adaptivePricing?: boolean;
2549
2554
  }
2550
- declare function PricingTable({ planIds, showIntervalToggle, defaultInterval, onSelectPlan, theme, title, description, useCheckoutModal, onPlanChanged, customer: customerProp, footerText, compact, }: PricingTableProps): react_jsx_runtime.JSX.Element;
2555
+ declare function PricingTable({ planIds, showIntervalToggle, defaultInterval, onSelectPlan, theme, title, description, useCheckoutModal, onPlanChanged, customer: customerProp, footerText, compact, adaptivePricing, }: PricingTableProps): react_jsx_runtime.JSX.Element;
2551
2556
 
2552
2557
  interface PricingCardProps {
2553
2558
  product: PricingProduct;
package/dist/index.d.ts CHANGED
@@ -2546,8 +2546,13 @@ interface PricingTableProps {
2546
2546
  footerText?: string | null;
2547
2547
  /** Render only the cards — no section wrapper, header, or footer text */
2548
2548
  compact?: boolean;
2549
+ /**
2550
+ * Enable Adaptive Pricing — lets customers pay in their local currency (~150 countries).
2551
+ * Defaults to true.
2552
+ */
2553
+ adaptivePricing?: boolean;
2549
2554
  }
2550
- declare function PricingTable({ planIds, showIntervalToggle, defaultInterval, onSelectPlan, theme, title, description, useCheckoutModal, onPlanChanged, customer: customerProp, footerText, compact, }: PricingTableProps): react_jsx_runtime.JSX.Element;
2555
+ declare function PricingTable({ planIds, showIntervalToggle, defaultInterval, onSelectPlan, theme, title, description, useCheckoutModal, onPlanChanged, customer: customerProp, footerText, compact, adaptivePricing, }: PricingTableProps): react_jsx_runtime.JSX.Element;
2551
2556
 
2552
2557
  interface PricingCardProps {
2553
2558
  product: PricingProduct;
package/dist/index.js CHANGED
@@ -4348,7 +4348,8 @@ function PricingTable({
4348
4348
  onPlanChanged,
4349
4349
  customer: customerProp,
4350
4350
  footerText = "All plans include SSL security and 99.9% uptime SLA",
4351
- compact = false
4351
+ compact = false,
4352
+ adaptivePricing
4352
4353
  }) {
4353
4354
  const [isYearly, setIsYearly] = React24.useState(defaultInterval === "year");
4354
4355
  const [selectedPriceId, setSelectedPriceId] = React24.useState(null);
@@ -4443,7 +4444,8 @@ function PricingTable({
4443
4444
  customer: { email: finalCustomerEmail, name: finalCustomerName },
4444
4445
  onSuccess: handlePaymentSuccess,
4445
4446
  existingSubscriptionId: currentSubscription?.id,
4446
- theme
4447
+ theme,
4448
+ adaptivePricing
4447
4449
  }
4448
4450
  ) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4449
4451
  PaymentBottomSheet,