@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.
- package/dist/types/models/CheckoutSessionResponse.d.ts +4 -0
- package/dist/types/models/ItemPaywallConfig.d.ts +5 -0
- package/dist/types/models/ItemPaywallConfigCreate.d.ts +1 -0
- package/package.json +1 -1
- package/sdk_schema.yml +20 -0
- package/src/models/CheckoutSessionResponse.ts +4 -0
- package/src/models/ItemPaywallConfig.ts +5 -0
- package/src/models/ItemPaywallConfigCreate.ts +1 -0
|
@@ -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
|
*/
|
package/package.json
CHANGED
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'
|
|
@@ -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
|
*/
|