@tinkerlandai/longplay-sdk 0.10.23 → 0.10.25

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 (60) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/README.md +79 -0
  3. package/README.zh-CN.md +31 -0
  4. package/dist/{ai-usage-WFwbPTiq.d.ts → ai-usage-B6RepnmH.d.ts} +1 -1
  5. package/dist/{api-rZ_QoNQi.d.ts → api-C9P338XT.d.ts} +1547 -6
  6. package/dist/{chunk-5SHVM4AF.js → chunk-2KI63SPJ.js} +2 -2
  7. package/dist/{chunk-7MF2YMN4.js → chunk-2ZJ5CS5Q.js} +1 -1
  8. package/dist/chunk-34I23EKZ.js +1 -0
  9. package/dist/{chunk-XFO4FBFG.js → chunk-5HJMAZ7A.js} +1 -1
  10. package/dist/chunk-7AXCG6NU.js +1 -0
  11. package/dist/chunk-BB5P5HPS.js +1 -0
  12. package/dist/chunk-C2BODHNY.js +1 -0
  13. package/dist/chunk-EIYWDWXP.js +1 -0
  14. package/dist/chunk-LFFBNGXP.js +1 -0
  15. package/dist/{chunk-HDVLCRC6.js → chunk-MHEYMXGZ.js} +2 -2
  16. package/dist/{chunk-EZLLTGV3.js → chunk-ML3BIPM6.js} +1 -1
  17. package/dist/{chunk-KZ63ANBP.js → chunk-O3LZPMS4.js} +1 -1
  18. package/dist/chunk-O4535GJR.js +6 -0
  19. package/dist/{chunk-PKLLZXNM.js → chunk-OEH47Y2L.js} +1 -1
  20. package/dist/chunk-RKREEPCT.js +1 -0
  21. package/dist/{chunk-QVGTHPWT.js → chunk-SJNF6JDJ.js} +1 -1
  22. package/dist/chunk-THGLNE4K.js +1 -0
  23. package/dist/chunk-TUYBXAAK.js +1 -0
  24. package/dist/chunk-ZX2RWS3T.js +1 -0
  25. package/dist/content-FD2Q6XD6.js +1 -0
  26. package/dist/{coupon-Btz_KFKp.d.ts → coupon-DyKA-BRG.d.ts} +8 -0
  27. package/dist/funnel-host-purchase-XW7IF52Y.js +1 -0
  28. package/dist/{funnel-local-client-BYdKGnMb.d.ts → funnel-local-client-CSA9XoC4.d.ts} +3270 -32
  29. package/dist/{funnel-node-evaluation-eLMEZIFz.d.ts → funnel-node-evaluation-Cg-4tcAs.d.ts} +88 -0
  30. package/dist/funnel-process-client-RXgS2i-R.d.ts +23184 -0
  31. package/dist/funnel-runtime-host-I6PJXVRC.js +1 -0
  32. package/dist/index.d.ts +1219 -31
  33. package/dist/index.js +1 -1
  34. package/dist/native-shell.js +1 -1
  35. package/dist/openrouter.d.ts +2 -2
  36. package/dist/openrouter.js +1 -1
  37. package/dist/page.js +1 -1
  38. package/dist/paywall-CGBFHFRU.js +1 -0
  39. package/dist/popup.d.ts +3 -3
  40. package/dist/popup.js +1 -1
  41. package/dist/{presentation-loading-Ctk1djAi.d.ts → presentation-loading-D0A9G_kT.d.ts} +16 -2
  42. package/dist/react-native.d.ts +6 -6
  43. package/dist/react-native.js +1 -1
  44. package/dist/screen-renderer-WOMWOEYL.js +1 -0
  45. package/dist/server.d.ts +2402 -17
  46. package/dist/server.js +1 -1
  47. package/dist/visual.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-3J24TUO7.js +0 -1
  50. package/dist/chunk-6DTGBDYG.js +0 -1
  51. package/dist/chunk-DUZ2E7BK.js +0 -1
  52. package/dist/chunk-IIYIIXNB.js +0 -1
  53. package/dist/chunk-KRQESEG2.js +0 -6
  54. package/dist/chunk-WMIDEJTZ.js +0 -1
  55. package/dist/chunk-YAVWELIV.js +0 -1
  56. package/dist/content-FM52HLRX.js +0 -1
  57. package/dist/funnel-process-client-C87pmLC9.d.ts +0 -64499
  58. package/dist/funnel-runtime-host-MZKLVLC4.js +0 -1
  59. package/dist/paywall-JL4SXFXT.js +0 -1
  60. package/dist/screen-renderer-TEVGVUT5.js +0 -1
@@ -2664,14 +2664,70 @@ declare const apiOperations: {
2664
2664
  }>;
2665
2665
  intervalCount: z$1.ZodNumber;
2666
2666
  amountMinor: z$1.ZodNumber;
2667
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
2667
2668
  }, z$1.core.$strict>>;
2668
2669
  trial: z$1.ZodNullable<z$1.ZodObject<{
2669
2670
  days: z$1.ZodNumber;
2670
2671
  cardRequired: z$1.ZodBoolean;
2671
2672
  }, z$1.core.$strict>>;
2673
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2674
+ grantId: z$1.ZodUUID;
2675
+ couponId: z$1.ZodUUID;
2676
+ amountMinor: z$1.ZodNumber;
2677
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
2678
+ replace: "replace";
2679
+ stack_native: "stack_native";
2680
+ }>>;
2681
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2682
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2683
+ type: z$1.ZodLiteral<"percent">;
2684
+ percentOff: z$1.ZodNumber;
2685
+ }, z$1.core.$strict>, z$1.ZodObject<{
2686
+ type: z$1.ZodLiteral<"amount">;
2687
+ amountOffMinor: z$1.ZodNumber;
2688
+ currency: z$1.ZodString;
2689
+ }, z$1.core.$strict>], "type">;
2690
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2691
+ type: z$1.ZodLiteral<"once">;
2692
+ }, z$1.core.$strict>, z$1.ZodObject<{
2693
+ type: z$1.ZodLiteral<"forever">;
2694
+ }, z$1.core.$strict>, z$1.ZodObject<{
2695
+ type: z$1.ZodLiteral<"repeating">;
2696
+ months: z$1.ZodNumber;
2697
+ }, z$1.core.$strict>], "type">;
2698
+ }, z$1.core.$strict>>>;
2699
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
2700
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
2672
2701
  }, z$1.core.$strict>>;
2673
2702
  subtotalMinor: z$1.ZodNumber;
2674
2703
  discountMinor: z$1.ZodNumber;
2704
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
2705
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2706
+ grantId: z$1.ZodUUID;
2707
+ couponId: z$1.ZodUUID;
2708
+ amountMinor: z$1.ZodNumber;
2709
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
2710
+ replace: "replace";
2711
+ stack_native: "stack_native";
2712
+ }>>;
2713
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2714
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2715
+ type: z$1.ZodLiteral<"percent">;
2716
+ percentOff: z$1.ZodNumber;
2717
+ }, z$1.core.$strict>, z$1.ZodObject<{
2718
+ type: z$1.ZodLiteral<"amount">;
2719
+ amountOffMinor: z$1.ZodNumber;
2720
+ currency: z$1.ZodString;
2721
+ }, z$1.core.$strict>], "type">;
2722
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2723
+ type: z$1.ZodLiteral<"once">;
2724
+ }, z$1.core.$strict>, z$1.ZodObject<{
2725
+ type: z$1.ZodLiteral<"forever">;
2726
+ }, z$1.core.$strict>, z$1.ZodObject<{
2727
+ type: z$1.ZodLiteral<"repeating">;
2728
+ months: z$1.ZodNumber;
2729
+ }, z$1.core.$strict>], "type">;
2730
+ }, z$1.core.$strict>>>;
2675
2731
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
2676
2732
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
2677
2733
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -2862,6 +2918,32 @@ declare const apiOperations: {
2862
2918
  debitMinor: z$1.ZodNumber;
2863
2919
  totalMinor: z$1.ZodNumber;
2864
2920
  discountMinor: z$1.ZodNumber;
2921
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
2922
+ grantId: z$1.ZodUUID;
2923
+ couponId: z$1.ZodUUID;
2924
+ amountMinor: z$1.ZodNumber;
2925
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
2926
+ replace: "replace";
2927
+ stack_native: "stack_native";
2928
+ }>>;
2929
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
2930
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2931
+ type: z$1.ZodLiteral<"percent">;
2932
+ percentOff: z$1.ZodNumber;
2933
+ }, z$1.core.$strict>, z$1.ZodObject<{
2934
+ type: z$1.ZodLiteral<"amount">;
2935
+ amountOffMinor: z$1.ZodNumber;
2936
+ currency: z$1.ZodString;
2937
+ }, z$1.core.$strict>], "type">;
2938
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2939
+ type: z$1.ZodLiteral<"once">;
2940
+ }, z$1.core.$strict>, z$1.ZodObject<{
2941
+ type: z$1.ZodLiteral<"forever">;
2942
+ }, z$1.core.$strict>, z$1.ZodObject<{
2943
+ type: z$1.ZodLiteral<"repeating">;
2944
+ months: z$1.ZodNumber;
2945
+ }, z$1.core.$strict>], "type">;
2946
+ }, z$1.core.$strict>>>;
2865
2947
  taxMinor: z$1.ZodNumber;
2866
2948
  proration: z$1.ZodEnum<{
2867
2949
  none: "none";
@@ -3149,14 +3231,70 @@ declare const apiOperations: {
3149
3231
  }>;
3150
3232
  intervalCount: z$1.ZodNumber;
3151
3233
  amountMinor: z$1.ZodNumber;
3234
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
3152
3235
  }, z$1.core.$strict>>;
3153
3236
  trial: z$1.ZodNullable<z$1.ZodObject<{
3154
3237
  days: z$1.ZodNumber;
3155
3238
  cardRequired: z$1.ZodBoolean;
3156
3239
  }, z$1.core.$strict>>;
3240
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
3241
+ grantId: z$1.ZodUUID;
3242
+ couponId: z$1.ZodUUID;
3243
+ amountMinor: z$1.ZodNumber;
3244
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
3245
+ replace: "replace";
3246
+ stack_native: "stack_native";
3247
+ }>>;
3248
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3249
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3250
+ type: z$1.ZodLiteral<"percent">;
3251
+ percentOff: z$1.ZodNumber;
3252
+ }, z$1.core.$strict>, z$1.ZodObject<{
3253
+ type: z$1.ZodLiteral<"amount">;
3254
+ amountOffMinor: z$1.ZodNumber;
3255
+ currency: z$1.ZodString;
3256
+ }, z$1.core.$strict>], "type">;
3257
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3258
+ type: z$1.ZodLiteral<"once">;
3259
+ }, z$1.core.$strict>, z$1.ZodObject<{
3260
+ type: z$1.ZodLiteral<"forever">;
3261
+ }, z$1.core.$strict>, z$1.ZodObject<{
3262
+ type: z$1.ZodLiteral<"repeating">;
3263
+ months: z$1.ZodNumber;
3264
+ }, z$1.core.$strict>], "type">;
3265
+ }, z$1.core.$strict>>>;
3266
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
3267
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3157
3268
  }, z$1.core.$strict>>;
3158
3269
  subtotalMinor: z$1.ZodNumber;
3159
3270
  discountMinor: z$1.ZodNumber;
3271
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3272
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
3273
+ grantId: z$1.ZodUUID;
3274
+ couponId: z$1.ZodUUID;
3275
+ amountMinor: z$1.ZodNumber;
3276
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
3277
+ replace: "replace";
3278
+ stack_native: "stack_native";
3279
+ }>>;
3280
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3281
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3282
+ type: z$1.ZodLiteral<"percent">;
3283
+ percentOff: z$1.ZodNumber;
3284
+ }, z$1.core.$strict>, z$1.ZodObject<{
3285
+ type: z$1.ZodLiteral<"amount">;
3286
+ amountOffMinor: z$1.ZodNumber;
3287
+ currency: z$1.ZodString;
3288
+ }, z$1.core.$strict>], "type">;
3289
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3290
+ type: z$1.ZodLiteral<"once">;
3291
+ }, z$1.core.$strict>, z$1.ZodObject<{
3292
+ type: z$1.ZodLiteral<"forever">;
3293
+ }, z$1.core.$strict>, z$1.ZodObject<{
3294
+ type: z$1.ZodLiteral<"repeating">;
3295
+ months: z$1.ZodNumber;
3296
+ }, z$1.core.$strict>], "type">;
3297
+ }, z$1.core.$strict>>>;
3160
3298
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3161
3299
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3162
3300
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -3347,6 +3485,32 @@ declare const apiOperations: {
3347
3485
  debitMinor: z$1.ZodNumber;
3348
3486
  totalMinor: z$1.ZodNumber;
3349
3487
  discountMinor: z$1.ZodNumber;
3488
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
3489
+ grantId: z$1.ZodUUID;
3490
+ couponId: z$1.ZodUUID;
3491
+ amountMinor: z$1.ZodNumber;
3492
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
3493
+ replace: "replace";
3494
+ stack_native: "stack_native";
3495
+ }>>;
3496
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3497
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3498
+ type: z$1.ZodLiteral<"percent">;
3499
+ percentOff: z$1.ZodNumber;
3500
+ }, z$1.core.$strict>, z$1.ZodObject<{
3501
+ type: z$1.ZodLiteral<"amount">;
3502
+ amountOffMinor: z$1.ZodNumber;
3503
+ currency: z$1.ZodString;
3504
+ }, z$1.core.$strict>], "type">;
3505
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3506
+ type: z$1.ZodLiteral<"once">;
3507
+ }, z$1.core.$strict>, z$1.ZodObject<{
3508
+ type: z$1.ZodLiteral<"forever">;
3509
+ }, z$1.core.$strict>, z$1.ZodObject<{
3510
+ type: z$1.ZodLiteral<"repeating">;
3511
+ months: z$1.ZodNumber;
3512
+ }, z$1.core.$strict>], "type">;
3513
+ }, z$1.core.$strict>>>;
3350
3514
  taxMinor: z$1.ZodNumber;
