@flopay/shared 1.2.4 → 1.2.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
@@ -647,8 +647,13 @@ interface CheckoutItem {
647
647
  * migrate; the SDK folds them into this shape internally.
648
648
  */
649
649
  interface CheckoutProduct {
650
- /** Whether this product is a one-time item or a recurring subscription. */
651
- type: CheckoutProductType;
650
+ /**
651
+ * @deprecated Optional and no longer needed — the backend resolves item vs
652
+ * subscription from the catalog `code`. Pass it only to refine the
653
+ * client-side optimistic display rendered before the session response loads
654
+ * (subscriptions are listed first). Safe to omit.
655
+ */
656
+ type?: CheckoutProductType;
652
657
  /** Catalog code — preferred identifier. */
653
658
  code?: string;
654
659
  /** @deprecated Falls back to {@link CheckoutProduct.code} for back-compat. */
@@ -998,7 +1003,7 @@ declare function getConfiguredBillingApiUrl(): string;
998
1003
  declare function getFloPayEnvironment(): FloPayEnvironment;
999
1004
 
1000
1005
  /** Current SDK version. */
1001
- declare const SDK_VERSION = "1.2.4";
1006
+ declare const SDK_VERSION = "1.2.6";
1002
1007
  /** Billing API URL for staging environment. */
1003
1008
  declare const BILLING_API_URL_STAGING = "https://api.stage.flopay.com";
1004
1009
  /** Billing API URL for production environment. */
package/dist/index.d.ts CHANGED
@@ -647,8 +647,13 @@ interface CheckoutItem {
647
647
  * migrate; the SDK folds them into this shape internally.
648
648
  */
649
649
  interface CheckoutProduct {
650
- /** Whether this product is a one-time item or a recurring subscription. */
651
- type: CheckoutProductType;
650
+ /**
651
+ * @deprecated Optional and no longer needed — the backend resolves item vs
652
+ * subscription from the catalog `code`. Pass it only to refine the
653
+ * client-side optimistic display rendered before the session response loads
654
+ * (subscriptions are listed first). Safe to omit.
655
+ */
656
+ type?: CheckoutProductType;
652
657
  /** Catalog code — preferred identifier. */
653
658
  code?: string;
654
659
  /** @deprecated Falls back to {@link CheckoutProduct.code} for back-compat. */
@@ -998,7 +1003,7 @@ declare function getConfiguredBillingApiUrl(): string;
998
1003
  declare function getFloPayEnvironment(): FloPayEnvironment;
999
1004
 
1000
1005
  /** Current SDK version. */
1001
- declare const SDK_VERSION = "1.2.4";
1006
+ declare const SDK_VERSION = "1.2.6";
1002
1007
  /** Billing API URL for staging environment. */
1003
1008
  declare const BILLING_API_URL_STAGING = "https://api.stage.flopay.com";
1004
1009
  /** Billing API URL for production environment. */
package/dist/index.mjs CHANGED
@@ -79,7 +79,7 @@ var PAYMENT_METHOD_LOGOS = {
79
79
  };
80
80
 
81
81
  // src/constants.ts
82
- var SDK_VERSION = "1.2.4";
82
+ var SDK_VERSION = "1.2.6";
83
83
  var BILLING_API_URL_STAGING = "https://api.stage.flopay.com";
84
84
  var BILLING_API_URL_PRODUCTION = "https://api.flopay.com";
85
85
  var DEFAULT_API_BASE_URL = BILLING_API_URL_STAGING;