@deliverart/sdk-js-subscription 2.13.4 → 2.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -541,6 +541,81 @@ declare const subscriptionTimeBasedRenewalDetailsSchema: z.ZodObject<{
541
541
  subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
542
542
  }, z.core.$strip>;
543
543
  type SubscriptionTimeBasedRenewalDetails = z.infer<typeof subscriptionTimeBasedRenewalDetailsSchema>;
544
+ declare const subscriptionPurchaseSchema: z.ZodObject<{
545
+ id: z.ZodString;
546
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
547
+ status: z.ZodEnum<{
548
+ pending: "pending";
549
+ completed: "completed";
550
+ cancelled: "cancelled";
551
+ failed: "failed";
552
+ }>;
553
+ type: z.ZodEnum<{
554
+ infinite: "infinite";
555
+ time_based: "time_based";
556
+ consumption: "consumption";
557
+ }>;
558
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
559
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
560
+ threshold: z.ZodCoercedNumber<unknown>;
561
+ amount: z.ZodString;
562
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
563
+ stripe: "stripe";
564
+ bank_transfer: "bank_transfer";
565
+ cash: "cash";
566
+ credit_card: "credit_card";
567
+ }>>;
568
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
569
+ pending: "pending";
570
+ pending_verification: "pending_verification";
571
+ paid: "paid";
572
+ canceled: "canceled";
573
+ refunded: "refunded";
574
+ failed: "failed";
575
+ }>>;
576
+ createdAt: z.ZodString;
577
+ updatedAt: z.ZodString;
578
+ }, z.core.$strip>;
579
+ type SubscriptionPurchase = z.infer<typeof subscriptionPurchaseSchema>;
580
+ declare const subscriptionPurchaseDetailsSchema: z.ZodObject<{
581
+ id: z.ZodString;
582
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
583
+ status: z.ZodEnum<{
584
+ pending: "pending";
585
+ completed: "completed";
586
+ cancelled: "cancelled";
587
+ failed: "failed";
588
+ }>;
589
+ type: z.ZodEnum<{
590
+ infinite: "infinite";
591
+ time_based: "time_based";
592
+ consumption: "consumption";
593
+ }>;
594
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
595
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
596
+ threshold: z.ZodCoercedNumber<unknown>;
597
+ amount: z.ZodString;
598
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
599
+ stripe: "stripe";
600
+ bank_transfer: "bank_transfer";
601
+ cash: "cash";
602
+ credit_card: "credit_card";
603
+ }>>;
604
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
605
+ pending: "pending";
606
+ pending_verification: "pending_verification";
607
+ paid: "paid";
608
+ canceled: "canceled";
609
+ refunded: "refunded";
610
+ failed: "failed";
611
+ }>>;
612
+ createdAt: z.ZodString;
613
+ updatedAt: z.ZodString;
614
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
615
+ payment: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>>>;
616
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>>>;
617
+ }, z.core.$strip>;
618
+ type SubscriptionPurchaseDetails = z.infer<typeof subscriptionPurchaseDetailsSchema>;
544
619
  declare const subscriptionPriceSchema: z.ZodObject<{
545
620
  id: z.ZodString;
546
621
  type: z.ZodEnum<{
@@ -676,13 +751,47 @@ declare const subscriptionRenewalPaymentInfoSchema: z.ZodDiscriminatedUnion<[z.Z
676
751
  type SubscriptionRenewalPaymentInfo = z.infer<typeof subscriptionRenewalPaymentInfoSchema>;
677
752
  declare const resolveSubscriptionRenewalPaymentInputSchema: z.ZodObject<{
678
753
  status: z.ZodEnum<{
679
- paid: "paid";
680
754
  failed: "failed";
755
+ paid: "paid";
681
756
  canceled: "canceled";
682
757
  }>;
683
758
  response: z.ZodOptional<z.ZodString>;
684
759
  }, z.core.$strip>;
685
760
  type ResolveSubscriptionRenewalPaymentInput = z.infer<typeof resolveSubscriptionRenewalPaymentInputSchema>;
761
+ declare const writableSubscriptionPurchaseSchema: z.ZodObject<{
762
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
763
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
764
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
765
+ startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
766
+ }, z.core.$strip>;
767
+ type WritableSubscriptionPurchase = z.infer<typeof writableSubscriptionPurchaseSchema>;
768
+ declare const assignSubscriptionPlanInputSchema: z.ZodObject<{
769
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
770
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
771
+ startsAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
772
+ }, z.core.$strip>;
773
+ type WritableAssignedSubscriptionPlan = z.infer<typeof assignSubscriptionPlanInputSchema>;
774
+ declare const calculateSubscriptionPlanPurchaseQuoteInputSchema: z.ZodObject<{
775
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
776
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
777
+ startsAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
778
+ }, z.core.$strip>;
779
+ type WritableSubscriptionPlanPurchaseQuote = z.infer<typeof calculateSubscriptionPlanPurchaseQuoteInputSchema>;
780
+ declare const subscriptionPurchaseQuoteSchema: z.ZodObject<{
781
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
782
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
783
+ type: z.ZodEnum<{
784
+ infinite: "infinite";
785
+ time_based: "time_based";
786
+ consumption: "consumption";
787
+ }>;
788
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
789
+ autoRenewal: z.ZodBoolean;
790
+ threshold: z.ZodCoercedNumber<unknown>;
791
+ unitPrice: z.ZodString;
792
+ amount: z.ZodString;
793
+ }, z.core.$strip>;
794
+ type SubscriptionPurchaseQuote = z.infer<typeof subscriptionPurchaseQuoteSchema>;
686
795
  declare const subscriptionOverviewSubscriptionSchema: z.ZodObject<{
687
796
  id: z.ZodString;
688
797
  iri: z.ZodUnion<readonly [z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id">, unknown>>, z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>, z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>]>;
@@ -1224,6 +1333,72 @@ declare const subscriptionPricesQuerySchema: z.ZodObject<{
1224
1333
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1225
1334
  }, z.core.$strip>;
1226
1335
  type SubscriptionPricesQueryParams = z.infer<typeof subscriptionPricesQuerySchema>;
1336
+ declare const subscriptionPurchasesQuerySchema: z.ZodObject<{
1337
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1338
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1339
+ pending: "pending";
1340
+ completed: "completed";
1341
+ cancelled: "cancelled";
1342
+ failed: "failed";
1343
+ }>, z.ZodArray<z.ZodEnum<{
1344
+ pending: "pending";
1345
+ completed: "completed";
1346
+ cancelled: "cancelled";
1347
+ failed: "failed";
1348
+ }>>]>>;
1349
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1350
+ infinite: "infinite";
1351
+ time_based: "time_based";
1352
+ consumption: "consumption";
1353
+ }>, z.ZodArray<z.ZodEnum<{
1354
+ infinite: "infinite";
1355
+ time_based: "time_based";
1356
+ consumption: "consumption";
1357
+ }>>]>>;
1358
+ 'pointOfSale.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1359
+ 'plan.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1360
+ 'plan.code': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1361
+ 'startsAt[before]': z.ZodOptional<z.ZodString>;
1362
+ 'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
1363
+ 'startsAt[after]': z.ZodOptional<z.ZodString>;
1364
+ 'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
1365
+ 'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1366
+ 'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1367
+ 'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1368
+ 'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1369
+ 'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1370
+ 'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1371
+ 'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1372
+ 'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1373
+ 'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1374
+ 'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1375
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1376
+ asc: "asc";
1377
+ desc: "desc";
1378
+ }>>;
1379
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
1380
+ asc: "asc";
1381
+ desc: "desc";
1382
+ }>>;
1383
+ 'order[startsAt]': z.ZodOptional<z.ZodEnum<{
1384
+ asc: "asc";
1385
+ desc: "desc";
1386
+ }>>;
1387
+ 'order[amount]': z.ZodOptional<z.ZodEnum<{
1388
+ asc: "asc";
1389
+ desc: "desc";
1390
+ }>>;
1391
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1392
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1393
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1394
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1395
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1396
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1397
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1398
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1399
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1400
+ }, z.core.$strip>;
1401
+ type SubscriptionPurchasesQueryParams = z.infer<typeof subscriptionPurchasesQuerySchema>;
1227
1402
  declare const creditUsageLogsQuerySchema: z.ZodObject<{
1228
1403
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1229
1404
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -1547,6 +1722,51 @@ declare const getSubscriptionPricesResponseSchema: z.ZodObject<{
1547
1722
  lastPage: z.ZodCoercedNumber<unknown>;
1548
1723
  }, z.core.$strip>;
1549
1724
  }, z.core.$strip>;