3351
3515
  proration: z$1.ZodEnum<{
3352
3516
  none: "none";
@@ -3634,14 +3798,70 @@ declare const apiOperations: {
3634
3798
  }>;
3635
3799
  intervalCount: z$1.ZodNumber;
3636
3800
  amountMinor: z$1.ZodNumber;
3801
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
3637
3802
  }, z$1.core.$strict>>;
3638
3803
  trial: z$1.ZodNullable<z$1.ZodObject<{
3639
3804
  days: z$1.ZodNumber;
3640
3805
  cardRequired: z$1.ZodBoolean;
3641
3806
  }, z$1.core.$strict>>;
3807
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
3808
+ grantId: z$1.ZodUUID;
3809
+ couponId: z$1.ZodUUID;
3810
+ amountMinor: z$1.ZodNumber;
3811
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
3812
+ replace: "replace";
3813
+ stack_native: "stack_native";
3814
+ }>>;
3815
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3816
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3817
+ type: z$1.ZodLiteral<"percent">;
3818
+ percentOff: z$1.ZodNumber;
3819
+ }, z$1.core.$strict>, z$1.ZodObject<{
3820
+ type: z$1.ZodLiteral<"amount">;
3821
+ amountOffMinor: z$1.ZodNumber;
3822
+ currency: z$1.ZodString;
3823
+ }, z$1.core.$strict>], "type">;
3824
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3825
+ type: z$1.ZodLiteral<"once">;
3826
+ }, z$1.core.$strict>, z$1.ZodObject<{
3827
+ type: z$1.ZodLiteral<"forever">;
3828
+ }, z$1.core.$strict>, z$1.ZodObject<{
3829
+ type: z$1.ZodLiteral<"repeating">;
3830
+ months: z$1.ZodNumber;
3831
+ }, z$1.core.$strict>], "type">;
3832
+ }, z$1.core.$strict>>>;
3833
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
3834
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3642
3835
  }, z$1.core.$strict>>;
3643
3836
  subtotalMinor: z$1.ZodNumber;
3644
3837
  discountMinor: z$1.ZodNumber;
3838
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3839
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
3840
+ grantId: z$1.ZodUUID;
3841
+ couponId: z$1.ZodUUID;
3842
+ amountMinor: z$1.ZodNumber;
3843
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
3844
+ replace: "replace";
3845
+ stack_native: "stack_native";
3846
+ }>>;
3847
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
3848
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3849
+ type: z$1.ZodLiteral<"percent">;
3850
+ percentOff: z$1.ZodNumber;
3851
+ }, z$1.core.$strict>, z$1.ZodObject<{
3852
+ type: z$1.ZodLiteral<"amount">;
3853
+ amountOffMinor: z$1.ZodNumber;
3854
+ currency: z$1.ZodString;
3855
+ }, z$1.core.$strict>], "type">;
3856
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3857
+ type: z$1.ZodLiteral<"once">;
3858
+ }, z$1.core.$strict>, z$1.ZodObject<{
3859
+ type: z$1.ZodLiteral<"forever">;
3860
+ }, z$1.core.$strict>, z$1.ZodObject<{
3861
+ type: z$1.ZodLiteral<"repeating">;
3862
+ months: z$1.ZodNumber;
3863
+ }, z$1.core.$strict>], "type">;
3864
+ }, z$1.core.$strict>>>;
3645
3865
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3646
3866
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3647
3867
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -3832,6 +4052,32 @@ declare const apiOperations: {
3832
4052
  debitMinor: z$1.ZodNumber;
3833
4053
  totalMinor: z$1.ZodNumber;
3834
4054
  discountMinor: z$1.ZodNumber;
4055
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4056
+ grantId: z$1.ZodUUID;
4057
+ couponId: z$1.ZodUUID;
4058
+ amountMinor: z$1.ZodNumber;
4059
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
4060
+ replace: "replace";
4061
+ stack_native: "stack_native";
4062
+ }>>;
4063
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4064
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4065
+ type: z$1.ZodLiteral<"percent">;
4066
+ percentOff: z$1.ZodNumber;
4067
+ }, z$1.core.$strict>, z$1.ZodObject<{
4068
+ type: z$1.ZodLiteral<"amount">;
4069
+ amountOffMinor: z$1.ZodNumber;
4070
+ currency: z$1.ZodString;
4071
+ }, z$1.core.$strict>], "type">;
4072
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4073
+ type: z$1.ZodLiteral<"once">;
4074
+ }, z$1.core.$strict>, z$1.ZodObject<{
4075
+ type: z$1.ZodLiteral<"forever">;
4076
+ }, z$1.core.$strict>, z$1.ZodObject<{
4077
+ type: z$1.ZodLiteral<"repeating">;
4078
+ months: z$1.ZodNumber;
4079
+ }, z$1.core.$strict>], "type">;
4080
+ }, z$1.core.$strict>>>;
3835
4081
  taxMinor: z$1.ZodNumber;
3836
4082
  proration: z$1.ZodEnum<{
3837
4083
  none: "none";
@@ -4119,14 +4365,70 @@ declare const apiOperations: {
4119
4365
  }>;
4120
4366
  intervalCount: z$1.ZodNumber;
4121
4367
  amountMinor: z$1.ZodNumber;
4368
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
4122
4369
  }, z$1.core.$strict>>;
4123
4370
  trial: z$1.ZodNullable<z$1.ZodObject<{
4124
4371
  days: z$1.ZodNumber;
4125
4372
  cardRequired: z$1.ZodBoolean;
4126
4373
  }, z$1.core.$strict>>;
4374
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4375
+ grantId: z$1.ZodUUID;
4376
+ couponId: z$1.ZodUUID;
4377
+ amountMinor: z$1.ZodNumber;
4378
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
4379
+ replace: "replace";
4380
+ stack_native: "stack_native";
4381
+ }>>;
4382
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4383
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4384
+ type: z$1.ZodLiteral<"percent">;
4385
+ percentOff: z$1.ZodNumber;
4386
+ }, z$1.core.$strict>, z$1.ZodObject<{
4387
+ type: z$1.ZodLiteral<"amount">;
4388
+ amountOffMinor: z$1.ZodNumber;
4389
+ currency: z$1.ZodString;
4390
+ }, z$1.core.$strict>], "type">;
4391
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4392
+ type: z$1.ZodLiteral<"once">;
4393
+ }, z$1.core.$strict>, z$1.ZodObject<{
4394
+ type: z$1.ZodLiteral<"forever">;
4395
+ }, z$1.core.$strict>, z$1.ZodObject<{
4396
+ type: z$1.ZodLiteral<"repeating">;
4397
+ months: z$1.ZodNumber;
4398
+ }, z$1.core.$strict>], "type">;
4399
+ }, z$1.core.$strict>>>;
4400
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
4401
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
4127
4402
  }, z$1.core.$strict>>;
4128
4403
  subtotalMinor: z$1.ZodNumber;
4129
4404
  discountMinor: z$1.ZodNumber;
4405
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
4406
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4407
+ grantId: z$1.ZodUUID;
4408
+ couponId: z$1.ZodUUID;
4409
+ amountMinor: z$1.ZodNumber;
4410
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
4411
+ replace: "replace";
4412
+ stack_native: "stack_native";
4413
+ }>>;
4414
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4415
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4416
+ type: z$1.ZodLiteral<"percent">;
4417
+ percentOff: z$1.ZodNumber;
4418
+ }, z$1.core.$strict>, z$1.ZodObject<{
4419
+ type: z$1.ZodLiteral<"amount">;
4420
+ amountOffMinor: z$1.ZodNumber;
4421
+ currency: z$1.ZodString;
4422
+ }, z$1.core.$strict>], "type">;
4423
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4424
+ type: z$1.ZodLiteral<"once">;
4425
+ }, z$1.core.$strict>, z$1.ZodObject<{
4426
+ type: z$1.ZodLiteral<"forever">;
4427
+ }, z$1.core.$strict>, z$1.ZodObject<{
4428
+ type: z$1.ZodLiteral<"repeating">;
4429
+ months: z$1.ZodNumber;
4430
+ }, z$1.core.$strict>], "type">;
4431
+ }, z$1.core.$strict>>>;
4130
4432
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
4131
4433
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
4132
4434
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -4317,6 +4619,32 @@ declare const apiOperations: {
4317
4619
  debitMinor: z$1.ZodNumber;
4318
4620
  totalMinor: z$1.ZodNumber;
4319
4621
  discountMinor: z$1.ZodNumber;
4622
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
4623
+ grantId: z$1.ZodUUID;
4624
+ couponId: z$1.ZodUUID;
4625
+ amountMinor: z$1.ZodNumber;
4626
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
4627
+ replace: "replace";
4628
+ stack_native: "stack_native";
4629
+ }>>;
4630
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
4631
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4632
+ type: z$1.ZodLiteral<"percent">;
4633
+ percentOff: z$1.ZodNumber;
4634
+ }, z$1.core.$strict>, z$1.ZodObject<{
4635
+ type: z$1.ZodLiteral<"amount">;
4636
+ amountOffMinor: z$1.ZodNumber;
4637
+ currency: z$1.ZodString;
4638
+ }, z$1.core.$strict>], "type">;
4639
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4640
+ type: z$1.ZodLiteral<"once">;
4641
+ }, z$1.core.$strict>, z$1.ZodObject<{
4642
+ type: z$1.ZodLiteral<"forever">;
4643
+ }, z$1.core.$strict>, z$1.ZodObject<{
4644
+ type: z$1.ZodLiteral<"repeating">;
4645
+ months: z$1.ZodNumber;
4646
+ }, z$1.core.$strict>], "type">;
4647
+ }, z$1.core.$strict>>>;
4320
4648
  taxMinor: z$1.ZodNumber;
4321
4649
  proration: z$1.ZodEnum<{
4322
4650
  none: "none";
@@ -5066,14 +5394,70 @@ declare const apiOperations: {
5066
5394
  }>;
5067
5395
  intervalCount: z$1.ZodNumber;
5068
5396
  amountMinor: z$1.ZodNumber;
5397
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
5069
5398
  }, z$1.core.$strict>>;
5070
5399
  trial: z$1.ZodNullable<z$1.ZodObject<{
5071
5400
  days: z$1.ZodNumber;
5072
5401
  cardRequired: z$1.ZodBoolean;
5073
5402
  }, z$1.core.$strict>>;
5403
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
5404
+ grantId: z$1.ZodUUID;
5405
+ couponId: z$1.ZodUUID;
5406
+ amountMinor: z$1.ZodNumber;
5407
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
5408
+ replace: "replace";
5409
+ stack_native: "stack_native";
5410
+ }>>;
5411
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
5412
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5413
+ type: z$1.ZodLiteral<"percent">;
5414
+ percentOff: z$1.ZodNumber;
5415
+ }, z$1.core.$strict>, z$1.ZodObject<{
5416
+ type: z$1.ZodLiteral<"amount">;
5417
+ amountOffMinor: z$1.ZodNumber;
5418
+ currency: z$1.ZodString;
5419
+ }, z$1.core.$strict>], "type">;
5420
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5421
+ type: z$1.ZodLiteral<"once">;
5422
+ }, z$1.core.$strict>, z$1.ZodObject<{
5423
+ type: z$1.ZodLiteral<"forever">;
5424
+ }, z$1.core.$strict>, z$1.ZodObject<{
5425
+ type: z$1.ZodLiteral<"repeating">;
5426
+ months: z$1.ZodNumber;
5427
+ }, z$1.core.$strict>], "type">;
5428
+ }, z$1.core.$strict>>>;
5429
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
5430
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
5074
5431
  }, z$1.core.$strict>>;
5075
5432
  subtotalMinor: z$1.ZodNumber;
5076
5433
  discountMinor: z$1.ZodNumber;
