@strimz/shared-types 0.14.0 → 0.16.0
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/analytics.cjs +39 -1
- package/dist/analytics.cjs.map +1 -1
- package/dist/analytics.js +39 -1
- package/dist/analytics.js.map +1 -1
- package/dist/events.cjs +46 -1
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +341 -87
- package/dist/events.d.ts +341 -87
- package/dist/events.js +46 -2
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +50 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +46 -2
- package/dist/index.js.map +1 -1
- package/dist/payment-sessions.cjs +1 -0
- package/dist/payment-sessions.cjs.map +1 -1
- package/dist/payment-sessions.js +1 -0
- package/dist/payment-sessions.js.map +1 -1
- package/dist/storefronts.cjs +154 -1
- package/dist/storefronts.cjs.map +1 -1
- package/dist/storefronts.js +154 -1
- package/dist/storefronts.js.map +1 -1
- package/dist/subscriptions.cjs +156 -1
- package/dist/subscriptions.cjs.map +1 -1
- package/dist/subscriptions.d.cts +84 -7
- package/dist/subscriptions.d.ts +84 -7
- package/dist/subscriptions.js +153 -2
- package/dist/subscriptions.js.map +1 -1
- package/dist/webhooks.cjs +1 -0
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +18 -18
- package/dist/webhooks.d.ts +18 -18
- package/dist/webhooks.js +1 -0
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +7 -0
- package/src/payment-sessions.ts +1 -0
- package/src/subscriptions.ts +50 -0
- package/src/webhooks.ts +1 -0
package/dist/events.d.ts
CHANGED
|
@@ -744,8 +744,8 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
|
|
|
744
744
|
payerAddress: string;
|
|
745
745
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
746
746
|
intervalCount: number;
|
|
747
|
-
onchainSubscriptionId: number | null;
|
|
748
747
|
planId: string;
|
|
748
|
+
onchainSubscriptionId: number | null;
|
|
749
749
|
trialEndsAt: string | null;
|
|
750
750
|
currentPeriodStartAt: string;
|
|
751
751
|
currentPeriodEndAt: string;
|
|
@@ -764,8 +764,8 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
|
|
|
764
764
|
payerAddress: string;
|
|
765
765
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
766
766
|
intervalCount: number;
|
|
767
|
-
onchainSubscriptionId: number | null;
|
|
768
767
|
planId: string;
|
|
768
|
+
onchainSubscriptionId: number | null;
|
|
769
769
|
trialEndsAt: string | null;
|
|
770
770
|
currentPeriodStartAt: string;
|
|
771
771
|
currentPeriodEndAt: string;
|
|
@@ -790,8 +790,8 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
|
|
|
790
790
|
payerAddress: string;
|
|
791
791
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
792
792
|
intervalCount: number;
|
|
793
|
-
onchainSubscriptionId: number | null;
|
|
794
793
|
planId: string;
|
|
794
|
+
onchainSubscriptionId: number | null;
|
|
795
795
|
trialEndsAt: string | null;
|
|
796
796
|
currentPeriodStartAt: string;
|
|
797
797
|
currentPeriodEndAt: string;
|
|
@@ -817,8 +817,8 @@ declare const subscriptionCreatedEventSchema: z.ZodObject<{
|
|
|
817
817
|
payerAddress: string;
|
|
818
818
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
819
819
|
intervalCount: number;
|
|
820
|
-
onchainSubscriptionId: number | null;
|
|
821
820
|
planId: string;
|
|
821
|
+
onchainSubscriptionId: number | null;
|
|
822
822
|
trialEndsAt: string | null;
|
|
823
823
|
currentPeriodStartAt: string;
|
|
824
824
|
currentPeriodEndAt: string;
|
|
@@ -872,8 +872,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
872
872
|
payerAddress: string;
|
|
873
873
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
874
874
|
intervalCount: number;
|
|
875
|
-
onchainSubscriptionId: number | null;
|
|
876
875
|
planId: string;
|
|
876
|
+
onchainSubscriptionId: number | null;
|
|
877
877
|
trialEndsAt: string | null;
|
|
878
878
|
currentPeriodStartAt: string;
|
|
879
879
|
currentPeriodEndAt: string;
|
|
@@ -892,8 +892,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
892
892
|
payerAddress: string;
|
|
893
893
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
894
894
|
intervalCount: number;
|
|
895
|
-
onchainSubscriptionId: number | null;
|
|
896
895
|
planId: string;
|
|
896
|
+
onchainSubscriptionId: number | null;
|
|
897
897
|
trialEndsAt: string | null;
|
|
898
898
|
currentPeriodStartAt: string;
|
|
899
899
|
currentPeriodEndAt: string;
|
|
@@ -912,7 +912,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
912
912
|
amount: z.ZodString;
|
|
913
913
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
914
914
|
status: z.ZodEnum<["pending", "in_flight", "succeeded", "failed", "retrying", "abandoned"]>;
|
|
915
|
-
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped"]>>;
|
|
915
|
+
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped", "token_not_allowed"]>>;
|
|
916
916
|
attemptNumber: z.ZodNumber;
|
|
917
917
|
scheduledAt: z.ZodString;
|
|
918
918
|
executedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -934,7 +934,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
934
934
|
chargeAttemptId: string;
|
|
935
935
|
periodStartAt: string;
|
|
936
936
|
periodEndAt: string;
|
|
937
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
937
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
938
938
|
attemptNumber: number;
|
|
939
939
|
scheduledAt: string;
|
|
940
940
|
executedAt: string | null;
|
|
@@ -952,7 +952,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
952
952
|
chargeAttemptId: string;
|
|
953
953
|
periodStartAt: string;
|
|
954
954
|
periodEndAt: string;
|
|
955
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
955
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
956
956
|
attemptNumber: number;
|
|
957
957
|
scheduledAt: string;
|
|
958
958
|
executedAt: string | null;
|
|
@@ -1053,8 +1053,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1053
1053
|
payerAddress: string;
|
|
1054
1054
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1055
1055
|
intervalCount: number;
|
|
1056
|
-
onchainSubscriptionId: number | null;
|
|
1057
1056
|
planId: string;
|
|
1057
|
+
onchainSubscriptionId: number | null;
|
|
1058
1058
|
trialEndsAt: string | null;
|
|
1059
1059
|
currentPeriodStartAt: string;
|
|
1060
1060
|
currentPeriodEndAt: string;
|
|
@@ -1076,7 +1076,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1076
1076
|
chargeAttemptId: string;
|
|
1077
1077
|
periodStartAt: string;
|
|
1078
1078
|
periodEndAt: string;
|
|
1079
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1079
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1080
1080
|
attemptNumber: number;
|
|
1081
1081
|
scheduledAt: string;
|
|
1082
1082
|
executedAt: string | null;
|
|
@@ -1115,8 +1115,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1115
1115
|
payerAddress: string;
|
|
1116
1116
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1117
1117
|
intervalCount: number;
|
|
1118
|
-
onchainSubscriptionId: number | null;
|
|
1119
1118
|
planId: string;
|
|
1119
|
+
onchainSubscriptionId: number | null;
|
|
1120
1120
|
trialEndsAt: string | null;
|
|
1121
1121
|
currentPeriodStartAt: string;
|
|
1122
1122
|
currentPeriodEndAt: string;
|
|
@@ -1139,7 +1139,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1139
1139
|
chargeAttemptId: string;
|
|
1140
1140
|
periodStartAt: string;
|
|
1141
1141
|
periodEndAt: string;
|
|
1142
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1142
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1143
1143
|
attemptNumber: number;
|
|
1144
1144
|
scheduledAt: string;
|
|
1145
1145
|
executedAt: string | null;
|
|
@@ -1183,8 +1183,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1183
1183
|
payerAddress: string;
|
|
1184
1184
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1185
1185
|
intervalCount: number;
|
|
1186
|
-
onchainSubscriptionId: number | null;
|
|
1187
1186
|
planId: string;
|
|
1187
|
+
onchainSubscriptionId: number | null;
|
|
1188
1188
|
trialEndsAt: string | null;
|
|
1189
1189
|
currentPeriodStartAt: string;
|
|
1190
1190
|
currentPeriodEndAt: string;
|
|
@@ -1206,7 +1206,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1206
1206
|
chargeAttemptId: string;
|
|
1207
1207
|
periodStartAt: string;
|
|
1208
1208
|
periodEndAt: string;
|
|
1209
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1209
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1210
1210
|
attemptNumber: number;
|
|
1211
1211
|
scheduledAt: string;
|
|
1212
1212
|
executedAt: string | null;
|
|
@@ -1252,8 +1252,8 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1252
1252
|
payerAddress: string;
|
|
1253
1253
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1254
1254
|
intervalCount: number;
|
|
1255
|
-
onchainSubscriptionId: number | null;
|
|
1256
1255
|
planId: string;
|
|
1256
|
+
onchainSubscriptionId: number | null;
|
|
1257
1257
|
trialEndsAt: string | null;
|
|
1258
1258
|
currentPeriodStartAt: string;
|
|
1259
1259
|
currentPeriodEndAt: string;
|
|
@@ -1276,7 +1276,7 @@ declare const subscriptionChargedEventSchema: z.ZodObject<{
|
|
|
1276
1276
|
chargeAttemptId: string;
|
|
1277
1277
|
periodStartAt: string;
|
|
1278
1278
|
periodEndAt: string;
|
|
1279
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1279
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1280
1280
|
attemptNumber: number;
|
|
1281
1281
|
scheduledAt: string;
|
|
1282
1282
|
executedAt: string | null;
|
|
@@ -1327,8 +1327,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1327
1327
|
payerAddress: string;
|
|
1328
1328
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1329
1329
|
intervalCount: number;
|
|
1330
|
-
onchainSubscriptionId: number | null;
|
|
1331
1330
|
planId: string;
|
|
1331
|
+
onchainSubscriptionId: number | null;
|
|
1332
1332
|
trialEndsAt: string | null;
|
|
1333
1333
|
currentPeriodStartAt: string;
|
|
1334
1334
|
currentPeriodEndAt: string;
|
|
@@ -1347,8 +1347,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1347
1347
|
payerAddress: string;
|
|
1348
1348
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1349
1349
|
intervalCount: number;
|
|
1350
|
-
onchainSubscriptionId: number | null;
|
|
1351
1350
|
planId: string;
|
|
1351
|
+
onchainSubscriptionId: number | null;
|
|
1352
1352
|
trialEndsAt: string | null;
|
|
1353
1353
|
currentPeriodStartAt: string;
|
|
1354
1354
|
currentPeriodEndAt: string;
|
|
@@ -1367,7 +1367,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1367
1367
|
amount: z.ZodString;
|
|
1368
1368
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
1369
1369
|
status: z.ZodEnum<["pending", "in_flight", "succeeded", "failed", "retrying", "abandoned"]>;
|
|
1370
|
-
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped"]>>;
|
|
1370
|
+
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped", "token_not_allowed"]>>;
|
|
1371
1371
|
attemptNumber: z.ZodNumber;
|
|
1372
1372
|
scheduledAt: z.ZodString;
|
|
1373
1373
|
executedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1389,7 +1389,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1389
1389
|
chargeAttemptId: string;
|
|
1390
1390
|
periodStartAt: string;
|
|
1391
1391
|
periodEndAt: string;
|
|
1392
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1392
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1393
1393
|
attemptNumber: number;
|
|
1394
1394
|
scheduledAt: string;
|
|
1395
1395
|
executedAt: string | null;
|
|
@@ -1407,7 +1407,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1407
1407
|
chargeAttemptId: string;
|
|
1408
1408
|
periodStartAt: string;
|
|
1409
1409
|
periodEndAt: string;
|
|
1410
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1410
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1411
1411
|
attemptNumber: number;
|
|
1412
1412
|
scheduledAt: string;
|
|
1413
1413
|
executedAt: string | null;
|
|
@@ -1426,8 +1426,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1426
1426
|
payerAddress: string;
|
|
1427
1427
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1428
1428
|
intervalCount: number;
|
|
1429
|
-
onchainSubscriptionId: number | null;
|
|
1430
1429
|
planId: string;
|
|
1430
|
+
onchainSubscriptionId: number | null;
|
|
1431
1431
|
trialEndsAt: string | null;
|
|
1432
1432
|
currentPeriodStartAt: string;
|
|
1433
1433
|
currentPeriodEndAt: string;
|
|
@@ -1449,7 +1449,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1449
1449
|
chargeAttemptId: string;
|
|
1450
1450
|
periodStartAt: string;
|
|
1451
1451
|
periodEndAt: string;
|
|
1452
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1452
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1453
1453
|
attemptNumber: number;
|
|
1454
1454
|
scheduledAt: string;
|
|
1455
1455
|
executedAt: string | null;
|
|
@@ -1467,8 +1467,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1467
1467
|
payerAddress: string;
|
|
1468
1468
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1469
1469
|
intervalCount: number;
|
|
1470
|
-
onchainSubscriptionId: number | null;
|
|
1471
1470
|
planId: string;
|
|
1471
|
+
onchainSubscriptionId: number | null;
|
|
1472
1472
|
trialEndsAt: string | null;
|
|
1473
1473
|
currentPeriodStartAt: string;
|
|
1474
1474
|
currentPeriodEndAt: string;
|
|
@@ -1491,7 +1491,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1491
1491
|
chargeAttemptId: string;
|
|
1492
1492
|
periodStartAt: string;
|
|
1493
1493
|
periodEndAt: string;
|
|
1494
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1494
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1495
1495
|
attemptNumber: number;
|
|
1496
1496
|
scheduledAt: string;
|
|
1497
1497
|
executedAt: string | null;
|
|
@@ -1514,8 +1514,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1514
1514
|
payerAddress: string;
|
|
1515
1515
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1516
1516
|
intervalCount: number;
|
|
1517
|
-
onchainSubscriptionId: number | null;
|
|
1518
1517
|
planId: string;
|
|
1518
|
+
onchainSubscriptionId: number | null;
|
|
1519
1519
|
trialEndsAt: string | null;
|
|
1520
1520
|
currentPeriodStartAt: string;
|
|
1521
1521
|
currentPeriodEndAt: string;
|
|
@@ -1537,7 +1537,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1537
1537
|
chargeAttemptId: string;
|
|
1538
1538
|
periodStartAt: string;
|
|
1539
1539
|
periodEndAt: string;
|
|
1540
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1540
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1541
1541
|
attemptNumber: number;
|
|
1542
1542
|
scheduledAt: string;
|
|
1543
1543
|
executedAt: string | null;
|
|
@@ -1562,8 +1562,8 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1562
1562
|
payerAddress: string;
|
|
1563
1563
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1564
1564
|
intervalCount: number;
|
|
1565
|
-
onchainSubscriptionId: number | null;
|
|
1566
1565
|
planId: string;
|
|
1566
|
+
onchainSubscriptionId: number | null;
|
|
1567
1567
|
trialEndsAt: string | null;
|
|
1568
1568
|
currentPeriodStartAt: string;
|
|
1569
1569
|
currentPeriodEndAt: string;
|
|
@@ -1586,7 +1586,7 @@ declare const subscriptionChargeFailedEventSchema: z.ZodObject<{
|
|
|
1586
1586
|
chargeAttemptId: string;
|
|
1587
1587
|
periodStartAt: string;
|
|
1588
1588
|
periodEndAt: string;
|
|
1589
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
1589
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
1590
1590
|
attemptNumber: number;
|
|
1591
1591
|
scheduledAt: string;
|
|
1592
1592
|
executedAt: string | null;
|
|
@@ -1637,8 +1637,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1637
1637
|
payerAddress: string;
|
|
1638
1638
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1639
1639
|
intervalCount: number;
|
|
1640
|
-
onchainSubscriptionId: number | null;
|
|
1641
1640
|
planId: string;
|
|
1641
|
+
onchainSubscriptionId: number | null;
|
|
1642
1642
|
trialEndsAt: string | null;
|
|
1643
1643
|
currentPeriodStartAt: string;
|
|
1644
1644
|
currentPeriodEndAt: string;
|
|
@@ -1657,8 +1657,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1657
1657
|
payerAddress: string;
|
|
1658
1658
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1659
1659
|
intervalCount: number;
|
|
1660
|
-
onchainSubscriptionId: number | null;
|
|
1661
1660
|
planId: string;
|
|
1661
|
+
onchainSubscriptionId: number | null;
|
|
1662
1662
|
trialEndsAt: string | null;
|
|
1663
1663
|
currentPeriodStartAt: string;
|
|
1664
1664
|
currentPeriodEndAt: string;
|
|
@@ -1683,8 +1683,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1683
1683
|
payerAddress: string;
|
|
1684
1684
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1685
1685
|
intervalCount: number;
|
|
1686
|
-
onchainSubscriptionId: number | null;
|
|
1687
1686
|
planId: string;
|
|
1687
|
+
onchainSubscriptionId: number | null;
|
|
1688
1688
|
trialEndsAt: string | null;
|
|
1689
1689
|
currentPeriodStartAt: string;
|
|
1690
1690
|
currentPeriodEndAt: string;
|
|
@@ -1706,8 +1706,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1706
1706
|
payerAddress: string;
|
|
1707
1707
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1708
1708
|
intervalCount: number;
|
|
1709
|
-
onchainSubscriptionId: number | null;
|
|
1710
1709
|
planId: string;
|
|
1710
|
+
onchainSubscriptionId: number | null;
|
|
1711
1711
|
trialEndsAt: string | null;
|
|
1712
1712
|
currentPeriodStartAt: string;
|
|
1713
1713
|
currentPeriodEndAt: string;
|
|
@@ -1735,8 +1735,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1735
1735
|
payerAddress: string;
|
|
1736
1736
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1737
1737
|
intervalCount: number;
|
|
1738
|
-
onchainSubscriptionId: number | null;
|
|
1739
1738
|
planId: string;
|
|
1739
|
+
onchainSubscriptionId: number | null;
|
|
1740
1740
|
trialEndsAt: string | null;
|
|
1741
1741
|
currentPeriodStartAt: string;
|
|
1742
1742
|
currentPeriodEndAt: string;
|
|
@@ -1765,8 +1765,8 @@ declare const subscriptionRecoveryAttemptEventSchema: z.ZodObject<{
|
|
|
1765
1765
|
payerAddress: string;
|
|
1766
1766
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1767
1767
|
intervalCount: number;
|
|
1768
|
-
onchainSubscriptionId: number | null;
|
|
1769
1768
|
planId: string;
|
|
1769
|
+
onchainSubscriptionId: number | null;
|
|
1770
1770
|
trialEndsAt: string | null;
|
|
1771
1771
|
currentPeriodStartAt: string;
|
|
1772
1772
|
currentPeriodEndAt: string;
|
|
@@ -1820,8 +1820,8 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
|
|
|
1820
1820
|
payerAddress: string;
|
|
1821
1821
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1822
1822
|
intervalCount: number;
|
|
1823
|
-
onchainSubscriptionId: number | null;
|
|
1824
1823
|
planId: string;
|
|
1824
|
+
onchainSubscriptionId: number | null;
|
|
1825
1825
|
trialEndsAt: string | null;
|
|
1826
1826
|
currentPeriodStartAt: string;
|
|
1827
1827
|
currentPeriodEndAt: string;
|
|
@@ -1840,8 +1840,8 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
|
|
|
1840
1840
|
payerAddress: string;
|
|
1841
1841
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1842
1842
|
intervalCount: number;
|
|
1843
|
-
onchainSubscriptionId: number | null;
|
|
1844
1843
|
planId: string;
|
|
1844
|
+
onchainSubscriptionId: number | null;
|
|
1845
1845
|
trialEndsAt: string | null;
|
|
1846
1846
|
currentPeriodStartAt: string;
|
|
1847
1847
|
currentPeriodEndAt: string;
|
|
@@ -1866,8 +1866,8 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
|
|
|
1866
1866
|
payerAddress: string;
|
|
1867
1867
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1868
1868
|
intervalCount: number;
|
|
1869
|
-
onchainSubscriptionId: number | null;
|
|
1870
1869
|
planId: string;
|
|
1870
|
+
onchainSubscriptionId: number | null;
|
|
1871
1871
|
trialEndsAt: string | null;
|
|
1872
1872
|
currentPeriodStartAt: string;
|
|
1873
1873
|
currentPeriodEndAt: string;
|
|
@@ -1893,8 +1893,8 @@ declare const subscriptionCancelledEventSchema: z.ZodObject<{
|
|
|
1893
1893
|
payerAddress: string;
|
|
1894
1894
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1895
1895
|
intervalCount: number;
|
|
1896
|
-
onchainSubscriptionId: number | null;
|
|
1897
1896
|
planId: string;
|
|
1897
|
+
onchainSubscriptionId: number | null;
|
|
1898
1898
|
trialEndsAt: string | null;
|
|
1899
1899
|
currentPeriodStartAt: string;
|
|
1900
1900
|
currentPeriodEndAt: string;
|
|
@@ -1947,8 +1947,8 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
|
|
|
1947
1947
|
payerAddress: string;
|
|
1948
1948
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1949
1949
|
intervalCount: number;
|
|
1950
|
-
onchainSubscriptionId: number | null;
|
|
1951
1950
|
planId: string;
|
|
1951
|
+
onchainSubscriptionId: number | null;
|
|
1952
1952
|
trialEndsAt: string | null;
|
|
1953
1953
|
currentPeriodStartAt: string;
|
|
1954
1954
|
currentPeriodEndAt: string;
|
|
@@ -1967,8 +1967,8 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
|
|
|
1967
1967
|
payerAddress: string;
|
|
1968
1968
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1969
1969
|
intervalCount: number;
|
|
1970
|
-
onchainSubscriptionId: number | null;
|
|
1971
1970
|
planId: string;
|
|
1971
|
+
onchainSubscriptionId: number | null;
|
|
1972
1972
|
trialEndsAt: string | null;
|
|
1973
1973
|
currentPeriodStartAt: string;
|
|
1974
1974
|
currentPeriodEndAt: string;
|
|
@@ -1993,8 +1993,8 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
|
|
|
1993
1993
|
payerAddress: string;
|
|
1994
1994
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
1995
1995
|
intervalCount: number;
|
|
1996
|
-
onchainSubscriptionId: number | null;
|
|
1997
1996
|
planId: string;
|
|
1997
|
+
onchainSubscriptionId: number | null;
|
|
1998
1998
|
trialEndsAt: string | null;
|
|
1999
1999
|
currentPeriodStartAt: string;
|
|
2000
2000
|
currentPeriodEndAt: string;
|
|
@@ -2020,8 +2020,135 @@ declare const subscriptionLapsedEventSchema: z.ZodObject<{
|
|
|
2020
2020
|
payerAddress: string;
|
|
2021
2021
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2022
2022
|
intervalCount: number;
|
|
2023
|
+
planId: string;
|
|
2023
2024
|
onchainSubscriptionId: number | null;
|
|
2025
|
+
trialEndsAt: string | null;
|
|
2026
|
+
currentPeriodStartAt: string;
|
|
2027
|
+
currentPeriodEndAt: string;
|
|
2028
|
+
nextChargeAt: string | null;
|
|
2029
|
+
gracePeriodHours: number;
|
|
2030
|
+
cancelledAt: string | null;
|
|
2031
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
2032
|
+
};
|
|
2033
|
+
id: string;
|
|
2034
|
+
createdAt: string;
|
|
2035
|
+
apiVersion: string;
|
|
2036
|
+
}>;
|
|
2037
|
+
declare const subscriptionReactivatedEventSchema: z.ZodObject<{
|
|
2038
|
+
id: z.ZodString;
|
|
2039
|
+
type: z.ZodLiteral<"subscription.reactivated">;
|
|
2040
|
+
apiVersion: z.ZodString;
|
|
2041
|
+
mode: z.ZodEnum<["test", "live"]>;
|
|
2042
|
+
createdAt: z.ZodString;
|
|
2043
|
+
data: z.ZodObject<{
|
|
2044
|
+
id: z.ZodString;
|
|
2045
|
+
onchainSubscriptionId: z.ZodNullable<z.ZodNumber>;
|
|
2046
|
+
merchantId: z.ZodString;
|
|
2047
|
+
customerId: z.ZodString;
|
|
2048
|
+
planId: z.ZodString;
|
|
2049
|
+
status: z.ZodEnum<["trialing", "active", "at_risk", "paused", "cancelled", "lapsed"]>;
|
|
2050
|
+
payerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
2051
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
2052
|
+
amount: z.ZodString;
|
|
2053
|
+
interval: z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>;
|
|
2054
|
+
intervalCount: z.ZodNumber;
|
|
2055
|
+
trialEndsAt: z.ZodNullable<z.ZodString>;
|
|
2056
|
+
currentPeriodStartAt: z.ZodString;
|
|
2057
|
+
currentPeriodEndAt: z.ZodString;
|
|
2058
|
+
nextChargeAt: z.ZodNullable<z.ZodString>;
|
|
2059
|
+
gracePeriodHours: z.ZodNumber;
|
|
2060
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
2061
|
+
metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
|
|
2062
|
+
createdAt: z.ZodString;
|
|
2063
|
+
updatedAt: z.ZodString;
|
|
2064
|
+
}, "strip", z.ZodTypeAny, {
|
|
2065
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
2066
|
+
amount: string;
|
|
2067
|
+
currency: "USDC" | "EURC";
|
|
2068
|
+
customerId: string;
|
|
2069
|
+
merchantId: string;
|
|
2070
|
+
id: string;
|
|
2071
|
+
createdAt: string;
|
|
2072
|
+
updatedAt: string;
|
|
2073
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
2074
|
+
payerAddress: string;
|
|
2075
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2076
|
+
intervalCount: number;
|
|
2077
|
+
planId: string;
|
|
2078
|
+
onchainSubscriptionId: number | null;
|
|
2079
|
+
trialEndsAt: string | null;
|
|
2080
|
+
currentPeriodStartAt: string;
|
|
2081
|
+
currentPeriodEndAt: string;
|
|
2082
|
+
nextChargeAt: string | null;
|
|
2083
|
+
gracePeriodHours: number;
|
|
2084
|
+
cancelledAt: string | null;
|
|
2085
|
+
}, {
|
|
2086
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
2087
|
+
amount: string;
|
|
2088
|
+
currency: "USDC" | "EURC";
|
|
2089
|
+
customerId: string;
|
|
2090
|
+
merchantId: string;
|
|
2091
|
+
id: string;
|
|
2092
|
+
createdAt: string;
|
|
2093
|
+
updatedAt: string;
|
|
2094
|
+
payerAddress: string;
|
|
2095
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2096
|
+
intervalCount: number;
|
|
2097
|
+
planId: string;
|
|
2098
|
+
onchainSubscriptionId: number | null;
|
|
2099
|
+
trialEndsAt: string | null;
|
|
2100
|
+
currentPeriodStartAt: string;
|
|
2101
|
+
currentPeriodEndAt: string;
|
|
2102
|
+
nextChargeAt: string | null;
|
|
2103
|
+
gracePeriodHours: number;
|
|
2104
|
+
cancelledAt: string | null;
|
|
2105
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
2106
|
+
}>;
|
|
2107
|
+
}, "strip", z.ZodTypeAny, {
|
|
2108
|
+
type: "subscription.reactivated";
|
|
2109
|
+
mode: "test" | "live";
|
|
2110
|
+
data: {
|
|
2111
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
2112
|
+
amount: string;
|
|
2113
|
+
currency: "USDC" | "EURC";
|
|
2114
|
+
customerId: string;
|
|
2115
|
+
merchantId: string;
|
|
2116
|
+
id: string;
|
|
2117
|
+
createdAt: string;
|
|
2118
|
+
updatedAt: string;
|
|
2119
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
2120
|
+
payerAddress: string;
|
|
2121
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2122
|
+
intervalCount: number;
|
|
2024
2123
|
planId: string;
|
|
2124
|
+
onchainSubscriptionId: number | null;
|
|
2125
|
+
trialEndsAt: string | null;
|
|
2126
|
+
currentPeriodStartAt: string;
|
|
2127
|
+
currentPeriodEndAt: string;
|
|
2128
|
+
nextChargeAt: string | null;
|
|
2129
|
+
gracePeriodHours: number;
|
|
2130
|
+
cancelledAt: string | null;
|
|
2131
|
+
};
|
|
2132
|
+
id: string;
|
|
2133
|
+
createdAt: string;
|
|
2134
|
+
apiVersion: string;
|
|
2135
|
+
}, {
|
|
2136
|
+
type: "subscription.reactivated";
|
|
2137
|
+
mode: "test" | "live";
|
|
2138
|
+
data: {
|
|
2139
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
2140
|
+
amount: string;
|
|
2141
|
+
currency: "USDC" | "EURC";
|
|
2142
|
+
customerId: string;
|
|
2143
|
+
merchantId: string;
|
|
2144
|
+
id: string;
|
|
2145
|
+
createdAt: string;
|
|
2146
|
+
updatedAt: string;
|
|
2147
|
+
payerAddress: string;
|
|
2148
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2149
|
+
intervalCount: number;
|
|
2150
|
+
planId: string;
|
|
2151
|
+
onchainSubscriptionId: number | null;
|
|
2025
2152
|
trialEndsAt: string | null;
|
|
2026
2153
|
currentPeriodStartAt: string;
|
|
2027
2154
|
currentPeriodEndAt: string;
|
|
@@ -4282,8 +4409,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4282
4409
|
payerAddress: string;
|
|
4283
4410
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4284
4411
|
intervalCount: number;
|
|
4285
|
-
onchainSubscriptionId: number | null;
|
|
4286
4412
|
planId: string;
|
|
4413
|
+
onchainSubscriptionId: number | null;
|
|
4287
4414
|
trialEndsAt: string | null;
|
|
4288
4415
|
currentPeriodStartAt: string;
|
|
4289
4416
|
currentPeriodEndAt: string;
|
|
@@ -4302,8 +4429,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4302
4429
|
payerAddress: string;
|
|
4303
4430
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4304
4431
|
intervalCount: number;
|
|
4305
|
-
onchainSubscriptionId: number | null;
|
|
4306
4432
|
planId: string;
|
|
4433
|
+
onchainSubscriptionId: number | null;
|
|
4307
4434
|
trialEndsAt: string | null;
|
|
4308
4435
|
currentPeriodStartAt: string;
|
|
4309
4436
|
currentPeriodEndAt: string;
|
|
@@ -4328,8 +4455,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4328
4455
|
payerAddress: string;
|
|
4329
4456
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4330
4457
|
intervalCount: number;
|
|
4331
|
-
onchainSubscriptionId: number | null;
|
|
4332
4458
|
planId: string;
|
|
4459
|
+
onchainSubscriptionId: number | null;
|
|
4333
4460
|
trialEndsAt: string | null;
|
|
4334
4461
|
currentPeriodStartAt: string;
|
|
4335
4462
|
currentPeriodEndAt: string;
|
|
@@ -4355,8 +4482,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4355
4482
|
payerAddress: string;
|
|
4356
4483
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4357
4484
|
intervalCount: number;
|
|
4358
|
-
onchainSubscriptionId: number | null;
|
|
4359
4485
|
planId: string;
|
|
4486
|
+
onchainSubscriptionId: number | null;
|
|
4360
4487
|
trialEndsAt: string | null;
|
|
4361
4488
|
currentPeriodStartAt: string;
|
|
4362
4489
|
currentPeriodEndAt: string;
|
|
@@ -4409,8 +4536,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4409
4536
|
payerAddress: string;
|
|
4410
4537
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4411
4538
|
intervalCount: number;
|
|
4412
|
-
onchainSubscriptionId: number | null;
|
|
4413
4539
|
planId: string;
|
|
4540
|
+
onchainSubscriptionId: number | null;
|
|
4414
4541
|
trialEndsAt: string | null;
|
|
4415
4542
|
currentPeriodStartAt: string;
|
|
4416
4543
|
currentPeriodEndAt: string;
|
|
@@ -4429,8 +4556,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4429
4556
|
payerAddress: string;
|
|
4430
4557
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4431
4558
|
intervalCount: number;
|
|
4432
|
-
onchainSubscriptionId: number | null;
|
|
4433
4559
|
planId: string;
|
|
4560
|
+
onchainSubscriptionId: number | null;
|
|
4434
4561
|
trialEndsAt: string | null;
|
|
4435
4562
|
currentPeriodStartAt: string;
|
|
4436
4563
|
currentPeriodEndAt: string;
|
|
@@ -4449,7 +4576,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4449
4576
|
amount: z.ZodString;
|
|
4450
4577
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
4451
4578
|
status: z.ZodEnum<["pending", "in_flight", "succeeded", "failed", "retrying", "abandoned"]>;
|
|
4452
|
-
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped"]>>;
|
|
4579
|
+
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped", "token_not_allowed"]>>;
|
|
4453
4580
|
attemptNumber: z.ZodNumber;
|
|
4454
4581
|
scheduledAt: z.ZodString;
|
|
4455
4582
|
executedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -4471,7 +4598,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4471
4598
|
chargeAttemptId: string;
|
|
4472
4599
|
periodStartAt: string;
|
|
4473
4600
|
periodEndAt: string;
|
|
4474
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4601
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4475
4602
|
attemptNumber: number;
|
|
4476
4603
|
scheduledAt: string;
|
|
4477
4604
|
executedAt: string | null;
|
|
@@ -4489,7 +4616,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4489
4616
|
chargeAttemptId: string;
|
|
4490
4617
|
periodStartAt: string;
|
|
4491
4618
|
periodEndAt: string;
|
|
4492
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4619
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4493
4620
|
attemptNumber: number;
|
|
4494
4621
|
scheduledAt: string;
|
|
4495
4622
|
executedAt: string | null;
|
|
@@ -4590,8 +4717,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4590
4717
|
payerAddress: string;
|
|
4591
4718
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4592
4719
|
intervalCount: number;
|
|
4593
|
-
onchainSubscriptionId: number | null;
|
|
4594
4720
|
planId: string;
|
|
4721
|
+
onchainSubscriptionId: number | null;
|
|
4595
4722
|
trialEndsAt: string | null;
|
|
4596
4723
|
currentPeriodStartAt: string;
|
|
4597
4724
|
currentPeriodEndAt: string;
|
|
@@ -4613,7 +4740,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4613
4740
|
chargeAttemptId: string;
|
|
4614
4741
|
periodStartAt: string;
|
|
4615
4742
|
periodEndAt: string;
|
|
4616
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4743
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4617
4744
|
attemptNumber: number;
|
|
4618
4745
|
scheduledAt: string;
|
|
4619
4746
|
executedAt: string | null;
|
|
@@ -4652,8 +4779,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4652
4779
|
payerAddress: string;
|
|
4653
4780
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4654
4781
|
intervalCount: number;
|
|
4655
|
-
onchainSubscriptionId: number | null;
|
|
4656
4782
|
planId: string;
|
|
4783
|
+
onchainSubscriptionId: number | null;
|
|
4657
4784
|
trialEndsAt: string | null;
|
|
4658
4785
|
currentPeriodStartAt: string;
|
|
4659
4786
|
currentPeriodEndAt: string;
|
|
@@ -4676,7 +4803,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4676
4803
|
chargeAttemptId: string;
|
|
4677
4804
|
periodStartAt: string;
|
|
4678
4805
|
periodEndAt: string;
|
|
4679
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4806
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4680
4807
|
attemptNumber: number;
|
|
4681
4808
|
scheduledAt: string;
|
|
4682
4809
|
executedAt: string | null;
|
|
@@ -4720,8 +4847,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4720
4847
|
payerAddress: string;
|
|
4721
4848
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4722
4849
|
intervalCount: number;
|
|
4723
|
-
onchainSubscriptionId: number | null;
|
|
4724
4850
|
planId: string;
|
|
4851
|
+
onchainSubscriptionId: number | null;
|
|
4725
4852
|
trialEndsAt: string | null;
|
|
4726
4853
|
currentPeriodStartAt: string;
|
|
4727
4854
|
currentPeriodEndAt: string;
|
|
@@ -4743,7 +4870,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4743
4870
|
chargeAttemptId: string;
|
|
4744
4871
|
periodStartAt: string;
|
|
4745
4872
|
periodEndAt: string;
|
|
4746
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4873
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4747
4874
|
attemptNumber: number;
|
|
4748
4875
|
scheduledAt: string;
|
|
4749
4876
|
executedAt: string | null;
|
|
@@ -4789,8 +4916,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4789
4916
|
payerAddress: string;
|
|
4790
4917
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4791
4918
|
intervalCount: number;
|
|
4792
|
-
onchainSubscriptionId: number | null;
|
|
4793
4919
|
planId: string;
|
|
4920
|
+
onchainSubscriptionId: number | null;
|
|
4794
4921
|
trialEndsAt: string | null;
|
|
4795
4922
|
currentPeriodStartAt: string;
|
|
4796
4923
|
currentPeriodEndAt: string;
|
|
@@ -4813,7 +4940,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4813
4940
|
chargeAttemptId: string;
|
|
4814
4941
|
periodStartAt: string;
|
|
4815
4942
|
periodEndAt: string;
|
|
4816
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
4943
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4817
4944
|
attemptNumber: number;
|
|
4818
4945
|
scheduledAt: string;
|
|
4819
4946
|
executedAt: string | null;
|
|
@@ -4863,8 +4990,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4863
4990
|
payerAddress: string;
|
|
4864
4991
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4865
4992
|
intervalCount: number;
|
|
4866
|
-
onchainSubscriptionId: number | null;
|
|
4867
4993
|
planId: string;
|
|
4994
|
+
onchainSubscriptionId: number | null;
|
|
4868
4995
|
trialEndsAt: string | null;
|
|
4869
4996
|
currentPeriodStartAt: string;
|
|
4870
4997
|
currentPeriodEndAt: string;
|
|
@@ -4883,8 +5010,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4883
5010
|
payerAddress: string;
|
|
4884
5011
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4885
5012
|
intervalCount: number;
|
|
4886
|
-
onchainSubscriptionId: number | null;
|
|
4887
5013
|
planId: string;
|
|
5014
|
+
onchainSubscriptionId: number | null;
|
|
4888
5015
|
trialEndsAt: string | null;
|
|
4889
5016
|
currentPeriodStartAt: string;
|
|
4890
5017
|
currentPeriodEndAt: string;
|
|
@@ -4903,7 +5030,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4903
5030
|
amount: z.ZodString;
|
|
4904
5031
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
4905
5032
|
status: z.ZodEnum<["pending", "in_flight", "succeeded", "failed", "retrying", "abandoned"]>;
|
|
4906
|
-
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped"]>>;
|
|
5033
|
+
outcome: z.ZodNullable<z.ZodEnum<["charged", "insufficient_funds", "revoked_approval", "cancelled", "not_due", "ended", "duplicate", "unknown", "merchant_inactive", "transfer_failed", "skipped", "token_not_allowed"]>>;
|
|
4907
5034
|
attemptNumber: z.ZodNumber;
|
|
4908
5035
|
scheduledAt: z.ZodString;
|
|
4909
5036
|
executedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -4925,7 +5052,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4925
5052
|
chargeAttemptId: string;
|
|
4926
5053
|
periodStartAt: string;
|
|
4927
5054
|
periodEndAt: string;
|
|
4928
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5055
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4929
5056
|
attemptNumber: number;
|
|
4930
5057
|
scheduledAt: string;
|
|
4931
5058
|
executedAt: string | null;
|
|
@@ -4943,7 +5070,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4943
5070
|
chargeAttemptId: string;
|
|
4944
5071
|
periodStartAt: string;
|
|
4945
5072
|
periodEndAt: string;
|
|
4946
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5073
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4947
5074
|
attemptNumber: number;
|
|
4948
5075
|
scheduledAt: string;
|
|
4949
5076
|
executedAt: string | null;
|
|
@@ -4962,8 +5089,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4962
5089
|
payerAddress: string;
|
|
4963
5090
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
4964
5091
|
intervalCount: number;
|
|
4965
|
-
onchainSubscriptionId: number | null;
|
|
4966
5092
|
planId: string;
|
|
5093
|
+
onchainSubscriptionId: number | null;
|
|
4967
5094
|
trialEndsAt: string | null;
|
|
4968
5095
|
currentPeriodStartAt: string;
|
|
4969
5096
|
currentPeriodEndAt: string;
|
|
@@ -4985,7 +5112,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
4985
5112
|
chargeAttemptId: string;
|
|
4986
5113
|
periodStartAt: string;
|
|
4987
5114
|
periodEndAt: string;
|
|
4988
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5115
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
4989
5116
|
attemptNumber: number;
|
|
4990
5117
|
scheduledAt: string;
|
|
4991
5118
|
executedAt: string | null;
|
|
@@ -5003,8 +5130,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5003
5130
|
payerAddress: string;
|
|
5004
5131
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5005
5132
|
intervalCount: number;
|
|
5006
|
-
onchainSubscriptionId: number | null;
|
|
5007
5133
|
planId: string;
|
|
5134
|
+
onchainSubscriptionId: number | null;
|
|
5008
5135
|
trialEndsAt: string | null;
|
|
5009
5136
|
currentPeriodStartAt: string;
|
|
5010
5137
|
currentPeriodEndAt: string;
|
|
@@ -5027,7 +5154,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5027
5154
|
chargeAttemptId: string;
|
|
5028
5155
|
periodStartAt: string;
|
|
5029
5156
|
periodEndAt: string;
|
|
5030
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5157
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
5031
5158
|
attemptNumber: number;
|
|
5032
5159
|
scheduledAt: string;
|
|
5033
5160
|
executedAt: string | null;
|
|
@@ -5050,8 +5177,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5050
5177
|
payerAddress: string;
|
|
5051
5178
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5052
5179
|
intervalCount: number;
|
|
5053
|
-
onchainSubscriptionId: number | null;
|
|
5054
5180
|
planId: string;
|
|
5181
|
+
onchainSubscriptionId: number | null;
|
|
5055
5182
|
trialEndsAt: string | null;
|
|
5056
5183
|
currentPeriodStartAt: string;
|
|
5057
5184
|
currentPeriodEndAt: string;
|
|
@@ -5073,7 +5200,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5073
5200
|
chargeAttemptId: string;
|
|
5074
5201
|
periodStartAt: string;
|
|
5075
5202
|
periodEndAt: string;
|
|
5076
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5203
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
5077
5204
|
attemptNumber: number;
|
|
5078
5205
|
scheduledAt: string;
|
|
5079
5206
|
executedAt: string | null;
|
|
@@ -5098,8 +5225,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5098
5225
|
payerAddress: string;
|
|
5099
5226
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5100
5227
|
intervalCount: number;
|
|
5101
|
-
onchainSubscriptionId: number | null;
|
|
5102
5228
|
planId: string;
|
|
5229
|
+
onchainSubscriptionId: number | null;
|
|
5103
5230
|
trialEndsAt: string | null;
|
|
5104
5231
|
currentPeriodStartAt: string;
|
|
5105
5232
|
currentPeriodEndAt: string;
|
|
@@ -5122,7 +5249,7 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5122
5249
|
chargeAttemptId: string;
|
|
5123
5250
|
periodStartAt: string;
|
|
5124
5251
|
periodEndAt: string;
|
|
5125
|
-
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | null;
|
|
5252
|
+
outcome: "unknown" | "cancelled" | "charged" | "insufficient_funds" | "revoked_approval" | "not_due" | "ended" | "duplicate" | "merchant_inactive" | "transfer_failed" | "skipped" | "token_not_allowed" | null;
|
|
5126
5253
|
attemptNumber: number;
|
|
5127
5254
|
scheduledAt: string;
|
|
5128
5255
|
executedAt: string | null;
|
|
@@ -5172,8 +5299,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5172
5299
|
payerAddress: string;
|
|
5173
5300
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5174
5301
|
intervalCount: number;
|
|
5175
|
-
onchainSubscriptionId: number | null;
|
|
5176
5302
|
planId: string;
|
|
5303
|
+
onchainSubscriptionId: number | null;
|
|
5177
5304
|
trialEndsAt: string | null;
|
|
5178
5305
|
currentPeriodStartAt: string;
|
|
5179
5306
|
currentPeriodEndAt: string;
|
|
@@ -5192,8 +5319,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5192
5319
|
payerAddress: string;
|
|
5193
5320
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5194
5321
|
intervalCount: number;
|
|
5195
|
-
onchainSubscriptionId: number | null;
|
|
5196
5322
|
planId: string;
|
|
5323
|
+
onchainSubscriptionId: number | null;
|
|
5197
5324
|
trialEndsAt: string | null;
|
|
5198
5325
|
currentPeriodStartAt: string;
|
|
5199
5326
|
currentPeriodEndAt: string;
|
|
@@ -5218,8 +5345,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5218
5345
|
payerAddress: string;
|
|
5219
5346
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5220
5347
|
intervalCount: number;
|
|
5221
|
-
onchainSubscriptionId: number | null;
|
|
5222
5348
|
planId: string;
|
|
5349
|
+
onchainSubscriptionId: number | null;
|
|
5223
5350
|
trialEndsAt: string | null;
|
|
5224
5351
|
currentPeriodStartAt: string;
|
|
5225
5352
|
currentPeriodEndAt: string;
|
|
@@ -5241,8 +5368,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5241
5368
|
payerAddress: string;
|
|
5242
5369
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5243
5370
|
intervalCount: number;
|
|
5244
|
-
onchainSubscriptionId: number | null;
|
|
5245
5371
|
planId: string;
|
|
5372
|
+
onchainSubscriptionId: number | null;
|
|
5246
5373
|
trialEndsAt: string | null;
|
|
5247
5374
|
currentPeriodStartAt: string;
|
|
5248
5375
|
currentPeriodEndAt: string;
|
|
@@ -5270,8 +5397,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5270
5397
|
payerAddress: string;
|
|
5271
5398
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5272
5399
|
intervalCount: number;
|
|
5273
|
-
onchainSubscriptionId: number | null;
|
|
5274
5400
|
planId: string;
|
|
5401
|
+
onchainSubscriptionId: number | null;
|
|
5275
5402
|
trialEndsAt: string | null;
|
|
5276
5403
|
currentPeriodStartAt: string;
|
|
5277
5404
|
currentPeriodEndAt: string;
|
|
@@ -5300,8 +5427,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5300
5427
|
payerAddress: string;
|
|
5301
5428
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5302
5429
|
intervalCount: number;
|
|
5303
|
-
onchainSubscriptionId: number | null;
|
|
5304
5430
|
planId: string;
|
|
5431
|
+
onchainSubscriptionId: number | null;
|
|
5305
5432
|
trialEndsAt: string | null;
|
|
5306
5433
|
currentPeriodStartAt: string;
|
|
5307
5434
|
currentPeriodEndAt: string;
|
|
@@ -5354,8 +5481,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5354
5481
|
payerAddress: string;
|
|
5355
5482
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5356
5483
|
intervalCount: number;
|
|
5357
|
-
onchainSubscriptionId: number | null;
|
|
5358
5484
|
planId: string;
|
|
5485
|
+
onchainSubscriptionId: number | null;
|
|
5359
5486
|
trialEndsAt: string | null;
|
|
5360
5487
|
currentPeriodStartAt: string;
|
|
5361
5488
|
currentPeriodEndAt: string;
|
|
@@ -5374,8 +5501,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5374
5501
|
payerAddress: string;
|
|
5375
5502
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5376
5503
|
intervalCount: number;
|
|
5377
|
-
onchainSubscriptionId: number | null;
|
|
5378
5504
|
planId: string;
|
|
5505
|
+
onchainSubscriptionId: number | null;
|
|
5379
5506
|
trialEndsAt: string | null;
|
|
5380
5507
|
currentPeriodStartAt: string;
|
|
5381
5508
|
currentPeriodEndAt: string;
|
|
@@ -5400,8 +5527,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5400
5527
|
payerAddress: string;
|
|
5401
5528
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5402
5529
|
intervalCount: number;
|
|
5403
|
-
onchainSubscriptionId: number | null;
|
|
5404
5530
|
planId: string;
|
|
5531
|
+
onchainSubscriptionId: number | null;
|
|
5405
5532
|
trialEndsAt: string | null;
|
|
5406
5533
|
currentPeriodStartAt: string;
|
|
5407
5534
|
currentPeriodEndAt: string;
|
|
@@ -5427,8 +5554,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5427
5554
|
payerAddress: string;
|
|
5428
5555
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5429
5556
|
intervalCount: number;
|
|
5430
|
-
onchainSubscriptionId: number | null;
|
|
5431
5557
|
planId: string;
|
|
5558
|
+
onchainSubscriptionId: number | null;
|
|
5432
5559
|
trialEndsAt: string | null;
|
|
5433
5560
|
currentPeriodStartAt: string;
|
|
5434
5561
|
currentPeriodEndAt: string;
|
|
@@ -5480,8 +5607,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5480
5607
|
payerAddress: string;
|
|
5481
5608
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5482
5609
|
intervalCount: number;
|
|
5483
|
-
onchainSubscriptionId: number | null;
|
|
5484
5610
|
planId: string;
|
|
5611
|
+
onchainSubscriptionId: number | null;
|
|
5485
5612
|
trialEndsAt: string | null;
|
|
5486
5613
|
currentPeriodStartAt: string;
|
|
5487
5614
|
currentPeriodEndAt: string;
|
|
@@ -5500,8 +5627,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5500
5627
|
payerAddress: string;
|
|
5501
5628
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5502
5629
|
intervalCount: number;
|
|
5503
|
-
onchainSubscriptionId: number | null;
|
|
5504
5630
|
planId: string;
|
|
5631
|
+
onchainSubscriptionId: number | null;
|
|
5505
5632
|
trialEndsAt: string | null;
|
|
5506
5633
|
currentPeriodStartAt: string;
|
|
5507
5634
|
currentPeriodEndAt: string;
|
|
@@ -5526,8 +5653,8 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5526
5653
|
payerAddress: string;
|
|
5527
5654
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5528
5655
|
intervalCount: number;
|
|
5529
|
-
onchainSubscriptionId: number | null;
|
|
5530
5656
|
planId: string;
|
|
5657
|
+
onchainSubscriptionId: number | null;
|
|
5531
5658
|
trialEndsAt: string | null;
|
|
5532
5659
|
currentPeriodStartAt: string;
|
|
5533
5660
|
currentPeriodEndAt: string;
|
|
@@ -5553,8 +5680,134 @@ declare const webhookEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
5553
5680
|
payerAddress: string;
|
|
5554
5681
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5555
5682
|
intervalCount: number;
|
|
5683
|
+
planId: string;
|
|
5556
5684
|
onchainSubscriptionId: number | null;
|
|
5685
|
+
trialEndsAt: string | null;
|
|
5686
|
+
currentPeriodStartAt: string;
|
|
5687
|
+
currentPeriodEndAt: string;
|
|
5688
|
+
nextChargeAt: string | null;
|
|
5689
|
+
gracePeriodHours: number;
|
|
5690
|
+
cancelledAt: string | null;
|
|
5691
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
5692
|
+
};
|
|
5693
|
+
id: string;
|
|
5694
|
+
createdAt: string;
|
|
5695
|
+
apiVersion: string;
|
|
5696
|
+
}>, z.ZodObject<{
|
|
5697
|
+
id: z.ZodString;
|
|
5698
|
+
type: z.ZodLiteral<"subscription.reactivated">;
|
|
5699
|
+
apiVersion: z.ZodString;
|
|
5700
|
+
mode: z.ZodEnum<["test", "live"]>;
|
|
5701
|
+
createdAt: z.ZodString;
|
|
5702
|
+
data: z.ZodObject<{
|
|
5703
|
+
id: z.ZodString;
|
|
5704
|
+
onchainSubscriptionId: z.ZodNullable<z.ZodNumber>;
|
|
5705
|
+
merchantId: z.ZodString;
|
|
5706
|
+
customerId: z.ZodString;
|
|
5707
|
+
planId: z.ZodString;
|
|
5708
|
+
status: z.ZodEnum<["trialing", "active", "at_risk", "paused", "cancelled", "lapsed"]>;
|
|
5709
|
+
payerAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
5710
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
5711
|
+
amount: z.ZodString;
|
|
5712
|
+
interval: z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>;
|
|
5713
|
+
intervalCount: z.ZodNumber;
|
|
5714
|
+
trialEndsAt: z.ZodNullable<z.ZodString>;
|
|
5715
|
+
currentPeriodStartAt: z.ZodString;
|
|
5716
|
+
currentPeriodEndAt: z.ZodString;
|
|
5717
|
+
nextChargeAt: z.ZodNullable<z.ZodString>;
|
|
5718
|
+
gracePeriodHours: z.ZodNumber;
|
|
5719
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
5720
|
+
metadata: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>;
|
|
5721
|
+
createdAt: z.ZodString;
|
|
5722
|
+
updatedAt: z.ZodString;
|
|
5723
|
+
}, "strip", z.ZodTypeAny, {
|
|
5724
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
5725
|
+
amount: string;
|
|
5726
|
+
currency: "USDC" | "EURC";
|
|
5727
|
+
customerId: string;
|
|
5728
|
+
merchantId: string;
|
|
5729
|
+
id: string;
|
|
5730
|
+
createdAt: string;
|
|
5731
|
+
updatedAt: string;
|
|
5732
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
5733
|
+
payerAddress: string;
|
|
5734
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5735
|
+
intervalCount: number;
|
|
5736
|
+
planId: string;
|
|
5737
|
+
onchainSubscriptionId: number | null;
|
|
5738
|
+
trialEndsAt: string | null;
|
|
5739
|
+
currentPeriodStartAt: string;
|
|
5740
|
+
currentPeriodEndAt: string;
|
|
5741
|
+
nextChargeAt: string | null;
|
|
5742
|
+
gracePeriodHours: number;
|
|
5743
|
+
cancelledAt: string | null;
|
|
5744
|
+
}, {
|
|
5745
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
5746
|
+
amount: string;
|
|
5747
|
+
currency: "USDC" | "EURC";
|
|
5748
|
+
customerId: string;
|
|
5749
|
+
merchantId: string;
|
|
5750
|
+
id: string;
|
|
5751
|
+
createdAt: string;
|
|
5752
|
+
updatedAt: string;
|
|
5753
|
+
payerAddress: string;
|
|
5754
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5755
|
+
intervalCount: number;
|
|
5756
|
+
planId: string;
|
|
5757
|
+
onchainSubscriptionId: number | null;
|
|
5758
|
+
trialEndsAt: string | null;
|
|
5759
|
+
currentPeriodStartAt: string;
|
|
5760
|
+
currentPeriodEndAt: string;
|
|
5761
|
+
nextChargeAt: string | null;
|
|
5762
|
+
gracePeriodHours: number;
|
|
5763
|
+
cancelledAt: string | null;
|
|
5764
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
5765
|
+
}>;
|
|
5766
|
+
}, "strip", z.ZodTypeAny, {
|
|
5767
|
+
type: "subscription.reactivated";
|
|
5768
|
+
mode: "test" | "live";
|
|
5769
|
+
data: {
|
|
5770
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
5771
|
+
amount: string;
|
|
5772
|
+
currency: "USDC" | "EURC";
|
|
5773
|
+
customerId: string;
|
|
5774
|
+
merchantId: string;
|
|
5775
|
+
id: string;
|
|
5776
|
+
createdAt: string;
|
|
5777
|
+
updatedAt: string;
|
|
5778
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
5779
|
+
payerAddress: string;
|
|
5780
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5781
|
+
intervalCount: number;
|
|
5557
5782
|
planId: string;
|
|
5783
|
+
onchainSubscriptionId: number | null;
|
|
5784
|
+
trialEndsAt: string | null;
|
|
5785
|
+
currentPeriodStartAt: string;
|
|
5786
|
+
currentPeriodEndAt: string;
|
|
5787
|
+
nextChargeAt: string | null;
|
|
5788
|
+
gracePeriodHours: number;
|
|
5789
|
+
cancelledAt: string | null;
|
|
5790
|
+
};
|
|
5791
|
+
id: string;
|
|
5792
|
+
createdAt: string;
|
|
5793
|
+
apiVersion: string;
|
|
5794
|
+
}, {
|
|
5795
|
+
type: "subscription.reactivated";
|
|
5796
|
+
mode: "test" | "live";
|
|
5797
|
+
data: {
|
|
5798
|
+
status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
|
|
5799
|
+
amount: string;
|
|
5800
|
+
currency: "USDC" | "EURC";
|
|
5801
|
+
customerId: string;
|
|
5802
|
+
merchantId: string;
|
|
5803
|
+
id: string;
|
|
5804
|
+
createdAt: string;
|
|
5805
|
+
updatedAt: string;
|
|
5806
|
+
payerAddress: string;
|
|
5807
|
+
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
5808
|
+
intervalCount: number;
|
|
5809
|
+
planId: string;
|
|
5810
|
+
onchainSubscriptionId: number | null;
|
|
5558
5811
|
trialEndsAt: string | null;
|
|
5559
5812
|
currentPeriodStartAt: string;
|
|
5560
5813
|
currentPeriodEndAt: string;
|
|
@@ -7087,6 +7340,7 @@ type SubscriptionChargeFailedEvent = z.infer<typeof subscriptionChargeFailedEven
|
|
|
7087
7340
|
type SubscriptionRecoveryAttemptEvent = z.infer<typeof subscriptionRecoveryAttemptEventSchema>;
|
|
7088
7341
|
type SubscriptionCancelledEvent = z.infer<typeof subscriptionCancelledEventSchema>;
|
|
7089
7342
|
type SubscriptionLapsedEvent = z.infer<typeof subscriptionLapsedEventSchema>;
|
|
7343
|
+
type SubscriptionReactivatedEvent = z.infer<typeof subscriptionReactivatedEventSchema>;
|
|
7090
7344
|
type RefundCreatedEvent = z.infer<typeof refundCreatedEventSchema>;
|
|
7091
7345
|
type RefundCompletedEvent = z.infer<typeof refundCompletedEventSchema>;
|
|
7092
7346
|
type InvoiceCreatedEvent = z.infer<typeof invoiceCreatedEventSchema>;
|
|
@@ -7098,4 +7352,4 @@ type AgentJobDisputedEvent = z.infer<typeof agentJobDisputedEventSchema>;
|
|
|
7098
7352
|
type ComplianceWalletFlaggedEvent = z.infer<typeof complianceWalletFlaggedEventSchema>;
|
|
7099
7353
|
type ComplianceWalletBlockedEvent = z.infer<typeof complianceWalletBlockedEventSchema>;
|
|
7100
7354
|
|
|
7101
|
-
export { type AgentJobCompletedEvent, type AgentJobDisputedEvent, type AgentJobProposedEvent, type ComplianceWalletBlockedEvent, type ComplianceWalletFlaggedEvent, type InvoiceCreatedEvent, type InvoiceOverdueEvent, type InvoicePaidEvent, type PaymentCompletedEvent, type PaymentCreatedEvent, type PaymentFailedEvent, type RefundCompletedEvent, type RefundCreatedEvent, type StrimzWebhookEvent, type SubscriptionCancelledEvent, type SubscriptionChargeFailedEvent, type SubscriptionChargedEvent, type SubscriptionCreatedEvent, type SubscriptionLapsedEvent, type SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema };
|
|
7355
|
+
export { type AgentJobCompletedEvent, type AgentJobDisputedEvent, type AgentJobProposedEvent, type ComplianceWalletBlockedEvent, type ComplianceWalletFlaggedEvent, type InvoiceCreatedEvent, type InvoiceOverdueEvent, type InvoicePaidEvent, type PaymentCompletedEvent, type PaymentCreatedEvent, type PaymentFailedEvent, type RefundCompletedEvent, type RefundCreatedEvent, type StrimzWebhookEvent, type SubscriptionCancelledEvent, type SubscriptionChargeFailedEvent, type SubscriptionChargedEvent, type SubscriptionCreatedEvent, type SubscriptionLapsedEvent, type SubscriptionReactivatedEvent, type SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema };
|