1725
+ declare const getSubscriptionPurchasesResponseSchema: z.ZodObject<{
1726
+ data: z.ZodArray<z.ZodObject<{
1727
+ id: z.ZodString;
1728
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
1729
+ status: z.ZodEnum<{
1730
+ pending: "pending";
1731
+ completed: "completed";
1732
+ cancelled: "cancelled";
1733
+ failed: "failed";
1734
+ }>;
1735
+ type: z.ZodEnum<{
1736
+ infinite: "infinite";
1737
+ time_based: "time_based";
1738
+ consumption: "consumption";
1739
+ }>;
1740
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
1741
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1742
+ threshold: z.ZodCoercedNumber<unknown>;
1743
+ amount: z.ZodString;
1744
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
1745
+ stripe: "stripe";
1746
+ bank_transfer: "bank_transfer";
1747
+ cash: "cash";
1748
+ credit_card: "credit_card";
1749
+ }>>;
1750
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
1751
+ pending: "pending";
1752
+ pending_verification: "pending_verification";
1753
+ paid: "paid";
1754
+ canceled: "canceled";
1755
+ refunded: "refunded";
1756
+ failed: "failed";
1757
+ }>>;
1758
+ createdAt: z.ZodString;
1759
+ updatedAt: z.ZodString;
1760
+ }, z.core.$strip>>;
1761
+ pagination: z.ZodObject<{
1762
+ from: z.ZodCoercedNumber<unknown>;
1763
+ to: z.ZodCoercedNumber<unknown>;
1764
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
1765
+ totalItems: z.ZodCoercedNumber<unknown>;
1766
+ currentPage: z.ZodCoercedNumber<unknown>;
1767
+ lastPage: z.ZodCoercedNumber<unknown>;
1768
+ }, z.core.$strip>;
1769
+ }, z.core.$strip>;
1550
1770
  declare const getCreditUsageLogsResponseSchema: z.ZodObject<{
1551
1771
  data: z.ZodArray<z.ZodObject<{
1552
1772
  id: z.ZodString;
@@ -2756,10 +2976,18 @@ declare const subscriptionAvailabilityReasonSchema: z.ZodEnum<{
2756
2976
  operation_not_allowed: "operation_not_allowed";
2757
2977
  }>;
2758
2978
  type SubscriptionAvailabilityReason = z.infer<typeof subscriptionAvailabilityReasonSchema>;
2979
+ declare const subscriptionPurchaseStatuses: readonly ["pending", "completed", "cancelled", "failed"];
2980
+ declare const subscriptionPurchaseStatusSchema: z.ZodEnum<{
2981
+ pending: "pending";
2982
+ completed: "completed";
2983
+ cancelled: "cancelled";
2984
+ failed: "failed";
2985
+ }>;
2986
+ type SubscriptionPurchaseStatus = z.infer<typeof subscriptionPurchaseStatusSchema>;
2759
2987
  declare const resolvableRenewalPaymentStatuses: readonly ["paid", "failed", "canceled"];
2760
2988
  declare const resolvableRenewalPaymentStatusSchema: z.ZodEnum<{
2761
- paid: "paid";
2762
2989
  failed: "failed";
2990
+ paid: "paid";
2763
2991
  canceled: "canceled";
2764
2992
  }>;
2765
2993
  type ResolvableRenewalPaymentStatus = z.infer<typeof resolvableRenewalPaymentStatusSchema>;
@@ -2787,6 +3015,10 @@ declare const subscriptionPlanIriSchema: z.ZodType<_deliverart_sdk_js_global_typ
2787
3015
  type SubscriptionPlanIri = z.infer<typeof subscriptionPlanIriSchema>;
2788
3016
  declare const subscriptionPlanNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>;
2789
3017
  type SubscriptionPlanNullableIri = z.infer<typeof subscriptionPlanNullableIriSchema>;
3018
+ declare const subscriptionPurchaseIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/purchases/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/purchases/:id">, unknown>>;
3019
+ type SubscriptionPurchaseIri = z.infer<typeof subscriptionPurchaseIriSchema>;
3020
+ declare const subscriptionPurchaseNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/purchases/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/purchases/:id"> | null, unknown>>;
3021
+ type SubscriptionPurchaseNullableIri = z.infer<typeof subscriptionPurchaseNullableIriSchema>;
2790
3022
  declare const subscriptionConsumptionRenewalIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id">, unknown>>;
2791
3023
  type SubscriptionConsumptionRenewalIri = z.infer<typeof subscriptionConsumptionRenewalIriSchema>;
2792
3024
  declare const subscriptionConsumptionRenewalNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id"> | null, unknown>>;
@@ -2951,8 +3183,8 @@ declare class PaySubscriptionConsumptionRenewal extends AbstractApiRequest<typeo
2951
3183
 
2952
3184
  declare const resolveSubscriptionConsumptionRenewalPaymentInputSchema: z.ZodObject<{
2953
3185
  status: z.ZodEnum<{
2954
- paid: "paid";
2955
3186
  failed: "failed";
3187
+ paid: "paid";
2956
3188
  canceled: "canceled";
2957
3189
  }>;
2958
3190
  response: z.ZodOptional<z.ZodString>;
@@ -3023,8 +3255,8 @@ declare class ResolveSubscriptionConsumptionRenewalPayment extends AbstractApiRe
3023
3255
  readonly accept = "application/json";
3024
3256
  readonly inputSchema: z.ZodObject<{
3025
3257
  status: z.ZodEnum<{
3026
- paid: "paid";
3027
3258
  failed: "failed";
3259
+ paid: "paid";
3028
3260
  canceled: "canceled";
3029
3261
  }>;
3030
3262
  response: z.ZodOptional<z.ZodString>;
@@ -3403,83 +3635,831 @@ declare class GetSubscriptionInfiniteList extends AbstractApiRequest<typeof getS
3403
3635
  getPath(): string;
3404
3636
  }
3405
3637
 
3406
- declare const createSubscriptionPlanInputSchema: z.ZodObject<{
3407
- code: z.ZodNonOptional<z.ZodString>;
3408
- name: z.ZodNonOptional<z.ZodString>;
3409
- description: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3410
- type: z.ZodNonOptional<z.ZodEnum<{
3411
- infinite: "infinite";
3412
- time_based: "time_based";
3413
- consumption: "consumption";
3414
- }>>;
3415
- isActive: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3416
- isPurchasable: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3417
- isAdminOnly: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3418
- defaultAutoRenewal: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3419
- includedCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3420
- renewalCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3421
- renewalThreshold: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3422
- durationDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3423
- renewalDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3424
- renewalOffsetDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3425
- operationCosts: z.ZodNonOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3426
- }, z.core.$strip>;
3427
- type CreateSubscriptionPlanInput = z.input<typeof createSubscriptionPlanInputSchema>;
3428
- declare const createSubscriptionPlanResponseSchema: z.ZodObject<{
3638
+ type AssignSubscriptionPlanInput = z.input<typeof assignSubscriptionPlanInputSchema>;
3639
+ declare const assignSubscriptionPlanResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3429
3640
  id: z.ZodString;
3430
- code: z.ZodString;
3431
- name: z.ZodString;
3432
- description: z.ZodNullable<z.ZodString>;
3433
- type: z.ZodEnum<{
3434
- infinite: "infinite";
3435
- time_based: "time_based";
3436
- consumption: "consumption";
3641
+ status: z.ZodEnum<{
3642
+ created: "created";
3643
+ active: "active";
3644
+ pending_renewal: "pending_renewal";
3645
+ expired: "expired";
3646
+ suspended: "suspended";
3647
+ cancelled: "cancelled";
3437
3648
  }>;
3438
- isActive: z.ZodBoolean;
3439
- isPurchasable: z.ZodBoolean;
3440
- isAdminOnly: z.ZodBoolean;
3441
- defaultAutoRenewal: z.ZodBoolean;
3442
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3443
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3444
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3445
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3446
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3447
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3448
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3449
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3649
+ autoRenewal: z.ZodBoolean;
3650
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3651
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3652
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3450
3653
  id: z.ZodString;
3451
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3452
- threshold: z.ZodCoercedNumber<unknown>;
3453
- unitPrice: z.ZodString;
3654
+ code: z.ZodString;
3655
+ name: z.ZodString;
3656
+ type: z.ZodEnum<{
3657
+ infinite: "infinite";
3658
+ time_based: "time_based";
3659
+ consumption: "consumption";
3660
+ }>;
3661
+ isActive: z.ZodBoolean;
3662
+ isPurchasable: z.ZodBoolean;
3663
+ isAdminOnly: z.ZodBoolean;
3454
3664
  }, z.core.$strip>>>;
3455
3665
  createdAt: z.ZodString;
3456
3666
  updatedAt: z.ZodString;
3457
- }, z.core.$strip>;
3458
- type CreateSubscriptionPlanResponse = z.infer<typeof createSubscriptionPlanResponseSchema>;
3459
- declare class CreateSubscriptionPlan extends AbstractApiRequest<typeof createSubscriptionPlanInputSchema, typeof createSubscriptionPlanResponseSchema> {
3460
- readonly method: "POST";
3667
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3668
+ type: z.ZodLiteral<"infinite">;
3669
+ }, z.core.$strip>, z.ZodObject<{
3670
+ id: z.ZodString;
3671
+ status: z.ZodEnum<{
3672
+ created: "created";
3673
+ active: "active";
3674
+ pending_renewal: "pending_renewal";
3675
+ expired: "expired";
3676
+ suspended: "suspended";
3677
+ cancelled: "cancelled";
3678
+ }>;
3679
+ autoRenewal: z.ZodBoolean;
3680
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3681
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3682
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3683
+ id: z.ZodString;
3684
+ code: z.ZodString;
3685
+ name: z.ZodString;
3686
+ type: z.ZodEnum<{
3687
+ infinite: "infinite";
3688
+ time_based: "time_based";
3689
+ consumption: "consumption";
3690
+ }>;
3691
+ isActive: z.ZodBoolean;
3692
+ isPurchasable: z.ZodBoolean;
3693
+ isAdminOnly: z.ZodBoolean;
3694
+ }, z.core.$strip>>>;
3695
+ createdAt: z.ZodString;
3696
+ updatedAt: z.ZodString;
3697
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3698
+ type: z.ZodLiteral<"consumption">;
3699
+ credits: z.ZodCoercedNumber<unknown>;
3700
+ autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3701
+ autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3702
+ hasAvailableCredits: z.ZodBoolean;
3703
+ }, z.core.$strip>, z.ZodObject<{
3704
+ id: z.ZodString;
3705
+ status: z.ZodEnum<{
3706
+ created: "created";
3707
+ active: "active";
3708
+ pending_renewal: "pending_renewal";
3709
+ expired: "expired";
3710
+ suspended: "suspended";
3711
+ cancelled: "cancelled";
3712
+ }>;
3713
+ autoRenewal: z.ZodBoolean;
3714
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3715
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3716
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3717
+ id: z.ZodString;
3718
+ code: z.ZodString;
3719
+ name: z.ZodString;
3720
+ type: z.ZodEnum<{
3721
+ infinite: "infinite";
3722
+ time_based: "time_based";
3723
+ consumption: "consumption";
3724
+ }>;
3725
+ isActive: z.ZodBoolean;
3726
+ isPurchasable: z.ZodBoolean;
3727
+ isAdminOnly: z.ZodBoolean;
3728
+ }, z.core.$strip>>>;
3729
+ createdAt: z.ZodString;
3730
+ updatedAt: z.ZodString;
3731
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3732
+ type: z.ZodLiteral<"time_based">;
3733
+ expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3734
+ autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3735
+ autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3736
+ latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
3737
+ }, z.core.$strip>], "type">;
3738
+ type AssignSubscriptionPlanResponse = z.infer<typeof assignSubscriptionPlanResponseSchema>;
3739
+ declare class AssignSubscriptionPlan extends AbstractApiRequest<typeof assignSubscriptionPlanInputSchema, typeof assignSubscriptionPlanResponseSchema> {
3740
+ readonly method: "POST";
3741
+ readonly contentType: "application/json";
3742
+ readonly accept: "application/json";
3743
+ readonly inputSchema: z.ZodObject<{
3744
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3745
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
3746
+ startsAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
3747
+ }, z.core.$strip>;
3748
+ readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3749
+ id: z.ZodString;
3750
+ status: z.ZodEnum<{
3751
+ created: "created";
3752
+ active: "active";
3753
+ pending_renewal: "pending_renewal";
3754
+ expired: "expired";
3755
+ suspended: "suspended";
3756
+ cancelled: "cancelled";
3757
+ }>;
3758
+ autoRenewal: z.ZodBoolean;
3759
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3760
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3761
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3762
+ id: z.ZodString;
3763
+ code: z.ZodString;
3764
+ name: z.ZodString;
3765
+ type: z.ZodEnum<{
3766
+ infinite: "infinite";
3767
+ time_based: "time_based";
3768
+ consumption: "consumption";
3769
+ }>;
3770
+ isActive: z.ZodBoolean;
3771
+ isPurchasable: z.ZodBoolean;
3772
+ isAdminOnly: z.ZodBoolean;
3773
+ }, z.core.$strip>>>;
3774
+ createdAt: z.ZodString;
3775
+ updatedAt: z.ZodString;
3776
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3777
+ type: z.ZodLiteral<"infinite">;
3778
+ }, z.core.$strip>, z.ZodObject<{
3779
+ id: z.ZodString;
3780
+ status: z.ZodEnum<{
3781
+ created: "created";
3782
+ active: "active";
3783
+ pending_renewal: "pending_renewal";
3784
+ expired: "expired";
3785
+ suspended: "suspended";
3786
+ cancelled: "cancelled";
3787
+ }>;
3788
+ autoRenewal: z.ZodBoolean;
3789
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3790
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3791
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3792
+ id: z.ZodString;
3793
+ code: z.ZodString;
3794
+ name: z.ZodString;
3795
+ type: z.ZodEnum<{
3796
+ infinite: "infinite";
3797
+ time_based: "time_based";
3798
+ consumption: "consumption";
3799
+ }>;
3800
+ isActive: z.ZodBoolean;
3801
+ isPurchasable: z.ZodBoolean;
3802
+ isAdminOnly: z.ZodBoolean;
3803
+ }, z.core.$strip>>>;
3804
+ createdAt: z.ZodString;
3805
+ updatedAt: z.ZodString;
3806
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3807
+ type: z.ZodLiteral<"consumption">;
3808
+ credits: z.ZodCoercedNumber<unknown>;
3809
+ autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3810
+ autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3811
+ hasAvailableCredits: z.ZodBoolean;
3812
+ }, z.core.$strip>, z.ZodObject<{
3813
+ id: z.ZodString;
3814
+ status: z.ZodEnum<{
3815
+ created: "created";
3816
+ active: "active";
3817
+ pending_renewal: "pending_renewal";
3818
+ expired: "expired";
3819
+ suspended: "suspended";
3820
+ cancelled: "cancelled";
3821
+ }>;
3822
+ autoRenewal: z.ZodBoolean;
3823
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3824
+ customUnitPrice: z.ZodNullable<z.ZodString>;
3825
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3826
+ id: z.ZodString;
3827
+ code: z.ZodString;
3828
+ name: z.ZodString;
3829
+ type: z.ZodEnum<{
3830
+ infinite: "infinite";
3831
+ time_based: "time_based";
3832
+ consumption: "consumption";
3833
+ }>;
3834
+ isActive: z.ZodBoolean;
3835
+ isPurchasable: z.ZodBoolean;
3836
+ isAdminOnly: z.ZodBoolean;
3837
+ }, z.core.$strip>>>;
3838
+ createdAt: z.ZodString;
3839
+ updatedAt: z.ZodString;
3840
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3841
+ type: z.ZodLiteral<"time_based">;
3842
+ expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3843
+ autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3844
+ autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3845
+ latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
3846
+ }, z.core.$strip>], "type">;
3847
+ readonly querySchema: undefined;
3848
+ readonly headersSchema: undefined;
3849
+ private readonly subscriptionPlanId;
3850
+ constructor(subscriptionPlanId: string, input: AssignSubscriptionPlanInput);
3851
+ getPath(): string;
3852
+ }
3853
+
3854
+ type CalculateSubscriptionPlanPurchaseQuoteInput = z.input<typeof calculateSubscriptionPlanPurchaseQuoteInputSchema>;
3855
+ declare const calculateSubscriptionPlanPurchaseQuoteResponseSchema: z.ZodObject<{
3856
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3857
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
3858
+ type: z.ZodEnum<{
3859
+ infinite: "infinite";
3860
+ time_based: "time_based";
3861
+ consumption: "consumption";
3862
+ }>;
3863
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3864
+ autoRenewal: z.ZodBoolean;
3865
+ threshold: z.ZodCoercedNumber<unknown>;
3866
+ unitPrice: z.ZodString;
3867
+ amount: z.ZodString;
3868
+ }, z.core.$strip>;
3869
+ type CalculateSubscriptionPlanPurchaseQuoteResponse = z.infer<typeof calculateSubscriptionPlanPurchaseQuoteResponseSchema>;
3870
+ declare class CalculateSubscriptionPlanPurchaseQuote extends AbstractApiRequest<typeof calculateSubscriptionPlanPurchaseQuoteInputSchema, typeof calculateSubscriptionPlanPurchaseQuoteResponseSchema> {
3871
+ readonly method: "POST";
3872
+ readonly contentType: "application/json";
3873
+ readonly accept: "application/json";
3874
+ readonly inputSchema: z.ZodObject<{
3875
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3876
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
3877
+ startsAt: z.ZodNullable<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
3878
+ }, z.core.$strip>;
3879
+ readonly outputSchema: z.ZodObject<{
3880
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
3881
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
3882
+ type: z.ZodEnum<{
3883
+ infinite: "infinite";
3884
+ time_based: "time_based";
3885
+ consumption: "consumption";
3886
+ }>;
3887
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
3888
+ autoRenewal: z.ZodBoolean;
3889
+ threshold: z.ZodCoercedNumber<unknown>;
3890
+ unitPrice: z.ZodString;
3891
+ amount: z.ZodString;
3892
+ }, z.core.$strip>;
3893
+ readonly querySchema: undefined;
3894
+ readonly headersSchema: undefined;
3895
+ private readonly subscriptionPlanId;
3896
+ constructor(subscriptionPlanId: string, input: CalculateSubscriptionPlanPurchaseQuoteInput);
3897
+ getPath(): string;
3898
+ }
3899
+
3900
+ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
3901
+ code: z.ZodNonOptional<z.ZodString>;
3902
+ name: z.ZodNonOptional<z.ZodString>;
3903
+ description: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3904
+ type: z.ZodNonOptional<z.ZodEnum<{
3905
+ infinite: "infinite";
3906
+ time_based: "time_based";
3907
+ consumption: "consumption";
3908
+ }>>;
3909
+ isActive: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3910
+ isPurchasable: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3911
+ isAdminOnly: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3912
+ defaultAutoRenewal: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3913
+ includedCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3914
+ renewalCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3915
+ renewalThreshold: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3916
+ durationDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3917
+ renewalDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3918
+ renewalOffsetDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3919
+ operationCosts: z.ZodNonOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3920
+ }, z.core.$strip>;
3921
+ type CreateSubscriptionPlanInput = z.input<typeof createSubscriptionPlanInputSchema>;
3922
+ declare const createSubscriptionPlanResponseSchema: z.ZodObject<{
3923
+ id: z.ZodString;
3924
+ code: z.ZodString;
3925
+ name: z.ZodString;
3926
+ description: z.ZodNullable<z.ZodString>;
3927
+ type: z.ZodEnum<{
3928
+ infinite: "infinite";
3929
+ time_based: "time_based";
3930
+ consumption: "consumption";
3931
+ }>;
3932
+ isActive: z.ZodBoolean;
3933
+ isPurchasable: z.ZodBoolean;
3934
+ isAdminOnly: z.ZodBoolean;
3935
+ defaultAutoRenewal: z.ZodBoolean;
3936
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3937
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3938
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3939
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3940
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3941
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3942
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3943
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3944
+ id: z.ZodString;
3945
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3946
+ threshold: z.ZodCoercedNumber<unknown>;
3947
+ unitPrice: z.ZodString;
3948
+ }, z.core.$strip>>>;
3949
+ createdAt: z.ZodString;
3950
+ updatedAt: z.ZodString;
3951
+ }, z.core.$strip>;
3952
+ type CreateSubscriptionPlanResponse = z.infer<typeof createSubscriptionPlanResponseSchema>;
3953
+ declare class CreateSubscriptionPlan extends AbstractApiRequest<typeof createSubscriptionPlanInputSchema, typeof createSubscriptionPlanResponseSchema> {
3954
+ readonly method: "POST";
3955
+ readonly contentType: "application/json";
3956
+ readonly accept: "application/json";
3957
+ readonly inputSchema: z.ZodObject<{
3958
+ code: z.ZodNonOptional<z.ZodString>;
3959
+ name: z.ZodNonOptional<z.ZodString>;
3960
+ description: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3961
+ type: z.ZodNonOptional<z.ZodEnum<{
3962
+ infinite: "infinite";
3963
+ time_based: "time_based";
3964
+ consumption: "consumption";
3965
+ }>>;
3966
+ isActive: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3967
+ isPurchasable: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3968
+ isAdminOnly: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3969
+ defaultAutoRenewal: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3970
+ includedCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3971
+ renewalCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3972
+ renewalThreshold: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3973
+ durationDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3974
+ renewalDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3975
+ renewalOffsetDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3976
+ operationCosts: z.ZodNonOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3977
+ }, z.core.$strip>;
3978
+ readonly outputSchema: z.ZodObject<{
3979
+ id: z.ZodString;
3980
+ code: z.ZodString;
3981
+ name: z.ZodString;
3982
+ description: z.ZodNullable<z.ZodString>;
3983
+ type: z.ZodEnum<{
3984
+ infinite: "infinite";
3985
+ time_based: "time_based";
3986
+ consumption: "consumption";
3987
+ }>;
3988
+ isActive: z.ZodBoolean;
3989
+ isPurchasable: z.ZodBoolean;
3990
+ isAdminOnly: z.ZodBoolean;
3991
+ defaultAutoRenewal: z.ZodBoolean;
3992
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3993
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3994
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3995
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3996
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3997
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3998
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3999
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4000
+ id: z.ZodString;
4001
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4002
+ threshold: z.ZodCoercedNumber<unknown>;
4003
+ unitPrice: z.ZodString;
4004
+ }, z.core.$strip>>>;
4005
+ createdAt: z.ZodString;
4006
+ updatedAt: z.ZodString;
4007
+ }, z.core.$strip>;
4008
+ readonly querySchema: undefined;
4009
+ readonly headersSchema: undefined;
4010
+ constructor(input: CreateSubscriptionPlanInput);
4011
+ getPath(): string;
4012
+ }
4013
+
4014
+ declare const deleteSubscriptionPlanInputSchema: z.ZodUndefined;
4015
+ type DeleteSubscriptionPlanInput = z.input<typeof deleteSubscriptionPlanInputSchema>;
4016
+ declare const deleteSubscriptionPlanResponseSchema: z.ZodUndefined;
4017
+ type DeleteSubscriptionPlanResponse = z.infer<typeof deleteSubscriptionPlanResponseSchema>;
4018
+ declare class DeleteSubscriptionPlan extends AbstractApiRequest<typeof deleteSubscriptionPlanInputSchema, typeof deleteSubscriptionPlanResponseSchema> {
4019
+ readonly method: "DELETE";
4020
+ readonly contentType: "application/json";
4021
+ readonly accept: "application/json";
4022
+ readonly inputSchema: z.ZodUndefined;
4023
+ readonly outputSchema: z.ZodUndefined;
4024
+ readonly querySchema: undefined;
4025
+ readonly headersSchema: undefined;
4026
+ private readonly subscriptionPlanId;
4027
+ constructor(subscriptionPlanId: string);
4028
+ getPath(): string;
4029
+ }
4030
+
4031
+ declare const getSubscriptionPlanCatalogInputSchema: z.ZodUndefined;
4032
+ type GetSubscriptionPlanCatalogInput = z.input<typeof getSubscriptionPlanCatalogInputSchema>;
4033
+ type GetSubscriptionPlanCatalogResponse = z.infer<typeof getSubscriptionPlanCatalogResponseSchema>;
4034
+ declare class GetSubscriptionPlanCatalog extends AbstractApiRequest<typeof getSubscriptionPlanCatalogInputSchema, typeof getSubscriptionPlanCatalogResponseSchema> {
4035
+ readonly method: "GET";
4036
+ readonly contentType: "application/json";
4037
+ readonly accept: "application/json";
4038
+ readonly inputSchema: z.ZodUndefined;
4039
+ readonly outputSchema: z.ZodArray<z.ZodObject<{
4040
+ id: z.ZodString;
4041
+ code: z.ZodString;
4042
+ name: z.ZodString;
4043
+ description: z.ZodNullable<z.ZodString>;
4044
+ type: z.ZodEnum<{
4045
+ infinite: "infinite";
4046
+ time_based: "time_based";
4047
+ consumption: "consumption";
4048
+ }>;
4049
+ isActive: z.ZodBoolean;
4050
+ isPurchasable: z.ZodBoolean;
4051
+ isAdminOnly: z.ZodBoolean;
4052
+ defaultAutoRenewal: z.ZodBoolean;
4053
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4054
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4055
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4056
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4057
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4058
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4059
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4060
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4061
+ id: z.ZodString;
4062
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4063
+ threshold: z.ZodCoercedNumber<unknown>;
4064
+ unitPrice: z.ZodString;
4065
+ }, z.core.$strip>>>;
4066
+ createdAt: z.ZodString;
4067
+ updatedAt: z.ZodString;
4068
+ }, z.core.$strip>>;
4069
+ readonly querySchema: undefined;
4070
+ readonly headersSchema: undefined;
4071
+ readonly listItemSchema: z.ZodObject<{
4072
+ id: z.ZodString;
4073
+ code: z.ZodString;
4074
+ name: z.ZodString;
4075
+ description: z.ZodNullable<z.ZodString>;
4076
+ type: z.ZodEnum<{
4077
+ infinite: "infinite";
4078
+ time_based: "time_based";
4079
+ consumption: "consumption";
4080
+ }>;
4081
+ isActive: z.ZodBoolean;
4082
+ isPurchasable: z.ZodBoolean;
4083
+ isAdminOnly: z.ZodBoolean;
4084
+ defaultAutoRenewal: z.ZodBoolean;
4085
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4086
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4087
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4088
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4089
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4090
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4091
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4092
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4093
+ id: z.ZodString;
4094
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4095
+ threshold: z.ZodCoercedNumber<unknown>;
4096
+ unitPrice: z.ZodString;
4097
+ }, z.core.$strip>>>;
4098
+ createdAt: z.ZodString;
4099
+ updatedAt: z.ZodString;
4100
+ }, z.core.$strip>;
4101
+ readonly paginationDefaultEnabled = false;
4102
+ constructor();
4103
+ getPath(): string;
4104
+ }
4105
+
4106
+ declare const getSubscriptionPlanCatalogDetailsInputSchema: z.ZodUndefined;
4107
+ type GetSubscriptionPlanCatalogDetailsInput = z.input<typeof getSubscriptionPlanCatalogDetailsInputSchema>;
4108
+ declare const getSubscriptionPlanCatalogDetailsResponseSchema: z.ZodObject<{
4109
+ id: z.ZodString;
4110
+ code: z.ZodString;
4111
+ name: z.ZodString;
4112
+ description: z.ZodNullable<z.ZodString>;
4113
+ type: z.ZodEnum<{
4114
+ infinite: "infinite";
4115
+ time_based: "time_based";
4116
+ consumption: "consumption";
4117
+ }>;
4118
+ isActive: z.ZodBoolean;
4119
+ isPurchasable: z.ZodBoolean;
4120
+ isAdminOnly: z.ZodBoolean;
4121
+ defaultAutoRenewal: z.ZodBoolean;
4122
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4123
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4124
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4125
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4126
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4127
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4128
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4129
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4130
+ id: z.ZodString;
4131
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4132
+ threshold: z.ZodCoercedNumber<unknown>;
4133
+ unitPrice: z.ZodString;
4134
+ }, z.core.$strip>>>;
4135
+ createdAt: z.ZodString;
4136
+ updatedAt: z.ZodString;
4137
+ }, z.core.$strip>;
4138
+ type GetSubscriptionPlanCatalogDetailsResponse = z.infer<typeof getSubscriptionPlanCatalogDetailsResponseSchema>;
4139
+ declare class GetSubscriptionPlanCatalogDetails extends AbstractApiRequest<typeof getSubscriptionPlanCatalogDetailsInputSchema, typeof getSubscriptionPlanCatalogDetailsResponseSchema> {
4140
+ readonly method: "GET";
4141
+ readonly contentType: "application/json";
4142
+ readonly accept: "application/json";
4143
+ readonly inputSchema: z.ZodUndefined;
4144
+ readonly outputSchema: z.ZodObject<{
4145
+ id: z.ZodString;
4146
+ code: z.ZodString;
4147
+ name: z.ZodString;
4148
+ description: z.ZodNullable<z.ZodString>;
4149
+ type: z.ZodEnum<{
4150
+ infinite: "infinite";
4151
+ time_based: "time_based";
4152
+ consumption: "consumption";
4153
+ }>;
4154
+ isActive: z.ZodBoolean;
4155
+ isPurchasable: z.ZodBoolean;
4156
+ isAdminOnly: z.ZodBoolean;
4157
+ defaultAutoRenewal: z.ZodBoolean;
4158
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4159
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4160
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4161
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4162
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4163
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4164
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4165
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4166
+ id: z.ZodString;
4167
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4168
+ threshold: z.ZodCoercedNumber<unknown>;
4169
+ unitPrice: z.ZodString;
4170
+ }, z.core.$strip>>>;
4171
+ createdAt: z.ZodString;
4172
+ updatedAt: z.ZodString;
4173
+ }, z.core.$strip>;
4174
+ readonly querySchema: undefined;
4175
+ readonly headersSchema: undefined;
4176
+ private readonly subscriptionPlanId;
4177
+ constructor(subscriptionPlanId: string);
4178
+ getPath(): string;
4179
+ }
4180
+
4181
+ declare const getSubscriptionPlanDetailsInputSchema: z.ZodUndefined;
4182
+ type GetSubscriptionPlanDetailsInput = z.input<typeof getSubscriptionPlanDetailsInputSchema>;
4183
+ declare const getSubscriptionPlanDetailsResponseSchema: z.ZodObject<{
4184
+ id: z.ZodString;
4185
+ code: z.ZodString;
4186
+ name: z.ZodString;
4187
+ description: z.ZodNullable<z.ZodString>;
4188
+ type: z.ZodEnum<{
4189
+ infinite: "infinite";
4190
+ time_based: "time_based";
4191
+ consumption: "consumption";
4192
+ }>;
4193
+ isActive: z.ZodBoolean;
4194
+ isPurchasable: z.ZodBoolean;
4195
+ isAdminOnly: z.ZodBoolean;
4196
+ defaultAutoRenewal: z.ZodBoolean;
4197
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4198
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4199
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4200
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4201
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4202
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4203
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4204
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4205
+ id: z.ZodString;
4206
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4207
+ threshold: z.ZodCoercedNumber<unknown>;
4208
+ unitPrice: z.ZodString;
4209
+ }, z.core.$strip>>>;
4210
+ createdAt: z.ZodString;
4211
+ updatedAt: z.ZodString;
4212
+ }, z.core.$strip>;
4213
+ type GetSubscriptionPlanDetailsResponse = z.infer<typeof getSubscriptionPlanDetailsResponseSchema>;
4214
+ declare class GetSubscriptionPlanDetails extends AbstractApiRequest<typeof getSubscriptionPlanDetailsInputSchema, typeof getSubscriptionPlanDetailsResponseSchema> {
4215
+ readonly method: "GET";
4216
+ readonly contentType: "application/json";
4217
+ readonly accept: "application/json";
4218
+ readonly inputSchema: z.ZodUndefined;
4219
+ readonly outputSchema: z.ZodObject<{
4220
+ id: z.ZodString;
4221
+ code: z.ZodString;
4222
+ name: z.ZodString;
4223
+ description: z.ZodNullable<z.ZodString>;
4224
+ type: z.ZodEnum<{
4225
+ infinite: "infinite";
4226
+ time_based: "time_based";
4227
+ consumption: "consumption";
4228
+ }>;
4229
+ isActive: z.ZodBoolean;
4230
+ isPurchasable: z.ZodBoolean;
4231
+ isAdminOnly: z.ZodBoolean;
4232
+ defaultAutoRenewal: z.ZodBoolean;
4233
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4234
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4235
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4236
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4237
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4238
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4239
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4240
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4241
+ id: z.ZodString;
4242
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4243
+ threshold: z.ZodCoercedNumber<unknown>;
4244
+ unitPrice: z.ZodString;
4245
+ }, z.core.$strip>>>;
4246
+ createdAt: z.ZodString;
4247
+ updatedAt: z.ZodString;
4248
+ }, z.core.$strip>;
4249
+ readonly querySchema: undefined;
4250
+ readonly headersSchema: undefined;
4251
+ private readonly subscriptionPlanId;
4252
+ constructor(subscriptionPlanId: string);
4253
+ getPath(): string;
4254
+ }
4255
+
4256
+ type GetSubscriptionPlansQueryParams = SubscriptionPlansQueryParams;
4257
+ declare const getSubscriptionPlansInputSchema: z.ZodUndefined;
4258
+ type GetSubscriptionPlansInput = z.input<typeof getSubscriptionPlansInputSchema>;
4259
+ type GetSubscriptionPlansResponse = z.infer<typeof getSubscriptionPlansResponseSchema>;
4260
+ declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscriptionPlansInputSchema, typeof getSubscriptionPlansResponseSchema, GetSubscriptionPlansQueryParams> {
4261
+ readonly method: "GET";
3461
4262
  readonly contentType: "application/json";
3462
4263
  readonly accept: "application/json";
4264
+ readonly inputSchema: z.ZodUndefined;
4265
+ readonly outputSchema: z.ZodObject<{
4266
+ data: z.ZodArray<z.ZodObject<{
4267
+ id: z.ZodString;
4268
+ code: z.ZodString;
4269
+ name: z.ZodString;
4270
+ description: z.ZodNullable<z.ZodString>;
4271
+ type: z.ZodEnum<{
4272
+ infinite: "infinite";
4273
+ time_based: "time_based";
4274
+ consumption: "consumption";
4275
+ }>;
4276
+ isActive: z.ZodBoolean;
4277
+ isPurchasable: z.ZodBoolean;
4278
+ isAdminOnly: z.ZodBoolean;
4279
+ defaultAutoRenewal: z.ZodBoolean;
4280
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4281
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4282
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4283
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4284
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4285
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4286
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4287
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4288
+ id: z.ZodString;
4289
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4290
+ threshold: z.ZodCoercedNumber<unknown>;
4291
+ unitPrice: z.ZodString;
4292
+ }, z.core.$strip>>>;
4293
+ createdAt: z.ZodString;
4294
+ updatedAt: z.ZodString;
4295
+ }, z.core.$strip>>;
4296
+ pagination: z.ZodObject<{
4297
+ from: z.ZodCoercedNumber<unknown>;
4298
+ to: z.ZodCoercedNumber<unknown>;
4299
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
4300
+ totalItems: z.ZodCoercedNumber<unknown>;
4301
+ currentPage: z.ZodCoercedNumber<unknown>;
4302
+ lastPage: z.ZodCoercedNumber<unknown>;
4303
+ }, z.core.$strip>;
4304
+ }, z.core.$strip>;
4305
+ readonly querySchema: z.ZodObject<{
4306
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4307
+ code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4308
+ name: z.ZodOptional<z.ZodString>;
4309
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4310
+ infinite: "infinite";
4311
+ time_based: "time_based";
4312
+ consumption: "consumption";
4313
+ }>, z.ZodArray<z.ZodEnum<{
4314
+ infinite: "infinite";
4315
+ time_based: "time_based";
4316
+ consumption: "consumption";
4317
+ }>>]>>;
4318
+ isActive: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4319
+ isPurchasable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4320
+ isAdminOnly: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4321
+ defaultAutoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
4322
+ 'order[name]': z.ZodOptional<z.ZodEnum<{
4323
+ asc: "asc";
4324
+ desc: "desc";
4325
+ }>>;
4326
+ 'order[code]': z.ZodOptional<z.ZodEnum<{
4327
+ asc: "asc";
4328
+ desc: "desc";
4329
+ }>>;
4330
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
4331
+ asc: "asc";
4332
+ desc: "desc";
4333
+ }>>;
4334
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
4335
+ asc: "asc";
4336
+ desc: "desc";
4337
+ }>>;
4338
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4339
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
4340
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4341
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
4342
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4343
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4344
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4345
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4346
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4347
+ }, z.core.$strip>;
4348
+ readonly headersSchema: undefined;
4349
+ readonly listItemSchema: z.ZodObject<{
4350
+ id: z.ZodString;
4351
+ code: z.ZodString;
4352
+ name: z.ZodString;
4353
+ description: z.ZodNullable<z.ZodString>;
4354
+ type: z.ZodEnum<{
4355
+ infinite: "infinite";
4356
+ time_based: "time_based";
4357
+ consumption: "consumption";
4358
+ }>;
4359
+ isActive: z.ZodBoolean;
4360
+ isPurchasable: z.ZodBoolean;
4361
+ isAdminOnly: z.ZodBoolean;
4362
+ defaultAutoRenewal: z.ZodBoolean;
4363
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4364
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4365
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4366
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4367
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4368
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4369
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4370
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4371
+ id: z.ZodString;
4372
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4373
+ threshold: z.ZodCoercedNumber<unknown>;
4374
+ unitPrice: z.ZodString;
4375
+ }, z.core.$strip>>>;
4376
+ createdAt: z.ZodString;
4377
+ updatedAt: z.ZodString;
4378
+ }, z.core.$strip>;
4379
+ readonly paginationDefaultEnabled = true;
4380
+ constructor(options?: {
4381
+ query?: GetSubscriptionPlansQueryParams;
4382
+ });
4383
+ getPath(): string;
4384
+ }
4385
+
4386
+ declare const updateSubscriptionPlanInputSchema: z.ZodObject<{
4387
+ code: z.ZodOptional<z.ZodString>;
4388
+ name: z.ZodOptional<z.ZodString>;
4389
+ description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
4390
+ type: z.ZodOptional<z.ZodEnum<{
4391
+ infinite: "infinite";
4392
+ time_based: "time_based";
4393
+ consumption: "consumption";
4394
+ }>>;
4395
+ isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4396
+ isPurchasable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4397
+ isAdminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4398
+ defaultAutoRenewal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4399
+ includedCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4400
+ renewalCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4401
+ renewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4402
+ durationDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4403
+ renewalDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4404
+ renewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4405
+ operationCosts: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
4406
+ }, z.core.$strip>;
4407
+ type UpdateSubscriptionPlanInput = z.input<typeof updateSubscriptionPlanInputSchema>;
4408
+ declare const updateSubscriptionPlanResponseSchema: z.ZodObject<{
4409
+ id: z.ZodString;
4410
+ code: z.ZodString;
4411
+ name: z.ZodString;
4412
+ description: z.ZodNullable<z.ZodString>;
4413
+ type: z.ZodEnum<{
4414
+ infinite: "infinite";
4415
+ time_based: "time_based";
4416
+ consumption: "consumption";
4417
+ }>;
4418
+ isActive: z.ZodBoolean;
4419
+ isPurchasable: z.ZodBoolean;
4420
+ isAdminOnly: z.ZodBoolean;
4421
+ defaultAutoRenewal: z.ZodBoolean;
4422
+ includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4423
+ renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4424
+ renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4425
+ durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4426
+ renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4427
+ renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
4428
+ operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
4429
+ priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
4430
+ id: z.ZodString;
4431
+ iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
4432
+ threshold: z.ZodCoercedNumber<unknown>;
4433
+ unitPrice: z.ZodString;
4434
+ }, z.core.$strip>>>;
4435
+ createdAt: z.ZodString;
4436
+ updatedAt: z.ZodString;
4437
+ }, z.core.$strip>;
4438
+ type UpdateSubscriptionPlanResponse = z.infer<typeof updateSubscriptionPlanResponseSchema>;
4439
+ declare class UpdateSubscriptionPlan extends AbstractApiRequest<typeof updateSubscriptionPlanInputSchema, typeof updateSubscriptionPlanResponseSchema> {
4440
+ readonly method: "PATCH";
4441
+ readonly contentType: "application/merge-patch+json";
4442
+ readonly accept: "application/json";
3463
4443
  readonly inputSchema: z.ZodObject<{
3464
- code: z.ZodNonOptional<z.ZodString>;
3465
- name: z.ZodNonOptional<z.ZodString>;
3466
- description: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3467
- type: z.ZodNonOptional<z.ZodEnum<{
4444
+ code: z.ZodOptional<z.ZodString>;
4445
+ name: z.ZodOptional<z.ZodString>;
4446
+ description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
4447
+ type: z.ZodOptional<z.ZodEnum<{
3468
4448
  infinite: "infinite";
3469
4449
  time_based: "time_based";
3470
4450
  consumption: "consumption";
3471
4451
  }>>;
3472
- isActive: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3473
- isPurchasable: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3474
- isAdminOnly: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3475
- defaultAutoRenewal: z.ZodNonOptional<z.ZodOptional<z.ZodBoolean>>;
3476
- includedCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3477
- renewalCredits: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3478
- renewalThreshold: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3479
- durationDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3480
- renewalDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3481
- renewalOffsetDays: z.ZodNonOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3482
- operationCosts: z.ZodNonOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
4452
+ isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4453
+ isPurchasable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4454
+ isAdminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4455
+ defaultAutoRenewal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4456
+ includedCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4457
+ renewalCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4458
+ renewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4459
+ durationDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4460
+ renewalDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4461
+ renewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
4462
+ operationCosts: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3483
4463
  }, z.core.$strip>;
3484
4464
  readonly outputSchema: z.ZodObject<{
3485
4465
  id: z.ZodString;
@@ -3513,257 +4493,478 @@ declare class CreateSubscriptionPlan extends AbstractApiRequest<typeof createSub
3513
4493
  }, z.core.$strip>;
3514
4494
  readonly querySchema: undefined;
3515
4495
  readonly headersSchema: undefined;
3516
- constructor(input: CreateSubscriptionPlanInput);
4496
+ private readonly subscriptionPlanId;
4497
+ constructor(subscriptionPlanId: string, input: UpdateSubscriptionPlanInput);
3517
4498
  getPath(): string;
3518
4499
  }
3519
4500
 
3520
- declare const deleteSubscriptionPlanInputSchema: z.ZodUndefined;
3521
- type DeleteSubscriptionPlanInput = z.input<typeof deleteSubscriptionPlanInputSchema>;
3522
- declare const deleteSubscriptionPlanResponseSchema: z.ZodUndefined;
3523
- type DeleteSubscriptionPlanResponse = z.infer<typeof deleteSubscriptionPlanResponseSchema>;
3524
- declare class DeleteSubscriptionPlan extends AbstractApiRequest<typeof deleteSubscriptionPlanInputSchema, typeof deleteSubscriptionPlanResponseSchema> {
3525
- readonly method: "DELETE";
3526
- readonly contentType: "application/json";
3527
- readonly accept: "application/json";
4501
+ declare const createSubscriptionPriceInputSchema: z.ZodObject<{
4502
+ type: z.ZodNonOptional<z.ZodEnum<{
4503
+ infinite: "infinite";
4504
+ time_based: "time_based";
4505
+ consumption: "consumption";
4506
+ }>>;
4507
+ plan: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4508
+ threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
4509
+ unitPrice: z.ZodNonOptional<z.ZodString>;
4510
+ }, z.core.$strip>;
4511
+ type CreateSubscriptionPriceInput = z.input<typeof createSubscriptionPriceInputSchema>;
4512
+ declare const createSubscriptionPriceResponseSchema: z.ZodObject<{
4513
+ id: z.ZodString;
4514
+ type: z.ZodEnum<{
4515
+ infinite: "infinite";
4516
+ time_based: "time_based";
4517
+ consumption: "consumption";
4518
+ }>;
4519
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4520
+ threshold: z.ZodCoercedNumber<unknown>;
4521
+ unitPrice: z.ZodString;
4522
+ createdAt: z.ZodString;
4523
+ updatedAt: z.ZodString;
4524
+ }, z.core.$strip>;
4525
+ type CreateSubscriptionPriceResponse = z.infer<typeof createSubscriptionPriceResponseSchema>;
4526
+ declare class CreateSubscriptionPrice extends AbstractApiRequest<typeof createSubscriptionPriceInputSchema, typeof createSubscriptionPriceResponseSchema> {
4527
+ readonly method = "POST";
4528
+ readonly contentType = "application/json";
4529
+ readonly accept = "application/json";
4530
+ readonly inputSchema: z.ZodObject<{
4531
+ type: z.ZodNonOptional<z.ZodEnum<{
4532
+ infinite: "infinite";
4533
+ time_based: "time_based";
4534
+ consumption: "consumption";
4535
+ }>>;
4536
+ plan: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4537
+ threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
4538
+ unitPrice: z.ZodNonOptional<z.ZodString>;
4539
+ }, z.core.$strip>;
4540
+ readonly outputSchema: z.ZodObject<{
4541
+ id: z.ZodString;
4542
+ type: z.ZodEnum<{
4543
+ infinite: "infinite";
4544
+ time_based: "time_based";
4545
+ consumption: "consumption";
4546
+ }>;
4547
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4548
+ threshold: z.ZodCoercedNumber<unknown>;
4549
+ unitPrice: z.ZodString;
4550
+ createdAt: z.ZodString;
4551
+ updatedAt: z.ZodString;
4552
+ }, z.core.$strip>;
4553
+ readonly querySchema: undefined;
4554
+ readonly headersSchema: undefined;
4555
+ constructor(input: CreateSubscriptionPriceInput);
4556
+ getPath(): string;
4557
+ }
4558
+
4559
+ declare const deleteSubscriptionPriceInputSchema: z.ZodUndefined;
4560
+ declare const deleteSubscriptionPriceResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
4561
+ declare class DeleteSubscriptionPrice extends AbstractApiRequest<typeof deleteSubscriptionPriceInputSchema, typeof deleteSubscriptionPriceResponseSchema> {
4562
+ readonly method = "DELETE";
4563
+ readonly contentType = "application/json";
4564
+ readonly accept = "application/json";
3528
4565
  readonly inputSchema: z.ZodUndefined;
3529
- readonly outputSchema: z.ZodUndefined;
4566
+ readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
3530
4567
  readonly querySchema: undefined;
3531
4568
  readonly headersSchema: undefined;
3532
- private readonly subscriptionPlanId;
3533
- constructor(subscriptionPlanId: string);
4569
+ private readonly priceId;
4570
+ constructor(priceId: string);
3534
4571
  getPath(): string;
3535
4572
  }
3536
4573
 
3537
- declare const getSubscriptionPlanCatalogInputSchema: z.ZodUndefined;
3538
- type GetSubscriptionPlanCatalogInput = z.input<typeof getSubscriptionPlanCatalogInputSchema>;
3539
- type GetSubscriptionPlanCatalogResponse = z.infer<typeof getSubscriptionPlanCatalogResponseSchema>;
3540
- declare class GetSubscriptionPlanCatalog extends AbstractApiRequest<typeof getSubscriptionPlanCatalogInputSchema, typeof getSubscriptionPlanCatalogResponseSchema> {
3541
- readonly method: "GET";
3542
- readonly contentType: "application/json";
3543
- readonly accept: "application/json";
4574
+ declare const getSubscriptionPriceDetailsInputSchema: z.ZodUndefined;
4575
+ type GetSubscriptionPriceDetailsInput = z.input<typeof getSubscriptionPriceDetailsInputSchema>;
4576
+ declare const getSubscriptionPriceDetailsResponseSchema: z.ZodObject<{
4577
+ id: z.ZodString;
4578
+ type: z.ZodEnum<{
4579
+ infinite: "infinite";
4580
+ time_based: "time_based";
4581
+ consumption: "consumption";
4582
+ }>;
4583
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4584
+ threshold: z.ZodCoercedNumber<unknown>;
4585
+ unitPrice: z.ZodString;
4586
+ createdAt: z.ZodString;
4587
+ updatedAt: z.ZodString;
4588
+ }, z.core.$strip>;
4589
+ type GetSubscriptionPriceDetailsResponse = z.infer<typeof getSubscriptionPriceDetailsResponseSchema>;
4590
+ declare class GetSubscriptionPriceDetails extends AbstractApiRequest<typeof getSubscriptionPriceDetailsInputSchema, typeof getSubscriptionPriceDetailsResponseSchema> {
4591
+ readonly method = "GET";
4592
+ readonly contentType = "application/json";
4593
+ readonly accept = "application/json";
3544
4594
  readonly inputSchema: z.ZodUndefined;
3545
- readonly outputSchema: z.ZodArray<z.ZodObject<{
4595
+ readonly outputSchema: z.ZodObject<{
3546
4596
  id: z.ZodString;
3547
- code: z.ZodString;
3548
- name: z.ZodString;
3549
- description: z.ZodNullable<z.ZodString>;
3550
4597
  type: z.ZodEnum<{
3551
4598
  infinite: "infinite";
3552
4599
  time_based: "time_based";
3553
4600
  consumption: "consumption";
3554
4601
  }>;
3555
- isActive: z.ZodBoolean;
3556
- isPurchasable: z.ZodBoolean;
3557
- isAdminOnly: z.ZodBoolean;
3558
- defaultAutoRenewal: z.ZodBoolean;
3559
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3560
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3561
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3562
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3563
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3564
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3565
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3566
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3567
- id: z.ZodString;
3568
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3569
- threshold: z.ZodCoercedNumber<unknown>;
3570
- unitPrice: z.ZodString;
3571
- }, z.core.$strip>>>;
4602
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4603
+ threshold: z.ZodCoercedNumber<unknown>;
4604
+ unitPrice: z.ZodString;
3572
4605
  createdAt: z.ZodString;
3573
4606
  updatedAt: z.ZodString;
3574
- }, z.core.$strip>>;
4607
+ }, z.core.$strip>;
3575
4608
  readonly querySchema: undefined;
3576
4609
  readonly headersSchema: undefined;
4610
+ private readonly priceId;
4611
+ constructor(priceId: string);
4612
+ getPath(): string;
4613
+ }
4614
+
4615
+ type GetSubscriptionPricesQueryParams = SubscriptionPricesQueryParams;
4616
+ declare const getSubscriptionPricesInputSchema: z.ZodUndefined;
4617
+ type GetSubscriptionPricesInput = z.input<typeof getSubscriptionPricesInputSchema>;
4618
+ type GetSubscriptionPricesResponse = z.infer<typeof getSubscriptionPricesResponseSchema>;
4619
+ declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscriptionPricesInputSchema, typeof getSubscriptionPricesResponseSchema, GetSubscriptionPricesQueryParams> {
4620
+ readonly method: "GET";
4621
+ readonly contentType: "application/json";
4622
+ readonly accept: "application/json";
4623
+ readonly inputSchema: z.ZodUndefined;
4624
+ readonly outputSchema: z.ZodObject<{
4625
+ data: z.ZodArray<z.ZodObject<{
4626
+ id: z.ZodString;
4627
+ type: z.ZodEnum<{
4628
+ infinite: "infinite";
4629
+ time_based: "time_based";
4630
+ consumption: "consumption";
4631
+ }>;
4632
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4633
+ threshold: z.ZodCoercedNumber<unknown>;
4634
+ unitPrice: z.ZodString;
4635
+ createdAt: z.ZodString;
4636
+ updatedAt: z.ZodString;
4637
+ }, z.core.$strip>>;
4638
+ pagination: z.ZodObject<{
4639
+ from: z.ZodCoercedNumber<unknown>;
4640
+ to: z.ZodCoercedNumber<unknown>;
4641
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
4642
+ totalItems: z.ZodCoercedNumber<unknown>;
4643
+ currentPage: z.ZodCoercedNumber<unknown>;
4644
+ lastPage: z.ZodCoercedNumber<unknown>;
4645
+ }, z.core.$strip>;
4646
+ }, z.core.$strip>;
4647
+ readonly querySchema: z.ZodObject<{
4648
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4649
+ type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4650
+ infinite: "infinite";
4651
+ time_based: "time_based";
4652
+ consumption: "consumption";
4653
+ }>, z.ZodArray<z.ZodEnum<{
4654
+ infinite: "infinite";
4655
+ time_based: "time_based";
4656
+ consumption: "consumption";
4657
+ }>>]>>;
4658
+ 'plan.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4659
+ 'plan.code': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4660
+ 'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4661
+ 'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4662
+ 'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4663
+ 'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4664
+ 'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4665
+ 'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4666
+ 'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4667
+ 'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4668
+ 'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4669
+ 'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4670
+ 'order[threshold]': z.ZodOptional<z.ZodEnum<{
4671
+ asc: "asc";
4672
+ desc: "desc";
4673
+ }>>;
4674
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
4675
+ asc: "asc";
4676
+ desc: "desc";
4677
+ }>>;
4678
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
4679
+ asc: "asc";
4680
+ desc: "desc";
4681
+ }>>;
4682
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4683
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
4684
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4685
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
4686
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4687
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4688
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4689
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4690
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4691
+ }, z.core.$strip>;
4692
+ readonly headersSchema: undefined;
3577
4693
  readonly listItemSchema: z.ZodObject<{
3578
4694
  id: z.ZodString;
3579
- code: z.ZodString;
3580
- name: z.ZodString;
3581
- description: z.ZodNullable<z.ZodString>;
3582
4695
  type: z.ZodEnum<{
3583
4696
  infinite: "infinite";
3584
4697
  time_based: "time_based";
3585
4698
  consumption: "consumption";
3586
4699
  }>;
3587
- isActive: z.ZodBoolean;
3588
- isPurchasable: z.ZodBoolean;
3589
- isAdminOnly: z.ZodBoolean;
3590
- defaultAutoRenewal: z.ZodBoolean;
3591
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3592
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3593
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3594
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3595
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3596
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3597
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3598
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3599
- id: z.ZodString;
3600
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3601
- threshold: z.ZodCoercedNumber<unknown>;
3602
- unitPrice: z.ZodString;
3603
- }, z.core.$strip>>>;
4700
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4701
+ threshold: z.ZodCoercedNumber<unknown>;
4702
+ unitPrice: z.ZodString;
4703
+ createdAt: z.ZodString;
4704
+ updatedAt: z.ZodString;
4705
+ }, z.core.$strip>;
4706
+ readonly paginationDefaultEnabled = true;
4707
+ constructor(options?: {
4708
+ query?: GetSubscriptionPricesQueryParams;
4709
+ });
4710
+ getPath(): string;
4711
+ }
4712
+
4713
+ declare const updateSubscriptionPriceInputSchema: z.ZodObject<{
4714
+ type: z.ZodOptional<z.ZodEnum<{
4715
+ infinite: "infinite";
4716
+ time_based: "time_based";
4717
+ consumption: "consumption";
4718
+ }>>;
4719
+ plan: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4720
+ threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4721
+ unitPrice: z.ZodOptional<z.ZodString>;
4722
+ }, z.core.$strip>;
4723
+ type UpdateSubscriptionPriceInput = z.input<typeof updateSubscriptionPriceInputSchema>;
4724
+ declare const updateSubscriptionPriceResponseSchema: z.ZodObject<{
4725
+ id: z.ZodString;
4726
+ type: z.ZodEnum<{
4727
+ infinite: "infinite";
4728
+ time_based: "time_based";
4729
+ consumption: "consumption";
4730
+ }>;
4731
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4732
+ threshold: z.ZodCoercedNumber<unknown>;
4733
+ unitPrice: z.ZodString;
4734
+ createdAt: z.ZodString;
4735
+ updatedAt: z.ZodString;
4736
+ }, z.core.$strip>;
4737
+ type UpdateSubscriptionPriceResponse = z.infer<typeof updateSubscriptionPriceResponseSchema>;
4738
+ declare class UpdateSubscriptionPrice extends AbstractApiRequest<typeof updateSubscriptionPriceInputSchema, typeof updateSubscriptionPriceResponseSchema> {
4739
+ readonly method = "PATCH";
4740
+ readonly contentType = "application/merge-patch+json";
4741
+ readonly accept = "application/json";
4742
+ readonly inputSchema: z.ZodObject<{
4743
+ type: z.ZodOptional<z.ZodEnum<{
4744
+ infinite: "infinite";
4745
+ time_based: "time_based";
4746
+ consumption: "consumption";
4747
+ }>>;
4748
+ plan: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4749
+ threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4750
+ unitPrice: z.ZodOptional<z.ZodString>;
4751
+ }, z.core.$strip>;
4752
+ readonly outputSchema: z.ZodObject<{
4753
+ id: z.ZodString;
4754
+ type: z.ZodEnum<{
4755
+ infinite: "infinite";
4756
+ time_based: "time_based";
4757
+ consumption: "consumption";
4758
+ }>;
4759
+ plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4760
+ threshold: z.ZodCoercedNumber<unknown>;
4761
+ unitPrice: z.ZodString;
3604
4762
  createdAt: z.ZodString;
3605
4763
  updatedAt: z.ZodString;
3606
4764
  }, z.core.$strip>;
3607
- readonly paginationDefaultEnabled = false;
3608
- constructor();
4765
+ readonly querySchema: undefined;
4766
+ readonly headersSchema: undefined;
4767
+ private readonly priceId;
4768
+ constructor(priceId: string, input: UpdateSubscriptionPriceInput);
3609
4769
  getPath(): string;
3610
4770
  }