5434
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
5435
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
5436
+ grantId: z$1.ZodUUID;
5437
+ couponId: z$1.ZodUUID;
5438
+ amountMinor: z$1.ZodNumber;
5439
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
5440
+ replace: "replace";
5441
+ stack_native: "stack_native";
5442
+ }>>;
5443
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
5444
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5445
+ type: z$1.ZodLiteral<"percent">;
5446
+ percentOff: z$1.ZodNumber;
5447
+ }, z$1.core.$strict>, z$1.ZodObject<{
5448
+ type: z$1.ZodLiteral<"amount">;
5449
+ amountOffMinor: z$1.ZodNumber;
5450
+ currency: z$1.ZodString;
5451
+ }, z$1.core.$strict>], "type">;
5452
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5453
+ type: z$1.ZodLiteral<"once">;
5454
+ }, z$1.core.$strict>, z$1.ZodObject<{
5455
+ type: z$1.ZodLiteral<"forever">;
5456
+ }, z$1.core.$strict>, z$1.ZodObject<{
5457
+ type: z$1.ZodLiteral<"repeating">;
5458
+ months: z$1.ZodNumber;
5459
+ }, z$1.core.$strict>], "type">;
5460
+ }, z$1.core.$strict>>>;
5077
5461
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
5078
5462
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
5079
5463
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -5317,6 +5701,7 @@ declare const apiOperations: {
5317
5701
  }, z$1.core.$strict>>;
5318
5702
  }, z$1.core.$strict>>;
5319
5703
  catalogAmountMinor: z$1.ZodNumber;
5704
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
5320
5705
  automaticTax: z$1.ZodBoolean;
5321
5706
  execution: z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodObject<{
5322
5707
  invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
@@ -5439,10 +5824,16 @@ declare const apiOperations: {
5439
5824
  }, z$1.core.$strict>>;
5440
5825
  }, z$1.core.$strict>>;
5441
5826
  catalogAmountMinor: z$1.ZodNumber;
5827
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
5442
5828
  discount: z$1.ZodNullable<z$1.ZodObject<{
5443
5829
  grantId: z$1.ZodUUID;
5444
5830
  couponId: z$1.ZodUUID;
5445
5831
  amountMinor: z$1.ZodNumber;
5832
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
5833
+ replace: "replace";
5834
+ stack_native: "stack_native";
5835
+ }>>;
5836
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
5446
5837
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5447
5838
  type: z$1.ZodLiteral<"percent">;
5448
5839
  percentOff: z$1.ZodNumber;
@@ -5475,6 +5866,7 @@ declare const apiOperations: {
5475
5866
  }, z$1.core.$strict>;
5476
5867
  };
5477
5868
  readonly recordMerchantEvent: {
5869
+ readonly replay: "immutable_event";
5478
5870
  readonly method: "POST";
5479
5871
  readonly path: "merchant/events/record";
5480
5872
  readonly permission: "billing:write";
@@ -6141,10 +6533,16 @@ declare const apiOperations: {
6141
6533
  }, z$1.core.$strict>>;
6142
6534
  }, z$1.core.$strict>>;
6143
6535
  catalogAmountMinor: z$1.ZodNumber;
6536
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6144
6537
  discount: z$1.ZodNullable<z$1.ZodObject<{
6145
6538
  grantId: z$1.ZodUUID;
6146
6539
  couponId: z$1.ZodUUID;
6147
6540
  amountMinor: z$1.ZodNumber;
6541
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
6542
+ replace: "replace";
6543
+ stack_native: "stack_native";
6544
+ }>>;
6545
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6148
6546
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6149
6547
  type: z$1.ZodLiteral<"percent">;
6150
6548
  percentOff: z$1.ZodNumber;
@@ -6438,14 +6836,70 @@ declare const apiOperations: {
6438
6836
  }>;
6439
6837
  intervalCount: z$1.ZodNumber;
6440
6838
  amountMinor: z$1.ZodNumber;
6839
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
6441
6840
  }, z$1.core.$strict>>;
6442
6841
  trial: z$1.ZodNullable<z$1.ZodObject<{
6443
6842
  days: z$1.ZodNumber;
6444
6843
  cardRequired: z$1.ZodBoolean;
6445
6844
  }, z$1.core.$strict>>;
6845
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
6846
+ grantId: z$1.ZodUUID;
6847
+ couponId: z$1.ZodUUID;
6848
+ amountMinor: z$1.ZodNumber;
6849
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
6850
+ replace: "replace";
6851
+ stack_native: "stack_native";
6852
+ }>>;
6853
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6854
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6855
+ type: z$1.ZodLiteral<"percent">;
6856
+ percentOff: z$1.ZodNumber;
6857
+ }, z$1.core.$strict>, z$1.ZodObject<{
6858
+ type: z$1.ZodLiteral<"amount">;
6859
+ amountOffMinor: z$1.ZodNumber;
6860
+ currency: z$1.ZodString;
6861
+ }, z$1.core.$strict>], "type">;
6862
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6863
+ type: z$1.ZodLiteral<"once">;
6864
+ }, z$1.core.$strict>, z$1.ZodObject<{
6865
+ type: z$1.ZodLiteral<"forever">;
6866
+ }, z$1.core.$strict>, z$1.ZodObject<{
6867
+ type: z$1.ZodLiteral<"repeating">;
6868
+ months: z$1.ZodNumber;
6869
+ }, z$1.core.$strict>], "type">;
6870
+ }, z$1.core.$strict>>>;
6871
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
6872
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6446
6873
  }, z$1.core.$strict>>;
6447
6874
  subtotalMinor: z$1.ZodNumber;
6448
6875
  discountMinor: z$1.ZodNumber;
6876
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6877
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
6878
+ grantId: z$1.ZodUUID;
6879
+ couponId: z$1.ZodUUID;
6880
+ amountMinor: z$1.ZodNumber;
6881
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
6882
+ replace: "replace";
6883
+ stack_native: "stack_native";
6884
+ }>>;
6885
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6886
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6887
+ type: z$1.ZodLiteral<"percent">;
6888
+ percentOff: z$1.ZodNumber;
6889
+ }, z$1.core.$strict>, z$1.ZodObject<{
6890
+ type: z$1.ZodLiteral<"amount">;
6891
+ amountOffMinor: z$1.ZodNumber;
6892
+ currency: z$1.ZodString;
6893
+ }, z$1.core.$strict>], "type">;
6894
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6895
+ type: z$1.ZodLiteral<"once">;
6896
+ }, z$1.core.$strict>, z$1.ZodObject<{
6897
+ type: z$1.ZodLiteral<"forever">;
6898
+ }, z$1.core.$strict>, z$1.ZodObject<{
6899
+ type: z$1.ZodLiteral<"repeating">;
6900
+ months: z$1.ZodNumber;
6901
+ }, z$1.core.$strict>], "type">;
6902
+ }, z$1.core.$strict>>>;
6449
6903
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
6450
6904
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
6451
6905
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -6689,6 +7143,7 @@ declare const apiOperations: {
6689
7143
  }, z$1.core.$strict>>;
6690
7144
  }, z$1.core.$strict>>;
6691
7145
  catalogAmountMinor: z$1.ZodNumber;
7146
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6692
7147
  automaticTax: z$1.ZodBoolean;
6693
7148
  execution: z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodObject<{
6694
7149
  invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
@@ -6811,10 +7266,16 @@ declare const apiOperations: {
6811
7266
  }, z$1.core.$strict>>;
6812
7267
  }, z$1.core.$strict>>;
6813
7268
  catalogAmountMinor: z$1.ZodNumber;
7269
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6814
7270
  discount: z$1.ZodNullable<z$1.ZodObject<{
6815
7271
  grantId: z$1.ZodUUID;
6816
7272
  couponId: z$1.ZodUUID;
6817
7273
  amountMinor: z$1.ZodNumber;
7274
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
7275
+ replace: "replace";
7276
+ stack_native: "stack_native";
7277
+ }>>;
7278
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
6818
7279
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6819
7280
  type: z$1.ZodLiteral<"percent">;
6820
7281
  percentOff: z$1.ZodNumber;
@@ -7205,10 +7666,16 @@ declare const apiOperations: {
7205
7666
  }, z$1.core.$strict>>;
7206
7667
  }, z$1.core.$strict>>;
7207
7668
  catalogAmountMinor: z$1.ZodNumber;
7669
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
7208
7670
  discount: z$1.ZodNullable<z$1.ZodObject<{
7209
7671
  grantId: z$1.ZodUUID;
7210
7672
  couponId: z$1.ZodUUID;
7211
7673
  amountMinor: z$1.ZodNumber;
7674
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
7675
+ replace: "replace";
7676
+ stack_native: "stack_native";
7677
+ }>>;
7678
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7212
7679
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7213
7680
  type: z$1.ZodLiteral<"percent">;
7214
7681
  percentOff: z$1.ZodNumber;
@@ -7276,6 +7743,32 @@ declare const apiOperations: {
7276
7743
  debitMinor: z$1.ZodNumber;
7277
7744
  totalMinor: z$1.ZodNumber;
7278
7745
  discountMinor: z$1.ZodNumber;
7746
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
7747
+ grantId: z$1.ZodUUID;
7748
+ couponId: z$1.ZodUUID;
7749
+ amountMinor: z$1.ZodNumber;
7750
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
7751
+ replace: "replace";
7752
+ stack_native: "stack_native";
7753
+ }>>;
7754
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7755
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7756
+ type: z$1.ZodLiteral<"percent">;
7757
+ percentOff: z$1.ZodNumber;
7758
+ }, z$1.core.$strict>, z$1.ZodObject<{
7759
+ type: z$1.ZodLiteral<"amount">;
7760
+ amountOffMinor: z$1.ZodNumber;
7761
+ currency: z$1.ZodString;
7762
+ }, z$1.core.$strict>], "type">;
7763
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7764
+ type: z$1.ZodLiteral<"once">;
7765
+ }, z$1.core.$strict>, z$1.ZodObject<{
7766
+ type: z$1.ZodLiteral<"forever">;
7767
+ }, z$1.core.$strict>, z$1.ZodObject<{
7768
+ type: z$1.ZodLiteral<"repeating">;
7769
+ months: z$1.ZodNumber;
7770
+ }, z$1.core.$strict>], "type">;
7771
+ }, z$1.core.$strict>>>;
7279
7772
  taxMinor: z$1.ZodNumber;
7280
7773
  proration: z$1.ZodEnum<{
7281
7774
  none: "none";
@@ -7515,14 +8008,70 @@ declare const apiOperations: {
7515
8008
  }>;
7516
8009
  intervalCount: z$1.ZodNumber;
7517
8010
  amountMinor: z$1.ZodNumber;
8011
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
7518
8012
  }, z$1.core.$strict>>;
7519
8013
  trial: z$1.ZodNullable<z$1.ZodObject<{
7520
8014
  days: z$1.ZodNumber;
7521
8015
  cardRequired: z$1.ZodBoolean;
7522
8016
  }, z$1.core.$strict>>;
8017
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
8018
+ grantId: z$1.ZodUUID;
8019
+ couponId: z$1.ZodUUID;
8020
+ amountMinor: z$1.ZodNumber;
8021
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8022
+ replace: "replace";
8023
+ stack_native: "stack_native";
8024
+ }>>;
8025
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8026
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8027
+ type: z$1.ZodLiteral<"percent">;
8028
+ percentOff: z$1.ZodNumber;
8029
+ }, z$1.core.$strict>, z$1.ZodObject<{
8030
+ type: z$1.ZodLiteral<"amount">;
8031
+ amountOffMinor: z$1.ZodNumber;
8032
+ currency: z$1.ZodString;
8033
+ }, z$1.core.$strict>], "type">;
8034
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8035
+ type: z$1.ZodLiteral<"once">;
8036
+ }, z$1.core.$strict>, z$1.ZodObject<{
8037
+ type: z$1.ZodLiteral<"forever">;
8038
+ }, z$1.core.$strict>, z$1.ZodObject<{
8039
+ type: z$1.ZodLiteral<"repeating">;
8040
+ months: z$1.ZodNumber;
8041
+ }, z$1.core.$strict>], "type">;
8042
+ }, z$1.core.$strict>>>;
8043
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
8044
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
7523
8045
  }, z$1.core.$strict>>;
7524
8046
  subtotalMinor: z$1.ZodNumber;
7525
8047
  discountMinor: z$1.ZodNumber;
8048
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8049
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
8050
+ grantId: z$1.ZodUUID;
8051
+ couponId: z$1.ZodUUID;
8052
+ amountMinor: z$1.ZodNumber;
8053
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8054
+ replace: "replace";
8055
+ stack_native: "stack_native";
8056
+ }>>;
8057
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8058
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8059
+ type: z$1.ZodLiteral<"percent">;
8060
+ percentOff: z$1.ZodNumber;
8061
+ }, z$1.core.$strict>, z$1.ZodObject<{
8062
+ type: z$1.ZodLiteral<"amount">;
8063
+ amountOffMinor: z$1.ZodNumber;
8064
+ currency: z$1.ZodString;
8065
+ }, z$1.core.$strict>], "type">;
8066
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8067
+ type: z$1.ZodLiteral<"once">;
8068
+ }, z$1.core.$strict>, z$1.ZodObject<{
8069
+ type: z$1.ZodLiteral<"forever">;
8070
+ }, z$1.core.$strict>, z$1.ZodObject<{
8071
+ type: z$1.ZodLiteral<"repeating">;
8072
+ months: z$1.ZodNumber;
8073
+ }, z$1.core.$strict>], "type">;
8074
+ }, z$1.core.$strict>>>;
7526
8075
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
7527
8076
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
7528
8077
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -7548,6 +8097,7 @@ declare const apiOperations: {
7548
8097
  }, z$1.core.$strict>;
