tf-checkout-react 2.0.0-beta.0 → 2.0.0-beta.2

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.mts CHANGED
@@ -152,6 +152,14 @@ interface TfProfile {
152
152
  hasDashboardAccess: boolean;
153
153
  ticketHolders: TfTicketHolder[];
154
154
  linkedCryptoWallets: string[];
155
+ /**
156
+ * Calendar date as `YYYY-MM-DD`, or null when none is on file. The profile
157
+ * endpoint has always returned this; it simply wasn't declared here, so the
158
+ * checkout couldn't prefill it. Only populated for buyers who have been
159
+ * through an age-gated checkout, RN registration or SSO, so treat it as
160
+ * best-effort.
161
+ */
162
+ dateOfBirth?: string | null;
155
163
  }
156
164
  interface TfCountry {
157
165
  id: string | number;
@@ -1916,6 +1924,14 @@ interface CheckoutEngine {
1916
1924
  /** Run ID verification for a NEED_ID_VERIFICATION order. */
1917
1925
  runIdVerification: (orderHash: string, options?: RunIdVerificationOptions) => Promise<IdVerificationStatus | undefined>;
1918
1926
  reset: () => void;
1927
+ /**
1928
+ * Move the cart to the terminal 'expired' state. Until now this only happened
1929
+ * reactively, when the backend rejected a call with an expired-cart 422 — so a
1930
+ * reservation that simply ran out on screen left the buyer editing a form that
1931
+ * could no longer be paid for. Consumers driving the countdown call this when
1932
+ * it reaches zero.
1933
+ */
1934
+ expireCart: () => void;
1919
1935
  }
1920
1936
  /**
1921
1937
  * Binds the orchestration to a store + a platform's ports. In React, wrap this
package/dist/index.d.ts CHANGED
@@ -152,6 +152,14 @@ interface TfProfile {
152
152
  hasDashboardAccess: boolean;
153
153
  ticketHolders: TfTicketHolder[];
154
154
  linkedCryptoWallets: string[];
155
+ /**
156
+ * Calendar date as `YYYY-MM-DD`, or null when none is on file. The profile
157
+ * endpoint has always returned this; it simply wasn't declared here, so the
158
+ * checkout couldn't prefill it. Only populated for buyers who have been
159
+ * through an age-gated checkout, RN registration or SSO, so treat it as
160
+ * best-effort.
161
+ */
162
+ dateOfBirth?: string | null;
155
163
  }
156
164
  interface TfCountry {
157
165
  id: string | number;
@@ -1916,6 +1924,14 @@ interface CheckoutEngine {
1916
1924
  /** Run ID verification for a NEED_ID_VERIFICATION order. */
1917
1925
  runIdVerification: (orderHash: string, options?: RunIdVerificationOptions) => Promise<IdVerificationStatus | undefined>;
1918
1926
  reset: () => void;
1927
+ /**
1928
+ * Move the cart to the terminal 'expired' state. Until now this only happened
1929
+ * reactively, when the backend rejected a call with an expired-cart 422 — so a
1930
+ * reservation that simply ran out on screen left the buyer editing a form that
1931
+ * could no longer be paid for. Consumers driving the countdown call this when
1932
+ * it reaches zero.
1933
+ */
1934
+ expireCart: () => void;
1919
1935
  }
1920
1936
  /**
1921
1937
  * Binds the orchestration to a store + a platform's ports. In React, wrap this