3611
4771
 
3612
- declare const getSubscriptionPlanCatalogDetailsInputSchema: z.ZodUndefined;
3613
- type GetSubscriptionPlanCatalogDetailsInput = z.input<typeof getSubscriptionPlanCatalogDetailsInputSchema>;
3614
- declare const getSubscriptionPlanCatalogDetailsResponseSchema: z.ZodObject<{
4772
+ declare const createSubscriptionPurchaseInputSchema: z.ZodObject<{
4773
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4774
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4775
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4776
+ startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
4777
+ }, z.core.$strip>;
4778
+ type CreateSubscriptionPurchaseInput = z.input<typeof createSubscriptionPurchaseInputSchema>;
4779
+ declare const createSubscriptionPurchaseResponseSchema: z.ZodObject<{
3615
4780
  id: z.ZodString;
3616
- code: z.ZodString;
3617
- name: z.ZodString;
3618
- description: z.ZodNullable<z.ZodString>;
4781
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4782
+ status: z.ZodEnum<{
4783
+ pending: "pending";
4784
+ completed: "completed";
4785
+ cancelled: "cancelled";
4786
+ failed: "failed";
4787
+ }>;
3619
4788
  type: z.ZodEnum<{
3620
4789
  infinite: "infinite";
3621
4790
  time_based: "time_based";
3622
4791
  consumption: "consumption";
3623
4792
  }>;
3624
- isActive: z.ZodBoolean;
3625
- isPurchasable: z.ZodBoolean;
3626
- isAdminOnly: z.ZodBoolean;
3627
- defaultAutoRenewal: z.ZodBoolean;
3628
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3629
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3630
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3631
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3632
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3633
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3634
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3635
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3636
- id: z.ZodString;
3637
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3638
- threshold: z.ZodCoercedNumber<unknown>;
3639
- unitPrice: z.ZodString;
3640
- }, z.core.$strip>>>;
4793
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
4794
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4795
+ threshold: z.ZodCoercedNumber<unknown>;
4796
+ amount: z.ZodString;
4797
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
4798
+ stripe: "stripe";
4799
+ bank_transfer: "bank_transfer";
4800
+ cash: "cash";
4801
+ credit_card: "credit_card";
4802
+ }>>;
4803
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
4804
+ pending: "pending";
4805
+ pending_verification: "pending_verification";
4806
+ paid: "paid";
4807
+ canceled: "canceled";
4808
+ refunded: "refunded";
4809
+ failed: "failed";
4810
+ }>>;
3641
4811
  createdAt: z.ZodString;