7549
8098
  };
7550
8099
  readonly readSubscriptionOperation: {
8100
+ readonly replay: "read";
7551
8101
  readonly method: "POST";
7552
8102
  readonly path: "subscriptions/operations/read";
7553
8103
  readonly permission: "billing:read";
@@ -7702,10 +8252,16 @@ declare const apiOperations: {
7702
8252
  }, z$1.core.$strict>>;
7703
8253
  }, z$1.core.$strict>>;
7704
8254
  catalogAmountMinor: z$1.ZodNumber;
8255
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
7705
8256
  discount: z$1.ZodNullable<z$1.ZodObject<{
7706
8257
  grantId: z$1.ZodUUID;
7707
8258
  couponId: z$1.ZodUUID;
7708
8259
  amountMinor: z$1.ZodNumber;
8260
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8261
+ replace: "replace";
8262
+ stack_native: "stack_native";
8263
+ }>>;
8264
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
7709
8265
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7710
8266
  type: z$1.ZodLiteral<"percent">;
7711
8267
  percentOff: z$1.ZodNumber;
@@ -7999,14 +8555,70 @@ declare const apiOperations: {
7999
8555
  }>;
8000
8556
  intervalCount: z$1.ZodNumber;
8001
8557
  amountMinor: z$1.ZodNumber;
8558
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
8002
8559
  }, z$1.core.$strict>>;
8003
8560
  trial: z$1.ZodNullable<z$1.ZodObject<{
8004
8561
  days: z$1.ZodNumber;
8005
8562
  cardRequired: z$1.ZodBoolean;
8006
8563
  }, z$1.core.$strict>>;
8564
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
8565
+ grantId: z$1.ZodUUID;
8566
+ couponId: z$1.ZodUUID;
8567
+ amountMinor: z$1.ZodNumber;
8568
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8569
+ replace: "replace";
8570
+ stack_native: "stack_native";
8571
+ }>>;
8572
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8573
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8574
+ type: z$1.ZodLiteral<"percent">;
8575
+ percentOff: z$1.ZodNumber;
8576
+ }, z$1.core.$strict>, z$1.ZodObject<{
8577
+ type: z$1.ZodLiteral<"amount">;
8578
+ amountOffMinor: z$1.ZodNumber;
8579
+ currency: z$1.ZodString;
8580
+ }, z$1.core.$strict>], "type">;
8581
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8582
+ type: z$1.ZodLiteral<"once">;
8583
+ }, z$1.core.$strict>, z$1.ZodObject<{
8584
+ type: z$1.ZodLiteral<"forever">;
8585
+ }, z$1.core.$strict>, z$1.ZodObject<{
8586
+ type: z$1.ZodLiteral<"repeating">;
8587
+ months: z$1.ZodNumber;
8588
+ }, z$1.core.$strict>], "type">;
8589
+ }, z$1.core.$strict>>>;
8590
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
8591
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8007
8592
  }, z$1.core.$strict>>;
8008
8593
  subtotalMinor: z$1.ZodNumber;
8009
8594
  discountMinor: z$1.ZodNumber;
8595
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8596
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
8597
+ grantId: z$1.ZodUUID;
8598
+ couponId: z$1.ZodUUID;
8599
+ amountMinor: z$1.ZodNumber;
8600
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8601
+ replace: "replace";
8602
+ stack_native: "stack_native";
8603
+ }>>;
8604
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8605
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8606
+ type: z$1.ZodLiteral<"percent">;
8607
+ percentOff: z$1.ZodNumber;
8608
+ }, z$1.core.$strict>, z$1.ZodObject<{
8609
+ type: z$1.ZodLiteral<"amount">;
8610
+ amountOffMinor: z$1.ZodNumber;
8611
+ currency: z$1.ZodString;
8612
+ }, z$1.core.$strict>], "type">;
8613
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8614
+ type: z$1.ZodLiteral<"once">;
8615
+ }, z$1.core.$strict>, z$1.ZodObject<{
8616
+ type: z$1.ZodLiteral<"forever">;
8617
+ }, z$1.core.$strict>, z$1.ZodObject<{
8618
+ type: z$1.ZodLiteral<"repeating">;
8619
+ months: z$1.ZodNumber;
8620
+ }, z$1.core.$strict>], "type">;
8621
+ }, z$1.core.$strict>>>;
8010
8622
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
8011
8623
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
8012
8624
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -8250,6 +8862,7 @@ declare const apiOperations: {
8250
8862
  }, z$1.core.$strict>>;
8251
8863
  }, z$1.core.$strict>>;
8252
8864
  catalogAmountMinor: z$1.ZodNumber;
8865
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8253
8866
  automaticTax: z$1.ZodBoolean;
8254
8867
  execution: z$1.ZodNullable<z$1.ZodUnion<readonly [z$1.ZodObject<{
8255
8868
  invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
@@ -8372,10 +8985,16 @@ declare const apiOperations: {
8372
8985
  }, z$1.core.$strict>>;
8373
8986
  }, z$1.core.$strict>>;
8374
8987
  catalogAmountMinor: z$1.ZodNumber;
8988
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8375
8989
  discount: z$1.ZodNullable<z$1.ZodObject<{
8376
8990
  grantId: z$1.ZodUUID;
8377
8991
  couponId: z$1.ZodUUID;
8378
8992
  amountMinor: z$1.ZodNumber;
8993
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
8994
+ replace: "replace";
8995
+ stack_native: "stack_native";
8996
+ }>>;
8997
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8379
8998
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8380
8999
  type: z$1.ZodLiteral<"percent">;
8381
9000
  percentOff: z$1.ZodNumber;
@@ -8766,10 +9385,16 @@ declare const apiOperations: {
8766
9385
  }, z$1.core.$strict>>;
8767
9386
  }, z$1.core.$strict>>;
8768
9387
  catalogAmountMinor: z$1.ZodNumber;
9388
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8769
9389
  discount: z$1.ZodNullable<z$1.ZodObject<{
8770
9390
  grantId: z$1.ZodUUID;
8771
9391
  couponId: z$1.ZodUUID;
8772
9392
  amountMinor: z$1.ZodNumber;
9393
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
9394
+ replace: "replace";
9395
+ stack_native: "stack_native";
9396
+ }>>;
9397
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
8773
9398
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8774
9399
  type: z$1.ZodLiteral<"percent">;
8775
9400
  percentOff: z$1.ZodNumber;
@@ -8837,6 +9462,32 @@ declare const apiOperations: {
8837
9462
  debitMinor: z$1.ZodNumber;
8838
9463
  totalMinor: z$1.ZodNumber;
8839
9464
  discountMinor: z$1.ZodNumber;
9465
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
9466
+ grantId: z$1.ZodUUID;
9467
+ couponId: z$1.ZodUUID;
9468
+ amountMinor: z$1.ZodNumber;
9469
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
9470
+ replace: "replace";
9471
+ stack_native: "stack_native";
9472
+ }>>;
9473
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9474
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9475
+ type: z$1.ZodLiteral<"percent">;
9476
+ percentOff: z$1.ZodNumber;
9477
+ }, z$1.core.$strict>, z$1.ZodObject<{
9478
+ type: z$1.ZodLiteral<"amount">;
9479
+ amountOffMinor: z$1.ZodNumber;
9480
+ currency: z$1.ZodString;
9481
+ }, z$1.core.$strict>], "type">;
9482
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9483
+ type: z$1.ZodLiteral<"once">;
9484
+ }, z$1.core.$strict>, z$1.ZodObject<{
9485
+ type: z$1.ZodLiteral<"forever">;
9486
+ }, z$1.core.$strict>, z$1.ZodObject<{
9487
+ type: z$1.ZodLiteral<"repeating">;
9488
+ months: z$1.ZodNumber;
9489
+ }, z$1.core.$strict>], "type">;
9490
+ }, z$1.core.$strict>>>;
8840
9491
  taxMinor: z$1.ZodNumber;
8841
9492
  proration: z$1.ZodEnum<{
8842
9493
  none: "none";
@@ -9076,17 +9727,73 @@ declare const apiOperations: {
9076
9727
  }>;
9077
9728
  intervalCount: z$1.ZodNumber;
9078
9729
  amountMinor: z$1.ZodNumber;
9730
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
9079
9731
  }, z$1.core.$strict>>;
9080
9732
  trial: z$1.ZodNullable<z$1.ZodObject<{
9081
9733
  days: z$1.ZodNumber;
9082
9734
  cardRequired: z$1.ZodBoolean;
9083
9735
  }, z$1.core.$strict>>;
9084
- }, z$1.core.$strict>>;
9085
- subtotalMinor: z$1.ZodNumber;
9086
- discountMinor: z$1.ZodNumber;
9087
- taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
9088
- totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
9089
- effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
9736
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
9737
+ grantId: z$1.ZodUUID;
9738
+ couponId: z$1.ZodUUID;
9739
+ amountMinor: z$1.ZodNumber;
9740
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
9741
+ replace: "replace";
9742
+ stack_native: "stack_native";
9743
+ }>>;
9744
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9745
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9746
+ type: z$1.ZodLiteral<"percent">;
9747
+ percentOff: z$1.ZodNumber;
9748
+ }, z$1.core.$strict>, z$1.ZodObject<{
9749
+ type: z$1.ZodLiteral<"amount">;
9750
+ amountOffMinor: z$1.ZodNumber;
9751
+ currency: z$1.ZodString;
9752
+ }, z$1.core.$strict>], "type">;
9753
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9754
+ type: z$1.ZodLiteral<"once">;
9755
+ }, z$1.core.$strict>, z$1.ZodObject<{
9756
+ type: z$1.ZodLiteral<"forever">;
9757
+ }, z$1.core.$strict>, z$1.ZodObject<{
9758
+ type: z$1.ZodLiteral<"repeating">;
9759
+ months: z$1.ZodNumber;
9760
+ }, z$1.core.$strict>], "type">;
9761
+ }, z$1.core.$strict>>>;
9762
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
9763
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
9764
+ }, z$1.core.$strict>>;
9765
+ subtotalMinor: z$1.ZodNumber;
9766
+ discountMinor: z$1.ZodNumber;
9767
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
9768
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
9769
+ grantId: z$1.ZodUUID;
9770
+ couponId: z$1.ZodUUID;
9771
+ amountMinor: z$1.ZodNumber;
9772
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
9773
+ replace: "replace";
9774
+ stack_native: "stack_native";
9775
+ }>>;
9776
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
9777
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9778
+ type: z$1.ZodLiteral<"percent">;
9779
+ percentOff: z$1.ZodNumber;
9780
+ }, z$1.core.$strict>, z$1.ZodObject<{
9781
+ type: z$1.ZodLiteral<"amount">;
9782
+ amountOffMinor: z$1.ZodNumber;
9783
+ currency: z$1.ZodString;
9784
+ }, z$1.core.$strict>], "type">;
9785
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9786
+ type: z$1.ZodLiteral<"once">;
9787
+ }, z$1.core.$strict>, z$1.ZodObject<{
9788
+ type: z$1.ZodLiteral<"forever">;
9789
+ }, z$1.core.$strict>, z$1.ZodObject<{
9790
+ type: z$1.ZodLiteral<"repeating">;
9791
+ months: z$1.ZodNumber;
9792
+ }, z$1.core.$strict>], "type">;
9793
+ }, z$1.core.$strict>>>;
9794
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
9795
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
9796
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
9090
9797
  expectedEffects: z$1.ZodArray<z$1.ZodObject<{
9091
9798
  reference: z$1.ZodString;
9092
9799
  kind: z$1.ZodEnum<{
@@ -9115,6 +9822,7 @@ declare const apiOperations: {
9115
9822
  readonly audience: "mixed";
9116
9823
  readonly request: z$1.ZodObject<{
9117
9824
  requestId: z$1.ZodUUID;
9825
+ offerId: z$1.ZodOptional<z$1.ZodUUID>;
9118
9826
  invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
9119
9827
  membershipId: z$1.ZodUUID;
9120
9828
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
@@ -9306,14 +10014,70 @@ declare const apiOperations: {
9306
10014
  }>;
9307
10015
  intervalCount: z$1.ZodNumber;
9308
10016
  amountMinor: z$1.ZodNumber;
10017
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
9309
10018
  }, z$1.core.$strict>>;
9310
10019
  trial: z$1.ZodNullable<z$1.ZodObject<{
9311
10020
  days: z$1.ZodNumber;
9312
10021
  cardRequired: z$1.ZodBoolean;
9313
10022
  }, z$1.core.$strict>>;
10023
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
10024
+ grantId: z$1.ZodUUID;
10025
+ couponId: z$1.ZodUUID;
10026
+ amountMinor: z$1.ZodNumber;
10027
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
10028
+ replace: "replace";
10029
+ stack_native: "stack_native";
10030
+ }>>;
10031
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10032
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10033
+ type: z$1.ZodLiteral<"percent">;
10034
+ percentOff: z$1.ZodNumber;
10035
+ }, z$1.core.$strict>, z$1.ZodObject<{
10036
+ type: z$1.ZodLiteral<"amount">;
10037
+ amountOffMinor: z$1.ZodNumber;
10038
+ currency: z$1.ZodString;
10039
+ }, z$1.core.$strict>], "type">;
10040
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10041
+ type: z$1.ZodLiteral<"once">;
10042
+ }, z$1.core.$strict>, z$1.ZodObject<{
10043
+ type: z$1.ZodLiteral<"forever">;
10044
+ }, z$1.core.$strict>, z$1.ZodObject<{
10045
+ type: z$1.ZodLiteral<"repeating">;
10046
+ months: z$1.ZodNumber;
10047
+ }, z$1.core.$strict>], "type">;
10048
+ }, z$1.core.$strict>>>;
10049
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
10050
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
9314
10051
  }, z$1.core.$strict>>;
