@deepintel-ltd/farmpro-contracts 1.5.17 → 1.5.18

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.
@@ -811,7 +811,7 @@ export declare const paymentsRouter: {
811
811
  farmId: string;
812
812
  }>;
813
813
  summary: "Initialize payment";
814
- description: "Create a payment intent and get Flutterwave payment link";
814
+ description: "Create a payment intent and get payment gateway link";
815
815
  method: "POST";
816
816
  body: z.ZodObject<{
817
817
  data: z.ZodObject<{
@@ -1269,7 +1269,7 @@ export declare const paymentsRouter: {
1269
1269
  farmId: string;
1270
1270
  }>;
1271
1271
  summary: "Verify payment";
1272
- description: "Verify payment status with Flutterwave";
1272
+ description: "Verify payment status with payment gateway";
1273
1273
  method: "POST";
1274
1274
  body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1275
1275
  path: "/farms/:farmId/payments/:id/verify";
@@ -1732,8 +1732,8 @@ export declare const paymentsRouter: {
1732
1732
  };
1733
1733
  };
1734
1734
  webhook: {
1735
- summary: "Flutterwave webhook";
1736
- description: "Webhook endpoint for Flutterwave payment callbacks";
1735
+ summary: "Payment webhook";
1736
+ description: "Webhook endpoint for payment gateway callbacks";
1737
1737
  method: "POST";
1738
1738
  body: z.ZodAny;
1739
1739
  path: "/payments/webhook";
@@ -1,6 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { paymentResponseSchema, paymentListResponseSchema, flutterwaveInitPaymentSchema, flutterwaveInitPaymentResponseSchema, } from '../schemas/payments.schemas';
3
+ import { paymentResponseSchema, paymentListResponseSchema, initPaymentSchema, initPaymentResponseSchema, } from '../schemas/payments.schemas';
4
4
  import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema, jsonApiPaginationQuerySchema, jsonApiSortQuerySchema, jsonApiIncludeQuerySchema, jsonApiFilterQuerySchema } from '../schemas/common.schemas';
5
5
  const c = initContract();
6
6
  export const paymentsRouter = c.router({
@@ -47,16 +47,16 @@ export const paymentsRouter = c.router({
47
47
  method: 'POST',
48
48
  path: '/farms/:farmId/payments/initialize',
49
49
  pathParams: z.object({ farmId: z.string().uuid() }),
50
- body: z.object({ data: flutterwaveInitPaymentSchema }),
50
+ body: z.object({ data: initPaymentSchema }),
51
51
  responses: {
52
- 201: flutterwaveInitPaymentResponseSchema,
52
+ 201: initPaymentResponseSchema,
53
53
  400: jsonApiErrorResponseSchema,
54
54
  404: jsonApiErrorResponseSchema,
55
55
  401: jsonApiErrorResponseSchema,
56
56
  422: jsonApiErrorResponseSchema,
57
57
  },
58
58
  summary: 'Initialize payment',
59
- description: 'Create a payment intent and get Flutterwave payment link',
59
+ description: 'Create a payment intent and get payment gateway link',
60
60
  },
61
61
  // Verify payment
62
62
  verifyPayment: {
@@ -74,18 +74,18 @@ export const paymentsRouter = c.router({
74
74
  400: jsonApiErrorResponseSchema,
75
75
  },
76
76
  summary: 'Verify payment',
77
- description: 'Verify payment status with Flutterwave',
77
+ description: 'Verify payment status with payment gateway',
78
78
  },
79
79
  // Webhook endpoint (public, no auth required)
80
80
  webhook: {
81
81
  method: 'POST',
82
82
  path: '/payments/webhook',
83
- body: z.any(), // Flutterwave webhook payload
83
+ body: z.any(), // Payment gateway webhook payload
84
84
  responses: {
85
85
  200: jsonApiSuccessResponseSchema,
86
86
  400: jsonApiErrorResponseSchema,
87
87
  },
88
- summary: 'Flutterwave webhook',
89
- description: 'Webhook endpoint for Flutterwave payment callbacks',
88
+ summary: 'Payment webhook',
89
+ description: 'Webhook endpoint for payment gateway callbacks',
90
90
  },
91
91
  });
@@ -306,7 +306,7 @@ export declare const subscriptionsRouter: {
306
306
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
307
307
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
308
  currency: z.ZodEnum<["NGN", "USD"]>;
309
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
309
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
310
310
  currentPeriodStart: z.ZodString;
311
311
  currentPeriodEnd: z.ZodString;
312
312
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -327,7 +327,7 @@ export declare const subscriptionsRouter: {
327
327
  currentPeriodStart: string;
328
328
  currentPeriodEnd: string;
329
329
  amount?: number | null | undefined;
330
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
330
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
331
331
  cancelledAt?: string | null | undefined;
332
332
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
333
333
  gatewaySubscriptionId?: string | null | undefined;
@@ -343,7 +343,7 @@ export declare const subscriptionsRouter: {
343
343
  currentPeriodStart: string;
344
344
  currentPeriodEnd: string;
345
345
  amount?: number | null | undefined;
346
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
346
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
347
347
  cancelledAt?: string | null | undefined;
348
348
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
349
349
  gatewaySubscriptionId?: string | null | undefined;
@@ -363,7 +363,7 @@ export declare const subscriptionsRouter: {
363
363
  currentPeriodStart: string;
364
364
  currentPeriodEnd: string;
365
365
  amount?: number | null | undefined;
366
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
366
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
367
367
  cancelledAt?: string | null | undefined;
368
368
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
369
369
  gatewaySubscriptionId?: string | null | undefined;
@@ -383,7 +383,7 @@ export declare const subscriptionsRouter: {
383
383
  currentPeriodStart: string;
384
384
  currentPeriodEnd: string;
385
385
  amount?: number | null | undefined;
386
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
386
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
387
387
  cancelledAt?: string | null | undefined;
388
388
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
389
389
  gatewaySubscriptionId?: string | null | undefined;
@@ -429,7 +429,7 @@ export declare const subscriptionsRouter: {
429
429
  currentPeriodStart: string;
430
430
  currentPeriodEnd: string;
431
431
  amount?: number | null | undefined;
432
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
432
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
433
433
  cancelledAt?: string | null | undefined;
434
434
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
435
435
  gatewaySubscriptionId?: string | null | undefined;
@@ -461,7 +461,7 @@ export declare const subscriptionsRouter: {
461
461
  currentPeriodStart: string;
462
462
  currentPeriodEnd: string;
463
463
  amount?: number | null | undefined;
464
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
464
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
465
465
  cancelledAt?: string | null | undefined;
466
466
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
467
467
  gatewaySubscriptionId?: string | null | undefined;
@@ -688,7 +688,7 @@ export declare const subscriptionsRouter: {
688
688
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
689
689
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
690
690
  currency: z.ZodEnum<["NGN", "USD"]>;
691
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
691
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
692
692
  currentPeriodStart: z.ZodString;
693
693
  currentPeriodEnd: z.ZodString;
694
694
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -709,7 +709,7 @@ export declare const subscriptionsRouter: {
709
709
  currentPeriodStart: string;
710
710
  currentPeriodEnd: string;
711
711
  amount?: number | null | undefined;
712
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
712
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
713
713
  cancelledAt?: string | null | undefined;
714
714
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
715
715
  gatewaySubscriptionId?: string | null | undefined;
@@ -725,7 +725,7 @@ export declare const subscriptionsRouter: {
725
725
  currentPeriodStart: string;
726
726
  currentPeriodEnd: string;
727
727
  amount?: number | null | undefined;
728
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
728
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
729
729
  cancelledAt?: string | null | undefined;
730
730
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
731
731
  gatewaySubscriptionId?: string | null | undefined;
@@ -745,7 +745,7 @@ export declare const subscriptionsRouter: {
745
745
  currentPeriodStart: string;
746
746
  currentPeriodEnd: string;
747
747
  amount?: number | null | undefined;
748
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
748
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
749
749
  cancelledAt?: string | null | undefined;
750
750
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
751
751
  gatewaySubscriptionId?: string | null | undefined;
@@ -765,7 +765,7 @@ export declare const subscriptionsRouter: {
765
765
  currentPeriodStart: string;
766
766
  currentPeriodEnd: string;
767
767
  amount?: number | null | undefined;
768
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
768
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
769
769
  cancelledAt?: string | null | undefined;
770
770
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
771
771
  gatewaySubscriptionId?: string | null | undefined;
@@ -811,7 +811,7 @@ export declare const subscriptionsRouter: {
811
811
  currentPeriodStart: string;
812
812
  currentPeriodEnd: string;
813
813
  amount?: number | null | undefined;
814
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
814
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
815
815
  cancelledAt?: string | null | undefined;
816
816
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
817
817
  gatewaySubscriptionId?: string | null | undefined;
@@ -843,7 +843,7 @@ export declare const subscriptionsRouter: {
843
843
  currentPeriodStart: string;
844
844
  currentPeriodEnd: string;
845
845
  amount?: number | null | undefined;
846
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
846
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
847
847
  cancelledAt?: string | null | undefined;
848
848
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
849
849
  gatewaySubscriptionId?: string | null | undefined;
@@ -1084,7 +1084,7 @@ export declare const subscriptionsRouter: {
1084
1084
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
1085
1085
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1086
1086
  currency: z.ZodEnum<["NGN", "USD"]>;
1087
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
1087
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
1088
1088
  currentPeriodStart: z.ZodString;
1089
1089
  currentPeriodEnd: z.ZodString;
1090
1090
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1105,7 +1105,7 @@ export declare const subscriptionsRouter: {
1105
1105
  currentPeriodStart: string;
1106
1106
  currentPeriodEnd: string;
1107
1107
  amount?: number | null | undefined;
1108
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1108
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1109
1109
  cancelledAt?: string | null | undefined;
1110
1110
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1111
1111
  gatewaySubscriptionId?: string | null | undefined;
@@ -1121,7 +1121,7 @@ export declare const subscriptionsRouter: {
1121
1121
  currentPeriodStart: string;
1122
1122
  currentPeriodEnd: string;
1123
1123
  amount?: number | null | undefined;
1124
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1124
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1125
1125
  cancelledAt?: string | null | undefined;
1126
1126
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1127
1127
  gatewaySubscriptionId?: string | null | undefined;
@@ -1141,7 +1141,7 @@ export declare const subscriptionsRouter: {
1141
1141
  currentPeriodStart: string;
1142
1142
  currentPeriodEnd: string;
1143
1143
  amount?: number | null | undefined;
1144
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1144
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1145
1145
  cancelledAt?: string | null | undefined;
1146
1146
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1147
1147
  gatewaySubscriptionId?: string | null | undefined;
@@ -1161,7 +1161,7 @@ export declare const subscriptionsRouter: {
1161
1161
  currentPeriodStart: string;
1162
1162
  currentPeriodEnd: string;
1163
1163
  amount?: number | null | undefined;
1164
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1164
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1165
1165
  cancelledAt?: string | null | undefined;
1166
1166
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1167
1167
  gatewaySubscriptionId?: string | null | undefined;
@@ -1207,7 +1207,7 @@ export declare const subscriptionsRouter: {
1207
1207
  currentPeriodStart: string;
1208
1208
  currentPeriodEnd: string;
1209
1209
  amount?: number | null | undefined;
1210
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1210
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1211
1211
  cancelledAt?: string | null | undefined;
1212
1212
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1213
1213
  gatewaySubscriptionId?: string | null | undefined;
@@ -1239,7 +1239,7 @@ export declare const subscriptionsRouter: {
1239
1239
  currentPeriodStart: string;
1240
1240
  currentPeriodEnd: string;
1241
1241
  amount?: number | null | undefined;
1242
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1242
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1243
1243
  cancelledAt?: string | null | undefined;
1244
1244
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1245
1245
  gatewaySubscriptionId?: string | null | undefined;
@@ -1457,15 +1457,15 @@ export declare const subscriptionsRouter: {
1457
1457
  type: z.ZodLiteral<"subscriptions">;
1458
1458
  attributes: z.ZodObject<{
1459
1459
  tier: z.ZodEffects<z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>, "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT", "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT">;
1460
- billingCycle: z.ZodEffects<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>, "monthly" | "annual" | "bi_annual", "custom" | "monthly" | "annual" | "bi_annual">;
1460
+ billingCycle: z.ZodEffects<z.ZodEnum<["monthly", "annual", "custom"]>, "monthly" | "annual", "custom" | "monthly" | "annual">;
1461
1461
  currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
1462
1462
  }, "strip", z.ZodTypeAny, {
1463
1463
  currency: "NGN" | "USD";
1464
1464
  tier: "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1465
- billingCycle: "monthly" | "annual" | "bi_annual";
1465
+ billingCycle: "monthly" | "annual";
1466
1466
  }, {
1467
1467
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1468
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1468
+ billingCycle: "custom" | "monthly" | "annual";
1469
1469
  currency?: "NGN" | "USD" | undefined;
1470
1470
  }>;
1471
1471
  }, "strip", z.ZodTypeAny, {
@@ -1473,13 +1473,13 @@ export declare const subscriptionsRouter: {
1473
1473
  attributes: {
1474
1474
  currency: "NGN" | "USD";
1475
1475
  tier: "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1476
- billingCycle: "monthly" | "annual" | "bi_annual";
1476
+ billingCycle: "monthly" | "annual";
1477
1477
  };
1478
1478
  }, {
1479
1479
  type: "subscriptions";
1480
1480
  attributes: {
1481
1481
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1482
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1482
+ billingCycle: "custom" | "monthly" | "annual";
1483
1483
  currency?: "NGN" | "USD" | undefined;
1484
1484
  };
1485
1485
  }>;
@@ -1489,7 +1489,7 @@ export declare const subscriptionsRouter: {
1489
1489
  attributes: {
1490
1490
  currency: "NGN" | "USD";
1491
1491
  tier: "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1492
- billingCycle: "monthly" | "annual" | "bi_annual";
1492
+ billingCycle: "monthly" | "annual";
1493
1493
  };
1494
1494
  };
1495
1495
  }, {
@@ -1497,7 +1497,7 @@ export declare const subscriptionsRouter: {
1497
1497
  type: "subscriptions";
1498
1498
  attributes: {
1499
1499
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1500
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1500
+ billingCycle: "custom" | "monthly" | "annual";
1501
1501
  currency?: "NGN" | "USD" | undefined;
1502
1502
  };
1503
1503
  };
@@ -1827,20 +1827,20 @@ export declare const subscriptionsRouter: {
1827
1827
  tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
1828
1828
  amount: z.ZodNumber;
1829
1829
  currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
1830
- billingCycle: z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>;
1830
+ billingCycle: z.ZodEnum<["monthly", "annual", "custom"]>;
1831
1831
  paymentGateway: z.ZodOptional<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>;
1832
1832
  gatewaySubscriptionId: z.ZodOptional<z.ZodString>;
1833
1833
  }, "strip", z.ZodTypeAny, {
1834
1834
  currency: "NGN" | "USD";
1835
1835
  amount: number;
1836
1836
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1837
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1837
+ billingCycle: "custom" | "monthly" | "annual";
1838
1838
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1839
1839
  gatewaySubscriptionId?: string | undefined;
1840
1840
  }, {
1841
1841
  amount: number;
1842
1842
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1843
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1843
+ billingCycle: "custom" | "monthly" | "annual";
1844
1844
  currency?: "NGN" | "USD" | undefined;
1845
1845
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1846
1846
  gatewaySubscriptionId?: string | undefined;
@@ -1851,7 +1851,7 @@ export declare const subscriptionsRouter: {
1851
1851
  currency: "NGN" | "USD";
1852
1852
  amount: number;
1853
1853
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1854
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1854
+ billingCycle: "custom" | "monthly" | "annual";
1855
1855
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1856
1856
  gatewaySubscriptionId?: string | undefined;
1857
1857
  };
@@ -1860,7 +1860,7 @@ export declare const subscriptionsRouter: {
1860
1860
  attributes: {
1861
1861
  amount: number;
1862
1862
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1863
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1863
+ billingCycle: "custom" | "monthly" | "annual";
1864
1864
  currency?: "NGN" | "USD" | undefined;
1865
1865
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1866
1866
  gatewaySubscriptionId?: string | undefined;
@@ -1873,7 +1873,7 @@ export declare const subscriptionsRouter: {
1873
1873
  currency: "NGN" | "USD";
1874
1874
  amount: number;
1875
1875
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1876
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1876
+ billingCycle: "custom" | "monthly" | "annual";
1877
1877
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1878
1878
  gatewaySubscriptionId?: string | undefined;
1879
1879
  };
@@ -1884,7 +1884,7 @@ export declare const subscriptionsRouter: {
1884
1884
  attributes: {
1885
1885
  amount: number;
1886
1886
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1887
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
1887
+ billingCycle: "custom" | "monthly" | "annual";
1888
1888
  currency?: "NGN" | "USD" | undefined;
1889
1889
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
1890
1890
  gatewaySubscriptionId?: string | undefined;
@@ -1902,7 +1902,7 @@ export declare const subscriptionsRouter: {
1902
1902
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
1903
1903
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1904
1904
  currency: z.ZodEnum<["NGN", "USD"]>;
1905
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
1905
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
1906
1906
  currentPeriodStart: z.ZodString;
1907
1907
  currentPeriodEnd: z.ZodString;
1908
1908
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1923,7 +1923,7 @@ export declare const subscriptionsRouter: {
1923
1923
  currentPeriodStart: string;
1924
1924
  currentPeriodEnd: string;
1925
1925
  amount?: number | null | undefined;
1926
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1926
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1927
1927
  cancelledAt?: string | null | undefined;
1928
1928
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1929
1929
  gatewaySubscriptionId?: string | null | undefined;
@@ -1939,7 +1939,7 @@ export declare const subscriptionsRouter: {
1939
1939
  currentPeriodStart: string;
1940
1940
  currentPeriodEnd: string;
1941
1941
  amount?: number | null | undefined;
1942
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1942
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1943
1943
  cancelledAt?: string | null | undefined;
1944
1944
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1945
1945
  gatewaySubscriptionId?: string | null | undefined;
@@ -1959,7 +1959,7 @@ export declare const subscriptionsRouter: {
1959
1959
  currentPeriodStart: string;
1960
1960
  currentPeriodEnd: string;
1961
1961
  amount?: number | null | undefined;
1962
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1962
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1963
1963
  cancelledAt?: string | null | undefined;
1964
1964
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1965
1965
  gatewaySubscriptionId?: string | null | undefined;
@@ -1979,7 +1979,7 @@ export declare const subscriptionsRouter: {
1979
1979
  currentPeriodStart: string;
1980
1980
  currentPeriodEnd: string;
1981
1981
  amount?: number | null | undefined;
1982
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
1982
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
1983
1983
  cancelledAt?: string | null | undefined;
1984
1984
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
1985
1985
  gatewaySubscriptionId?: string | null | undefined;
@@ -2025,7 +2025,7 @@ export declare const subscriptionsRouter: {
2025
2025
  currentPeriodStart: string;
2026
2026
  currentPeriodEnd: string;
2027
2027
  amount?: number | null | undefined;
2028
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2028
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2029
2029
  cancelledAt?: string | null | undefined;
2030
2030
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2031
2031
  gatewaySubscriptionId?: string | null | undefined;
@@ -2057,7 +2057,7 @@ export declare const subscriptionsRouter: {
2057
2057
  currentPeriodStart: string;
2058
2058
  currentPeriodEnd: string;
2059
2059
  amount?: number | null | undefined;
2060
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2060
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2061
2061
  cancelledAt?: string | null | undefined;
2062
2062
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2063
2063
  gatewaySubscriptionId?: string | null | undefined;
@@ -2375,7 +2375,7 @@ export declare const subscriptionsRouter: {
2375
2375
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
2376
2376
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2377
2377
  currency: z.ZodEnum<["NGN", "USD"]>;
2378
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
2378
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
2379
2379
  currentPeriodStart: z.ZodString;
2380
2380
  currentPeriodEnd: z.ZodString;
2381
2381
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2396,7 +2396,7 @@ export declare const subscriptionsRouter: {
2396
2396
  currentPeriodStart: string;
2397
2397
  currentPeriodEnd: string;
2398
2398
  amount?: number | null | undefined;
2399
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2399
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2400
2400
  cancelledAt?: string | null | undefined;
2401
2401
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2402
2402
  gatewaySubscriptionId?: string | null | undefined;
@@ -2412,7 +2412,7 @@ export declare const subscriptionsRouter: {
2412
2412
  currentPeriodStart: string;
2413
2413
  currentPeriodEnd: string;
2414
2414
  amount?: number | null | undefined;
2415
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2415
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2416
2416
  cancelledAt?: string | null | undefined;
2417
2417
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2418
2418
  gatewaySubscriptionId?: string | null | undefined;
@@ -2432,7 +2432,7 @@ export declare const subscriptionsRouter: {
2432
2432
  currentPeriodStart: string;
2433
2433
  currentPeriodEnd: string;
2434
2434
  amount?: number | null | undefined;
2435
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2435
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2436
2436
  cancelledAt?: string | null | undefined;
2437
2437
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2438
2438
  gatewaySubscriptionId?: string | null | undefined;
@@ -2452,7 +2452,7 @@ export declare const subscriptionsRouter: {
2452
2452
  currentPeriodStart: string;
2453
2453
  currentPeriodEnd: string;
2454
2454
  amount?: number | null | undefined;
2455
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2455
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2456
2456
  cancelledAt?: string | null | undefined;
2457
2457
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2458
2458
  gatewaySubscriptionId?: string | null | undefined;
@@ -2498,7 +2498,7 @@ export declare const subscriptionsRouter: {
2498
2498
  currentPeriodStart: string;
2499
2499
  currentPeriodEnd: string;
2500
2500
  amount?: number | null | undefined;
2501
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2501
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2502
2502
  cancelledAt?: string | null | undefined;
2503
2503
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2504
2504
  gatewaySubscriptionId?: string | null | undefined;
@@ -2530,7 +2530,7 @@ export declare const subscriptionsRouter: {
2530
2530
  currentPeriodStart: string;
2531
2531
  currentPeriodEnd: string;
2532
2532
  amount?: number | null | undefined;
2533
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
2533
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
2534
2534
  cancelledAt?: string | null | undefined;
2535
2535
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
2536
2536
  gatewaySubscriptionId?: string | null | undefined;
@@ -3573,7 +3573,7 @@ export declare const subscriptionsRouter: {
3573
3573
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
3574
3574
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3575
3575
  currency: z.ZodEnum<["NGN", "USD"]>;
3576
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
3576
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
3577
3577
  currentPeriodStart: z.ZodString;
3578
3578
  currentPeriodEnd: z.ZodString;
3579
3579
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3594,7 +3594,7 @@ export declare const subscriptionsRouter: {
3594
3594
  currentPeriodStart: string;
3595
3595
  currentPeriodEnd: string;
3596
3596
  amount?: number | null | undefined;
3597
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3597
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3598
3598
  cancelledAt?: string | null | undefined;
3599
3599
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3600
3600
  gatewaySubscriptionId?: string | null | undefined;
@@ -3610,7 +3610,7 @@ export declare const subscriptionsRouter: {
3610
3610
  currentPeriodStart: string;
3611
3611
  currentPeriodEnd: string;
3612
3612
  amount?: number | null | undefined;
3613
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3613
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3614
3614
  cancelledAt?: string | null | undefined;
3615
3615
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3616
3616
  gatewaySubscriptionId?: string | null | undefined;
@@ -3630,7 +3630,7 @@ export declare const subscriptionsRouter: {
3630
3630
  currentPeriodStart: string;
3631
3631
  currentPeriodEnd: string;
3632
3632
  amount?: number | null | undefined;
3633
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3633
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3634
3634
  cancelledAt?: string | null | undefined;
3635
3635
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3636
3636
  gatewaySubscriptionId?: string | null | undefined;
@@ -3650,7 +3650,7 @@ export declare const subscriptionsRouter: {
3650
3650
  currentPeriodStart: string;
3651
3651
  currentPeriodEnd: string;
3652
3652
  amount?: number | null | undefined;
3653
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3653
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3654
3654
  cancelledAt?: string | null | undefined;
3655
3655
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3656
3656
  gatewaySubscriptionId?: string | null | undefined;
@@ -3696,7 +3696,7 @@ export declare const subscriptionsRouter: {
3696
3696
  currentPeriodStart: string;
3697
3697
  currentPeriodEnd: string;
3698
3698
  amount?: number | null | undefined;
3699
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3699
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3700
3700
  cancelledAt?: string | null | undefined;
3701
3701
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3702
3702
  gatewaySubscriptionId?: string | null | undefined;
@@ -3728,7 +3728,7 @@ export declare const subscriptionsRouter: {
3728
3728
  currentPeriodStart: string;
3729
3729
  currentPeriodEnd: string;
3730
3730
  amount?: number | null | undefined;
3731
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
3731
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
3732
3732
  cancelledAt?: string | null | undefined;
3733
3733
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
3734
3734
  gatewaySubscriptionId?: string | null | undefined;
@@ -548,7 +548,7 @@ export declare const paymentListResponseSchema: z.ZodObject<{
548
548
  meta?: Record<string, unknown> | undefined;
549
549
  }[] | undefined;
550
550
  }>;
551
- export declare const flutterwaveInitPaymentSchema: z.ZodObject<{
551
+ export declare const initPaymentSchema: z.ZodObject<{
552
552
  amount: z.ZodNumber;
553
553
  currency: z.ZodEnum<["NGN", "USD"]>;
554
554
  email: z.ZodString;
@@ -576,7 +576,7 @@ export declare const flutterwaveInitPaymentSchema: z.ZodObject<{
576
576
  description?: string | undefined;
577
577
  paymentMethod?: "card" | "bank_transfer" | "mobile_money" | "ussd" | "account" | undefined;
578
578
  }>;
579
- export declare const flutterwaveInitPaymentResponseSchema: z.ZodObject<{
579
+ export declare const initPaymentResponseSchema: z.ZodObject<{
580
580
  status: z.ZodLiteral<"success">;
581
581
  message: z.ZodString;
582
582
  data: z.ZodObject<{
@@ -604,18 +604,19 @@ export declare const flutterwaveInitPaymentResponseSchema: z.ZodObject<{
604
604
  tx_ref: string;
605
605
  };
606
606
  }>;
607
- export declare const flutterwaveWebhookSchema: z.ZodObject<{
607
+ export declare const webhookPayloadSchema: z.ZodObject<{
608
608
  event: z.ZodString;
609
609
  data: z.ZodObject<{
610
610
  id: z.ZodNumber;
611
- tx_ref: z.ZodString;
612
- flw_ref: z.ZodString;
611
+ tx_ref: z.ZodOptional<z.ZodString>;
612
+ reference: z.ZodOptional<z.ZodString>;
613
+ flw_ref: z.ZodOptional<z.ZodString>;
613
614
  device_fingerprint: z.ZodOptional<z.ZodString>;
614
615
  amount: z.ZodNumber;
615
616
  currency: z.ZodString;
616
- charged_amount: z.ZodNumber;
617
- app_fee: z.ZodNumber;
618
- merchant_fee: z.ZodNumber;
617
+ charged_amount: z.ZodOptional<z.ZodNumber>;
618
+ app_fee: z.ZodOptional<z.ZodNumber>;
619
+ merchant_fee: z.ZodOptional<z.ZodNumber>;
619
620
  processor_response: z.ZodOptional<z.ZodString>;
620
621
  auth_model: z.ZodOptional<z.ZodString>;
621
622
  card: z.ZodOptional<z.ZodObject<{
@@ -643,50 +644,48 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
643
644
  country?: string | undefined;
644
645
  expiry?: string | undefined;
645
646
  }>>;
646
- account_id: z.ZodNumber;
647
+ account_id: z.ZodOptional<z.ZodNumber>;
647
648
  customer: z.ZodObject<{
648
649
  id: z.ZodNumber;
649
650
  name: z.ZodString;
650
651
  phone_number: z.ZodOptional<z.ZodString>;
652
+ phone: z.ZodOptional<z.ZodString>;
651
653
  email: z.ZodString;
652
- created_at: z.ZodString;
654
+ created_at: z.ZodOptional<z.ZodString>;
653
655
  }, "strip", z.ZodTypeAny, {
654
656
  id: number;
655
657
  email: string;
656
658
  name: string;
657
- created_at: string;
659
+ phone?: string | undefined;
658
660
  phone_number?: string | undefined;
661
+ created_at?: string | undefined;
659
662
  }, {
660
663
  id: number;
661
664
  email: string;
662
665
  name: string;
663
- created_at: string;
666
+ phone?: string | undefined;
664
667
  phone_number?: string | undefined;
668
+ created_at?: string | undefined;
665
669
  }>;
666
670
  status: z.ZodString;
667
- payment_type: z.ZodString;
671
+ payment_type: z.ZodOptional<z.ZodString>;
668
672
  created_at: z.ZodString;
673
+ paid_at: z.ZodOptional<z.ZodString>;
669
674
  amount_settled: z.ZodOptional<z.ZodNumber>;
670
675
  }, "strip", z.ZodTypeAny, {
671
676
  status: string;
672
677
  id: number;
673
678
  currency: string;
674
679
  amount: number;
675
- tx_ref: string;
676
- flw_ref: string;
677
- charged_amount: number;
678
- app_fee: number;
679
- merchant_fee: number;
680
- account_id: number;
681
680
  customer: {
682
681
  id: number;
683
682
  email: string;
684
683
  name: string;
685
- created_at: string;
684
+ phone?: string | undefined;
686
685
  phone_number?: string | undefined;
686
+ created_at?: string | undefined;
687
687
  };
688
688
  created_at: string;
689
- payment_type: string;
690
689
  card?: {
691
690
  type?: string | undefined;
692
691
  token?: string | undefined;
@@ -696,30 +695,33 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
696
695
  country?: string | undefined;
697
696
  expiry?: string | undefined;
698
697
  } | undefined;
698
+ tx_ref?: string | undefined;
699
+ reference?: string | undefined;
700
+ flw_ref?: string | undefined;
699
701
  device_fingerprint?: string | undefined;
702
+ charged_amount?: number | undefined;
703
+ app_fee?: number | undefined;
704
+ merchant_fee?: number | undefined;
700
705
  processor_response?: string | undefined;
701
706
  auth_model?: string | undefined;
707
+ account_id?: number | undefined;
708
+ payment_type?: string | undefined;
709
+ paid_at?: string | undefined;
702
710
  amount_settled?: number | undefined;
703
711
  }, {
704
712
  status: string;
705
713
  id: number;
706
714
  currency: string;
707
715
  amount: number;
708
- tx_ref: string;
709
- flw_ref: string;
710
- charged_amount: number;
711
- app_fee: number;
712
- merchant_fee: number;
713
- account_id: number;
714
716
  customer: {
715
717
  id: number;
716
718
  email: string;
717
719
  name: string;
718
- created_at: string;
720
+ phone?: string | undefined;
719
721
  phone_number?: string | undefined;
722
+ created_at?: string | undefined;
720
723
  };
721
724
  created_at: string;
722
- payment_type: string;
723
725
  card?: {
724
726
  type?: string | undefined;
725
727
  token?: string | undefined;
@@ -729,9 +731,18 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
729
731
  country?: string | undefined;
730
732
  expiry?: string | undefined;
731
733
  } | undefined;
734
+ tx_ref?: string | undefined;
735
+ reference?: string | undefined;
736
+ flw_ref?: string | undefined;
732
737
  device_fingerprint?: string | undefined;
738
+ charged_amount?: number | undefined;
739
+ app_fee?: number | undefined;
740
+ merchant_fee?: number | undefined;
733
741
  processor_response?: string | undefined;
734
742
  auth_model?: string | undefined;
743
+ account_id?: number | undefined;
744
+ payment_type?: string | undefined;
745
+ paid_at?: string | undefined;
735
746
  amount_settled?: number | undefined;
736
747
  }>;
737
748
  }, "strip", z.ZodTypeAny, {
@@ -740,21 +751,15 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
740
751
  id: number;
741
752
  currency: string;
742
753
  amount: number;
743
- tx_ref: string;
744
- flw_ref: string;
745
- charged_amount: number;
746
- app_fee: number;
747
- merchant_fee: number;
748
- account_id: number;
749
754
  customer: {
750
755
  id: number;
751
756
  email: string;
752
757
  name: string;
753
- created_at: string;
758
+ phone?: string | undefined;
754
759
  phone_number?: string | undefined;
760
+ created_at?: string | undefined;
755
761
  };
756
762
  created_at: string;
757
- payment_type: string;
758
763
  card?: {
759
764
  type?: string | undefined;
760
765
  token?: string | undefined;
@@ -764,9 +769,18 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
764
769
  country?: string | undefined;
765
770
  expiry?: string | undefined;
766
771
  } | undefined;
772
+ tx_ref?: string | undefined;
773
+ reference?: string | undefined;
774
+ flw_ref?: string | undefined;
767
775
  device_fingerprint?: string | undefined;
776
+ charged_amount?: number | undefined;
777
+ app_fee?: number | undefined;
778
+ merchant_fee?: number | undefined;
768
779
  processor_response?: string | undefined;
769
780
  auth_model?: string | undefined;
781
+ account_id?: number | undefined;
782
+ payment_type?: string | undefined;
783
+ paid_at?: string | undefined;
770
784
  amount_settled?: number | undefined;
771
785
  };
772
786
  event: string;
@@ -776,21 +790,15 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
776
790
  id: number;
777
791
  currency: string;
778
792
  amount: number;
779
- tx_ref: string;
780
- flw_ref: string;
781
- charged_amount: number;
782
- app_fee: number;
783
- merchant_fee: number;
784
- account_id: number;
785
793
  customer: {
786
794
  id: number;
787
795
  email: string;
788
796
  name: string;
789
- created_at: string;
797
+ phone?: string | undefined;
790
798
  phone_number?: string | undefined;
799
+ created_at?: string | undefined;
791
800
  };
792
801
  created_at: string;
793
- payment_type: string;
794
802
  card?: {
795
803
  type?: string | undefined;
796
804
  token?: string | undefined;
@@ -800,9 +808,18 @@ export declare const flutterwaveWebhookSchema: z.ZodObject<{
800
808
  country?: string | undefined;
801
809
  expiry?: string | undefined;
802
810
  } | undefined;
811
+ tx_ref?: string | undefined;
812
+ reference?: string | undefined;
813
+ flw_ref?: string | undefined;
803
814
  device_fingerprint?: string | undefined;
815
+ charged_amount?: number | undefined;
816
+ app_fee?: number | undefined;
817
+ merchant_fee?: number | undefined;
804
818
  processor_response?: string | undefined;
805
819
  auth_model?: string | undefined;
820
+ account_id?: number | undefined;
821
+ payment_type?: string | undefined;
822
+ paid_at?: string | undefined;
806
823
  amount_settled?: number | undefined;
807
824
  };
808
825
  event: string;
@@ -816,7 +833,7 @@ export type CreatePaymentInput = z.infer<typeof createPaymentAttributesSchema>;
816
833
  export type UpdatePaymentInput = z.infer<typeof updatePaymentAttributesSchema>;
817
834
  export type PaymentResponse = z.infer<typeof paymentResponseSchema>;
818
835
  export type PaymentListResponse = z.infer<typeof paymentListResponseSchema>;
819
- export type FlutterwaveInitPaymentRequest = z.infer<typeof flutterwaveInitPaymentSchema>;
820
- export type FlutterwaveInitPaymentResponse = z.infer<typeof flutterwaveInitPaymentResponseSchema>;
821
- export type FlutterwaveWebhookPayload = z.infer<typeof flutterwaveWebhookSchema>;
836
+ export type InitPaymentRequest = z.infer<typeof initPaymentSchema>;
837
+ export type InitPaymentResponse = z.infer<typeof initPaymentResponseSchema>;
838
+ export type WebhookPayload = z.infer<typeof webhookPayloadSchema>;
822
839
  //# sourceMappingURL=payments.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"payments.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/payments.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,mBAAmB,0EAAwE,CAAC;AAGzG,eAAO,MAAM,qBAAqB,2BAAyB,CAAC;AAG5D,eAAO,MAAM,mBAAmB,yEAAuE,CAAC;AAGxG,eAAO,MAAM,oBAAoB,qEAAmE,CAAC;AAGrG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYV,CAAC;AAG3B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;EAOxC,CAAC;AAGH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAA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KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC/E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACnE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -30,7 +30,7 @@ export const createPaymentAttributesSchema = z.object({
30
30
  amount: z.number().positive(),
31
31
  currency: paymentCurrencySchema.default('NGN'),
32
32
  paymentMethod: paymentMethodSchema.optional(),
33
- gateway: paymentGatewaySchema.default('flutterwave'), // Default to flutterwave for backward compatibility
33
+ gateway: paymentGatewaySchema.default('paystack'), // Default to paystack
34
34
  description: z.string().max(500).optional(),
35
35
  metadata: z.record(z.unknown()).optional(),
36
36
  });
@@ -45,8 +45,8 @@ export const paymentResourceSchema = createJsonApiResourceSchema('payments', pay
45
45
  // Payment response schemas
46
46
  export const paymentResponseSchema = jsonApiSingleResponseSchema(paymentResourceSchema);
47
47
  export const paymentListResponseSchema = jsonApiCollectionResponseSchema(paymentResourceSchema);
48
- // Flutterwave payment initialization request
49
- export const flutterwaveInitPaymentSchema = z.object({
48
+ // Payment initialization request (gateway-agnostic)
49
+ export const initPaymentSchema = z.object({
50
50
  amount: z.number().positive(),
51
51
  currency: paymentCurrencySchema,
52
52
  email: z.string().email(),
@@ -56,8 +56,8 @@ export const flutterwaveInitPaymentSchema = z.object({
56
56
  description: z.string().max(500).optional(),
57
57
  metadata: z.record(z.unknown()).optional(),
58
58
  });
59
- // Flutterwave payment initialization response
60
- export const flutterwaveInitPaymentResponseSchema = z.object({
59
+ // Payment initialization response (gateway-agnostic)
60
+ export const initPaymentResponseSchema = z.object({
61
61
  status: z.literal('success'),
62
62
  message: z.string(),
63
63
  data: z.object({
@@ -65,19 +65,20 @@ export const flutterwaveInitPaymentResponseSchema = z.object({
65
65
  tx_ref: z.string(), // Transaction reference
66
66
  }),
67
67
  });
68
- // Flutterwave webhook payload schema
69
- export const flutterwaveWebhookSchema = z.object({
68
+ // Webhook payload schema (gateway-agnostic)
69
+ export const webhookPayloadSchema = z.object({
70
70
  event: z.string(),
71
71
  data: z.object({
72
72
  id: z.number(),
73
- tx_ref: z.string(),
74
- flw_ref: z.string(),
73
+ tx_ref: z.string().optional(),
74
+ reference: z.string().optional(),
75
+ flw_ref: z.string().optional(),
75
76
  device_fingerprint: z.string().optional(),
76
77
  amount: z.number(),
77
78
  currency: z.string(),
78
- charged_amount: z.number(),
79
- app_fee: z.number(),
80
- merchant_fee: z.number(),
79
+ charged_amount: z.number().optional(),
80
+ app_fee: z.number().optional(),
81
+ merchant_fee: z.number().optional(),
81
82
  processor_response: z.string().optional(),
82
83
  auth_model: z.string().optional(),
83
84
  card: z.object({
@@ -89,17 +90,19 @@ export const flutterwaveWebhookSchema = z.object({
89
90
  token: z.string().optional(),
90
91
  expiry: z.string().optional(),
91
92
  }).optional(),
92
- account_id: z.number(),
93
+ account_id: z.number().optional(),
93
94
  customer: z.object({
94
95
  id: z.number(),
95
96
  name: z.string(),
96
97
  phone_number: z.string().optional(),
98
+ phone: z.string().optional(),
97
99
  email: z.string(),
98
- created_at: z.string(),
100
+ created_at: z.string().optional(),
99
101
  }),
100
102
  status: z.string(),
101
- payment_type: z.string(),
103
+ payment_type: z.string().optional(),
102
104
  created_at: z.string(),
105
+ paid_at: z.string().optional(),
103
106
  amount_settled: z.number().optional(),
104
107
  }),
105
108
  });
@@ -4,14 +4,14 @@ import { z } from 'zod';
4
4
  */
5
5
  export declare const subscriptionTierSchema: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
6
6
  export declare const subscriptionStatusSchema: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
7
- export declare const billingCycleSchema: z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>;
7
+ export declare const billingCycleSchema: z.ZodEnum<["monthly", "annual", "custom"]>;
8
8
  export declare const satelliteFrequencySchema: z.ZodEnum<["monthly", "weekly", "daily"]>;
9
9
  export declare const subscriptionAttributesSchema: z.ZodObject<{
10
10
  tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
11
11
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
12
12
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
13
  currency: z.ZodEnum<["NGN", "USD"]>;
14
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
14
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
15
15
  currentPeriodStart: z.ZodString;
16
16
  currentPeriodEnd: z.ZodString;
17
17
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -32,7 +32,7 @@ export declare const subscriptionAttributesSchema: z.ZodObject<{
32
32
  currentPeriodStart: string;
33
33
  currentPeriodEnd: string;
34
34
  amount?: number | null | undefined;
35
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
35
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
36
36
  cancelledAt?: string | null | undefined;
37
37
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
38
38
  gatewaySubscriptionId?: string | null | undefined;
@@ -48,7 +48,7 @@ export declare const subscriptionAttributesSchema: z.ZodObject<{
48
48
  currentPeriodStart: string;
49
49
  currentPeriodEnd: string;
50
50
  amount?: number | null | undefined;
51
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
51
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
52
52
  cancelledAt?: string | null | undefined;
53
53
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
54
54
  gatewaySubscriptionId?: string | null | undefined;
@@ -60,21 +60,21 @@ export declare const createSubscriptionAttributesSchema: z.ZodObject<{
60
60
  tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
61
61
  amount: z.ZodOptional<z.ZodNumber>;
62
62
  currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
63
- billingCycle: z.ZodOptional<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>;
63
+ billingCycle: z.ZodOptional<z.ZodEnum<["monthly", "annual", "custom"]>>;
64
64
  paymentGateway: z.ZodOptional<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>;
65
65
  gatewaySubscriptionId: z.ZodOptional<z.ZodString>;
66
66
  }, "strip", z.ZodTypeAny, {
67
67
  currency: "NGN" | "USD";
68
68
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
69
69
  amount?: number | undefined;
70
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | undefined;
70
+ billingCycle?: "custom" | "monthly" | "annual" | undefined;
71
71
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
72
72
  gatewaySubscriptionId?: string | undefined;
73
73
  }, {
74
74
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
75
75
  currency?: "NGN" | "USD" | undefined;
76
76
  amount?: number | undefined;
77
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | undefined;
77
+ billingCycle?: "custom" | "monthly" | "annual" | undefined;
78
78
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
79
79
  gatewaySubscriptionId?: string | undefined;
80
80
  }>;
@@ -82,35 +82,35 @@ export declare const upgradeSubscriptionAttributesSchema: z.ZodObject<{
82
82
  tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
83
83
  amount: z.ZodNumber;
84
84
  currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
85
- billingCycle: z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>;
85
+ billingCycle: z.ZodEnum<["monthly", "annual", "custom"]>;
86
86
  paymentGateway: z.ZodOptional<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>;
87
87
  gatewaySubscriptionId: z.ZodOptional<z.ZodString>;
88
88
  }, "strip", z.ZodTypeAny, {
89
89
  currency: "NGN" | "USD";
90
90
  amount: number;
91
91
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
92
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
92
+ billingCycle: "custom" | "monthly" | "annual";
93
93
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
94
94
  gatewaySubscriptionId?: string | undefined;
95
95
  }, {
96
96
  amount: number;
97
97
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
98
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
98
+ billingCycle: "custom" | "monthly" | "annual";
99
99
  currency?: "NGN" | "USD" | undefined;
100
100
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
101
101
  gatewaySubscriptionId?: string | undefined;
102
102
  }>;
103
103
  export declare const createSubscriptionPaymentLinkAttributesSchema: z.ZodObject<{
104
104
  tier: z.ZodEffects<z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>, "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT", "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT">;
105
- billingCycle: z.ZodEffects<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>, "monthly" | "annual" | "bi_annual", "custom" | "monthly" | "annual" | "bi_annual">;
105
+ billingCycle: z.ZodEffects<z.ZodEnum<["monthly", "annual", "custom"]>, "monthly" | "annual", "custom" | "monthly" | "annual">;
106
106
  currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  currency: "NGN" | "USD";
109
109
  tier: "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
110
- billingCycle: "monthly" | "annual" | "bi_annual";
110
+ billingCycle: "monthly" | "annual";
111
111
  }, {
112
112
  tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
113
- billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
113
+ billingCycle: "custom" | "monthly" | "annual";
114
114
  currency?: "NGN" | "USD" | undefined;
115
115
  }>;
116
116
  export declare const subscriptionPaymentLinkResponseSchema: z.ZodObject<{
@@ -154,7 +154,7 @@ export declare const subscriptionResourceSchema: z.ZodObject<{
154
154
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
155
155
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
156
156
  currency: z.ZodEnum<["NGN", "USD"]>;
157
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
157
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
158
158
  currentPeriodStart: z.ZodString;
159
159
  currentPeriodEnd: z.ZodString;
160
160
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -175,7 +175,7 @@ export declare const subscriptionResourceSchema: z.ZodObject<{
175
175
  currentPeriodStart: string;
176
176
  currentPeriodEnd: string;
177
177
  amount?: number | null | undefined;
178
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
178
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
179
179
  cancelledAt?: string | null | undefined;
180
180
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
181
181
  gatewaySubscriptionId?: string | null | undefined;
@@ -191,7 +191,7 @@ export declare const subscriptionResourceSchema: z.ZodObject<{
191
191
  currentPeriodStart: string;
192
192
  currentPeriodEnd: string;
193
193
  amount?: number | null | undefined;
194
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
194
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
195
195
  cancelledAt?: string | null | undefined;
196
196
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
197
197
  gatewaySubscriptionId?: string | null | undefined;
@@ -211,7 +211,7 @@ export declare const subscriptionResourceSchema: z.ZodObject<{
211
211
  currentPeriodStart: string;
212
212
  currentPeriodEnd: string;
213
213
  amount?: number | null | undefined;
214
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
214
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
215
215
  cancelledAt?: string | null | undefined;
216
216
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
217
217
  gatewaySubscriptionId?: string | null | undefined;
@@ -231,7 +231,7 @@ export declare const subscriptionResourceSchema: z.ZodObject<{
231
231
  currentPeriodStart: string;
232
232
  currentPeriodEnd: string;
233
233
  amount?: number | null | undefined;
234
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
234
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
235
235
  cancelledAt?: string | null | undefined;
236
236
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
237
237
  gatewaySubscriptionId?: string | null | undefined;
@@ -249,7 +249,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
249
249
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
250
250
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
251
251
  currency: z.ZodEnum<["NGN", "USD"]>;
252
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
252
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
253
253
  currentPeriodStart: z.ZodString;
254
254
  currentPeriodEnd: z.ZodString;
255
255
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -270,7 +270,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
270
270
  currentPeriodStart: string;
271
271
  currentPeriodEnd: string;
272
272
  amount?: number | null | undefined;
273
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
273
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
274
274
  cancelledAt?: string | null | undefined;
275
275
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
276
276
  gatewaySubscriptionId?: string | null | undefined;
@@ -286,7 +286,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
286
286
  currentPeriodStart: string;
287
287
  currentPeriodEnd: string;
288
288
  amount?: number | null | undefined;
289
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
289
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
290
290
  cancelledAt?: string | null | undefined;
291
291
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
292
292
  gatewaySubscriptionId?: string | null | undefined;
@@ -306,7 +306,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
306
306
  currentPeriodStart: string;
307
307
  currentPeriodEnd: string;
308
308
  amount?: number | null | undefined;
309
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
309
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
310
310
  cancelledAt?: string | null | undefined;
311
311
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
312
312
  gatewaySubscriptionId?: string | null | undefined;
@@ -326,7 +326,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
326
326
  currentPeriodStart: string;
327
327
  currentPeriodEnd: string;
328
328
  amount?: number | null | undefined;
329
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
329
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
330
330
  cancelledAt?: string | null | undefined;
331
331
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
332
332
  gatewaySubscriptionId?: string | null | undefined;
@@ -372,7 +372,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
372
372
  currentPeriodStart: string;
373
373
  currentPeriodEnd: string;
374
374
  amount?: number | null | undefined;
375
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
375
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
376
376
  cancelledAt?: string | null | undefined;
377
377
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
378
378
  gatewaySubscriptionId?: string | null | undefined;
@@ -404,7 +404,7 @@ export declare const subscriptionResponseSchema: z.ZodObject<{
404
404
  currentPeriodStart: string;
405
405
  currentPeriodEnd: string;
406
406
  amount?: number | null | undefined;
407
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
407
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
408
408
  cancelledAt?: string | null | undefined;
409
409
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
410
410
  gatewaySubscriptionId?: string | null | undefined;
@@ -433,7 +433,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
433
433
  status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
434
434
  amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
435
435
  currency: z.ZodEnum<["NGN", "USD"]>;
436
- billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
436
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "custom"]>>>;
437
437
  currentPeriodStart: z.ZodString;
438
438
  currentPeriodEnd: z.ZodString;
439
439
  cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -454,7 +454,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
454
454
  currentPeriodStart: string;
455
455
  currentPeriodEnd: string;
456
456
  amount?: number | null | undefined;
457
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
457
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
458
458
  cancelledAt?: string | null | undefined;
459
459
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
460
460
  gatewaySubscriptionId?: string | null | undefined;
@@ -470,7 +470,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
470
470
  currentPeriodStart: string;
471
471
  currentPeriodEnd: string;
472
472
  amount?: number | null | undefined;
473
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
473
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
474
474
  cancelledAt?: string | null | undefined;
475
475
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
476
476
  gatewaySubscriptionId?: string | null | undefined;
@@ -490,7 +490,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
490
490
  currentPeriodStart: string;
491
491
  currentPeriodEnd: string;
492
492
  amount?: number | null | undefined;
493
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
493
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
494
494
  cancelledAt?: string | null | undefined;
495
495
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
496
496
  gatewaySubscriptionId?: string | null | undefined;
@@ -510,7 +510,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
510
510
  currentPeriodStart: string;
511
511
  currentPeriodEnd: string;
512
512
  amount?: number | null | undefined;
513
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
513
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
514
514
  cancelledAt?: string | null | undefined;
515
515
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
516
516
  gatewaySubscriptionId?: string | null | undefined;
@@ -556,7 +556,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
556
556
  currentPeriodStart: string;
557
557
  currentPeriodEnd: string;
558
558
  amount?: number | null | undefined;
559
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
559
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
560
560
  cancelledAt?: string | null | undefined;
561
561
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
562
562
  gatewaySubscriptionId?: string | null | undefined;
@@ -588,7 +588,7 @@ export declare const subscriptionListResponseSchema: z.ZodObject<{
588
588
  currentPeriodStart: string;
589
589
  currentPeriodEnd: string;
590
590
  amount?: number | null | undefined;
591
- billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
591
+ billingCycle?: "custom" | "monthly" | "annual" | null | undefined;
592
592
  cancelledAt?: string | null | undefined;
593
593
  paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
594
594
  gatewaySubscriptionId?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/subscriptions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,sBAAsB,gFAMjC,CAAC;AAGH,eAAO,MAAM,wBAAwB,wDAKnC,CAAC;AAGH,eAAO,MAAM,kBAAkB,yDAK7B,CAAC;AAGH,eAAO,MAAM,wBAAwB,2CAAyC,CAAC;AAK/E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcf,CAAC;AAG3B,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;EAO7C,CAAC;AAGH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;EAO9C,CAAC;AAGH,eAAO,MAAM,6CAA6C;;;;;;;;;;;;EAQxD,CAAC;AAGH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhD,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIrC,CAAC;AAGH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAClE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6CAA6C,CAAC,CAAC;AACpH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -23,7 +23,6 @@ export const subscriptionStatusSchema = z.enum([
23
23
  export const billingCycleSchema = z.enum([
24
24
  'monthly',
25
25
  'annual',
26
- 'bi_annual',
27
26
  'custom',
28
27
  ]);
29
28
  // Satellite frequency enum
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.5.17",
3
+ "version": "1.5.18",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",