3642
4812
  updatedAt: z.ZodString;
4813
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4814
+ payment: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>>>;
4815
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>>>;
3643
4816
  }, z.core.$strip>;
3644
- type GetSubscriptionPlanCatalogDetailsResponse = z.infer<typeof getSubscriptionPlanCatalogDetailsResponseSchema>;
3645
- declare class GetSubscriptionPlanCatalogDetails extends AbstractApiRequest<typeof getSubscriptionPlanCatalogDetailsInputSchema, typeof getSubscriptionPlanCatalogDetailsResponseSchema> {
3646
- readonly method: "GET";
4817
+ type CreateSubscriptionPurchaseResponse = z.infer<typeof createSubscriptionPurchaseResponseSchema>;
4818
+ declare class CreateSubscriptionPurchase extends AbstractApiRequest<typeof createSubscriptionPurchaseInputSchema, typeof createSubscriptionPurchaseResponseSchema> {
4819
+ readonly method: "POST";
3647
4820
  readonly contentType: "application/json";
3648
4821
  readonly accept: "application/json";
3649
- readonly inputSchema: z.ZodUndefined;
4822
+ readonly inputSchema: z.ZodObject<{
4823
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4824
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4825
+ autoRenewal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
4826
+ startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
4827
+ }, z.core.$strip>;
3650
4828
  readonly outputSchema: z.ZodObject<{
3651
4829
  id: z.ZodString;
3652
- code: z.ZodString;
3653
- name: z.ZodString;
3654
- description: z.ZodNullable<z.ZodString>;
4830
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4831
+ status: z.ZodEnum<{
4832
+ pending: "pending";
4833
+ completed: "completed";
4834
+ cancelled: "cancelled";
4835
+ failed: "failed";
4836
+ }>;
3655
4837
  type: z.ZodEnum<{
3656
4838
  infinite: "infinite";
3657
4839
  time_based: "time_based";
3658
4840
  consumption: "consumption";
3659
4841
  }>;
3660
- isActive: z.ZodBoolean;
3661
- isPurchasable: z.ZodBoolean;
3662
- isAdminOnly: z.ZodBoolean;
3663
- defaultAutoRenewal: z.ZodBoolean;
3664
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3665
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3666
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3667
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3668
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3669
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3670
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3671
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3672
- id: z.ZodString;
3673
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3674
- threshold: z.ZodCoercedNumber<unknown>;
3675
- unitPrice: z.ZodString;
3676
- }, z.core.$strip>>>;
4842
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
4843
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4844
+ threshold: z.ZodCoercedNumber<unknown>;
4845
+ amount: z.ZodString;
4846
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
4847
+ stripe: "stripe";
4848
+ bank_transfer: "bank_transfer";
4849
+ cash: "cash";
4850
+ credit_card: "credit_card";
4851
+ }>>;
4852
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
4853
+ pending: "pending";
4854
+ pending_verification: "pending_verification";
4855
+ paid: "paid";
4856
+ canceled: "canceled";
4857
+ refunded: "refunded";
4858
+ failed: "failed";
4859
+ }>>;
3677
4860
  createdAt: z.ZodString;
3678
4861
  updatedAt: z.ZodString;
4862
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4863
+ payment: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>>>;
4864
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>>>;
3679
4865
  }, z.core.$strip>;
3680
4866
  readonly querySchema: undefined;
3681
4867
  readonly headersSchema: undefined;
3682
- private readonly subscriptionPlanId;
3683
- constructor(subscriptionPlanId: string);
4868
+ constructor(input: CreateSubscriptionPurchaseInput);
3684
4869
  getPath(): string;
3685
4870
  }
3686
4871
 
3687
- declare const getSubscriptionPlanDetailsInputSchema: z.ZodUndefined;
3688
- type GetSubscriptionPlanDetailsInput = z.input<typeof getSubscriptionPlanDetailsInputSchema>;
3689
- declare const getSubscriptionPlanDetailsResponseSchema: z.ZodObject<{
4872
+ declare const getSubscriptionPurchaseDetailsInputSchema: z.ZodUndefined;
4873
+ type GetSubscriptionPurchaseDetailsInput = z.input<typeof getSubscriptionPurchaseDetailsInputSchema>;
4874
+ declare const getSubscriptionPurchaseDetailsResponseSchema: z.ZodObject<{
3690
4875
  id: z.ZodString;
3691
- code: z.ZodString;
3692
- name: z.ZodString;
3693
- description: z.ZodNullable<z.ZodString>;
4876
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4877
+ status: z.ZodEnum<{
4878
+ pending: "pending";
4879
+ completed: "completed";
4880
+ cancelled: "cancelled";
4881
+ failed: "failed";
4882
+ }>;
3694
4883
  type: z.ZodEnum<{
3695
4884
  infinite: "infinite";
3696
4885
  time_based: "time_based";
3697
4886
  consumption: "consumption";
3698
4887
  }>;
3699
- isActive: z.ZodBoolean;
3700
- isPurchasable: z.ZodBoolean;
3701
- isAdminOnly: z.ZodBoolean;
3702
- defaultAutoRenewal: z.ZodBoolean;
3703
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3704
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3705
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3706
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3707
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3708
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3709
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3710
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3711
- id: z.ZodString;
3712
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3713
- threshold: z.ZodCoercedNumber<unknown>;
3714
- unitPrice: z.ZodString;
3715
- }, z.core.$strip>>>;
4888
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
4889
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4890
+ threshold: z.ZodCoercedNumber<unknown>;
4891
+ amount: z.ZodString;
4892
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
4893
+ stripe: "stripe";
4894
+ bank_transfer: "bank_transfer";
4895
+ cash: "cash";
4896
+ credit_card: "credit_card";
4897
+ }>>;
4898
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
4899
+ pending: "pending";
4900
+ pending_verification: "pending_verification";
4901
+ paid: "paid";
4902
+ canceled: "canceled";
4903
+ refunded: "refunded";
4904
+ failed: "failed";
4905
+ }>>;
3716
4906
  createdAt: z.ZodString;
3717
4907
  updatedAt: z.ZodString;
4908
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4909
+ payment: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>>>;
4910
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>>>;
3718
4911
  }, z.core.$strip>;
3719
- type GetSubscriptionPlanDetailsResponse = z.infer<typeof getSubscriptionPlanDetailsResponseSchema>;
3720
- declare class GetSubscriptionPlanDetails extends AbstractApiRequest<typeof getSubscriptionPlanDetailsInputSchema, typeof getSubscriptionPlanDetailsResponseSchema> {
4912
+ type GetSubscriptionPurchaseDetailsResponse = z.infer<typeof getSubscriptionPurchaseDetailsResponseSchema>;
4913
+ declare class GetSubscriptionPurchaseDetails extends AbstractApiRequest<typeof getSubscriptionPurchaseDetailsInputSchema, typeof getSubscriptionPurchaseDetailsResponseSchema> {
3721
4914
  readonly method: "GET";
3722
4915
  readonly contentType: "application/json";
3723
4916
  readonly accept: "application/json";
3724
4917
  readonly inputSchema: z.ZodUndefined;
3725
4918
  readonly outputSchema: z.ZodObject<{
3726
4919
  id: z.ZodString;
3727
- code: z.ZodString;
3728
- name: z.ZodString;
3729
- description: z.ZodNullable<z.ZodString>;
4920
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4921
+ status: z.ZodEnum<{
4922
+ pending: "pending";
4923
+ completed: "completed";
4924
+ cancelled: "cancelled";
4925
+ failed: "failed";
4926
+ }>;
3730
4927
  type: z.ZodEnum<{
3731
4928
  infinite: "infinite";
3732
4929
  time_based: "time_based";
3733
4930
  consumption: "consumption";
3734
4931
  }>;
3735
- isActive: z.ZodBoolean;
3736
- isPurchasable: z.ZodBoolean;
3737
- isAdminOnly: z.ZodBoolean;
3738
- defaultAutoRenewal: z.ZodBoolean;
3739
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3740
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3741
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3742
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3743
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3744
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3745
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3746
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3747
- id: z.ZodString;
3748
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3749
- threshold: z.ZodCoercedNumber<unknown>;
3750
- unitPrice: z.ZodString;
3751
- }, z.core.$strip>>>;
4932
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
4933
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4934
+ threshold: z.ZodCoercedNumber<unknown>;
4935
+ amount: z.ZodString;
4936
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
4937
+ stripe: "stripe";
4938
+ bank_transfer: "bank_transfer";
4939
+ cash: "cash";
4940
+ credit_card: "credit_card";
4941
+ }>>;
4942
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
4943
+ pending: "pending";
4944
+ pending_verification: "pending_verification";
4945
+ paid: "paid";
4946
+ canceled: "canceled";
4947
+ refunded: "refunded";
4948
+ failed: "failed";
4949
+ }>>;
3752
4950
  createdAt: z.ZodString;
3753
4951
  updatedAt: z.ZodString;
4952
+ pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
4953
+ payment: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>>>;
4954
+ subscription: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>>>;
3754
4955
  }, z.core.$strip>;
3755
4956
  readonly querySchema: undefined;
3756
4957
  readonly headersSchema: undefined;
3757
- private readonly subscriptionPlanId;
3758
- constructor(subscriptionPlanId: string);
4958
+ private readonly purchaseId;
4959
+ constructor(purchaseId: string);
3759
4960
  getPath(): string;
3760
4961
  }
3761
4962
 