9315
10052
  subtotalMinor: z$1.ZodNumber;
9316
10053
  discountMinor: z$1.ZodNumber;
10054
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
10055
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
10056
+ grantId: z$1.ZodUUID;
10057
+ couponId: z$1.ZodUUID;
10058
+ amountMinor: z$1.ZodNumber;
10059
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
10060
+ replace: "replace";
10061
+ stack_native: "stack_native";
10062
+ }>>;
10063
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10064
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10065
+ type: z$1.ZodLiteral<"percent">;
10066
+ percentOff: z$1.ZodNumber;
10067
+ }, z$1.core.$strict>, z$1.ZodObject<{
10068
+ type: z$1.ZodLiteral<"amount">;
10069
+ amountOffMinor: z$1.ZodNumber;
10070
+ currency: z$1.ZodString;
10071
+ }, z$1.core.$strict>], "type">;
10072
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10073
+ type: z$1.ZodLiteral<"once">;
10074
+ }, z$1.core.$strict>, z$1.ZodObject<{
10075
+ type: z$1.ZodLiteral<"forever">;
10076
+ }, z$1.core.$strict>, z$1.ZodObject<{
10077
+ type: z$1.ZodLiteral<"repeating">;
10078
+ months: z$1.ZodNumber;
10079
+ }, z$1.core.$strict>], "type">;
10080
+ }, z$1.core.$strict>>>;
9317
10081
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
9318
10082
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
9319
10083
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -9504,6 +10268,32 @@ declare const apiOperations: {
9504
10268
  debitMinor: z$1.ZodNumber;
9505
10269
  totalMinor: z$1.ZodNumber;
9506
10270
  discountMinor: z$1.ZodNumber;
10271
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
10272
+ grantId: z$1.ZodUUID;
10273
+ couponId: z$1.ZodUUID;
10274
+ amountMinor: z$1.ZodNumber;
10275
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
10276
+ replace: "replace";
10277
+ stack_native: "stack_native";
10278
+ }>>;
10279
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10280
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10281
+ type: z$1.ZodLiteral<"percent">;
10282
+ percentOff: z$1.ZodNumber;
10283
+ }, z$1.core.$strict>, z$1.ZodObject<{
10284
+ type: z$1.ZodLiteral<"amount">;
10285
+ amountOffMinor: z$1.ZodNumber;
10286
+ currency: z$1.ZodString;
10287
+ }, z$1.core.$strict>], "type">;
10288
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10289
+ type: z$1.ZodLiteral<"once">;
10290
+ }, z$1.core.$strict>, z$1.ZodObject<{
10291
+ type: z$1.ZodLiteral<"forever">;
10292
+ }, z$1.core.$strict>, z$1.ZodObject<{
10293
+ type: z$1.ZodLiteral<"repeating">;
10294
+ months: z$1.ZodNumber;
10295
+ }, z$1.core.$strict>], "type">;
10296
+ }, z$1.core.$strict>>>;
9507
10297
  taxMinor: z$1.ZodNumber;
9508
10298
  proration: z$1.ZodEnum<{
9509
10299
  none: "none";
@@ -9811,6 +10601,32 @@ declare const apiOperations: {
9811
10601
  debitMinor: z$1.ZodNumber;
9812
10602
  totalMinor: z$1.ZodNumber;
9813
10603
  discountMinor: z$1.ZodNumber;
10604
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
10605
+ grantId: z$1.ZodUUID;
10606
+ couponId: z$1.ZodUUID;
10607
+ amountMinor: z$1.ZodNumber;
10608
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
10609
+ replace: "replace";
10610
+ stack_native: "stack_native";
10611
+ }>>;
10612
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10613
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10614
+ type: z$1.ZodLiteral<"percent">;
10615
+ percentOff: z$1.ZodNumber;
10616
+ }, z$1.core.$strict>, z$1.ZodObject<{
10617
+ type: z$1.ZodLiteral<"amount">;
10618
+ amountOffMinor: z$1.ZodNumber;
10619
+ currency: z$1.ZodString;
10620
+ }, z$1.core.$strict>], "type">;
10621
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10622
+ type: z$1.ZodLiteral<"once">;
10623
+ }, z$1.core.$strict>, z$1.ZodObject<{
10624
+ type: z$1.ZodLiteral<"forever">;
10625
+ }, z$1.core.$strict>, z$1.ZodObject<{
10626
+ type: z$1.ZodLiteral<"repeating">;
10627
+ months: z$1.ZodNumber;
10628
+ }, z$1.core.$strict>], "type">;
10629
+ }, z$1.core.$strict>>>;
9814
10630
  taxMinor: z$1.ZodNumber;
9815
10631
  proration: z$1.ZodEnum<{
9816
10632
  none: "none";
@@ -10340,14 +11156,70 @@ declare const apiOperations: {
10340
11156
  }>;
10341
11157
  intervalCount: z$1.ZodNumber;
10342
11158
  amountMinor: z$1.ZodNumber;
11159
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
10343
11160
  }, z$1.core.$strict>>;
10344
11161
  trial: z$1.ZodNullable<z$1.ZodObject<{
10345
11162
  days: z$1.ZodNumber;
10346
11163
  cardRequired: z$1.ZodBoolean;
10347
11164
  }, z$1.core.$strict>>;
11165
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11166
+ grantId: z$1.ZodUUID;
11167
+ couponId: z$1.ZodUUID;
11168
+ amountMinor: z$1.ZodNumber;
11169
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11170
+ replace: "replace";
11171
+ stack_native: "stack_native";
11172
+ }>>;
11173
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11174
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11175
+ type: z$1.ZodLiteral<"percent">;
11176
+ percentOff: z$1.ZodNumber;
11177
+ }, z$1.core.$strict>, z$1.ZodObject<{
11178
+ type: z$1.ZodLiteral<"amount">;
11179
+ amountOffMinor: z$1.ZodNumber;
11180
+ currency: z$1.ZodString;
11181
+ }, z$1.core.$strict>], "type">;
11182
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11183
+ type: z$1.ZodLiteral<"once">;
11184
+ }, z$1.core.$strict>, z$1.ZodObject<{
11185
+ type: z$1.ZodLiteral<"forever">;
11186
+ }, z$1.core.$strict>, z$1.ZodObject<{
11187
+ type: z$1.ZodLiteral<"repeating">;
11188
+ months: z$1.ZodNumber;
11189
+ }, z$1.core.$strict>], "type">;
11190
+ }, z$1.core.$strict>>>;
11191
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
11192
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
10348
11193
  }, z$1.core.$strict>>;
10349
11194
  subtotalMinor: z$1.ZodNumber;
10350
11195
  discountMinor: z$1.ZodNumber;
11196
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11197
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11198
+ grantId: z$1.ZodUUID;
11199
+ couponId: z$1.ZodUUID;
11200
+ amountMinor: z$1.ZodNumber;
11201
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11202
+ replace: "replace";
11203
+ stack_native: "stack_native";
11204
+ }>>;
11205
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11206
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11207
+ type: z$1.ZodLiteral<"percent">;
11208
+ percentOff: z$1.ZodNumber;
11209
+ }, z$1.core.$strict>, z$1.ZodObject<{
11210
+ type: z$1.ZodLiteral<"amount">;
11211
+ amountOffMinor: z$1.ZodNumber;
11212
+ currency: z$1.ZodString;
11213
+ }, z$1.core.$strict>], "type">;
11214
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11215
+ type: z$1.ZodLiteral<"once">;
11216
+ }, z$1.core.$strict>, z$1.ZodObject<{
11217
+ type: z$1.ZodLiteral<"forever">;
11218
+ }, z$1.core.$strict>, z$1.ZodObject<{
11219
+ type: z$1.ZodLiteral<"repeating">;
11220
+ months: z$1.ZodNumber;
11221
+ }, z$1.core.$strict>], "type">;
11222
+ }, z$1.core.$strict>>>;
10351
11223
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
10352
11224
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
10353
11225
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -10538,6 +11410,32 @@ declare const apiOperations: {
10538
11410
  debitMinor: z$1.ZodNumber;
10539
11411
  totalMinor: z$1.ZodNumber;
10540
11412
  discountMinor: z$1.ZodNumber;
11413
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11414
+ grantId: z$1.ZodUUID;
11415
+ couponId: z$1.ZodUUID;
11416
+ amountMinor: z$1.ZodNumber;
11417
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11418
+ replace: "replace";
11419
+ stack_native: "stack_native";
11420
+ }>>;
11421
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11422
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11423
+ type: z$1.ZodLiteral<"percent">;
11424
+ percentOff: z$1.ZodNumber;
11425
+ }, z$1.core.$strict>, z$1.ZodObject<{
11426
+ type: z$1.ZodLiteral<"amount">;
11427
+ amountOffMinor: z$1.ZodNumber;
11428
+ currency: z$1.ZodString;
11429
+ }, z$1.core.$strict>], "type">;
11430
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11431
+ type: z$1.ZodLiteral<"once">;
11432
+ }, z$1.core.$strict>, z$1.ZodObject<{
11433
+ type: z$1.ZodLiteral<"forever">;
11434
+ }, z$1.core.$strict>, z$1.ZodObject<{
11435
+ type: z$1.ZodLiteral<"repeating">;
11436
+ months: z$1.ZodNumber;
11437
+ }, z$1.core.$strict>], "type">;
11438
+ }, z$1.core.$strict>>>;
10541
11439
  taxMinor: z$1.ZodNumber;
10542
11440
  proration: z$1.ZodEnum<{
10543
11441
  none: "none";
@@ -10668,10 +11566,16 @@ declare const apiOperations: {
10668
11566
  }, z$1.core.$strict>>;
10669
11567
  }, z$1.core.$strict>>;
10670
11568
  catalogAmountMinor: z$1.ZodNumber;
11569
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
10671
11570
  discount: z$1.ZodNullable<z$1.ZodObject<{
10672
11571
  grantId: z$1.ZodUUID;
10673
11572
  couponId: z$1.ZodUUID;
10674
11573
  amountMinor: z$1.ZodNumber;
11574
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11575
+ replace: "replace";
11576
+ stack_native: "stack_native";
11577
+ }>>;
11578
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
10675
11579
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10676
11580
  type: z$1.ZodLiteral<"percent">;
10677
11581
  percentOff: z$1.ZodNumber;
@@ -10739,6 +11643,32 @@ declare const apiOperations: {
10739
11643
  debitMinor: z$1.ZodNumber;
10740
11644
  totalMinor: z$1.ZodNumber;
10741
11645
  discountMinor: z$1.ZodNumber;
11646
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11647
+ grantId: z$1.ZodUUID;
11648
+ couponId: z$1.ZodUUID;
11649
+ amountMinor: z$1.ZodNumber;
11650
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11651
+ replace: "replace";
11652
+ stack_native: "stack_native";
11653
+ }>>;
11654
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11655
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11656
+ type: z$1.ZodLiteral<"percent">;
11657
+ percentOff: z$1.ZodNumber;
11658
+ }, z$1.core.$strict>, z$1.ZodObject<{
11659
+ type: z$1.ZodLiteral<"amount">;
11660
+ amountOffMinor: z$1.ZodNumber;
11661
+ currency: z$1.ZodString;
11662
+ }, z$1.core.$strict>], "type">;
11663
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11664
+ type: z$1.ZodLiteral<"once">;
11665
+ }, z$1.core.$strict>, z$1.ZodObject<{
11666
+ type: z$1.ZodLiteral<"forever">;
11667
+ }, z$1.core.$strict>, z$1.ZodObject<{
11668
+ type: z$1.ZodLiteral<"repeating">;
11669
+ months: z$1.ZodNumber;
11670
+ }, z$1.core.$strict>], "type">;
11671
+ }, z$1.core.$strict>>>;
10742
11672
  taxMinor: z$1.ZodNumber;
10743
11673
  proration: z$1.ZodEnum<{
10744
11674
  none: "none";
@@ -10978,14 +11908,70 @@ declare const apiOperations: {
10978
11908
  }>;
10979
11909
  intervalCount: z$1.ZodNumber;
10980
11910
  amountMinor: z$1.ZodNumber;
11911
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
10981
11912
  }, z$1.core.$strict>>;
