@iblai/iblai-api 4.228.1-core → 4.228.1-test1-core

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.
@@ -10,4 +10,8 @@ export type CheckoutSessionResponse = {
10
10
  * Stripe checkout session ID.
11
11
  */
12
12
  session_id: string;
13
+ /**
14
+ * Platform key for this checkout.
15
+ */
16
+ platform_key: string;
13
17
  };
@@ -15,6 +15,7 @@ export type ItemPaywallConfig = {
15
15
  * Arbitrary metadata for the item (custom types only).
16
16
  */
17
17
  item_metadata?: any;
18
+ readonly platform: Record<string, any>;
18
19
  /**
19
20
  * Whether the paywall is enabled for this item
20
21
  */
@@ -42,6 +43,10 @@ export type ItemPaywallConfig = {
42
43
  * * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
43
44
  */
44
45
  grandfathering_strategy?: GrandfatheringStrategyEnum;
46
+ /**
47
+ * URL to redirect users to after successful payment. If blank, default confirmation page(or mentor/product url) or the caller-supplied URL is used.
48
+ */
49
+ on_successful_payment?: string;
45
50
  /**
46
51
  * When the paywall was first enabled (for grandfathering cutoff)
47
52
  */
@@ -6,5 +6,6 @@ export type ItemPaywallConfigCreate = {
6
6
  description?: string;
7
7
  allow_free_tier?: boolean;
8
8
  trial_period_days?: number;
9
+ on_successful_payment?: string;
9
10
  grandfathering_strategy?: GrandfatheringStrategyEnum;
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.228.1-core",
3
+ "version": "4.228.1-test1-core",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
package/sdk_schema.yml CHANGED
@@ -36490,8 +36490,12 @@ components:
36490
36490
  session_id:
36491
36491
  type: string
36492
36492
  description: Stripe checkout session ID.
36493
+ platform_key:
36494
+ type: string
36495
+ description: Platform key for this checkout.
36493
36496
  required:
36494
36497
  - checkout_url
36498
+ - platform_key
36495
36499
  - session_id
36496
36500
  Company:
36497
36501
  type: object
@@ -39586,6 +39590,10 @@ components:
39586
39590
  item_metadata:
39587
39591
  nullable: true
39588
39592
  description: Arbitrary metadata for the item (custom types only).
39593
+ platform:
39594
+ type: object
39595
+ additionalProperties: {}
39596
+ readOnly: true
39589
39597
  is_enabled:
39590
39598
  type: boolean
39591
39599
  description: Whether the paywall is enabled for this item
@@ -39612,6 +39620,13 @@ components:
39612
39620
 
39613
39621
  * `free_forever` - Free Forever - Existing users get unlimited free access
39614
39622
  * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
39623
+ on_successful_payment:
39624
+ type: string
39625
+ format: uri
39626
+ description: URL to redirect users to after successful payment. If blank,
39627
+ default confirmation page(or mentor/product url) or the caller-supplied
39628
+ URL is used.
39629
+ maxLength: 500
39615
39630
  paywall_enabled_at:
39616
39631
  type: string
39617
39632
  format: date-time
@@ -39637,6 +39652,7 @@ components:
39637
39652
  - item_name
39638
39653
  - item_type
39639
39654
  - paywall_enabled_at
39655
+ - platform
39640
39656
  - prices
39641
39657
  - stripe_product_id
39642
39658
  - unique_id
@@ -39657,6 +39673,10 @@ components:
39657
39673
  trial_period_days:
39658
39674
  type: integer
39659
39675
  minimum: 0
39676
+ on_successful_payment:
39677
+ type: string
39678
+ format: uri
39679
+ maxLength: 500
39660
39680
  grandfathering_strategy:
39661
39681
  allOf:
39662
39682
  - $ref: '#/components/schemas/GrandfatheringStrategyEnum'
@@ -14,5 +14,9 @@ export type CheckoutSessionResponse = {
14
14
  * Stripe checkout session ID.
15
15
  */
16
16
  session_id: string;
17
+ /**
18
+ * Platform key for this checkout.
19
+ */
20
+ platform_key: string;
17
21
  };
18
22
 
@@ -19,6 +19,7 @@ export type ItemPaywallConfig = {
19
19
  * Arbitrary metadata for the item (custom types only).
20
20
  */
21
21
  item_metadata?: any;
22
+ readonly platform: Record<string, any>;
22
23
  /**
23
24
  * Whether the paywall is enabled for this item
24
25
  */
@@ -46,6 +47,10 @@ export type ItemPaywallConfig = {
46
47
  * * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
47
48
  */
48
49
  grandfathering_strategy?: GrandfatheringStrategyEnum;
50
+ /**
51
+ * URL to redirect users to after successful payment. If blank, default confirmation page(or mentor/product url) or the caller-supplied URL is used.
52
+ */
53
+ on_successful_payment?: string;
49
54
  /**
50
55
  * When the paywall was first enabled (for grandfathering cutoff)
51
56
  */
@@ -10,6 +10,7 @@ export type ItemPaywallConfigCreate = {
10
10
  description?: string;
11
11
  allow_free_tier?: boolean;
12
12
  trial_period_days?: number;
13
+ on_successful_payment?: string;
13
14
  grandfathering_strategy?: GrandfatheringStrategyEnum;
14
15
  };
15
16