3762
- type GetSubscriptionPlansQueryParams = SubscriptionPlansQueryParams;
3763
- declare const getSubscriptionPlansInputSchema: z.ZodUndefined;
3764
- type GetSubscriptionPlansInput = z.input<typeof getSubscriptionPlansInputSchema>;
3765
- type GetSubscriptionPlansResponse = z.infer<typeof getSubscriptionPlansResponseSchema>;
3766
- declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscriptionPlansInputSchema, typeof getSubscriptionPlansResponseSchema, GetSubscriptionPlansQueryParams> {
4963
+ type GetSubscriptionPurchasesQueryParams = SubscriptionPurchasesQueryParams;
4964
+ declare const getSubscriptionPurchasesInputSchema: z.ZodUndefined;
4965
+ type GetSubscriptionPurchasesInput = z.input<typeof getSubscriptionPurchasesInputSchema>;
4966
+ type GetSubscriptionPurchasesResponse = z.infer<typeof getSubscriptionPurchasesResponseSchema>;
4967
+ declare class GetSubscriptionPurchases extends AbstractApiRequest<typeof getSubscriptionPurchasesInputSchema, typeof getSubscriptionPurchasesResponseSchema, GetSubscriptionPurchasesQueryParams> {
3767
4968
  readonly method: "GET";
3768
4969
  readonly contentType: "application/json";
3769
4970
  readonly accept: "application/json";
@@ -3771,31 +4972,36 @@ declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscrip
3771
4972
  readonly outputSchema: z.ZodObject<{
3772
4973
  data: z.ZodArray<z.ZodObject<{
3773
4974
  id: z.ZodString;
3774
- code: z.ZodString;
3775
- name: z.ZodString;
3776
- description: z.ZodNullable<z.ZodString>;
4975
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
4976
+ status: z.ZodEnum<{
4977
+ pending: "pending";
4978
+ completed: "completed";
4979
+ cancelled: "cancelled";
4980
+ failed: "failed";
4981
+ }>;
3777
4982
  type: z.ZodEnum<{
3778
4983
  infinite: "infinite";
3779
4984
  time_based: "time_based";
3780
4985
  consumption: "consumption";
3781
4986
  }>;
3782
- isActive: z.ZodBoolean;
3783
- isPurchasable: z.ZodBoolean;
3784
- isAdminOnly: z.ZodBoolean;
3785
- defaultAutoRenewal: z.ZodBoolean;
3786
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3787
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3788
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3789
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3790
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3791
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3792
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3793
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3794
- id: z.ZodString;
3795
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3796
- threshold: z.ZodCoercedNumber<unknown>;
3797
- unitPrice: z.ZodString;
3798
- }, z.core.$strip>>>;
4987
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
4988
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4989
+ threshold: z.ZodCoercedNumber<unknown>;
4990
+ amount: z.ZodString;
4991
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
4992
+ stripe: "stripe";
4993
+ bank_transfer: "bank_transfer";
4994
+ cash: "cash";
4995
+ credit_card: "credit_card";
4996
+ }>>;
4997
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
4998
+ pending: "pending";
4999
+ pending_verification: "pending_verification";
5000
+ paid: "paid";
5001
+ canceled: "canceled";
5002
+ refunded: "refunded";
5003
+ failed: "failed";
5004
+ }>>;
3799
5005
  createdAt: z.ZodString;
3800
5006
  updatedAt: z.ZodString;
3801
5007
  }, z.core.$strip>>;
@@ -3810,8 +5016,17 @@ declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscrip
3810
5016
  }, z.core.$strip>;
3811
5017
  readonly querySchema: z.ZodObject<{
3812
5018
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3813
- code: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
3814
- name: z.ZodOptional<z.ZodString>;
5019
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
5020
+ pending: "pending";
5021
+ completed: "completed";
5022
+ cancelled: "cancelled";
5023
+ failed: "failed";
5024
+ }>, z.ZodArray<z.ZodEnum<{
5025
+ pending: "pending";
5026
+ completed: "completed";
5027
+ cancelled: "cancelled";
5028
+ failed: "failed";
5029
+ }>>]>>;
3815
5030
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3816
5031
  infinite: "infinite";
3817
5032
  time_based: "time_based";
@@ -3821,18 +5036,23 @@ declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscrip
3821
5036
  time_based: "time_based";
3822
5037
  consumption: "consumption";
3823
5038
  }>>]>>;
3824
- isActive: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3825
- isPurchasable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3826
- isAdminOnly: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3827
- defaultAutoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
3828
- 'order[name]': z.ZodOptional<z.ZodEnum<{
3829
- asc: "asc";
3830
- desc: "desc";
3831
- }>>;
3832
- 'order[code]': z.ZodOptional<z.ZodEnum<{
3833
- asc: "asc";
3834
- desc: "desc";
3835
- }>>;
5039
+ 'pointOfSale.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5040
+ 'plan.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5041
+ 'plan.code': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5042
+ 'startsAt[before]': z.ZodOptional<z.ZodString>;
5043
+ 'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
5044
+ 'startsAt[after]': z.ZodOptional<z.ZodString>;
5045
+ 'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
5046
+ 'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5047
+ 'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5048
+ 'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5049
+ 'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5050
+ 'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5051
+ 'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5052
+ 'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5053
+ 'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5054
+ 'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5055
+ 'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3836
5056
  'order[createdAt]': z.ZodOptional<z.ZodEnum<{
3837
5057
  asc: "asc";
3838
5058
  desc: "desc";
@@ -3841,288 +5061,72 @@ declare class GetSubscriptionPlans extends AbstractApiRequest<typeof getSubscrip
3841
5061
  asc: "asc";
3842
5062
  desc: "desc";
3843
5063
  }>>;
3844
- page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3845
- 'createdAt[before]': z.ZodOptional<z.ZodString>;
3846
- 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3847
- 'createdAt[after]': z.ZodOptional<z.ZodString>;
3848
- 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3849
- 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3850
- 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3851
- 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3852
- 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3853
- }, z.core.$strip>;
3854
- readonly headersSchema: undefined;
3855
- readonly listItemSchema: z.ZodObject<{
3856
- id: z.ZodString;
3857
- code: z.ZodString;
3858
- name: z.ZodString;
3859
- description: z.ZodNullable<z.ZodString>;
3860
- type: z.ZodEnum<{
3861
- infinite: "infinite";
3862
- time_based: "time_based";
3863
- consumption: "consumption";
3864
- }>;
3865
- isActive: z.ZodBoolean;
3866
- isPurchasable: z.ZodBoolean;
3867
- isAdminOnly: z.ZodBoolean;
3868
- defaultAutoRenewal: z.ZodBoolean;
3869
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3870
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3871
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3872
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3873
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3874
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3875
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3876
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3877
- id: z.ZodString;
3878
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3879
- threshold: z.ZodCoercedNumber<unknown>;
3880
- unitPrice: z.ZodString;
3881
- }, z.core.$strip>>>;
3882
- createdAt: z.ZodString;
3883
- updatedAt: z.ZodString;
3884
- }, z.core.$strip>;
3885
- readonly paginationDefaultEnabled = true;
3886
- constructor(options?: {
3887
- query?: GetSubscriptionPlansQueryParams;
3888
- });
3889
- getPath(): string;
3890
- }
3891
-
3892
- declare const updateSubscriptionPlanInputSchema: z.ZodObject<{
3893
- code: z.ZodOptional<z.ZodString>;
3894
- name: z.ZodOptional<z.ZodString>;
3895
- description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3896
- type: z.ZodOptional<z.ZodEnum<{
3897
- infinite: "infinite";
3898
- time_based: "time_based";
3899
- consumption: "consumption";
3900
- }>>;
3901
- isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3902
- isPurchasable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3903
- isAdminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3904
- defaultAutoRenewal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3905
- includedCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3906
- renewalCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3907
- renewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3908
- durationDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3909
- renewalDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3910
- renewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3911
- operationCosts: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3912
- }, z.core.$strip>;
3913
- type UpdateSubscriptionPlanInput = z.input<typeof updateSubscriptionPlanInputSchema>;
3914
- declare const updateSubscriptionPlanResponseSchema: z.ZodObject<{
3915
- id: z.ZodString;
3916
- code: z.ZodString;
3917
- name: z.ZodString;
3918
- description: z.ZodNullable<z.ZodString>;
3919
- type: z.ZodEnum<{
3920
- infinite: "infinite";
3921
- time_based: "time_based";
3922
- consumption: "consumption";
3923
- }>;
3924
- isActive: z.ZodBoolean;
3925
- isPurchasable: z.ZodBoolean;
3926
- isAdminOnly: z.ZodBoolean;
3927
- defaultAutoRenewal: z.ZodBoolean;
3928
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3929
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3930
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3931
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3932
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3933
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3934
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3935
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3936
- id: z.ZodString;
3937
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3938
- threshold: z.ZodCoercedNumber<unknown>;
3939
- unitPrice: z.ZodString;
3940
- }, z.core.$strip>>>;
3941
- createdAt: z.ZodString;
3942
- updatedAt: z.ZodString;
3943
- }, z.core.$strip>;
3944
- type UpdateSubscriptionPlanResponse = z.infer<typeof updateSubscriptionPlanResponseSchema>;
3945
- declare class UpdateSubscriptionPlan extends AbstractApiRequest<typeof updateSubscriptionPlanInputSchema, typeof updateSubscriptionPlanResponseSchema> {
3946
- readonly method: "PATCH";
3947
- readonly contentType: "application/merge-patch+json";
3948
- readonly accept: "application/json";
3949
- readonly inputSchema: z.ZodObject<{
3950
- code: z.ZodOptional<z.ZodString>;
3951
- name: z.ZodOptional<z.ZodString>;
3952
- description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
3953
- type: z.ZodOptional<z.ZodEnum<{
3954
- infinite: "infinite";
3955
- time_based: "time_based";
3956
- consumption: "consumption";
3957
- }>>;
3958
- isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3959
- isPurchasable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3960
- isAdminOnly: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3961
- defaultAutoRenewal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3962
- includedCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3963
- renewalCredits: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3964
- renewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3965
- durationDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3966
- renewalDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3967
- renewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodCoercedNumber<unknown>>>>;
3968
- operationCosts: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>>>;
3969
- }, z.core.$strip>;
3970
- readonly outputSchema: z.ZodObject<{
3971
- id: z.ZodString;
3972
- code: z.ZodString;
3973
- name: z.ZodString;
3974
- description: z.ZodNullable<z.ZodString>;
3975
- type: z.ZodEnum<{
3976
- infinite: "infinite";
3977
- time_based: "time_based";
3978
- consumption: "consumption";
3979
- }>;
3980
- isActive: z.ZodBoolean;
3981
- isPurchasable: z.ZodBoolean;
3982
- isAdminOnly: z.ZodBoolean;
3983
- defaultAutoRenewal: z.ZodBoolean;
3984
- includedCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3985
- renewalCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3986
- renewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3987
- durationDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3988
- renewalDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3989
- renewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
3990
- operationCosts: z.ZodRecord<z.ZodString, z.ZodCoercedNumber<unknown>>;
3991
- priceOptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
3992
- id: z.ZodString;
3993
- iri: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
3994
- threshold: z.ZodCoercedNumber<unknown>;
3995
- unitPrice: z.ZodString;
3996
- }, z.core.$strip>>>;
3997
- createdAt: z.ZodString;
3998
- updatedAt: z.ZodString;
3999
- }, z.core.$strip>;
4000
- readonly querySchema: undefined;
4001
- readonly headersSchema: undefined;
4002
- private readonly subscriptionPlanId;
4003
- constructor(subscriptionPlanId: string, input: UpdateSubscriptionPlanInput);
4004
- getPath(): string;
4005
- }
4006
-
4007
- declare const createSubscriptionPriceInputSchema: z.ZodObject<{
4008
- type: z.ZodNonOptional<z.ZodEnum<{
4009
- infinite: "infinite";
4010
- time_based: "time_based";
4011
- consumption: "consumption";
4012
- }>>;
4013
- plan: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4014
- threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
4015
- unitPrice: z.ZodNonOptional<z.ZodString>;
4016
- }, z.core.$strip>;
4017
- type CreateSubscriptionPriceInput = z.input<typeof createSubscriptionPriceInputSchema>;
4018
- declare const createSubscriptionPriceResponseSchema: z.ZodObject<{
4019
- id: z.ZodString;
4020
- type: z.ZodEnum<{
4021
- infinite: "infinite";
4022
- time_based: "time_based";
4023
- consumption: "consumption";
4024
- }>;
4025
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4026
- threshold: z.ZodCoercedNumber<unknown>;
4027
- unitPrice: z.ZodString;
4028
- createdAt: z.ZodString;
4029
- updatedAt: z.ZodString;
4030
- }, z.core.$strip>;
4031
- type CreateSubscriptionPriceResponse = z.infer<typeof createSubscriptionPriceResponseSchema>;
4032
- declare class CreateSubscriptionPrice extends AbstractApiRequest<typeof createSubscriptionPriceInputSchema, typeof createSubscriptionPriceResponseSchema> {
4033
- readonly method = "POST";
4034
- readonly contentType = "application/json";
4035
- readonly accept = "application/json";
4036
- readonly inputSchema: z.ZodObject<{
4037
- type: z.ZodNonOptional<z.ZodEnum<{
4038
- infinite: "infinite";
4039
- time_based: "time_based";
4040
- consumption: "consumption";
4041
- }>>;
4042
- plan: z.ZodNonOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4043
- threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
4044
- unitPrice: z.ZodNonOptional<z.ZodString>;
4045
- }, z.core.$strip>;
4046
- readonly outputSchema: z.ZodObject<{
4047
- id: z.ZodString;
4048
- type: z.ZodEnum<{
4049
- infinite: "infinite";
4050
- time_based: "time_based";
4051
- consumption: "consumption";
4052
- }>;
4053
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4054
- threshold: z.ZodCoercedNumber<unknown>;
4055
- unitPrice: z.ZodString;
4056
- createdAt: z.ZodString;
4057
- updatedAt: z.ZodString;
5064
+ 'order[startsAt]': z.ZodOptional<z.ZodEnum<{
5065
+ asc: "asc";
5066
+ desc: "desc";
5067
+ }>>;
5068
+ 'order[amount]': z.ZodOptional<z.ZodEnum<{
5069
+ asc: "asc";
5070
+ desc: "desc";
5071
+ }>>;
5072
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5073
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
5074
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
5075
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
5076
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
5077
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
5078
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
5079
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
5080
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4058
5081
  }, z.core.$strip>;
4059
- readonly querySchema: undefined;
4060
5082
  readonly headersSchema: undefined;
4061
- constructor(input: CreateSubscriptionPriceInput);
4062
- getPath(): string;
4063
- }
4064
-
4065
- declare const deleteSubscriptionPriceInputSchema: z.ZodUndefined;
4066
- declare const deleteSubscriptionPriceResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
4067
- declare class DeleteSubscriptionPrice extends AbstractApiRequest<typeof deleteSubscriptionPriceInputSchema, typeof deleteSubscriptionPriceResponseSchema> {
4068
- readonly method = "DELETE";
4069
- readonly contentType = "application/json";
4070
- readonly accept = "application/json";
4071
- readonly inputSchema: z.ZodUndefined;
4072
- readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
4073
- readonly querySchema: undefined;
4074
- readonly headersSchema: undefined;
4075
- private readonly priceId;
4076
- constructor(priceId: string);
4077
- getPath(): string;
4078
- }
4079
-
4080
- declare const getSubscriptionPriceDetailsInputSchema: z.ZodUndefined;
4081
- type GetSubscriptionPriceDetailsInput = z.input<typeof getSubscriptionPriceDetailsInputSchema>;
4082
- declare const getSubscriptionPriceDetailsResponseSchema: z.ZodObject<{
4083
- id: z.ZodString;
4084
- type: z.ZodEnum<{
4085
- infinite: "infinite";
4086
- time_based: "time_based";
4087
- consumption: "consumption";
4088
- }>;
4089
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4090
- threshold: z.ZodCoercedNumber<unknown>;
4091
- unitPrice: z.ZodString;
4092
- createdAt: z.ZodString;
4093
- updatedAt: z.ZodString;
4094
- }, z.core.$strip>;
4095
- type GetSubscriptionPriceDetailsResponse = z.infer<typeof getSubscriptionPriceDetailsResponseSchema>;
4096
- declare class GetSubscriptionPriceDetails extends AbstractApiRequest<typeof getSubscriptionPriceDetailsInputSchema, typeof getSubscriptionPriceDetailsResponseSchema> {
4097
- readonly method = "GET";
4098
- readonly contentType = "application/json";
4099
- readonly accept = "application/json";
4100
- readonly inputSchema: z.ZodUndefined;
4101
- readonly outputSchema: z.ZodObject<{
5083
+ readonly listItemSchema: z.ZodObject<{
4102
5084
  id: z.ZodString;
5085
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
5086
+ status: z.ZodEnum<{
5087
+ pending: "pending";
5088
+ completed: "completed";
5089
+ cancelled: "cancelled";
5090
+ failed: "failed";
5091
+ }>;
4103
5092
  type: z.ZodEnum<{
4104
5093
  infinite: "infinite";
4105
5094
  time_based: "time_based";
4106
5095
  consumption: "consumption";
4107
5096
  }>;
4108
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
5097
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
5098
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4109
5099
  threshold: z.ZodCoercedNumber<unknown>;
4110
- unitPrice: z.ZodString;
5100
+ amount: z.ZodString;
5101
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
5102
+ stripe: "stripe";
5103
+ bank_transfer: "bank_transfer";
5104
+ cash: "cash";
5105
+ credit_card: "credit_card";
5106
+ }>>;
5107
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
5108
+ pending: "pending";
5109
+ pending_verification: "pending_verification";
5110
+ paid: "paid";
5111
+ canceled: "canceled";
5112
+ refunded: "refunded";
5113
+ failed: "failed";
5114
+ }>>;
4111
5115
  createdAt: z.ZodString;
4112
5116
  updatedAt: z.ZodString;
4113
5117
  }, z.core.$strip>;
4114
- readonly querySchema: undefined;
4115
- readonly headersSchema: undefined;
4116
- private readonly priceId;
4117
- constructor(priceId: string);
5118
+ readonly paginationDefaultEnabled = true;
5119
+ constructor(options?: {
5120
+ query?: GetSubscriptionPurchasesQueryParams;
5121
+ });
4118
5122
  getPath(): string;
4119
5123
  }
4120
5124
 
4121
- type GetSubscriptionPricesQueryParams = SubscriptionPricesQueryParams;
4122
- declare const getSubscriptionPricesInputSchema: z.ZodUndefined;
4123
- type GetSubscriptionPricesInput = z.input<typeof getSubscriptionPricesInputSchema>;
4124
- type GetSubscriptionPricesResponse = z.infer<typeof getSubscriptionPricesResponseSchema>;
4125
- declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscriptionPricesInputSchema, typeof getSubscriptionPricesResponseSchema, GetSubscriptionPricesQueryParams> {
5125
+ type GetSubscriptionPurchasesFromPointOfSaleQueryParams = SubscriptionPurchasesQueryParams;
5126
+ declare const getSubscriptionPurchasesFromPointOfSaleInputSchema: z.ZodUndefined;
5127
+ type GetSubscriptionPurchasesFromPointOfSaleInput = z.input<typeof getSubscriptionPurchasesFromPointOfSaleInputSchema>;
5128
+ type GetSubscriptionPurchasesFromPointOfSaleResponse = z.infer<typeof getSubscriptionPurchasesResponseSchema>;
5129
+ declare class GetSubscriptionPurchasesFromPointOfSale extends AbstractApiRequest<typeof getSubscriptionPurchasesFromPointOfSaleInputSchema, typeof getSubscriptionPurchasesResponseSchema, GetSubscriptionPurchasesFromPointOfSaleQueryParams> {
4126
5130
  readonly method: "GET";
4127
5131
  readonly contentType: "application/json";
4128
5132
  readonly accept: "application/json";
@@ -4130,14 +5134,36 @@ declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscri
4130
5134
  readonly outputSchema: z.ZodObject<{
4131
5135
  data: z.ZodArray<z.ZodObject<{
4132
5136
  id: z.ZodString;
5137
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
5138
+ status: z.ZodEnum<{
5139
+ pending: "pending";
5140
+ completed: "completed";
5141
+ cancelled: "cancelled";
5142
+ failed: "failed";
5143
+ }>;
4133
5144
  type: z.ZodEnum<{
4134
5145
  infinite: "infinite";
4135
5146
  time_based: "time_based";
4136
5147
  consumption: "consumption";
4137
5148
  }>;
4138
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
5149
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
5150
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
4139
5151
  threshold: z.ZodCoercedNumber<unknown>;
4140
- unitPrice: z.ZodString;
5152
+ amount: z.ZodString;
5153
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
5154
+ stripe: "stripe";
5155
+ bank_transfer: "bank_transfer";
5156
+ cash: "cash";
5157
+ credit_card: "credit_card";
5158
+ }>>;
5159
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
5160
+ pending: "pending";
5161
+ pending_verification: "pending_verification";
5162
+ paid: "paid";
5163
+ canceled: "canceled";
5164
+ refunded: "refunded";
5165
+ failed: "failed";
5166
+ }>>;
4141
5167
  createdAt: z.ZodString;
4142
5168
  updatedAt: z.ZodString;
4143
5169
  }, z.core.$strip>>;
@@ -4152,6 +5178,17 @@ declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscri
4152
5178
  }, z.core.$strip>;