10982
11913
  trial: z$1.ZodNullable<z$1.ZodObject<{
10983
11914
  days: z$1.ZodNumber;
10984
11915
  cardRequired: z$1.ZodBoolean;
10985
11916
  }, z$1.core.$strict>>;
11917
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11918
+ grantId: z$1.ZodUUID;
11919
+ couponId: z$1.ZodUUID;
11920
+ amountMinor: z$1.ZodNumber;
11921
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11922
+ replace: "replace";
11923
+ stack_native: "stack_native";
11924
+ }>>;
11925
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11926
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11927
+ type: z$1.ZodLiteral<"percent">;
11928
+ percentOff: z$1.ZodNumber;
11929
+ }, z$1.core.$strict>, z$1.ZodObject<{
11930
+ type: z$1.ZodLiteral<"amount">;
11931
+ amountOffMinor: z$1.ZodNumber;
11932
+ currency: z$1.ZodString;
11933
+ }, z$1.core.$strict>], "type">;
11934
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11935
+ type: z$1.ZodLiteral<"once">;
11936
+ }, z$1.core.$strict>, z$1.ZodObject<{
11937
+ type: z$1.ZodLiteral<"forever">;
11938
+ }, z$1.core.$strict>, z$1.ZodObject<{
11939
+ type: z$1.ZodLiteral<"repeating">;
11940
+ months: z$1.ZodNumber;
11941
+ }, z$1.core.$strict>], "type">;
11942
+ }, z$1.core.$strict>>>;
11943
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
11944
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
10986
11945
  }, z$1.core.$strict>>;
10987
11946
  subtotalMinor: z$1.ZodNumber;
10988
11947
  discountMinor: z$1.ZodNumber;
11948
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11949
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
11950
+ grantId: z$1.ZodUUID;
11951
+ couponId: z$1.ZodUUID;
11952
+ amountMinor: z$1.ZodNumber;
11953
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
11954
+ replace: "replace";
11955
+ stack_native: "stack_native";
11956
+ }>>;
11957
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
11958
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11959
+ type: z$1.ZodLiteral<"percent">;
11960
+ percentOff: z$1.ZodNumber;
11961
+ }, z$1.core.$strict>, z$1.ZodObject<{
11962
+ type: z$1.ZodLiteral<"amount">;
11963
+ amountOffMinor: z$1.ZodNumber;
11964
+ currency: z$1.ZodString;
11965
+ }, z$1.core.$strict>], "type">;
11966
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11967
+ type: z$1.ZodLiteral<"once">;
11968
+ }, z$1.core.$strict>, z$1.ZodObject<{
11969
+ type: z$1.ZodLiteral<"forever">;
11970
+ }, z$1.core.$strict>, z$1.ZodObject<{
11971
+ type: z$1.ZodLiteral<"repeating">;
11972
+ months: z$1.ZodNumber;
11973
+ }, z$1.core.$strict>], "type">;
11974
+ }, z$1.core.$strict>>>;
10989
11975
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
10990
11976
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
10991
11977
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -11109,6 +12095,7 @@ declare const apiOperations: {
11109
12095
  }, z$1.core.$strict>;
11110
12096
  };
11111
12097
  readonly readSubscriptionUpdate: {
12098
+ readonly replay: "read";
11112
12099
  readonly method: "POST";
11113
12100
  readonly path: "subscriptions/updates/read";
11114
12101
  readonly permission: "billing:read";
@@ -11263,6 +12250,32 @@ declare const apiOperations: {
11263
12250
  debitMinor: z$1.ZodNumber;
11264
12251
  totalMinor: z$1.ZodNumber;
11265
12252
  discountMinor: z$1.ZodNumber;
12253
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
12254
+ grantId: z$1.ZodUUID;
12255
+ couponId: z$1.ZodUUID;
12256
+ amountMinor: z$1.ZodNumber;
12257
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
12258
+ replace: "replace";
12259
+ stack_native: "stack_native";
12260
+ }>>;
12261
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
12262
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12263
+ type: z$1.ZodLiteral<"percent">;
12264
+ percentOff: z$1.ZodNumber;
12265
+ }, z$1.core.$strict>, z$1.ZodObject<{
12266
+ type: z$1.ZodLiteral<"amount">;
12267
+ amountOffMinor: z$1.ZodNumber;
12268
+ currency: z$1.ZodString;
12269
+ }, z$1.core.$strict>], "type">;
12270
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12271
+ type: z$1.ZodLiteral<"once">;
12272
+ }, z$1.core.$strict>, z$1.ZodObject<{
12273
+ type: z$1.ZodLiteral<"forever">;
12274
+ }, z$1.core.$strict>, z$1.ZodObject<{
12275
+ type: z$1.ZodLiteral<"repeating">;
12276
+ months: z$1.ZodNumber;
12277
+ }, z$1.core.$strict>], "type">;
12278
+ }, z$1.core.$strict>>>;
11266
12279
  taxMinor: z$1.ZodNumber;
11267
12280
  proration: z$1.ZodEnum<{
11268
12281
  none: "none";
@@ -11792,14 +12805,70 @@ declare const apiOperations: {
11792
12805
  }>;
11793
12806
  intervalCount: z$1.ZodNumber;
11794
12807
  amountMinor: z$1.ZodNumber;
12808
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
11795
12809
  }, z$1.core.$strict>>;
11796
12810
  trial: z$1.ZodNullable<z$1.ZodObject<{
11797
12811
  days: z$1.ZodNumber;
11798
12812
  cardRequired: z$1.ZodBoolean;
11799
12813
  }, z$1.core.$strict>>;
12814
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
12815
+ grantId: z$1.ZodUUID;
12816
+ couponId: z$1.ZodUUID;
12817
+ amountMinor: z$1.ZodNumber;
12818
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
12819
+ replace: "replace";
12820
+ stack_native: "stack_native";
12821
+ }>>;
12822
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
12823
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12824
+ type: z$1.ZodLiteral<"percent">;
12825
+ percentOff: z$1.ZodNumber;
12826
+ }, z$1.core.$strict>, z$1.ZodObject<{
12827
+ type: z$1.ZodLiteral<"amount">;
12828
+ amountOffMinor: z$1.ZodNumber;
12829
+ currency: z$1.ZodString;
12830
+ }, z$1.core.$strict>], "type">;
12831
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12832
+ type: z$1.ZodLiteral<"once">;
12833
+ }, z$1.core.$strict>, z$1.ZodObject<{
12834
+ type: z$1.ZodLiteral<"forever">;
12835
+ }, z$1.core.$strict>, z$1.ZodObject<{
12836
+ type: z$1.ZodLiteral<"repeating">;
12837
+ months: z$1.ZodNumber;
12838
+ }, z$1.core.$strict>], "type">;
12839
+ }, z$1.core.$strict>>>;
12840
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
12841
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11800
12842
  }, z$1.core.$strict>>;
11801
12843
  subtotalMinor: z$1.ZodNumber;
11802
12844
  discountMinor: z$1.ZodNumber;
12845
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12846
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
12847
+ grantId: z$1.ZodUUID;
12848
+ couponId: z$1.ZodUUID;
12849
+ amountMinor: z$1.ZodNumber;
12850
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
12851
+ replace: "replace";
12852
+ stack_native: "stack_native";
12853
+ }>>;
12854
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
12855
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12856
+ type: z$1.ZodLiteral<"percent">;
12857
+ percentOff: z$1.ZodNumber;
12858
+ }, z$1.core.$strict>, z$1.ZodObject<{
12859
+ type: z$1.ZodLiteral<"amount">;
12860
+ amountOffMinor: z$1.ZodNumber;
12861
+ currency: z$1.ZodString;
12862
+ }, z$1.core.$strict>], "type">;
12863
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12864
+ type: z$1.ZodLiteral<"once">;
12865
+ }, z$1.core.$strict>, z$1.ZodObject<{
12866
+ type: z$1.ZodLiteral<"forever">;
12867
+ }, z$1.core.$strict>, z$1.ZodObject<{
12868
+ type: z$1.ZodLiteral<"repeating">;
12869
+ months: z$1.ZodNumber;
12870
+ }, z$1.core.$strict>], "type">;
12871
+ }, z$1.core.$strict>>>;
11803
12872
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
11804
12873
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
11805
12874
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -11990,6 +13059,32 @@ declare const apiOperations: {
11990
13059
  debitMinor: z$1.ZodNumber;
11991
13060
  totalMinor: z$1.ZodNumber;
11992
13061
  discountMinor: z$1.ZodNumber;
13062
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13063
+ grantId: z$1.ZodUUID;
13064
+ couponId: z$1.ZodUUID;
13065
+ amountMinor: z$1.ZodNumber;
13066
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13067
+ replace: "replace";
13068
+ stack_native: "stack_native";
13069
+ }>>;
13070
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13071
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13072
+ type: z$1.ZodLiteral<"percent">;
13073
+ percentOff: z$1.ZodNumber;
13074
+ }, z$1.core.$strict>, z$1.ZodObject<{
13075
+ type: z$1.ZodLiteral<"amount">;
13076
+ amountOffMinor: z$1.ZodNumber;
13077
+ currency: z$1.ZodString;
13078
+ }, z$1.core.$strict>], "type">;
13079
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13080
+ type: z$1.ZodLiteral<"once">;
13081
+ }, z$1.core.$strict>, z$1.ZodObject<{
13082
+ type: z$1.ZodLiteral<"forever">;
13083
+ }, z$1.core.$strict>, z$1.ZodObject<{
13084
+ type: z$1.ZodLiteral<"repeating">;
13085
+ months: z$1.ZodNumber;
13086
+ }, z$1.core.$strict>], "type">;
13087
+ }, z$1.core.$strict>>>;
11993
13088
  taxMinor: z$1.ZodNumber;
11994
13089
  proration: z$1.ZodEnum<{
11995
13090
  none: "none";
@@ -12120,10 +13215,16 @@ declare const apiOperations: {
12120
13215
  }, z$1.core.$strict>>;
12121
13216
  }, z$1.core.$strict>>;
12122
13217
  catalogAmountMinor: z$1.ZodNumber;
13218
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12123
13219
  discount: z$1.ZodNullable<z$1.ZodObject<{
12124
13220
  grantId: z$1.ZodUUID;
12125
13221
  couponId: z$1.ZodUUID;
12126
13222
  amountMinor: z$1.ZodNumber;
13223
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13224
+ replace: "replace";
13225
+ stack_native: "stack_native";
13226
+ }>>;
13227
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
12127
13228
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12128
13229
  type: z$1.ZodLiteral<"percent">;
12129
13230
  percentOff: z$1.ZodNumber;
@@ -12191,6 +13292,32 @@ declare const apiOperations: {
12191
13292
  debitMinor: z$1.ZodNumber;
12192
13293
  totalMinor: z$1.ZodNumber;
12193
13294
  discountMinor: z$1.ZodNumber;
13295
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13296
+ grantId: z$1.ZodUUID;
13297
+ couponId: z$1.ZodUUID;
13298
+ amountMinor: z$1.ZodNumber;
13299
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13300
+ replace: "replace";
13301
+ stack_native: "stack_native";
13302
+ }>>;
13303
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13304
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13305
+ type: z$1.ZodLiteral<"percent">;
13306
+ percentOff: z$1.ZodNumber;
13307
+ }, z$1.core.$strict>, z$1.ZodObject<{
13308
+ type: z$1.ZodLiteral<"amount">;
13309
+ amountOffMinor: z$1.ZodNumber;
13310
+ currency: z$1.ZodString;
13311
+ }, z$1.core.$strict>], "type">;
13312
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13313
+ type: z$1.ZodLiteral<"once">;
13314
+ }, z$1.core.$strict>, z$1.ZodObject<{
13315
+ type: z$1.ZodLiteral<"forever">;
13316
+ }, z$1.core.$strict>, z$1.ZodObject<{
13317
+ type: z$1.ZodLiteral<"repeating">;
13318
+ months: z$1.ZodNumber;
13319
+ }, z$1.core.$strict>], "type">;
13320
+ }, z$1.core.$strict>>>;
12194
13321
  taxMinor: z$1.ZodNumber;
12195
13322
  proration: z$1.ZodEnum<{
12196
13323
  none: "none";
@@ -12430,14 +13557,70 @@ declare const apiOperations: {
12430
13557
  }>;
12431
13558
  intervalCount: z$1.ZodNumber;
12432
13559
  amountMinor: z$1.ZodNumber;
13560
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
12433
13561
  }, z$1.core.$strict>>;
12434
13562
  trial: z$1.ZodNullable<z$1.ZodObject<{
12435
13563
  days: z$1.ZodNumber;
12436
13564
  cardRequired: z$1.ZodBoolean;
12437
13565
  }, z$1.core.$strict>>;
