@officexapp/catalog-types 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +24 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -350,6 +350,9 @@ export interface PageOffer {
350
350
  id: string;
351
351
  title: string;
352
352
  price_display?: string;
353
+ /** Gray subtitle text below the price (e.g. "/month", "per year", "billed annually").
354
+ * Auto-derived from `interval` when omitted (e.g. interval:"month" → "/month").
355
+ * Set to "" to suppress. */
353
356
  price_subtext?: string;
354
357
  image?: string;
355
358
  stripe_price_id?: string;
@@ -694,7 +697,12 @@ export interface CheckoutTestimonial {
694
697
  export interface CheckoutSettings {
695
698
  payment_type: CheckoutPaymentType;
696
699
  title?: string;
700
+ /** Plain-text subheading rendered directly below the checkout title */
701
+ subheading?: string;
702
+ /** Subtitle shown below the checkout title (e.g. "7-day free trial included") — overrides auto-generated text */
703
+ subtitle?: string;
697
704
  stripe_publishable_key?: string;
705
+ billing_address_collection?: "auto" | "required";
698
706
  allow_discount_codes?: boolean;
699
707
  free_trial?: {
700
708
  enabled: boolean;
@@ -751,7 +759,17 @@ export interface CheckoutSettings {
751
759
  terms_of_service?: "required" | "none";
752
760
  promotions?: "auto" | "none";
753
761
  };
762
+ /** Per-method options — e.g. card-specific capture_method for holds */
763
+ payment_method_options?: {
764
+ card?: {
765
+ capture_method?: "automatic" | "manual";
766
+ request_three_d_secure?: "any" | "automatic";
767
+ };
768
+ };
754
769
  };
770
+ /** "hosted" redirects to Stripe, "embedded" renders inline payment form.
771
+ * Defaults to "embedded" when stripe_publishable_key is set, else "hosted". */
772
+ ui_mode?: "hosted" | "embedded";
755
773
  button_text?: string;
756
774
  testimonial?: CheckoutTestimonial;
757
775
  show_disclaimer?: boolean;
@@ -783,12 +801,15 @@ export interface CreateCheckoutSessionRequest {
783
801
  line_items: CheckoutLineItem[];
784
802
  coupon_code?: string;
785
803
  form_state: FormState;
786
- success_url: string;
787
- cancel_url: string;
804
+ success_url?: string;
805
+ cancel_url?: string;
806
+ return_url?: string;
807
+ ui_mode?: "hosted" | "embedded";
788
808
  }
789
809
  export interface CreateCheckoutSessionResponse {
790
810
  session_id: string;
791
- session_url: string;
811
+ session_url?: string;
812
+ client_secret?: string;
792
813
  }
793
814
  export interface UrlParamSettings {
794
815
  prefill_mappings?: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@officexapp/catalog-types",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "TypeScript type definitions for CatalogKit schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",