4153
5179
  readonly querySchema: z.ZodObject<{
4154
5180
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5181
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
5182
+ pending: "pending";
5183
+ completed: "completed";
5184
+ cancelled: "cancelled";
5185
+ failed: "failed";
5186
+ }>, z.ZodArray<z.ZodEnum<{
5187
+ pending: "pending";
5188
+ completed: "completed";
5189
+ cancelled: "cancelled";
5190
+ failed: "failed";
5191
+ }>>]>>;
4155
5192
  type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
4156
5193
  infinite: "infinite";
4157
5194
  time_based: "time_based";
@@ -4161,27 +5198,36 @@ declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscri
4161
5198
  time_based: "time_based";
4162
5199
  consumption: "consumption";
4163
5200
  }>>]>>;
5201
+ 'pointOfSale.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4164
5202
  'plan.id': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
4165
5203
  'plan.code': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
5204
+ 'startsAt[before]': z.ZodOptional<z.ZodString>;
5205
+ 'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
5206
+ 'startsAt[after]': z.ZodOptional<z.ZodString>;
5207
+ 'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
4166
5208
  'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4167
5209
  'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4168
5210
  'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4169
5211
  'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4170
5212
  'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4171
- 'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4172
- 'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4173
- 'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4174
- 'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4175
- 'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4176
- 'order[threshold]': z.ZodOptional<z.ZodEnum<{
5213
+ 'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5214
+ 'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5215
+ 'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5216
+ 'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5217
+ 'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
5218
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
4177
5219
  asc: "asc";
4178
5220
  desc: "desc";
4179
5221
  }>>;
4180
- 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
5222
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
4181
5223
  asc: "asc";
4182
5224
  desc: "desc";
4183
5225
  }>>;
4184
- 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
5226
+ 'order[startsAt]': z.ZodOptional<z.ZodEnum<{
5227
+ asc: "asc";
5228
+ desc: "desc";
5229
+ }>>;
5230
+ 'order[amount]': z.ZodOptional<z.ZodEnum<{
4185
5231
  asc: "asc";
4186
5232
  desc: "desc";
4187
5233
  }>>;
@@ -4195,83 +5241,337 @@ declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscri
4195
5241
  'updatedAt[after]': z.ZodOptional<z.ZodString>;
4196
5242
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4197
5243
  }, z.core.$strip>;
4198
- readonly headersSchema: undefined;
4199
- readonly listItemSchema: z.ZodObject<{
5244
+ readonly headersSchema: undefined;
5245
+ readonly listItemSchema: z.ZodObject<{
5246
+ id: z.ZodString;
5247
+ plan: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id">, unknown>>;
5248
+ status: z.ZodEnum<{
5249
+ pending: "pending";
5250
+ completed: "completed";
5251
+ cancelled: "cancelled";
5252
+ failed: "failed";
5253
+ }>;
5254
+ type: z.ZodEnum<{
5255
+ infinite: "infinite";
5256
+ time_based: "time_based";
5257
+ consumption: "consumption";
5258
+ }>;
5259
+ autoRenewal: z.ZodNullable<z.ZodBoolean>;
5260
+ startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
5261
+ threshold: z.ZodCoercedNumber<unknown>;
5262
+ amount: z.ZodString;
5263
+ paymentMethod: z.ZodNullable<z.ZodEnum<{
5264
+ stripe: "stripe";
5265
+ bank_transfer: "bank_transfer";
5266
+ cash: "cash";
5267
+ credit_card: "credit_card";
5268
+ }>>;
5269
+ paymentStatus: z.ZodNullable<z.ZodEnum<{
5270
+ pending: "pending";
5271
+ pending_verification: "pending_verification";
5272
+ paid: "paid";
5273
+ canceled: "canceled";
5274
+ refunded: "refunded";
5275
+ failed: "failed";
5276
+ }>>;
5277
+ createdAt: z.ZodString;
5278
+ updatedAt: z.ZodString;
5279
+ }, z.core.$strip>;
5280
+ readonly paginationDefaultEnabled = true;
5281
+ private readonly pointOfSaleId;
5282
+ constructor(pointOfSaleId: string, options?: {
5283
+ query?: GetSubscriptionPurchasesFromPointOfSaleQueryParams;
5284
+ });
5285
+ getPath(): string;
5286
+ }
5287
+
5288
+ declare const paySubscriptionPurchaseInputSchema: z.ZodObject<{
5289
+ method: z.ZodEnum<{
5290
+ stripe: "stripe";
5291
+ bank_transfer: "bank_transfer";
5292
+ cash: "cash";
5293
+ credit_card: "credit_card";
5294
+ }>;
5295
+ }, z.core.$strip>;
5296
+ type PaySubscriptionPurchaseInput = z.input<typeof paySubscriptionPurchaseInputSchema>;
5297
+ declare const paySubscriptionPurchaseResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5298
+ id: z.ZodString;
5299
+ status: z.ZodEnum<{
5300
+ pending: "pending";
5301
+ pending_verification: "pending_verification";
5302
+ paid: "paid";
5303
+ canceled: "canceled";
5304
+ refunded: "refunded";
5305
+ failed: "failed";
5306
+ }>;
5307
+ amount: z.ZodString;
5308
+ method: z.ZodLiteral<"stripe">;
5309
+ sessionUrl: z.ZodString;
5310
+ expiresAt: z.ZodString;
5311
+ }, z.core.$strip>, z.ZodObject<{
5312
+ id: z.ZodString;
5313
+ status: z.ZodEnum<{
5314
+ pending: "pending";
5315
+ pending_verification: "pending_verification";
5316
+ paid: "paid";
5317
+ canceled: "canceled";
5318
+ refunded: "refunded";
5319
+ failed: "failed";
5320
+ }>;
5321
+ amount: z.ZodString;
5322
+ method: z.ZodLiteral<"bank_transfer">;
5323
+ iban: z.ZodString;
5324
+ bic: z.ZodString;
5325
+ accountHolder: z.ZodString;
5326
+ bankName: z.ZodString;
5327
+ bankAddress: z.ZodNullable<z.ZodString>;
5328
+ currency: z.ZodString;
5329
+ description: z.ZodString;
5330
+ }, z.core.$strip>, z.ZodObject<{
5331
+ id: z.ZodString;
5332
+ status: z.ZodEnum<{
5333
+ pending: "pending";
5334
+ pending_verification: "pending_verification";
5335
+ paid: "paid";
5336
+ canceled: "canceled";
5337
+ refunded: "refunded";
5338
+ failed: "failed";
5339
+ }>;
5340
+ amount: z.ZodString;
5341
+ method: z.ZodLiteral<"cash">;
5342
+ }, z.core.$strip>, z.ZodObject<{
5343
+ id: z.ZodString;
5344
+ status: z.ZodEnum<{
5345
+ pending: "pending";
5346
+ pending_verification: "pending_verification";
5347
+ paid: "paid";
5348
+ canceled: "canceled";
5349
+ refunded: "refunded";
5350
+ failed: "failed";
5351
+ }>;
5352
+ amount: z.ZodString;
5353
+ method: z.ZodLiteral<"credit_card">;
5354
+ }, z.core.$strip>], "method">;
5355
+ type PaySubscriptionPurchaseResponse = z.infer<typeof paySubscriptionPurchaseResponseSchema>;
5356
+ declare class PaySubscriptionPurchase extends AbstractApiRequest<typeof paySubscriptionPurchaseInputSchema, typeof paySubscriptionPurchaseResponseSchema> {
5357
+ readonly method: "POST";
5358
+ readonly contentType: "application/json";
5359
+ readonly accept: "application/json";
5360
+ readonly inputSchema: z.ZodObject<{
5361
+ method: z.ZodEnum<{
5362
+ stripe: "stripe";
5363
+ bank_transfer: "bank_transfer";
5364
+ cash: "cash";
5365
+ credit_card: "credit_card";
5366
+ }>;
5367
+ }, z.core.$strip>;
5368
+ readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4200
5369
  id: z.ZodString;
4201
- type: z.ZodEnum<{
4202
- infinite: "infinite";
4203
- time_based: "time_based";
4204
- consumption: "consumption";
5370
+ status: z.ZodEnum<{
5371
+ pending: "pending";
5372
+ pending_verification: "pending_verification";
5373
+ paid: "paid";
5374
+ canceled: "canceled";
5375
+ refunded: "refunded";
5376
+ failed: "failed";
4205
5377
  }>;
4206
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4207
- threshold: z.ZodCoercedNumber<unknown>;
4208
- unitPrice: z.ZodString;
4209
- createdAt: z.ZodString;
4210
- updatedAt: z.ZodString;
4211
- }, z.core.$strip>;
4212
- readonly paginationDefaultEnabled = true;
4213
- constructor(options?: {
4214
- query?: GetSubscriptionPricesQueryParams;
4215
- });
5378
+ amount: z.ZodString;
5379
+ method: z.ZodLiteral<"stripe">;
5380
+ sessionUrl: z.ZodString;
5381
+ expiresAt: z.ZodString;
5382
+ }, z.core.$strip>, z.ZodObject<{
5383
+ id: z.ZodString;
5384
+ status: z.ZodEnum<{
5385
+ pending: "pending";
5386
+ pending_verification: "pending_verification";
5387
+ paid: "paid";
5388
+ canceled: "canceled";
5389
+ refunded: "refunded";
5390
+ failed: "failed";
5391
+ }>;
5392
+ amount: z.ZodString;
5393
+ method: z.ZodLiteral<"bank_transfer">;
5394
+ iban: z.ZodString;
5395
+ bic: z.ZodString;
5396
+ accountHolder: z.ZodString;
5397
+ bankName: z.ZodString;
5398
+ bankAddress: z.ZodNullable<z.ZodString>;
5399
+ currency: z.ZodString;
5400
+ description: z.ZodString;
5401
+ }, z.core.$strip>, z.ZodObject<{
5402
+ id: z.ZodString;
5403
+ status: z.ZodEnum<{
5404
+ pending: "pending";
5405
+ pending_verification: "pending_verification";
5406
+ paid: "paid";
5407
+ canceled: "canceled";
5408
+ refunded: "refunded";
5409
+ failed: "failed";
5410
+ }>;
5411
+ amount: z.ZodString;
5412
+ method: z.ZodLiteral<"cash">;
5413
+ }, z.core.$strip>, z.ZodObject<{
5414
+ id: z.ZodString;
5415
+ status: z.ZodEnum<{
5416
+ pending: "pending";
5417
+ pending_verification: "pending_verification";
5418
+ paid: "paid";
5419
+ canceled: "canceled";
5420
+ refunded: "refunded";
5421
+ failed: "failed";
5422
+ }>;
5423
+ amount: z.ZodString;
5424
+ method: z.ZodLiteral<"credit_card">;
5425
+ }, z.core.$strip>], "method">;
5426
+ readonly querySchema: undefined;
5427
+ readonly headersSchema: undefined;
5428
+ private readonly purchaseId;
5429
+ constructor(purchaseId: string, method: PaymentMethod);
4216
5430
  getPath(): string;
4217
5431
  }
4218
5432
 
4219
- declare const updateSubscriptionPriceInputSchema: z.ZodObject<{
4220
- type: z.ZodOptional<z.ZodEnum<{
4221
- infinite: "infinite";
4222
- time_based: "time_based";
4223
- consumption: "consumption";
4224
- }>>;
4225
- plan: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4226
- threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4227
- unitPrice: z.ZodOptional<z.ZodString>;
5433
+ declare const resolveSubscriptionPurchasePaymentInputSchema: z.ZodObject<{
5434
+ status: z.ZodEnum<{
5435
+ failed: "failed";
5436
+ paid: "paid";
5437
+ canceled: "canceled";
5438
+ }>;
5439
+ response: z.ZodOptional<z.ZodString>;
4228
5440
  }, z.core.$strip>;
4229
- type UpdateSubscriptionPriceInput = z.input<typeof updateSubscriptionPriceInputSchema>;
4230
- declare const updateSubscriptionPriceResponseSchema: z.ZodObject<{
5441
+ type ResolveSubscriptionPurchasePaymentInput = z.input<typeof resolveSubscriptionPurchasePaymentInputSchema>;
5442
+ declare const resolveSubscriptionPurchasePaymentResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4231
5443
  id: z.ZodString;
4232
- type: z.ZodEnum<{
4233
- infinite: "infinite";
4234
- time_based: "time_based";
4235
- consumption: "consumption";
5444
+ status: z.ZodEnum<{
5445
+ pending: "pending";
5446
+ pending_verification: "pending_verification";
5447
+ paid: "paid";
5448
+ canceled: "canceled";
5449
+ refunded: "refunded";
5450
+ failed: "failed";
4236
5451
  }>;
4237
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4238
- threshold: z.ZodCoercedNumber<unknown>;
4239
- unitPrice: z.ZodString;
4240
- createdAt: z.ZodString;
4241
- updatedAt: z.ZodString;
4242
- }, z.core.$strip>;
4243
- type UpdateSubscriptionPriceResponse = z.infer<typeof updateSubscriptionPriceResponseSchema>;
4244
- declare class UpdateSubscriptionPrice extends AbstractApiRequest<typeof updateSubscriptionPriceInputSchema, typeof updateSubscriptionPriceResponseSchema> {
4245
- readonly method = "PATCH";
4246
- readonly contentType = "application/merge-patch+json";
4247
- readonly accept = "application/json";
5452
+ amount: z.ZodString;
5453
+ method: z.ZodLiteral<"stripe">;
5454
+ sessionUrl: z.ZodString;
5455
+ expiresAt: z.ZodString;
5456
+ }, z.core.$strip>, z.ZodObject<{
5457
+ id: z.ZodString;
5458
+ status: z.ZodEnum<{
5459
+ pending: "pending";
5460
+ pending_verification: "pending_verification";
5461
+ paid: "paid";
5462
+ canceled: "canceled";
5463
+ refunded: "refunded";
5464
+ failed: "failed";
5465
+ }>;
5466
+ amount: z.ZodString;
5467
+ method: z.ZodLiteral<"bank_transfer">;
5468
+ iban: z.ZodString;
5469
+ bic: z.ZodString;
5470
+ accountHolder: z.ZodString;
5471
+ bankName: z.ZodString;
5472
+ bankAddress: z.ZodNullable<z.ZodString>;
5473
+ currency: z.ZodString;
5474
+ description: z.ZodString;
5475
+ }, z.core.$strip>, z.ZodObject<{
5476
+ id: z.ZodString;
5477
+ status: z.ZodEnum<{
5478
+ pending: "pending";
5479
+ pending_verification: "pending_verification";
5480
+ paid: "paid";
5481
+ canceled: "canceled";
5482
+ refunded: "refunded";
5483
+ failed: "failed";
5484
+ }>;
5485
+ amount: z.ZodString;
5486
+ method: z.ZodLiteral<"cash">;
5487
+ }, z.core.$strip>, z.ZodObject<{
5488
+ id: z.ZodString;
5489
+ status: z.ZodEnum<{
5490
+ pending: "pending";
5491
+ pending_verification: "pending_verification";
5492
+ paid: "paid";
5493
+ canceled: "canceled";
5494
+ refunded: "refunded";
5495
+ failed: "failed";
5496
+ }>;
5497
+ amount: z.ZodString;
5498
+ method: z.ZodLiteral<"credit_card">;
5499
+ }, z.core.$strip>], "method">;
5500
+ type ResolveSubscriptionPurchasePaymentResponse = z.infer<typeof resolveSubscriptionPurchasePaymentResponseSchema>;
5501
+ declare class ResolveSubscriptionPurchasePayment extends AbstractApiRequest<typeof resolveSubscriptionPurchasePaymentInputSchema, typeof resolveSubscriptionPurchasePaymentResponseSchema> {
5502
+ readonly method: "POST";
5503
+ readonly contentType: "application/json";
5504
+ readonly accept: "application/json";
4248
5505
  readonly inputSchema: z.ZodObject<{
4249
- type: z.ZodOptional<z.ZodEnum<{
4250
- infinite: "infinite";
4251
- time_based: "time_based";
4252
- consumption: "consumption";
4253
- }>>;
4254
- plan: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>>;
4255
- threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4256
- unitPrice: z.ZodOptional<z.ZodString>;
5506
+ status: z.ZodEnum<{
5507
+ failed: "failed";
5508
+ paid: "paid";
5509
+ canceled: "canceled";
5510
+ }>;
5511
+ response: z.ZodOptional<z.ZodString>;
4257
5512
  }, z.core.$strip>;
4258
- readonly outputSchema: z.ZodObject<{
5513
+ readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4259
5514
  id: z.ZodString;
4260
- type: z.ZodEnum<{
4261
- infinite: "infinite";
4262
- time_based: "time_based";
4263
- consumption: "consumption";
5515
+ status: z.ZodEnum<{
5516
+ pending: "pending";
5517
+ pending_verification: "pending_verification";
5518
+ paid: "paid";
5519
+ canceled: "canceled";
5520
+ refunded: "refunded";
5521
+ failed: "failed";
4264
5522
  }>;
4265
- plan: z.ZodOptional<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscription_plans/:id"> | null, unknown>>>>;
4266
- threshold: z.ZodCoercedNumber<unknown>;
4267
- unitPrice: z.ZodString;
4268
- createdAt: z.ZodString;
4269
- updatedAt: z.ZodString;
4270
- }, z.core.$strip>;
5523
+ amount: z.ZodString;
5524
+ method: z.ZodLiteral<"stripe">;
5525
+ sessionUrl: z.ZodString;
5526
+ expiresAt: z.ZodString;
5527
+ }, z.core.$strip>, z.ZodObject<{
5528
+ id: z.ZodString;
5529
+ status: z.ZodEnum<{
5530
+ pending: "pending";
5531
+ pending_verification: "pending_verification";
5532
+ paid: "paid";
5533
+ canceled: "canceled";
5534
+ refunded: "refunded";
5535
+ failed: "failed";
5536
+ }>;
5537
+ amount: z.ZodString;
5538
+ method: z.ZodLiteral<"bank_transfer">;
5539
+ iban: z.ZodString;
5540
+ bic: z.ZodString;
5541
+ accountHolder: z.ZodString;
5542
+ bankName: z.ZodString;
5543
+ bankAddress: z.ZodNullable<z.ZodString>;
5544
+ currency: z.ZodString;
5545
+ description: z.ZodString;
5546
+ }, z.core.$strip>, z.ZodObject<{
5547
+ id: z.ZodString;
5548
+ status: z.ZodEnum<{
5549
+ pending: "pending";
5550
+ pending_verification: "pending_verification";
5551
+ paid: "paid";
5552
+ canceled: "canceled";
5553
+ refunded: "refunded";
5554
+ failed: "failed";
5555
+ }>;
5556
+ amount: z.ZodString;
5557
+ method: z.ZodLiteral<"cash">;
5558
+ }, z.core.$strip>, z.ZodObject<{
5559
+ id: z.ZodString;
5560
+ status: z.ZodEnum<{
5561
+ pending: "pending";
5562
+ pending_verification: "pending_verification";
5563
+ paid: "paid";
5564
+ canceled: "canceled";
5565
+ refunded: "refunded";
5566
+ failed: "failed";
5567
+ }>;
5568
+ amount: z.ZodString;
5569
+ method: z.ZodLiteral<"credit_card">;
5570
+ }, z.core.$strip>], "method">;
4271
5571
  readonly querySchema: undefined;
4272
5572
  readonly headersSchema: undefined;
4273
- private readonly priceId;
4274
- constructor(priceId: string, input: UpdateSubscriptionPriceInput);
5573
+ private readonly purchaseId;
5574
+ constructor(purchaseId: string, input: ResolveSubscriptionPurchasePaymentInput);
4275
5575
  getPath(): string;
4276
5576
  }