13566
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13567
+ grantId: z$1.ZodUUID;
13568
+ couponId: z$1.ZodUUID;
13569
+ amountMinor: z$1.ZodNumber;
13570
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13571
+ replace: "replace";
13572
+ stack_native: "stack_native";
13573
+ }>>;
13574
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13575
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13576
+ type: z$1.ZodLiteral<"percent">;
13577
+ percentOff: z$1.ZodNumber;
13578
+ }, z$1.core.$strict>, z$1.ZodObject<{
13579
+ type: z$1.ZodLiteral<"amount">;
13580
+ amountOffMinor: z$1.ZodNumber;
13581
+ currency: z$1.ZodString;
13582
+ }, z$1.core.$strict>], "type">;
13583
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13584
+ type: z$1.ZodLiteral<"once">;
13585
+ }, z$1.core.$strict>, z$1.ZodObject<{
13586
+ type: z$1.ZodLiteral<"forever">;
13587
+ }, z$1.core.$strict>, z$1.ZodObject<{
13588
+ type: z$1.ZodLiteral<"repeating">;
13589
+ months: z$1.ZodNumber;
13590
+ }, z$1.core.$strict>], "type">;
13591
+ }, z$1.core.$strict>>>;
13592
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
13593
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12438
13594
  }, z$1.core.$strict>>;
12439
13595
  subtotalMinor: z$1.ZodNumber;
12440
13596
  discountMinor: z$1.ZodNumber;
13597
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13598
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13599
+ grantId: z$1.ZodUUID;
13600
+ couponId: z$1.ZodUUID;
13601
+ amountMinor: z$1.ZodNumber;
13602
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13603
+ replace: "replace";
13604
+ stack_native: "stack_native";
13605
+ }>>;
13606
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13607
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13608
+ type: z$1.ZodLiteral<"percent">;
13609
+ percentOff: z$1.ZodNumber;
13610
+ }, z$1.core.$strict>, z$1.ZodObject<{
13611
+ type: z$1.ZodLiteral<"amount">;
13612
+ amountOffMinor: z$1.ZodNumber;
13613
+ currency: z$1.ZodString;
13614
+ }, z$1.core.$strict>], "type">;
13615
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13616
+ type: z$1.ZodLiteral<"once">;
13617
+ }, z$1.core.$strict>, z$1.ZodObject<{
13618
+ type: z$1.ZodLiteral<"forever">;
13619
+ }, z$1.core.$strict>, z$1.ZodObject<{
13620
+ type: z$1.ZodLiteral<"repeating">;
13621
+ months: z$1.ZodNumber;
13622
+ }, z$1.core.$strict>], "type">;
13623
+ }, z$1.core.$strict>>>;
12441
13624
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12442
13625
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12443
13626
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -12729,14 +13912,70 @@ declare const apiOperations: {
12729
13912
  }>;
12730
13913
  intervalCount: z$1.ZodNumber;
12731
13914
  amountMinor: z$1.ZodNumber;
13915
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
12732
13916
  }, z$1.core.$strict>>;
12733
13917
  trial: z$1.ZodNullable<z$1.ZodObject<{
12734
13918
  days: z$1.ZodNumber;
12735
13919
  cardRequired: z$1.ZodBoolean;
12736
13920
  }, z$1.core.$strict>>;
13921
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13922
+ grantId: z$1.ZodUUID;
13923
+ couponId: z$1.ZodUUID;
13924
+ amountMinor: z$1.ZodNumber;
13925
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13926
+ replace: "replace";
13927
+ stack_native: "stack_native";
13928
+ }>>;
13929
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13930
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13931
+ type: z$1.ZodLiteral<"percent">;
13932
+ percentOff: z$1.ZodNumber;
13933
+ }, z$1.core.$strict>, z$1.ZodObject<{
13934
+ type: z$1.ZodLiteral<"amount">;
13935
+ amountOffMinor: z$1.ZodNumber;
13936
+ currency: z$1.ZodString;
13937
+ }, z$1.core.$strict>], "type">;
13938
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13939
+ type: z$1.ZodLiteral<"once">;
13940
+ }, z$1.core.$strict>, z$1.ZodObject<{
13941
+ type: z$1.ZodLiteral<"forever">;
13942
+ }, z$1.core.$strict>, z$1.ZodObject<{
13943
+ type: z$1.ZodLiteral<"repeating">;
13944
+ months: z$1.ZodNumber;
13945
+ }, z$1.core.$strict>], "type">;
13946
+ }, z$1.core.$strict>>>;
13947
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
13948
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12737
13949
  }, z$1.core.$strict>>;
12738
13950
  subtotalMinor: z$1.ZodNumber;
12739
13951
  discountMinor: z$1.ZodNumber;
13952
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13953
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
13954
+ grantId: z$1.ZodUUID;
13955
+ couponId: z$1.ZodUUID;
13956
+ amountMinor: z$1.ZodNumber;
13957
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
13958
+ replace: "replace";
13959
+ stack_native: "stack_native";
13960
+ }>>;
13961
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13962
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13963
+ type: z$1.ZodLiteral<"percent">;
13964
+ percentOff: z$1.ZodNumber;
13965
+ }, z$1.core.$strict>, z$1.ZodObject<{
13966
+ type: z$1.ZodLiteral<"amount">;
13967
+ amountOffMinor: z$1.ZodNumber;
13968
+ currency: z$1.ZodString;
13969
+ }, z$1.core.$strict>], "type">;
13970
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13971
+ type: z$1.ZodLiteral<"once">;
13972
+ }, z$1.core.$strict>, z$1.ZodObject<{
13973
+ type: z$1.ZodLiteral<"forever">;
13974
+ }, z$1.core.$strict>, z$1.ZodObject<{
13975
+ type: z$1.ZodLiteral<"repeating">;
13976
+ months: z$1.ZodNumber;
13977
+ }, z$1.core.$strict>], "type">;
13978
+ }, z$1.core.$strict>>>;
12740
13979
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12741
13980
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12742
13981
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -13078,14 +14317,70 @@ declare const apiOperations: {
13078
14317
  }>;
13079
14318
  intervalCount: z$1.ZodNumber;
13080
14319
  amountMinor: z$1.ZodNumber;
14320
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
13081
14321
  }, z$1.core.$strict>>;
13082
14322
  trial: z$1.ZodNullable<z$1.ZodObject<{
13083
14323
  days: z$1.ZodNumber;
13084
14324
  cardRequired: z$1.ZodBoolean;
13085
14325
  }, z$1.core.$strict>>;
14326
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
14327
+ grantId: z$1.ZodUUID;
14328
+ couponId: z$1.ZodUUID;
14329
+ amountMinor: z$1.ZodNumber;
14330
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
14331
+ replace: "replace";
14332
+ stack_native: "stack_native";
14333
+ }>>;
14334
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
14335
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14336
+ type: z$1.ZodLiteral<"percent">;
14337
+ percentOff: z$1.ZodNumber;
14338
+ }, z$1.core.$strict>, z$1.ZodObject<{
14339
+ type: z$1.ZodLiteral<"amount">;
14340
+ amountOffMinor: z$1.ZodNumber;
14341
+ currency: z$1.ZodString;
14342
+ }, z$1.core.$strict>], "type">;
14343
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14344
+ type: z$1.ZodLiteral<"once">;
14345
+ }, z$1.core.$strict>, z$1.ZodObject<{
14346
+ type: z$1.ZodLiteral<"forever">;
14347
+ }, z$1.core.$strict>, z$1.ZodObject<{
14348
+ type: z$1.ZodLiteral<"repeating">;
14349
+ months: z$1.ZodNumber;
14350
+ }, z$1.core.$strict>], "type">;
14351
+ }, z$1.core.$strict>>>;
14352
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
14353
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13086
14354
  }, z$1.core.$strict>>;
13087
14355
  subtotalMinor: z$1.ZodNumber;
13088
14356
  discountMinor: z$1.ZodNumber;
14357
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
14358
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
14359
+ grantId: z$1.ZodUUID;
14360
+ couponId: z$1.ZodUUID;
14361
+ amountMinor: z$1.ZodNumber;
14362
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
14363
+ replace: "replace";
14364
+ stack_native: "stack_native";
14365
+ }>>;
14366
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
14367
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14368
+ type: z$1.ZodLiteral<"percent">;
14369
+ percentOff: z$1.ZodNumber;
14370
+ }, z$1.core.$strict>, z$1.ZodObject<{
14371
+ type: z$1.ZodLiteral<"amount">;
14372
+ amountOffMinor: z$1.ZodNumber;
14373
+ currency: z$1.ZodString;
14374
+ }, z$1.core.$strict>], "type">;
14375
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14376
+ type: z$1.ZodLiteral<"once">;
14377
+ }, z$1.core.$strict>, z$1.ZodObject<{
14378
+ type: z$1.ZodLiteral<"forever">;
14379
+ }, z$1.core.$strict>, z$1.ZodObject<{
14380
+ type: z$1.ZodLiteral<"repeating">;
14381
+ months: z$1.ZodNumber;
14382
+ }, z$1.core.$strict>], "type">;
14383
+ }, z$1.core.$strict>>>;
13089
14384
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13090
14385
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13091
14386
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -13599,10 +14894,16 @@ declare const apiOperations: {
13599
14894
  }, z$1.core.$strict>>;
13600
14895
  }, z$1.core.$strict>>;
13601
14896
  catalogAmountMinor: z$1.ZodNumber;
14897
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13602
14898
  discount: z$1.ZodNullable<z$1.ZodObject<{
13603
14899
  grantId: z$1.ZodUUID;
13604
14900
  couponId: z$1.ZodUUID;
13605
14901
  amountMinor: z$1.ZodNumber;
14902
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
14903
+ replace: "replace";
14904
+ stack_native: "stack_native";
14905
+ }>>;
14906
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
13606
14907
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13607
14908
  type: z$1.ZodLiteral<"percent">;
13608
14909
  percentOff: z$1.ZodNumber;
@@ -13670,6 +14971,32 @@ declare const apiOperations: {
13670
14971
  debitMinor: z$1.ZodNumber;
13671
14972
  totalMinor: z$1.ZodNumber;
13672
14973
  discountMinor: z$1.ZodNumber;
14974
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
14975
+ grantId: z$1.ZodUUID;
14976
+ couponId: z$1.ZodUUID;
14977
+ amountMinor: z$1.ZodNumber;
14978
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
14979
+ replace: "replace";
14980
+ stack_native: "stack_native";
14981
+ }>>;
14982
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
14983
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14984
+ type: z$1.ZodLiteral<"percent">;
14985
+ percentOff: z$1.ZodNumber;
14986
+ }, z$1.core.$strict>, z$1.ZodObject<{
14987
+ type: z$1.ZodLiteral<"amount">;
14988
+ amountOffMinor: z$1.ZodNumber;
14989
+ currency: z$1.ZodString;
14990
+ }, z$1.core.$strict>], "type">;
14991
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14992
+ type: z$1.ZodLiteral<"once">;
14993
+ }, z$1.core.$strict>, z$1.ZodObject<{
14994
+ type: z$1.ZodLiteral<"forever">;
14995
+ }, z$1.core.$strict>, z$1.ZodObject<{
14996
+ type: z$1.ZodLiteral<"repeating">;
14997
+ months: z$1.ZodNumber;
14998
+ }, z$1.core.$strict>], "type">;
14999
+ }, z$1.core.$strict>>>;
13673
15000
  taxMinor: z$1.ZodNumber;
13674
15001
  proration: z$1.ZodEnum<{
13675
15002
  none: "none";
@@ -13909,14 +15236,70 @@ declare const apiOperations: {
13909
15236
  }>;
13910
15237
  intervalCount: z$1.ZodNumber;
13911
15238
  amountMinor: z$1.ZodNumber;
15239
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
13912
15240
  }, z$1.core.$strict>>;
13913
15241
  trial: z$1.ZodNullable<z$1.ZodObject<{
13914
15242
  days: z$1.ZodNumber;
13915
15243
  cardRequired: z$1.ZodBoolean;
13916
15244
  }, z$1.core.$strict>>;
15245
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15246
+ grantId: z$1.ZodUUID;
15247
+ couponId: z$1.ZodUUID;
15248
+ amountMinor: z$1.ZodNumber;
15249
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
15250
+ replace: "replace";
15251
+ stack_native: "stack_native";
15252
+ }>>;
15253
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
15254
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15255
+ type: z$1.ZodLiteral<"percent">;
15256
+ percentOff: z$1.ZodNumber;
15257
+ }, z$1.core.$strict>, z$1.ZodObject<{
15258
+ type: z$1.ZodLiteral<"amount">;
15259
+ amountOffMinor: z$1.ZodNumber;
15260
+ currency: z$1.ZodString;
15261
+ }, z$1.core.$strict>], "type">;
15262
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15263
+ type: z$1.ZodLiteral<"once">;
15264
+ }, z$1.core.$strict>, z$1.ZodObject<{
15265
+ type: z$1.ZodLiteral<"forever">;
15266
+ }, z$1.core.$strict>, z$1.ZodObject<{
15267
+ type: z$1.ZodLiteral<"repeating">;
15268
+ months: z$1.ZodNumber;
15269
+ }, z$1.core.$strict>], "type">;
15270
+ }, z$1.core.$strict>>>;
15271
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
15272
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13917
15273
  }, z$1.core.$strict>>;
13918
15274
  subtotalMinor: z$1.ZodNumber;
13919
15275
  discountMinor: z$1.ZodNumber;
15276
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
15277
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15278
+ grantId: z$1.ZodUUID;
15279
+ couponId: z$1.ZodUUID;
15280
+ amountMinor: z$1.ZodNumber;
15281
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
15282
+ replace: "replace";
15283
+ stack_native: "stack_native";
15284
+ }>>;
15285
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
15286
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15287
+ type: z$1.ZodLiteral<"percent">;
15288
+ percentOff: z$1.ZodNumber;
15289
+ }, z$1.core.$strict>, z$1.ZodObject<{
15290
+ type: z$1.ZodLiteral<"amount">;
15291
+ amountOffMinor: z$1.ZodNumber;
15292
+ currency: z$1.ZodString;
15293
+ }, z$1.core.$strict>], "type">;
15294
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15295
+ type: z$1.ZodLiteral<"once">;
15296
+ }, z$1.core.$strict>, z$1.ZodObject<{
15297
+ type: z$1.ZodLiteral<"forever">;
15298
+ }, z$1.core.$strict>, z$1.ZodObject<{
15299
+ type: z$1.ZodLiteral<"repeating">;
15300
+ months: z$1.ZodNumber;
15301
+ }, z$1.core.$strict>], "type">;
15302
+ }, z$1.core.$strict>>>;
13920
15303
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13921
15304
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13922
15305
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -13945,6 +15328,7 @@ declare const apiOperations: {
13945
15328
  }, z$1.core.$strict>;
13946
15329
  };
13947
15330
  readonly readRefund: {
15331
+ readonly replay: "read";
13948
15332
  readonly method: "POST";
13949
15333
  readonly path: "subscriptions/refunds/read";
13950
15334
  readonly permission: "billing:read";
@@ -14163,14 +15547,70 @@ declare const apiOperations: {
14163
15547
  }>;
14164
15548
  intervalCount: z$1.ZodNumber;
14165
15549
  amountMinor: z$1.ZodNumber;
15550
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
14166
15551
  }, z$1.core.$strict>>;
14167
15552
  trial: z$1.ZodNullable<z$1.ZodObject<{
14168
15553
  days: z$1.ZodNumber;
14169
15554
  cardRequired: z$1.ZodBoolean;
14170
15555
  }, z$1.core.$strict>>;
15556
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15557
+ grantId: z$1.ZodUUID;
15558
+ couponId: z$1.ZodUUID;
15559
+ amountMinor: z$1.ZodNumber;
15560
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
15561
+ replace: "replace";
15562
+ stack_native: "stack_native";
15563
+ }>>;
15564
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
15565
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15566
+ type: z$1.ZodLiteral<"percent">;
15567
+ percentOff: z$1.ZodNumber;
15568
+ }, z$1.core.$strict>, z$1.ZodObject<{
15569
+ type: z$1.ZodLiteral<"amount">;
15570
+ amountOffMinor: z$1.ZodNumber;
15571
+ currency: z$1.ZodString;
15572
+ }, z$1.core.$strict>], "type">;
15573
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15574
+ type: z$1.ZodLiteral<"once">;
15575
+ }, z$1.core.$strict>, z$1.ZodObject<{
15576
+ type: z$1.ZodLiteral<"forever">;
15577
+ }, z$1.core.$strict>, z$1.ZodObject<{
15578
+ type: z$1.ZodLiteral<"repeating">;
15579
+ months: z$1.ZodNumber;
15580
+ }, z$1.core.$strict>], "type">;
15581
+ }, z$1.core.$strict>>>;
15582
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
15583
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
14171
15584
  }, z$1.core.$strict>>;
14172
15585
  subtotalMinor: z$1.ZodNumber;
14173
15586
  discountMinor: z$1.ZodNumber;
15587
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
15588
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
15589
+ grantId: z$1.ZodUUID;
15590
+ couponId: z$1.ZodUUID;
15591
+ amountMinor: z$1.ZodNumber;
15592
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
15593
+ replace: "replace";
15594
+ stack_native: "stack_native";
15595
+ }>>;
15596
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
15597
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15598
+ type: z$1.ZodLiteral<"percent">;
15599
+ percentOff: z$1.ZodNumber;
15600
+ }, z$1.core.$strict>, z$1.ZodObject<{
15601
+ type: z$1.ZodLiteral<"amount">;
15602
+ amountOffMinor: z$1.ZodNumber;
15603
+ currency: z$1.ZodString;
15604
+ }, z$1.core.$strict>], "type">;
15605
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
15606
+ type: z$1.ZodLiteral<"once">;
15607
+ }, z$1.core.$strict>, z$1.ZodObject<{
15608
+ type: z$1.ZodLiteral<"forever">;
15609
+ }, z$1.core.$strict>, z$1.ZodObject<{
15610
+ type: z$1.ZodLiteral<"repeating">;
15611
+ months: z$1.ZodNumber;
15612
+ }, z$1.core.$strict>], "type">;
15613
+ }, z$1.core.$strict>>>;
14174
15614
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
14175
15615
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
14176
15616
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -14684,10 +16124,16 @@ declare const apiOperations: {
14684
16124
  }, z$1.core.$strict>>;
14685
16125
  }, z$1.core.$strict>>;
14686
16126
  catalogAmountMinor: z$1.ZodNumber;
16127
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
14687
16128
  discount: z$1.ZodNullable<z$1.ZodObject<{
14688
16129
  grantId: z$1.ZodUUID;
14689
16130
  couponId: z$1.ZodUUID;
14690
16131
  amountMinor: z$1.ZodNumber;
16132
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
16133
+ replace: "replace";
16134
+ stack_native: "stack_native";
16135
+ }>>;
16136
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
14691
16137
  terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14692
16138
  type: z$1.ZodLiteral<"percent">;
14693
16139
  percentOff: z$1.ZodNumber;
@@ -14755,6 +16201,32 @@ declare const apiOperations: {
14755
16201
  debitMinor: z$1.ZodNumber;
14756
16202
  totalMinor: z$1.ZodNumber;
14757
16203
  discountMinor: z$1.ZodNumber;
16204
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16205
+ grantId: z$1.ZodUUID;
16206
+ couponId: z$1.ZodUUID;
16207
+ amountMinor: z$1.ZodNumber;
16208
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
16209
+ replace: "replace";
16210
+ stack_native: "stack_native";
16211
+ }>>;
16212
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
16213
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16214
+ type: z$1.ZodLiteral<"percent">;
16215
+ percentOff: z$1.ZodNumber;
16216
+ }, z$1.core.$strict>, z$1.ZodObject<{
16217
+ type: z$1.ZodLiteral<"amount">;
16218
+ amountOffMinor: z$1.ZodNumber;
16219
+ currency: z$1.ZodString;
16220
+ }, z$1.core.$strict>], "type">;
16221
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16222
+ type: z$1.ZodLiteral<"once">;
16223
+ }, z$1.core.$strict>, z$1.ZodObject<{
16224
+ type: z$1.ZodLiteral<"forever">;
16225
+ }, z$1.core.$strict>, z$1.ZodObject<{
16226
+ type: z$1.ZodLiteral<"repeating">;
16227
+ months: z$1.ZodNumber;
16228
+ }, z$1.core.$strict>], "type">;
16229
+ }, z$1.core.$strict>>>;
14758
16230
  taxMinor: z$1.ZodNumber;
14759
16231
  proration: z$1.ZodEnum<{
14760
16232
  none: "none";
@@ -14994,14 +16466,70 @@ declare const apiOperations: {
14994
16466
  }>;
14995
16467
  intervalCount: z$1.ZodNumber;
14996
16468
  amountMinor: z$1.ZodNumber;
16469
+ amountAfterOfferMinor: z$1.ZodOptional<z$1.ZodNumber>;
14997
16470
  }, z$1.core.$strict>>;
14998
16471
  trial: z$1.ZodNullable<z$1.ZodObject<{
14999
16472
  days: z$1.ZodNumber;
15000
16473
  cardRequired: z$1.ZodBoolean;
15001
16474
  }, z$1.core.$strict>>;
16475
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16476
+ grantId: z$1.ZodUUID;
16477
+ couponId: z$1.ZodUUID;
16478
+ amountMinor: z$1.ZodNumber;
16479
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
16480
+ replace: "replace";
16481
+ stack_native: "stack_native";
16482
+ }>>;
16483
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
16484
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16485
+ type: z$1.ZodLiteral<"percent">;
16486
+ percentOff: z$1.ZodNumber;
16487
+ }, z$1.core.$strict>, z$1.ZodObject<{
16488
+ type: z$1.ZodLiteral<"amount">;
16489
+ amountOffMinor: z$1.ZodNumber;
16490
+ currency: z$1.ZodString;
16491
+ }, z$1.core.$strict>], "type">;
16492
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16493
+ type: z$1.ZodLiteral<"once">;
16494
+ }, z$1.core.$strict>, z$1.ZodObject<{
16495
+ type: z$1.ZodLiteral<"forever">;
16496
+ }, z$1.core.$strict>, z$1.ZodObject<{
16497
+ type: z$1.ZodLiteral<"repeating">;
16498
+ months: z$1.ZodNumber;
16499
+ }, z$1.core.$strict>], "type">;
16500
+ }, z$1.core.$strict>>>;
16501
+ discountExpiresAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
16502
+ initialAmountMinor: z$1.ZodOptional<z$1.ZodNumber>;
15002
16503
  }, z$1.core.$strict>>;
15003
16504
  subtotalMinor: z$1.ZodNumber;
15004
16505
  discountMinor: z$1.ZodNumber;
16506
+ nativeDiscountMinor: z$1.ZodOptional<z$1.ZodNumber>;
16507
+ discount: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
16508
+ grantId: z$1.ZodUUID;
16509
+ couponId: z$1.ZodUUID;
16510
+ amountMinor: z$1.ZodNumber;
16511
+ applicationPolicy: z$1.ZodOptional<z$1.ZodEnum<{
16512
+ replace: "replace";
16513
+ stack_native: "stack_native";
16514
+ }>>;
16515
+ applicableProductIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
16516
+ terms: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16517
+ type: z$1.ZodLiteral<"percent">;
16518
+ percentOff: z$1.ZodNumber;
16519
+ }, z$1.core.$strict>, z$1.ZodObject<{
16520
+ type: z$1.ZodLiteral<"amount">;
16521
+ amountOffMinor: z$1.ZodNumber;
16522
+ currency: z$1.ZodString;
16523
+ }, z$1.core.$strict>], "type">;
16524
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
16525
+ type: z$1.ZodLiteral<"once">;
16526
+ }, z$1.core.$strict>, z$1.ZodObject<{
16527
+ type: z$1.ZodLiteral<"forever">;
16528
+ }, z$1.core.$strict>, z$1.ZodObject<{
16529
+ type: z$1.ZodLiteral<"repeating">;
16530
+ months: z$1.ZodNumber;
16531
+ }, z$1.core.$strict>], "type">;
16532
+ }, z$1.core.$strict>>>;
15005
16533
  taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
15006
16534
  totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
15007
16535
  effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
@@ -20267,6 +21795,7 @@ declare const apiOperations: {
20267
21795
  }, z$1.core.$strict>;
20268
21796
  };
20269
21797
  readonly getCustomer: {
21798
+ readonly replay: "read";
20270
21799
  readonly method: "POST";
20271
21800
  readonly path: "customers/get";
20272
21801
  readonly permission: "customers:read";
@@ -20642,6 +22171,10 @@ declare const apiOperations: {
20642
22171
  }, z$1.core.$strict>, z$1.ZodObject<{
20643
22172
  type: z$1.ZodLiteral<"forever">;
20644
22173
  }, z$1.core.$strict>], "type">;
22174
+ nativeDiscountPolicy: z$1.ZodOptional<z$1.ZodEnum<{
22175
+ replace: "replace";
22176
+ stack_native: "stack_native";
22177
+ }>>;
20645
22178
  appliesTo: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
20646
22179
  type: z$1.ZodLiteral<"all">;
20647
22180
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -20751,6 +22284,10 @@ declare const apiOperations: {
20751
22284
  }, z$1.core.$strict>, z$1.ZodObject<{
20752
22285
  type: z$1.ZodLiteral<"forever">;
20753
22286
  }, z$1.core.$strict>], "type">;
22287
+ nativeDiscountPolicy: z$1.ZodOptional<z$1.ZodEnum<{
22288
+ replace: "replace";
22289
+ stack_native: "stack_native";
22290
+ }>>;
20754
22291
  appliesTo: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
20755
22292
  type: z$1.ZodLiteral<"all">;
20756
22293
  }, z$1.core.$strict>, z$1.ZodObject<{
@@ -20965,6 +22502,10 @@ declare const apiOperations: {
20965
22502
  }, z$1.core.$strict>, z$1.ZodObject<{
20966
22503
  type: z$1.ZodLiteral<"forever">;
20967
22504
  }, z$1.core.$strict>], "type">;
22505
+ nativeDiscountPolicy: z$1.ZodOptional<z$1.ZodEnum<{
22506
+ replace: "replace";
22507
+ stack_native: "stack_native";
22508
+ }>>;
20968
22509
  appliesTo: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
20969
22510
  type: z$1.ZodLiteral<"all">;
20970
22511
  }, z$1.core.$strict>, z$1.ZodObject<{