4277
5577
 
@@ -5197,8 +6497,8 @@ declare class PaySubscriptionTimeBasedRenewal extends AbstractApiRequest<typeof
5197
6497
 
5198
6498
  declare const resolveSubscriptionTimeBasedRenewalPaymentInputSchema: z.ZodObject<{
5199
6499
  status: z.ZodEnum<{
5200
- paid: "paid";
5201
6500
  failed: "failed";
6501
+ paid: "paid";
5202
6502
  canceled: "canceled";
5203
6503
  }>;
5204
6504
  response: z.ZodOptional<z.ZodString>;
@@ -5269,8 +6569,8 @@ declare class ResolveSubscriptionTimeBasedRenewalPayment extends AbstractApiRequ
5269
6569
  readonly accept = "application/json";
5270
6570
  readonly inputSchema: z.ZodObject<{
5271
6571
  status: z.ZodEnum<{
5272
- paid: "paid";
5273
6572
  failed: "failed";
6573
+ paid: "paid";
5274
6574
  canceled: "canceled";
5275
6575
  }>;
5276
6576
  response: z.ZodOptional<z.ZodString>;
@@ -6540,4 +7840,4 @@ declare class UpdateSubscription extends AbstractApiRequest<typeof updateSubscri
6540
7840
  getPath(): string;
6541
7841
  }
6542
7842
 
6543
- export { AdjustSubscriptionConsumptionCredits, type AdjustSubscriptionConsumptionCreditsInput, type AdjustSubscriptionConsumptionCreditsResponse, type AdjustableCreditTransactionType, CreateSubscriptionConsumption, type CreateSubscriptionConsumptionInput, CreateSubscriptionConsumptionRenewal, type CreateSubscriptionConsumptionRenewalInput, type CreateSubscriptionConsumptionRenewalResponse, type CreateSubscriptionConsumptionResponse, CreateSubscriptionInfinite, type CreateSubscriptionInfiniteInput, type CreateSubscriptionInfiniteResponse, CreateSubscriptionPlan, type CreateSubscriptionPlanInput, type CreateSubscriptionPlanResponse, CreateSubscriptionPrice, type CreateSubscriptionPriceInput, type CreateSubscriptionPriceResponse, CreateSubscriptionTimeBased, type CreateSubscriptionTimeBasedInput, CreateSubscriptionTimeBasedRenewal, type CreateSubscriptionTimeBasedRenewalInput, type CreateSubscriptionTimeBasedRenewalResponse, type CreateSubscriptionTimeBasedResponse, type CreditUsageLog, type CreditUsageLogDetails, type CreditUsageLogIri, type CreditUsageLogNullableIri, type CreditUsageLogsQueryParams, DeleteCreditUsageLog, DeleteSubscription, DeleteSubscriptionConsumption, DeleteSubscriptionConsumptionRenewal, DeleteSubscriptionInfinite, DeleteSubscriptionPlan, type DeleteSubscriptionPlanInput, type DeleteSubscriptionPlanResponse, DeleteSubscriptionPrice, DeleteSubscriptionTimeBased, DeleteSubscriptionTimeBasedRenewal, GetCreditUsageLogDetails, type GetCreditUsageLogDetailsInput, type GetCreditUsageLogDetailsResponse, GetCreditUsageLogs, GetCreditUsageLogsFromPointOfSale, type GetCreditUsageLogsFromPointOfSaleInput, type GetCreditUsageLogsFromPointOfSaleQueryParams, type GetCreditUsageLogsFromPointOfSaleResponse, type GetCreditUsageLogsInput, type GetCreditUsageLogsQueryParams, type GetCreditUsageLogsResponse, GetSubscriptionConsumptionDetails, type GetSubscriptionConsumptionDetailsInput, type GetSubscriptionConsumptionDetailsResponse, GetSubscriptionConsumptionList, type GetSubscriptionConsumptionListInput, type GetSubscriptionConsumptionListQueryParams, type GetSubscriptionConsumptionListResponse, GetSubscriptionConsumptionRenewalDetails, type GetSubscriptionConsumptionRenewalDetailsInput, type GetSubscriptionConsumptionRenewalDetailsResponse, GetSubscriptionConsumptionRenewals, GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInput, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionResponse, type GetSubscriptionConsumptionRenewalsInput, type GetSubscriptionConsumptionRenewalsQueryParams, type GetSubscriptionConsumptionRenewalsResponse, GetSubscriptionDetails, type GetSubscriptionDetailsInput, type GetSubscriptionDetailsResponse, GetSubscriptionInfiniteDetails, type GetSubscriptionInfiniteDetailsInput, type GetSubscriptionInfiniteDetailsResponse, GetSubscriptionInfiniteList, type GetSubscriptionInfiniteListInput, type GetSubscriptionInfiniteListQueryParams, type GetSubscriptionInfiniteListResponse, GetSubscriptionOverviewFromPointOfSale, type GetSubscriptionOverviewFromPointOfSaleInput, type GetSubscriptionOverviewFromPointOfSaleResponse, GetSubscriptionPlanCatalog, GetSubscriptionPlanCatalogDetails, type GetSubscriptionPlanCatalogDetailsInput, type GetSubscriptionPlanCatalogDetailsResponse, type GetSubscriptionPlanCatalogInput, type GetSubscriptionPlanCatalogResponse, GetSubscriptionPlanDetails, type GetSubscriptionPlanDetailsInput, type GetSubscriptionPlanDetailsResponse, GetSubscriptionPlans, type GetSubscriptionPlansInput, type GetSubscriptionPlansQueryParams, type GetSubscriptionPlansResponse, GetSubscriptionPriceDetails, type GetSubscriptionPriceDetailsInput, type GetSubscriptionPriceDetailsResponse, GetSubscriptionPrices, type GetSubscriptionPricesInput, type GetSubscriptionPricesQueryParams, type GetSubscriptionPricesResponse, GetSubscriptionTimeBasedDetails, type GetSubscriptionTimeBasedDetailsInput, type GetSubscriptionTimeBasedDetailsResponse, GetSubscriptionTimeBasedList, type GetSubscriptionTimeBasedListInput, type GetSubscriptionTimeBasedListQueryParams, type GetSubscriptionTimeBasedListResponse, GetSubscriptionTimeBasedRenewalDetails, type GetSubscriptionTimeBasedRenewalDetailsInput, type GetSubscriptionTimeBasedRenewalDetailsResponse, GetSubscriptionTimeBasedRenewals, GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInput, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedResponse, type GetSubscriptionTimeBasedRenewalsInput, type GetSubscriptionTimeBasedRenewalsQueryParams, type GetSubscriptionTimeBasedRenewalsResponse, GetSubscriptions, GetSubscriptionsFromPointOfSale, type GetSubscriptionsFromPointOfSaleInput, type GetSubscriptionsFromPointOfSaleQueryParams, type GetSubscriptionsFromPointOfSaleResponse, type GetSubscriptionsInput, type GetSubscriptionsQueryParams, type GetSubscriptionsResponse, PaySubscriptionConsumptionRenewal, type PaySubscriptionConsumptionRenewalInput, type PaySubscriptionConsumptionRenewalResponse, type PaySubscriptionRenewalInput, PaySubscriptionTimeBasedRenewal, type PaySubscriptionTimeBasedRenewalInput, type PaySubscriptionTimeBasedRenewalResponse, type PaymentIri, type PaymentNullableIri, type ResolvableRenewalPaymentStatus, ResolveSubscriptionConsumptionRenewalPayment, type ResolveSubscriptionConsumptionRenewalPaymentInput, type ResolveSubscriptionConsumptionRenewalPaymentResponse, type ResolveSubscriptionRenewalPaymentInput, ResolveSubscriptionTimeBasedRenewalPayment, type ResolveSubscriptionTimeBasedRenewalPaymentInput, type ResolveSubscriptionTimeBasedRenewalPaymentResponse, type Subscription, type SubscriptionAvailabilityReason, type SubscriptionConsumption, type SubscriptionConsumptionDetails, type SubscriptionConsumptionIri, type SubscriptionConsumptionNullableIri, type SubscriptionConsumptionQueryParams, type SubscriptionConsumptionRenewal, type SubscriptionConsumptionRenewalDetails, type SubscriptionConsumptionRenewalIri, type SubscriptionConsumptionRenewalNullableIri, type SubscriptionConsumptionRenewalsQueryParams, type SubscriptionDetails, type SubscriptionInfinite, type SubscriptionInfiniteDetails, type SubscriptionInfiniteIri, type SubscriptionInfiniteNullableIri, type SubscriptionIri, type SubscriptionNullableIri, type SubscriptionOperationQuote, type SubscriptionOverviewPlan, type SubscriptionOverviewResponse, type SubscriptionOverviewSubscription, type SubscriptionPlan, type SubscriptionPlanIri, type SubscriptionPlanNullableIri, type SubscriptionPlanPriceOption, type SubscriptionPlanSummary, type SubscriptionPlansQueryParams, type SubscriptionPrice, type SubscriptionPriceIri, type SubscriptionPriceNullableIri, type SubscriptionPricesQueryParams, type SubscriptionQueryParams, type SubscriptionRenewalPaymentInfo, type SubscriptionTimeBased, type SubscriptionTimeBasedDetails, type SubscriptionTimeBasedIri, type SubscriptionTimeBasedNullableIri, type SubscriptionTimeBasedQueryParams, type SubscriptionTimeBasedRenewal, type SubscriptionTimeBasedRenewalDetails, type SubscriptionTimeBasedRenewalIri, type SubscriptionTimeBasedRenewalNullableIri, type SubscriptionTimeBasedRenewalsQueryParams, UpdateSubscription, UpdateSubscriptionConsumption, type UpdateSubscriptionConsumptionInput, type UpdateSubscriptionConsumptionResponse, type UpdateSubscriptionInput, UpdateSubscriptionPlan, type UpdateSubscriptionPlanInput, type UpdateSubscriptionPlanResponse, UpdateSubscriptionPrice, type UpdateSubscriptionPriceInput, type UpdateSubscriptionPriceResponse, type UpdateSubscriptionResponse, UpdateSubscriptionTimeBased, type UpdateSubscriptionTimeBasedInput, type UpdateSubscriptionTimeBasedResponse, type WritableSubscriptionCommon, type WritableSubscriptionConsumption, type WritableSubscriptionConsumptionRenewal, type WritableSubscriptionInfinite, type WritableSubscriptionPlan, type WritableSubscriptionPrice, type WritableSubscriptionTimeBased, type WritableSubscriptionTimeBasedRenewal, adjustSubscriptionConsumptionCreditsInputSchema, adjustSubscriptionConsumptionCreditsResponseSchema, adjustableCreditTransactionTypeSchema, adjustableCreditTransactionTypes, createSubscriptionConsumptionInputSchema, createSubscriptionConsumptionRenewalInputSchema, createSubscriptionConsumptionRenewalResponseSchema, createSubscriptionConsumptionResponseSchema, createSubscriptionInfiniteInputSchema, createSubscriptionInfiniteResponseSchema, createSubscriptionPlanInputSchema, createSubscriptionPlanResponseSchema, createSubscriptionPriceInputSchema, createSubscriptionPriceResponseSchema, createSubscriptionTimeBasedInputSchema, createSubscriptionTimeBasedRenewalInputSchema, createSubscriptionTimeBasedRenewalResponseSchema, createSubscriptionTimeBasedResponseSchema, creditUsageLogDetailsSchema, creditUsageLogIriSchema, creditUsageLogNullableIriSchema, creditUsageLogSchema, creditUsageLogsQuerySchema, deleteCreditUsageLogInputSchema, deleteCreditUsageLogResponseSchema, deleteSubscriptionConsumptionInputSchema, deleteSubscriptionConsumptionRenewalInputSchema, deleteSubscriptionConsumptionRenewalResponseSchema, deleteSubscriptionConsumptionResponseSchema, deleteSubscriptionInfiniteInputSchema, deleteSubscriptionInfiniteResponseSchema, deleteSubscriptionInputSchema, deleteSubscriptionPlanInputSchema, deleteSubscriptionPlanResponseSchema, deleteSubscriptionPriceInputSchema, deleteSubscriptionPriceResponseSchema, deleteSubscriptionResponseSchema, deleteSubscriptionTimeBasedInputSchema, deleteSubscriptionTimeBasedRenewalInputSchema, deleteSubscriptionTimeBasedRenewalResponseSchema, deleteSubscriptionTimeBasedResponseSchema, getCreditUsageLogDetailsInputSchema, getCreditUsageLogDetailsResponseSchema, getCreditUsageLogsFromPointOfSaleInputSchema, getCreditUsageLogsFromPointOfSaleResponseSchema, getCreditUsageLogsInputSchema, getCreditUsageLogsResponseSchema, getSubscriptionConsumptionDetailsInputSchema, getSubscriptionConsumptionDetailsResponseSchema, getSubscriptionConsumptionListInputSchema, getSubscriptionConsumptionListResponseSchema, getSubscriptionConsumptionRenewalDetailsInputSchema, getSubscriptionConsumptionRenewalDetailsResponseSchema, getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema, getSubscriptionConsumptionRenewalsInputSchema, getSubscriptionConsumptionRenewalsResponseSchema, getSubscriptionDetailsInputSchema, getSubscriptionDetailsResponseSchema, getSubscriptionInfiniteDetailsInputSchema, getSubscriptionInfiniteDetailsResponseSchema, getSubscriptionInfiniteListInputSchema, getSubscriptionInfiniteListResponseSchema, getSubscriptionOverviewFromPointOfSaleInputSchema, getSubscriptionOverviewFromPointOfSaleResponseSchema, getSubscriptionPlanCatalogDetailsInputSchema, getSubscriptionPlanCatalogDetailsResponseSchema, getSubscriptionPlanCatalogInputSchema, getSubscriptionPlanCatalogResponseSchema, getSubscriptionPlanDetailsInputSchema, getSubscriptionPlanDetailsResponseSchema, getSubscriptionPlansInputSchema, getSubscriptionPlansResponseSchema, getSubscriptionPriceDetailsInputSchema, getSubscriptionPriceDetailsResponseSchema, getSubscriptionPricesInputSchema, getSubscriptionPricesResponseSchema, getSubscriptionTimeBasedDetailsInputSchema, getSubscriptionTimeBasedDetailsResponseSchema, getSubscriptionTimeBasedListInputSchema, getSubscriptionTimeBasedListResponseSchema, getSubscriptionTimeBasedRenewalDetailsInputSchema, getSubscriptionTimeBasedRenewalDetailsResponseSchema, getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema, getSubscriptionTimeBasedRenewalsInputSchema, getSubscriptionTimeBasedRenewalsResponseSchema, getSubscriptionsFromPointOfSaleInputSchema, getSubscriptionsFromPointOfSaleResponseSchema, getSubscriptionsInputSchema, getSubscriptionsResponseSchema, paySubscriptionConsumptionRenewalInputSchema, paySubscriptionConsumptionRenewalResponseSchema, paySubscriptionRenewalInputSchema, paySubscriptionTimeBasedRenewalInputSchema, paySubscriptionTimeBasedRenewalResponseSchema, paymentIriSchema, paymentNullableIriSchema, resolvableRenewalPaymentStatusSchema, resolvableRenewalPaymentStatuses, resolveSubscriptionConsumptionRenewalPaymentInputSchema, resolveSubscriptionConsumptionRenewalPaymentResponseSchema, resolveSubscriptionRenewalPaymentInputSchema, resolveSubscriptionTimeBasedRenewalPaymentInputSchema, resolveSubscriptionTimeBasedRenewalPaymentResponseSchema, subscriptionAvailabilityReasonSchema, subscriptionAvailabilityReasons, subscriptionConsumptionDetailsSchema, subscriptionConsumptionIriSchema, subscriptionConsumptionNullableIriSchema, subscriptionConsumptionQuerySchema, subscriptionConsumptionRenewalDetailsSchema, subscriptionConsumptionRenewalIriSchema, subscriptionConsumptionRenewalNullableIriSchema, subscriptionConsumptionRenewalSchema, subscriptionConsumptionRenewalsQuerySchema, subscriptionConsumptionSchema, subscriptionDetailsSchema, subscriptionInfiniteDetailsSchema, subscriptionInfiniteIriSchema, subscriptionInfiniteNullableIriSchema, subscriptionInfiniteSchema, subscriptionIriSchema, subscriptionNullableIriSchema, subscriptionOperationQuoteSchema, subscriptionOverviewPlanSchema, subscriptionOverviewResponseSchema, subscriptionOverviewSubscriptionSchema, subscriptionPlanIriSchema, subscriptionPlanNullableIriSchema, subscriptionPlanPriceOptionSchema, subscriptionPlanSchema, subscriptionPlanSummarySchema, subscriptionPlansQuerySchema, subscriptionPriceIriSchema, subscriptionPriceNullableIriSchema, subscriptionPriceSchema, subscriptionPricesQuerySchema, subscriptionQuerySchema, subscriptionRenewalPaymentInfoSchema, subscriptionSchema, subscriptionTimeBasedDetailsSchema, subscriptionTimeBasedIriSchema, subscriptionTimeBasedNullableIriSchema, subscriptionTimeBasedQuerySchema, subscriptionTimeBasedRenewalDetailsSchema, subscriptionTimeBasedRenewalIriSchema, subscriptionTimeBasedRenewalNullableIriSchema, subscriptionTimeBasedRenewalSchema, subscriptionTimeBasedRenewalsQuerySchema, subscriptionTimeBasedSchema, updateSubscriptionConsumptionInputSchema, updateSubscriptionConsumptionResponseSchema, updateSubscriptionInputSchema, updateSubscriptionPlanInputSchema, updateSubscriptionPlanResponseSchema, updateSubscriptionPriceInputSchema, updateSubscriptionPriceResponseSchema, updateSubscriptionResponseSchema, updateSubscriptionTimeBasedInputSchema, updateSubscriptionTimeBasedResponseSchema, writableSubscriptionCommonSchema, writableSubscriptionConsumptionRenewalSchema, writableSubscriptionConsumptionSchema, writableSubscriptionInfiniteSchema, writableSubscriptionPlanSchema, writableSubscriptionPriceSchema, writableSubscriptionTimeBasedRenewalSchema, writableSubscriptionTimeBasedSchema };
7843
+ export { AdjustSubscriptionConsumptionCredits, type AdjustSubscriptionConsumptionCreditsInput, type AdjustSubscriptionConsumptionCreditsResponse, type AdjustableCreditTransactionType, AssignSubscriptionPlan, type AssignSubscriptionPlanInput, type AssignSubscriptionPlanResponse, CalculateSubscriptionPlanPurchaseQuote, type CalculateSubscriptionPlanPurchaseQuoteInput, type CalculateSubscriptionPlanPurchaseQuoteResponse, CreateSubscriptionConsumption, type CreateSubscriptionConsumptionInput, CreateSubscriptionConsumptionRenewal, type CreateSubscriptionConsumptionRenewalInput, type CreateSubscriptionConsumptionRenewalResponse, type CreateSubscriptionConsumptionResponse, CreateSubscriptionInfinite, type CreateSubscriptionInfiniteInput, type CreateSubscriptionInfiniteResponse, CreateSubscriptionPlan, type CreateSubscriptionPlanInput, type CreateSubscriptionPlanResponse, CreateSubscriptionPrice, type CreateSubscriptionPriceInput, type CreateSubscriptionPriceResponse, CreateSubscriptionPurchase, type CreateSubscriptionPurchaseInput, type CreateSubscriptionPurchaseResponse, CreateSubscriptionTimeBased, type CreateSubscriptionTimeBasedInput, CreateSubscriptionTimeBasedRenewal, type CreateSubscriptionTimeBasedRenewalInput, type CreateSubscriptionTimeBasedRenewalResponse, type CreateSubscriptionTimeBasedResponse, type CreditUsageLog, type CreditUsageLogDetails, type CreditUsageLogIri, type CreditUsageLogNullableIri, type CreditUsageLogsQueryParams, DeleteCreditUsageLog, DeleteSubscription, DeleteSubscriptionConsumption, DeleteSubscriptionConsumptionRenewal, DeleteSubscriptionInfinite, DeleteSubscriptionPlan, type DeleteSubscriptionPlanInput, type DeleteSubscriptionPlanResponse, DeleteSubscriptionPrice, DeleteSubscriptionTimeBased, DeleteSubscriptionTimeBasedRenewal, GetCreditUsageLogDetails, type GetCreditUsageLogDetailsInput, type GetCreditUsageLogDetailsResponse, GetCreditUsageLogs, GetCreditUsageLogsFromPointOfSale, type GetCreditUsageLogsFromPointOfSaleInput, type GetCreditUsageLogsFromPointOfSaleQueryParams, type GetCreditUsageLogsFromPointOfSaleResponse, type GetCreditUsageLogsInput, type GetCreditUsageLogsQueryParams, type GetCreditUsageLogsResponse, GetSubscriptionConsumptionDetails, type GetSubscriptionConsumptionDetailsInput, type GetSubscriptionConsumptionDetailsResponse, GetSubscriptionConsumptionList, type GetSubscriptionConsumptionListInput, type GetSubscriptionConsumptionListQueryParams, type GetSubscriptionConsumptionListResponse, GetSubscriptionConsumptionRenewalDetails, type GetSubscriptionConsumptionRenewalDetailsInput, type GetSubscriptionConsumptionRenewalDetailsResponse, GetSubscriptionConsumptionRenewals, GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInput, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionResponse, type GetSubscriptionConsumptionRenewalsInput, type GetSubscriptionConsumptionRenewalsQueryParams, type GetSubscriptionConsumptionRenewalsResponse, GetSubscriptionDetails, type GetSubscriptionDetailsInput, type GetSubscriptionDetailsResponse, GetSubscriptionInfiniteDetails, type GetSubscriptionInfiniteDetailsInput, type GetSubscriptionInfiniteDetailsResponse, GetSubscriptionInfiniteList, type GetSubscriptionInfiniteListInput, type GetSubscriptionInfiniteListQueryParams, type GetSubscriptionInfiniteListResponse, GetSubscriptionOverviewFromPointOfSale, type GetSubscriptionOverviewFromPointOfSaleInput, type GetSubscriptionOverviewFromPointOfSaleResponse, GetSubscriptionPlanCatalog, GetSubscriptionPlanCatalogDetails, type GetSubscriptionPlanCatalogDetailsInput, type GetSubscriptionPlanCatalogDetailsResponse, type GetSubscriptionPlanCatalogInput, type GetSubscriptionPlanCatalogResponse, GetSubscriptionPlanDetails, type GetSubscriptionPlanDetailsInput, type GetSubscriptionPlanDetailsResponse, GetSubscriptionPlans, type GetSubscriptionPlansInput, type GetSubscriptionPlansQueryParams, type GetSubscriptionPlansResponse, GetSubscriptionPriceDetails, type GetSubscriptionPriceDetailsInput, type GetSubscriptionPriceDetailsResponse, GetSubscriptionPrices, type GetSubscriptionPricesInput, type GetSubscriptionPricesQueryParams, type GetSubscriptionPricesResponse, GetSubscriptionPurchaseDetails, type GetSubscriptionPurchaseDetailsInput, type GetSubscriptionPurchaseDetailsResponse, GetSubscriptionPurchases, GetSubscriptionPurchasesFromPointOfSale, type GetSubscriptionPurchasesFromPointOfSaleInput, type GetSubscriptionPurchasesFromPointOfSaleQueryParams, type GetSubscriptionPurchasesFromPointOfSaleResponse, type GetSubscriptionPurchasesInput, type GetSubscriptionPurchasesQueryParams, type GetSubscriptionPurchasesResponse, GetSubscriptionTimeBasedDetails, type GetSubscriptionTimeBasedDetailsInput, type GetSubscriptionTimeBasedDetailsResponse, GetSubscriptionTimeBasedList, type GetSubscriptionTimeBasedListInput, type GetSubscriptionTimeBasedListQueryParams, type GetSubscriptionTimeBasedListResponse, GetSubscriptionTimeBasedRenewalDetails, type GetSubscriptionTimeBasedRenewalDetailsInput, type GetSubscriptionTimeBasedRenewalDetailsResponse, GetSubscriptionTimeBasedRenewals, GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInput, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedResponse, type GetSubscriptionTimeBasedRenewalsInput, type GetSubscriptionTimeBasedRenewalsQueryParams, type GetSubscriptionTimeBasedRenewalsResponse, GetSubscriptions, GetSubscriptionsFromPointOfSale, type GetSubscriptionsFromPointOfSaleInput, type GetSubscriptionsFromPointOfSaleQueryParams, type GetSubscriptionsFromPointOfSaleResponse, type GetSubscriptionsInput, type GetSubscriptionsQueryParams, type GetSubscriptionsResponse, PaySubscriptionConsumptionRenewal, type PaySubscriptionConsumptionRenewalInput, type PaySubscriptionConsumptionRenewalResponse, PaySubscriptionPurchase, type PaySubscriptionPurchaseInput, type PaySubscriptionPurchaseResponse, type PaySubscriptionRenewalInput, PaySubscriptionTimeBasedRenewal, type PaySubscriptionTimeBasedRenewalInput, type PaySubscriptionTimeBasedRenewalResponse, type PaymentIri, type PaymentNullableIri, type ResolvableRenewalPaymentStatus, ResolveSubscriptionConsumptionRenewalPayment, type ResolveSubscriptionConsumptionRenewalPaymentInput, type ResolveSubscriptionConsumptionRenewalPaymentResponse, ResolveSubscriptionPurchasePayment, type ResolveSubscriptionPurchasePaymentInput, type ResolveSubscriptionPurchasePaymentResponse, type ResolveSubscriptionRenewalPaymentInput, ResolveSubscriptionTimeBasedRenewalPayment, type ResolveSubscriptionTimeBasedRenewalPaymentInput, type ResolveSubscriptionTimeBasedRenewalPaymentResponse, type Subscription, type SubscriptionAvailabilityReason, type SubscriptionConsumption, type SubscriptionConsumptionDetails, type SubscriptionConsumptionIri, type SubscriptionConsumptionNullableIri, type SubscriptionConsumptionQueryParams, type SubscriptionConsumptionRenewal, type SubscriptionConsumptionRenewalDetails, type SubscriptionConsumptionRenewalIri, type SubscriptionConsumptionRenewalNullableIri, type SubscriptionConsumptionRenewalsQueryParams, type SubscriptionDetails, type SubscriptionInfinite, type SubscriptionInfiniteDetails, type SubscriptionInfiniteIri, type SubscriptionInfiniteNullableIri, type SubscriptionIri, type SubscriptionNullableIri, type SubscriptionOperationQuote, type SubscriptionOverviewPlan, type SubscriptionOverviewResponse, type SubscriptionOverviewSubscription, type SubscriptionPlan, type SubscriptionPlanIri, type SubscriptionPlanNullableIri, type SubscriptionPlanPriceOption, type SubscriptionPlanSummary, type SubscriptionPlansQueryParams, type SubscriptionPrice, type SubscriptionPriceIri, type SubscriptionPriceNullableIri, type SubscriptionPricesQueryParams, type SubscriptionPurchase, type SubscriptionPurchaseDetails, type SubscriptionPurchaseIri, type SubscriptionPurchaseNullableIri, type SubscriptionPurchaseQuote, type SubscriptionPurchaseStatus, type SubscriptionPurchasesQueryParams, type SubscriptionQueryParams, type SubscriptionRenewalPaymentInfo, type SubscriptionTimeBased, type SubscriptionTimeBasedDetails, type SubscriptionTimeBasedIri, type SubscriptionTimeBasedNullableIri, type SubscriptionTimeBasedQueryParams, type SubscriptionTimeBasedRenewal, type SubscriptionTimeBasedRenewalDetails, type SubscriptionTimeBasedRenewalIri, type SubscriptionTimeBasedRenewalNullableIri, type SubscriptionTimeBasedRenewalsQueryParams, UpdateSubscription, UpdateSubscriptionConsumption, type UpdateSubscriptionConsumptionInput, type UpdateSubscriptionConsumptionResponse, type UpdateSubscriptionInput, UpdateSubscriptionPlan, type UpdateSubscriptionPlanInput, type UpdateSubscriptionPlanResponse, UpdateSubscriptionPrice, type UpdateSubscriptionPriceInput, type UpdateSubscriptionPriceResponse, type UpdateSubscriptionResponse, UpdateSubscriptionTimeBased, type UpdateSubscriptionTimeBasedInput, type UpdateSubscriptionTimeBasedResponse, type WritableAssignedSubscriptionPlan, type WritableSubscriptionCommon, type WritableSubscriptionConsumption, type WritableSubscriptionConsumptionRenewal, type WritableSubscriptionInfinite, type WritableSubscriptionPlan, type WritableSubscriptionPlanPurchaseQuote, type WritableSubscriptionPrice, type WritableSubscriptionPurchase, type WritableSubscriptionTimeBased, type WritableSubscriptionTimeBasedRenewal, adjustSubscriptionConsumptionCreditsInputSchema, adjustSubscriptionConsumptionCreditsResponseSchema, adjustableCreditTransactionTypeSchema, adjustableCreditTransactionTypes, assignSubscriptionPlanInputSchema, assignSubscriptionPlanResponseSchema, calculateSubscriptionPlanPurchaseQuoteInputSchema, calculateSubscriptionPlanPurchaseQuoteResponseSchema, createSubscriptionConsumptionInputSchema, createSubscriptionConsumptionRenewalInputSchema, createSubscriptionConsumptionRenewalResponseSchema, createSubscriptionConsumptionResponseSchema, createSubscriptionInfiniteInputSchema, createSubscriptionInfiniteResponseSchema, createSubscriptionPlanInputSchema, createSubscriptionPlanResponseSchema, createSubscriptionPriceInputSchema, createSubscriptionPriceResponseSchema, createSubscriptionPurchaseInputSchema, createSubscriptionPurchaseResponseSchema, createSubscriptionTimeBasedInputSchema, createSubscriptionTimeBasedRenewalInputSchema, createSubscriptionTimeBasedRenewalResponseSchema, createSubscriptionTimeBasedResponseSchema, creditUsageLogDetailsSchema, creditUsageLogIriSchema, creditUsageLogNullableIriSchema, creditUsageLogSchema, creditUsageLogsQuerySchema, deleteCreditUsageLogInputSchema, deleteCreditUsageLogResponseSchema, deleteSubscriptionConsumptionInputSchema, deleteSubscriptionConsumptionRenewalInputSchema, deleteSubscriptionConsumptionRenewalResponseSchema, deleteSubscriptionConsumptionResponseSchema, deleteSubscriptionInfiniteInputSchema, deleteSubscriptionInfiniteResponseSchema, deleteSubscriptionInputSchema, deleteSubscriptionPlanInputSchema, deleteSubscriptionPlanResponseSchema, deleteSubscriptionPriceInputSchema, deleteSubscriptionPriceResponseSchema, deleteSubscriptionResponseSchema, deleteSubscriptionTimeBasedInputSchema, deleteSubscriptionTimeBasedRenewalInputSchema, deleteSubscriptionTimeBasedRenewalResponseSchema, deleteSubscriptionTimeBasedResponseSchema, getCreditUsageLogDetailsInputSchema, getCreditUsageLogDetailsResponseSchema, getCreditUsageLogsFromPointOfSaleInputSchema, getCreditUsageLogsFromPointOfSaleResponseSchema, getCreditUsageLogsInputSchema, getCreditUsageLogsResponseSchema, getSubscriptionConsumptionDetailsInputSchema, getSubscriptionConsumptionDetailsResponseSchema, getSubscriptionConsumptionListInputSchema, getSubscriptionConsumptionListResponseSchema, getSubscriptionConsumptionRenewalDetailsInputSchema, getSubscriptionConsumptionRenewalDetailsResponseSchema, getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema, getSubscriptionConsumptionRenewalsInputSchema, getSubscriptionConsumptionRenewalsResponseSchema, getSubscriptionDetailsInputSchema, getSubscriptionDetailsResponseSchema, getSubscriptionInfiniteDetailsInputSchema, getSubscriptionInfiniteDetailsResponseSchema, getSubscriptionInfiniteListInputSchema, getSubscriptionInfiniteListResponseSchema, getSubscriptionOverviewFromPointOfSaleInputSchema, getSubscriptionOverviewFromPointOfSaleResponseSchema, getSubscriptionPlanCatalogDetailsInputSchema, getSubscriptionPlanCatalogDetailsResponseSchema, getSubscriptionPlanCatalogInputSchema, getSubscriptionPlanCatalogResponseSchema, getSubscriptionPlanDetailsInputSchema, getSubscriptionPlanDetailsResponseSchema, getSubscriptionPlansInputSchema, getSubscriptionPlansResponseSchema, getSubscriptionPriceDetailsInputSchema, getSubscriptionPriceDetailsResponseSchema, getSubscriptionPricesInputSchema, getSubscriptionPricesResponseSchema, getSubscriptionPurchaseDetailsInputSchema, getSubscriptionPurchaseDetailsResponseSchema, getSubscriptionPurchasesFromPointOfSaleInputSchema, getSubscriptionPurchasesInputSchema, getSubscriptionPurchasesResponseSchema, getSubscriptionTimeBasedDetailsInputSchema, getSubscriptionTimeBasedDetailsResponseSchema, getSubscriptionTimeBasedListInputSchema, getSubscriptionTimeBasedListResponseSchema, getSubscriptionTimeBasedRenewalDetailsInputSchema, getSubscriptionTimeBasedRenewalDetailsResponseSchema, getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema, getSubscriptionTimeBasedRenewalsInputSchema, getSubscriptionTimeBasedRenewalsResponseSchema, getSubscriptionsFromPointOfSaleInputSchema, getSubscriptionsFromPointOfSaleResponseSchema, getSubscriptionsInputSchema, getSubscriptionsResponseSchema, paySubscriptionConsumptionRenewalInputSchema, paySubscriptionConsumptionRenewalResponseSchema, paySubscriptionPurchaseInputSchema, paySubscriptionPurchaseResponseSchema, paySubscriptionRenewalInputSchema, paySubscriptionTimeBasedRenewalInputSchema, paySubscriptionTimeBasedRenewalResponseSchema, paymentIriSchema, paymentNullableIriSchema, resolvableRenewalPaymentStatusSchema, resolvableRenewalPaymentStatuses, resolveSubscriptionConsumptionRenewalPaymentInputSchema, resolveSubscriptionConsumptionRenewalPaymentResponseSchema, resolveSubscriptionPurchasePaymentInputSchema, resolveSubscriptionPurchasePaymentResponseSchema, resolveSubscriptionRenewalPaymentInputSchema, resolveSubscriptionTimeBasedRenewalPaymentInputSchema, resolveSubscriptionTimeBasedRenewalPaymentResponseSchema, subscriptionAvailabilityReasonSchema, subscriptionAvailabilityReasons, subscriptionConsumptionDetailsSchema, subscriptionConsumptionIriSchema, subscriptionConsumptionNullableIriSchema, subscriptionConsumptionQuerySchema, subscriptionConsumptionRenewalDetailsSchema, subscriptionConsumptionRenewalIriSchema, subscriptionConsumptionRenewalNullableIriSchema, subscriptionConsumptionRenewalSchema, subscriptionConsumptionRenewalsQuerySchema, subscriptionConsumptionSchema, subscriptionDetailsSchema, subscriptionInfiniteDetailsSchema, subscriptionInfiniteIriSchema, subscriptionInfiniteNullableIriSchema, subscriptionInfiniteSchema, subscriptionIriSchema, subscriptionNullableIriSchema, subscriptionOperationQuoteSchema, subscriptionOverviewPlanSchema, subscriptionOverviewResponseSchema, subscriptionOverviewSubscriptionSchema, subscriptionPlanIriSchema, subscriptionPlanNullableIriSchema, subscriptionPlanPriceOptionSchema, subscriptionPlanSchema, subscriptionPlanSummarySchema, subscriptionPlansQuerySchema, subscriptionPriceIriSchema, subscriptionPriceNullableIriSchema, subscriptionPriceSchema, subscriptionPricesQuerySchema, subscriptionPurchaseDetailsSchema, subscriptionPurchaseIriSchema, subscriptionPurchaseNullableIriSchema, subscriptionPurchaseQuoteSchema, subscriptionPurchaseSchema, subscriptionPurchaseStatusSchema, subscriptionPurchaseStatuses, subscriptionPurchasesQuerySchema, subscriptionQuerySchema, subscriptionRenewalPaymentInfoSchema, subscriptionSchema, subscriptionTimeBasedDetailsSchema, subscriptionTimeBasedIriSchema, subscriptionTimeBasedNullableIriSchema, subscriptionTimeBasedQuerySchema, subscriptionTimeBasedRenewalDetailsSchema, subscriptionTimeBasedRenewalIriSchema, subscriptionTimeBasedRenewalNullableIriSchema, subscriptionTimeBasedRenewalSchema, subscriptionTimeBasedRenewalsQuerySchema, subscriptionTimeBasedSchema, updateSubscriptionConsumptionInputSchema, updateSubscriptionConsumptionResponseSchema, updateSubscriptionInputSchema, updateSubscriptionPlanInputSchema, updateSubscriptionPlanResponseSchema, updateSubscriptionPriceInputSchema, updateSubscriptionPriceResponseSchema, updateSubscriptionResponseSchema, updateSubscriptionTimeBasedInputSchema, updateSubscriptionTimeBasedResponseSchema, writableSubscriptionCommonSchema, writableSubscriptionConsumptionRenewalSchema, writableSubscriptionConsumptionSchema, writableSubscriptionInfiniteSchema, writableSubscriptionPlanSchema, writableSubscriptionPriceSchema, writableSubscriptionPurchaseSchema, writableSubscriptionTimeBasedRenewalSchema, writableSubscriptionTimeBasedSchema };